/* ============================================================
   NASPEN — base: tokens, light keys, type, nav, buttons
   Colour script: night (the opening) → day (the work, on light grey) → golden hour (the warm closing band) → night (the footer).
   Flat colours that meet at set edges. There are no gradients between sections.
   ============================================================ */
:root {
  --night: #0D0F2B;      /* the set before the light comes up */
  --night-2: #1A1D52;
  --ink: #17163B;
  --cyc: #F5F5F7;        /* the daytime ground: a very light neutral grey */
  --red: #CC071E;        /* Naspen red (H&M red), the record light: the full stop in the logo and every headline, buttons, labels. The one strong colour, since 13 Nov 2026 */
  --marigold: #FFA51F;   /* the warm light inside the drawings; the SVG scenes and the canvas use it directly */
  --tungsten: #FFD9A0;
  --moon: #8FA8FF;
  --f-d: "Anek Latin", "Avenir Next", system-ui, sans-serif;
  --f-m: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gut: clamp(20px, 4.4vw, 64px);
  --pad: clamp(60px, 7vw, 108px);        /* the space above and below every section, inside its own panel */
  --ov: 8px;                             /* how far a section's own colour runs behind the join above it, so the join can never show a gap */
  --max: 1240px;
  --r: 6px;              /* corners of cards, panels and framed pictures: nearly square (the user disliked big round ones). Buttons and the bar stay pills */
  --r-in: 3px;           /* a picture inside a card */
  --r-sm: 4px;           /* small tiles, rows and fields */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 clamp(16px, 1.02vw + 12.5px, 19px)/1.5 var(--f-d);
  font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Light keys. Every section owns its colours and keeps them, so nothing on the page ever flips or fades between palettes.
   Where the light changes, one flat colour simply meets the next at a set edge, like a cut in a film: night to day, day to
   the warm closing band, the band to the night footer. There are no gradients between sections. The site had them until
   November 2026; the user found the pages neater without, and the washes were long stretches of empty scrolling.
   The nav has one key of its own and never changes. */
[data-light="night"] { --bg: #0D0F2B; --fg: #F4F1FF; --mut: #A9ADD6; --line: rgba(255,255,255,.14); --card: rgba(255,255,255,.06); }
[data-light="day"]   { --bg: #F5F5F7; --fg: #17163B; --mut: #5A5985; --line: rgba(23,22,59,.1); --card: #FFFFFF; }
[data-light="dusk"]  { --bg: #CC071E; --fg: #FFFFFF; --mut: rgba(255,255,255,.84); --line: rgba(255,255,255,.3); --card: rgba(255,255,255,.14); }
main > [data-light], .foot { background-color: var(--bg); color: var(--fg); }

/* The daytime stretch is one sheet of folded paper, like the crane. Each section is a facet of it: lit by default, or in
   shade (data-facet="shade"), alternating down the page, with a crease where two meet. That is what tells you one part has
   ended and the next has begun. The tones are flat, as the crane's facets are: a very light neutral grey, and one step darker. */
[data-light="day"][data-facet="shade"] { --bg: #EBEBEF; }
main > [data-light="day"] + [data-light="day"] { border-top: 1px solid var(--line); }   /* the crease */

/* Neighbours. Two boxes that only touch can show a hairline of whatever is behind them at some zoom levels, and behind
   everything here is the dark page. So each section lays a strip of its own colour behind the join above it (z-index -1 puts
   it under both sections, over the page), and the only thing a gap can reveal is the colour of the section it leads into. */
main > [data-light] + [data-light]::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: calc(-1 * var(--ov)); height: calc(2 * var(--ov)); background: var(--bg); pointer-events: none;
}

h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { display: block; }
::selection { background: var(--red); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr, .defs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--red); color: #FFFFFF; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- layout ---------- */
.wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }
.sec { position: relative; padding-block: var(--pad); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4.6vw, 64px); }
.sec-head .link { justify-self: start; margin-top: 4px; }

/* ---------- type ---------- */
.label, .eyebrow, .fine, .hud, .chips, .sheet-title, .sheet-tag, .scroll-cue, .c-t {
  font-family: var(--f-m); font-stretch: 80%; text-transform: uppercase; letter-spacing: .12em;
}
.label { font-size: 11px; font-weight: 500; color: var(--mut); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.label::before { content: ""; width: 8px; height: 9px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }   /* a paper fold, not a dot */
.h2 { font-size: clamp(36px, 6vw, 86px); font-weight: 760; font-stretch: 112%; line-height: .96; letter-spacing: -.035em; text-wrap: balance; }
.h3 { font-size: clamp(27px, 3.1vw, 44px); font-weight: 740; font-stretch: 110%; line-height: 1.02; letter-spacing: -.028em; text-wrap: balance; }
.body { color: var(--mut); max-width: 54ch; text-wrap: pretty; }
.fine { font-size: 10px; letter-spacing: .1em; color: var(--mut); opacity: .85; line-height: 1.7; }
.warm { color: var(--red); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1.5px solid var(--line); padding-bottom: 3px; transition: border-color .3s, gap .3s var(--ease); }
.link::after { content: "→"; transition: transform .3s var(--ease); }
.link:hover { border-color: var(--red); } .link:hover::after { transform: translateX(4px); }

/* ---------- buttons: flat. One solid colour, no bevel, no gradient, no glow ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 650; font-stretch: 104%; letter-spacing: -.005em; line-height: 1;
  color: #FFFFFF; background: var(--red);
  transition: transform .35s var(--spring), background-color .25s;
}
.btn:hover { transform: scale(1.04); background: #D52034; }
.btn:active { transform: scale(1.06, .9); transition-duration: .08s; }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-dark { color: #FFFFFF; background: #0D0F2B; }
.btn-dark:hover { background: #1A1D52; }

/* ---------- nav: one night-glass pill from top to bottom. It keeps its own colours whatever passes beneath it ----------
   It holds the logo and the way round the site, nothing else. "Start a project" lives in each page's hero and closing band:
   a button here as well read as clutter on phones (the user, 19 Nov 2026). The links end with a plain Contact, in the phone menu too (the user missed it there, 20 Nov 2026). */
.nav {
  position: fixed; z-index: 50; top: 12px; left: 50%; translate: -50% 0;
  width: min(var(--max) + 48px, 100% - 24px); padding: 9px 22px 9px 24px; border-radius: 999px;
  display: flex; align-items: center; gap: 24px; border: 1px solid transparent; color: var(--fg);
  transition: background-color .5s, border-color .5s, translate .5s var(--ease);
}
.nav.is-stuck { background: color-mix(in srgb, var(--bg) 94%, transparent);   /* nearly solid: thinner glass lets a daytime page wash it out to a dull slate */ border-color: var(--line); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
.nav.is-hidden { translate: -50% -140%; }
.logo { font-size: 27px; font-weight: 780; font-stretch: 116%; letter-spacing: -.045em; line-height: 1; display: inline-flex; align-items: baseline; }
/* the logo: the word and its full stop, on one line. The stop is flat: the typeface's own period in solid Naspen red, no shading or glow. */
.logo .stop { color: var(--red); }
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 34px); margin-left: auto; font-size: 15.5px; font-weight: 500; }
.nav-links a { position: relative; padding: 8px 2px; opacity: .82; transition: opacity .25s; }
.nav-links a::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; } .nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .nav { padding: 8px 8px 8px 20px; gap: 10px; }
  .menu-btn { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; background: var(--card); border: 1px solid var(--line); }
  .menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .4s var(--ease); }
  .nav.is-open .menu-btn i:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .menu-btn i:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: -12px auto auto 50%; translate: -50% 0; width: 100vw; height: 100dvh; z-index: -1;
    flex-direction: column; justify-content: center; gap: 4px; padding: 90px var(--gut) 40px; margin: 0;
    background: #0D0F2B; color: #F4F1FF; font-size: clamp(34px, 10vw, 56px); font-weight: 760; font-stretch: 112%; letter-spacing: -.035em; line-height: 1.12;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-links a { opacity: 1; padding: 4px 0; transform: translateY(18px); transition: transform .6s var(--ease); }
  .nav-links a::after { display: none; }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav.is-open .nav-links a { transform: none; }
  .nav.is-open { color: #F4F1FF; background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-open .menu-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
  .nav.is-open .menu-btn i { background: #F4F1FF; }
}

/* ---------- moving between pages: a quick cross-fade, the bar stays put, and the picture you tapped becomes the next page's set ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(set) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
}
.nav { view-transition-name: nav; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
