/* ==========================================================================
   ADV Solutions — marketing site
   Palette comes from the ADV logo (three blues); amber is the playhead accent.
   ========================================================================== */

:root {
  --ink: #060d18;
  --ink-2: #0b1728;
  --ink-3: #12233a;
  --paper: #f2f5f9;
  --white: #ffffff;

  --blue: #0071bc;
  --blue-deep: #005a9c;
  --sky: #29abe2;
  --teal: #0088b9;
  --amber: #ffb454;

  --text: #0d1b2e;
  --muted: #55657a;
  --line: #d8e0ea;
  --on-dark: #e9f0f8;
  --on-dark-muted: #9db0c6;
  --line-dark: rgba(255, 255, 255, 0.12);

  --serif: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(76px, 10vw, 148px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--text);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
}
/* a single logo bar: slanted left edge, rounded right end */
.kicker::before {
  content: "";
  flex: none;
  width: 26px;
  height: 8px;
  background: currentColor;
  border-radius: 0 99px 99px 0;
  clip-path: polygon(3px 0, 100% 0, 100% 100%, 0 100%);
}
.kicker--dark { color: var(--sky); }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h2 em, .statement em { font-style: italic; color: var(--blue); }
.nixie .h2 em, .footer .h2 em { color: #8fd4f5; }

.statement {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.95rem, 3.5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.body-lg {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
  margin-top: 24px;
}
.nixie .body-lg { color: var(--on-dark-muted); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  padding: 0.95em 1.55em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.8em 1.25em; font-size: 0.92rem; }
.btn--lg { padding: 1.1em 1.8em; font-size: 1.06rem; }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #0a84d6; }
.btn--glow { box-shadow: 0 14px 40px -12px rgba(41, 171, 226, 0.75); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #dff2fc; }

.btn--ghost { border-color: rgba(255, 255, 255, 0.34); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.arrow {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
a:hover > .arrow { transform: translateX(4px); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link--dark { color: #8fd4f5; }
.link--dark:hover { color: var(--white); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 28px), 1180px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 8px 9px 8px 24px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 999px;
  box-shadow: 0 12px 44px -14px rgba(3, 10, 22, 0.55), 0 0 0 1px rgba(13, 27, 46, 0.06);
}
.nav__brand { flex: none; }
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  position: relative;
  padding: 8px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--on-dark);
  padding-top: clamp(124px, 17vh, 184px);
}
.hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(64%, 1240px);
  z-index: -2;
  overflow: hidden;
}
.hero__media picture, .hero__media img {
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; object-position: 62% 38%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(6, 13, 24, 0.62) 28%, rgba(6, 13, 24, 0) 62%),
    linear-gradient(0deg, var(--ink) 2%, rgba(6, 13, 24, 0) 46%),
    linear-gradient(180deg, rgba(6, 13, 24, 0.7) 0%, rgba(6, 13, 24, 0) 26%),
    rgba(8, 40, 84, 0.2);
}
/* film grain */
.hero::after, .nixie::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 7vw, 6.1rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 2px 30px rgba(6, 13, 24, 0.6);
}
.hero__line { display: block; }
.hero__title em { font-style: italic; color: #9ad9f7; }

.hero__lede {
  max-width: 35em;
  margin-top: clamp(22px, 3vw, 32px);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.6;
  color: #c3d1e0;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 40px);
}
.hero__note {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--on-dark-muted);
}
.hero__note a { color: var(--on-dark); text-underline-offset: 3px; }
.hero__note a:hover { color: var(--white); }

/* ---------- Timeline (signature) ---------- */

.tl {
  --lane: 44px;
  --gap: 8px;
  --ruler: 30px;
  /* slant = total lane height x tan(15deg), matching the cut of the logo's bars */
  --slant: 40px;
  position: relative;
  z-index: 2;
  margin-top: clamp(48px, 8vh, 92px);
  margin-bottom: -88px;
  padding: 18px clamp(16px, 2.4vw, 26px) 26px;
  background: linear-gradient(180deg, #0f1e33 0%, #0a1524 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 44px 90px -34px rgba(2, 8, 18, 0.85);
}
.tl__head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.tl__rec {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 11px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 180, 84, 0.18);
}
.tl__now { margin-left: auto; }
.tl__now b { display: inline-block; min-width: 13ch; margin-left: 8px; font-weight: 500; color: var(--white); }
.tl__tc {
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}
.tl__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 18px;
  padding-top: 12px;
}
.tl__labels {
  display: grid;
  grid-auto-rows: var(--lane);
  row-gap: var(--gap);
  padding-top: var(--ruler);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.tl__labels span { display: flex; align-items: center; gap: 10px; }
.tl__labels b { font-weight: 500; color: var(--white); }

.tl__stage { position: relative; }
.tl__ruler {
  display: flex;
  justify-content: space-between;
  height: var(--ruler);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px calc(100% / 36)) 0 100% / 100% 6px no-repeat;
}
.tl__lanes {
  display: grid;
  grid-auto-rows: var(--lane);
  row-gap: var(--gap);
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}
.tl__lane {
  position: relative;
  overflow: hidden;
  border-radius: 0 999px 999px 0;
}
.tl__lane--sky { background: rgba(41, 171, 226, 0.15); --pad0: 50px; }
.tl__lane--teal { background: rgba(0, 136, 185, 0.18); --pad0: 36px; }
.tl__lane--blue { background: rgba(0, 113, 188, 0.24); --pad0: 22px; }

.clip {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: calc(var(--s) * 1%);
  width: calc(var(--w) * 1%);
  padding: 0 10px;
  overflow: hidden;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: calc(var(--lane) - 10px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: filter 0.25s, box-shadow 0.25s;
}
.tl__lane > .clip:first-child { padding-left: var(--pad0); }
.tl__lane--sky .clip { background: var(--sky); color: #04233a; }
.tl__lane--teal .clip { background: #007ba8; color: var(--white); }
.tl__lane--blue .clip { background: var(--blue); color: var(--white); }
.clip.is-live { filter: brightness(1.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }

.clip--wave {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24' fill='%23fff' fill-opacity='.26'%3E%3Crect x='0' y='9' width='2' height='6'/%3E%3Crect x='4' y='5' width='2' height='14'/%3E%3Crect x='8' y='8' width='2' height='8'/%3E%3Crect x='12' y='2' width='2' height='20'/%3E%3Crect x='16' y='7' width='2' height='10'/%3E%3Crect x='20' y='10' width='2' height='4'/%3E%3Crect x='24' y='4' width='2' height='16'/%3E%3Crect x='28' y='8' width='2' height='8'/%3E%3Crect x='32' y='1' width='2' height='22'/%3E%3Crect x='36' y='6' width='2' height='12'/%3E%3Crect x='40' y='9' width='2' height='6'/%3E%3Crect x='44' y='3' width='2' height='18'/%3E%3Crect x='48' y='8' width='2' height='8'/%3E%3Crect x='52' y='10' width='2' height='4'/%3E%3Crect x='56' y='5' width='2' height='14'/%3E%3Crect x='60' y='9' width='2' height='6'/%3E%3C/svg%3E") !important;
  background-repeat: repeat-x !important;
  background-position: 0 50% !important;
  background-size: auto 62% !important;
}

/* clip positions, as a % of the sequence */
.clip--g1 { --s: 0;    --w: 55.5; }
.clip--g2 { --s: 56.5; --w: 43.5; }
.clip--s1 { --s: 0;    --w: 13.5; }
.clip--s2 { --s: 14.5; --w: 9.5; }
.clip--s3 { --s: 25;   --w: 18.5; }
.clip--s4 { --s: 44.5; --w: 11; }
.clip--s5 { --s: 56.5; --w: 11; }
.clip--s6 { --s: 68.5; --w: 17; }
.clip--s7 { --s: 86.5; --w: 13.5; }
.clip--a1 { --s: 0;    --w: 43.5; }
.clip--a2 { --s: 44.5; --w: 23; }
.clip--a3 { --s: 68.5; --w: 31.5; }

.tl__playhead {
  position: absolute;
  top: calc(var(--ruler) - 12px);
  bottom: -8px;
  left: 38%;
  width: 2px;
  margin-left: -1px;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255, 180, 84, 0.7);
  will-change: transform;
}
.tl__playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  width: 14px;
  height: 14px;
  background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% 52%, 50% 100%, 0 52%);
}

/* ---------- Studio ---------- */

.studio {
  background: var(--paper);
  padding: calc(88px + var(--section)) 0 var(--section);
}
.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(36px, 7vw, 104px);
  align-items: center;
}

.spec {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px clamp(20px, 2.4vw, 30px);
  box-shadow: 0 30px 60px -44px rgba(13, 27, 46, 0.45);
}
.spec__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.spec__row:first-child { border-top: 0; }
.spec dt {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec dd { font-weight: 500; line-height: 1.45; }

/* ---------- Services ---------- */

.services {
  background: var(--white);
  padding: var(--section) 0;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  column-gap: clamp(36px, 7vw, 104px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .kicker { grid-column: 1 / -1; }
.section-head__aside { color: var(--muted); max-width: 30em; padding-bottom: 8px; }

.svc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: start;
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-top: 1px solid var(--line);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.svc:hover::before { transform: scaleX(1); }
.svc__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.95rem, 3.1vw, 2.65rem);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 0.3s, transform 0.45s var(--ease);
}
.svc:hover .svc__name { color: var(--blue); transform: translateX(10px); }
.svc__desc { color: var(--muted); padding-top: 6px; }
.svc__opts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.svc__opts li {
  padding: 7px 11px;
  border-radius: 6px;
  background: #e4f3fb;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: #0a4b76;
}
.services__foot { margin-top: 36px; color: var(--muted); }
.services__foot .link { margin-left: 8px; }

/* ---------- Nixie ---------- */

.nixie {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  padding: var(--section) 0;
}
.nixie__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.nixie__media picture, .nixie__media img { width: 100%; height: 100%; }
.nixie__media img { object-fit: cover; opacity: 0.34; }
.nixie__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 8%, rgba(6, 13, 24, 0.72) 52%, rgba(6, 13, 24, 0.5) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(6, 13, 24, 0) 26%, rgba(6, 13, 24, 0) 74%, var(--ink) 100%);
}
.nixie__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}

.feat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px clamp(24px, 3vw, 40px);
  margin-top: clamp(36px, 5vw, 56px);
}
.feat li { position: relative; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.feat li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--sky);
}
.feat h3 { font-size: 1.04rem; font-weight: 600; color: var(--white); }
.feat p { margin-top: 6px; font-size: 0.96rem; line-height: 1.55; color: var(--on-dark-muted); }

.nixie__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: clamp(36px, 5vw, 52px);
}

/* project card */
.card {
  background: var(--white);
  color: var(--text);
  border-radius: 24px;
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: 0 60px 110px -44px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__brand { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text); }
.card__eta b { font-weight: 500; color: var(--text); }

/* the logo's three bars, as a small mark */
.bars { display: grid; gap: 2px; width: 22px; }
.bars b { display: block; height: 4px; border-radius: 0 4px 4px 0; }
.bars b:nth-child(1) { background: var(--sky); margin-left: 4px; }
.bars b:nth-child(2) { background: var(--teal); margin-left: 2px; }
.bars b:nth-child(3) { background: var(--blue); }

.card__label {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 2.6vw, 2.3rem);
  line-height: 1.1;
}
.card__status { margin-top: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: #e4f3fb;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0a4b76;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.8s ease-in-out infinite;
}

.pipe {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin-top: 18px;
}
.pipe li {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  font-size: 0;
  transition: background-color 0.5s;
}
.pipe li.is-done { background: var(--blue); }
.pipe li.is-on { background: var(--sky); }
.pipe__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tasks { margin-top: 20px; border-top: 1px solid var(--line); }
.tasks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 600;
}
.tasks small { margin-left: 6px; font-size: 0.82rem; font-weight: 400; color: var(--muted); }
.tag {
  flex: none;
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag--edit { background: #e4f3fb; color: #0a4b76; }
.tag--qa { background: #fff1dc; color: #7a4a05; }
.tag--done { background: #e2f5ea; color: #136b40; }

.bubble {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px 16px 16px 4px;
  background: var(--paper);
  font-size: 0.93rem;
  line-height: 1.5;
}
.bubble__who {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.card figcaption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #7c8a9c;
}

/* ---------- Process ---------- */

.process {
  background: var(--paper);
  padding: var(--section) 0;
}
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 120px);
}
.process__aside { position: sticky; top: 112px; align-self: start; }

.qa {
  margin-top: clamp(32px, 4vw, 48px);
  padding: 26px 28px;
  border-radius: 20px;
  background: var(--ink-2);
  color: var(--on-dark);
  max-width: 400px;
}
.qa__title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
}
.qa__list { margin-top: 14px; }
.qa__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-dark);
  font-weight: 500;
}
.qa__list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23060d18' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 9.4l3 3 6-6.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.qa__sign {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.qa__sign span { display: flex; align-items: center; gap: 9px; }
.qa__sign i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

.steps { counter-reset: step; }
.step {
  counter-increment: step;
  position: relative;
  padding: 0 0 clamp(36px, 4.5vw, 54px) 86px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue);
}
.step::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 64px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}
.step:last-child::after { display: none; }
.step h3 {
  padding-top: 9px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  line-height: 1.1;
}
.step p { margin-top: 10px; color: var(--muted); max-width: 34em; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(84px, 11vw, 156px) 0;
  background: linear-gradient(115deg, #004f8a 0%, var(--blue) 46%, #0c93d6 100%);
  color: var(--white);
}
/* the logo's three bars, enlarged and bleeding off the right edge */
.cta__bars {
  --h: clamp(54px, 8vw, 112px);
  --g: clamp(12px, 1.8vw, 26px);
  position: absolute;
  top: 50%;
  right: -4vw;
  z-index: -1;
  width: min(56vw, 800px);
  display: grid;
  gap: var(--g);
  transform: translateY(-50%);
}
.cta__bars b {
  display: block;
  height: var(--h);
  border-radius: 0 999px 999px 0;
  clip-path: polygon(calc(var(--h) * 0.268) 0, 100% 0, 100% 100%, 0 100%);
}
.cta__bars b:nth-child(1) { margin-left: calc((var(--h) + var(--g)) * 0.536); background: rgba(126, 211, 250, 0.36); }
.cta__bars b:nth-child(2) { margin-left: calc((var(--h) + var(--g)) * 0.268); background: rgba(41, 171, 226, 0.4); }
.cta__bars b:nth-child(3) { background: rgba(0, 62, 112, 0.42); }

.cta__title {
  max-width: 13em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cta__title em { font-style: italic; color: #bfe8fb; }
.cta__lede {
  max-width: 32em;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  color: #d9eefa;
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ---------- Contact / footer ---------- */

.footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: var(--section) 0 36px;
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact__label {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.contact__name { font-size: 1.15rem; font-weight: 600; color: var(--white); }
.contact__phone {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-variant-numeric: lining-nums;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.3s, color 0.3s;
}
.contact__phone:hover { color: #8fd4f5; border-color: currentColor; }
.contact address p, address.contact__col p:not(.contact__label) { color: #c3d1e0; line-height: 1.65; }
address.contact__col .link { margin-top: 18px; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}
.footer__brand img { height: 42px; width: auto; opacity: 0.92; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer__links a { font-size: 0.93rem; color: var(--on-dark-muted); text-decoration: none; }
.footer__links a:hover { color: var(--white); }
.footer__legal { margin-left: auto; font-size: 0.86rem; color: #7f93aa; }

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px var(--gutter) 60px;
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
}
.notfound .kicker { justify-content: center; }
.notfound p { max-width: 30em; margin: 20px auto 0; color: var(--on-dark-muted); }
.notfound .hero__actions { justify-content: center; }

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 113, 188, 0.45); }
  60% { box-shadow: 0 0 0 6px rgba(0, 113, 188, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__kicker, .hero__line, .hero__lede, .hero__actions, .hero__note, .tl {
    animation: rise 0.9s var(--ease) both;
  }
  .hero__line:nth-child(1) { animation-delay: 0.08s; }
  .hero__line:nth-child(2) { animation-delay: 0.2s; }
  .hero__lede { animation-delay: 0.34s; }
  .hero__actions { animation-delay: 0.44s; }
  .hero__note { animation-delay: 0.52s; }
  .tl { animation-delay: 0.62s; animation-duration: 1.1s; }

  /* scroll-driven reveals: no JS, and browsers without support simply show the content */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .studio__grid, .nixie__grid, .process__grid { grid-template-columns: minmax(0, 1fr); }
  .process__aside { position: static; }
  .card { max-width: 520px; }
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .svc__opts { grid-column: 2; }
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__lead { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav { gap: 10px; padding-left: 18px; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px 22px;
    background: var(--white);
    border-radius: 22px;
    box-shadow: 0 24px 60px -20px rgba(3, 10, 22, 0.6);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 1.05rem; border-top: 1px solid var(--line); }
  .nav__links a:first-child { border-top: 0; }
  .nav__links a::after { display: none; }

  .hero__media { width: 100%; }
  .hero__media img { object-position: 72% 30%; opacity: 0.6; }
  .hero__media::after {
    background:
      linear-gradient(0deg, var(--ink) 18%, rgba(6, 13, 24, 0.35) 70%, rgba(6, 13, 24, 0.75) 100%),
      linear-gradient(90deg, rgba(6, 13, 24, 0.85) 0%, rgba(6, 13, 24, 0.1) 100%);
  }

  .section-head { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .nav__brand img { height: 29px; }
  .btn--sm { padding: 0.75em 1.05em; font-size: 0.88rem; }

  .tl { --lane: 32px; --gap: 6px; --ruler: 26px; --slant: 29px; margin-bottom: -64px; border-radius: 18px; padding-bottom: 20px; }
  .kicker { font-size: 0.68rem; letter-spacing: 0.1em; }
  .tl__head { gap: 12px; font-size: 0.64rem; }
  .tl__seq { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tl__now { display: none; }
  /* story clips are too narrow for labels at this size; keep the two widest */
  .tl__lane--teal .clip:not(.clip--s3):not(.clip--s6) { font-size: 0; }
  .tl__tc { margin-left: auto; font-size: 0.84rem; }
  .tl__body { column-gap: 10px; }
  .tl__labels { font-size: 0; }
  .tl__labels b { font-size: 0.64rem; }
  .tl__ruler span:nth-child(even) { visibility: hidden; }
  .clip { padding: 0 6px; font-size: 0.56rem; letter-spacing: 0.02em; }
  .tl__lane--sky { --pad0: 36px; }
  .tl__lane--teal { --pad0: 26px; }
  .tl__lane--blue { --pad0: 16px; }
  .studio { padding-top: calc(64px + var(--section)); }

  .spec__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .svc { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .svc__opts { grid-column: auto; }
  .feat { grid-template-columns: minmax(0, 1fr); }
  .step { padding-left: 68px; }
  .step::before { width: 46px; height: 46px; }
  .step::after { left: 23px; top: 56px; }
  .step h3 { padding-top: 6px; }

  .cta__bars { width: 92vw; right: -30vw; opacity: 0.55; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { margin-left: 0; width: 100%; }
}
