/* ===========================================================
   Phoenix Woodrow — design tokens
   Black base, pearl + glass glossy controls, neutral accents
   =========================================================== */
:root {
  --bg: #000000;
  --panel: #0d0d0d;
  --panel-2: #161616;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --faint: #8a8a8a;
  --accent: #e6e6e6;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --r-btn: 10px;
  --r-panel: 16px;
  --container: 1120px;
  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
::selection { background: var(--accent); color: #0a0a0a; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
p { text-wrap: pretty; }

@view-transition { navigation: auto; }

/* ===========================================================
   Glossy buttons
   =========================================================== */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--r-btn);
  font: 600 15px/1 var(--font-body);
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
/* upper-half gloss */
.btn::before {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08));
}
/* sheen that passes once on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.5) 50%, transparent 62%);
  transform: translateX(-130%);
}
.btn:hover::after { transform: translateX(130%); transition: transform 0.8s ease; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #0a0a0a;
  background: linear-gradient(180deg, #ffffff 0%, #ececec 49%, #c9c9c9 51%, #dedede 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 12px 24px -12px rgba(0, 0, 0, 0.95),
    0 2px 5px rgba(0, 0, 0, 0.4);
}
.btn-primary::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1)); }
.btn-primary:hover { filter: brightness(1.04); box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 14px 28px -12px rgba(0, 0, 0, 0.95),
    0 0 24px -4px rgba(255, 255, 255, 0.18); }

.btn-glass {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 49%, rgba(255, 255, 255, 0.015) 51%, rgba(255, 255, 255, 0.07)), #0b0b0b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 10px 20px -12px rgba(0, 0, 0, 0.9);
}
.btn-glass::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); }
.btn-glass:hover { box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 10px 20px -12px rgba(0, 0, 0, 0.9); }
.btn-sm { padding: 12px 18px; font-size: 14px; }

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

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.nav-brand { font: 600 17px var(--font-display); letter-spacing: -0.015em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { box-shadow: 0 6px 0 -5px var(--accent); }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-btn);
  border: 0;
  color: var(--text);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05) 49%, rgba(255,255,255,.015) 51%, rgba(255,255,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(255,255,255,.14);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.mobile-panel {
  display: flex; flex-direction: column;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
}
.mobile-panel a { padding: 14px 4px; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-panel.open { max-height: 520px; opacity: 1; padding: 4px 20px 16px; }
.nav-links, .nav > .btn { display: none; }
.nav-toggle { display: inline-flex; }

/* ===========================================================
   Hero + before/after
   =========================================================== */
.hero { padding: 40px 0 48px; }
.hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 16em;
}
.hero-lede { font-size: 17px; color: var(--muted); max-width: 34em; margin: 18px 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--faint); }

/* ===========================================================
   Sections
   =========================================================== */
.section { padding: 52px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; }
.section-head p { color: var(--muted); margin: 12px 0 0; max-width: 34em; }

/* two ways to start: ruled columns, no boxes */
.offers { display: grid; grid-template-columns: 1fr; }
.offer { padding: 0 0 8px; display: flex; flex-direction: column; align-items: flex-start; }
.offer + .offer { margin-top: 36px; padding: 36px 0 8px; border-top: 1px solid var(--line); }
.offer h3 { font-size: 30px; line-height: 1.1; }
.offer .for { margin: 6px 0 18px; font-size: 14.5px; color: var(--faint); }
.offer p { color: var(--muted); margin: 0 0 26px; max-width: 30em; }
.offer .from { margin-top: auto; padding-bottom: 18px; font: 600 15px var(--font-body); color: var(--text); }
.offer .from b { font: 700 30px var(--font-display); letter-spacing: -0.03em; margin-left: 4px; }
.client-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
.client-strip a { color: var(--text); box-shadow: 0 1px 0 var(--accent); }

/* process: a real sequence */


/* work */
.browser { border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px #000; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.browser-bar span { margin-left: 10px; font-size: 12.5px; color: var(--faint); }
.browser a { display: block; aspect-ratio: 16 / 10; background: var(--panel); }
.browser img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.work h3 { font-size: 28px; margin-bottom: 6px; }
.work .kind { color: var(--faint); font-size: 14.5px; margin: 0 0 18px; }
.work p { color: var(--muted); margin: 0 0 26px; }
.work-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.meta-line { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.meta-line p { margin: 0; max-width: 38em; color: var(--muted); }
.meta-line strong { color: var(--text); font-weight: 600; }

/* contact */
.contact-panel {
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
  padding: 28px 20px; border-radius: 20px; background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 1px var(--line);
}
.contact-panel h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; }
.contact-panel p { color: var(--muted); margin: 14px 0 0; max-width: 28em; }
.contact-link { display: block; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-link:last-child { border-bottom: 1px solid var(--line); }
.contact-link small { display: block; font-size: 13.5px; color: var(--faint); }
.contact-link span { font: 600 clamp(17px, 2.2vw, 21px) var(--font-display); letter-spacing: -0.01em; overflow-wrap: anywhere; transition: color .15s; }
.contact-link:hover span { color: #fff; box-shadow: 0 2px 0 -1px var(--accent); }


/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer-brand h4 { font-size: 16px; margin-bottom: 8px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 300px; margin: 0; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h5 { font: 600 14px var(--font-body); color: var(--faint); margin: 0 0 10px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 7px 0; transition: color .15s; }
.footer-col a:hover, .footer-social a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--faint); font-size: 13.5px; margin: 0; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ===========================================================
   Page heroes (pricing, case studies, about, 404)
   =========================================================== */
.page-hero { padding: 40px 0 36px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; max-width: 20em; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 36em; margin: 16px 0 0; }
.page-hero .fine { font-size: 14px; color: var(--faint); margin-top: 18px; }

/* included strip */
.included { display: grid; grid-template-columns: 1fr; gap: 24px; list-style: none; margin: 0; padding: 0; }
.included li { padding-top: 18px; border-top: 1px solid var(--line); }
.included h3 { font-size: 19px; margin-bottom: 8px; }
.included p { margin: 0; font-size: 15px; color: var(--muted); }


/* price drivers */
.drivers { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 0; }
.drivers div { padding-top: 18px; border-top: 1px solid var(--line); }
.drivers dt { font: 600 19px var(--font-display); letter-spacing: -0.02em; margin-bottom: 8px; }
.drivers dd { margin: 0; color: var(--muted); font-size: 15px; }


/* tier rows */
.tiers { display: flex; flex-direction: column; }
.tier {
  display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.tier:last-child { border-bottom: 1px solid var(--line); }
.tier h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tier .price { font: 700 36px/1.1 var(--font-display); letter-spacing: -0.035em; margin: 8px 0 8px; }
.tier .price small { font: 400 14px var(--font-body); color: var(--faint); letter-spacing: 0; margin-left: 5px; }
.tier .for { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 22em; }
.tier ul { list-style: none; margin: 0; padding: 4px 0 0; }
.tier li { position: relative; padding: 5px 0 5px 24px; color: var(--muted); font-size: 15px; }
.tier li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tier .btn { width: 100%; }
.tier.rec {
  margin: 12px 0; padding: 22px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-panel);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 24px 48px -32px #000;
}
.tier.rec li { color: var(--text); }
.chip {
  font: 600 12.5px var(--font-body); letter-spacing: 0; padding: 4px 10px; border-radius: 999px; color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 52%, rgba(255,255,255,.1)), #1a1a1a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 1px rgba(255,255,255,.16);
}
.compact .tier { padding: 22px 0; }
.compact .tier .price { font-size: 30px; }

.price-note { margin: 36px 0 0; color: var(--faint); font-size: 14.5px; max-width: 46em; }

/* existing-client dropdown */
.client-menu { border-radius: 20px; background: var(--panel); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 1px var(--line); }
.client-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 18px; border-radius: 20px;
}
.client-menu summary::-webkit-details-marker { display: none; }
.client-menu summary h2 { font-size: clamp(22px, 3vw, 30px); }
.client-menu summary p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; max-width: 40em; }
.chev {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #fff 0%, #ececec 49%, #c9c9c9 51%, #dedede 100%); color: #0a0a0a;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255,255,255,.3), 0 8px 16px -8px #000;
  transition: transform 0.3s ease;
}
.chev svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.client-menu[open] .chev { transform: rotate(180deg); }
.client-menu::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete; }
.client-menu[open]::details-content { block-size: auto; }
.client-body { padding: 0 18px 24px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 13px; background: #080808; box-shadow: inset 0 1px 2px rgba(0,0,0,.5), 0 0 0 1px var(--line); margin-bottom: 8px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 14.5px var(--font-body); padding: 10px 18px; border-radius: 9px; cursor: pointer; transition: color .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.07) 49%, rgba(255,255,255,.03) 51%, rgba(255,255,255,.1)), #1a1a1a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 0 0 1px rgba(255,255,255,.16);
}
.panel-intro { color: var(--muted); max-width: 40em; margin: 14px 0 6px; }



/* ===========================================================
   About + case studies
   =========================================================== */
.prose p { color: var(--muted); max-width: 40em; margin: 0 0 18px; }
.skills { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.skills div { padding: 16px 0; border-top: 1px solid var(--line); }
.skills dt { font: 600 19px var(--font-display); letter-spacing: -0.02em; }
.skills dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }


.case { padding: 48px 0; border-top: 1px solid var(--line); }
.case h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; }
.case .kind { color: var(--faint); margin: 8px 0 24px; font-size: 15px; }
.case .browser { margin-bottom: 24px; }
.case-cols { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
.case-cols > div, .case-cols > div:first-child { padding: 20px 0 0; border-top: 1px solid var(--line); }
.case-cols h3 { font-size: 20px; margin-bottom: 14px; }
.case-cols ul { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 15px; }
.case-cols li { margin-bottom: 12px; padding-left: 4px; }
.case-cols li::marker { color: var(--faint); }
.case-cols p { color: var(--text); margin: 0; font-size: 15.5px; }
.scope { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0 0 28px; padding: 0; }
.scope li { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--muted); box-shadow: 0 0 0 1px var(--line); }

/* 404 */
.notfound { min-height: 56vh; display: flex; align-items: center; padding: 48px 0; }
.notfound .code { font: 700 clamp(96px, 20vw, 190px)/0.9 var(--font-display); letter-spacing: -0.06em; color: var(--panel-2); margin: 0 0 12px; }
.notfound h1 { font-size: clamp(28px, 4vw, 40px); }
.notfound p { color: var(--muted); margin: 12px 0 28px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ===========================================================
   Desktop refinements (mobile spacing above is the base)
   =========================================================== */
@media (min-width: 560px) {
  .included { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tier .btn { width: auto; }
  .tier { align-items: start; }
}
@media (min-width: 861px) {
  body { font-size: 16.5px; line-height: 1.65; }
  .wrap { padding: 0 24px; }
  .nav { height: 72px; }
  .nav-links, .nav > .btn { display: flex; }
  .nav-toggle, .mobile-panel { display: none; }
  .hero { padding: 88px 0 72px; }
  .hero-lede { font-size: 20px; margin: 26px 0 34px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 52px; }
  .section-head p { margin-top: 16px; }
  .page-hero { padding: 88px 0 64px; }
  .page-hero p { font-size: 18.5px; margin-top: 22px; }
  .work { grid-template-columns: 1.25fr 1fr; gap: 56px; }
  .work h3 { font-size: 32px; }
  .offers { grid-template-columns: 1fr 1fr; }
  .offer { padding: 4px 48px 8px 0; }
  .offer + .offer { margin-top: 0; padding: 4px 0 8px 48px; border-top: 0; border-left: 1px solid var(--line); }
  .client-strip { margin-top: 56px; padding-top: 24px; }
  .contact-panel { grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 52px; border-radius: 24px; }
  .contact-link { padding: 18px 0; }
  .site-footer { padding: 52px 0 32px; }
  .footer-top { padding-bottom: 32px; margin-bottom: 24px; }
  .footer-cols { gap: 64px; }
  .footer-col a { padding: 5px 0; }
  .included { grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .drivers { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .tier { grid-template-columns: minmax(210px, 0.75fr) 1.3fr auto; gap: 40px; padding: 30px 0; }
  .tier .btn { align-self: center; }
  .tier.rec { margin: 14px -28px; padding: 30px 28px; }
  .compact .tier { padding: 24px 0; }
  .client-menu summary { padding: 28px 32px; }
  .client-body { padding: 4px 32px 36px; }
  .client-body .tier.rec { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .skills { grid-template-columns: 1fr 1fr; gap: 0 56px; }
  .case { padding: 88px 0; }
  .case .kind { margin: 10px 0 40px; }
  .case .browser { margin-bottom: 44px; }
  .case-cols { grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 36px; }
  .case-cols > div { padding: 0 32px; border-left: 1px solid var(--line); border-top: 0; }
  .case-cols > div:first-child { padding-left: 0; border-left: 0; }
  .notfound { min-height: 60vh; padding: 80px 0; }
}

/* ===========================================================
   Cards (where grouped items benefit from a surface)
   =========================================================== */
.offer, .offer + .offer, .included li, .drivers div, .skills div, .svc, .compact .tier {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)), var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px var(--line), 0 24px 40px -32px #000;
  border: 0;
  border-radius: 16px;
}
.offers { gap: 14px; }
.offer, .offer + .offer { padding: 24px; margin-top: 0; }
.included, .drivers { gap: 14px; }
.included li, .drivers div { padding: 22px; }
.skills { gap: 12px; }
.skills div { padding: 18px 20px; }

.svc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.svc { display: flex; flex-direction: column; gap: 8px; padding: 24px; transition: box-shadow .2s ease; }
.svc h3 { font-size: 21px; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.svc-price { margin-top: 10px; font: 600 15px var(--font-body); color: var(--text); box-shadow: 0 1px 0 var(--accent); align-self: flex-start; }
.svc:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 0 1px rgba(255,255,255,.28), 0 24px 40px -32px #000; }

/* plans inside the client dropdown */
.compact .tiers { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
.compact .tier { display: flex; flex-direction: column; gap: 16px; padding: 24px; margin: 0; }
.compact .tier:last-child { border-bottom: 0; }
.compact .tier ul { flex: 1; padding-top: 0; }
.compact .tier .btn { align-self: stretch; width: 100%; }
.compact .tiers .tier.rec {
  margin: 0; padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)), var(--panel-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 1px rgba(255,255,255,.28), 0 24px 40px -28px #000;
}
@media (min-width: 600px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 861px) {
  .offer, .offer + .offer { padding: 32px; }
  .offers { gap: 20px; }
  .included, .drivers { gap: 20px; }
  .skills { gap: 16px; }
  .svc-grid { gap: 20px; }
  .compact .tiers { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .compact .tiers.two { grid-template-columns: repeat(2, 1fr); }
  .compact .tier, .compact .tiers .tier.rec { padding: 26px; }
}

.nobr { white-space: nowrap; }

/* ===========================================================
   Scroll meter + hidden scrollbar
   =========================================================== */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  background: #ffffff;
}

/* ===========================================================
   Hero: copy beside a live build demo
   =========================================================== */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }

.demo { min-width: 0; }
.demo-code {
  margin: 0; height: 350px; overflow: hidden;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #cfcfcf; white-space: pre; tab-size: 2;
}
.tk-t { color: #ffffff; font-weight: 600; }
.tk-a { color: #bdbdbd; }
.tk-s { color: #8a8a8a; }
.tk-c { color: #6f6f6f; }
.caret { display: inline-block; width: 8px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: #ffffff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===========================================================
   Scroll reveals (JS adds .js; nothing is hidden without it)
   =========================================================== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   Pointer-following light on cards
   =========================================================== */
.offer, .included li, .drivers div, .skills div, .svc, .tier.rec, .compact .tier, .contact-panel { position: relative; isolation: isolate; }
.offer::before, .included li::before, .drivers div::before, .skills div::before, .svc::before, .tier.rec::before, .compact .tier::before, .contact-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.1), transparent 62%);
  transition: opacity 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .offer:hover::before, .included li:hover::before, .drivers div:hover::before, .skills div:hover::before, .svc:hover::before,
  .tier.rec:hover::before, .compact .tier:hover::before, .contact-panel:hover::before { opacity: 1; }
}

@media (min-width: 481px) {
  .demo-code { font-size: 14px; line-height: 1.7; height: 430px; }
}
@media (min-width: 961px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hero-grid .hero-copy h1 { font-size: clamp(36px, 4.4vw, 56px); }
  .hero-grid .hero-lede { font-size: 18.5px; }
  .demo-code { font-size: 15px; height: 460px; }
}

/* ===========================================================
   Why custom-coded: comparison cards
   =========================================================== */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.why-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 0;
  padding: 24px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)), var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px var(--line), 0 24px 40px -32px #000;
}
.why-card h3 { font-size: 22px; line-height: 1.1; margin-bottom: 18px; }
.why-card p { margin: 0; font-size: 15px; line-height: 1.5; }
.why-card small { display: block; margin-bottom: 6px; font: 600 12.5px var(--font-body); letter-spacing: 0.02em; }
.why-old { color: var(--faint); padding-bottom: 18px; flex: 1; }
.why-old small { color: var(--faint); }
.why-new { color: var(--text); padding-top: 18px; border-top: 1px solid var(--line); }
.why-new small { color: var(--muted); display: flex; align-items: center; gap: 7px; }
.why-new small::before { content: ""; width: 5px; height: 9px; margin: 0 2px 2px 3px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); flex: none; }
.why-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.1), transparent 62%);
  transition: opacity 0.35s ease;
}
@media (hover: hover) and (pointer: fine) { .why-card:hover::before { opacity: 1; } }
@media (min-width: 640px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-card:last-child { grid-column: 1 / -1; }
}
@media (min-width: 961px) {
  .why-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .why-card { grid-column: span 2; padding: 28px; }
  .why-card:nth-child(4), .why-card:nth-child(5) { grid-column: span 3; }
}

/* ===========================================================
   Attention outline: rainbow ring, outline only, never a fill.
   Always in motion, rotating clockwise around the edge.
   live  = always moving (hero button, recommended tiers)
   hover = moves while hovered
   flash = one quick clockwise pass on hover
   =========================================================== */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --o { syntax: "<number>"; inherits: false; initial-value: 0; }

.hero .btn-primary, .btn-primary:not(.hero .btn-primary), .btn-glass,
.tier.rec, .compact .tier, .contact-panel, .svc, .offer, .client-menu, .included li, .drivers div, .skills div, .why-card, .case-cols > div, .steps li {
  --a: 0deg;
  --o: 0;
  --rainbow: conic-gradient(from var(--a),
    hsla(322, 100%, 50%, var(--o)) 0%, hsla(55, 100%, 50%, var(--o)) 17%,
    hsla(137, 95%, 45%, var(--o)) 39%, hsla(186, 100%, 50%, var(--o)) 52%,
    hsla(314, 100%, 50%, var(--o)) 87%, hsla(0, 100%, 50%, var(--o)) 100%);
}

@keyframes ring-spin { to { --a: 360deg; } }
@keyframes ring-flash {
  0%   { --a: 0deg;   --o: 0; }
  15%  { --o: 1; }
  80%  { --o: 1; }
  100% { --a: 360deg; --o: 0; }
}

/* buttons: ring is painted in a transparent 2px border (size unchanged) */
.hero .btn-primary, .btn-primary:not(.hero .btn-primary), .btn-glass {
  border: 2px solid transparent;
  padding: 12px 24px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, --o 0.5s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #ececec 49%, #c9c9c9 51%, #dedede 100%) padding-box, var(--rainbow) border-box;
}
.btn-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 49%, rgba(255, 255, 255, 0.015) 51%, rgba(255, 255, 255, 0.07)) padding-box, linear-gradient(#0b0b0b, #0b0b0b) padding-box, var(--rainbow) border-box;
}

/* cards: ring is a masked pseudo-element sitting on the edge */
.tier.rec, .compact .tier, .contact-panel, .svc, .offer, .client-menu, .included li, .drivers div, .skills div, .why-card, .case-cols > div, .steps li { position: relative; }
.tier.rec::after, .compact .tier::after, .contact-panel::after, .svc::after, .offer::after, .client-menu::after, .included li::after, .drivers div::after, .skills div::after, .why-card::after, .case-cols > div::after, .steps li::after {
  content: ""; position: absolute; inset: -1px; padding: 2px; border-radius: inherit; pointer-events: none; z-index: 2;
  background: var(--rainbow);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tier.rec, .compact .tier, .contact-panel, .svc, .offer, .client-menu, .included li, .drivers div, .skills div, .why-card, .case-cols > div, .steps li { transition: --o 0.5s ease; }

/* live: always moving */
.hero .btn-primary, .tier.rec { --o: 1; animation: ring-spin 7s linear infinite; }
.tier.rec { animation-duration: 9s; }

/* hover: moves while hovered; paused (not reset) when idle so it fades out in place */
.btn-primary:not(.hero .btn-primary), .btn-glass, .compact .tier, .contact-panel, .svc, .offer, .client-menu, .included li, .drivers div, .skills div, .why-card, .case-cols > div, .steps li { animation: ring-spin 3.5s linear infinite paused; }
@media (hover: hover) {
  .btn-primary:not(.hero .btn-primary):hover, .btn-glass:hover,
  .compact .tier:hover, .contact-panel:hover, .svc:hover, .offer:hover, .client-menu:hover, .included li:hover, .drivers div:hover, .skills div:hover, .why-card:hover, .case-cols > div:hover, .steps li:hover { --o: 1; animation-play-state: running; }
}
/* keyboard focus gets the same treatment */
.btn-primary:focus-visible, .btn-glass:focus-visible { --o: 1; animation-play-state: running; }

/* scroll progress: the rainbow flowing slowly to the right */
.scroll-progress {
  background: linear-gradient(90deg, hsl(322,100%,50%), hsl(55,100%,50%) 17%, hsl(137,95%,45%) 39%, hsl(186,100%,50%) 52%, hsl(314,100%,50%) 87%, hsl(0,100%,50%) 93%, hsl(322,100%,50%) 100%) 0 0 / 50vw 100% repeat-x;
  animation: ring-slide 8s linear infinite;
}
@keyframes ring-slide { to { background-position: 50vw 0; } }


/* ===========================================================
   Big titles: on hover, key words (.hl) fill with the rainbow
   flowing top-left to bottom-right; the other words get only
   a rainbow outline. Idle titles stay plain.
   =========================================================== */
.fx .w { position: relative; display: inline-block; isolation: isolate; white-space: nowrap; }
.fx .w::before, .fx .w::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.5s ease;
  /* one repeating diagonal gradient (no tiles, no seams), shifted along its own axis by --p */
  background: repeating-linear-gradient(135deg,
    hsl(322,100%,50%) calc(var(--p) + 0px), hsl(55,100%,50%) calc(var(--p) + 88px),
    hsl(137,95%,45%) calc(var(--p) + 203px), hsl(186,100%,50%) calc(var(--p) + 270px),
    hsl(314,100%,50%) calc(var(--p) + 452px), hsl(322,100%,50%) calc(var(--p) + 520px)) fixed;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: fx-flow 3s linear infinite paused;
}
/* outline words: gradient glyph with a stroke, sitting behind the normal white text */
.fx .w:not(.hl)::before, .fx .w:not(.hl)::after { display: none; }
/* key words: gradient fill over the text */
.fx .w.hl::before { display: none; }
.fx .w.hl::after { z-index: 1; }
@media (hover: hover) {
  .fx:hover .w.hl::after { opacity: 1; animation-play-state: running; }
}
@property --p { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes fx-flow { to { --p: 520px; } }

/* Contact button (small glass) keeps its size with the 2px ring border */
.btn-glass.btn-sm { padding: 10px 16px; }

/* nav links: rainbow fill fades in over the word on hover (data-text is added by site.js) */
.nav-links a, .mobile-panel a { position: relative; transition: color 0.3s ease; }
.nav-links a[data-text]::after, .mobile-panel a[data-text]::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
  background: repeating-linear-gradient(135deg,
    hsl(322,100%,50%) calc(var(--p) + 0px), hsl(55,100%,50%) calc(var(--p) + 22px),
    hsl(137,95%,45%) calc(var(--p) + 51px), hsl(186,100%,50%) calc(var(--p) + 68px),
    hsl(314,100%,50%) calc(var(--p) + 113px), hsl(322,100%,50%) calc(var(--p) + 130px)) fixed;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: fx-flow-sm 1.6s linear infinite paused;
}
@media (hover: hover) {
  .nav-links a:hover::after, .mobile-panel a:hover::after { opacity: 1; animation-play-state: running; }
}
@keyframes fx-flow-sm { to { --p: 130px; } }

/* general softness: colors, borders and shadows ease instead of snapping */
a, .btn, .chip, .svc, .offer, .tier, .why-card, .case-cols > div, .steps li, .included li, .drivers div, .skills div, .contact-panel, .client-menu summary, .seg button {
  transition-property: color, background-color, border-color, box-shadow, filter, transform, opacity, --o;
  transition-duration: 0.3s; transition-timing-function: ease;
}

/* ===========================================================
   Process: step cards
   =========================================================== */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: 1fr; gap: 14px; }
.steps li {
  counter-increment: s; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)), var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px var(--line), 0 24px 40px -32px #000;
}
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; margin-bottom: 6px;
  font: 700 17px/1 var(--font-display); color: #0a0a0a;
  background: linear-gradient(180deg, #ffffff 0%, #ececec 49%, #c9c9c9 51%, #dedede 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.3);
}
.steps h3 { font-size: 21px; margin: 0; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
.steps .note { margin-top: auto; padding-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--text); border-top: 1px solid var(--line); }
.steps li > div { display: flex; flex-direction: column; gap: 10px; flex: 1; }
@media (min-width: 641px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 961px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ===========================================================
   Star background (canvas added by site.js), sits behind everything
   =========================================================== */
#starBg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* testimonial blocks in the case-study layout: 2x2 on tablets/desktop, stacked on phones */
.case-cols.four > div, .case-cols.four > div:first-child { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .case-cols.four { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; } }

/* ===========================================================
   Case-study / testimonial blocks as cards
   =========================================================== */
.case-cols, .case-cols.four { display: grid; grid-template-columns: 1fr; gap: 14px; }
.case-cols > div, .case-cols > div:first-child, .case-cols.four > div, .case-cols.four > div:first-child {
  padding: 22px; border: 0; border-radius: 16px; position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)), var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px var(--line), 0 24px 40px -32px #000;
}
.case-cols h3 { font-size: 18px; line-height: 1.25; margin: 0 0 12px; }
.case-cols p { font-size: 15.5px; line-height: 1.6; }
@media (min-width: 700px) {
  .case-cols.four { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .case-cols > div, .case-cols > div:first-child, .case-cols.four > div, .case-cols.four > div:first-child { padding: 26px; }
}
@media (min-width: 861px) {
  .case-cols:not(.four) { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
