/* ==========================================================
   Never Solutions
   Petrol night + sodium-lamp amber. One variable family
   (Archivo, width + weight axes) carries the whole identity.
   ========================================================== */

:root {
  --bg: #0f2624;
  --bg-2: #14302d;
  --bg-3: #1a3b37;
  --ink: #eef1ea;
  --muted: #9fb3ad;
  --line: rgba(238, 241, 234, 0.14);
  --line-strong: rgba(238, 241, 234, 0.32);
  --amber: #ffb547;
  --amber-deep: #f29a1f;
  --on-amber: #1b1407;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.6rem, 2.4vw, 2rem);
  --step-3: clamp(2.2rem, 4.6vw, 3.75rem);
  --step-4: clamp(3rem, 9vw, 8rem);

  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --max: 1400px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--amber); color: var(--on-amber); }

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

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

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

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--on-amber); padding: 0.6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

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

/* ---------- Custom cursor (fine pointers only) ---------- */

.cursor, .cursor-dot { display: none; }

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
  html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; }

  html.has-cursor .cursor,
  html.has-cursor .cursor-dot {
    display: block;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 95;
    border-radius: 50%;
  }
  .cursor-dot {
    width: 6px; height: 6px; margin: -3px 0 0 -3px;
    background: var(--amber);
  }
  .cursor {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid var(--line-strong);
    display: grid; place-items: center;
    transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease),
                background-color 0.35s var(--ease), border-color 0.35s var(--ease);
  }
  .cursor span {
    font-size: 0.75rem; font-weight: 600; color: var(--on-amber);
    opacity: 0; transition: opacity 0.2s;
  }
  .cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--amber); }
  .cursor.is-label {
    width: 92px; height: 92px; margin: -46px 0 0 -46px;
    background: var(--amber); border-color: var(--amber);
  }
  .cursor.is-label span { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Page transition ---------- */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--amber);
  color: var(--on-amber);
  display: grid;
  place-items: center;
  transform: translateY(100%);
  pointer-events: none;
  visibility: hidden;
}
.curtain.leave, .curtain.arrive { visibility: visible; }
.curtain span {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-variation-settings: "wdth" 125;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.curtain.leave { animation: curtainIn 0.55s var(--ease-in-out) forwards; }
.curtain.arrive { transform: translateY(0); animation: curtainOut 0.75s var(--ease-in-out) 0.1s forwards; }

@keyframes curtainIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes curtainOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(15, 38, 36, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header.hidden { transform: translateY(-100%); }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.75rem; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-weight: 600; font-variation-settings: "wdth" 115;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px; height: 26px; flex: none;
  border: 2px solid var(--amber); border-radius: 50%;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 5px;
  background: var(--amber); border-radius: 50%;
  transform: scale(0.35); transition: transform 0.5s var(--ease);
}
.brand:hover .brand-mark::after { transform: scale(1); }

.nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.nav a {
  position: relative; font-size: var(--step--1); color: var(--muted);
  padding: 0.35rem 0; transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--amber); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  font-size: var(--step--1); font-weight: 600;
  border: 1px solid var(--line-strong); padding: 0.55rem 1.1rem; border-radius: 999px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--ink);
  font: inherit; font-size: var(--step--1); font-weight: 600; padding: 0.5rem 0; cursor: pointer;
  align-items: center; gap: 0.6rem;
}
.nav-toggle i { display: grid; gap: 5px; }
.nav-toggle i::before, .nav-toggle i::after {
  content: ""; display: block; width: 22px; height: 2px; background: currentColor;
  transition: transform 0.4s var(--ease);
}
.menu-open .nav-toggle i::before { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav-toggle i::after { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    background: var(--bg);
    display: flex; align-items: flex-end;
    padding: 6rem var(--gutter) 3rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.7s var(--ease-in-out);
    visibility: hidden;
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav ul { flex-direction: column; gap: 0.25rem; width: 100%; }
  .nav li { overflow: hidden; }
  .nav a {
    display: block; font-size: clamp(2.4rem, 11vw, 4rem);
    font-variation-settings: "wdth" 120; font-weight: 300; letter-spacing: -0.03em;
    color: var(--ink); line-height: 1.15;
    transform: translateY(110%); transition: transform 0.7s var(--ease), color 0.3s;
  }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--amber); }
  .menu-open .nav a { transform: translateY(0); }
  .menu-open .nav li:nth-child(2) a { transition-delay: 0.05s; }
  .menu-open .nav li:nth-child(3) a { transition-delay: 0.1s; }
  .menu-open .nav li:nth-child(4) a { transition-delay: 0.15s; }
  .menu-open .nav li:nth-child(5) a { transition-delay: 0.2s; }
  .menu-open .brand { position: relative; z-index: 2; }
  body.menu-open { overflow: hidden; }
}

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

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; }

h2 {
  font-size: var(--step-3);
  font-variation-settings: "wdth" 118;
  font-weight: 300;
}
h3 {
  font-size: var(--step-1);
  font-variation-settings: "wdth" 108;
  font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;
}
p { margin: 0 0 1em; max-width: 62ch; }
.muted { color: var(--muted); }
.amber { color: var(--amber); }

.lede { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 40ch; }

/* split-word reveal for headings */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.split.in .w > span { transform: translateY(0); }

/* soft reveal for blocks */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .split .w > span, .reveal { transform: none !important; opacity: 1 !important; transition: none !important; }
}
html:not(.js) .split .w > span, html:not(.js) .reveal { transform: none; opacity: 1; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem 0 clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
  --mx: 50%;
  --my: 40%;
}

/* drafting grid revealed by a lamp that follows the cursor */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  -webkit-mask-image: radial-gradient(520px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
          mask-image: radial-gradient(520px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
}
.hero::after,
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(700px circle at var(--mx) var(--my), rgba(255, 181, 71, 0.13), transparent 60%);
}

.wordmark {
  font-size: clamp(3.6rem, 20vw, 19rem);
  font-weight: 300;
  line-height: 0.84;
  letter-spacing: -0.045em;
  margin: 0 0 clamp(1.75rem, 4vw, 3rem);
  white-space: nowrap;
}
.wordmark .line { display: block; overflow: hidden; padding: 0.04em 0 0.06em; }
.wordmark .ch {
  display: inline-block;
  font-variation-settings: "wdth" var(--w, 92), "wght" var(--g, 300);
  transform: translateY(110%);
  will-change: transform;
}
.wordmark .line:nth-child(2) { color: var(--amber); }
.loaded .wordmark .ch { transform: translateY(0); transition: transform 1.2s var(--ease); }
html:not(.js) .wordmark .ch { transform: none; }

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.hero-foot .lede { margin: 0; color: var(--ink); max-width: 30ch; font-size: var(--step-2); line-height: 1.2; font-variation-settings: "wdth" 106; font-weight: 300; }
.hero-foot .side { color: var(--muted); font-size: var(--step--1); display: grid; gap: 1.25rem; justify-items: start; }
.hero-foot .side p { margin: 0; }

.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; color: var(--amber); transition: width 0.7s var(--ease); }
.rotator span {
  white-space: nowrap; justify-self: start;
  grid-area: 1 / 1; transform: translateY(100%); opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.rotator span.on { transform: none; opacity: 1; }
.rotator span.off { transform: translateY(-100%); opacity: 0; }
html:not(.js) .rotator span:first-child { transform: none; opacity: 1; }

.scroll-hint {
  position: absolute; right: var(--gutter); top: 50%;
  writing-mode: vertical-rl; font-size: 0.8rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.8rem;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 60px; background: var(--line-strong);
  background-image: linear-gradient(var(--amber), var(--amber));
  background-size: 100% 30%; background-repeat: no-repeat;
  animation: drip 2.2s var(--ease-in-out) infinite;
}
@keyframes drip { from { background-position: 0 -30%; } to { background-position: 0 130%; } }

@media (max-width: 800px) {
  .wordmark { font-size: 18.5vw; }
  .hero-foot { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--amber);
  color: var(--on-amber);
  overflow: hidden;
  padding: 1.1rem 0;
  transform: rotate(-1.5deg) scale(1.03);
  margin: clamp(2rem, 6vw, 4rem) 0;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: clamp(1.6rem, 3.6vw, 2.75rem);
  font-variation-settings: "wdth" 125; font-weight: 500;
  letter-spacing: -0.02em; white-space: nowrap;
  padding: 0 1.2rem; display: inline-flex; align-items: center; gap: 2.4rem;
}
.marquee-track span::after { content: ""; width: 0.5em; height: 0.5em; border: 2px solid currentColor; border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 11vw, 9rem) 0; position: relative; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem); flex-wrap: wrap;
}
.section-head h2 { max-width: 14ch; }
.section-head p { margin: 0; color: var(--muted); max-width: 36ch; }

.split-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
@media (max-width: 860px) { .split-cols { grid-template-columns: 1fr; } }

/* ---------- Service rows (home) ---------- */

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.row a {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: center; gap: 1.5rem 3rem;
  padding: clamp(1.75rem, 4vw, 3rem) 0;
  transition: color 0.5s var(--ease), padding 0.6s var(--ease);
}
.row::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--amber);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.row:hover::before, .row:focus-within::before { transform: translateY(0); }
.row:hover a, .row:focus-within a { color: var(--on-amber); padding-left: clamp(1rem, 3vw, 2.5rem); padding-right: clamp(1rem, 3vw, 2.5rem); }
.row-name {
  font-size: clamp(2.2rem, 5.2vw, 5rem);
  font-variation-settings: "wdth" 120; font-weight: 300; letter-spacing: -0.04em; line-height: 1;
  transition: font-variation-settings 0.6s var(--ease);
}
.row:hover .row-name { font-variation-settings: "wdth" 125; font-weight: 500; }
.row-desc { color: var(--muted); margin: 0; transition: color 0.5s; }
.row:hover .row-desc, .row:focus-within .row-desc { color: var(--on-amber); }
.row-go {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.row-go svg { width: 18px; height: 18px; }
.row:hover .row-go { transform: rotate(-45deg); border-color: var(--on-amber); }

@media (max-width: 760px) {
  .row a { grid-template-columns: 1fr auto; }
  .row-desc { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Light-up statement ---------- */

.statement {
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  font-variation-settings: "wdth" 110; font-weight: 300;
  line-height: 1.12; letter-spacing: -0.025em;
  max-width: 24ch; margin: 0;
}
.statement .lw { color: rgba(238, 241, 234, 0.16); transition: color 0.35s linear; }
.statement .lw.lit { color: var(--ink); }
.statement .lw.lit.hl { color: var(--amber); }
html:not(.js) .statement .lw { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .statement .lw { color: var(--ink); } }

/* ---------- Principles ---------- */

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principles > div { padding: 2rem 2rem 0 0; }
.principles > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.principles h3 { margin-bottom: 0.75rem; }
.principles p { color: var(--muted); font-size: var(--step--1); margin: 0; }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principles > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .principles > div { padding-bottom: 2rem; }
}

/* ---------- Work cards ---------- */

.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2.5vw, 2rem); }
.card { grid-column: span 4; display: block; }
.card.wide { grid-column: span 8; }
.card.offset { margin-top: clamp(0rem, 8vw, 7rem); }
@media (max-width: 900px) { .card, .card.wide { grid-column: span 6; } .card.offset { margin-top: 0; } }
@media (max-width: 560px) { .card, .card.wide { grid-column: span 12; } }
.card[hidden] { display: none; }

.art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 1.1rem;
  background: var(--bg-2);
  isolation: isolate;
}
.card.wide .art { aspect-ratio: 16 / 10; }
.art > * { position: absolute; }
.art img { inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .art img { transform: scale(1.05); }

/* generative placeholder compositions — replace with real images */
.art .g { inset: -10%; transition: transform 1.4s var(--ease); }
.card:hover .art .g { transform: scale(1.06) rotate(-1.5deg); }

.art-web .g {
  background:
    linear-gradient(var(--bg-3) 0 0) 12% 14% / 76% 8% no-repeat,
    linear-gradient(var(--amber) 0 0) 12% 30% / 42% 34% no-repeat,
    linear-gradient(var(--bg-3) 0 0) 60% 30% / 28% 15% no-repeat,
    linear-gradient(var(--bg-3) 0 0) 60% 50% / 28% 14% no-repeat,
    repeating-linear-gradient(var(--line) 0 1px, transparent 1px 22px) 12% 76% / 76% 16% no-repeat,
    var(--bg-2);
}
.art-game .g {
  background:
    radial-gradient(circle at 70% 35%, var(--amber) 0 9%, transparent 9.3%),
    linear-gradient(90deg, transparent 0 48%, var(--line-strong) 48% 49%, transparent 49%) 0 0 / 60px 60px,
    linear-gradient(transparent 0 48%, var(--line-strong) 48% 49%, transparent 49%) 0 0 / 60px 60px,
    conic-gradient(from 200deg at 30% 70%, var(--bg-3), var(--bg-2) 30%, var(--bg-3) 60%, var(--bg-2));
}
.art-food .g {
  background:
    radial-gradient(circle at 50% 52%, transparent 0 22%, var(--amber) 22.4% 23.6%, transparent 24%),
    radial-gradient(circle at 50% 52%, var(--bg-3) 0 30%, transparent 30.4%),
    radial-gradient(circle at 50% 52%, transparent 0 36%, var(--line-strong) 36.3% 36.8%, transparent 37%),
    radial-gradient(circle at 78% 22%, rgba(255,181,71,.5) 0 4%, transparent 4.4%),
    var(--bg-2);
}
.art-alt .g { filter: hue-rotate(-12deg) saturate(1.1); }

.card h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.card .meta { color: var(--muted); font-size: var(--step--1); margin: 0; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.card .meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--amber); margin-right: 0.75rem; vertical-align: middle; }

/* ---------- Filters ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 3rem; }
.filters button {
  font: inherit; font-size: var(--step--1); font-weight: 500;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.55rem 1.15rem; cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(9rem, 20vw, 14rem) 0 clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  --mx: 70%; --my: 30%;
}
.page-title {
  font-size: var(--step-4);
  font-weight: 300;
  font-variation-settings: "wdth" 122;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 2rem;
  max-width: 12ch;
}
.page-hero .lede { max-width: 42ch; }
.page-hero .tagline { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 2rem; }
.chip {
  font-size: var(--step--1); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.4rem 0.9rem; color: var(--muted);
}

/* ---------- Offer list (subpages) ---------- */

.offers { list-style: none; margin: 0; padding: 0; }
.offers li {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.75rem 2rem;
  padding: 2rem 0;
}
.offers li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line); transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease);
}
.offers li.in::after { transform: scaleX(1); }
.offers li:first-child::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
}
.offers h3 { transition: color 0.3s; }
.offers li:hover h3 { color: var(--amber); }
.offers p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .offers li { grid-template-columns: 1fr; } }
html:not(.js) .offers li::after { transform: none; }

/* ---------- Process (real sequence) ---------- */

.process {
  list-style: none; margin: 0; padding: 0; counter-reset: s;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
}
.process::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--amber); transform: scaleX(var(--p, 0)); transform-origin: left;
}
.process li { counter-increment: s; padding: 2rem 1.75rem 0 0; position: relative; }
.process li::before {
  content: counter(s, decimal-leading-zero);
  display: block; font-size: var(--step-2);
  font-variation-settings: "wdth" 125; font-weight: 300;
  color: var(--muted); margin-bottom: 1rem; font-variant-numeric: tabular-nums;
  transition: color 0.4s;
}
.process li.on::before { color: var(--amber); }
.process li span.dot {
  position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong); transition: background-color 0.4s, border-color 0.4s;
}
.process li.on span.dot { background: var(--amber); border-color: var(--amber); }
.process p { color: var(--muted); font-size: var(--step--1); margin-top: 0.6rem; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .process::after { display: none; }
}
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* ---------- Feature panel ---------- */

.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem 4rem;
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.ticks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; align-items: baseline; }
.ticks li::before {
  content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  border: 2px solid var(--amber); transform: translateY(0.05rem);
}
@media (max-width: 760px) { .panel { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 0.9rem;
  font: inherit; font-weight: 600; font-size: var(--step-0);
  color: var(--on-amber); background: var(--amber);
  border: 0; border-radius: 999px;
  padding: 1.05rem 1.75rem; cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }

.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost::before { background: var(--amber); }
.btn.ghost:hover { color: var(--on-amber); }

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

.cta {
  position: relative; overflow: hidden;
  padding: clamp(6rem, 14vw, 11rem) 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.cta-title {
  font-size: clamp(3.2rem, 11vw, 10rem);
  font-weight: 300; font-variation-settings: "wdth" 125;
  letter-spacing: -0.05em; line-height: 0.9;
  margin-bottom: 2.5rem;
}
.cta-title em { font-style: normal; color: var(--amber); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.cta-row .muted { margin: 0; }
.cta-orb {
  position: absolute; right: -10vw; top: 50%; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,181,71,.55), rgba(255,181,71,.08) 55%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.8; } }
@media (prefers-reduced-motion: reduce) { .cta-orb { animation: none; } }

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

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2.5rem, 7vw, 6rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

form { display: grid; gap: 2rem; }
.topics { display: flex; flex-wrap: wrap; gap: 0.6rem; border: 0; padding: 0; margin: 0; }
.topics legend { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.9rem; padding: 0; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label {
  font-size: var(--step--1); font-weight: 500; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.6rem 1.15rem;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.topics label:hover { border-color: var(--ink); }
.topics input:checked + label { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }
.topics input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 3px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--step-1); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 1.6rem 0 0.7rem; border-radius: 0;
  transition: border-color 0.3s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field label {
  position: absolute; left: 0; top: 1.6rem; color: var(--muted);
  font-size: var(--step-1); pointer-events: none;
  transform-origin: left top; transition: transform 0.4s var(--ease), color 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--amber); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.5rem) scale(0.7); color: var(--amber);
}
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }

.form-status { min-height: 1.5em; margin: 0; font-size: var(--step--1); color: var(--muted); }
.form-status.ok { color: var(--amber); }

.details dl { margin: 0; }
.details dt { font-size: var(--step--1); color: var(--muted); margin-top: 1.75rem; }
.details dt:first-child { margin-top: 0; }
.details dd { margin: 0.3rem 0 0; font-size: var(--step-1); }
.details a { background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.details a:hover { background-size: 100% 1px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--step--1); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 1rem;
}
.status-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6fe0a5;
  box-shadow: 0 0 0 0 rgba(111, 224, 165, 0.6); animation: ping 2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(111, 224, 165, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 224, 165, 0); } }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: clamp(3.5rem, 8vw, 6rem) 0 2rem; overflow: hidden; }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}
.footer-top h3 { font-size: var(--step--1); color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-top a { transition: color 0.3s; }
.footer-top a:hover { color: var(--amber); }
.footer-mail {
  font-size: clamp(1.4rem, 3vw, 2.25rem); font-variation-settings: "wdth" 112; font-weight: 300;
  letter-spacing: -0.02em; display: inline-block;
  background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.6s var(--ease), color 0.3s;
  word-break: break-all;
}
.footer-mail:hover { background-size: 100% 2px; color: var(--amber); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

.footer-giant {
  font-size: clamp(2.6rem, 10.6vw, 10.5rem);
  font-weight: 700; font-variation-settings: "wdth" 125;
  letter-spacing: -0.05em; line-height: 0.8;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  margin: 0 0 2rem;
  user-select: none;
  transition: color 0.8s var(--ease);
}
.footer-giant:hover { color: var(--amber); -webkit-text-stroke-color: var(--amber); }

.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: var(--step--1); color: var(--muted);
}
.footer-base a:hover { color: var(--ink); }
.to-top { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.to-top:hover { color: var(--amber); }

/* keep the full-screen menu from being clipped by the blurred header */
.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-bottom-color: transparent; }
