/* Succession Media homepage v3 (craftberry-inspired). No em/en dashes in copy. */
:root {
  --ink: #0E0F11;
  --ink-2: #17181B;
  --ink-3: #202125;
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .08);
  --text: #F2F2EF;
  --fog: #9B9CA2;
  --fog-2: #85868C;
  --text-2: rgba(242,242,239,.82);
  --line-strong: rgba(255,255,255,.6);
  --paper: #FFFFFF;
  --paper-2: #F1F1EF;
  --ink-fog: #5F6167;
  --blue: #3E6BEB;
  --blue-hi: #5C84F2;
  --gain: #6CC48E;

  --font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(20px, 2.8vw, 40px);
  --max: 1440px;
  --r: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sec: clamp(88px, 9vw, 136px);
  --sec-s: clamp(44px, 4.5vw, 68px);
  --head-gap: clamp(32px, 3.4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

section[id], .anchor { scroll-margin-top: 64px; }
.anchor { display: block; height: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* Type */
.h2 {
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.035em;
}
[data-words] .w { display: inline-block; will-change: transform, opacity; }
.h2, .hero__title, .cta__t { text-wrap: balance; }

/* chapter eyebrow: the recurring thread that numbers the story */
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; font-weight: 500; color: var(--fog); }
.eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-hi); }
.eyebrow b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.team .eyebrow, .guides .eyebrow { color: var(--ink-fog); }
.team .eyebrow b, .guides .eyebrow b { color: var(--ink); }
.system .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: 4px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn--white { background: var(--paper); color: var(--ink); }
.btn--white:hover { background: #DCDCD8; }
.btn--line { border: 1px solid var(--line-strong); color: var(--text); }
.btn--line:hover { background: var(--paper); color: var(--ink); }
.btn--ink-line { border: 1px solid var(--ink); color: var(--ink); }
.btn--ink-line:hover { background: var(--ink); color: var(--paper); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--gain); box-shadow: 0 0 0 0 rgba(108,196,142,.6); animation: live 2.2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(108,196,142,0); } 100% { box-shadow: 0 0 0 0 rgba(108,196,142,0); } }

.ulink { display: inline-block; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ulink:hover { text-decoration-thickness: 2px; }

/* ===== Header ===== */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 76px; padding: 0 var(--gut);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(14,15,17,.94); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--line-2); }
.hdr__logo img { height: 20px; width: auto; }
.hdr__nav {
  display: flex; gap: 2px; padding: 4px;
  background: rgba(40,41,46,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 6px;
}
.hdr__nav a { padding: 8px 16px; font-size: 14px; font-weight: 500; border-radius: 4px; transition: background-color .2s; }
.hdr__nav a:hover { background: rgba(255,255,255,.1); }
.hdr__right { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.hdr__meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; line-height: 1.35; color: var(--fog); }
.hdr:not(.is-solid) .hdr__meta { color: rgba(255,255,255,.82); }
.hdr__meta a { color: var(--text); }
.hdr__burger { display: none; width: 40px; height: 40px; position: relative; }
.hdr__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.hdr__burger span:first-child { top: 15px; }
.hdr__burger span:last-child { top: 24px; }
.hdr__burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--ink); padding: 100px var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: 34px; letter-spacing: -.03em; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.menu__foot { display: flex; flex-direction: column; gap: 16px; }
.menu__foot a { color: var(--fog); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: #111; }
.hero__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.hero__clip.is-on { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(14,15,17,.92) 0%, rgba(14,15,17,.55) 28%, rgba(14,15,17,0) 55%),
    linear-gradient(to right, rgba(14,15,17,.7) 0%, rgba(14,15,17,.35) 45%, rgba(14,15,17,0) 70%),
    linear-gradient(to bottom, rgba(14,15,17,.55) 0%, rgba(14,15,17,0) 18%);
}
.hero__body { padding-bottom: clamp(40px, 6vh, 64px); }
.hero__title {
  font-size: clamp(40px, 4.9vw, 72px);
  line-height: 1.06; font-weight: 400; letter-spacing: -.03em;
  max-width: 15ch;
}
.hero__title { max-width: none; }
.hero__sub { margin-top: 20px; max-width: 46ch; font-size: clamp(16px, 1.15vw, 18px); color: var(--text-2); }
.hero__row { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero__down { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.hero__down:hover { color: #fff; }
/* full-bleed logo band at the foot of the hero */
.hero__logos {
  width: 100%;
  padding: clamp(22px, 2.6vw, 34px) 0 clamp(26px, 3vw, 40px);
  border-top: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(to top, rgba(14,15,17,.72), rgba(14,15,17,.28));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__logos-label { padding: 0 var(--gut); margin-bottom: clamp(18px, 2vw, 26px); font-size: 14px; color: rgba(255,255,255,.72); }

.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.marquee__track { display: flex; width: max-content; animation: slide 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; gap: clamp(56px, 6vw, 104px); padding-right: clamp(56px, 6vw, 104px); }
.marquee__set img { height: 38px; width: auto; max-width: none; object-fit: contain; filter: brightness(0) invert(1); opacity: .96; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ===== Intro ===== */
.intro { padding: var(--sec) 0 var(--sec-s); }
.intro__title { max-width: 26ch; }
.intro__grid { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--ink-2); border-radius: 6px; padding: 20px 18px 24px; min-height: 148px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.stat__k { font-size: 13px; color: var(--fog); line-height: 1.3; }
.stat__v { font-size: clamp(28px, 2.3vw, 40px); letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.intro__p { font-size: 17px; line-height: 1.6; color: var(--fog); max-width: 44ch; }

/* ===== Work reel ===== */
.work { padding-bottom: var(--sec); }
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--head-gap); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 26px; }
.chips__label { width: 100%; font-size: 13px; color: var(--fog); margin-bottom: 6px; }
.chip { height: 34px; padding: 0 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 4px; font-size: 14px; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: rgba(255,255,255,.7); }
.chip.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.reel { position: relative; --cw: min(800px, 64vw); }
.reel__track {
  position: relative;
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 calc(50% - var(--cw) / 2);
  overscroll-behavior-x: contain;
}
.reel__track::-webkit-scrollbar { display: none; }
.case { flex: 0 0 var(--cw); scroll-snap-align: center; transition: opacity .5s var(--ease); opacity: .38; }
.case.is-active { opacity: 1; }
.case[hidden] { display: none; }
.case__media { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--ink-2); transform: scale(.94); transition: transform .6s var(--ease); }
.case.is-active .case__media { transform: scale(1); }
.case__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,12,.55) 0%, rgba(10,10,12,0) 30%, rgba(10,10,12,0) 65%, rgba(10,10,12,.5) 100%); pointer-events: none; }
.case__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
/* autoplay progress bar on the active card (its animationend advances the reel) */
.case__media::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.92); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
.reel.is-auto .case.is-active .case__media::before { animation: reelbar 5s linear forwards; }
.reel.is-paused .case.is-active .case__media::before { animation-play-state: paused; }
@keyframes reelbar { to { transform: scaleX(1); } }
.reel__track.is-jumping .case, .reel__track.is-jumping .case__media { transition: none !important; }
.case.is-active .case__media:hover .case__img { transform: scale(1.03); }
.case__logo { position: absolute; z-index: 1; top: 24px; left: 24px; height: 26px; width: auto; max-width: 170px; object-fit: contain; filter: brightness(0) invert(1); }
.case__tags { position: absolute; z-index: 1; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.case__tags span { font-size: 13px; padding: 5px 11px; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; background: rgba(14,15,17,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.case__body { padding: 22px 14px 0; transition: opacity .4s; }
.case:not(.is-active) .case__body { opacity: 0; }
.case__brand { font-size: 16px; color: var(--text); }
.case__result { margin-top: 10px; font-size: clamp(24px, 2.1vw, 32px); font-weight: 400; letter-spacing: -.03em; line-height: 1.15; }
.gain { color: var(--gain); font-variant-numeric: tabular-nums; }
.case__desc { margin-top: 10px; color: var(--text-2); font-size: 15px; max-width: 62ch; }
.case__ind { display: inline-block; margin-top: 18px; font-size: 13px; padding: 6px 11px; border-radius: 4px; background: var(--ink-3); color: var(--text); }
.case__ind span { color: var(--fog); }
.case__link { display: block; width: max-content; margin-top: 22px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.reel__btn {
  position: absolute; top: calc(var(--cw) / 3); transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(30,31,35,.82); border: 1px solid var(--line); backdrop-filter: blur(8px);
  transition: background-color .2s;
}
.reel__btn:hover { background: var(--paper); color: var(--ink); }
.reel__btn--prev { left: var(--gut); }
.reel__btn--next { right: var(--gut); }
@media (min-width: 981px) and (max-height: 860px) {
  .case__media { aspect-ratio: 16 / 9; }
  .reel__btn { top: calc(var(--cw) * 9 / 32); }
}

/* ===== System / dome ===== */
.system { position: relative; height: 340vh; }
.system__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 96px var(--gut) 0;
}
/* per-pillar background film, low opacity, crossfades with the active pillar */
.system__media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sysclip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s var(--ease); }
.sysclip.is-on { opacity: .28; transform: scale(1); }
.system__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--ink) 0%, rgba(14,15,17,.2) 24%, rgba(14,15,17,.15) 55%, rgba(14,15,17,.55) 82%, var(--ink) 100%),
    radial-gradient(ellipse 70% 60% at 50% 72%, rgba(14,15,17,.7) 0%, rgba(14,15,17,0) 70%);
}
/* horizon: the dome lands on a floor that doubles as the divider into Services */
.system__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,.22) 18%, rgba(255,255,255,.22) 82%, transparent); }
.system__title { text-align: center; max-width: 18ch; margin-bottom: clamp(28px, 6vh, 72px); }
.dome { position: relative; width: min(1160px, 92vw, calc((100vh - 290px) * 2)); aspect-ratio: 2 / 1; flex: none; container-type: inline-size; }
.dome__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dome__core { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); text-align: center; width: min(520px, 80%); }
.dome__mark { width: clamp(36px, 5cqw, 54px); height: auto; margin: 0 auto clamp(10px, 1.8cqw, 20px); }
.dome__line { font-size: clamp(20px, 2.8cqw, 30px); letter-spacing: -.03em; line-height: 1.15; }
.dome__sub { margin-top: 8px; color: var(--fog); font-size: clamp(13px, 1.5cqw, 15px); }
.pillars { position: absolute; left: 0; right: 0; top: 50%; bottom: 0; pointer-events: none; }
.pillar {
  position: absolute; left: 50%; top: 0; width: min(380px, 80vw);
  text-align: center; pointer-events: auto;
  transform: translate(-50%, 0);
  will-change: transform, opacity;
}
.pillar h3 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.pillar p { margin: 12px auto 0; color: var(--text-2); font-size: 15px; max-width: 34ch; }

/* ===== Services ===== */
.svc { padding: var(--sec) 0; }
.svc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.svc__aside { position: sticky; top: 112px; }
.svc__aside p { margin-top: 20px; color: var(--fog); max-width: 34ch; }
.svc__btns { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 30px; }

.acc__item { border-bottom: 1px solid var(--line); }
.acc__item:first-child { border-top: 1px solid var(--line); }
.acc__h { font-weight: 400; }
.acc__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 28px 20px; text-align: left;
  font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.025em; line-height: 1.2;
}
.acc__ic { position: relative; flex: none; width: 16px; height: 16px; margin-top: 7px; }
.acc__ic::before, .acc__ic::after { content: ""; position: absolute; left: 0; right: 0; top: 7.25px; height: 1.5px; background: var(--blue-hi); transition: transform .35s var(--ease); }
.acc__ic::after { transform: rotate(90deg); }
.acc__item.is-open .acc__ic::after { transform: rotate(0deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > .acc__in { overflow: hidden; min-height: 0; }
.acc__in { padding: 0 20px; }
.acc__item.is-open .acc__in { padding-bottom: 32px; }
.acc__in p { color: var(--text-2); max-width: 62ch; }
.acc__tag { color: var(--blue-hi) !important; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 22px; }
.pills li { font-size: 13px; padding: 6px 11px; border-radius: 4px; background: var(--ink-3); color: var(--text); }

/* service accordion: open item is a panel, question left / answer right (desktop) */
.svc .acc__item { transition: background-color .35s; }
.svc .acc__item.is-open { background: var(--ink-2); border-color: transparent; }
@media (min-width: 1100px) {
  .svc .acc__item { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); }
  .svc .acc__item .acc__a { grid-column: 2; grid-row: 1; }
  .svc .acc__item .acc__h { grid-column: 1 / -1; grid-row: 1; }
  .svc .acc__item.is-open .acc__h { grid-column: 1; }
  .svc .acc__item.is-open .acc__q { padding-right: 0; }
  .svc .acc__item.is-open .acc__q .acc__ic { position: absolute; right: 20px; top: 28px; }
  .svc .acc__item { position: relative; }
  .svc .acc__item.is-open .acc__in { padding: 30px 64px 34px 20px; }
}

/* ===== Pixel transition (the act break: machine to people) ===== */
.pixels { position: relative; height: clamp(96px, 11vw, 160px); background: var(--ink); }
.pixels canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pixels--to-ink { background: var(--paper); }

/* ===== Stack: growth loop control room ===== */
.stack { padding: var(--sec-s) 0 var(--sec); }
.stack__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); align-items: end; margin-bottom: var(--head-gap); }
.stack__head p { color: var(--text-2); font-size: 17px; max-width: 52ch; }

.loop {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: radial-gradient(ellipse 55% 75% at 27% 60%, rgba(62,107,235,.18), rgba(62,107,235,0) 70%), var(--ink-2);
}
.loop::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 27% 58%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 75% at 27% 58%, #000 25%, transparent 75%);
}

/* step row: the loop in reading order, doubles as the tab list */
.loop__steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); scrollbar-width: none; }
.loop__steps::-webkit-scrollbar { display: none; }
.lstep { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 18px 20px 20px; text-align: left; border-right: 1px solid var(--line-2); transition: background-color .3s; }
.lstep:last-child { border-right: 0; }
.lstep:hover { background: rgba(255,255,255,.03); }
.lstep__s { font-size: 13px; color: var(--fog-2); transition: color .3s; }
.lstep__n { font-size: 15px; color: var(--fog); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.lstep.is-on { background: rgba(62,107,235,.09); }
.lstep.is-on .lstep__s { color: var(--blue-hi); }
.lstep.is-on .lstep__n { color: var(--text); }
.lstep__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue-hi); transform: scaleX(0); transform-origin: left center; }
.loop.is-auto .lstep.is-on .lstep__bar { animation: loopbar 6.5s linear forwards; }
.loop:not(.is-auto) .lstep.is-on .lstep__bar { transform: scaleX(1); }
.loop.is-paused .lstep.is-on .lstep__bar { animation-play-state: paused; }
@keyframes loopbar { to { transform: scaleX(1); } }

.loop__body { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding: clamp(28px, 3.2vw, 48px); }

/* the map */
.loop__map { position: relative; width: 100%; max-width: min(580px, calc((100vh - 200px) * 1.15)); aspect-ratio: 600 / 520; justify-self: center; }
.loop__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop__ring { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.5; }
.loop__comet, .loop__tail { fill: none; stroke-linecap: round; animation: comet 9s linear infinite; }
.loop__comet { stroke: #B5C8FF; stroke-width: 3; stroke-dasharray: 40 960; animation-delay: -1.2s; filter: drop-shadow(0 0 6px rgba(92,132,242,.95)); }
.loop__tail { stroke: #5C84F2; stroke-width: 2; stroke-dasharray: 170 830; opacity: .45; }
@keyframes comet { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.loop__spoke { stroke: rgba(255,255,255,.13); stroke-width: 1; stroke-dasharray: 3 7; transition: stroke .4s; }
.loop__spoke.is-on { stroke: rgba(122,155,245,.95); stroke-width: 1.6; animation: spoke 1.4s linear infinite; }
@keyframes spoke { to { stroke-dashoffset: 10; } }

.lnode {
  --d: 56px;
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: translate(-50%, calc(var(--d) / -2));
}
.lnode--core { --d: 84px; }
.lnode__dot {
  position: relative; width: var(--d); height: var(--d); border-radius: 50%;
  display: grid; place-items: center;
  background: #1C1D22; border: 1px solid rgba(255,255,255,.16);
  transition: transform .45s var(--ease), background-color .3s, border-color .3s, box-shadow .45s;
}
.lnode__dot img, .lnode__dot svg { width: 24px; height: 24px; }
.lnode__dot img { filter: brightness(0) invert(1); opacity: .82; }
.lnode--core .lnode__dot { background: #141519; }
.lnode--core .lnode__dot img { width: 32px; height: 32px; }
.lnode--core .lnode__dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(92,132,242,.6); opacity: 0; }
.lnode--core.is-on .lnode__dot::after { opacity: 1; animation: ping 2.8s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.lnode__l { font-size: 13px; color: var(--fog); white-space: nowrap; transition: color .3s; }
.lnode:hover .lnode__dot { border-color: rgba(255,255,255,.45); }
.lnode.is-on .lnode__dot { background: var(--blue); border-color: var(--blue-hi); transform: scale(1.14); box-shadow: 0 0 0 8px rgba(62,107,235,.16), 0 0 44px rgba(62,107,235,.6); }
.lnode.is-on .lnode__dot img { opacity: 1; }
.lnode.is-on .lnode__l { color: var(--text); }

/* the detail panel */
/* all panels share one grid cell, so the box keeps the tallest panel's height and nothing below jumps */
.loop__panels { display: grid; align-content: center; justify-items: start; }
.lpanel { grid-area: 1 / 1; width: 100%; }
.lpanel[hidden] { display: block; visibility: hidden; }
.lpanel__cta { grid-row: 2; }
.lpanel.is-on { animation: lpanelIn .55s var(--ease) both; }
@keyframes lpanelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lpanel__role { font-size: 14px; font-weight: 500; color: var(--blue-hi); }
.lpanel__t { margin-top: 12px; font-size: clamp(28px, 2.6vw, 38px); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.lpanel__d { margin-top: 18px; font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 46ch; }
.lpanel__cols { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.lpanel__k { font-size: 13px; color: var(--fog); margin-bottom: 12px; }
.lpanel__list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; color: var(--text); }
.lpanel__list li + li { margin-top: 9px; }
.lpanel__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-hi); }
.lpanel__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lpanel__chips li { font-size: 13px; padding: 6px 11px; border-radius: 4px; color: var(--text); background: var(--ink-3); }
.lpanel__cta { margin-top: 34px; }

/* ===== Proof rail ===== */
.proof { padding: 0 0 var(--sec); }
.proof__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--head-gap); }
.rail {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  scroll-padding-left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
}
.rail::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 min(540px, 86vw); scroll-snap-align: start; background: var(--ink-2); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; }
.pcard__shot { border-radius: 6px; overflow: hidden; background: #fff; aspect-ratio: 2 / 1; }
.pcard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 1.2s var(--ease); transform-origin: left top; }
.pcard:hover .pcard__shot img { transform: scale(1.04); }
.pcard__play { position: relative; display: block; width: 100%; border-radius: 6px; overflow: hidden; aspect-ratio: 2 / 1; background: #000; }
.pcard__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard__play:hover img { transform: scale(1.03); }
.pcard__pi { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; }
.pcard__play iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pcard__body { padding: 22px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.pcard__v { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.pcard__k { margin-top: 6px; color: var(--gain); font-size: 16px; }
.pcard__src { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--fog); border-top: 1px solid var(--line-2); }
.pcard--video .pcard__src { margin-top: 0; padding-top: 0; border-top: 0; order: -1; margin-bottom: 10px; }
.pcard__q { font-size: 21px; letter-spacing: -.02em; line-height: 1.3; }
.pcard__who { margin-top: auto; padding-top: 22px; font-size: 14px; color: var(--fog); }
.pcard__who b { display: block; color: var(--text); font-weight: 500; }

/* ===== Team (white) ===== */
.team { background: var(--paper); color: var(--ink); padding: var(--sec-s) 0; }
.team__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: start; }
.team__head .h2 { max-width: 18ch; }
.ltiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ltiles li { background: var(--paper-2); border-radius: 6px; padding: 18px 20px 20px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.ltiles span { font-size: 13px; color: var(--ink-fog); line-height: 1.3; }
.ltiles b { font-weight: 400; font-size: clamp(32px, 2.8vw, 44px); letter-spacing: -.035em; line-height: 1; }
.team__grid { margin-top: var(--head-gap); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mate img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 6px; filter: grayscale(1) contrast(1.04); transition: filter .5s; background: var(--paper-2); }
.mate:hover img { filter: grayscale(0); }
.mate h3 { margin-top: 18px; font-size: 21px; font-weight: 400; letter-spacing: -.02em; }
.mate p { margin-top: 4px; color: var(--ink-fog); font-size: 15px; }
.mate .ulink { margin-top: 12px; font-size: 14px; }

/* ===== Guides (white) ===== */
.guides { background: var(--paper); color: var(--ink); padding: var(--sec-s) 0; }
.guides__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--head-gap); }
.guides__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide { display: flex; flex-direction: column; }
.guide__img { display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--paper-2); border: 1px solid #E6E6E3; }
.guide__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s var(--ease); }
.guide:hover .guide__img img { transform: scale(1.03); }
.guide__cat { margin-top: 18px; font-size: 13px; color: var(--blue); font-weight: 500; }
.guide__t { margin-top: 8px; font-size: 21px; letter-spacing: -.02em; line-height: 1.25; max-width: 30ch; }
.guide:hover .guide__t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ===== FAQ ===== */
.faq { padding: var(--sec) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.faq__aside { position: sticky; top: 112px; }
.faq__aside p { margin-top: 20px; color: var(--fog); max-width: 34ch; }
.faq__aside .btn { margin-top: 28px; }
.acc--faq .acc__q { padding: 26px 4px; font-size: clamp(19px, 1.5vw, 22px); }
.acc--faq .acc__in { padding: 0 4px; }

/* ===== CTA band ===== */
.cta { position: relative; padding: clamp(110px, 12vw, 190px) 0 clamp(64px, 6vw, 96px); }

/* ===== Finale: CTA band + footer on one continuous background ===== */
.finale { position: relative; isolation: isolate; overflow: hidden; }
.finale__bg { position: absolute; inset: 0; z-index: -2; }
.finale__bg img { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); max-width: none; object-fit: cover; filter: blur(32px) saturate(1.15); }
.finale::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--ink) 0, rgba(14,15,17,0) 90px),
    radial-gradient(ellipse 55% 42% at 82% 10%, rgba(62,107,235,.6), rgba(62,107,235,0) 70%),
    radial-gradient(ellipse 45% 30% at 62% 52%, rgba(108,196,142,.18), rgba(108,196,142,0) 70%),
    radial-gradient(ellipse 50% 40% at 88% 92%, rgba(62,107,235,.28), rgba(62,107,235,0) 70%),
    linear-gradient(100deg, rgba(14,15,17,.9) 0%, rgba(14,15,17,.62) 50%, rgba(14,15,17,.4) 100%),
    linear-gradient(to bottom, rgba(14,15,17,0) 40%, rgba(14,15,17,.5) 100%);
}
.cta__t { font-size: clamp(42px, 5vw, 76px); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
.cta__row { margin-top: 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta__row p { color: var(--text-2); max-width: 40ch; font-size: 17px; }
.cta__acts { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta__mail { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.cta__mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta__copied { position: absolute; right: 0; top: -26px; font-size: 13px; color: var(--gain); }

/* ===== Footer ===== */
.ftr { position: relative; overflow: hidden; padding: 0 0 32px; }
.ftr__grid { padding-top: clamp(56px, 5.5vw, 88px); border-top: 1px solid rgba(255,255,255,.1); }
/* the SM mark: glass gradient + hairline outline, mostly in frame */
.ftr__ghost { position: absolute; right: calc(max(0px, (100vw - var(--max)) / 2) + var(--gut)); bottom: -44px; width: min(30vw, 440px); height: auto; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 40px rgba(62,107,235,.18)); }
.ftr__grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (min-width: 1101px) { .ftr__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.25fr; } }
.ftr__brand img { height: 30px; width: auto; margin-bottom: 36px; }
.ftr__brand, .ftr__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 15px; }
.ftr__k { font-size: 13px; color: var(--fog); margin-bottom: 6px; }
.ftr__col a, .ftr__brand a { color: var(--text-2); }
.ftr__col a:hover, .ftr__brand a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ftr__base { position: relative; margin-top: clamp(64px, 7vw, 110px); padding-top: 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--fog-2); }

/* ===== Floating badge ===== */
.badge { position: fixed; right: 28px; bottom: 104px; z-index: 40; width: 88px; height: 88px; border-radius: 50%; background: rgba(14,15,17,.86); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; transition: transform .4s var(--ease), opacity .4s, background-color .3s; opacity: 0; transform: scale(.6); pointer-events: none; }
.badge.is-on { opacity: 1; transform: scale(1); pointer-events: auto; }
.badge.is-on:hover { transform: scale(1.06); background: var(--blue); }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.badge__ring text { fill: #fff; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; }
.badge__mark { width: 28px; height: auto; fill: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Booking modal ===== */
.book { width: min(920px, 96vw); height: min(780px, 92vh); padding: 0; border: 0; border-radius: var(--r); background: #fff; color: var(--ink); overflow: hidden; }
.book[open] { display: flex; flex-direction: column; }
.book::backdrop { background: rgba(8,8,10,.7); backdrop-filter: blur(4px); }
.book__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #E6E6E3; font-weight: 500; }
.book__x { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.book__x:hover { background: var(--paper-2); }
.book iframe { flex: 1; width: 100%; border: 0; }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .hdr__meta { display: none; }
  .loop__steps { overflow-x: auto; grid-template-columns: repeat(7, minmax(148px, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hdr { grid-template-columns: 1fr auto; height: 64px; }
  .hdr__nav { display: none; }
  .hdr__burger { display: block; }
  .intro__grid, .svc__grid, .stack__head, .faq__grid, .team__head, .loop__body { grid-template-columns: minmax(0, 1fr); }
  .svc__aside, .faq__aside { position: static; }
  .loop__map { max-width: 540px; }
  .svc__btns { flex-direction: row; flex-wrap: wrap; }
  .reel { --cw: 84vw; }
  .reel__btn { display: none; }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guides__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }

  /* system: no sticky orbit on small screens */
  .system { height: auto; }
  .system__stage { position: relative; height: auto; padding: 96px var(--gut) 96px; }
  .dome { margin-top: 40px; width: 100%; aspect-ratio: auto; padding-top: 50%; }
  .dome__svg { inset: 0 0 auto 0; height: auto; aspect-ratio: 2 / 1; }
  .dome__core { top: 14vw; }
  .dome__mark { width: 36px; margin-bottom: 12px; }
  .dome__line { font-size: 19px; }
  .dome__sub { display: none; }
  .pillars { position: static; height: auto; display: grid; gap: 10px; margin-top: 24px; width: 100%; }
  .pillar { position: relative; overflow: hidden; isolation: isolate; transform: none !important; opacity: 1 !important; width: auto; left: auto; top: auto; text-align: left; background: var(--ink-2); border-radius: 6px; padding: 28px 22px; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; }
  .pillar::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(23,24,27,.92) 0%, rgba(23,24,27,.55) 60%, rgba(23,24,27,.25) 100%); }
  .pillar .sysclip { z-index: -1; }
  .pillar .sysclip.is-on { opacity: .55; }
  .system__media { display: none; }
  .pillar p { margin-left: 0; }
  .dome__orb { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hdr__right { gap: 8px; }
  .hdr__logo img { height: 17px; }
  .hero__title br { display: none; }
  .hero__clip { object-position: 68% 50%; }
  .hero__shade { background: linear-gradient(to top, rgba(14,15,17,.95) 0%, rgba(14,15,17,.7) 38%, rgba(14,15,17,.1) 70%), linear-gradient(to bottom, rgba(14,15,17,.5) 0%, rgba(14,15,17,0) 16%); }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .hero__logos-label { font-size: 13px; }
  .marquee__set { gap: 44px; padding-right: 44px; }
  .work__head, .proof__head, .guides__head { flex-direction: column; align-items: flex-start; }
  .work__head > div { width: 100%; min-width: 0; }
  .chips__label { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .work__head .btn { display: none; }
  .guides__grid { gap: 20px; }
  .guide { display: grid; grid-template-columns: 104px 1fr; column-gap: 14px; }
  .guide__img { grid-row: 1 / span 2; aspect-ratio: 1 / 1; }
  .guide__cat { margin-top: 0; }
  .guide__t { font-size: 17px; margin-top: 4px; }
  .stat { min-height: 120px; padding: 16px 16px 18px; }
  .ltiles { grid-template-columns: minmax(0, 1fr); }
  .ltiles li { min-height: 0; flex-direction: row; align-items: center; }
  .acc__q { padding: 22px 6px; }
  .acc__in { padding: 0 6px; }
  .case__logo { top: 16px; left: 16px; height: 20px; }
  .case__tags { left: 10px; bottom: 10px; }
  .case__tags span { font-size: 12px; padding: 4px 8px; }
  .case__body { padding: 18px 4px 0; }
  .badge { display: none; }
  .cta__acts { flex-direction: column; align-items: flex-start; }
  .ftr__base { flex-direction: column; }
  .ftr__ghost { width: 70vw; right: -8vw; bottom: -18vw; opacity: .75; }
  .ftr__brand img { height: 24px; }
  .lnode { --d: 42px; gap: 6px; }
  .lnode--core { --d: 62px; }
  .lnode__dot img, .lnode__dot svg { width: 18px; height: 18px; }
  .lnode--core .lnode__dot img { width: 24px; height: 24px; }
  .lnode__l { font-size: 11px; }
  .lnode.is-on .lnode__dot { box-shadow: 0 0 0 5px rgba(62,107,235,.16), 0 0 26px rgba(62,107,235,.6); }
  .loop__body { padding: 22px 16px 28px; }
  .lpanel__cols { grid-template-columns: minmax(0, 1fr); }
  .lpanel__d { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
