/* =========================================================
   Homepage sections (body.brand.home) — hero → drip → strategy orbit,
   "more than ordinary", creative direction, expertise, testimonials.
   Shared tokens, nav, PinCard and footer are in css/brand.css.
   ========================================================= */
/* ---------- 2. Hero ---------- */
.scene { position: relative; }
.hero-s {
  position: relative; overflow: hidden; background: var(--green);
  min-height: 100vh; padding: calc(var(--nav-h) + 24px) 0 48px;
}
.hero-s::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 55% 45%, transparent 45%, rgba(4, 20, 12, .6) 100%);
}
.hero-grid {
  position: relative; z-index: 1; width: min(100% - 40px, 1400px); margin-inline: auto;
  min-height: calc(100vh - var(--nav-h) - 72px);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
}
.hero-left { position: relative; align-self: stretch; display: flex; flex-direction: column; }
.hero-chips { display: grid; gap: 10px; justify-items: start; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px;
  border-radius: 999px; background: rgba(240, 230, 227, .08); border: 1px solid rgba(240, 230, 227, .14);
  font-size: 13px; color: var(--cream-70);
}
.chip b { color: var(--cream); }
.chip-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }
.hero-stack { position: relative; flex: 1; min-height: calc(var(--pw) * 1.1 * 16 / 9 + 60px); margin-top: 40px; }
.hero-stack .pin {
  position: absolute; top: 50%; left: 50%; width: calc(var(--pw) * 1.1);
  margin: calc(var(--pw) * -1.1 * 8 / 9) 0 0 calc(var(--pw) * -.55 - var(--i) * 40px);
  z-index: calc(10 - var(--i));
}
.motion .hero-stack { visibility: hidden; }

.hero-right { justify-self: end; max-width: 660px; }
.hero-title {
  margin: 0; font: 400 clamp(72px, 10.4vw, 172px)/.86 var(--display);
  text-transform: uppercase; letter-spacing: .005em; color: var(--cream);
}
.hero-title .ln { display: block; overflow: hidden; padding-block: .03em; }
.hero-title .ln-in { display: inline-block; will-change: transform; }
.hero-title .ln-muted { color: var(--sage); }
.slashes { display: inline-flex; gap: .06em; margin-left: .14em; vertical-align: .1em; }
.slashes i { display: block; width: .13em; height: .58em; background: var(--red); transform: skewX(-22deg); }
.hero-lead { margin-top: 28px; max-width: 30em; font-size: 16px; line-height: 1.6; color: var(--cream-70); }
.hero-cta { display: flex; align-items: center; gap: 10px; margin-top: 28px; }

/* ---------- 3. Drip + stage (motion) ---------- */
.drip { display: none; }
.motion .scene { height: 100vh; overflow: hidden; }
.motion .scene > .hero-s, .motion .scene > .strategy { position: absolute; inset: 0; }
.motion .drip { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.drip svg { display: block; width: 100%; height: 100%; }
.drip path { fill: var(--cream); }

/* ---------- 4. Strategy ---------- */
.strategy {
  position: relative; z-index: 3; background: var(--cream); color: var(--ink);
  padding: clamp(96px, 12vw, 160px) 20px; text-align: center; overflow: hidden;
}
.strat-label {
  position: absolute; top: calc(var(--nav-h) + 24px); display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.strat-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.strat-label.l { left: 24px; }
.strat-label.r { right: 24px; }
.strat-head {
  margin: 0 auto; font: 400 clamp(44px, 7vw, 112px)/.9 var(--display);
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.strat-head .ln { display: block; }
.strat-head .red { color: var(--red); }
.orbit-badge {
  width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  background: var(--green); color: var(--cream);
  font: 400 17px/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
  box-shadow: 0 24px 50px -18px rgba(15, 46, 31, .7), 0 0 0 8px rgba(23, 64, 43, .12);
}
.orbit-badge svg { width: 30px; height: 42px; color: var(--cream); }

/* Static orbit (reduced motion / no GSAP): pure CSS ring */
html:not(.motion) .orbit { --r: min(34vw, 280px); position: relative; width: calc(var(--r) * 2 + var(--pw) * .5); aspect-ratio: 1; margin: 56px auto 0; }
html:not(.motion) .orbit-ring { position: absolute; inset: 0; }
html:not(.motion) .orbit-ring .slot {
  position: absolute; left: 50%; top: 50%; width: calc(var(--pw) * .5);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1));
}
html:not(.motion) .orbit-ring .pin { width: 100%; border-width: 3px; border-radius: 14px; }
html:not(.motion) .orbit-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion) .orbit-ring { animation: orbit-spin 90s linear infinite; }
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* Motion orbit: the ring is moved to the stage centre and driven by GSAP */
.motion .strategy { background: transparent; padding: 0; }
.motion .strat-label, .motion .strat-head .ln, .motion .orbit-badge { opacity: 0; visibility: hidden; }
.motion .strat-head, .motion .orbit-badge { position: absolute; left: 50%; top: 50%; }
.motion .orbit { position: absolute; inset: 0; pointer-events: none; }
.motion .orbit-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 4; }
.motion .orbit-ring .slot { position: absolute; left: 0; top: 0; width: var(--pw); will-change: transform; }
.motion .orbit-ring .pin { width: 100%; }
.motion .orbit-ring .slot > .pin { will-change: transform; }
@media (max-width: 767px) {
  .orbit-badge { width: 84px; height: 84px; font-size: 10px; gap: 4px; }
  .orbit-badge svg { width: 18px; height: 26px; }
  .strat-label { font-size: 10px; }
  .strat-label.l { left: 16px; }
  .strat-label.r { right: 16px; }
}

/* ---------- 5. More than ordinary ---------- */
.diff { background: var(--cream); padding: 0 clamp(10px, 1.6vw, 24px) clamp(10px, 1.6vw, 24px); }
.diff-panel {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--green); color: var(--cream); border-radius: clamp(28px, 4vw, 56px);
  height: calc(100vh + 5 * 60vh);          /* one 60vh scroll step per table row */
  will-change: transform;
}
.diff-tab {
  position: absolute; left: 50%; top: 0; z-index: 3; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); border: 6px solid var(--cream); color: var(--cream);
}
.diff-tab svg { width: 28px; height: 38px; }
.diff-stage, .diff-copy { position: sticky; top: 0; height: 100vh; align-self: start; }
.diff-stage {
  display: grid; place-items: center; overflow: hidden;
  background: var(--green-d); border-radius: clamp(28px, 4vw, 56px) 0 0 clamp(28px, 4vw, 56px);
}
.diff-ribbon { position: absolute; left: -10%; top: 5%; width: 120%; height: 90%; color: rgba(240, 230, 227, .05); }
.diff-objects { position: relative; width: min(74%, 400px); aspect-ratio: 5 / 6; }
.obj {
  position: absolute; inset: 0; opacity: 0; filter: brightness(.1);
  transform: translateY(40px) scale(.86) rotate(8deg);
  transition: opacity .5s ease, filter .8s ease, transform 1s var(--ease-out);
}
.obj.is-active { opacity: 1; filter: none; transform: none; }
.obj svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
@media (prefers-reduced-motion: no-preference) {
  .obj.is-active svg { animation: obj-float 6s ease-in-out infinite; }
}
@keyframes obj-float {
  0%, 100% { transform: translateY(-10px) rotate(-2.5deg); }
  50% { transform: translateY(10px) rotate(2.5deg); }
}

.diff-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 5vw, 88px) clamp(24px, 4.5vw, 72px); }
.diff-title {
  margin: 0; font: 400 min(5vw, 8.5vh)/.92 var(--display); text-transform: uppercase; color: var(--cream);
}
.diff-title .muted { display: block; color: var(--sage); }
.diff-table-wrap { position: relative; margin-top: clamp(24px, 4vh, 44px); }
.diff-table { position: relative; z-index: 1; width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.diff-table thead th {
  padding: 0 14px 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; color: rgba(240, 230, 227, .55);
}
.diff-table thead th:first-child { text-align: left; }
.diff-table thead th:not(:first-child) { width: 24%; }
.diff-table tbody th, .diff-table td { padding: min(14px, 1.6vh) 14px; transition: color .3s; }
.diff-table tbody th { text-align: left; font-size: 15px; font-weight: 600; color: rgba(240, 230, 227, .6); }
.diff-table td { text-align: center; }
.diff-table tbody tr { cursor: pointer; }
.diff-table tbody tr:focus-visible { outline: none; }
.diff-table tbody tr:focus-visible th { text-decoration: underline; text-underline-offset: 4px; }
.diff-table tr.is-active th { color: var(--cream); }
.mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; vertical-align: middle; }
.mark svg { width: 16px; height: 16px; }
.mark.yes { background: var(--yellow); color: var(--ink); }
.mark.no { background: rgba(240, 230, 227, .06); color: rgba(240, 230, 227, .5); border: 1px solid rgba(240, 230, 227, .14); }
.diff-hl {
  position: absolute; left: 0; right: 0; top: 0; z-index: 0;
  height: var(--h, 0px); transform: translateY(var(--y, 0px));
  border-radius: 16px; background: rgba(240, 230, 227, .08); border: 1px solid rgba(240, 230, 227, .18);
  transition: transform .55s var(--ease-out), height .3s;
}
.diff-hl::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--yellow); }

@media (max-width: 899px) {
  .diff-panel { grid-template-columns: 1fr; height: auto; }
  .diff-stage {
    top: var(--nav-h); height: 44vh; z-index: 1;
    border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  }
  .diff-objects { width: auto; height: 82%; }
  .diff-copy { position: relative; height: auto; padding: 40px 20px 32vh; }
  .diff-title { font-size: clamp(38px, 11vw, 64px); }
  .diff-table tbody th { font-size: 14px; }
  .diff-table thead th:not(:first-child) { width: 22%; }
}

/* ---------- 6. Conversion-led creative direction ---------- */
.conv { position: relative; background: var(--cream); color: var(--ink); }
.motion .conv { height: 420vh; }           /* sticky stage scrolls through this */
.conv-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; padding: 0 20px; }
.conv-copy { position: relative; z-index: 2; text-align: center; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 800;
}
.tag-pill svg { width: 16px; height: 16px; color: var(--red); }
.conv-title {
  margin: 26px 0 0; font: 400 clamp(42px, 7.4vw, 124px)/.9 var(--display);
  text-transform: uppercase; color: var(--ink);
}
.conv-title .ln { display: block; }
.conv-title .grey { color: var(--sage); }
.motion .conv-title .w:not(.grey) { color: rgba(18, 48, 34, .16); }

.conv-cards { position: absolute; inset: 0; }
.cslot { position: absolute; left: calc(50% + var(--x) * 100%); top: calc(50% + var(--y) * 100%); will-change: transform; }
.motion .cslot { left: 50%; top: 50%; }
.cslot .pin { width: 100%; margin: calc(-100% * 8 / 9) 0 0 -50%; }
.cslot.d0 { width: calc(var(--pw) * 1.2); z-index: 3; }              /* near: large, sharp, over the text */
.cslot.d1 { width: calc(var(--pw) * .85); z-index: 1; }
.cslot.d2 { width: calc(var(--pw) * .55); z-index: 0; }              /* far: small, blurred */
.cslot.d1 .pin { filter: blur(1.5px); }
.cslot.d2 .pin { filter: blur(5px); opacity: .85; }
@media (max-width: 767px) {
  .cslot.d0 { width: calc(var(--pw) * .95); }
  .cslot:nth-child(n + 8) { display: none; }
}

/* ---------- Expertise (existing services, restyled) ---------- */
.expertise {
  background: var(--green); color: var(--cream); padding: clamp(96px, 11vw, 150px) 0;
  --card: var(--green-d); --text: var(--cream); --text-2: var(--cream-70); --accent: var(--yellow); --shadow: 0 30px 60px -24px rgba(0, 0, 0, .5);
}
.ex-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.ex-head h2 { font: 400 clamp(44px, 6.4vw, 104px)/.9 var(--display); text-transform: uppercase; color: var(--cream); max-width: 14ch; }
.ex-head h2 .y { color: var(--yellow); }
.ex-stats { display: flex; gap: clamp(20px, 3vw, 40px); }
.ex-stats strong { display: block; font: 400 clamp(36px, 3.6vw, 52px)/1 var(--display); color: var(--yellow); }
.ex-stats span { font-size: 13px; color: var(--cream-70); }
.home .expertise .tile { border: 1px solid rgba(240, 230, 227, .08); border-radius: 24px; }
.home .expertise .tile h3 { font-family: var(--body); font-weight: 700; letter-spacing: -.02em; }
.home .expertise .small-caps { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }

/* ---------- 7. Testimonials ---------- */
.tst {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: 100vh; padding: calc(var(--nav-h) + 48px) 0 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  background: var(--green-d);
}
.tst-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tst::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 46, 31, .5) 0%, rgba(23, 64, 43, .2) 38%, rgba(8, 24, 16, .88) 100%);
}
.tst-title {
  margin: 0; padding: 0 20px; text-align: center; color: #fff;
  font: 400 clamp(56px, 11vw, 190px)/.86 var(--display); text-transform: uppercase;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.tst-carousel:focus-visible { outline-offset: -4px; }
.tst-nav { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.tst-nav button {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--ease-out);
}
.tst-nav button:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); transform: scale(1.06); }
.tst-viewport { overflow: hidden; touch-action: pan-y; cursor: grab; padding: 10px 0; }
.tst-viewport.dragging { cursor: grabbing; }
.tst-track { position: relative; display: flex; gap: 20px; will-change: transform; transition: transform .7s var(--ease-out); }
.tst-card {
  flex: 0 0 clamp(270px, 22vw, 360px); margin: 0; padding: 26px; border-radius: 24px;
  display: flex; flex-direction: column;
  background: rgba(10, 30, 20, .42); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%);
  opacity: .78; transform: scale(.95); user-select: none;
  transition: opacity .5s, transform .6s var(--ease-out), background-color .5s, color .5s, border-color .5s;
}
.tst-card.is-active { opacity: 1; transform: none; background: var(--cream); color: var(--ink); border-color: transparent; }
.tst-track.no-anim, .tst-track.no-anim .tst-card { transition: none; }
.tst-stars { color: var(--yellow); letter-spacing: 2px; font-size: 16px; }
.tst-card h3 { margin-top: 14px; color: inherit; font: 800 21px/1.2 var(--body); letter-spacing: -.01em; }
.tst-card blockquote { flex: 1; margin: 10px 0 0; font-size: 15px; line-height: 1.55; opacity: .85; }
.tst-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.tst-card figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tst-card .t-name { font-size: 14px; font-weight: 700; }
.tst-card .t-meta { font-size: 12px; opacity: .7; }
.verified {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: rgba(255, 255, 255, .14); color: #fff;
}
.tst-card.is-active .verified { background: var(--green); color: var(--cream); }
.tst .note { margin: 0; color: rgba(255, 255, 255, .6); }

/* ---------- Hero, mobile ---------- */
@media (max-width: 767px) {
  .hero-grid { grid-template-columns: 1fr; align-content: start; gap: 24px; }
  .hero-left { display: contents; }
  .hero-chips { order: -1; grid-auto-flow: column; justify-content: start; }
  .chip { font-size: 11px; padding-right: 10px; }
  .chip-ico { width: 22px; height: 22px; }
  .hero-right { justify-self: start; }
  .hero-title { font-size: clamp(60px, 19vw, 96px); }
  .hero-lead { margin-top: 18px; font-size: 14px; }
  .hero-cta { margin-top: 18px; }
  .hero-stack { order: 2; min-height: calc(var(--pw) * 1.1 * 16 / 9 + 40px); margin-top: 0; }
  .motion .hero-stack { display: none; }
}
