/* ---------------------------------------------------------------------
   Case cards (built by .site-build/case_cards.py)
   One split card: a flat dark text panel on the left, the agent's portrait
   filling the right half. Used on the hub (cc--list), at the end of every
   case page (cc--more) and for "See it live" (cc--live).
   --------------------------------------------------------------------- */
.cc {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  min-height: 460px; border-radius: 32px; overflow: hidden;
  background: #0d0d13; border: 1px solid rgba(255,255,255,0.09);
  transition: border-color 0.4s ease;
}
.cc:not(.cc--cta):hover { border-color: rgba(255,255,255,0.16); }
/* the whole card opens the case: a cover link under the button (kept out of the tab order;
   the button is the focusable, labelled link) */
.cc-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cc-btn { position: relative; z-index: 2; }
.cc-txt { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 64px 60px; min-width: 0; }
.cc-h {
  font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 52px); line-height: 1.06; font-weight: 700;
  letter-spacing: -0.01em; color: #fff; margin: 18px 0 20px; max-width: 13em; text-wrap: balance;
}
.cc-p { font-size: 17.5px; line-height: 1.65; color: #a3a3aa; max-width: 34em; margin: 0; }
.cc-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cc:not(.cc--cta):hover .cc-btn { transform: translateY(-2px); }
.cc:not(.cc--cta):hover .cc-btn svg { transform: translateX(3px); }
.cc .cc-btn:hover, .cc:hover .cc-btn { box-shadow: none; }
.cc-btn:focus-visible { outline: 2px solid #a9abff; outline-offset: 4px; }
.cc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cc-award { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; font-size: 13.5px; line-height: 1.45; color: #d6c48f; }
.cc-award svg { width: 26px; height: 26px; flex: none; }
.cc-award b { font-weight: 700; }
.cc-award em { display: block; font-style: normal; color: #a3a3aa; }

.cc-img { position: relative; display: block; overflow: hidden; min-height: 100%; background: #16161d; }
.cc-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 30%);
  transition: transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
.cc:not(.cc--cta):hover .cc-img img { transform: scale(1.035); }
/* the client's logo on the text side, large */
.cc-brand { display: flex; align-items: center; margin-bottom: 30px; }
.cc-logo { height: 44px; width: auto; max-width: 170px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.95; }
.cc-logo--toya { height: 38px; }
.cc-logo--dfcm { height: 58px; }
.cc-logo--nova { height: 74px; }
/* the agent's name on the portrait, top left */
.cc-imgname {
  position: absolute; top: 22px; left: 22px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  font: 600 13px/1 var(--font-main); letter-spacing: 0.01em; color: #fff;
  background: rgba(9,9,13,0.55); border: 1px solid rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cc-imgname::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #34c77b; flex: none; }
.cc-imgname.is-ink { color: #0d0d13; background: rgba(255,255,255,0.72); border-color: rgba(0,0,0,0.08); }

/* a cross-link at the end of a case page: a little shorter */
.cc--more { min-height: 380px; }
.cc--more .cc-txt { padding: 52px 56px; }
.cc--more .cc-h { font-size: clamp(28px, 2.8vw, 42px); }
.cc--more .cc-btns { margin-top: 28px; }

/* stacks */
.cc-stack { display: grid; gap: 28px; }

/* "More case studies" on a case page */
.cc-more { padding-top: 40px; }
.cc-more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.cc-more-h { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; font-weight: 700; margin: 0; color: #fff; }
.cc-all {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; color: #d4d4da; text-decoration: none; white-space: nowrap;
  text-decoration: underline 1px; text-decoration-color: transparent; text-underline-offset: 7px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.cc-all svg { width: 16px; height: 16px; transition: transform 0.45s cubic-bezier(0.16,1,0.3,1); }
.cc-all:hover { color: #fff; text-decoration-color: currentColor; }
.cc-all:hover svg { transform: translateX(3px); }
.cc-all:focus-visible { outline: 2px solid #a9abff; outline-offset: 4px; border-radius: 4px; }

/* the hub */
.cc-hub-head { position: relative; z-index: 2; padding: 170px 0 64px; text-align: center; }
.cc-hub-head .cs-wrap { display: flex; flex-direction: column; align-items: center; }
.cc-hub-h1 { font-family: var(--font-display); font-size: clamp(44px, 6vw, 92px); line-height: 1; font-weight: 700; letter-spacing: -0.02em; margin: 20px 0 22px; color: #fff; }
.cc-hub-sub { font-size: 18px; line-height: 1.6; color: #a3a3aa; max-width: 36em; margin: 0; text-wrap: balance; }
.cc-hub-sec { padding: 0 0 28px; }
.cc-hub-sec + .cc-hub-sec { padding-top: 0; }
.cc-hub-last { padding-bottom: 40px; }

/* "Your sector next": the same card, with sectors where the portrait would be */
.cc--cta .cc-sectors { display: flex; flex-wrap: wrap; align-content: center; gap: 10px; padding: 56px 56px 56px 0; }
.cc-sectors a {
  font-size: 15px; font-weight: 500; color: #e6e6ec; text-decoration: none; padding: 12px 18px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.cc-sectors a:hover { border-color: rgba(169,171,255,0.6); background: rgba(169,171,255,0.08); transform: translateY(-2px); }
.cc-sectors a:focus-visible { outline: 2px solid #a9abff; outline-offset: 3px; }
.cc--cta .cs-btn--ghost:hover { box-shadow: none; }

@media (max-width: 1100px) {
  .cc-txt { padding: 52px 44px; }
  .cc--more .cc-txt { padding: 46px 40px; }
  .cc-h { font-size: clamp(30px, 3.6vw, 42px); }
  .cc--more .cc-h { font-size: clamp(26px, 3vw, 36px); }
  .cc-p { font-size: 16.5px; }
}

/* tablets and phones: the portrait on top, the text below */
@media (max-width: 880px) {
  .cc, .cc--more { grid-template-columns: 1fr; min-height: 0; border-radius: 26px; }
  .cc-img { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .cc-img img { object-position: var(--mpos, var(--pos)); }
  .cc-txt, .cc--more .cc-txt { padding: 40px 40px 44px; }
  .cc-h, .cc--more .cc-h { font-size: clamp(28px, 5vw, 40px); max-width: 16em; }
  .cc-hub-head { padding: 140px 0 48px; }
  .cc--cta .cc-sectors { padding: 0 40px 44px; }
}
@media (max-width: 600px) {
  .cc, .cc--more { border-radius: 22px; }
  .cc-img { aspect-ratio: 1 / 1; }
  .cc-brand { margin-bottom: 22px; }
  .cc-logo { height: 36px; }
  .cc-logo--toya { height: 30px; }
  .cc-logo--dfcm { height: 46px; }
  .cc-imgname { top: 14px; left: 14px; font-size: 12px; padding: 5px 10px 5px 9px; }
  .cc-txt, .cc--more .cc-txt { padding: 28px 22px 30px; }
  .cc-h, .cc--more .cc-h { font-size: 28px; margin: 14px 0 14px; }
  .cc-p { font-size: 16px; line-height: 1.6; }
  .cc-btns, .cc--more .cc-btns { margin-top: 24px; }
  .cc-stack { gap: 20px; }
  .cc-more-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 26px; }
  .cc-hub-head { padding: 120px 0 36px; }
  .cc-hub-sub { font-size: 16.5px; }
  .cc-hub-sec { padding-bottom: 20px; }
  .cc--cta .cc-sectors { padding: 0 22px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-img img, .cc-btn, .cc-btn svg, .cc-all, .cc-all svg, .cc-sectors a { transition: none; }
  .cc:hover .cc-img img, .cc:hover .cc-btn, .cc:hover .cc-btn svg, .cc .cc-btn:hover, .cc .cc-btn:hover svg, .cc-sectors a:hover { transform: none; }
}

/* the live card's QR code (Aska): scan to try the agent on a phone */
.cc-btns:has(.cc-qr) { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 22px; }
.cc-qr { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,0.7); max-width: 230px; }
.cc-qr img { flex: none; width: 96px; height: 96px; padding: 8px; border-radius: 14px; background: #fff; }
@media (max-width: 700px) { .cc-qr { display: none; } }

/* owner, 19 Oct 2026: the cards must not grow with their text. A wider text side,
   a smaller title and tighter spacing keep every card at one compact height. */
@media (min-width: 881px) {
  .cc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); min-height: 500px; }
  .cc-txt { padding: 46px 56px; }
  .cc-brand { margin-bottom: 20px; }
  .cc-logo { height: 36px; }
  .cc-logo--toya { height: 32px; }
  .cc-logo--dfcm { height: 48px; }
  .cc-h, .cc--more .cc-h { font-size: clamp(28px, 2.35vw, 36px); line-height: 1.1; max-width: 16em; margin: 14px 0 14px; text-wrap: pretty; }
  .cc-p { font-size: 16px; line-height: 1.6; }
  .cc-award { margin-top: 18px; }
  .cc-btns, .cc--more .cc-btns { margin-top: 24px; }
  .cc--more { min-height: 440px; }
  .cc--more .cc-txt { padding: 42px 52px; }
}
/* the award: the real trophy, not a drawn laurel */
.cc-award .aw-trophy { height: 44px; width: auto; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); }
