/* ================= PHAEV · styles/phaev/phaev.css: the PHAEV look =================
   Active only while PHAEV is the chosen style (the default). Shared rules live in base.css, the moving parts in
   phaev.js. Another look never sees these rules: main.js switches this file off while it is in use. */

/* ---------- fonts (self-hosted, OFL; subset to Latin and compressed as WOFF2) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("../../fonts/BricolageGrotesque-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url("../../fonts/RedHatMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Bricolage's @ wraps the a inside a ring; the big handle uses a calmer, classic @ instead (the file holds only that glyph) */
@font-face { font-family: "Gloock"; src: url("../../fonts/Gloock-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #070707;
  --line: #24252a;
  --ink: #ece7dd;
  --muted: #8d887f;
  --dim: #7d786f;   /* quietest text colour, still 4.6:1 on the background */
  --gold: #c8a15a;
  --gold-hi: #f1d9a3;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  /* side margin; never narrower than a notch or island at the screen edge (phones held sideways: the page
     runs to the edges because of viewport-fit=cover). same on both sides, so everything stays centred */
  --pad: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* no browser scroll anchoring: a row opening or closing never makes the page scroll, it stays where it is */
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-anchor: none; }
body {
  font-family: var(--sans);
  background: var(--bg);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: #000; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* small spaced caps: used only for addresses and codes (the style menu, DE / EN, the fields, the handles) */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
}

/* ---------- atmosphere ---------- */
/* as tall as the screen with the browser bars tucked away (lvh): when a phone's bars slide in or out the
   fabric keeps its size, so nothing has to be redrawn or jumps (it simply runs on behind the bar) */
#silk { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; }
/* a fine, still film grain over everything: keeps the dark areas from looking flat and hides banding */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top) + 22px) var(--pad) 22px;
  color: var(--muted);
  background: linear-gradient(to bottom, rgba(7, 7, 7, .92), rgba(7, 7, 7, .6) 60%, transparent);
}
/* the style menu (top left): "Style" with a small caret opens a list of the site's looks. the list unfolds
   below on the surface of an open row, framed by a graphite line; the look in use is gold */
.style-menu { position: relative; }
.style-btn {
  display: flex; align-items: center; gap: .8em;
  background: none; border: 0; cursor: pointer; color: inherit; padding: 6px 0; transition: color .3s;
}
.caret {
  width: 5px; height: 5px; margin-top: -3px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); transition: transform .3s var(--ease), margin-top .3s var(--ease);
}
.style-btn[aria-expanded="true"] { color: var(--ink); }
.style-btn[aria-expanded="true"] .caret { transform: rotate(225deg); margin-top: 3px; }
/* the list reaches 16px past the button on each side and its words line up with "Style"; on phones the side
   margin is only 16px, so it reaches less far and never touches the screen edge */
.style-list {
  --reach: min(16px, calc(var(--pad) - 4px));
  position: absolute; top: calc(100% + 14px); left: calc(-1 * var(--reach)); min-width: calc(100% + 2 * var(--reach));
  list-style: none; padding: 8px 0;
  background: rgba(15, 16, 19, .95); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.style-menu.open .style-list { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.style-list button {
  display: block; width: 100%; text-align: left;
  font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; cursor: pointer;
  color: var(--muted); padding: 10px var(--reach); transition: color .3s;
}
.lang { display: flex; gap: .7em; align-items: center; color: var(--dim); }
.lang button {
  font: inherit; letter-spacing: inherit; background: none; border: 0; cursor: pointer;
  color: var(--muted); padding: 6px 2px; transition: color .3s;
}
/* the small links and buttons are easier to hit than they look: an invisible layer reaches past the text
   (40 to 44px high), while the box itself, and with it the keyboard focus ring, stays tight around the word */
.style-btn, .lang button, .mail, .privacy-link { position: relative; }
.style-btn::after, .lang button::after, .mail::after, .privacy-link::after { content: ""; position: absolute; inset: -14px -4px; }
.lang button::after { inset: -6px; }
/* every hover effect on the site applies only where a pointer can hover: on touch screens :hover sticks to
   whatever was tapped last */
@media (hover: hover) {
  .style-btn:hover, .lang button:hover, .style-list button:hover { color: var(--ink); }
}
.lang button[aria-pressed="true"], .style-list button[aria-pressed="true"] { color: var(--gold); }

/* ---------- hero: the logo draws itself, then the slogan and the three fields follow ---------- */
main { position: relative; z-index: 2; }
.hero {
  position: sticky; top: 0;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px var(--pad) 140px;
  overflow-x: clip;   /* the logo grows and spreads on scroll: keep it from widening the page on phones */
}
.hero-inner { display: flex; flex-direction: column; align-items: center; will-change: opacity, filter; }

.logo-wrap { will-change: transform; }
/* the wordmark box keeps the proportions of the full mark (1652 x 230); each letter sits at its own place in it */
.logo {
  display: block; position: relative;
  width: min(82vw, 900px);
  aspect-ratio: 1652 / 230;
}
/* each letter is its own layer with its own soft glow: on scroll the layers only move, nothing is redrawn.
   --shift is how far a letter drifts at the end of the exit, in its own width (340 units times its offset) */
.glyph {
  position: absolute; top: 0; height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 48px rgba(200, 161, 90, .14));
  transform: translateX(calc(var(--spread, 0) * var(--shift)));
  will-change: transform;
}
.glyph:nth-child(1) { left: .4843%;   width: 16.1017%; --shift: -127.8195%; }
.glyph:nth-child(2) { left: 21.7918%; width: 14.8305%; --shift: -69.3878%; }
.glyph:nth-child(3) { left: 41.2228%; width: 17.7361%; --shift: 0%; }
.glyph:nth-child(4) { left: 63.5593%; width: 14.1646%; --shift: 72.6496%; }
.glyph:nth-child(5) { left: 81.7797%; width: 17.6755%; --shift: 116.4384%; }
/* each letter draws its outline, then fills */
.logo-path {
  fill: url(#logoFill);
  fill-opacity: 0;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: draw 2.4s cubic-bezier(.65, 0, .35, 1) .35s forwards, fill 1.3s ease 2.3s forwards;
}
.glyph:nth-child(1) .logo-path { animation-delay: .35s, 2.3s; }
.glyph:nth-child(2) .logo-path { animation-delay: .5s, 2.4s; }
.glyph:nth-child(3) .logo-path { animation-delay: .65s, 2.5s; }
.glyph:nth-child(4) .logo-path { animation-delay: .8s, 2.6s; }
.glyph:nth-child(5) .logo-path { animation-delay: .95s, 2.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill { to { fill-opacity: 1; stroke-opacity: 0; } }

.slogan {
  margin-top: clamp(30px, 5vh, 52px);
  font-size: clamp(15px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: .45em;
  margin-right: -.45em;
  text-transform: uppercase;
  color: var(--ink);
}

.tagline {
  margin-top: clamp(22px, 3.5vh, 34px);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0 1.2em;
  font-size: clamp(13px, 1.1vw, 14px);
  letter-spacing: .42em;
}
.tagline i { display: block; width: 3px; height: 3px; border-radius: 50%; background: rgba(200, 161, 90, .45); }
/* letter-spacing also trails the last letter; pull it back so each dot sits exactly between two words */
.w { color: rgba(236, 231, 221, .72); margin-right: -.42em; }

.intro { opacity: 0; transform: translateY(14px); animation: up 1.2s var(--ease) forwards; }
.d2 { animation-delay: 2.5s; }
.d3 { animation-delay: 2.9s; }
@keyframes up { to { opacity: 1; transform: none; } }

/* the hero exit, run by the browser straight from the scroll position wherever scroll timelines exist (CSS
   switches it on by itself, so it works from the first frame, even before or without phaev.js; the same
   conditions tell phaev.js to leave the hero alone, and elsewhere it sets the same values every frame).
   progress runs over the first 85lvh of scroll. --exit is the smoothstep curve of phaev.js as linear() points;
   --fade is the hero's fade, 1.25 times as fast */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll(root block)) and (animation-range: 0px 85lvh) {
    .hero {
      --exit: linear(0, 0.0018, 0.0073, 0.016, 0.028, 0.043, 0.0608, 0.0812, 0.104, 0.1291, 0.1563, 0.1853, 0.216, 0.2482, 0.2818, 0.3164, 0.352, 0.3883, 0.4253, 0.4625, 0.5, 0.5375, 0.5748, 0.6117, 0.648, 0.6836, 0.7183, 0.7518, 0.784, 0.8147, 0.8438, 0.8709, 0.896, 0.9188, 0.9393, 0.957, 0.972, 0.984, 0.9928, 0.9982, 1);
      --fade: linear(0 0%, 0.0018 2.228%, 0.0072 4.455%, 0.016 6.683%, 0.028 8.911%, 0.0431 11.138%, 0.061 13.366%, 0.0817 15.594%, 0.105 17.821%, 0.1306 20.049%, 0.1585 22.277%, 0.1884 24.505%, 0.2202 26.732%, 0.2538 28.96%, 0.2889 31.188%, 0.3254 33.415%, 0.3632 35.643%, 0.402 37.871%, 0.4418 40.098%, 0.4822 42.326%, 0.5233 44.554%, 0.5647 46.781%, 0.6064 49.009%, 0.6482 51.237%, 0.6899 53.464%, 0.7313 55.692%, 0.7723 57.92%, 0.8127 60.148%, 0.8523 62.375%, 0.891 64.603%, 0.9287 66.831%, 0.965 69.058%, 1 71.286%, 1 100%);
    }
    .hero .hero-inner, .hero .logo-wrap, .hero .glyph {
      animation-duration: 1ms;
      animation-timing-function: var(--exit);
      animation-fill-mode: both;
      animation-timeline: scroll(root block);
      animation-range: 0px 85lvh;
    }
    .hero .hero-inner { animation-name: hero-fade, hero-blur; animation-timing-function: var(--fade), var(--exit); }
    .hero .logo-wrap { animation-name: logo-push; }
    .hero .glyph { animation-name: drift; }
    /* slogan and tagline keep their intro and sink a little slower than the page (parallax) */
    .hero .slogan, .hero .tagline {
      animation-name: up, sink;
      animation-duration: 1.2s, 1ms;
      animation-timing-function: var(--ease), var(--exit);
      animation-fill-mode: forwards, both;
      animation-timeline: auto, scroll(root block);
      animation-range: normal, 0px 85lvh;
    }
    .hero .slogan { animation-delay: 2.5s, 0s; --sink: 10.5lvh; }
    .hero .tagline { animation-delay: 2.9s, 0s; --sink: 21lvh; }
  }
}
@keyframes hero-fade { to { opacity: 0; } }
@keyframes hero-blur { from { filter: none; } to { filter: blur(12px); } }
@keyframes logo-push { to { transform: translateY(-6lvh) scale(1.45); } }
@keyframes drift { to { transform: translateX(var(--shift)); } }
@keyframes sink { from { translate: none; } to { translate: 0 var(--sink); } }

/* ---------- sections ---------- */
/* "The work" arrives while the hero dissolves */
.deep {
  position: relative;
  margin-top: 5svh;
  background: linear-gradient(to bottom, transparent, rgba(7, 7, 7, .35) 260px);
}
.section {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(80px, 14vh, 150px) var(--pad);
}
/* small, muted section titles: they label the content instead of competing with the big names */
.label {
  font-size: clamp(17px, 1.5vw, 20px); font-weight: 400; line-height: 1.1; letter-spacing: -.01em;
  color: var(--muted);
  margin-bottom: clamp(32px, 6vh, 56px);
}

/* ---------- the work: games, software, production ----------
   name, text, animation: all rows share one set of columns (subgrid), so the texts line up in one column,
   and the two 1fr spacers keep the space around the text equal */
.rows {
  list-style: none; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: max-content minmax(48px, 1fr) minmax(0, 30ch) minmax(48px, 1fr) 288px;
}
.row {
  --rp: clamp(22px, 4vh, 36px);         /* the row's own padding above and below */
  --bleed: clamp(16px, 2.4vw, 32px);    /* how far an open row's panel and rules reach past the content edges */
  --lift: clamp(18px, 3vh, 30px);       /* how far an open row's upper rule lifts */
  position: relative;
  isolation: isolate;                   /* the panel sits behind the row's content, but above the page */
  grid-column: 1 / -1;
  display: grid; grid-template-columns: subgrid;
  align-items: center;
  padding: var(--rp) 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  --hp: 0;   /* the rule above this row lights up when the row above it is hovered (see gold lines) */
  transition: --h 1.6s var(--ease), --hp 1.6s var(--ease), padding .8s var(--ease);   /* gold fill, gold fill above, opening */
}
.row .head { grid-column: 1; }
.row .info { grid-column: 3; }
.row .sig { grid-column: 5; }
.row .more { grid-column: 3 / -1; grid-row: 2; }

/* the name is the button that opens the row (the whole row reacts to a click as well);
   it leaves room on the left for the small plus (.tog). it sits in a heading of its own, so screen readers can
   jump straight from field to field; the heading only holds its place in the row and adds no look of its own */
.head { justify-self: start; font: inherit; }
.name {
  --tog: clamp(11px, .2em, 15px);
  position: relative;
  display: block;
  font: inherit; color: inherit; background: none; border: 0; text-align: left; cursor: pointer;
  padding: 0 0 0 calc(var(--tog) + .28em);
  font-size: clamp(34px, 5.4vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
  transition: transform .7s var(--ease);
}
/* room below the baseline so descenders (g, p) never touch the next line */
.name > span { display: inline-block; padding: .04em 0 .2em; margin-bottom: -.16em; letter-spacing: -.01em; }
/* all hover effects of the rows, only where there is a pointer that hovers: on touch screens :hover sticks
   after a tap, so a row just closed would keep looking lit. the rule between two rows belongs to the lower
   row, but lights up when either is hovered (see gold lines) */
@media (hover: hover) {
  .row:hover { --h: 1; }
  .row:hover + .row { --hp: 1; }
  .row:hover .name { transform: translateX(14px); }
  .row:hover .sig { opacity: 1; }
  .row:hover .tog { color: var(--gold); }
}

/* the description sits flush left inside its column: one clean edge */
.info { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
/* (descriptions and row texts never end on a single word on its own line: the browser rebalances the last
   lines, and ignores this where it can't) */
/* line spacing in whole pixels (23px here, 21px on small screens), for the same reason as the row texts below:
   descriptions move while a row opens, and 22.5px made their two lines snap to the pixel grid one at a time */
.desc { color: var(--muted); font-size: 15px; line-height: 1.5; line-height: round(1.5em, 1px); text-wrap: pretty; }

/* each field has its own living mark (drawn in phaev.js at 240×84 and scaled to the canvas), fully lit while
   its row sits mid-screen. it plays while on screen and pauses when scrolled away */
.sig { justify-self: end; display: block; width: 288px; height: 100.8px; opacity: .55; transition: opacity .6s; }
.row .sig.live, .row.open .sig { opacity: 1; }

/* ---------- a row opens ----------
   its two gold rules part (the upper one lifts, the lower one travels down with the text) and reach out a
   little to the sides; between them an anthracite panel appears and the text fades in. the page doesn't scroll
   for it (the text may open below the screen edge). one row at a time */
.row.open {
  --h: 1;                               /* both rules lit */
  padding: calc(var(--rp) + var(--lift)) 0;
}
/* one plain surface (a single box, so its edges stay clean) */
.panel {
  position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(-1 * var(--bleed)); right: calc(-1 * var(--bleed));
  background: rgba(15, 16, 19, .95);
  opacity: 0; transition: opacity .8s var(--ease);
  pointer-events: none;
}
.row.open .panel { opacity: 1; }
.row.open + .row { --hp: 1; }
.row::before, .rows .row:last-child::after { transition: left .8s var(--ease), width .8s var(--ease); }
.row.open::before, .row.open + .row::before, .rows .row.open:last-child::after {
  left: calc(-1 * var(--bleed)); width: calc(100% + 2 * var(--bleed));
}

/* the small plus in front of the name turns into a cross while the row is open; it sits on the content edge */
.tog {
  position: absolute; left: 0; top: .6em;
  width: var(--tog); height: var(--tog);
  margin-top: calc(var(--tog) / -2);
  color: var(--dim);
  transition: transform .8s var(--ease), color .4s;
}
.tog::before, .tog::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; margin-top: -.5px; background: currentColor; }
.tog::after { transform: rotate(90deg); }
.name:focus-visible .tog { color: var(--gold); }
.row.open .tog { color: var(--gold-hi); transform: rotate(135deg); }

/* the text grows open from nothing (0fr to 1fr), then fades in; on closing it fades first.
   the fade runs on the text colour and the rise on `top`, not on opacity/transform: those get their own
   compositor layer, which phones only draw once it has been painted, so the very first opening showed the
   text popping in at the end. a colour is simply painted anew each frame (main.js hides the closed text from
   screen readers with aria-hidden) */
.more { display: grid; grid-template-rows: 0fr; cursor: auto; transition: grid-template-rows .8s var(--ease); }
.row.open .more { grid-template-rows: 1fr; }
.more-in { min-height: 0; overflow: hidden; }
.more p {
  position: relative; top: 8px;
  max-width: 60ch; padding-top: clamp(18px, 3vh, 28px);
  color: rgba(236, 231, 221, 0); font-size: 16px; text-wrap: pretty;
  /* line spacing in whole pixels (26px here, 25px on small screens): with 26.4px every line sat on a different
     pixel fraction, so while the text rises each line snapped to the pixel grid at its own moment and the gaps
     visibly jumped at the end of the opening. now all lines snap together */
  line-height: 1.65; line-height: round(1.65em, 1px);
  transition: color .25s, top .25s;
}
.row.open .more p {
  top: 0; color: rgba(236, 231, 221, .78);
  transition: color .6s .3s, top .8s var(--ease) .3s;
}

/* below ~1100px three columns side by side would get tight: stack the text and animation under the name instead.
   the gaps between the stacked parts are margins, so the (closed) text row adds no gap of its own */
@media (max-width: 1100px) {
  .rows { display: block; }
  .row { grid-template-columns: minmax(0, 1fr) 288px; grid-template-rows: auto auto; column-gap: 40px; }
  .row .head { grid-column: 1 / 3; grid-row: 1; }
  .row .info { grid-column: 1; grid-row: 2; margin-top: 14px; }
  .row .sig { grid-column: 2; grid-row: 2; margin-top: 14px; }
  .row .more { grid-column: 1 / -1; grid-row: 3; }
}

/* ---------- everywhere as: the handle and the social links ---------- */
.handle {
  font-size: clamp(44px, 10vw, 136px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
  margin-bottom: calc(clamp(40px, 7vh, 72px) - .18em);
  padding-bottom: .18em;
}
.handle .at { font-family: "Gloock", Georgia, serif; font-weight: 400; margin-right: .03em; }

.socials {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 72px);
}
.socials a {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.pf { font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; letter-spacing: .04em; transition: color .3s, transform .5s var(--ease); }
/* the handle sits flush with the right edge like the lines; when the link is pointed at it steps aside
   and the arrow writes itself into the space. on the way back it waits until the arrow has faded */
.h { color: var(--dim); font-size: 11px; letter-spacing: .16em; text-transform: none; transition: transform .45s var(--ease) .12s; }

/* the arrow is written like a quill: while the link is pointed at, the pen lands (an ink dot bottom left),
   swings the line up to the right (it swells and thins like a nib under changing pressure), and only then
   adds the two strokes of the tip. the curve only ever runs rightwards, so a left-to-right wipe follows the
   pen exactly. pointing away fades the whole arrow at once; it is reset only after it has faded */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.arr {
  position: absolute; right: 0; top: 50%; margin-top: -10px; width: 32px; height: 20px;   /* the 22×14 drawing, scaled up evenly */
  color: var(--gold-hi); opacity: 0; transition: opacity .15s ease-out;
}
.arr svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arr-line {
  fill: currentColor;
  clip-path: inset(-30% 100% -30% 0);
  transition: clip-path 0s .15s;
}
.arr-tip path {
  fill: none; stroke: currentColor; stroke-width: .8; stroke-linecap: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 0s .15s;
}
/* a link pointed at (or focused with the keyboard) lights up: gold line, name, handle steps aside, the arrow
   writes itself. like every hover effect only with a real pointer: on a phone the tapped link would otherwise
   stay lit after coming back from the platform (keyboard focus there still shows the gold focus ring) */
@media (hover: hover) {
  .socials a:hover, .socials a:focus-visible { --h: 1; }
  .socials a:hover .pf, .socials a:focus-visible .pf { color: var(--gold-hi); transform: translateX(6px); }
  .socials a:hover .h, .socials a:focus-visible .h { transform: translateX(-44px); transition: transform .45s var(--ease); }
  .socials a:hover .arr, .socials a:focus-visible .arr { opacity: 1; transition: none; }
  .socials a:hover .arr-line, .socials a:focus-visible .arr-line {
    clip-path: inset(-30% -10% -30% 0);
    transition: clip-path .6s cubic-bezier(.55, 0, .25, 1);
  }
  .socials a:hover .arr-tip path, .socials a:focus-visible .arr-tip path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset .2s cubic-bezier(.3, .6, .4, 1) .58s;
  }
  /* the second barb follows a beat later, as a second pen stroke */
  .socials a:hover .arr-tip path + path, .socials a:focus-visible .arr-tip path + path { transition-delay: .7s; }
}

/* A quiet signature between the social links and footer. */
.section-socials { padding-bottom: 0; }
.closing-mark {
  display: flex;
  justify-content: center;
  padding-block: clamp(44px, 6vh, 72px);
  color: var(--gold);
}
.closing-mark svg {
  display: block;
  width: clamp(64px, 9vw, 88px);
  height: auto;
  fill: currentColor;
  opacity: .5;
}

/* ---------- footer ---------- */
/* the full-width band behind the footer: above the silk like main, with the same tint the sections end on */
.foot-band { position: relative; z-index: 2; background: rgba(7, 7, 7, .35); }
.foot {
  position: relative;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
  padding: 32px var(--pad) calc(env(safe-area-inset-bottom) + 36px);
  color: var(--dim); font-size: 13px; letter-spacing: .01em;
}
.mail { text-decoration: none; }   /* the contact address, set like the rest of the footer (main.js fills it in) */
/* the address and the privacy link as one group in the middle of the footer */
.foot-links { display: flex; gap: 24px; }
.privacy-link { text-decoration: none; }
/* the footer rule doesn't animate: a quiet, static line (grey with faint gold on top) that ends at the
   content edges like every other line */
.foot::before {
  content: ""; position: absolute; left: var(--pad); right: var(--pad); top: -1px; height: 1px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(200, 161, 90, 0), rgba(200, 161, 90, .28) 20%, rgba(200, 161, 90, .28) 80%, rgba(200, 161, 90, 0)),
    var(--line);
}

/* ---------- gold lines ----------
   Every horizontal rule fills with gold from its centre outwards.
   --ft / --fb / --f: scroll proximity of that rule to the focus line (set by phaev.js), --h: hover. */
@property --h { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --hp { syntax: "<number>"; inherits: true; initial-value: 0; }
.row, .socials a { --h: 0; }
.socials a { transition: --h 1.4s var(--ease); }
/* (rows and social links light up in their own hover blocks; rows also when open) */

.row::before, .rows .row:last-child::after, .socials a::after {
  content: "";
  position: absolute; left: 0; width: 100%; height: 1px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(90deg, rgba(200, 161, 90, .15), var(--gold) 28%, var(--gold-hi) 50%, var(--gold) 72%, rgba(200, 161, 90, .15));
  --s: max(var(--f, 0), var(--h, 0));
  transform: scaleX(var(--s));
  transform-origin: center;
  /* fade in over the first few % so a nearly-collapsed rule never shows as a vertical blip */
  opacity: min(1, calc(var(--s) * 6));
  will-change: transform, opacity;
}
/* rows draw one rule each (top), measured at its own height; the last row also closes the list */
.row::before { top: -1px; --s: max(var(--ft, 0), var(--h, 0), var(--hp, 0)); }
.rows .row:last-child::after { bottom: -1px; --s: max(var(--fb, 0), var(--h, 0)); }
.socials a::after { bottom: -1px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .desc { font-size: 14px; }
  .row .sig { justify-self: start; width: 100%; max-width: 420px; height: auto; aspect-ratio: 240 / 84; }
  .socials { grid-template-columns: 1fr; }
  /* the wordmark fills the width and the hero sits a little above the middle */
  .hero { padding-top: 90px; padding-bottom: 200px; }
  .logo { width: 92vw; }
  .slogan { font-size: 17px; letter-spacing: .32em; margin-right: -.32em; }
  /* the three fields always stay on one line (a wrap would leave a dot hanging at the line end): the German
     line is about 25.3em wide, so on screens narrower than about 370px the text shrinks just enough to fit */
  .tagline { letter-spacing: .3em; gap: 8px .8em; font-size: min(13px, calc((100vw - 32px) / 26)); }
  .w { margin-right: -.3em; }
}
@media (hover: hover) and (max-width: 760px) {
  .row:hover .name { transform: translateX(6px); }
}
@media (max-width: 640px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .head, .row .info, .row .sig, .row .more { grid-column: 1; grid-row: auto; }
  .more p { font-size: 15px; }
}

/* ---------- 404 page (404.html, no JS) ---------- */
.nf {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 48px var(--pad);
}
.nf-logo { display: block; width: min(46vw, 220px); margin-bottom: clamp(40px, 8vh, 72px); }
.nf-logo svg { display: block; width: 100%; height: auto; fill: var(--ink); transition: fill .3s; }
.nf-code {
  position: relative;
  font-size: clamp(96px, 20vw, 200px); font-weight: 400; line-height: .9; letter-spacing: -.03em;
  /* the browser also takes the letter-spacing off after the last digit, so the box ends .03em inside the final
     "4" and centring it set the digits that much right of the logo; the same amount back on the right centres them */
  padding: 0 .03em .14em 0;
}
/* the same quiet gold rule as under the footer */
.nf-code::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(200, 161, 90, 0), var(--gold) 20%, var(--gold-hi) 50%, var(--gold) 80%, rgba(200, 161, 90, 0));
}
.nf-text { margin-top: 32px; color: var(--muted); font-size: 17px; }
.nf-de { margin-top: 6px; color: var(--dim); font-size: 15px; }
.nf-back {
  margin-top: 44px; padding: 8px 2px;
  color: var(--gold); text-decoration: none; font-size: 15px;
  border-bottom: 1px solid rgba(200, 161, 90, .35);
  transition: color .3s, border-color .3s;
}
@media (hover: hover) {
  .nf-logo:hover svg, .nf-logo:focus-visible svg { fill: var(--gold-hi); }
  .nf-back:hover, .nf-back:focus-visible { color: var(--gold-hi); border-color: var(--gold-hi); }
}

/* ---------- privacy page (privacy.html, the same in every look) ----------
   a calm reading column under the bar of the start page: the wordmark on the left as the way home, DE / EN on the
   right (privacy.js shows one language at a time), the footer of the start page. it reuses the 404 page's logo and
   back link */
.bar .nf-logo { width: 92px; margin: 0; }
.legal {
  max-width: 760px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 120px) var(--pad) 72px;
}
.legal-text { display: grid; gap: 18px; }
.legal-text h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 6px; }
.legal-text h2 { font-size: 20px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; margin-top: 22px; }
.legal-text p, .legal-text li { max-width: 62ch; font-size: 16px; line-height: 1.65; color: rgba(236, 231, 221, .78); text-wrap: pretty; }
.legal-text .legal-lead { font-size: 18px; line-height: 1.55; color: var(--muted); }
.legal-text ul { list-style: none; display: grid; gap: 4px; }
.legal-text li { position: relative; padding-left: 22px; }
.legal-text li::before { content: ""; position: absolute; left: 0; top: .82em; width: 10px; height: 1px; background: var(--gold); }
.legal-text p a, .legal-text li a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(200, 161, 90, .35); transition: color .3s, border-color .3s; }
.legal-text .mail::after { content: none; }   /* inside running text the larger tap area would cover the lines around it */
.legal-text .legal-date { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.legal-text .nf-back { justify-self: start; margin-top: 40px; }
@media (hover: hover) {
  .legal-text p a:hover, .legal-text p a:focus-visible, .legal-text li a:hover, .legal-text li a:focus-visible { color: var(--gold-hi); border-color: var(--gold-hi); }
}

/* ---------- high contrast (Windows contrast themes and the like) ----------
   the system replaces every colour with its own, but leaves the wordmark's gradient alone, which then all but
   vanishes on a light theme; it takes the system's text colour instead, without its glow. the same goes for the
   logo of the 404 page (its ivory fill is left alone too), also while pointed at. the plus and the dots are drawn
   as backgrounds, which the system would blank out */
@media (forced-colors: active) {
  .logo-path { forced-color-adjust: none; fill: CanvasText; stroke: CanvasText; }
  .nf-logo svg, .nf-logo:hover svg, .nf-logo:focus-visible svg { forced-color-adjust: none; fill: CanvasText; }
  .glyph { filter: none; }
  .tog::before, .tog::after, .tagline i { forced-color-adjust: none; background: CanvasText; }
}

/* ---------- print and "save as PDF" ----------
   a calm light page: dark text on white, the wordmark complete, every row's text open, nothing split across
   two pages; the moving parts (silk, grain, marks, the fixed bar) are left out */
@media print {
  :root { color-scheme: light; --ink: #111; --muted: #555; --dim: #666; --line: #ccc; }
  html, body { background: #fff; color: var(--ink); }
  #silk, .grain, .bar, .sig, .closing-mark, .arr, .tog, .panel,
  .row::before, .rows .row:last-child::after, .socials a::after, .foot::before { display: none !important; }
  .hero { position: static; min-height: 0; padding: 0 0 48px; }
  .hero-inner, .logo-wrap, .glyph, .intro {
    animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; translate: none !important;
  }
  .logo-path { animation: none; fill: var(--ink); fill-opacity: 1; stroke: none; }
  .w { color: var(--muted); }
  .tagline i { background: var(--muted); }
  .deep { margin-top: 0; background: none; }
  .section { padding: 24px 0; }
  .row, .row.open { padding: 18px 0; }
  .name { padding-left: 0; }   /* (no plus in front of the names on paper) */
  .more { grid-template-rows: 1fr; }
  .more p, .row.open .more p { top: 0; color: var(--ink); }
  .handle { font-size: 64px; margin-bottom: 16px; }
  /* the links side by side in pairs as on a wide screen (a printed page is narrower than the phone breakpoint),
     so all ten still fit the second page, on A4 and on Letter */
  .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .socials a { padding: 12px 0; }
  .row, .socials li, .foot { break-inside: avoid; }
  .foot-band { background: none; }
  .foot { padding: 20px 0 0; }
  /* the privacy page: the language shown, in dark text, without the bar and the way back */
  .legal { padding-top: 0; }
  .legal-text { gap: 8px; }
  .legal-text h1 { font-size: 36px; }
  .legal-text h2 { margin-top: 10px; font-size: 16px; }
  .legal-text p, .legal-text li { font-size: 13.5px; line-height: 1.5; }
  .legal-text .legal-lead { font-size: 15px; }
  .legal-text p, .legal-text li, .legal-text p a, .legal-text li a { color: var(--ink); border: 0; }
  .legal-text .legal-lead { color: var(--muted); }
  .legal-text .nf-back { display: none; }
  .legal-text h2, .legal-text ul { break-after: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  /* the gold lines keep their slow fill; a row still opens at once */
  .row { transition-duration: 1.6s, 1.6s, .001s !important; }
  .socials a { transition-duration: 1.4s !important; }
  html { scroll-behavior: auto; }
}
