/* ==========================================================================
   MergeForge site stylesheet — Volumetric Dawn
   Contract: shared by every page. Prefer these classes over new ones.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --canvas-top: #0d0810;
  --canvas-mid: #140c12;
  --canvas-low: #1a0f14;

  /* Surface tiers. On a dark canvas, fill delta alone can't separate a card from its
     background (the usable range tops out near 1.2:1 before the fill reads grey), so
     every surface pairs its fill with --border, --e2 and a top highlight. Change the
     recipe, not just the fill, or cards go flat again. */
  --surface-1: #211619;
  --surface-2: #2b1e22;
  --surface-3: #35262b;
  --surface-sunk: rgba(0, 0, 0, 0.26);

  /* Lines, three tiers. --hairline divides content inside a surface; --border draws the
     surface edge and must stay visible (~1.7:1); --border-bright is interactive/hover. */
  --hairline: rgba(255, 214, 186, 0.09);
  --border: rgba(255, 214, 186, 0.2);
  --border-bright: rgba(255, 214, 186, 0.36);
  --edge-top: rgba(255, 226, 202, 0.14);

  --accent: #ff8a4c;
  --accent-soft: #ffc46b;
  --accent-dim: rgba(255, 138, 76, 0.5);
  --accent-wash: rgba(255, 138, 76, 0.09);

  /* Text. Alpha values chosen against --surface-1: .74 ≈ 9.6:1, .56 ≈ 6.0:1,
     .48 ≈ 4.6:1. --text-4 is the floor — anything below it fails AA at 12–13px,
     which is the size these tokens actually get used at. */
  --text: #fdf9f7;
  --text-2: rgba(255, 244, 238, 0.74);
  --text-3: rgba(255, 244, 238, 0.56);
  --text-4: rgba(255, 244, 238, 0.48);

  /* Elevation ramp. Two shadows each: a tight contact shadow for the edge, a wide
     ambient one for the lift. */
  --e1: 0 1px 2px rgba(0, 0, 0, 0.34), 0 6px 18px -10px rgba(0, 0, 0, 0.6);
  --e2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --e3: 0 4px 10px rgba(0, 0, 0, 0.44), 0 34px 70px -24px rgba(0, 0, 0, 0.78);

  /* Self-hosted (assets/css/fonts.css). The fallbacks matter: the previous stack was
     macOS-only, so Windows silently rendered the whole site in Arial. */
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1200px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --nav-h: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  /* Scroll with the document (not fixed). Fixed attachment washed the page
     bottom to near-white in real browsers and full-page captures, which then
     leaked through the semi-transparent footer. Same approach as design-5. */
  background: linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-mid) 35%, var(--canvas-low) 70%, #0a060a 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Manrope tightens well at display sizes but needs its tracking eased back toward 0 as
   the size drops — a single letter-spacing value across the scale looks cramped on h3. */
h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}

h1 {
  /* Capped at 60px, not 68px. Manrope sets wide, and at 68 the hero headline could not
     fit "Websites made for" on one line inside the copy column — it broke after the
     first word and stranded it on a line of its own. */
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.034em;
}

h2 {
  font-size: clamp(29px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  color: var(--text-2);
}

.grad {
  background: linear-gradient(105deg, var(--accent) 0%, var(--accent-soft) 55%, #ffe0a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head {
  max-width: 620px;
  margin-bottom: 40px;
}

.section-head p {
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: #1a0a06;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 10px 0;
  transform: translateY(-120%);
  transition: transform 160ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout utilities
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Atmosphere (beams / glow / grain)
   -------------------------------------------------------------------------- */
.atm {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(720px, 92vh);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* The layer fades to nothing before it reaches the content below it. `overflow: hidden`
     clips its children at full intensity, so without this the glow's bottom edge draws a
     hard line across whatever it lands on — on the home page, the client row. Each variant
     sets its own fade span, since they differ in height and in how high the glow sits. */
  --atm-fade-start: 74%;
  --atm-fade-end: 97%;
  /* Masked at BOTH ends. The top fade is what stops the glow reading as a smudge behind
     the sticky nav — the light has to begin below the header, the way a horizon does.
     Without it the rays climb straight through the logo and the whole thing looks like a
     dirty lens rather than a light source. */
  --atm-rise: 26%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 var(--atm-rise), #000 var(--atm-fade-start), transparent var(--atm-fade-end));
  mask-image: linear-gradient(to bottom, transparent 0%, #000 var(--atm-rise), #000 var(--atm-fade-start), transparent var(--atm-fade-end));
}

/* Subdued atmosphere for inner pages — same world, dialled back */
.atm.atm--page {
  height: min(520px, 68vh);
  /* Shorter layer with a higher glow, so it fades earlier and over a longer span. */
  --atm-rise: 30%;
  --atm-fade-start: 44%;
  --atm-fade-end: 82%;
  opacity: 0.62;
}

/* Runs to the foot of the layer so the mask ends the glow, not the box edge —
   a shorter box would clip the gradient mid-falloff and draw a line across the intro. */
.atm.atm--page .horizon {
  bottom: 0;
  height: 100%;
  width: 160%;
  opacity: 0.85;
  filter: blur(2px);
}

.atm.atm--page .rays {
  bottom: 18%;
  height: 88%;
  width: 150%;
}

.atm.atm--page .ray {
  opacity: 0.38;
  filter: blur(18px);
}

.atm.atm--page .ray-2 {
  opacity: 0.48;
}

.atm.atm--page .ray-3,
.atm.atm--page .ray-4 {
  display: none;
}

/* The glow cores sit inside the box (74%, not 100%) so the gradients' own falloff
   completes before the bottom edge — an edge-anchored core gets clipped mid-glow. */
.horizon {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 180%;
  height: 82%;
  transform: translateX(-50%);
  /* Roughly half the previous intensity. At the old values the glow lifted the hero's
     mid-tones so far that the browser mockup sitting on top of it lost most of its
     internal contrast and read as a brown blur. */
  background:
    radial-gradient(ellipse 85% 64% at 50% 76%, rgba(255, 138, 76, 0.3) 0%, rgba(255, 138, 76, 0.15) 28%, rgba(255, 138, 76, 0.05) 52%, transparent 72%),
    radial-gradient(ellipse 65% 50% at 48% 74%, rgba(255, 196, 107, 0.2) 0%, rgba(255, 160, 90, 0.08) 40%, transparent 68%),
    radial-gradient(ellipse 38% 30% at 52% 76%, rgba(255, 220, 160, 0.13) 0%, transparent 55%);
  filter: blur(1px);
}

.rays {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 170%;
  height: 100%;
  transform: translateX(-48%);
  overflow: hidden;
}

.ray {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 8%;
  height: 100%;
  transform-origin: 50% 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 196, 107, 0.06) 12%,
    rgba(255, 138, 76, 0.13) 38%,
    rgba(255, 138, 76, 0.08) 62%,
    rgba(255, 138, 76, 0.03) 85%,
    transparent 100%
  );
  filter: blur(18px);
  opacity: 0.7;
  animation: beam-drift 40s ease-in-out infinite;
}

.ray-1 { transform: translateX(-50%) rotate(-18deg) skewX(-8deg); width: 7%; animation-delay: 0s; }
.ray-2 { transform: translateX(-50%) rotate(-6deg) skewX(-4deg); width: 11%; opacity: 1; animation-delay: -8s; }
.ray-3 { transform: translateX(-50%) rotate(7deg) skewX(4deg); width: 9%; opacity: 0.9; animation-delay: -16s; }
.ray-4 { transform: translateX(-50%) rotate(16deg) skewX(7deg); width: 6.5%; opacity: 0.72; animation-delay: -22s; }

/* Narrow amplitude on purpose. The old 0.65→1 swing was visible as pulsing, which reads
   as a screensaver; this is just enough to keep the light from looking painted on. */
@keyframes beam-drift {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.78; }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--nav-h);
  padding: 10px 18px 10px 20px;
  border-radius: 999px;
  background: rgba(20, 12, 16, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.55);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* A merge glyph: two branches converging into one stem. The previous mark was a rounded
   rectangle with a thick bottom edge, which read as a generic phone icon — no relation
   to the name. Drawn as a background image so the markup stays a single empty <span>. */
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: var(--accent);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23281009' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5v3.2c0 2.4 1.8 3.8 4 3.8s4-1.4 4-3.8V5'/%3E%3Cpath d='M12 12v7'/%3E%3C/svg%3E"),
    linear-gradient(145deg, #ff9d63, #d9612c);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px, 100% 100%;
  box-shadow: 0 0 20px -4px var(--accent-dim), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto 0 12px;
  padding: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  flex-shrink: 0;
  min-height: 42px;
  padding: 10px 18px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease);
}

/* The primary button used to run an infinite `cta-breathe` glow animation. A CTA that
   pulses at the reader is a conversion-hack tell — it reads as pressure, not quality.
   The button now sits still and responds only to intent. */
.btn-primary {
  background: linear-gradient(180deg, #ff9a60 0%, var(--accent) 100%);
  color: #24100a;
  box-shadow:
    0 1px 0 rgba(255, 220, 190, 0.45) inset,
    0 6px 20px -8px rgba(255, 138, 76, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffa670 0%, #ff9159 100%);
  box-shadow:
    0 1px 0 rgba(255, 230, 205, 0.55) inset,
    0 10px 28px -8px rgba(255, 138, 76, 0.8);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px -4px rgba(255, 138, 76, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: var(--border-bright);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 214, 186, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Cards (shared surface language)
   -------------------------------------------------------------------------- */
/* The shared card recipe. Fill + border + elevation + top highlight, all four — on a
   dark canvas no single one of them separates a surface from its background. */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--e2), inset 0 1px 0 var(--edge-top);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  /* 15px, not the inherited 17px — at body size the control text outweighed its own
     13px label and the form read louder than the copy beside it. */
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 76, 0.16);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--border-bright);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23ff8a4c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field select option {
  background: #1a1014;
  color: var(--text);
}

.form-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: -4px;
}

.form .btn[disabled],
.form .btn[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
/* Opaque plum — never translucent. A semi-transparent footer washed out whenever
   any page glow (contact sunrise, fixed canvas, atmosphere) sat behind it. */
.site-footer {
  position: relative;
  z-index: 5;
  padding: 56px 0 44px;
  /* No border-top. A hairline here re-draws the very seam the glow was tuned to
     dissolve — the eye reads the line, not the gradient. */
  background: #0a060a;
  isolation: isolate;
  overflow: hidden;
}

/* The sunrise above used to stop dead at this boundary — a razor line straight through
   the brightest part of the gradient, which read as a rendering bug. The glow now fades
   out before the edge (see .contact::before) and this picks the light back up on the
   other side, so it dissolves across the seam instead of being cut by it.
   An overlay on an opaque base, NOT a translucent footer: making the footer itself
   semi-transparent is what washed it out in earlier revisions. */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 160%;
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 60% 100% at 50% 0%,
    rgba(255, 120, 50, 0.2) 0%,
    rgba(255, 110, 45, 0.08) 36%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.site-footer > .wrap {
  position: relative;
  z-index: 1;
}

/* Three columns: who we are, where to go, how to reach us. The single row of links it
   replaced gave a business asking $6,500 no phone number, no ABN and no way to make
   contact from the foot of the page. */
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px 48px;
  margin-bottom: 36px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  max-width: 30ch;
  color: var(--text-3);
  line-height: 1.6;
}

.footer-head {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
  margin: 0 0 6px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--text-3);
}

.footer-links a,
.footer-contact a {
  display: flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 180ms var(--ease);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

/* Tabular figures so the ABN reads as an identifier rather than prose. */
.footer-abn {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text-3);
}

.footer-bottom a {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Page-specific blocks — Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  padding: 44px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px 40px;
  align-items: center;
}

.hero-copy {
  padding-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(255, 138, 76, 0.1);
  border: 1px solid rgba(255, 138, 76, 0.28);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  max-width: 17ch;
  margin-bottom: 22px;
}

.hero-sub {
  max-width: 42ch;
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 32px;
}

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

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12%;
  height: 55%;
  background: radial-gradient(ellipse 80% 70% at 50% 80%, rgba(255, 138, 76, 0.5), rgba(255, 196, 107, 0.18) 45%, transparent 72%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

.browser {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  /* Near-opaque on purpose. At 0.72 the hero glow came straight through and flattened
     the mockup's internal contrast — the one element that has to look like a real
     screenshot was the haziest thing on the page. */
  background: rgba(24, 16, 21, 0.94);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    var(--e3),
    inset 0 1px 0 rgba(255, 230, 208, 0.22),
    0 0 90px -24px rgba(255, 138, 76, 0.3);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255, 200, 160, 0.08), transparent);
}

.dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.dots span:first-child { background: rgba(255, 138, 76, 0.55); }

.url {
  flex: 1;
  min-width: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 190, 150, 0.08);
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 0;
  min-height: 280px;
}

.page-mock {
  padding: 20px 18px 24px;
  border-right: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(255, 160, 100, 0.06) 0%, transparent 40%),
    rgba(0, 0, 0, 0.15);
}

.mock-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.mock-nav span {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.mock-nav span:nth-child(1) { width: 48px; background: rgba(255, 138, 76, 0.5); }
.mock-nav span:nth-child(2) { width: 28px; }
.mock-nav span:nth-child(3) { width: 28px; }
.mock-nav span:nth-child(4) { width: 36px; margin-left: auto; background: rgba(255, 138, 76, 0.35); }

.mock-hero-block {
  height: 72px;
  border-radius: 10px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255, 138, 76, 0.25), rgba(255, 196, 107, 0.08) 60%, rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 190, 150, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, 0.2);
}

.mock-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.mock-lines span {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.mock-lines span:nth-child(1) { width: 88%; }
.mock-lines span:nth-child(2) { width: 72%; }
.mock-lines span:nth-child(3) { width: 64%; background: rgba(255, 255, 255, 0.06); }

.mock-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.mock-cards i {
  display: block;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 190, 150, 0.1);
  border-top-color: rgba(255, 210, 170, 0.22);
  font-style: normal;
}

.checklist {
  padding: 18px 16px 20px;
  background: rgba(12, 8, 12, 0.45);
}

.checklist h4 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.check-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}

.check-list strong {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.check-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 138, 76, 0.18);
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
}

.shipped {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 138, 76, 0.4);
  background: rgba(255, 138, 76, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

/* Trust */
.trust {
  position: relative;
  z-index: 2;
  padding: 24px 0 24px;
}

.trust-inner {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.trust-line {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
}

.trust-line strong {
  color: var(--text-2);
  font-weight: 500;
}

.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.clients li {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-4);
}

/* Services */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* No per-nth-child tinting. Four near-identical browns read as inconsistency rather than
   variety — one surface, applied consistently, is what makes a set look designed. */
.svc-card {
  display: block;
  padding: 32px 28px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--e2), inset 0 1px 0 var(--edge-top);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease), background 260ms var(--ease);
  color: inherit;
}

/* Lift, don't scale. Scaling a text-heavy card resamples every glyph mid-transition,
   which shimmers; a 3px translate reads as depth and stays crisp. */
.svc-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  background: var(--surface-2);
  box-shadow: var(--e3), inset 0 1px 0 rgba(255, 226, 202, 0.2);
}

.svc-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.85;
}

.svc-card h3 {
  margin-bottom: 10px;
}

.svc-card > p {
  font-size: 15px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.svc-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-card li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}

.svc-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  box-shadow: 0 0 8px var(--accent-dim);
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--e2), inset 0 1px 0 var(--edge-top);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
  color: inherit;
}

.work-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  box-shadow: var(--e3), inset 0 1px 0 rgba(255, 226, 202, 0.2);
}

/* Holds an inline SVG mockup of the interface that project type produces. These used to
   be empty colour gradients, which is the one thing a design studio's own site cannot
   afford to show where the work should be. */
.work-cover {
  position: relative;
  height: 132px;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background: #150d13;
}

.work-cover-art {
  width: 100%;
  height: 100%;
  display: block;
}

/* Settles the mockup into the card: darkens toward the copy below so the join reads as
   one surface, and warms the top edge so it catches the same light as every other card. */
.work-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 170, 110, 0.05) 0%, transparent 34%, rgba(21, 13, 19, 0.32) 100%);
}

/* Column so the focus line can be pushed to the bottom — otherwise cards with shorter
   copy leave it floating mid-card and the row's baselines go ragged. */
.work-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 26px;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}

.work-body h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.work-body > p {
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.55;
}

.metric {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}

.metric-label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 22px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--e1), inset 0 1px 0 var(--edge-top);
}

.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.step p {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.step-dur {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Expect / commitment cards (replaces fabricated testimonials) */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quote {
  margin: 0;
  padding: 32px 28px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--e2), inset 0 1px 0 var(--edge-top);
}

.expect-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.expect-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

.work-focus {
  margin-top: auto;
  padding-top: 16px;
  color: var(--accent);
  font-weight: 600;
}

.quote blockquote {
  margin: 0 0 24px;
  padding: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 400;
}






/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  /* Right padding leaves room for the absolutely-positioned "Most popular" badge so it
     never collides with a plan name. */
  padding: 32px 28px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--e2), inset 0 1px 0 var(--edge-top);
}

.price-card.price-mid {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 138, 76, 0.16) 0%, transparent 65%),
    linear-gradient(180deg, #2e1f26 0%, #221720 100%);
  border-color: rgba(255, 138, 76, 0.42);
  box-shadow:
    0 0 80px -18px rgba(255, 138, 76, 0.32),
    var(--e3),
    inset 0 1px 0 rgba(255, 230, 208, 0.22);
}

/* Absolutely positioned. In flow this badge pushed the Growth card's title and price
   ~60px below its neighbours, so the three plan names and the three prices — the two
   things a pricing table exists to let you compare — didn't line up. */
.price-tag {
  position: absolute;
  top: 18px;
  right: 20px;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #24100a;
  background: var(--accent);
  box-shadow: 0 2px 10px -2px rgba(255, 138, 76, 0.6);
}

.price-card h3 {
  margin-bottom: 8px;
  padding-right: 96px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--text);
}

.price-amount span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0;
}

.price-fit {
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.55;
  flex: 0 0 auto;
}

.price-card ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.price-card li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.price-card .btn {
  width: 100%;
}

.price-more {
  margin-top: 32px;
  text-align: center;
}

/* One underlined-text-link idiom, shared. `.text-link` is the standalone form for
   anywhere a section needs a quiet way onward without another button. */
.price-more a,
.text-link {
  color: var(--accent-soft);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 196, 107, 0.35);
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}

.price-more a:hover,
.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link {
  display: inline-block;
  white-space: nowrap;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border);
  box-shadow: var(--e1), inset 0 1px 0 var(--edge-top);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 200ms ease;
}

.faq-item[open] .chevron {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

/* Contact / Final CTA */
.contact {
  position: relative;
  z-index: 2;
  padding: 96px 0 88px;
  overflow: hidden;
  /* Solid dark plum base — the sunrise must composite over dark canvas, never
     over a pale/fixed wash. Matches the design-5 section stacking. */
  background: #0d0810;
}

/* On the contact page this section is the CTA straight after the intro, so it starts
   high enough to sit inside the atmosphere — and its opaque base chopped the glow into
   a hard line under the intro copy. Fading the top edge in lets the atmosphere dissolve
   into the section instead. The sunrise below is unaffected: ::before starts 15% down,
   well past the fade, so it still composites over solid #0d0810. Transparent-to-#0d0810
   costs nothing here because --canvas-top is the same colour. */
.page-intro + .contact {
  background-color: transparent;
  background-image: linear-gradient(to bottom, rgba(13, 8, 16, 0) 0, #0d0810 140px);
}

/* Warm amber sunrise tuned to designs-v2/design-5 (band above footer ≈
   rgb(87,57,41), R-B ≈ 46). Stays inside .contact only; footer is opaque
   #0a060a so it never picks up this light. */
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 190%;
  height: 85%;
  transform: translateX(-50%);
  background:
    /* Core amber — high red, low blue; no pale cream stops. Centred at 88% rather than
       100% so the brightest point sits ABOVE the footer boundary and the falloff has
       room to complete. Anchoring the core on the edge itself is what produced the hard
       line: the gradient was at maximum intensity exactly where it got cut. */
    radial-gradient(
      ellipse 78% 58% at 50% 88%,
      rgba(255, 110, 40, 0.5) 0%,
      rgba(255, 130, 60, 0.34) 18%,
      rgba(230, 100, 45, 0.18) 36%,
      rgba(180, 70, 30, 0.08) 54%,
      transparent 74%
    ),
    /* secondary warm rim under the CTA card */
    radial-gradient(
      ellipse 52% 42% at 50% 90%,
      rgba(255, 150, 70, 0.22) 0%,
      rgba(255, 120, 50, 0.08) 38%,
      transparent 62%
    );
  pointer-events: none;
  z-index: 0;
  /* Fade the glow out before it reaches the footer. The footer's own ::before carries
     the light across the boundary, so the two meet at matched intensity. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
}

.contact-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  padding: 48px 44px;
  border-radius: var(--radius-lg);
  background: rgba(28, 18, 20, 0.75);
  border: 1px solid rgba(255, 190, 150, 0.22);
  border-top-color: rgba(255, 220, 180, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 100px -20px rgba(255, 138, 76, 0.45),
    0 32px 64px -16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 230, 200, 0.15);
}

.contact-panel.cta-band {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  justify-items: center;
}

.contact-panel.cta-band .contact-copy > p {
  margin-left: auto;
  margin-right: auto;
}

.contact-panel.cta-band .contact-meta {
  align-items: center;
  margin-bottom: 22px;
}

.contact-copy h2 {
  margin-bottom: 14px;
}

.contact-copy > p {
  margin-bottom: 28px;
  max-width: 36ch;
}

.contact-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.contact-meta svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}

/* Page intro (inner pages) — two-column: copy + “on this page” */
.page-intro {
  position: relative;
  z-index: 2;
  padding: 40px 0 8px;
}

.page-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(200px, 0.7fr);
  gap: 28px 48px;
  align-items: end;
}

.page-intro-copy h1,
.page-intro h1 {
  max-width: 20ch;
  margin-bottom: 16px;
}

.page-intro-copy > p,
.page-intro > .wrap > p,
.page-intro-copy p {
  max-width: 54ch;
  font-size: 18px;
  line-height: 1.65;
}

.page-intro-aside {
  padding: 20px 20px 16px;
  border-radius: var(--radius);
  background: rgba(33, 23, 34, 0.68);
  border: 1px solid var(--border);
  box-shadow: var(--e2), inset 0 1px 0 var(--edge-top);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-intro-aside .eyebrow {
  margin-bottom: 10px;
}

.page-intro-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-intro-toc a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 180ms ease, background 180ms ease;
}

.page-intro-toc a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-dim);
}

.page-intro-toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* Tighten the handoff from intro into the first content block */
.page-intro + .section {
  padding-top: 56px;
}

.page-intro + .contact {
  padding-top: 48px;
}

.page-intro + .svc-jump {
  margin-top: 8px;
  padding-top: 0;
}

.svc-jump + .section {
  padding-top: 48px;
}

@media (max-width: 768px) {
  .page-intro-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
  }

  .page-intro {
    padding: 32px 0 4px;
  }

  .page-intro + .section {
    padding-top: 40px;
  }

  .page-intro + .contact {
    padding-top: 32px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Scroll reveal
   Opt-in per element via [data-reveal]. The `.js-reveal` class is set on <html> by
   site.js, so with JS off (or before it runs) nothing is ever left hidden.
   -------------------------------------------------------------------------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .ray {
    animation: none !important;
  }
  .btn:hover,
  .btn:active,
  .svc-card:hover,
  .work-card:hover {
    transform: none;
  }
  /* Reveal must degrade to "already visible", never to "permanently hidden". */
  .js-reveal [data-reveal],
  .js-reveal [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Media queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero h1 {
    max-width: none;
  }
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
  .work-grid .work-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .price-card.price-mid {
    order: -1;
  }
  .contact-panel {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .section {
    padding: 80px 0;
  }
  .wrap {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
    margin-left: 0;
  }
  /* The CTA stays in the bar on mobile instead of being hidden inside the menu. Burying
     the only conversion action behind a hamburger meant a phone visitor saw no way to
     make contact until they opened the nav. */
  .nav-cta {
    display: inline-flex;
    order: 2;
    margin-left: auto;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
  }
  .nav-toggle {
    order: 3;
  }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    /* The base .nav-links rule sets align-items: center for the horizontal desktop bar.
       Left as-is in column direction it centre-aligns and shrink-wraps each item, so the
       links sat centred and their tap targets were only as wide as the words. */
    align-items: stretch;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px;
    /* Fully opaque. At 0.96 the hero's 36px white headline was still legible straight
       through the panel — enough alpha for a flat background, not nearly enough with
       large high-contrast type sitting directly behind it. */
    background: #1a1116;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--e3);
    z-index: 60;
  }
  .nav.is-open .nav-links a {
    min-height: 46px;
    width: 100%;
    padding: 8px 14px;
    font-size: 15px;
  }
  .nav {
    position: relative;
    border-radius: 16px;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-grid .work-card:last-child {
    max-width: none;
  }
  .quote-grid {
    grid-template-columns: 1fr;
  }
  .browser-body {
    grid-template-columns: 1fr;
  }
  .page-mock {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .atm {
    height: min(1000px, 128vh);
  }
  .horizon {
    bottom: 10%;
    height: 74%;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
  .section {
    padding: 72px 0;
  }
  /* Buys back the width the in-bar CTA needs at 390px. */
  .nav {
    gap: 10px;
    padding: 8px 12px 8px 14px;
  }
  .logo {
    font-size: 13px;
    letter-spacing: 0.1em;
    gap: 8px;
  }
  .logo-mark {
    width: 24px;
    height: 24px;
  }
  .nav-cta {
    padding: 8px 12px;
    font-size: 12px;
  }
  .hero {
    padding: 32px 0 56px;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .contact {
    padding: 80px 0 72px;
  }
  .contact-panel {
    padding: 28px 18px;
  }
  .mock-cards {
    grid-template-columns: 1fr 1fr;
  }
  .mock-cards i:last-child {
    display: none;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
  }
}

/* services page */
.svc-jump {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding-bottom: 24px;
}

.svc-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.svc-jump a:hover {
  color: var(--text);
  border-color: var(--border-bright);
  background: rgba(255, 138, 76, 0.08);
}

.svc-detail {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--hairline);
}

.svc-detail:first-of-type {
  border-top: none;
  padding-top: 40px;
}

.svc-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 40px 48px;
  align-items: start;
}

.svc-detail-visual {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  max-width: 200px;
  margin: 0 auto;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255, 138, 76, 0.12) 0%, transparent 70%),
    var(--surface-1);
  border: 1px solid var(--border);
  box-shadow: var(--e1), inset 0 1px 0 var(--edge-top);
}

.svc-diagram {
  width: 72%;
  height: auto;
  max-width: 140px;
}

.svc-detail-body {
  min-width: 0;
}

.svc-detail-body .svc-num {
  margin-bottom: 12px;
}

.svc-detail-body h2 {
  margin-bottom: 12px;
}

.svc-pos {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  max-width: 52ch;
}

.svc-detail-body > p:not(.svc-pos) {
  max-width: 62ch;
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.65;
}

.svc-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-bottom: 28px;
}

.svc-lists h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.svc-lists ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-lists li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.svc-lists li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  box-shadow: 0 0 8px var(--accent-dim);
}

.svc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 138, 76, 0.06);
  border: 1px solid rgba(255, 138, 76, 0.18);
  font-size: 14px;
  color: var(--text-2);
}

.svc-meta strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}

.svc-meta em {
  font-style: normal;
  color: var(--text-3);
  font-size: 13px;
}

.svc-dont .section-head {
  margin-bottom: 32px;
}

.dont-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 100%;
}

.dont-list li {
  min-width: 0;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 1px solid var(--border);
  box-shadow: var(--e1), inset 0 1px 0 var(--edge-top);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

.dont-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 1024px) {
  .svc-detail-inner {
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
    gap: 28px 32px;
  }
}

@media (max-width: 768px) {
  .svc-detail {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .svc-detail-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .svc-detail-visual {
    max-width: 140px;
    margin: 0;
  }

  .svc-lists {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dont-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .svc-jump a {
    flex: 1 1 calc(50% - 12px);
    justify-content: center;
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
  }

  .svc-meta {
    flex-direction: column;
    gap: 10px;
  }
}

/* pricing page */
.price-timeline {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.price-timeline strong {
  color: var(--text-2);
  font-weight: 600;
}

.include-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.include-card {
  padding: 28px 24px;
  margin: 0;
}

.include-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.include-card p {
  font-size: 14px;
  line-height: 1.6;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.care-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.care-card.care-mid {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 138, 76, 0.16) 0%, transparent 65%),
    var(--surface-1);
  border-color: rgba(255, 138, 76, 0.35);
  border-top-color: rgba(255, 210, 170, 0.45);
}

.care-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 4px 0 10px;
  color: var(--text);
}

.care-amount span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0;
}

.care-fit {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.55;
}

.care-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.care-card li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
}

.care-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.care-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-3);
  max-width: 62ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.compare-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-1);
  box-shadow: var(--e2), inset 0 1px 0 var(--edge-top);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  width: 22%;
}

.compare-table td {
  color: var(--text-2);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Growth is flagged "Most popular" on the cards above, so it has to stay the
   recommended option here too — an unmarked column silently contradicts the card. */
.compare-table th:nth-child(3),
.compare-table td:nth-child(3) {
  background: rgba(255, 138, 76, 0.07);
  box-shadow: inset 1px 0 0 rgba(255, 138, 76, 0.16), inset -1px 0 0 rgba(255, 138, 76, 0.16);
}

.compare-table thead th:nth-child(3) {
  color: var(--accent);
  background: rgba(255, 138, 76, 0.13);
}

.compare-table td:nth-child(3) {
  color: var(--text);
}

.faq-list a {
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(255, 196, 107, 0.35);
}

.faq-list a:hover {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .include-grid {
    grid-template-columns: 1fr 1fr;
  }
  .care-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .care-card.care-mid {
    order: -1;
  }
}

@media (max-width: 768px) {
  .include-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .include-card,
  .care-card {
    padding: 24px 20px;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
  }
}

/* contact page */
.req-text {
  font-weight: 500;
  color: var(--text-3);
  text-transform: none;
  letter-spacing: 0;
}

.opt-text {
  font-weight: 500;
  color: var(--text-3);
  text-transform: none;
  letter-spacing: 0;
}

.next-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: next;
}

.next-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
}

.next-steps li::before {
  counter-increment: next;
  content: counter(next, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1.6;
  grid-row: 1 / span 2;
}

.next-steps strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  grid-column: 2;
}

.next-steps span {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  grid-column: 2;
}

.field-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.field-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.field-check label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
}

.contact-panel .form .btn {
  width: 100%;
  margin-top: 4px;
}

.status-page {
  position: relative;
  z-index: 2;
  padding: 72px 0 120px;
  min-height: 52vh;
}

.status-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: rgba(28, 18, 20, 0.75);
  border: 1px solid rgba(255, 190, 150, 0.22);
  border-top-color: rgba(255, 220, 180, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 100px -20px rgba(255, 138, 76, 0.4),
    0 32px 64px -16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 230, 200, 0.15);
}

.status-card h1 {
  margin-bottom: 16px;
  max-width: 16ch;
}

.status-lead {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.status-lead strong {
  color: var(--text);
  font-weight: 600;
}

.status-card .next-steps {
  margin-bottom: 32px;
}

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

.lost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 28px;
}

.lost-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(255, 196, 107, 0.35);
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}

.lost-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 480px) {
  .status-page {
    padding: 48px 0 80px;
  }
  .status-card {
    padding: 28px 18px;
  }
  .status-actions {
    flex-direction: column;
  }
  .status-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   work page
   ========================================================================== */

.results-summary {
  padding-top: 56px;
}

.results-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Left-aligned focus tiles, not centred stat tiles. These hold words ("Bookings",
   "Speed", "Clarity"), and the .metric treatment they used to borrow — oversized,
   accent-orange, tabular-lined-up — is the visual grammar of a number. Words sitting
   in that slot read as a metrics row with the metrics missing. */
.result-tile {
  padding: 26px 24px 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.result-tile .metric {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.result-tile .metric-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.result-client {
  margin-top: auto;
  padding-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-studies {
  padding-top: 40px;
}

.case-study {
  padding: 36px 32px 32px;
  margin-bottom: 32px;
  min-width: 0;
  overflow: hidden;
}

.case-study:last-of-type {
  margin-bottom: 0;
}

.case-study-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px 36px;
  align-items: start;
  margin-bottom: 28px;
  min-width: 0;
}

.case-study-top-flip .case-study-copy {
  order: 2;
}

.case-study-top-flip .case-study-visual {
  order: 1;
}

.case-study-copy {
  min-width: 0;
}

.case-study-copy h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  margin-bottom: 6px;
}

.case-duration {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.case-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.case-study-copy > p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.case-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-list li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
  box-shadow: 0 0 8px var(--accent-dim);
}

.case-study-visual {
  min-width: 0;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(165deg, rgba(255, 160, 100, 0.08) 0%, transparent 50%),
    rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--edge-top);
  padding: 18px;
  overflow: hidden;
}

/* Layout mock (Pinnacle) */
.viz-layout {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(12, 8, 12, 0.55);
  border: 1px solid rgba(255, 190, 150, 0.1);
}

.viz-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255, 200, 160, 0.06), transparent);
}

.viz-chrome > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.viz-chrome > span:first-child {
  background: rgba(255, 138, 76, 0.55);
}

.viz-url {
  flex: 1;
  min-width: 0;
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viz-body {
  padding: 14px;
}

.viz-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  align-items: center;
}

.viz-nav i {
  display: block;
  height: 5px;
  width: 28px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  font-style: normal;
}

.viz-nav i.viz-cta {
  width: 40px;
  margin-left: auto;
  background: rgba(255, 138, 76, 0.45);
}

.viz-hero {
  height: 52px;
  border-radius: 8px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255, 138, 76, 0.3), rgba(255, 196, 107, 0.08) 60%, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 190, 150, 0.14);
}

.viz-cols {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 10px;
  min-width: 0;
}

.viz-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.viz-col b {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: normal;
}

.viz-col b:nth-child(1) { width: 90%; }
.viz-col b:nth-child(2) { width: 72%; }
.viz-col b:nth-child(3) { width: 58%; background: rgba(255, 255, 255, 0.06); }

.viz-book {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 138, 76, 0.08);
  border: 1px solid rgba(255, 138, 76, 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.viz-book-title {
  display: block;
  height: 5px;
  width: 55%;
  border-radius: 3px;
  background: rgba(255, 138, 76, 0.45);
}

.viz-book-field {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 190, 150, 0.1);
}

.viz-book-btn {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.85;
  margin-top: 2px;
}

/* Performance bars (Kindred) */
.viz-perf {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.viz-perf-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}

.viz-perf-gap {
  margin-top: 10px;
}

.viz-bar-row {
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.viz-bar-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}

.viz-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 190, 150, 0.08);
  overflow: hidden;
  min-width: 0;
}

.viz-bar {
  height: 100%;
  border-radius: 999px;
  max-width: 100%;
}

.viz-bar-before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.viz-bar-after {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 12px -2px var(--accent-dim);
}

.viz-bar-w-92 { width: 92%; }
.viz-bar-w-70 { width: 70%; }
.viz-bar-w-24 { width: 24%; }
.viz-bar-w-8  { width: 8%; }

.viz-bar-val {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  text-align: right;
}

.viz-bar-val.accent {
  color: var(--accent);
}

/* Chart (Aether) */
.viz-chart {
  min-width: 0;
}

.viz-chart-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.viz-chart-svg {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.viz-chart-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}

/* Result band + quote */
/* Three peers, styled identically. This band previously reused the .metric treatment —
   a 2.5rem accent-orange numeral slot — to hold the word "Goal", with its two
   neighbours in plain body text. It read as a stats block someone had deleted the
   stats from. They are three labelled facts, so they get one label/value pair each. */
.case-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 28px;
  padding: 22px 24px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  background: var(--accent-wash);
  border: 1px solid rgba(255, 138, 76, 0.2);
  min-width: 0;
}

.case-result-item {
  min-width: 0;
}

.case-result-key {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.case-result-val {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  font-weight: 500;
}

.case-quote {
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--hairline);
}

.case-quote blockquote {
  margin: 0 0 18px;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

@media (max-width: 1024px) {
  .results-row {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .case-study-top,
  .case-study-top-flip {
    grid-template-columns: 1fr;
  }

  .case-study-top-flip .case-study-copy,
  .case-study-top-flip .case-study-visual {
    order: unset;
  }

  .case-result {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .case-study {
    padding: 28px 20px 24px;
  }

  .case-result {
    padding: 18px 16px;
  }

  .case-result-side {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .results-row {
    max-width: none;
  }

  .result-tile {
    padding: 22px 18px;
  }

  .case-study {
    padding: 24px 16px 20px;
  }

  .case-study-visual {
    padding: 14px;
  }

  .viz-bar-row {
    grid-template-columns: 44px 1fr 36px;
    gap: 6px;
  }

  .case-result-side {
    grid-template-columns: 1fr;
  }

  .case-quote blockquote {
    font-size: 15px;
  }
}

/* ==========================================================================
   Sample builds + modal viewer
   ========================================================================== */

.samples-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.sample-card {
  grid-column: span 2;
}

.sample-card--featured {
  grid-column: span 3;
}

/* A button, not a link: it opens a dialog rather than navigating. Screen readers and
   keyboards both need that to be the truth. */
.sample-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--e2), inset 0 1px 0 var(--edge-top);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.sample-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  box-shadow: var(--e3), inset 0 1px 0 rgba(255, 226, 202, 0.2);
}

.sample-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}

.sample-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 600ms var(--ease);
}

.sample-card:hover .sample-shot img {
  transform: scale(1.03);
}

.sample-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.sample-kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 10px;
}

.sample-card h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.sample-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.sample-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.sample-capabilities > span {
  padding: 5px 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sample-view {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.sample-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-3);
  max-width: 70ch;
}

/* --- Modal ---------------------------------------------------------------- */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 3, 6, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1280px, 100%);
  height: min(88vh, 900px);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border-bright);
  box-shadow: var(--e3);
  overflow: hidden;
}

.modal-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
  flex-shrink: 0;
}

.modal-meta {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* States plainly that this is a concept build. It sits in the modal chrome rather than
   inside the sample so the demo itself stays clean — but it is always on screen, so the
   work is never passed off as a real client engagement. */
.modal-tag {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 76, 0.35);
  background: var(--accent-wash);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.modal-open {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.modal-open:hover {
  border-color: rgba(255, 214, 186, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.modal-close:hover {
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.06);
}

/* iOS Safari ignores an iframe's height and grows it to fit its content, so the
   frame has to be the scroller — otherwise the concept build renders full height
   inside a fixed panel and only its top is ever reachable. */
.modal-frame {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #0f0b0d;
}

.modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Stops the page behind from scrolling while the dialog is open. */
.modal-open-lock {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .samples-grid {
    grid-template-columns: 1fr 1fr;
  }
  .samples-grid .sample-card,
  .samples-grid .sample-card--featured {
    grid-column: auto;
  }
  .samples-grid .sample-card:last-child {
    grid-column: 1 / -1;
  }
}

/* Only the two-column band gives the odd card out a full-width span, and there
   16/10 makes its shot taller than a landscape phone is. Read it as a banner
   instead — below 769px it is an ordinary card again and keeps 16/10. */
@media (min-width: 769px) and (max-width: 1024px) {
  .samples-grid .sample-card:last-child .sample-shot {
    aspect-ratio: 21 / 9;
  }
}

@media (max-width: 768px) {
  .samples-grid {
    grid-template-columns: 1fr;
  }
  .samples-grid .sample-card,
  .samples-grid .sample-card--featured {
    grid-column: auto;
  }
  .samples-grid .sample-card:last-child {
    grid-column: auto;
  }
  .modal {
    padding: 0;
  }
  .modal-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
  }
  .modal-bar {
    padding: 10px 10px 10px 14px;
  }
  .modal-open {
    display: none;
  }
  .modal-title {
    font-size: 14px;
  }
}

/* ==========================================================================
   Home page rhythm
   Six sections of eyebrow → h2 → paragraph → card grid, all on one surface at
   one interval, stopped reading as separate sections by about the third. The
   fix is page-level, not token-level, so it is scoped to `.home`: the inner
   pages have two or three sections and still want the roomier default.
   Three moves — alternating bands mark the boundaries, two sections break the
   card-grid shape, and the interval is tighter than the shared 88px.
   ========================================================================== */

.home .section {
  padding: 64px 0;
}

/* Two-column head. Stacked, the head ran eyebrow → h2 → paragraph down a 620px
   column and left the right ~40% of every section empty — which is most of why
   six section openings read as one repeating shape. Setting the paragraph beside
   the headline uses that space and takes a stacked line-height off each head.
   Bottom-aligned so the two columns share a baseline no matter which is taller. */
.home .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 0 56px;
  max-width: none;
  margin-bottom: 26px;
}

.home .section-head .eyebrow {
  grid-area: 1 / 1;
  justify-self: start;
}

.home .section-head h2 {
  grid-area: 2 / 1;
  margin-bottom: 0;
}

.home .section-head p {
  grid-area: 2 / 2;
  max-width: 48ch;
}

/* The closing CTA is the one panel on the page, so it can carry its own air —
   but not the 96/88 the inner pages give it on top of a much shorter column. */
.home .contact {
  padding: 72px 0 76px;
}

/* Alternating surface. Same recipe as `.svc-detail` — hairline rules do the
   dividing — plus a recessed fill so a boundary still registers when the rule
   itself is off screen. Full-bleed on purpose: a band inset to the `.wrap`
   gutter would read as one more rounded rectangle. */
.section--band {
  background: var(--surface-sunk);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* Sample builds: note on the left, way onward on the right. Deleting the
   "Project types" section removed the home page's only path to /work/. */
.samples-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 22px;
}

.samples-foot .sample-note {
  margin-top: 0;
  flex: 1 1 420px;
}

/* --------------------------------------------------------------------------
   Process — timeline rail, not four cards
   Four equal cards render a sequence as a set: same weight, same box, no
   direction. The rail states the order, and drops four cards' worth of border,
   shadow and padding while it does it.
   -------------------------------------------------------------------------- */
.steps--rail {
  grid-template-columns: repeat(4, 1fr);
  gap: 0 28px;
}

.steps--rail .step {
  position: relative;
  padding: 40px 0 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* The connector from this marker to the next. It overshoots by exactly the
   column gap so the line stays continuous across the grid; the last step has
   nothing to connect to. */
.steps--rail .step::after {
  content: "";
  position: absolute;
  top: 13.5px;
  left: 38px;
  right: -28px;
  height: 1px;
  background: var(--hairline);
}

.steps--rail .step:last-child::after {
  content: none;
}

/* Sits on the rail rather than above the copy, which is what makes the row read
   as one line instead of four headings. */
.steps--rail .step-num {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-1);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.steps--rail .step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.steps--rail .step p {
  margin-bottom: 10px;
  padding-right: 12px;
}

/* --------------------------------------------------------------------------
   Working with us — editorial list, not cards
   Four cards of pure prose put chrome around text with no visual content to
   hold. Hairline-separated rows are shorter, quieter, and more credible for
   what is a set of promises.
   -------------------------------------------------------------------------- */
.expect-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.expect-item {
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}

.expect-item h3 {
  position: relative;
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Same accent dot as `.svc-card li`. These are a list of commitments, so reusing
   the site's existing list marker keeps them in the family. */
.expect-item h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  box-shadow: 0 0 8px var(--accent-dim);
}

.expect-item p {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Home rhythm — responsive
   These override the shared `.steps` breakpoints, so they must stay after them
   in source order (equal specificity).
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .steps--rail {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
  }
  /* Two columns: the connector has to stop at the end of each row. */
  .steps--rail .step:nth-child(2n)::after {
    content: none;
  }
}

@media (max-width: 768px) {
  /* Below this the two head columns are too narrow for a 29px headline, so the
     head goes back to stacked. */
  .home .section-head {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .home .section-head h2 {
    grid-area: auto;
    margin-bottom: 12px;
  }
  .home .section-head .eyebrow,
  .home .section-head p {
    grid-area: auto;
  }
  .home .section {
    padding: 52px 0;
  }
  .home .section-head {
    margin-bottom: 22px;
  }
  .home .contact {
    padding: 60px 0 64px;
  }
  .expect-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .home .section {
    padding: 40px 0;
  }
  .home .contact {
    padding: 52px 0 56px;
  }
  /* One column: the rail turns vertical and runs down the left margin, which is
     what a sequence looks like once it has to stack. */
  .steps--rail {
    grid-template-columns: 1fr;
    gap: 20px 0;
  }
  .steps--rail .step {
    min-height: 28px;
    padding: 0 0 0 42px;
  }
  .steps--rail .step::after {
    content: "";
    top: 34px;
    bottom: -20px;
    left: 13.5px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .steps--rail .step:last-child::after {
    content: none;
  }
}
