/* ============================================================
   Hill Digital
   Navy #1a2a4a primary / warm gold #b8a36e accent
   Instrument Serif headlines, Inter body, JetBrains Mono data
   ============================================================ */

/* ---- tokens ---- */
:root {
  --navy: #1a2a4a;
  --navy-deep: #101c33;
  --gold: #b8a36e;
  --gold-soft: #d8c9a2;
  --canvas: #ffffff;
  --mist: #f4f6f9;
  --slate: #5b667d;
  --line: #e3e7ee;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 1120px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Apple's page gets its colour from product photography, not chrome.
     There is no product to photograph here, so depth comes from these:
     a grain layer, and gradient washes built only from navy and gold.
     No new brand hues. */
  /* a baked 64px tile, not an feTurbulence data-URI: the SVG filter has to
     rasterize noise at paint time and stalls the compositor on big surfaces. */
  --grain: url("../img/grain.png");
  --wash-navy: radial-gradient(120% 100% at 15% 0%, #24365c 0%, #1a2a4a 45%, #0e1930 100%);
  --wash-gold: radial-gradient(90% 120% at 85% 10%, rgba(184, 163, 110, 0.22) 0%, rgba(184, 163, 110, 0) 60%);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- type scale ---- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: clamp(3rem, 7vw, 5.25rem); }
h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }

p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--slate);
  line-height: 1.6;
  max-width: 34em;
}

/* ---- layout ---- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 11vw, 132px); }
.section--mist { background: var(--mist); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }

/* navy is this brand's black: the dominant large surface, the way Apple
   uses #000. Layered rather than flat so it reads as a material. */
.section--navy {
  position: relative;
  isolation: isolate;
  background: var(--wash-navy);
  color: #fff;
  overflow: hidden;
}
.section--navy::before,
.section--navy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.section--navy::before { background: var(--wash-gold); }
.section--navy::after {
  background-image: var(--grain);
  opacity: 0.35;
}

.section-head { max-width: 40rem; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 20px; }

.section--navy .lede { color: rgba(255, 255, 255, 0.72); }
.section--navy .eyebrow { color: var(--gold-soft); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); }

.btn--ghost { border-color: var(--line); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); background: rgba(26, 42, 74, 0.03); }

.btn--gold { background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.btn--gold:hover { background: var(--gold-soft); }

.btn--onnavy { border-color: rgba(255, 255, 255, 0.24); color: #fff; background: transparent; }
.btn--onnavy:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---- text link ---- */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.tlink:hover { border-color: var(--gold); gap: 10px; }

/* ============================================================
   header
   ============================================================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.masthead.is-stuck { border-bottom-color: var(--line); }

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.brand img { width: 28px; height: 28px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 34px; }

.nav__links { display: flex; align-items: center; gap: 34px; }

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--navy);
  position: relative;
  transition: background 0.2s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.28s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   hero
   ============================================================ */
.hero { padding-top: clamp(64px, 9vw, 104px); padding-bottom: clamp(56px, 7vw, 88px); }

.hero__copy { max-width: 43rem; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { margin-bottom: 34px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- the machine (signature element) ---- */
.machine {
  margin-top: clamp(56px, 8vw, 92px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, var(--mist) 100%);
  padding: 26px 26px 20px;
  overflow: hidden;
}

.machine__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.machine__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.machine__label b { color: var(--navy); font-weight: 500; }

.machine__dots { display: flex; gap: 6px; }
.machine__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.machine__dot.is-on { background: var(--gold); transform: scale(1.35); }

.machine__stage { width: 100%; overflow-x: auto; }
.machine svg { width: 100%; min-width: 620px; height: auto; display: block; }

.wire { fill: none; stroke: var(--line); stroke-width: 1.5; }

.pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 26 400;
  stroke-dashoffset: 26;
  animation: travel 3.4s linear infinite;
}
.pulse--b { animation-delay: 0.55s; }
.pulse--c { animation-delay: 1.1s; }
.pulse--d { animation-delay: 1.1s; }

@keyframes travel {
  0%   { stroke-dashoffset: 26; opacity: 0; }
  6%   { opacity: 1; }
  46%  { opacity: 1; }
  55%  { stroke-dashoffset: -170; opacity: 0; }
  100% { stroke-dashoffset: -170; opacity: 0; }
}

.node rect {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 1.5;
  transition: stroke 0.4s var(--ease);
}
.node text {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  fill: var(--navy);
  text-anchor: middle;
  dominant-baseline: middle;
}
.node__kind {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  fill: var(--slate);
  text-anchor: middle;
}

.node--live rect { animation: wake 3.4s var(--ease) infinite; }
.node--b rect { animation-delay: 0.55s; }
.node--c rect { animation-delay: 1.1s; }
.node--d rect { animation-delay: 1.65s; }
.node--e rect { animation-delay: 1.65s; }

@keyframes wake {
  0%, 100% { stroke: var(--line); }
  14%, 34% { stroke: var(--gold); }
}

.node--out rect { fill: var(--navy); stroke: var(--navy); }
.node--out text { fill: #fff; }
.node--out .node__kind { fill: var(--gold-soft); }
.node--out rect { animation: none; }

.machine__swap { transition: opacity 0.4s var(--ease); }
.machine__swap.is-fading { opacity: 0; }

.machine__foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--slate);
}

/* ============================================================
   logo strip
   ============================================================ */
.strip__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
  margin-bottom: 34px;
}

/* flex, not grid: it centers the final short row instead of stranding
   logos on the left. 9 logos land as 5 + 4. */
.strip__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.strip__item {
  flex: 0 1 calc(20% - 13px);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}
.strip__item:hover { border-color: #ccd4e2; }

/* px bound, not 100%: a percentage max-height never resolves against an
   indefinite flex/grid area, so the logo escapes its card.
   Left in full colour on purpose: several of these are illustrative marks
   that turn to mud under a grayscale filter. */
.strip__item img {
  max-height: 62px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0.78;
  transition: opacity 0.35s var(--ease);
}
.strip__item:hover img { opacity: 1; }

/* ============================================================
   cards
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: #ccd4e2; transform: translateY(-2px); }
/* :not([class]) so this only styles prose paragraphs. A bare `.card p`
   outranks single-class children like .card__stat and silently eats them. */
.card > p:not([class]) { color: var(--slate); font-size: 0.9688rem; }
.card .tlink { margin-top: auto; align-self: flex-start; }

.card__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
}
.card__logo img {
  max-height: 64px;
  max-width: 72%;
  width: auto;
  object-fit: contain;
}

/* ============================================================
   tiles
   Apple's homepage is a tile grid at a 12px gap where each tile is
   carried by a product photograph. The product here is the system, so
   each tile carries an artifact of the work instead of a photo.
   ============================================================ */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tile {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  overflow: hidden;
  padding: 38px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
}

.tile--paper { background: #fff; border: 1px solid var(--line); }

.tile--navy {
  background: var(--wash-navy);
  color: #fff;
  border: 1px solid var(--navy-deep);
}
.tile--navy::before,
.tile--navy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.tile--navy::before { background: var(--wash-gold); }
.tile--navy::after {
  background-image: var(--grain);
  opacity: 0.4;
}

.tile h3 { font-size: 1.75rem; }
.tile__copy { color: var(--slate); font-size: 0.9688rem; max-width: 30em; }
.tile--navy .tile__copy { color: rgba(255, 255, 255, 0.72); }

/* price sits with the copy, the way Apple hangs "From $999" under a tagline */
.tile__price { display: flex; align-items: baseline; gap: 7px; }
.tile__price-n {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.tile__price-u {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
/* only ONE auto margin in this flex column. Two of them (here and on
   .tile__art) split the free space and strand the link mid-tile. */
.tile .tlink { align-self: flex-start; }
.tile--navy .tlink { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.28); }
.tile--navy .tlink:hover { border-bottom-color: var(--gold); }

/* the artifact is what pins to the bottom of the tile */
.tile__art { margin-top: auto; padding-top: 32px; }

/* ---- artifact: content calendar ---- */
.cal {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}
.cal__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.cal__d {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-align: center;
}
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal__c {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--mist);
  display: grid;
  place-items: center;
}
.cal__c::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}
.cal__c.is-post { background: rgba(26, 42, 74, 0.09); }
.cal__c.is-post::after { background: var(--navy); }
.cal__c.is-live { background: rgba(184, 163, 110, 0.2); }
.cal__c.is-live::after { background: var(--gold); }
.cal__foot {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.cal__key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.cal__key i { width: 6px; height: 6px; border-radius: 50%; }
.cal__key i.navy { background: var(--navy); }
.cal__key i.gold { background: var(--gold); }

/* ---- artifact: connected stack ---- */
.stack {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.stack__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.stack__h {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.stack__h:nth-child(2) { text-align: center; }
.stack__h:nth-child(3) { text-align: right; }
.stack__row {
  display: flex;
  align-items: center;
  gap: 0;
  padding-block: 5px;
}
.stack__foot {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.chip {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  padding: 8px 11px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  white-space: nowrap;
}
.chip--gold { border-color: var(--gold); background: rgba(184, 163, 110, 0.1); }
.chip--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.stack__wire {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--gold));
  min-width: 14px;
}

/* ---- artifact: the site itself ---- */
.site {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.site__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}
.site__dots { display: flex; gap: 4px; flex: none; }
.site__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.site__url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.site__page { padding: 14px; display: grid; gap: 11px; }
.site__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.site__logo { width: 32px; height: 8px; border-radius: 2px; background: var(--navy); }
.site__links { display: flex; gap: 6px; }
.site__links i { width: 18px; height: 5px; border-radius: 2px; background: var(--line); }
.site__hero { display: grid; gap: 7px; }
.site__h { height: 11px; border-radius: 3px; background: var(--navy); width: 76%; }
.site__h--short { width: 50%; }
.site__p { height: 5px; border-radius: 2px; background: var(--line); width: 92%; }
.site__p--short { width: 64%; }
.site__btn {
  margin-top: 6px;
  width: 76px;
  height: 18px;
  border-radius: 999px;
  background: var(--gold);
}
.site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.site__cards i {
  height: 42px;
  border-radius: 5px;
  background: var(--mist);
  border: 1px solid var(--line);
}
.site__foot {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---- artifact: the review text thread ---- */
.sms {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.5);
}
.sms__b {
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 9px 13px;
  border-radius: 15px;
  max-width: 84%;
}
.sms__b--in {
  background: var(--mist);
  color: var(--navy);
  border-bottom-left-radius: 5px;
  justify-self: start;
}
.sms__b--out {
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 5px;
  justify-self: end;
}
.sms__card {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sms__stars { color: var(--gold); font-size: 0.8125rem; letter-spacing: 2px; }
.sms__cta {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.sms__meta {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
  padding-top: 2px;
}

/* ============================================================
   proof / stats
   ============================================================ */
.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
}

.proof__cell {
  padding: 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.proof__cell:last-child { border-right: 0; }

.proof__stat {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 4.25rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.proof__what { font-size: 1.0625rem; color: #fff; margin-bottom: 10px; }
.proof__who {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   process (a real sequence, so it is numbered)
   ============================================================ */
.steps { display: grid; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step__n {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 5px;
}
.step h3 { margin-bottom: 8px; }
/* :not([class]) so this leaves .step__n alone. */
.step p:not([class]) { color: var(--slate); max-width: 46em; }

/* ============================================================
   page hero (interior pages)
   ============================================================ */
.pagehead {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.pagehead .eyebrow { margin-bottom: 20px; }
.pagehead h1 { max-width: 16em; margin-bottom: 22px; }

/* ============================================================
   service detail
   ============================================================ */
.svc {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.svc:last-of-type { border-bottom: 0; }

.svc__aside { position: sticky; top: 100px; }
.svc__aside .eyebrow { margin-bottom: 16px; }
.svc__aside h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); margin-bottom: 18px; }
/* :not([class]) so this leaves the .eyebrow alone. */
.svc__aside p:not([class]) { color: var(--slate); font-size: 0.9688rem; }
.svc__logo { max-width: 150px; margin-top: 24px; }

.svc__body > p { color: var(--slate); margin-bottom: 26px; }

.checks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9688rem;
  color: var(--navy);
}
.checks svg { width: 18px; height: 18px; color: var(--gold); margin-top: 4px; }

.spec {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.spec__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9062rem;
}
.spec__row:last-child { border-bottom: 0; }
.spec__k {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 3px;
}
.spec__v { color: var(--navy); }

.pricetag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}
.pricetag__n {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--navy);
}
.pricetag__u { font-family: var(--mono); font-size: 0.75rem; color: var(--slate); letter-spacing: 0.08em; }

/* ============================================================
   case studies
   ============================================================ */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.case + .case { margin-top: 24px; }

.case__panel {
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.case__panel--fig {
  position: relative;
  isolation: isolate;
  background: var(--wash-navy);
  color: #fff;
  border-left: 1px solid var(--line);
  align-items: flex-start;
  overflow: hidden;
}
.case__panel--fig::before,
.case__panel--fig::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.case__panel--fig::before { background: var(--wash-gold); }
.case__panel--fig::after { background-image: var(--grain); opacity: 0.35; }

.case__stat {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.case__statsub { color: rgba(255, 255, 255, 0.7); font-size: 0.9688rem; max-width: 22em; }
.case__meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.case h3 { font-size: clamp(1.625rem, 2.6vw, 2rem); }
/* :not([class]) so this only styles prose paragraphs. A bare `.case p`
   outranks .case__stat / .case__statsub / .case__meta and flattens them. */
.case__panel > p:not([class]) { color: var(--slate); font-size: 0.9688rem; }
.case dl { margin: 6px 0 0; display: grid; gap: 14px; }
.case dt {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}
.case dd { margin: 0; font-size: 0.9375rem; color: var(--navy); }

/* verified stat on a current-client card */
.card__stat {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* social post examples: a KPI showcase for the sports-media work */
.kpis { display: grid; gap: 30px; }
.kpi-group__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.kpi-group__label b { color: var(--navy); font-weight: 500; }
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.kpi {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.kpi__n {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 8px;
}
.kpi__l {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ============================================================
   contact
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contact__aside .eyebrow { margin-bottom: 18px; }
.contact__aside h1 { font-size: clamp(2.5rem, 4.5vw, 3.5rem); margin-bottom: 20px; }
.contact__aside .lede { margin-bottom: 32px; }

.detail { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.detail:last-child { border-bottom: 1px solid var(--line); }
.detail dt {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.detail dd { margin: 0; font-size: 0.9688rem; }
.detail a { text-decoration: none; border-bottom: 1px solid var(--line); }
.detail a:hover { border-color: var(--gold); }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 3.5vw, 40px);
}

.field { margin-bottom: 22px; }
.field:last-of-type { margin-bottom: 26px; }

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.9688rem;
  color: var(--navy);
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: #9aa3b5; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy);
}

.field select { appearance: none; cursor: pointer; }
.field .select-wrap { position: relative; }
.field .select-wrap svg {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--slate);
  pointer-events: none;
}

.field--err input,
.field--err select,
.field--err textarea { border-color: #c0392b; background: #fff; }

.err {
  display: none;
  font-size: 0.8125rem;
  color: #c0392b;
  margin-top: 7px;
}
.field--err .err { display: block; }

.form__note { font-size: 0.8125rem; color: var(--slate); margin-top: 16px; }

.form__submit { width: 100%; justify-content: center; padding-block: 15px; }
.form__submit[disabled] { opacity: 0.55; cursor: wait; }

.form__status {
  display: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9062rem;
  margin-bottom: 22px;
}
.form__status.is-ok { display: block; background: rgba(184, 163, 110, 0.14); color: #6f5f33; }
.form__status.is-bad { display: block; background: rgba(192, 57, 43, 0.08); color: #a5321f; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ============================================================
   cta band
   ============================================================ */
.band { text-align: center; }
.band h2 { margin-bottom: 20px; }
.band .lede { margin-inline: auto; margin-bottom: 32px; }
.band__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   footer
   ============================================================ */
.foot {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.62);
  padding-block: 56px 32px;
  font-size: 0.9062rem;
}

.foot__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  margin-bottom: 14px;
}
.foot__brand img { width: 26px; height: 26px; object-fit: contain; }
.foot__tag { max-width: 26em; }

.foot h4 {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 16px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: rgba(255, 255, 255, 0.62); text-decoration: none; transition: color 0.2s var(--ease); }
.foot a:hover { color: #fff; }

.foot__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.42);
}

/* ============================================================
   scroll reveal
   ============================================================ */
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.rise.is-in { opacity: 1; transform: none; }

/* ============================================================
   a11y
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 30px; }
  .svc { grid-template-columns: 1fr; }
  .svc__aside { position: static; }
  .contact { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case__panel--fig { border-left: 0; border-top: 1px solid var(--line); }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; }

  .nav__links {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__links .btn { margin-top: 16px; justify-content: center; }
  .nav__links a.btn { border-bottom: 1px solid transparent; }

  .proof__cell { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .proof__cell:last-child { border-bottom: 0; }

  .step { grid-template-columns: 1fr; gap: 8px; }
  .spec__row { grid-template-columns: 1fr; gap: 4px; }
  .machine { padding: 18px 18px 14px; }
  .strip__item { flex-basis: calc(33.333% - 11px); }

  /* the three-chip row does not fit a 375px screen at full size */
  .stack { padding: 12px; }
  .chip { font-size: 0.5rem; padding: 6px 7px; }
  .stack__wire { min-width: 6px; }
  .stack__row { padding-block: 3px; }
}

@media (max-width: 560px) {
  .foot__top { grid-template-columns: 1fr; gap: 30px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ============================================================
   reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .rise { opacity: 1; transform: none; }
  .pulse { opacity: 1; stroke-dasharray: none; stroke-dashoffset: 0; }
  .node--live rect { stroke: var(--line); }
}
