/* =====================================================================
   Davision case studies
   Shared pieces (cs-*) + three templates:
     A  .ta-*  Talya  — data story (dark, report interlude on light paper)
     B  .tb-*  Toya   — cinematic product journey + ecosystem bento
     C  .tc-*  Defne  — light scrollytelling walkthrough of an agentic website
   Tokens come from style.css (:root) so the pages stay on-brand.
   ===================================================================== */

.cs-page #smooth-content { overflow: clip; }

/* ---------- shared ---------- */
.cs-wrap { max-width: 1400px; margin: 0 auto; padding: 0 5vw; }
.cs-section { position: relative; z-index: 2; padding: 120px 0; }
.cs-light { background: #ececec; color: #111; }
.cs-paper { background: #f4f4f1; color: #111; }

.cs-eyebrow {
  display: inline-block; line-height: 1.7;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #8c8c94;
}
.cs-eyebrow::before { content: ''; display: inline-block; vertical-align: middle; width: 30px; height: 1px; margin: -2px 12px 0 0; background: currentColor; opacity: 0.6; }
.cs-eyebrow b { color: #a9abff; font-weight: 700; }
.cs-light .cs-eyebrow, .cs-paper .cs-eyebrow { color: #77777e; }
.cs-light .cs-eyebrow b, .cs-paper .cs-eyebrow b { color: #4c4fd7; }

.cs-h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 58px); line-height: 1.06; font-weight: 700; letter-spacing: -0.01em; margin: 18px 0 20px; }
.cs-light .cs-h2, .cs-paper .cs-h2 { color: #0d0d0d; }
.cs-lead { font-size: 18px; line-height: 1.65; color: #a3a3aa; max-width: 620px; margin: 0; }
.cs-light .cs-lead, .cs-paper .cs-lead { color: #55555c; }
.cs-accent { color: #a9abff; }
.cs-light .cs-accent, .cs-paper .cs-accent { color: #4c4fd7; }

.cs-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.cs-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 100px;
  font: 600 13.5px/1 var(--font-main); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.cs-btn svg { width: 16px; height: 16px; transition: transform 0.45s cubic-bezier(0.16,1,0.3,1); }
.cs-btn:hover { transform: translateY(-2px); }
.cs-btn:hover svg { transform: translateX(3px); }
.cs-btn:active { transform: translateY(0) scale(0.98); }
.cs-btn--solid { background: #fff; color: #000; }
.cs-btn--solid:hover { box-shadow: 0 14px 40px rgba(255,255,255,0.22); }
.cs-btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.cs-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.07); box-shadow: 0 0 24px rgba(106,108,255,0.25); }
.cs-light .cs-btn--solid, .cs-paper .cs-btn--solid, .tc-hero .cs-btn--solid { background: #0d0d0d; color: #fff; }
.cs-light .cs-btn--solid:hover, .cs-paper .cs-btn--solid:hover, .tc-hero .cs-btn--solid:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.22); }
.cs-light .cs-btn--ghost, .cs-paper .cs-btn--ghost, .tc-hero .cs-btn--ghost { color: #111; border-color: rgba(0,0,0,0.2); }
.cs-light .cs-btn--ghost:hover, .cs-paper .cs-btn--ghost:hover, .tc-hero .cs-btn--ghost:hover { border-color: #111; background: rgba(0,0,0,0.04); box-shadow: none; }

.cs-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px;
  font-size: 13.5px; color: #dcdce2; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
}
.cs-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6a6cff; box-shadow: 0 0 8px #6a6cff; }
.cs-light .cs-chip, .cs-paper .cs-chip { color: #2a2a30; background: #fff; border-color: rgba(0,0,0,0.08); }

.cs-live {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: #fff;
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.cs-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: csPulse 2.4s ease-in-out infinite; }
@keyframes csPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* fact strip: client / sector / channels / period */
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.cs-meta > div { padding: 24px 26px; border-left: 1px solid rgba(255,255,255,0.1); }
.cs-meta > div:first-child { border-left: 0; padding-left: 0; }
.cs-meta dt { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #7d7d85; margin-bottom: 8px; }
.cs-meta dd { margin: 0; font-size: 15px; line-height: 1.45; color: #ececf0; font-weight: 500; }
.cs-light .cs-meta, .cs-paper .cs-meta, .tc-hero .cs-meta { border-color: rgba(0,0,0,0.12); }
.cs-light .cs-meta > div, .cs-paper .cs-meta > div, .tc-hero .cs-meta > div { border-color: rgba(0,0,0,0.12); }
.cs-light .cs-meta dt, .cs-paper .cs-meta dt, .tc-hero .cs-meta dt { color: #808087; }
.cs-light .cs-meta dd, .cs-paper .cs-meta dd, .tc-hero .cs-meta dd { color: #111; }

/* a video is invisible until it is really playing; the still behind it shows meanwhile
   (mobile browsers paint a play glyph over any visible paused video) */
.cs-vid { opacity: 0; transition: opacity 0.8s ease; }
.cs-vid.is-playing { opacity: 1; }

/* browser-window chrome around product screenshots */
.cs-shot { border-radius: 22px; overflow: hidden; background: #111; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
.cs-shot-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #16161d; border-bottom: 1px solid rgba(255,255,255,0.06); }
.cs-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.cs-shot-bar span { margin-left: 12px; height: 22px; padding: 0 12px; border-radius: 100px; background: rgba(255,255,255,0.06); color: #9a9aa2; font-size: 11.5px; display: inline-flex; align-items: center; gap: 7px; }
.cs-shot-bar span svg { width: 11px; height: 11px; opacity: 0.7; }
.cs-shot img { display: block; width: 100%; height: auto; }

/* next case study */
.cs-next { position: relative; z-index: 2; display: block; color: #fff; text-decoration: none; padding: 100px 0; border-top: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.cs-next .cs-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.cs-next small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #8c8c94; margin-bottom: 18px; }
.cs-next strong { display: block; font-family: var(--font-display); font-size: clamp(44px, 7.5vw, 120px); line-height: 0.95; font-weight: 700; letter-spacing: -0.02em; transition: color 0.4s ease; }
.cs-next em { display: block; font-style: normal; margin-top: 16px; font-size: 18px; color: #a3a3aa; }
.cs-next-img { width: 270px; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.cs-next-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(0.16,1,0.3,1); }
.cs-next:hover strong { color: #a9abff; }
.cs-next:hover .cs-next-img img { transform: scale(1.06); }

/* =====================================================================
   A · TALYA — data story
   ===================================================================== */
.ta-hero { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; padding: 170px 5vw 80px; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 72px; align-items: center; min-height: 94vh; }
.ta-client { display: flex; align-items: center; gap: 16px; margin: 30px 0 26px; }
.ta-client img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.ta-client span { font-size: 13px; color: #8c8c94; padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.14); }
.ta-title { text-wrap: balance; font-family: var(--font-display); font-size: clamp(40px, 5vw, 76px); line-height: 1.03; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 28px; }
.ta-intro { font-size: 18.5px; line-height: 1.65; color: #a8a8b0; max-width: 560px; margin: 0 0 40px; }
.ta-portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 34px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 50px 110px rgba(0,0,0,0.55), 0 0 70px rgba(76,79,215,0.12); }
.ta-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ta-portrait .cs-live { position: absolute; top: 22px; left: 22px; }
.ta-portrait-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 30px 28px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.86)); }
.ta-portrait-meta strong { display: block; font-family: var(--font-display); font-size: 32px; letter-spacing: 0.08em; }
.ta-portrait-meta span { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #bdbdc5; }

.ta-numbers-sec { padding: 40px 0 110px; }
.ta-numbers { display: grid; grid-template-columns: repeat(4, 1fr); }
.ta-num { padding: 46px 30px 10px; border-left: 1px solid rgba(255,255,255,0.08); }
.ta-num:first-child { border-left: 0; padding-left: 0; }
.ta-num b { display: block; font-family: var(--font-display); font-size: clamp(40px, 5vw, 84px); line-height: 1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ta-num span { display: block; margin-top: 16px; font-size: 14.5px; color: #9a9aa2; line-height: 1.5; max-width: 230px; }

.ta-story { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,0.08); }
.ta-story article { padding: 60px 64px 10px 0; }
.ta-story article + article { padding: 60px 0 10px 64px; border-left: 1px solid rgba(255,255,255,0.08); }
.ta-story h3 { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #a9abff; margin: 0 0 22px; }
.ta-story p { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; color: #e6e6ea; margin: 0; }

/* report interlude */
.ta-report-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; margin-top: 56px; }
.ta-block-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #0d0d0d; margin: 0 0 6px; }
.ta-block-sub { font-size: 14.5px; color: #6c6c73; margin: 0 0 30px; }
.ta-langs { display: flex; flex-direction: column; gap: 24px; }
.ta-lang { display: grid; grid-template-columns: 96px 1fr 112px; align-items: center; gap: 18px; }
.ta-lang .nm { font-weight: 600; font-size: 15px; color: #111; }
.ta-lang .tr { height: 12px; border-radius: 100px; background: rgba(0,0,0,0.07); overflow: hidden; }
.ta-lang .fl { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #3d40c8, #6a6cff); transform-origin: left center; transition: transform 1.5s cubic-bezier(0.16,1,0.3,1); }
.ta-lang .vl { text-align: right; font-size: 14px; color: #222; font-variant-numeric: tabular-nums; }
.ta-lang .vl small { display: block; font-size: 12px; color: #8a8a90; }
.ta-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 44px; }
.ta-ch { background: #fff; border-radius: 18px; padding: 20px 22px; border: 1px solid rgba(0,0,0,0.06); }
.ta-ch b { display: block; font-family: var(--font-display); font-size: 26px; color: #0d0d0d; font-variant-numeric: tabular-nums; }
.ta-ch span { font-size: 13px; color: #6c6c73; }

.ta-chart-card { background: #fff; border-radius: 30px; padding: 38px 38px 32px; box-shadow: 0 30px 80px rgba(0,0,0,0.07); border: 1px solid rgba(0,0,0,0.05); }
.ta-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 8px; }
.ta-chart { position: relative; display: grid; grid-template-columns: repeat(27, 1fr); align-items: end; gap: 5px; height: 280px; padding-top: 40px; border-bottom: 1px solid rgba(0,0,0,0.14); }
.ta-bar { position: relative; height: var(--h); border-radius: 6px 6px 2px 2px; background: #cfd0f6; transform-origin: bottom center; transition: transform 1.2s cubic-bezier(0.16,1,0.3,1) calc(var(--i) * 22ms), background 0.25s ease; cursor: default; }
.ta-bar:hover { background: #6a6cff; }
.ta-bar.is-peak { background: #4c4fd7; }
.ta-bar::after {
  content: attr(data-label); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  white-space: nowrap; font-size: 12px; font-weight: 600; color: #fff; background: #111; padding: 6px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.25s ease; z-index: 3;
}
.ta-bar:hover::after, .ta-bar.is-peak::after { opacity: 1; transform: translate(-50%, 0); }
.ta-bar.is-peak::after { background: #4c4fd7; }
.ta-bar:hover ~ .ta-bar.is-peak::after, .ta-chart:hover .ta-bar.is-peak:not(:hover)::after { opacity: 0; }
.ta-years { display: grid; grid-template-columns: 7fr 12fr 8fr; gap: 5px; margin-top: 12px; }
.ta-years span { font-size: 12.5px; font-weight: 600; color: #6c6c73; border-left: 1px solid rgba(0,0,0,0.15); padding-left: 8px; }
.ta-chart-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.ta-chart-foot div { background: #f4f4f6; border-radius: 16px; padding: 18px 20px; }
.ta-chart-foot b { display: block; font-family: var(--font-display); font-size: 28px; color: #0d0d0d; font-variant-numeric: tabular-nums; }
.ta-chart-foot span { font-size: 13px; color: #66666d; line-height: 1.45; }

/* kiosk + intelligence */
.ta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ta-split.is-flip .ta-media { order: 2; }
.ta-media { position: relative; border-radius: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
.ta-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ta-media--square { aspect-ratio: 1 / 1; }
.ta-media .cs-live { position: absolute; left: 22px; bottom: 22px; }
.ta-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 38px; }
.ta-feat { padding: 20px 22px; border-radius: 18px; background: linear-gradient(160deg, rgba(30,30,40,0.6), rgba(12,12,18,0.7)); border: 1px solid rgba(255,255,255,0.08); transition: border-color 0.35s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1); }
.ta-feat:hover { border-color: rgba(106,108,255,0.4); transform: translateY(-3px); }
.ta-feat b { display: block; font-size: 15.5px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.ta-feat span { font-size: 13.5px; line-height: 1.5; color: #9d9da5; }
.ta-list { list-style: none; padding: 0; margin: 34px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.ta-list li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.55; color: #d4d4da; }
.ta-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(140deg, #6a6cff, #3d40c8); box-shadow: 0 0 12px rgba(106,108,255,0.5); }

/* =====================================================================
   B · TOYA — cinematic product journey
   ===================================================================== */
.tb-hero { position: relative; z-index: 2; padding: 168px 0 0; text-align: center; }
.tb-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 26px 0 0; font-size: 14px; color: #b9b9c1; }
.tb-kicker img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.tb-title { font-family: var(--font-display); font-size: clamp(46px, 7.4vw, 118px); line-height: 0.96; font-weight: 700; letter-spacing: -0.025em; margin: 22px auto 26px; max-width: 16ch; text-wrap: balance; }
.tb-sub { font-size: 19px; line-height: 1.6; color: #a6a6ae; max-width: 680px; margin: 0 auto 40px; }
.tb-hero .cs-btns { justify-content: center; margin-bottom: 72px; }
.tb-screen { position: relative; max-width: 1400px; margin: 0 auto; padding: 0 5vw; }
.tb-screen-in {
  position: relative; aspect-ratio: 16 / 9; border-radius: 38px; overflow: hidden; will-change: transform;
  background: #e9edf3 url('assets/cases/toya/hero-poster.webp') center / cover no-repeat;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 60px 140px rgba(0,0,0,0.6), 0 0 90px rgba(76,79,215,0.16);
}
.tb-screen-in video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tb-float { position: absolute; z-index: 2; }
.tb-float--tl { top: 26px; left: 26px; padding: 10px 16px; border-radius: 100px; background: rgba(10,10,14,0.55); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tb-float--tl img { height: 18px; display: block; filter: brightness(0) invert(1); }
.tb-float--bl { left: 26px; bottom: 26px; }
.tb-float--br { right: 26px; bottom: 26px; text-align: right; padding: 16px 20px; border-radius: 20px; background: rgba(10,10,14,0.55); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tb-float--br strong { display: block; font-family: var(--font-display); font-size: 24px; letter-spacing: 0.08em; color: #fff; }
.tb-float--br span { font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #c3c3cb; }

.tb-meta-wrap { padding-top: 56px; }
.tb-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 90px; }
.tb-stat { padding: 0 30px; border-left: 1px solid rgba(255,255,255,0.1); }
.tb-stat:first-child { border-left: 0; padding-left: 0; }
.tb-stat b { display: block; font-family: var(--font-display); font-size: clamp(38px, 4.6vw, 70px); line-height: 1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tb-stat span { display: block; margin-top: 14px; font-size: 14.5px; color: #9a9aa2; }
.tb-note { margin-top: 26px; font-size: 12.5px; color: #6f6f78; letter-spacing: 0.03em; }

.tb-journey { margin-top: 30px; }
.tb-row { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 72px; align-items: center; padding: 72px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.tb-row:nth-child(even) { grid-template-columns: 0.82fr 1.18fr; }
.tb-row:nth-child(even) .cs-shot { order: 2; }
.tb-step-n { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.22em; color: #a9abff; }
.tb-row h3 { font-family: var(--font-display); font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; font-weight: 700; margin: 16px 0 18px; }
.tb-row p { font-size: 17px; line-height: 1.65; color: #a6a6ae; margin: 0 0 26px; }
.tb-row .cs-shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }

.tb-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; gap: 16px; margin-top: 56px; }
.tb-cell {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  border-radius: 28px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, rgba(32,32,44,0.62), rgba(12,12,18,0.78));
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.4s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.tb-cell:hover { border-color: rgba(106,108,255,0.42); transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0,0,0,0.4); }
.tb-cell > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: -2; transition: transform 1.2s cubic-bezier(0.16,1,0.3,1); }
.tb-cell.has-img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,5,9,0) 30%, rgba(5,5,9,0.92) 100%); }
.tb-cell:hover > img { transform: scale(1.05); }
.tb-cell h4 { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin: 0 0 8px; color: #fff; }
.tb-cell p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #b8b8c0; max-width: 460px; }
.tb-cell .tag { position: absolute; top: 24px; left: 26px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 12px; border-radius: 100px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.16); color: #e6e6ea; backdrop-filter: blur(10px); }
.tb-cell .ico { position: absolute; top: 26px; left: 28px; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(106,108,255,0.12); border: 1px solid rgba(106,108,255,0.3); color: #b9baff; }
.tb-cell .ico svg { width: 22px; height: 22px; }
.tb-c-big { grid-column: span 2; grid-row: span 2; }
.tb-c-wide { grid-column: span 2; }

.tb-caps { justify-content: center; margin-top: 56px; }

.tb-live { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch; border-radius: 36px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: linear-gradient(150deg, rgba(40,40,70,0.55), rgba(10,10,16,0.85)); }
.tb-live-txt { padding: 70px 60px; }
.tb-live-img { position: relative; min-height: 420px; }
.tb-live-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 30%; }

/* =====================================================================
   C · DEFNE — agentic website walkthrough (light)
   ===================================================================== */
.tc-hero { position: relative; z-index: 2; background: #ececec; color: #111; padding: 168px 0 80px; }
.tc-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 72px; align-items: center; }
.tc-logo { height: 30px; width: auto; filter: brightness(0); opacity: 0.86; margin: 30px 0 26px; display: block; }
.tc-title { text-wrap: balance; font-family: var(--font-display); font-size: clamp(40px, 5vw, 76px); line-height: 1.03; font-weight: 700; letter-spacing: -0.015em; color: #0d0d0d; margin: 0 0 28px; }
.tc-title span { color: #4c4fd7; }
.tc-intro { font-size: 18.5px; line-height: 1.65; color: #4f4f56; max-width: 560px; margin: 0 0 18px; }
.tc-first { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #4c4fd7; margin-bottom: 36px; }
.tc-first::before { content: ''; width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(140deg, #6a6cff, #3d40c8); box-shadow: 0 0 14px rgba(106,108,255,0.45); }
.tc-portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 34px; overflow: hidden; box-shadow: 0 50px 110px rgba(0,0,0,0.18); }
.tc-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.tc-portrait .cs-live { position: absolute; top: 22px; left: 22px; }
.tc-portrait-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 30px 28px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8)); }
.tc-portrait-meta strong { display: block; font-family: var(--font-display); font-size: 32px; letter-spacing: 0.08em; }
.tc-portrait-meta span { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #dadada; }
.tc-hero .cs-meta { margin-top: 76px; }

.tc-wide { position: relative; z-index: 2; background: #ececec; padding: 0 0 40px; }
.tc-wide figure { margin: 0; border-radius: 34px; overflow: hidden; aspect-ratio: 21 / 9; position: relative; }
.tc-wide img { width: 100%; height: 100%; object-fit: cover; }
.tc-wide figcaption { position: absolute; left: 28px; bottom: 24px; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0,0,0,0.5); }

/* walkthrough */
.tc-walk { position: relative; z-index: 2; background: #ececec; color: #111; padding: 90px 0 60px; }
.tc-walk-head { max-width: 760px; }
.tc-walk-head .cs-lead { margin-top: 4px; }
.tc-walk-note { margin-top: 16px; font-size: 13.5px; color: #7a7a80; }
.tc-walk-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 64px; margin-top: 40px; }
.tc-steps { grid-column: 1; grid-row: 1; padding: 6vh 0 22vh; }
.tc-stage-col { grid-column: 2; grid-row: 1; }
.tc-stage { position: sticky; top: 13vh; height: 74vh; display: flex; align-items: center; }
.tc-step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.25; transition: opacity 0.5s ease; }
.tc-step.is-active { opacity: 1; }
.tc-act { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #4c4fd7; background: rgba(76,79,215,0.08); border: 1px solid rgba(76,79,215,0.22); padding: 7px 13px; border-radius: 100px; margin-bottom: 20px; }
.tc-act svg { width: 14px; height: 14px; }
.tc-step .n { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.22em; color: #9a9aa2; }
.tc-step h3 { font-family: var(--font-display); font-size: clamp(28px, 2.7vw, 40px); line-height: 1.08; font-weight: 700; color: #0d0d0d; margin: 12px 0 16px; }
.tc-step p { font-size: 17px; line-height: 1.65; color: #55555c; margin: 0; max-width: 460px; }

.tc-browser { width: 100%; border-radius: 22px; overflow: hidden; background: #15151b; box-shadow: 0 50px 120px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.08); }
.tc-bbar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #1c1c23; }
.tc-bbar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.tc-url { margin-left: 14px; flex: 1; max-width: 380px; height: 25px; border-radius: 100px; background: rgba(255,255,255,0.07); color: #c5c5cc; font-size: 12px; display: flex; align-items: center; gap: 8px; padding: 0 12px; overflow: hidden; white-space: nowrap; }
.tc-url svg { width: 11px; height: 11px; flex-shrink: 0; opacity: 0.7; }
.tc-url b { font-weight: 500; transition: opacity 0.25s ease; }
.tc-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #d9d6d0; }
.tc-panel { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.tc-panel.is-active { opacity: 1; }
.tc-panel > .pg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(1.03); transition: transform 1.8s cubic-bezier(0.16,1,0.3,1); }
.tc-panel.is-active > .pg { transform: scale(1); }
.tc-panel.is-dim > .pg { filter: brightness(0.62) saturate(0.85); }

.tc-ring { position: absolute; border: 2px solid #5a5df0; border-radius: 12px; box-shadow: 0 0 0 6px rgba(90,93,240,0.18), 0 0 32px rgba(90,93,240,0.45); opacity: 0; transform: scale(1.06); transition: opacity 0.5s ease 0.35s, transform 0.6s cubic-bezier(0.16,1,0.3,1) 0.35s; }
.tc-panel.is-active .tc-ring { opacity: 1; transform: scale(1); animation: tcRing 2.4s ease-in-out 1s infinite; }
@keyframes tcRing { 0%, 100% { box-shadow: 0 0 0 6px rgba(90,93,240,0.18), 0 0 32px rgba(90,93,240,0.45); } 50% { box-shadow: 0 0 0 11px rgba(90,93,240,0.08), 0 0 44px rgba(90,93,240,0.6); } }
.tc-cursor { position: absolute; width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45)); opacity: 0; transform: translate(18px, 18px); transition: opacity 0.4s ease 0.6s, transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.6s; }
.tc-panel.is-active .tc-cursor { opacity: 1; transform: translate(0, 0); }
.tc-toast { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 100px; background: rgba(14,14,20,0.86); color: #fff; font-size: 12px; font-weight: 500; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transform: translateY(-6px); transition: opacity 0.4s ease 0.25s, transform 0.5s ease 0.25s; }
.tc-toast::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6a6cff; box-shadow: 0 0 8px #6a6cff; }
.tc-panel.is-active .tc-toast { opacity: 1; transform: translateY(0); }

/* Defne's widget, mocked faithfully: full panel on the right, or the compact "peek" card */
.tc-defne { position: absolute; top: 12px; right: 12px; bottom: 12px; width: 32%; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,0.96); box-shadow: 0 24px 60px rgba(0,0,0,0.28); }
.tc-peek { position: absolute; right: 12px; bottom: 12px; width: 35%; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,0.96); box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.tc-defne, .tc-peek { opacity: 0; transform: translateX(14px); transition: opacity 0.5s ease 0.15s, transform 0.6s cubic-bezier(0.16,1,0.3,1) 0.15s; }
.tc-panel.is-active .tc-defne, .tc-panel.is-active .tc-peek { opacity: 1; transform: none; }
.tc-dhead { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.tc-dhead img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.tc-dhead b { display: block; font-size: 12.5px; color: #111; line-height: 1.1; }
.tc-dhead small { font-size: 10.5px; color: #7c7c83; }
.tc-wave { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.tc-wave i { width: 2.5px; border-radius: 2px; background: #5a5df0; animation: tcWave 1s ease-in-out infinite; }
.tc-wave i:nth-child(1) { height: 6px; animation-delay: 0s; } .tc-wave i:nth-child(2) { height: 13px; animation-delay: 0.15s; }
.tc-wave i:nth-child(3) { height: 9px; animation-delay: 0.3s; } .tc-wave i:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.tc-wave i:nth-child(5) { height: 7px; animation-delay: 0.6s; }
@keyframes tcWave { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
.tc-dbody { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px; }
.tc-peek .tc-dbody { padding: 10px 12px 12px; }
.tc-msg { max-width: 90%; font-size: 11.5px; line-height: 1.45; padding: 8px 11px; border-radius: 13px; }
.tc-msg.u { align-self: flex-end; background: #15151b; color: #fff; border-bottom-right-radius: 4px; }
.tc-msg.d { align-self: flex-start; background: #f0f0f4; color: #222; border-bottom-left-radius: 4px; }
.tc-panel .tc-msg { opacity: 0; transform: translateY(6px); transition: opacity 0.45s ease, transform 0.45s ease; }
.tc-panel.is-active .tc-msg { opacity: 1; transform: none; }
.tc-panel.is-active .tc-msg:nth-child(1) { transition-delay: 0.45s; }
.tc-panel.is-active .tc-msg:nth-child(2) { transition-delay: 1.05s; }
.tc-panel.is-active .tc-msg:nth-child(3) { transition-delay: 1.65s; }
.tc-dfoot { padding: 9px 12px; border-top: 1px solid rgba(0,0,0,0.06); display: flex; gap: 8px; align-items: center; }
.tc-dfoot span { flex: 1; height: 26px; border-radius: 100px; background: #f2f2f5; font-size: 10.5px; color: #9a9aa2; display: flex; align-items: center; padding: 0 11px; }
.tc-dfoot i { width: 26px; height: 26px; border-radius: 50%; background: #15151b; }
.tc-powered { text-align: center; font-size: 8.5px; color: #a0a0a7; padding: 0 0 7px; letter-spacing: 0.04em; }

/* the in-chat sales form */
.tc-form { padding: 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; justify-content: flex-start; overflow: hidden; }
.tc-form h5 { margin: 2px 0 4px; font-size: 13px; line-height: 1.25; color: #111; font-weight: 600; }
.tc-form h5 em { font-style: italic; color: #8a8a90; font-weight: 400; }
.tc-field { border-bottom: 1px solid rgba(0,0,0,0.12); padding: 3px 0 5px; }
.tc-field small { display: block; font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #8d8d94; }
.tc-field span { font-size: 11.5px; color: #111; }
.tc-check { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: #6c6c73; margin-top: 2px; }
.tc-check i { width: 11px; height: 11px; border-radius: 3px; background: #15151b; flex-shrink: 0; }
.tc-send { position: relative; align-self: flex-start; margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: #15151b; padding: 9px 14px; border-radius: 100px; }
.tc-send::after { content: ''; position: absolute; inset: -5px; border-radius: 100px; border: 2px solid #5a5df0; opacity: 0; transition: opacity 0.4s ease 1.2s; }
.tc-panel.is-active .tc-send::after { opacity: 1; animation: tcRing 2.4s ease-in-out 1.6s infinite; }

/* the sales console */
.tc-console { position: absolute; inset: 0; display: grid; grid-template-columns: 22% 1fr; background: #f3f1ec; font-size: 11px; }
.tc-cside { background: #2a2622; color: #e8e2d8; padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.tc-cside b { font-size: 12px; letter-spacing: 0.1em; margin-bottom: 10px; color: #fff; }
.tc-cside span { padding: 7px 9px; border-radius: 8px; color: #c9c1b4; }
.tc-cside span.on { background: rgba(255,255,255,0.1); color: #fff; }
.tc-cmain { padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.tc-ctop { display: flex; justify-content: space-between; align-items: center; }
.tc-ctop b { font-size: 15px; color: #1d1a17; }
.tc-new { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: #4c4fd7; padding: 5px 10px; border-radius: 100px; }
.tc-lead { background: #fff; border-radius: 14px; padding: 14px; border: 1px solid rgba(0,0,0,0.06); display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tc-lead small { display: block; font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #8d8780; }
.tc-lead span { font-size: 12px; color: #1d1a17; font-weight: 600; }
.tc-journey { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tc-journey span { background: #fff; border: 1px solid rgba(0,0,0,0.08); padding: 5px 10px; border-radius: 100px; color: #3b3732; font-size: 10.5px; }
.tc-journey i { width: 12px; height: 1px; background: #b9b2a8; }
.tc-transcript { background: #fff; border-radius: 14px; padding: 12px 14px; border: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 6px; }
.tc-transcript p { margin: 0; font-size: 10.5px; color: #4a4540; line-height: 1.4; }
.tc-transcript p b { color: #1d1a17; }
.tc-queue { display: flex; gap: 8px; }
.tc-queue div { flex: 1; background: #fff; border-radius: 12px; padding: 10px 12px; border: 1px solid rgba(0,0,0,0.06); display: flex; align-items: center; gap: 8px; color: #3b3732; }
.tc-queue div i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.tc-queue div.late i { background: #e5342b; box-shadow: 0 0 8px rgba(229,52,43,0.6); }

/* actions grid, facts, console, gallery */
.tc-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 52px; }
.tc-action { background: #fff; border-radius: 20px; padding: 22px 20px 20px; border: 1px solid rgba(0,0,0,0.06); transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease, border-color 0.4s ease; }
.tc-action:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); border-color: rgba(76,79,215,0.3); }
.tc-action .ic { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: rgba(76,79,215,0.08); color: #4c4fd7; margin-bottom: 18px; }
.tc-action .ic svg { width: 21px; height: 21px; }
.tc-action b { display: block; font-size: 15px; color: #111; margin-bottom: 6px; }
.tc-action span { font-size: 13px; line-height: 1.5; color: #6c6c73; }

.tc-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid rgba(0,0,0,0.12); }
.tc-fact { padding: 36px 28px 0; border-left: 1px solid rgba(0,0,0,0.12); }
.tc-fact:first-child { border-left: 0; padding-left: 0; }
.tc-fact b { display: block; font-family: var(--font-display); font-size: clamp(36px, 4vw, 60px); line-height: 1; font-weight: 700; color: #0d0d0d; letter-spacing: -0.02em; }
.tc-fact span { display: block; margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: #5f5f66; max-width: 260px; }

.tc-console-sec .ta-list li { color: #3f3f46; }
.tc-console-sec .ta-list li::before { box-shadow: none; }
.tc-honest { display: inline-flex; gap: 10px; align-items: center; margin-top: 8px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid rgba(0,0,0,0.07); font-size: 14px; color: #3f3f46; }
.tc-honest b { color: #4c4fd7; }
.tc-console-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.16); border: 1px solid rgba(0,0,0,0.06); }

.tc-gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 52px; }
.tc-gallery figure { margin: 0; position: relative; border-radius: 26px; overflow: hidden; }
.tc-gallery figure:first-child { grid-row: span 2; }
.tc-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(0.16,1,0.3,1); }
.tc-gallery figure:hover img { transform: scale(1.04); }
.tc-gallery figcaption { position: absolute; left: 20px; bottom: 18px; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,0.55); }

/* =====================================================================
   responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .tc-actions { grid-template-columns: repeat(3, 1fr); }
  .tb-bento { grid-template-columns: repeat(2, 1fr); }
  .tb-c-big { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 880px) {
  .cs-section { padding: 84px 0; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-meta > div { padding: 18px 16px; }
  .cs-meta > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .cs-meta > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.1); }
  .cs-light .cs-meta > div:nth-child(n+3), .tc-hero .cs-meta > div:nth-child(n+3) { border-top-color: rgba(0,0,0,0.12); }
  .cs-next { padding: 70px 0; }
  .cs-next .cs-wrap { grid-template-columns: 1fr; }
  .cs-next-img { width: 100%; aspect-ratio: 16 / 10; }

  .ta-hero, .tc-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .ta-hero { padding-top: 130px; min-height: 0; }
  .ta-portrait, .tc-portrait { aspect-ratio: 4 / 4.4; }
  .ta-numbers, .tb-stats, .tc-facts { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .ta-num, .tb-stat, .tc-fact { padding: 0 0 0 18px; }
  .ta-num:nth-child(odd), .tb-stat:nth-child(odd), .tc-fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .tc-facts { padding-top: 30px; }
  .ta-story { grid-template-columns: 1fr; }
  .ta-story article, .ta-story article + article { padding: 40px 0 0; border-left: 0; }
  .ta-report-grid, .ta-split, .tb-live { grid-template-columns: 1fr; gap: 44px; }
  .ta-split.is-flip .ta-media { order: 0; }
  .ta-chart-card { padding: 26px 18px 22px; border-radius: 22px; }
  .ta-chart { height: 200px; gap: 3px; }
  .ta-bar::after { font-size: 10.5px; }
  .ta-chart-foot, .ta-channels { grid-template-columns: 1fr; }
  .ta-feats { grid-template-columns: 1fr; }
  .ta-lang { grid-template-columns: 76px 1fr 92px; gap: 12px; }

  .tb-hero { padding-top: 130px; }
  .tb-screen-in { border-radius: 22px; aspect-ratio: 4 / 5; }
  .tb-float--br { padding: 12px 14px; }
  .tb-float--br strong { font-size: 18px; }
  .tb-row, .tb-row:nth-child(even) { grid-template-columns: 1fr; gap: 30px; padding: 54px 0; }
  .tb-row:nth-child(even) .cs-shot { order: 0; }
  .tb-bento { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .tb-c-big, .tb-c-wide { grid-column: auto; grid-row: auto; }
  .tb-live-txt { padding: 44px 26px; }
  .tb-live-img { min-height: 340px; }

  .tc-hero { padding-top: 130px; }
  .tc-wide figure { aspect-ratio: 4 / 3; border-radius: 22px; }
  /* phones: the browser frame sticks to the top while the steps scroll beneath it */
  .tc-walk-grid { display: block; margin-top: 28px; }
  .tc-stage-col { position: sticky; top: 64px; z-index: 3; padding: 10px 0 14px; background: linear-gradient(#ececec 86%, rgba(236,236,236,0)); }
  .tc-stage { position: static; height: auto; }
  .tc-steps { padding: 6vh 0 12vh; }
  .tc-step { min-height: 62vh; }
  .tc-defne { width: 46%; }
  .tc-peek { width: 52%; }
  .tc-msg { font-size: 9.5px; padding: 6px 8px; }
  .tc-dhead small, .tc-powered, .tc-dfoot { display: none; }
  .tc-console { grid-template-columns: 1fr; }
  .tc-cside { display: none; }
  .tc-actions { grid-template-columns: 1fr 1fr; }
  .tc-gallery { grid-template-columns: 1fr; }
  .tc-gallery figure:first-child { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-ring, .tc-send::after, .tc-wave i, .cs-live::before { animation: none !important; }
  .ta-bar, .ta-lang .fl, .tc-panel > .pg { transition: none !important; }
}
.tc-gallery { grid-auto-rows: 300px; }
@media (max-width: 880px) { .tc-gallery { grid-auto-rows: 240px; } }
