/* =========================================================================
   Aurel Kieser — site styles
   Paper, ink, film. Change the look via the tokens below.
   ========================================================================= */

@font-face { font-family: 'Kieser Hand'; src: url('../fonts/KieserHand.woff') format('woff'); font-display: swap; }
/* Free fonts (GUST Font License), served from this site – no Google request. */
@font-face { font-family: 'Adventor'; src: url('../fonts/TeXGyreAdventor-Regular.woff') format('woff'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Adventor'; src: url('../fonts/TeXGyreAdventor-Bold.woff') format('woff'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Adventor'; src: url('../fonts/TeXGyreAdventor-Italic.woff') format('woff'); font-style: italic; font-display: swap; }
@font-face { font-family: 'Cursor'; src: url('../fonts/TeXGyreCursor-Regular.woff') format('woff'); font-display: swap; }

:root {
  --paper: #F7F4EA;
  --ink: #0B3A40;          /* petrol ink */
  --ink-2: #3E5A5E;
  --muted: #4F6A6D;
  --neon: #D4FF3A;         /* marker */
  --grease: #C8F03A;       /* grease pencil on the contact sheet */
  --film-print: #141312;
  --photo-paper: #FBFAF5;
  --sans: 'Adventor', 'Avant Garde', 'Century Gothic', ui-sans-serif, sans-serif;
  --mono: 'Cursor', 'Courier New', ui-monospace, monospace;
  --hand: 'Kieser Hand', 'Bradley Hand', cursive;
  --pad: clamp(20px, 5vw, 72px);
  --shadow-on-paper: drop-shadow(0 0.5px 0.5px rgba(40, 30, 18, 0.18)) drop-shadow(0 2px 4px rgba(40, 30, 18, 0.06));
  --link-hover: #1F5A61;
  --print-ink: #0B3A40;    /* handwriting on white prints (polaroid) keeps its colour in both themes */
  --backdrop: rgba(240, 236, 224, .94);
  --btn-bg: rgba(253, 252, 248, .88);
  --line: rgba(20, 50, 55, .14);
  --field-line: rgba(62, 90, 94, .4);
  --marker-ink: var(--ink);
  --marker-top: 58%;      /* where the marker stroke starts (dark theme: behind the whole word) */
  --tape: linear-gradient(to bottom, rgba(253, 251, 245, .84), rgba(251, 249, 242, .9) 45%, #faf8f1 62%, #f7f4ea);
  --tape-shadow: drop-shadow(0 1px 1.2px rgba(40, 30, 18, .13));
  --paper-blend: normal;
  color-scheme: light dark;
}

/* Dark theme: follows the visitor's system setting. Same idea (paper, ink, film), at night. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111617;        /* dark petrol paper */
    --ink: #E3ECE8;
    --ink-2: #BCCAC7;
    --muted: #93A7A5;
    --neon: #D4FF3A;
    --grease: #C8F03A;
    --film-print: #0A0A09;
    --shadow-on-paper: drop-shadow(0 1px 1px rgba(0, 0, 0, .55)) drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
    --link-hover: #9FD6D2;
    --backdrop: rgba(9, 12, 13, .94);
    --btn-bg: rgba(30, 37, 38, .9);
    --line: rgba(227, 236, 232, .16);
    --field-line: rgba(188, 202, 199, .4);
    --marker-ink: #0B1416;
    --marker-top: 14%;
    --tape: linear-gradient(to bottom, rgba(227, 236, 232, .07), rgba(227, 236, 232, .05) 45%, #151b1c 62%, #111617);
    --tape-shadow: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .5));
    --paper-blend: multiply;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: 0.005em; font-kerning: normal;
  background: var(--paper) url('../img/paper.jpg') repeat; background-size: 1200px 1200px; background-blend-mode: var(--paper-blend);
}
main { flex: 1; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- handwriting ---------- */
.hand { font-family: var(--hand); font-weight: 400; line-height: 1.2; margin: 0; }
.hand--xl { font-size: clamp(40px, 4.2vw, 60px); }
.hand--l  { font-size: clamp(40px, 5vw, 64px); }
.hand--m  { font-size: clamp(26px, 2.4vw, 32px); }
/* hidden until the writing animation is built (boot.js adds .hw; removed again if it fails) */
.hw [data-write]:not(.hw-done), .hw [data-word]:not(.hw-done) { visibility: hidden; }
.hw-svg { display: block; overflow: visible; max-width: 100%; height: auto; }
.hw-svg .ink { fill: currentColor; }
.hw-svg .ink--grow { stroke: currentColor; stroke-linejoin: round; }
.hw-svg .ink-pen { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.hw-stroke { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; opacity: 0; } /* a not-yet-drawn stroke would show its round pen tip as a dot */
.hw-stroke[stroke-dashoffset="0"] { opacity: 1; }
.hw-run .hw-stroke { animation-name: hw-draw; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes hw-draw { from { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }

/* ---------- header / footer ---------- */
.site-header {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
  min-height: 88px; padding: 12px var(--pad);
}
.signature { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.signature [data-word] { display: block; font-family: var(--hand); font-size: 28px; line-height: 1; }
.signature .hw-svg { height: clamp(28px, 3vw, 34px); width: auto; }
.site-nav { display: flex; gap: clamp(18px, 3vw, 32px); font-size: 14px; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 12px 0; }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
/* footer: always exactly one line; type and gaps shrink with the screen, the name drops out on small phones */
.site-footer {
  display: flex; flex-wrap: nowrap; align-items: center; white-space: nowrap;
  gap: 0 calc(var(--k, 1) * clamp(6px, 2.2vw, 22px)); margin-top: clamp(48px, 7vw, 96px); padding: 14px var(--pad) 18px;
  font-size: calc(var(--k, 1) * clamp(9.5px, 2.45vw, 11.5px)); letter-spacing: .01em; color: var(--muted); overflow: hidden;
}
.site-footer > * { flex: 0 0 auto; }
.site-footer a { color: var(--muted); text-decoration: none; padding: 8px 0; display: inline-block; }   /* ≥ 24 px tap height */
.site-footer a:hover, .home__legal a:hover { color: var(--ink); }
.site-footer__copy { margin-right: auto; }
.site-footer .lang-switch, .home__legal .lang-switch { gap: calc(var(--k, 1) * clamp(2px, 1vw, 8px)); font-size: calc(var(--k, 1) * clamp(9px, 2.3vw, 10.5px)); }
.site-footer .lang-switch a, .site-footer .lang-switch span { padding: 8px clamp(1px, .5vw, 3px); min-width: 0; }
.site-footer .lang-switch span[aria-current] { box-shadow: none; color: var(--ink); }
.site-footer.is-tight .site-footer__name, .site-footer.is-tighter .site-footer__svc, .site-footer.is-tightest .site-footer__ig { display: none; }
@media (max-width: 520px) { .site-footer { padding-left: 12px; padding-right: 12px; } }

/* ---------- common ---------- */
.page { padding: clamp(24px, 5vw, 64px) var(--pad) 48px; display: flex; flex-direction: column; gap: clamp(24px, 3.5vw, 44px); }
.page--narrow { max-width: 760px; }
/* About: portrait as a polaroid next to the text */
.page--about { max-width: 1080px; }
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-intro__text { display: flex; flex-direction: column; gap: clamp(24px, 3.5vw, 44px); grid-column: 1; grid-row: 1; }
.about-portrait { grid-column: 2; grid-row: 1; margin: 6px 0 0; background: #FDFCF8; padding: 5.5% 5.5% 22%; transform: rotate(2.2deg); filter: var(--shadow-on-paper); }
.about-portrait img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-portrait { grid-column: 1; grid-row: 1; width: min(72%, 300px); justify-self: center; transform: rotate(-1.8deg); }
  .about-intro__text { grid-row: 2; }
}
.prose { margin: 0; max-width: 62ch; font-size: 17px; }
.meta, .hint, .small { margin: 0; font-size: 14px; color: var(--muted); }
.hint { align-self: center; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: none; }
.todo { margin: 0; font-family: var(--mono); font-size: 13px; color: #8a5a20; }
.marker { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; color: var(--marker-ink); }
.marker:hover { color: var(--marker-ink); }
.marker, .marker--button { background: linear-gradient(transparent var(--marker-top), var(--neon) var(--marker-top), var(--neon) 92%, transparent 92%) no-repeat 0 50% / 100% 1.6em; padding: 0 2px; }
.marker--button { border: 0; font: inherit; font-size: 15px; cursor: pointer; color: var(--marker-ink); }
.sig-line .hw-svg, .sig-line [data-word] { height: 46px; width: auto; font-family: var(--hand); font-size: 34px; }
.legal h2 { font-size: 15px; font-weight: 500; margin: 8px 0 -18px; }
.legal p { margin: 0; max-width: 64ch; }
.agb-list { margin: 0; padding-left: 1.4em; max-width: 64ch; display: flex; flex-direction: column; gap: 10px; }
.agb-list li { padding-left: 4px; }

/* ---------- home: three colour-negative strips, laid on the paper by hand ---------- */
.is-home main { display: flex; }
.home {
  flex: 1; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  min-height: calc(100dvh - 88px);
}
.home__intro {
  grid-column: 1; align-self: end; position: relative; z-index: 5;
  display: flex; flex-direction: column; gap: 16px; max-width: 560px;
  padding: 24px 24px clamp(40px, 8vh, 96px) var(--pad);
}
.lede { margin: 0; font-size: 15px; color: var(--muted); }
.home__legal { margin: clamp(40px, 6vh, 72px) 0 0; display: flex; gap: 20px; font-size: 13px; }
.home__legal a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.home__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.handle { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.handle [data-word], .handle .hw-svg { height: 22px; width: auto; font-family: var(--hand); font-size: 18px; }

.scene { grid-column: 2; position: relative; min-height: 100%; }
.nstrip {
  position: absolute; width: 31%; transform: rotate(var(--r, 0deg)) translateY(var(--ty, 0px)); transform-origin: 50% 20%;
  filter: var(--shadow-on-paper);
}
.nstrip:nth-child(1) { --r: -6.5deg; left: 3%;  top: 7%;  z-index: 1; }
.nstrip:nth-child(2) { --r: 3.8deg;  left: 33%; top: 13%; z-index: 3; }
.nstrip:nth-child(3) { --r: -2.2deg; left: 63%; top: 3%;  z-index: 2; }
.nstrip__film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.neg__base { fill: var(--film-print); }
.neg__holes { fill: #2b2926; }
.neg__frame { fill: #1f1e1c; }
.neg__edge { font-family: var(--mono); font-size: 1.15px; letter-spacing: 0.12px; fill: #b9b3a4; text-anchor: middle; }
.nframe { position: absolute; display: block; overflow: hidden; background: #1f1e1c; }
.nframe img { width: 100%; height: 100%; object-fit: cover; }
.nframe:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- contact sheet ---------- */
.project__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
/* theme heading above a contact sheet ("Abschnitt" in Projekt.txt) */
.sheet-title { align-self: center; width: 100%; max-width: 1296px; margin: clamp(12px, 3vw, 36px) 0 -8px; font: 600 13px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 14px; }
.sheet-title::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.sheet {
  /* the strips lie directly on the paper of the page, no box around them */
  align-self: center; width: 100%; max-width: 1296px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2.4vw, 32px); align-items: start;
}
.sheet .strip { filter: var(--shadow-on-paper); }
.strip { position: relative; width: 100%; }
.strip__film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.strip .rebate { fill: var(--film-print); }
.strip .hole { fill: #2b2926; }
.strip .edge { font-family: var(--mono); font-size: 1.1px; letter-spacing: .12px; fill: #b9b3a4; text-anchor: middle; }
.frame {
  position: absolute; display: block; padding: 0; border: 0; margin: 0; background: #1f1e1c;
  border-radius: 1.5%/1%; overflow: visible; cursor: zoom-in;
}
.frame img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* label for AI-generated photos (EU AI Act, Art. 50) */
.ai-tag { position: absolute; right: 4%; bottom: 3%; z-index: 2; font-family: var(--mono); font-size: clamp(8px, 1.1vw, 11px); line-height: 1; letter-spacing: .1em; padding: 3px 4px 2px; color: #111; background: var(--neon); border-radius: 2px; pointer-events: none; }
.ai-tag--inline { position: static; display: inline-block; vertical-align: .1em; font-size: 10px; }
.ai-tag[hidden] { display: none; }
/* text printed on the white polaroid stays dark in both themes */
.polaroid .polaroid__num { color: #4F6A6D; }
.polaroid__num .ai-tag { font-size: .9em; padding: 3px 5px 2px; margin-right: .4em; }
.nframe .ai-tag { z-index: 3; }
.frame:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.grease { position: absolute; left: -7%; top: -4%; width: 114%; height: 108%; overflow: visible; pointer-events: none; }
.grease path { fill: none; stroke: var(--grease); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---------- lightbox / polaroid ---------- */
.lightbox { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 12px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; border: 0; padding: 0; background: var(--backdrop); cursor: zoom-out; }
.polaroid {
  position: relative; margin: 0; width: var(--cw, 480px); container-type: inline-size;
  background: #FDFCF8; padding: calc(var(--cw, 480px) * .06) calc(var(--cw, 480px) * .06) 0; filter: var(--shadow-on-paper); color: var(--print-ink);
}
.polaroid__img { position: relative; width: 100%; aspect-ratio: var(--ar, 1); background: #222; overflow: hidden; }
.polaroid__img { background-size: cover; background-position: center; }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s ease; }
.polaroid__img img.is-loading { opacity: 0; transition: none; }
.polaroid__cap { height: 22cqw; display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 12px; padding: 0 1cqw; }
.polaroid__cap .hand { font-size: clamp(16px, 5.6cqw, 34px); flex: 1 1 auto; min-width: 0; }
.polaroid__cap .hw-svg { max-width: 100%; }
.polaroid__cap .hw-svg { height: 1.25em; width: auto; }
.polaroid__num { font-family: var(--mono); font-size: max(11px, 2.2cqw); letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--btn-bg); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lb-btn--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-btn--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-btn--close { top: 12px; right: 12px; }
.no-scroll { overflow: hidden; }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 7vw, 104px) clamp(32px, 5vw, 80px); }
.work-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; text-decoration: none; color: var(--ink); }
.work-card .hand { display: flex; justify-content: center; }
.work-card__strip { margin-top: 14px; width: min(58%, 340px); filter: var(--shadow-on-paper); transition: transform .3s ease; }
.work-card__strip.is-landscape { width: min(100%, 560px); }
.work-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }
.work-card:hover .work-card__strip { transform: translateY(-3px); }
.work-card .frame { cursor: pointer; }

/* ---------- embeds ---------- */
.embed { width: 100%; max-width: 960px; align-self: center; }
.embed--video { aspect-ratio: 16 / 9; }
.embed--video iframe, .embed--form iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed--form { height: 80vh; }
.embed--sign { height: min(86vh, 1100px); margin-top: 8px; }
.embed-grid { width: 100%; max-width: 1200px; align-self: center; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.embed-grid .embed { max-width: none; }
.embed-grid .embed__load small { display: none; }
.embed-grid .embed__load > span:not(.embed__play) { padding: 0 12px; text-align: center; }
@media (max-width: 640px) { .embed-grid { grid-template-columns: 1fr; } }
.embed__load {
  width: 100%; height: 100%; border: 0; cursor: pointer; background: var(--film-print); color: #e9e5da;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: inherit;
}
.embed__load small { font-size: 12px; color: #a9a396; max-width: 40ch; text-align: center; }
.embed__play { width: 64px; height: 64px; border-radius: 50%; background: var(--neon); clip-path: polygon(38% 28%, 38% 72%, 74% 50%); }
.embed__play.embed__play--doc { border-radius: 4px; clip-path: none; width: 44px; height: 56px; background: linear-gradient(var(--film-print) 0 0) 10px 14px / 24px 2px no-repeat, linear-gradient(var(--film-print) 0 0) 10px 22px / 24px 2px no-repeat, linear-gradient(var(--film-print) 0 0) 10px 30px / 16px 2px no-repeat, var(--neon); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.form input, .form textarea {
  font: inherit; font-size: 16px; color: var(--ink); padding: 10px 2px; border: 0; border-bottom: 1px solid var(--ink-2);
  background: transparent; border-radius: 0;
}
.form textarea { resize: vertical; border: 1px solid var(--field-line); padding: 10px; }
.form .hp { position: absolute; left: -9999px; }
.form__status { margin: 0; font-size: 14px; min-height: 1.4em; }
.notice { margin: 0; padding: 12px 0; font-size: 16px; }

/* ---------- small screens ---------- */
/* stacked layout only on portrait screens; phones held sideways keep the desktop layout */
@media (max-width: 900px) and (orientation: portrait), (max-width: 560px) {
  .home { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; min-height: 0; }
  /* mobile: the strips slide into a knife cut in the paper */
  .scene { grid-column: 1; grid-row: 1; height: min(125vw, 72dvh); overflow: hidden; }
  /* a strip of white tape holds the film down and hides where the strips end */
  .home__intro::before {
    content: ""; position: absolute; left: -4%; right: -4%; top: -26px; height: 34px; pointer-events: none;
    transform: rotate(-1.1deg);
    background: var(--tape);
    filter: var(--tape-shadow);
  }
  .home__intro { position: relative; z-index: 8; }
  .nstrip:nth-child(1) { top: 4%; } .nstrip:nth-child(2) { top: 9%; } .nstrip:nth-child(3) { top: 2%; }
  .home__intro { grid-column: 1; grid-row: 2; max-width: none; padding: 28px var(--pad) 48px; }
  /* tilted and overlapping like on desktop, but every strip stays fully on screen */
  .nstrip { width: 36%; }
  .nstrip:nth-child(1) { left: 4%; --r: -6deg; } .nstrip:nth-child(2) { left: 31%; --r: 4deg; } .nstrip:nth-child(3) { left: 60.5%; --r: 2.5deg; }
}
/* phones held sideways: compact desktop layout */
@media (max-height: 520px) and (orientation: landscape) {
  .site-header { min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
  .home { min-height: calc(100dvh - 60px); grid-template-columns: minmax(260px, 1fr) minmax(0, 1fr); }
  .home__intro { padding-bottom: 20px; gap: 10px; }
  .hand--xl { font-size: clamp(28px, 4vw, 40px); }
  .nstrip { width: 30%; }
}
@media (max-width: 640px) {
  .site-nav { gap: 16px; }
  .signature .hw-svg { height: 26px; }
  .site-header { padding-left: 18px; padding-right: 18px; }
  .lb-btn--prev, .lb-btn--next { top: auto; bottom: 16px; transform: none; }
  .work-card__strip { width: 72%; }
  .work-card__strip.is-landscape { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nframe img, .work-card__strip { transition: none; }
}

/* ---------- about: services + FAQ ---------- */
.page--narrow > h2.hand { margin: clamp(48px, 7vw, 80px) 0 4px; }
.services { margin: 0; display: grid; gap: 18px; max-width: 62ch; }
.services dt { font-weight: 500; color: var(--ink); }
.services dd { margin: 2px 0 0; color: var(--ink-2); }
.faq { max-width: 62ch; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 18px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 58ch; }

/* ---------- service pages ---------- */
.service .page--narrow { max-width: 680px; }
.service .prose + .prose { margin-top: 18px; }
.service__h { margin: clamp(56px, 8vw, 96px) 0 20px; }
.service .work-grid { margin-top: 8px; }
.steps { margin: 0; padding-left: 1.3em; max-width: 62ch; display: grid; gap: 10px; color: var(--ink-2); }
.steps li::marker { font-family: var(--mono); color: var(--muted); }
.service__cta { margin-top: 40px; }
.service__more { margin-top: 28px; font-size: 14px; color: var(--muted); }
.service__more a, .services dt a { color: inherit; }
.service h1 { margin: 8px 0 28px; line-height: 1.15; }

/* ---------- language switch ---------- */
.lang-switch { display: inline-flex; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.lang-switch a, .lang-switch span { color: var(--muted); text-decoration: none; padding: 7px 4px; min-width: 24px; text-align: center; }
.lang-switch span[aria-current] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.lang-switch a:hover { color: var(--ink); }
.home__legal { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 0 clamp(10px, 3vw, 28px); font-size: calc(var(--k, 1) * clamp(9.5px, 2.45vw, 11.5px)); color: var(--muted); overflow: hidden; }
.home__legal .lang-switch span[aria-current] { box-shadow: none; }
.home__legal p { margin: 0; display: flex; flex-wrap: nowrap; gap: 0 calc(var(--k, 1) * clamp(8px, 2.4vw, 20px)); }
.home__legal p a { color: var(--muted); text-decoration: none; padding: 8px 0; }
@media (max-width: 440px) {
  .site-header { gap: 4px 12px; }
  .signature .hw-svg { height: 21px; }
  .site-nav { gap: 12px; font-size: 13px; }
}

@media (max-width: 360px) {
  .site-header { padding-left: 14px; padding-right: 14px; gap: 4px 14px; }
  .signature .hw-svg { height: 19px; }
  .site-nav { gap: 11px; font-size: 13px; }
  .scene { height: min(120vw, 64dvh); }
}
/* ---------------------------------------------------------------- career timeline (About) */
.cv { margin: clamp(48px, 7vw, 80px) 0 0; }
.cv > h2.hand { margin: 0 0 clamp(18px, 3vw, 28px); }
.cv__wrap { position: relative; padding-left: 52px; }
.cv__line { position: absolute; left: 0; top: 0; width: 32px; overflow: visible; pointer-events: none; }
.cv__path, .cv__ring { fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.cv__path { transition: stroke-dashoffset .12s linear; }
.cv__ring { stroke-width: 1.8; transition: stroke-dashoffset .5s ease-out; }
.cv__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(26px, 4vw, 40px); }
.cv__item { display: grid; grid-template-columns: minmax(64px, 116px) minmax(0, 1fr); gap: 4px clamp(14px, 3vw, 28px); align-items: start; }
.cv__year { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; min-height: 1.15em; }
.cv__year .hw-svg { height: 1.15em; width: auto; }
.cv__card { padding-top: 4px; }
.cv__title { margin: 0 0 4px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.cv__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 560px) {
  .cv__wrap { padding-left: 40px; }
  .cv__item { grid-template-columns: 1fr; }
}
/* animated version (only when cv.js runs and motion is allowed): cards unfold to the right from the line */
.cv--js .cv__card { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-10px);
  transition: clip-path .75s cubic-bezier(.2, .7, .2, 1), opacity .45s ease-out, transform .75s cubic-bezier(.2, .7, .2, 1); }
.cv--js .cv__item.is-open .cv__card { opacity: 1; clip-path: inset(0 -2% 0 0); transform: none; }
.cv--js .cv__year { opacity: .25; transition: opacity .4s ease-out; }
.cv--js .cv__item.is-open .cv__year { opacity: 1; }
.cv--static .cv__path { stroke-dasharray: none; }

/* ---------------------------------------------------------------- customer voices */
.reviews { margin: clamp(48px, 7vw, 80px) 0 0; }
.reviews > h2.hand { margin: 0 0 clamp(18px, 3vw, 28px); }
.reviews__list { display: grid; gap: clamp(22px, 3vw, 32px); }
.review { margin: 0; padding-left: 22px; position: relative; }
.review { border-left: 2px solid var(--line, rgba(11, 58, 64, .18)); padding-left: 18px; }
.review::before { content: none; }
.review blockquote { margin: 0; }
.review p { margin: 0; font-size: 16px; line-height: 1.6; }
.review figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.reviews__meta { margin: clamp(18px, 3vw, 26px) 0 0; font-size: 13px; color: var(--muted); }
.reviews__meta a { color: var(--muted); }
.nf-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------------------------------------------------------------- About: clearer structure */
.page--about .page-toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: clamp(28px, 4vw, 40px) 0 0; }
.page-toc a { font-size: 13px; color: var(--ink-2); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.page-toc a:hover { color: var(--ink); border-color: var(--ink-2); }
.page--about .cv, .page--about .reviews, .about-sec { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.about-sec > h2.hand { margin: 0 0 clamp(18px, 3vw, 28px); }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.svc-grid a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink-2); transition: border-color .2s, background-color .2s; }
.svc-grid a:hover { border-color: var(--ink-2); background: rgba(255, 255, 255, .25); }
.svc-grid strong { color: var(--ink); font-weight: 600; font-size: 15px; }
.svc-grid span { font-size: 14px; line-height: 1.55; }
@media (min-width: 900px) { .page--about .reviews__list { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.page--about .faq { max-width: none; }

/* ---------------------------------------------------------------- pen drawings on project pages */
.project__title { display: flex; align-items: flex-end; gap: clamp(10px, 2vw, 22px); }
.doodle { flex: 0 0 auto; width: clamp(58px, 8vw, 96px); height: auto; margin-bottom: 6px; transform: rotate(-5deg); overflow: visible;
  fill: none; stroke: var(--ink); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.doodle path { vector-effect: non-scaling-stroke; }
.doodle--draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: doodle-draw .55s cubic-bezier(.4, .1, .3, 1) forwards; animation-delay: calc(var(--i) * .13s + .25s); }
@keyframes doodle-draw { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- paper plane after sending the contact form */
.plane-sky { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: visible; transition: opacity .8s ease; }
.plane-sky.is-done { opacity: 0; }
.plane-trail { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; opacity: .55; }
.plane__body { fill: var(--photo-paper); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.plane__line { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- recommended films on a project page */
.film-links { width: 100%; max-width: 1200px; align-self: center; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 22vw, 240px), 1fr)); gap: clamp(10px, 2vw, 20px); }
.film-link span:last-child { font-size: clamp(13px, 1.3vw, 16px); line-height: 1.35; }
.film-link { aspect-ratio: 16 / 9; background: var(--film-print); color: #e9e5da; text-decoration: none; border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 14px; text-align: center; transition: transform .2s ease; }
.film-link .embed__play { width: clamp(34px, 3.4vw, 46px); height: clamp(34px, 3.4vw, 46px); }
.film-link:hover, .film-link:focus-visible { transform: translateY(-2px); }
.embed:target { outline: 2px solid var(--neon); outline-offset: 6px; scroll-margin-top: 90px; }
@media (max-width: 600px) { .film-link { aspect-ratio: 4 / 3; } }

/* photos can't be long-pressed, dragged or selected for saving (the files stay normal images for search engines) */
img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---------------------------------------------------------------- homepage: strips run with the scroll (homescroll.js) */
/* menu, text and paper hold still while the strips move; afterwards (phones: the text below) the page scrolls on */
.home-scroll .is-home { background: none; }
.home-scroll .is-home::before {   /* the paper stays put (background-attachment: fixed does not work on phones) */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--paper) url('../img/paper.jpg') repeat; background-size: 1200px 1200px; background-blend-mode: var(--paper-blend);
}
.home-scroll .is-home .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 4; }
.home-scroll .is-home main { position: fixed; top: var(--hdr, 88px); left: 0; right: 0; z-index: 5; }
.home-scroll .is-home .home { overflow: visible; }
.home-scroll .is-home .nstrip { will-change: transform; backface-visibility: hidden; }
.home-scroll .is-home .site-header, .home-scroll .is-home main { will-change: transform; }
@media (max-width: 900px) and (orientation: portrait), (max-width: 560px) {
  /* the cut in the paper still swallows the strips at the bottom; upwards they may leave the scene */
  .home-scroll .is-home .scene { overflow: visible; clip-path: inset(-200vh -50vw 0 -50vw); }
}
@supports (animation-timeline: scroll()) {
  .home-scroll--native:not(.home-scroll--measure) .is-home .nstrip {
    animation: strip-run linear both; animation-timeline: scroll(root block); animation-range: 0px var(--travel, 1px);
  }
  .home-scroll--native:not(.home-scroll--measure) .is-home .site-header,
  .home-scroll--native:not(.home-scroll--measure) .is-home main {
    animation: page-lift linear both; animation-timeline: scroll(root block);
    animation-range: var(--travel, 0px) calc(var(--travel, 0px) + var(--rest, 1px));
  }
}
@keyframes strip-run { from { transform: rotate(var(--r, 0deg)) translateY(0); } to { transform: rotate(var(--r, 0deg)) translateY(calc(-1 * var(--travel, 0px))); } }
@keyframes page-lift { from { transform: none; } to { transform: translateY(calc(-1 * var(--rest, 0px))); } }
