/* intelliDesign studio — styles. One block per build step (see build/intellidesign/PLAN.md). */

/* === [1] FOUNDATION === */

/* ---- Tokens ---- */
:root {
  --bg-black: #000000;
  --panel-dark: #121212;
  --text-white: #FFFFFF;
  --text-muted: #8E8E93;
  --text-inactive: #333333;
  --line: rgba(255, 255, 255, .12);
  --emerald: #10E5A0;
  --sapphire: #2F6BFF;
  --amethyst: #9B5CFF;
  --cyan: #22D3EE;
  --glow: linear-gradient(90deg, var(--emerald), var(--cyan), var(--sapphire), var(--amethyst));
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 64px);

  /* foundation helpers */
  --header-h: 64px;
  --maxw: 1440px;
  --line-strong: rgba(255, 255, 255, .22);
  --panel-glass: rgba(10, 10, 10, .72);
  --marquee-ink: #2E2E33;
  --radius: 18px;
  --radius-pill: 999px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
html {
  scroll-padding-top: calc(var(--header-h) + 24px); /* anchor jumps clear the fixed header */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg-black);
  color-scheme: dark;
}
body {
  min-height: 100vh;
  background: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.08; letter-spacing: -.02em; overflow-wrap: break-word; }
p, li { overflow-wrap: break-word; }
::selection { background: rgba(34, 211, 238, .35); color: var(--text-white); }
[hidden] { display: none !important; }

/* ---- Focus ---- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
.id-main:focus { outline: none; }

/* ---- Utilities ---- */
.id-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.id-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.id-gradient-text {
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.id-arrow { display: inline-block; transition: transform .45s var(--ease); }

.id-skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--text-white);
  color: var(--bg-black);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.id-skip:focus-visible { transform: none; outline-color: var(--emerald); }

/* Buttons */
.id-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.1;
  white-space: nowrap;
  isolation: isolate;
  transition: transform .45s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .45s var(--ease);
}
.id-btn:hover .id-arrow { transform: translateX(4px); }
.id-btn:hover .id-arrow:first-child { transform: translateX(-4px); }
.id-btn:active { transform: scale(.98); }

.id-btn--line {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .02);
  color: var(--text-white);
}
.id-btn--line:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }

.id-btn--glow {
  color: #000;
  background: var(--glow);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset;
  transition: transform .45s var(--ease), background-position .9s var(--ease), box-shadow .45s var(--ease);
}
.id-btn--glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: var(--glow);
  background-size: 200% 100%;
  filter: blur(18px);
  opacity: .55;
  transition: opacity .45s var(--ease), filter .45s var(--ease);
}
.id-btn--glow:hover { background-position: 100% 50%; }
.id-btn--glow:hover::before { opacity: .9; filter: blur(24px); }
@media (prefers-reduced-motion: no-preference) {
  .id-btn--glow::before { animation: id-glow-shift 6s linear infinite; }
}
@keyframes id-glow-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---- Header ---- */
.id-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), -webkit-backdrop-filter .5s var(--ease), backdrop-filter .5s var(--ease);
}
.id-header--scrolled {
  background: var(--panel-glass);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.id-menu-open .id-header {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.id-header__bar {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.id-logo {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: .1em;
  font-size: 15px;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}
.id-logo__intelli {
  font-weight: 300;
  letter-spacing: .3em;
  color: var(--text-white);
}
.id-logo__design {
  font-weight: 800;
  letter-spacing: .2em;
  margin-right: -.2em; /* cancel trailing tracking */
  background: var(--glow);
  background-size: 125% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position .9s var(--ease);
}
.id-logo:hover .id-logo__design { background-position: 100% 0; }

.id-nav__list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.id-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text-muted);
  transition: color .3s var(--ease);
}
.id-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.id-nav__link:hover,
.id-nav__link.is-active,
.id-nav__link[aria-current="page"] { color: var(--text-white); }
.id-nav__link:hover::after,
.id-nav__link.is-active::after,
.id-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.id-exit {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.id-exit:hover { color: var(--text-white); border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }
.id-exit:hover .id-arrow { transform: translateX(-4px); }

.id-burger {
  display: none;
  justify-self: end;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  border-radius: 50%;
}
.id-burger__line {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text-white);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.id-burger__line:first-child { top: 18px; }
.id-burger__line:last-child { top: 25px; }
.id-burger[aria-expanded="true"] .id-burger__line:first-child { top: 21.5px; transform: rotate(45deg); }
.id-burger[aria-expanded="true"] .id-burger__line:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---- Overlay menu ---- */
.id-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  padding-top: var(--header-h);
  background: rgba(0, 0, 0, .94);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.id-overlay--open {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s var(--ease), visibility 0s;
}
.id-overlay::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(47, 107, 255, .22), rgba(155, 92, 255, .1) 50%, transparent);
  pointer-events: none;
}
.id-overlay__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 100%;
  padding-block: clamp(32px, 8vh, 72px) max(32px, env(safe-area-inset-bottom));
}
.id-overlay__list { display: grid; gap: 4px; }
.id-overlay__item, .id-overlay__foot {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.id-overlay--open .id-overlay__item,
.id-overlay--open .id-overlay__foot {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(80ms + var(--i, 0) * 60ms);
}
.id-overlay__item { border-bottom: 1px solid var(--line); }
.id-overlay__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  font-size: clamp(34px, 8vw, 64px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  color: var(--text-white);
  transition: color .3s var(--ease);
}
.id-overlay__num {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.id-overlay__link:hover .id-overlay__label,
.id-overlay__link[aria-current="page"] .id-overlay__label {
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.id-overlay__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.id-exit--overlay { height: 44px; padding: 0 18px; font-size: 14px; color: var(--text-white); border-color: var(--line-strong); }
.id-overlay__mail { font-size: 14px; color: var(--text-muted); transition: color .3s var(--ease); }
.id-overlay__mail:hover { color: var(--text-white); }

/* Scroll lock while the overlay is open */
html.id-locked { overflow: hidden; }
html.id-locked body { padding-right: var(--id-sbw, 0px); }

/* ---- Main ---- */
.id-main { display: block; position: relative; }
.id-main:empty { min-height: var(--header-h); }

/* ---- Footer ---- */
.id-footer {
  position: relative;
  background: var(--bg-black);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* Marquee */
.id-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-block: clamp(28px, 5vw, 72px) clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  user-select: none;
  -webkit-user-select: none;
}
.id-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.id-marquee__group { display: flex; flex: none; align-items: center; }
.id-marquee__item {
  flex: none;
  font-size: clamp(56px, 10.24vw, 184px); /* −36% vs. the original 88–288px */
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.06em;
  white-space: nowrap;
  color: var(--marquee-ink);
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: var(--marquee-ink);
  transition: -webkit-text-fill-color .6s var(--ease);
  padding-bottom: .24em; /* room for descenders: the gradient fill (background-clip: text) stops at the padding box */
  margin-bottom: -.16em;
}
.id-marquee__sep {
  flex: none;
  width: clamp(18px, 2.4vw, 40px);
  height: clamp(18px, 2.4vw, 40px);
  margin-inline: clamp(28px, 4vw, 72px); /* plain gap between phrases (no ball) */
}
/* CSS fallback loop when GSAP is unavailable */
html:not(.id-gsap) .id-marquee__track { animation: id-marquee 60s linear infinite; }
/* Hover: full speed, the text glows in the brand gradient */
.id-marquee__track { transition: filter .6s var(--ease); }
.id-marquee:hover .id-marquee__track { filter: drop-shadow(0 0 22px rgba(34, 211, 238, .45)); }
.id-marquee:hover .id-marquee__item { -webkit-text-fill-color: transparent; }
@keyframes id-marquee { to { transform: translate3d(-50%, 0, 0); } }

/* Matrix */
.id-footer__matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px clamp(24px, 3vw, 56px);
  padding-block: clamp(56px, 7vw, 104px);
}
.id-footer__title {
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.id-footer__list { display: grid; gap: 12px; }
.id-footer__list a {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: rgba(255, 255, 255, .86);
  background: linear-gradient(var(--text-white), var(--text-white)) left bottom / 0 1px no-repeat;
  transition: color .3s var(--ease), background-size .5s var(--ease);
}
.id-footer__list a:hover { color: var(--text-white); background-size: 100% 1px; }

/* Subscribe */
.id-subscribe { margin-top: 32px; }
.id-subscribe__label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-white);
}
.id-subscribe__field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .02);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.id-subscribe__field:focus-within {
  border-color: rgba(34, 211, 238, .7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .12);
}
.id-subscribe.is-invalid .id-subscribe__field { border-color: #FF5C7A; box-shadow: 0 0 0 4px rgba(255, 92, 122, .12); }
.id-subscribe__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 4px 0 18px;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--text-white);
}
.id-subscribe__input::placeholder { color: #5A5A5F; }
.id-subscribe__input:focus-visible { outline: none; }
.id-subscribe__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin-right: 5px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--text-white);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.id-subscribe__btn:hover { background: var(--glow); }
.id-subscribe__btn:hover .id-arrow { transform: translateX(3px); }
.id-subscribe__btn:focus-visible { outline-offset: 2px; }
.id-subscribe.is-sending .id-subscribe__btn { opacity: .6; pointer-events: none; }
.id-subscribe__status {
  min-height: 1.5em;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.id-subscribe.is-invalid .id-subscribe__status { color: #FF8FA3; }
.id-subscribe.is-valid .id-subscribe__status { color: var(--emerald); }

/* Legal strip */
.id-legal { border-top: 1px solid var(--line); }
.id-legal__bar {
  display: flex;
  align-items: center;
  gap: 16px 32px;
  min-height: 72px;
  padding-block: 14px max(14px, env(safe-area-inset-bottom));
  font-size: 12px;
  color: var(--text-muted);
}
.id-legal__copy { margin-right: auto; }
.id-legal__links { display: flex; gap: 24px; }
.id-legal__links a { transition: color .3s var(--ease); }
.id-legal__links a:hover { color: var(--text-white); }
.id-legal__return { min-height: 38px; padding: 0 16px; font-size: 12px; font-weight: 500; }

/* ---- Revision 2: logo image, header CTA, footer nav + logo ---- */
.id-logo__img { display: block; height: 30px; width: auto; }
.id-header__cta { justify-self: end; min-height: 42px; padding: 0 20px; font-size: 14px; }
.id-header__cta[aria-current="page"] { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.id-footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-block: clamp(56px, 7vw, 104px);
}
.id-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 18px clamp(40px, 6vw, 96px);
}
.id-footer__links a {
  font-size: 15px;
  color: var(--text-muted);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .3s var(--ease), background-size .45s var(--ease);
}
.id-footer__links a:hover { color: var(--text-white); background-size: 100% 1px; }
.id-footer__logo img { display: block; height: clamp(32px, 3.4vw, 47px); width: auto; }
@media (max-width: 1024px) {
  .id-header .id-header__bar { grid-template-columns: 1fr auto auto; }
  html:not(.id-js) .id-header .id-header__bar { grid-template-columns: auto 1fr auto; }
  .id-header__cta { min-height: 40px; padding: 0 16px; font-size: 13px; }
}
@media (max-width: 640px) {
  .id-footer__main { flex-direction: column-reverse; align-items: flex-start; }
  .id-footer__links { grid-template-columns: repeat(2, minmax(0, max-content)); grid-template-rows: repeat(3, auto); }
}
@media (max-width: 420px) {
  .id-header__cta .id-arrow { display: none; }
  .id-header__cta { padding: 0 14px; }
  .id-logo__img { height: 24px; }
}

/* ---- Responsive ---- */
@media (min-width: 1440px) {
  :root { --header-h: 72px; }
  .id-logo { font-size: 16px; }
  .id-nav__link { font-size: 14px; }
}

@media (max-width: 1024px) {
  .id-header__bar { grid-template-columns: 1fr auto; }
  .id-nav, .id-header .id-exit { display: none; }
  .id-burger { display: block; }
  .id-footer__matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Without JS the burger cannot open the overlay: keep the links reachable inline */
  html:not(.id-js) .id-burger { display: none; }
  html:not(.id-js) .id-header__bar { grid-template-columns: auto 1fr; }
  html:not(.id-js) .id-nav { display: block; justify-self: end; max-width: 100%; overflow-x: auto; }
  html:not(.id-js) .id-nav__list { gap: 16px; }
}
@media (min-width: 1025px) {
  .id-overlay { display: none; }
}

@media (max-width: 768px) {
  .id-legal__bar { flex-wrap: wrap; }
  .id-legal__copy { flex: 1 1 100%; margin-right: 0; }
  .id-legal__return { margin-left: auto; }
}

@media (max-width: 480px) {
  .id-footer__matrix { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .id-legal__bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .id-legal__return { margin-left: 0; white-space: normal; text-align: left; }
  .id-logo { font-size: 14px; }
  .id-logo__intelli { letter-spacing: .24em; }
  .id-logo__design { letter-spacing: .16em; margin-right: -.16em; }
}

@media (max-width: 375px) {
  .id-overlay__link { gap: 14px; padding: 14px 0; }
  .id-subscribe__input { padding-left: 14px; }
  .id-subscribe__btn { padding: 0 12px; }
}

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

/* === [3a] HERO / MANIFESTOS / CAPABILITIES === */

/* ---- Shared ---- */
.id-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Hero ---- */
.id-hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg-black);
  isolation: isolate;
}
.id-hero__stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.id-hero__layer {
  position: absolute;
  inset: -5%;
  will-change: transform;
}
.id-hero__breathe {
  position: absolute;
  inset: 0;
  transform-origin: 50% 52%;
  will-change: transform;
}
.id-hero__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
}
.id-hero__glow {
  filter: blur(26px);
  opacity: .6;
  will-change: transform;
}
.id-hero__aura {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  opacity: .5;
  will-change: transform;
}
.id-hero__aura--emerald { left: -18vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(16, 229, 160, .55), rgba(16, 229, 160, .12) 55%, transparent); }
.id-hero__aura--sapphire { right: -20vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(47, 107, 255, .7), rgba(47, 107, 255, .15) 55%, transparent); }
.id-hero__aura--amethyst { right: -12vmax; bottom: -26vmax; width: 52vmax; height: 52vmax; background: radial-gradient(closest-side, rgba(155, 92, 255, .6), rgba(155, 92, 255, .12) 55%, transparent); }
.id-hero__aura--cyan { left: 50%; top: 50%; width: 70vmax; height: 26vmax; margin: -13vmax 0 0 -35vmax; opacity: .35; background: radial-gradient(closest-side, rgba(34, 211, 238, .5), transparent); }
.id-hero__label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: .08em;
  fill: #8E8E93;
  fill-opacity: .7;
}
.id-hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 34% at 50% 50%, rgba(0, 0, 0, .66), rgba(0, 0, 0, .3) 60%, transparent),
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .85)),
    linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent 18%, transparent 76%, #000);
}
.id-hero__content {
  position: relative;
  text-align: center;
  padding-top: var(--header-h);
  will-change: transform, opacity;
}
.id-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(18px, 3vh, 32px);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.id-hero__title {
  font-size: clamp(48px, min(10vw, 15.5vh), 156px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.055em;
  color: var(--text-white);
  text-wrap: balance;
}
.id-hero__line { display: block; padding-inline: .04em; }
.id-hero__line--glow {
  padding-bottom: .06em;
  background: linear-gradient(90deg, #10E5A0 0%, #22D3EE 30%, #2F6BFF 62%, #9B5CFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.id-hero__sub {
  max-width: none;
  margin: clamp(18px, 3vh, 32px) auto 0;
  white-space: nowrap; /* one line on desktop + tablet; phones may wrap (see ≤640) */
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: -.01em;
  color: rgba(255, 255, 255, .72);
}

.id-hero__desc {
  max-width: 40em;
  margin: clamp(12px, 2vh, 20px) auto 0;
  font-size: clamp(17px, 1.35vw, 20px); /* same as the section ledes */
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

@media (max-width: 640px) { .id-hero__sub { max-width: 34ch; white-space: normal; } }

/* Hero motion without GSAP: CSS keyframe loops (GSAP drives the same elements when present) */
@media (prefers-reduced-motion: no-preference) {
  html:not(.id-gsap) .id-hero__dash { animation: id-hero-flow var(--dur, 8s) linear var(--delay, 0s) infinite; }
  html:not(.id-gsap) .id-hero__breathe--a { animation: id-hero-breathe 9s ease-in-out infinite alternate; }
  html:not(.id-gsap) .id-hero__breathe--b { animation: id-hero-breathe 12s ease-in-out -4s infinite alternate-reverse; }
  html:not(.id-gsap) .id-hero__node { animation: id-hero-float 6s ease-in-out infinite alternate; }
  html:not(.id-gsap) .id-hero__node:nth-of-type(2n) { animation-duration: 7.5s; animation-delay: -3s; }
  html:not(.id-gsap) .id-hero__orbit { animation: id-hero-orbit var(--dur, 24s) linear infinite; }
  html:not(.id-gsap) .id-hero__orbit--rev { animation-direction: reverse; }
  html:not(.id-gsap) .id-hero__gl { animation: id-hero-pulse 4.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .14s); }
  html:not(.id-gsap) .id-hero__aura { animation: id-hero-drift 18s ease-in-out infinite alternate; }
}
@keyframes id-hero-flow { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes id-hero-breathe { from { transform: scaleY(.86) translateY(-1.5%); } to { transform: scaleY(1.16) translateY(1.5%); } }
@keyframes id-hero-float { from { transform: translate(0, -14px); } to { transform: translate(8px, 14px); } }
@keyframes id-hero-orbit { to { transform: rotate(360deg); } }
@keyframes id-hero-pulse { 0%, 70%, 100% { opacity: .55; } 35% { opacity: 1; } }
@keyframes id-hero-drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
.id-hero__gl { opacity: .55; }

/* ---- Manifestos ---- */
.id-manifesto {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-block: calc(var(--header-h) + clamp(32px, 6vh, 72px)) clamp(48px, 8vh, 96px);
  background: var(--bg-black);
  overflow: hidden;
}
.id-manifesto::before {
  content: "";
  position: absolute;
  inset: 20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(closest-side, rgba(47, 107, 255, .12), rgba(155, 92, 255, .05) 55%, transparent);
  pointer-events: none;
}
.id-manifesto--synthesis::before { inset: 20% auto auto -10%; background: radial-gradient(closest-side, rgba(16, 229, 160, .1), rgba(34, 211, 238, .05) 55%, transparent); }
.id-manifesto__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
}
.id-manifesto--synthesis .id-manifesto__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.id-manifesto--synthesis .id-manifesto__media { order: -1; }
.id-manifesto__title {
  margin-bottom: clamp(20px, 3.4vh, 36px);
  font-size: clamp(36px, min(5vw, 8vh), 76px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}
.id-manifesto__text {
  max-width: 30em;
  font-size: clamp(15.84px, min(1.584vw, 2.552vh), 25.52px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.022em;
}
.id-manifesto--synthesis .id-manifesto__text { font-size: clamp(15.84px, min(1.584vw, 2.552vh), 25.52px); }
.id-manifesto__cta { margin-top: clamp(24px, 3.5vh, 40px); }
/* Scrub mode: the CTA waits until every word is white, then slides in (and back out on reverse) */
.id-manifesto.is-scrub .id-manifesto__cta {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
}
.id-manifesto.is-scrub.is-lit .id-manifesto__cta { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.id-manifesto__lead { font-weight: 700; }
.id-word { color: var(--text-white); }
.id-manifesto.is-scrub .id-word { color: var(--text-inactive); }
.id-manifesto__media { position: relative; }
.id-manifesto__media::after {
  content: "";
  position: absolute;
  inset: 12% 8% -8%;
  z-index: -1;
  background: var(--glow);
  filter: blur(60px);
  opacity: .22;
  border-radius: 50%;
}
.id-manifesto__frame {
  position: relative;
  height: min(66vh, 680px);
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  background: #000;
}
.id-manifesto__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* ---- Capabilities ---- */
.id-caps {
  position: relative;
  padding-top: clamp(96px, 14vh, 180px);
  background: var(--bg-black);
}
.id-caps__intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 8px clamp(32px, 5vw, 96px);
  margin-bottom: clamp(40px, 6vh, 72px);
}
.id-caps__intro .id-eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
.id-caps__title {
  font-size: clamp(36px, 5.4vw, 84px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  text-wrap: balance;
}
.id-caps__lede {
  max-width: 40ch;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--text-muted);
}

.id-caps__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(56px, 8vh, 96px);
}
.id-caps__hud {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 20px;
}
.id-caps__count {
  display: none; /* counter removed at the user's request; JS still updates it harmlessly */
  flex: none;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.id-caps__current {
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.id-caps__total { color: var(--text-muted); font-weight: 500; }
.id-caps__name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.id-caps__progress {
  position: relative;
  flex: 1 1 120px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.id-caps__bar {
  position: absolute;
  inset: 0;
  background: var(--glow);
  transform: scaleX(.0769);
  transform-origin: 0 50%;
  box-shadow: 0 0 12px rgba(34, 211, 238, .7);
}
.id-caps__nav { display: flex; gap: 8px; flex: none; }
.id-caps__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 16px;
  color: var(--text-white);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
}
.id-caps__btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.id-caps__btn:disabled { opacity: .3; cursor: default; background: none; }

/* Native track (default: no JS, no GSAP, reduced motion, ≤768px) */
.id-caps__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.id-caps__viewport::-webkit-scrollbar { display: none; }
.id-caps__viewport:focus-visible { outline-offset: -2px; border-radius: 0; }
.id-caps__track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-inline: var(--gutter);
}
.id-cap {
  flex: 0 0 auto;
  width: min(78vw, 1080px);
  scroll-snap-align: start;
}
.id-cap__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 56px);
  height: 100%;
  padding: clamp(18px, 2.4vw, 36px);
  border: 1px solid var(--line); /* same as the Echoes and story cards */
  border-radius: 28px;
  background: #0B0B0C;
  overflow: hidden;
  transition: border-color .6s var(--ease);
}
.id-cap__card:focus-visible { outline-offset: -2px; }
.id-cap__copy { display: flex; flex-direction: column; min-width: 0; }
.id-cap__title {
  font-size: clamp(32.5px, min(3.25vw, 5.5vh), 52.5px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
/* The title link stretches over the whole card (the card is the click target for capabilities.html#cap-NN) */
.id-cap__link { color: inherit; }
.id-cap__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.id-cap__link:focus-visible { outline: none; }
.id-cap__card:has(.id-cap__link:focus-visible) { outline: 2px solid var(--cyan, #22D3EE); outline-offset: -2px; }
.id-cap__kicker {
  margin-top: clamp(10px, 1.6vh, 16px);
  font-size: clamp(17px, min(1.45vw, 2.5vh), 22px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: rgba(255, 255, 255, .9);
}
.id-cap__body {
  margin-top: clamp(10px, 1.6vh, 16px);
  font-size: clamp(14px, min(1.08vw, 1.95vh), 16px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-muted);
}
.id-cap__spec {
  margin-top: clamp(14px, 2.6vh, 28px);
  padding-top: clamp(12px, 2vh, 20px);
  border-top: 1px solid var(--line);
}
.id-cap__label {
  margin-bottom: 10px;
  font-size: 12.65px; /* +15% */
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.id-cap__list { display: grid; gap: clamp(6px, 1.1vh, 10px); }
.id-cap__item {
  position: relative;
  padding-left: 20px;
  font-size: clamp(15.5px, min(1.17vw, 2.13vh), 17.25px); /* +15% */
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, .9);
}
.id-cap__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 8px rgba(34, 211, 238, .6);
}
.id-cap__list--long { gap: clamp(4px, .8vh, 8px); }
.id-cap__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.id-cap__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Empty image slot (manifestos + capability cards) until final imagery lands */
.id-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .035), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .03) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .03) 39px 40px),
    #050505;
}
.id-ph__mark {
  position: relative;
  width: 44px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
.id-ph__mark::before { /* sun */
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.id-ph__mark::after { /* horizon */
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 9px;
  height: 1px;
  background: var(--line-strong);
}
.id-ph__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Pinned horizontal mode (studio.js adds .is-pinned on ≥769px with GSAP and motion allowed).
   Cards are narrower than the viewport so the next one peeks in; the HUD + track sit centred. */
.id-caps { --cap-gap: clamp(16px, 2vw, 28px); }
.id-caps.is-pinned .id-caps__stage {
  height: 100vh;
  justify-content: center;
  padding-top: calc(var(--header-h) + clamp(8px, 1.6vh, 20px));
  padding-bottom: clamp(16px, 3vh, 36px);
}
.id-caps.is-pinned .id-caps__viewport {
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
  scroll-snap-type: none;
}
.id-caps.is-pinned .id-caps__track {
  width: 100%;
  gap: var(--cap-gap);
  padding-inline: max(var(--gutter), (100% - var(--maxw)) / 2 + var(--gutter));
  will-change: transform;
}
.id-caps.is-pinned .id-cap {
  flex: 0 0 auto;
  /* Card + gap + 10% of the next card fill the track from the left padding to the viewport edge */
  width: min(1400px, calc((100% + max(var(--gutter), (100vw - var(--maxw)) / 2 + var(--gutter)) - var(--cap-gap)) / 1.1));
  height: min(68vh, 620px);
}
.id-caps.is-pinned .id-cap__card { align-items: stretch; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.id-caps.is-pinned .id-cap__title { font-size: clamp(30px, min(2.875vw, 5vh), 45px); }
.id-caps.is-pinned .id-cap__kicker { font-size: clamp(15px, min(1.2vw, 2.2vh), 18px); }
.id-caps.is-pinned .id-cap__spec { margin-top: clamp(10px, 1.8vh, 18px); padding-top: clamp(8px, 1.4vh, 14px); }
.id-caps.is-pinned .id-cap__list--long { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.id-caps.is-pinned .id-cap__copy { justify-content: center; min-height: 0; }
.id-caps.is-pinned .id-cap__media {
  align-self: center;
  max-height: 100%;
}
@media (max-width: 1180px) {
  .id-caps.is-pinned .id-cap { height: min(68vh, 560px); }
  .id-caps.is-pinned .id-cap__card { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .id-caps.is-pinned .id-cap__body { font-size: 14px; line-height: 1.5; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .id-manifesto__inner,
  .id-manifesto--synthesis .id-manifesto__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .id-caps__intro { grid-template-columns: minmax(0, 1fr); }
  .id-caps__name { display: none; }
}

@media (max-width: 768px) {
  .id-hero__title { font-size: clamp(44px, 13.4vw, 96px); }
  .id-hero__layer { inset: -2%; }
  .id-hero__label { display: none; }
  .id-manifesto { min-height: 0; padding-block: clamp(72px, 14vw, 112px); }
  .id-manifesto__inner,
  .id-manifesto--synthesis .id-manifesto__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .id-manifesto--synthesis .id-manifesto__media { order: 0; }
  .id-manifesto__text,
  .id-manifesto--synthesis .id-manifesto__text { font-size: clamp(16.5px, 4.224vw, 22px); }
  .id-manifesto__frame { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .id-caps { padding-top: clamp(72px, 14vw, 112px); }
  .id-caps__hud { gap: 14px; }
  .id-cap { width: min(80vw, 480px); }
  .id-cap__card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    align-content: start;
    gap: 22px;
    padding: 14px 14px 24px;
  }
  .id-cap__media { order: -1; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) - 4px); }
  .id-cap__copy { padding-inline: 8px; }
  .id-cap__title { font-size: clamp(32.5px, 9.25vw, 42.5px); }
  .id-cap__kicker { font-size: 17px; }
  .id-cap__body { font-size: 14.5px; line-height: 1.55; }
  .id-cap__item { font-size: 16.1px; }
}

@media (max-width: 480px) {
  .id-hero__eyebrow { font-size: 10px; letter-spacing: .12em; padding: 7px 12px; }
  .id-caps__btn { width: 40px; height: 40px; }
  .id-cap__body { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .id-cap__card { gap: 16px; }
}

/* === [3b] WORKFLOW / ECHOES / PORTFOLIO === */

/* ---- Shared section intro (workflow, echoes, portfolio) ---- */
.id-workflow__intro,
.id-echoes__intro,
.id-portfolio__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 8px clamp(32px, 5vw, 96px);
}
.id-workflow__intro .id-eyebrow,
.id-echoes__intro .id-eyebrow,
.id-portfolio__head .id-eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
.id-workflow__lede,
.id-echoes__lede,
.id-portfolio__lede {
  max-width: 30em;
  padding-bottom: .35em;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---- Workflow matrix ---- */
.id-workflow {
  position: relative;
  padding-block: clamp(96px, 14vh, 180px);
  background: var(--bg-black);
  isolation: isolate;
}
.id-workflow__intro { margin-bottom: clamp(48px, 8vh, 96px); }
.id-workflow__title {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .95;
}
.id-workflow__track {
  --node: 18px;
  --num: clamp(48px, 12vw, 64px);
  position: relative;
}
.id-workflow__svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.id-workflow__svg--glow { filter: blur(9px); opacity: .75; }
.id-workflow__tip { opacity: 0; }
/* Stand-in rail until studio.js has measured the nodes and drawn the path */
.id-workflow__track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--node) / 2 - 1px);
  width: 2px;
  background: linear-gradient(180deg, var(--emerald), var(--cyan), var(--sapphire), var(--amethyst));
  opacity: .8;
}
.id-workflow.has-path .id-workflow__track::before { content: none; }

.id-workflow__steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(48px, 9vw, 72px);
  max-width: 720px;
}
.id-step {
  position: relative;
  padding-left: calc(var(--node) + clamp(22px, 5vw, 36px));
  transition: opacity .6s var(--ease);
}
/* With motion: steps start ~70% dark and light up only as the path reaches them (none pre-lit) */
@media (prefers-reduced-motion: no-preference) {
  html.id-gsap .id-workflow:not(.is-scrub) .id-step,
  .id-workflow.is-scrub .id-step:not(.id-step--active) { opacity: .3; }
}
.id-step__node {
  position: absolute;
  left: 0;
  top: calc(var(--num) / 2 - var(--node) / 2);
  width: var(--node);
  height: var(--node);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-black);
  transition: border-color .6s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease);
}
.id-step__node::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--glow);
  background-size: 400% 100%;
  background-position: calc((var(--i) - 1) * 33.333%) 0;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.id-step__num {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
  font-size: var(--num);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  color: #1C1C1E;
}
.id-step__num::after {
  content: attr(data-num);
  position: absolute;
  inset: 0;
  background: var(--glow);
  background-size: 400% 100%;
  background-position: calc((var(--i) - 1) * 33.333%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, .35));
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.id-step__title {
  margin-bottom: 12px;
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--text-muted);
  transition: color .6s var(--ease);
}
.id-step__meta {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .6s var(--ease), border-color .6s var(--ease);
}
.id-step__body {
  max-width: 28em;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  transition: color .6s var(--ease);
}
.id-step--active .id-step__node {
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, .1), 0 0 26px rgba(34, 211, 238, .55);
}
.id-step--active .id-step__node::after { opacity: 1; transform: none; }
.id-step--active .id-step__num::after { opacity: 1; }
.id-step--active .id-step__title,
.id-step--active .id-step__body { color: var(--text-white); }
.id-step--active .id-step__meta { color: var(--text-white); border-color: var(--line-strong); }

/* Wide screens: four columns on a flowing curve; nodes alternate high / low in a band above the copy */
@media (min-width: 1200px) {
  .id-workflow__track { --band: clamp(124px, 17vh, 176px); --num: clamp(56px, 5vw, 84px); }
  .id-workflow__track::before {
    top: calc(var(--band) * .16 + var(--node) / 2 - 1px);
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
    background: var(--glow);
  }
  .id-workflow__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(32px, 3vw, 56px);
    max-width: none;
  }
  .id-step { --ny: calc(var(--band) * .16); padding: var(--band) 0 0; }
  .id-step:nth-child(even) { --ny: calc(var(--band) * .56); }
  .id-step__node { top: var(--ny); }
  .id-step::before { /* stem from the node down to the copy */
    content: "";
    position: absolute;
    left: calc(var(--node) / 2 - .5px);
    top: calc(var(--ny) + var(--node) + 8px);
    height: calc(var(--band) - var(--ny) - var(--node) - 20px);
    width: 1px;
    background: linear-gradient(180deg, var(--line-strong), transparent);
    transition: opacity .6s var(--ease);
  }
  .id-step--active::before { background: linear-gradient(180deg, rgba(34, 211, 238, .7), transparent); }
}

/* Pinned (studio.js: ≥1200 × ≥760, motion allowed) — the whole matrix fits one viewport */
.id-workflow.is-pinned {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-block: calc(var(--header-h) + 3vh) 4vh;
}
.id-workflow.is-pinned .id-workflow__intro { margin-bottom: clamp(28px, 6vh, 72px); }
.id-workflow.is-pinned .id-workflow__title { font-size: clamp(40px, min(6vw, 9vh), 96px); }

/* ---- Echoes ---- */
.id-echoes {
  position: relative;
  padding-block: clamp(96px, 14vh, 180px) clamp(48px, 8vh, 96px);
  background: var(--bg-black);
}
.id-echoes__intro { margin-bottom: clamp(48px, 8vh, 96px); }
.id-echoes__title {
  font-size: clamp(64px, 12vw, 184px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .84;
}
.id-echoes__dot {
  position: relative;
  display: inline-block;
  width: .17em;
  height: .17em;
  margin-left: .1em;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 .12em rgba(255, 255, 255, .5);
  vertical-align: baseline;
}
/* Echo: soft concentric ripples expanding and fading from the orb */
.id-echoes__dot::before,
.id-echoes__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: .012em solid rgba(255, 255, 255, .75);
  box-shadow: 0 0 .06em rgba(255, 255, 255, .4);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .id-echoes__dot::before,
  .id-echoes__dot::after { animation: id-echo-ripple 3.2s cubic-bezier(.22, .61, .36, 1) infinite; }
  .id-echoes__dot::after { animation-delay: 1.6s; }
}
@keyframes id-echo-ripple {
  0% { transform: scale(1); opacity: .85; }
  100% { transform: scale(3.6); opacity: 0; }
}
.id-echoes__grid {
  columns: 3;
  column-gap: clamp(24px, 3vw, 48px);
}
.id-echo {
  position: relative;
  display: block;
  margin: 0 0 clamp(24px, 3vw, 48px);
  padding: clamp(28px, 3vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 55%);
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid; /* keeps each card whole inside its column */
  transition: border-color .5s var(--ease), background-color .5s var(--ease);
}
.id-echo:hover { border-color: var(--line-strong); background-color: rgba(255, 255, 255, .015); }
.id-echo__mark {
  display: block;
  height: 34px;
  margin-bottom: 18px;
  font-size: 84px;
  font-weight: 900;
  line-height: .9;
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.id-echo__pull {
  margin-bottom: 18px;
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.id-echo--xl .id-echo__pull { font-size: clamp(30px, 2.9vw, 46px); line-height: 1.02; letter-spacing: -.045em; }
.id-echo--l .id-echo__pull { font-size: clamp(26px, 2.3vw, 35px); line-height: 1.05; letter-spacing: -.04em; }
.id-echo--s .id-echo__pull { font-size: clamp(19px, 1.45vw, 22px); line-height: 1.18; letter-spacing: -.025em; }
.id-echo__text { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.id-echo__by {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.id-echo__role { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.id-echo__sector { font-size: 14px; color: var(--text-muted); }

/* ---- Portfolio strip ---- */
.id-portfolio {
  position: relative;
  padding-block: clamp(48px, 8vh, 96px) clamp(96px, 14vh, 180px);
  background: var(--bg-black);
}
.id-portfolio__head { margin-bottom: clamp(36px, 6vh, 64px); }
.id-portfolio__title {
  font-size: clamp(36px, 5.4vw, 84px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}
.id-portfolio__viewport {
  --pf-h: clamp(220px, 30vw, 420px);
  --pf-gap: clamp(16px, 2vw, 28px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.id-portfolio__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.id-portfolio__group {
  display: flex;
  flex: none;
  gap: var(--pf-gap);
  padding-right: var(--pf-gap); /* equal trailing gap: one group = exactly half the track */
}
.id-pf { flex: none; width: calc(var(--pf-h) * var(--r)); }
.id-pf__frame {
  position: relative;
  height: var(--pf-h);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  transition: border-color .5s var(--ease);
}
.id-pf:hover .id-pf__frame { border-color: var(--line-strong); }
.id-pf__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  margin-top: 14px;
  padding-inline: 2px;
  font-size: 14px;
  line-height: 1.35;
}
.id-pf__sector { color: var(--text-muted); }
.id-pf__project { font-weight: 600; }

.id-portfolio__more { grid-column: 2; justify-self: start; margin-top: 12px; }
.id-pf__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: clamp(16px, 1.8vw, 26px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .72) 45%, rgba(0, 0, 0, .92) 100%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.id-pf__overlay > * { transform: translateY(10px); transition: transform .55s var(--ease); }
.id-pf:hover .id-pf__overlay,
.id-pf:focus-within .id-pf__overlay { opacity: 1; }
.id-pf:hover .id-pf__overlay > *,
.id-pf:focus-within .id-pf__overlay > * { transform: none; }
.id-pf__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.id-pf__title { font-size: clamp(17px, 1.5vw, 22px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.id-pf__summary {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.id-pf__more {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  align-self: flex-start;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}
.id-pf__more:hover .id-arrow { transform: translateX(4px); }
.id-pf__more::after { content: ""; position: absolute; inset: 0; } /* whole tile opens the story */
.id-pf:focus-within .id-pf__frame { border-color: rgba(255, 255, 255, .4); }
/* Touch: no hover, so the summary and Read more stay visible on every tile */
@media (hover: none) {
  .id-pf { width: max(calc(var(--pf-h) * var(--r)), 250px); }
  .id-pf__overlay { opacity: 1; }
  .id-pf__overlay > * { transform: none; }
  .id-pf__cap { display: none; }
}
/* Without GSAP (or before it boots): CSS keyframe marquee */
html:not(.id-gsap) .id-portfolio__track { animation: id-pf-loop 90s linear infinite; }
html:not(.id-gsap) .id-portfolio__viewport:hover .id-portfolio__track { animation-play-state: paused; }
@keyframes id-pf-loop { to { transform: translate3d(-50%, 0, 0); } }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .id-portfolio__more { grid-column: 1; }
  .id-workflow__intro,
  .id-echoes__intro,
  .id-portfolio__head { grid-template-columns: minmax(0, 1fr); }
  .id-echoes__grid { columns: 2; }
}

@media (max-width: 768px) {
  .id-workflow { padding-block: clamp(72px, 14vw, 112px); }
  .id-echoes { padding-block: clamp(72px, 14vw, 112px) 40px; }
  .id-portfolio { padding-block: 40px clamp(72px, 14vw, 112px); }
  .id-echo__text { font-size: 15px; }
  .id-pf__cap { font-size: 13px; }
}

@media (max-width: 640px) {
  .id-echoes__grid { columns: 1; }
  .id-portfolio__viewport { --pf-h: clamp(200px, 58vw, 280px); }
}

@media (prefers-reduced-motion: reduce) {
  /* Static strip: one set of tiles, swipeable */
  .id-portfolio__track { animation: none !important; transform: none !important; }
  .id-portfolio__group[aria-hidden="true"] { display: none; }
  .id-portfolio__viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .id-portfolio__group { padding-left: var(--gutter); padding-right: var(--gutter); }
  .id-pf { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
}

/* ---- Forge: closing call to action (home + every inner page except contact) ---- */
.id-forge {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 16vh, 200px);
  border-top: 1px solid var(--line);
  background: var(--bg-black);
  text-align: center;
  isolation: isolate;
}
.id-forge::before {
  content: "";
  position: absolute;
  inset: 10% 15%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(47, 107, 255, .16), rgba(155, 92, 255, .08) 50%, transparent);
  filter: blur(40px);
  pointer-events: none;
}
.id-forge__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.id-forge__title {
  max-width: 14ch;
  font-size: clamp(40px, 7vw, 112px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.05em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .06em;
}
.id-forge__text {
  max-width: 36ch;
  margin: clamp(18px, 3vh, 28px) 0 clamp(28px, 4.5vh, 44px);
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text-muted);
}

/* === [4] INNER PAGES === */

/* ---- Shared inner-page head ---- */
.id-page--case .id-main,
.id-page--insight .id-main,
.id-page--contact .id-main { padding-top: calc(var(--header-h) + clamp(48px, 9vh, 112px)); }

.id-inner-head__title,
.id-insight__title,
.id-contact__title {
  font-size: clamp(42px, 7.2vw, 112px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .96;
  text-wrap: balance;
}
.id-inner-head__title { max-width: 14ch; }
.id-inner-head__lede {
  max-width: 38em;
  margin-top: clamp(20px, 3vh, 32px);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--text-muted);
}

/* Industry taxonomy label */
.id-tax {
  display: inline-flex;
  align-items: stretch;
  margin-top: clamp(24px, 4vh, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow: hidden;
  max-width: 100%;
}
.id-tax__key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-right: 1px solid var(--line);
  color: var(--text-muted);
}
.id-tax__key::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 12px rgba(34, 211, 238, .6);
}
.id-tax__value { padding: 9px 16px; color: var(--text-white); }

/* Fact row */
.id-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(40px, 7vh, 72px) 0 0;
  border-top: 1px solid var(--line);
}
.id-facts__item { padding: 20px 24px 4px 0; }
.id-facts__item + .id-facts__item { padding-left: 24px; border-left: 1px solid var(--line); }
.id-facts dt,
.id-pubmeta dt,
.id-contact__label,
.id-panel__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.id-facts dd { margin: 8px 0 0; font-size: 15px; font-weight: 500; line-height: 1.4; }

/* ---- Prose (case narrative + insight article), tuned for OLED reading ---- */
.id-prose {
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.72;
  color: rgba(255, 255, 255, .8);
}
.id-prose > * + * { margin-top: 1.15em; }
.id-prose h2 {
  margin-top: 2.6em;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--text-white);
  scroll-margin-top: calc(var(--header-h) + 32px);
}
.id-prose > h2:first-child { margin-top: 0; }
.id-prose h3 {
  margin-top: 2em;
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--text-white);
}
.id-prose h2 + *,
.id-prose h3 + * { margin-top: .7em; }
.id-prose__lead {
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.015em;
  color: var(--text-white);
}
.id-prose__list { display: grid; gap: .55em; padding-left: 0; }
.id-prose__list li { position: relative; padding-left: 1.7em; }
ul.id-prose__list li::before {
  content: "";
  position: absolute;
  left: .2em;
  top: .78em;
  width: .7em;
  height: 1px;
  background: var(--glow);
}
ol.id-prose__list { counter-reset: id-ol; }
ol.id-prose__list li { counter-increment: id-ol; padding-left: 2.4em; }
ol.id-prose__list li::before {
  content: counter(id-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .2em;
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}
.id-prose__link {
  color: var(--text-white);
  background: var(--glow) left bottom / 100% 1px no-repeat;
  padding-bottom: 1px;
  transition: background-size .5s var(--ease);
}
.id-prose__link:hover { background-size: 100% 2px; }

/* Pull quote */
.id-pull {
  position: relative;
  margin-block: 2.2em;
  padding: .2em 0 .2em clamp(20px, 3vw, 36px);
}
.id-pull::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--emerald), var(--cyan), var(--sapphire), var(--amethyst));
  box-shadow: 0 0 18px rgba(34, 211, 238, .45);
}
.id-pull p {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.22;
  color: var(--text-white);
  text-wrap: balance;
}
.id-pull figcaption {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-muted);
}

/* Checklist */
.id-checklist {
  margin-block: 1.6em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-dark);
  overflow: hidden;
}
.id-checklist__list { display: grid; }
.id-check { position: relative; }
.id-check + .id-check { border-top: 1px solid var(--line); }
.id-check__box,
.id-consent__box {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  position: relative;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #000;
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.id-check__box::after,
.id-consent__box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .3s var(--ease);
}
.id-check__box:checked,
.id-consent__box:checked {
  border-color: transparent;
  background: var(--glow);
  box-shadow: 0 0 14px rgba(34, 211, 238, .35);
}
.id-check__box:checked::after,
.id-consent__box:checked::after { transform: rotate(45deg) scale(1); }
.id-check__box {
  position: absolute;
  left: clamp(16px, 2.4vw, 24px);
  top: 20px;
}
.id-check__label {
  display: block;
  padding: 18px clamp(16px, 2.4vw, 24px) 18px calc(clamp(16px, 2.4vw, 24px) + 38px);
  font-size: .94em;
  line-height: 1.55;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.id-check__box:checked + .id-check__label { color: var(--text-white); }
.id-checklist__score {
  padding: 14px clamp(16px, 2.4vw, 24px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.id-checklist__count { color: var(--text-white); font-variant-numeric: tabular-nums; }

/* ---- Case study ---- */
.id-case__hero { margin: clamp(56px, 9vh, 104px) 0 0; }
.id-case__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-block: 1px solid var(--line);
  overflow: hidden;
}
@supports not (aspect-ratio: 1) {
  .id-case__frame { height: 0; padding-top: 42.857%; }
}
.id-case__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(48px, 7vw, 128px);
  align-items: start;
  padding-block: clamp(72px, 12vh, 144px);
}
.id-case__story { max-width: 68ch; }
.id-case__aside { align-self: stretch; }
.id-case__sticky {
  position: sticky;
  top: var(--id-sticky-top, calc(var(--header-h) + 24px));
  display: grid;
  gap: 16px;
}
.id-panel {
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-dark);
}
.id-panel__title { margin-bottom: 18px; line-height: 1.3; }
.id-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}
.id-metric { min-width: 0; }
.id-metric__fig {
  display: flex;
  align-items: baseline;
  gap: .12em;
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  white-space: nowrap;
}
.id-metric__num {
  background: var(--glow);
  background-size: 160% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.id-metric__unit { font-size: .5em; font-weight: 700; letter-spacing: -.02em; color: var(--text-white); }
.id-metric__label { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.id-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.id-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.id-chip__nn {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .06);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.id-chip:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--text-white); }
.id-panel--cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(47, 107, 255, .22), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(16, 229, 160, .14), transparent 60%),
    var(--panel-dark);
}
.id-panel__cta-title { font-size: clamp(20px, 1.6vw, 24px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.id-panel__text { margin: 10px 0 22px; font-size: 14px; color: var(--text-muted); }
.id-panel--cta .id-btn { width: 100%; }

/* More work */
.id-inner-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: clamp(72px, 12vh, 144px);
}
.id-inner-more__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px 16px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.id-inner-more__k { grid-column: 1 / -1; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.id-inner-more__t { font-size: clamp(20px, 2vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.id-inner-more__link .id-arrow { font-size: 22px; }
.id-inner-more__link:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .03); }
.id-inner-more__link:hover .id-arrow { transform: translateX(6px); }

/* ---- Insight ---- */
.id-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  height: 2px;
  pointer-events: none;
}
.id-progress__bar {
  display: block;
  height: 100%;
  background: var(--glow);
  box-shadow: 0 0 12px rgba(34, 211, 238, .55);
  transform: scaleX(0);
  transform-origin: left;
}
html:not(.id-js) .id-progress { display: none; }
.id-menu-open .id-progress { opacity: 0; }

.id-insight__head { text-align: center; }
.id-insight__head .id-eyebrow { justify-content: center; }
.id-insight__title { max-width: 16ch; margin-inline: auto; }
.id-insight__standfirst {
  max-width: 34em;
  margin: clamp(20px, 3vh, 32px) auto 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}
.id-pubmeta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: clamp(32px, 5vh, 48px) auto 0;
  border-block: 1px solid var(--line);
  max-width: 920px;
}
.id-pubmeta > div { padding: 16px clamp(16px, 2.4vw, 32px); }
.id-pubmeta > div + div { border-left: 1px solid var(--line); }
.id-pubmeta dd { margin: 6px 0 0; font-size: 14px; font-weight: 500; }
.id-tags { margin-top: 28px; }
.id-tags__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.id-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.id-tag:hover { color: var(--text-white); border-color: var(--line-strong); }
.id-tag.is-current {
  position: relative;
  border-color: transparent;
  color: #000;
  font-weight: 600;
  background: var(--glow);
  box-shadow: 0 0 22px rgba(34, 211, 238, .3);
}
.id-reading {
  max-width: 68ch;
  margin: clamp(64px, 10vh, 112px) auto 0;
  padding-inline: var(--gutter);
  box-sizing: content-box;
  color: rgba(235, 235, 245, .82); /* softer than pure white: less halation on OLED */
}
.id-insight__foot { margin-top: clamp(64px, 10vh, 112px); }
.id-insight__cta {
  max-width: 68ch;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.id-insight__cta-text { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -.03em; }

.id-related { padding-block: clamp(96px, 14vh, 160px); }
.id-related__head { margin-bottom: clamp(32px, 5vh, 56px); }
.id-related__title { font-size: clamp(32px, 4vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.id-related__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.id-related__group {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 32px);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.id-related__group--current { border-color: rgba(34, 211, 238, .45); box-shadow: 0 0 0 1px rgba(34, 211, 238, .1), 0 0 40px rgba(47, 107, 255, .12); }
.id-related__group:target { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12); }
.id-related__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.id-related__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.id-related__group--current .id-related__tag { color: var(--text-white); }
.id-related__group--current .id-related__tag::before { background: var(--glow); box-shadow: 0 0 10px rgba(34, 211, 238, .7); }
.id-related__list { display: grid; }
.id-related__list li + li { border-top: 1px solid var(--line); }
.id-rel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 14px 0;
}
.id-rel__t { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.id-rel__d { grid-row: 2; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.id-rel .id-arrow { grid-row: 1 / span 2; align-self: center; color: var(--text-muted); }
.id-rel:hover .id-rel__t { color: var(--text-white); }
.id-rel:hover .id-arrow { transform: translateX(4px); color: var(--text-white); }

/* ---- Contact ---- */
.id-contact { padding-bottom: clamp(96px, 14vh, 160px); }
.id-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.id-contact__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.id-contact__line { display: block; }
.id-contact__title { font-size: clamp(40px, 4.6vw, 84px); text-wrap: initial; }
.id-contact__lede {
  max-width: 30em;
  margin-top: clamp(20px, 3vh, 32px);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--text-muted);
}
.id-contact__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 30em;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
}
.id-contact__pulse {
  flex: none;
  position: relative;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}
@media (prefers-reduced-motion: no-preference) {
  .id-contact__pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--emerald);
    animation: id-pulse-ring 2.4s var(--ease) infinite;
  }
}
@keyframes id-pulse-ring {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(2.2); opacity: 0; }
}
.id-contact__direct { margin-top: clamp(32px, 5vh, 48px); }
.id-contact__label { margin-bottom: 10px; }
.id-contact__mail {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
  background: var(--glow) left bottom / 0 2px no-repeat;
  padding-bottom: 4px;
  transition: background-size .6s var(--ease);
}
.id-contact__mail:hover { background-size: 100% 2px; }
.id-next { margin-top: clamp(32px, 5vh, 48px); }
.id-next__list { display: grid; border-top: 1px solid var(--line); }
.id-next__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.id-next__nn { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--cyan); font-variant-numeric: tabular-nums; }
.id-next__t { font-weight: 600; }
.id-next__m { font-size: 12px; color: var(--text-muted); text-align: right; }

.id-contact__panel {
  position: relative;
  padding: clamp(24px, 3.4vw, 48px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), #070707;
}
.id-form__notice {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 229, 160, .35);
  border-radius: 12px;
  background: rgba(16, 229, 160, .06);
  font-size: 14px;
  color: rgba(255, 255, 255, .9);
}
.id-form__title { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.03em; }
.id-form__intro { margin-top: 8px; font-size: 14px; color: var(--text-muted); }
.id-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
  margin-top: 28px;
}
.id-field { min-width: 0; }
.id-field--wide { grid-column: 1 / -1; }
.id-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
}
.id-field__opt { font-weight: 400; color: var(--text-muted); }
.id-input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-white);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.id-input::placeholder { color: #5A5A5F; }
.id-input:hover { border-color: var(--line-strong); }
.id-input:focus,
.id-input:focus-visible {
  outline: none;
  border-color: rgba(34, 211, 238, .7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .12);
}
.id-input--area { min-height: 160px; resize: vertical; }
.id-select { position: relative; }
.id-select .id-input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.id-select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border: solid var(--text-muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.id-select option,
.id-select optgroup { background: #121212; color: var(--text-white); }
.id-field__hint { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.id-field__error { font-size: 12px; line-height: 1.45; color: #FF8FA3; }
.id-field__error:not(:empty) { margin-top: 8px; }
.id-field.is-invalid .id-input { border-color: #FF5C7A; box-shadow: 0 0 0 4px rgba(255, 92, 122, .12); }
.id-field.is-valid .id-input { border-color: rgba(16, 229, 160, .45); }
.id-consent { display: flex; align-items: flex-start; gap: 14px; }
.id-consent__box { margin-top: 1px; }
.id-consent__label { font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .78); cursor: pointer; }
.id-consent__label a { color: var(--text-white); background: linear-gradient(var(--text-white), var(--text-white)) left bottom / 100% 1px no-repeat; }
.id-field--check.is-invalid .id-consent__box { border-color: #FF5C7A; box-shadow: 0 0 0 4px rgba(255, 92, 122, .12); }
.id-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.id-form__submit { min-height: 56px; padding: 0 32px; font-size: 16px; }
.id-form__submit[aria-busy="true"] { pointer-events: none; opacity: .75; }
.id-form__status { font-size: 13px; color: var(--text-muted); }
.id-form.is-invalid .id-form__status { color: #FF8FA3; }

.id-success { text-align: center; padding: clamp(32px, 6vh, 72px) 0; }
.id-success:focus { outline: none; }
.id-success__mark {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 48px rgba(34, 211, 238, .45);
}
.id-success__mark::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #070707;
}
.id-success__mark::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 20px;
  width: 13px;
  height: 25px;
  border: solid var(--text-white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.id-success__title { font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.045em; }
.id-success__text { max-width: 30em; margin: 14px auto 0; font-size: 16px; line-height: 1.55; color: var(--text-muted); }
.id-success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---- Responsive ---- */
@media (max-width: 1280px) {
  .id-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .id-case__body { grid-template-columns: minmax(0, 1fr); }
  .id-case__story { max-width: none; }
  .id-case__sticky { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .id-panel:first-child { grid-row: span 2; }
  .id-contact__grid { grid-template-columns: minmax(0, 1fr); }
  .id-contact__intro { position: static; }
  .id-contact__title { font-size: clamp(40px, 9vw, 88px); }
  .id-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .id-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .id-facts__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .id-facts__item:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 16px; }
  .id-case__sticky { grid-template-columns: minmax(0, 1fr); }
  .id-panel:first-child { grid-row: auto; }
  .id-inner-more { grid-template-columns: minmax(0, 1fr); }
  .id-pubmeta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
  .id-pubmeta > div + div { border-left: 0; }
  .id-pubmeta > div:nth-child(even) { border-left: 1px solid var(--line); }
  .id-pubmeta > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .id-form__grid { grid-template-columns: minmax(0, 1fr); }
  .id-related__grid { grid-template-columns: minmax(0, 1fr); }
  .id-form__submit { width: 100%; }
  .id-tax { flex-direction: column; border-radius: 14px; }
  .id-tax__key { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .id-facts { grid-template-columns: minmax(0, 1fr); }
  .id-facts__item + .id-facts__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 0; }
  .id-facts__item { padding-top: 16px; padding-bottom: 16px; }
  .id-metrics { gap: 20px 14px; }
  .id-next__item { grid-template-columns: 30px minmax(0, 1fr); }
  .id-next__m { grid-column: 2; text-align: left; }
  .id-success__actions .id-btn { width: 100%; }
}
