/* Mario Dinu — editorial + Swiss. Tokens first. */
:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --paper: #f3f2ee;
  --paper-2: #e7e5df;
  --mute: #6e6d68;          /* small text on paper: 4.6:1 (was #8b8b86, 3.1:1) */
  --mute-d: #8a8a8a;        /* small text on ink: 5.7:1 */
  --accent-text: #5f654e;   /* accent TEXT on paper (the bright accent stays for fills and dark sections) */
  --line: rgba(10, 10, 10, .14);
  --line-d: rgba(255, 255, 255, .14);
  --accent: #72795f;
  --red: #ff3b1f;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 2.2vw, 32px);
  --bar: 46px;
  --bar-top: 12px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
/* mono scale: 11px for every label, 10px only for decorative HUD bits, 13px for numbers (rows, years, counters) */
.mono { font-family: var(--mono); font-size: 11px; line-height: 16px; text-transform: uppercase; letter-spacing: .03em; }
.slash { opacity: .5; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 999; background: var(--accent); color: var(--ink); padding: 8px 12px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.show-sm { display: none; }
@media (max-width: 760px) { .hide-sm { display: none !important; } .show-sm { display: inline; } }

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: #fff;
  display: grid; grid-template-rows: auto 1fr auto auto; padding: var(--gut); gap: 14px;
}
.loader__row { display: flex; justify-content: space-between; gap: 12px; }
.loader__count { display: flex; align-items: flex-end; justify-content: flex-end; }
.loader__count span {
  font-family: var(--display); font-weight: 800; font-size: clamp(120px, 30vw, 460px); line-height: .78;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.loader__bar { height: 2px; background: var(--line-d); }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- CURSOR ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #fff; mix-blend-mode: difference;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out);
  display: grid; place-items: center;
}
.cursor.is-label { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--ink); mix-blend-mode: normal; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.cursor__label { font: 600 10px/1 var(--mono); text-transform: uppercase; color: var(--accent); opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- BAR (floating, top) ---------- */
.bar {
  position: fixed; left: 50%; transform: translateX(-50%); top: var(--bar-top); z-index: 100; height: var(--bar);
  width: max-content; max-width: calc(100% - 2 * var(--gut));
  display: flex; align-items: center; justify-content: center; gap: 22px;
  padding: 0 5px 0 6px; color: #a3a3a3; border-radius: 12px;
  background: rgba(14, 14, 14, .9); border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  margin-top: env(safe-area-inset-top);
}
/* the logo (assets/img/logo-mark.png) is a stencil: it takes the text colour of wherever it sits */
.logo { display: inline-block; height: 1em; aspect-ratio: 237 / 160; background: currentColor;
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat; mask: url("../img/logo-mark.png") center / contain no-repeat; }
.bar__brand { height: 34px; min-width: 52px; padding: 0 10px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: #fff;
  font-size: 19px; transition: color .25s, background .25s; }
.bar__brand:hover { color: var(--accent); background: rgba(255, 255, 255, .06); }
.bar__nav { position: relative; display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.bar__ind { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 8px; background: rgba(255, 255, 255, .1); opacity: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s; pointer-events: none; }
.bar__nav a { position: relative; display: inline-flex; gap: 4px; padding: 9px 12px; border-radius: 8px; transition: color .2s; font-size: 10.5px; }
.bar__nav a b { font-weight: 400; color: var(--accent); opacity: 0; transition: opacity .2s; }
.bar__nav a:hover, .bar__nav a.is-active { color: #fff; }
.bar__nav a.is-active b, .bar__nav a:hover b { opacity: 1; }
.bar__right { display: flex; align-items: center; gap: 10px; height: 100%; }
.lang { display: flex; border-radius: 7px; background: rgba(255, 255, 255, .06); padding: 2px; }
.lang button { padding: 4px 8px; border-radius: 5px; color: #8a8a8a; font-size: 10px; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"]:hover { color: var(--ink); }
.bar__cta {
  height: 34px; display: inline-flex; align-items: center; gap: 10px; border-radius: 8px;
  background: var(--accent); color: var(--ink); padding: 0 14px; font-size: 10.5px; font-weight: 500; transition: background .25s, color .25s;
}
.bar__cta:hover { background: #fff; }
.bar__cta b { font-weight: 400; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ink);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* public-domain drawings by Schinkel, Gaudí and Mackintosh behind the portrait: light lines, kept faint; drift a little with the cursor */
.hero::before { content: ""; position: absolute; inset: -20px; pointer-events: none; opacity: .17;
  background: url("../img/hero-sketches.webp") center / cover no-repeat;
  transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0); transition: transform .8s var(--ease-out); }
@media (max-width: 760px) { .hero::before { opacity: .13; background-position: 30% 100%; } }
.hud { position: absolute; z-index: 3; color: #d6d6d6; }
.hud.mono, .hud .mono { font-size: 10px; }
.hud--tr { right: var(--gut); top: calc(var(--bar-top) + var(--bar) + 18px); width: min(330px, 42vw); }
.hud__strip { display: flex; justify-content: flex-start; gap: 8px; background: #1d1d1d; padding: 3px 10px; color: #bbb; }
.hud__strip span:nth-child(odd) { opacity: .45; }
.hud__table { width: 100%; border-collapse: collapse; margin-top: 10px; table-layout: fixed;
  -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.hud__table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.hud__table td { padding: 1px 0; vertical-align: top; color: #8a8a8a; }
.hud__table td:first-child { color: #fff; width: 52%; }
.hud__table td:last-child { width: 17%; }
.hud__table td:last-child { text-align: right; }
.hud__table tr.gap td { padding-top: 10px; }
.hud__table tr { cursor: pointer; }
.hud__table tr:hover td { color: var(--accent); }
.hud--ml, .hud--mr { top: 46%; }
.hud--ml { left: var(--gut); } .hud--mr { right: var(--gut); }
/* desktop: centred above the head (portrait.js sets `top` from the photo); phones: see the media query below */
.hero__copy { position: absolute; z-index: 3; left: 0; right: 0; top: 120px; margin: 0 auto; width: min(720px, 56vw); text-align: center; }
.hero__lede { margin: 0; font-size: clamp(18px, 1.45vw, 26px); line-height: 1.3; color: #e4e4e4; text-wrap: balance; }
.hero__lede em { color: #fff; font-size: 1.12em; }
.hero__name {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: -.06em;
  margin: 0; padding: 0 var(--gut); display: flex; justify-content: space-between; align-items: flex-end;
  font-family: "Archivo", var(--sans); font-weight: 800; font-stretch: 62%; text-transform: uppercase; letter-spacing: -.035em;
  font-size: clamp(60px, 21vw, 420px); line-height: .76; color: #fff; mix-blend-mode: difference;
  pointer-events: none;
}
.hero__word { display: inline-block; overflow: hidden; padding-top: .08em; }
.hero__ch { display: inline-block; will-change: transform; }
.hero__word:last-child { padding-right: .14em; margin-right: -.14em; }
.hero__word sup { font-size: .14em; vertical-align: top; font-weight: 500; position: relative; top: .5em; margin-left: .05em; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; top: calc(var(--bar-top) + var(--bar) + 22px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; color: #8a8a8a; }
.hero__scroll i { width: 40px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: scan 1.8s var(--ease) infinite; }
.hero__scroll { display: none; }   /* the lede took its place above the head */
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (max-width: 760px) {
  .hud--tr { width: calc(50vw - var(--gut) - 6px); }
  .hud__table { display: none; }
  .hud__strip { flex-wrap: wrap; gap: 4px; }
  .hud--ml, .hud--mr { display: none; }
  .hero__copy { left: var(--gut); right: var(--gut); width: auto; top: calc(var(--bar-top) + var(--bar) + 84px); bottom: auto; margin: 0; text-align: left; }
  .hero__lede { font-size: 15px; line-height: 1.4; border-left: 1px solid var(--accent); padding-left: 14px; }
  .hero__scroll { display: none; }
}

/* ---------- CASE FILE ---------- */
.case { position: relative; background: var(--ink); padding: 14vh var(--gut) 16vh; }
.case__head, .case__sign { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; color: var(--mute-d); border-top: 1px solid var(--line-d); padding-top: 10px; }
.case__head > :last-child, .case__sign > :last-child { text-align: right; }
.case__text { max-width: 1300px; margin: 12vh auto 12vh; font-size: clamp(34px, 5.4vw, 92px); line-height: 1; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.case__text em { font-size: 1.04em; color: var(--accent); }
.case__text .w { opacity: .14; white-space: pre; }
/* CV inside the case file */
.cv { margin: 0 0 12vh; }
.cv__head { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; color: var(--mute-d); border-top: 1px solid var(--line-d); padding-top: 10px; }
.cv__pdf { justify-self: end; color: var(--accent); }
.cv__pdf:hover, .cv__pdf:focus-visible { color: #fff; }
.cv__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin-top: 40px; }
.cv__h { margin: 0 0 14px; font-weight: 400; color: var(--accent); }
.cv__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cv__col li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; border-top: 1px solid var(--line-d); padding-top: 10px; }
.cv__col b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.cv__when { color: var(--mute-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv__d { grid-column: 1 / -1; color: #b8b8b3; font-size: 14px; line-height: 1.4; }
@media (max-width: 1100px) { .cv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cv__grid { grid-template-columns: 1fr; } .cv__head { grid-template-columns: 1fr auto; } .cv__head > :nth-child(2) { display: none; } }

/* ---------- WORK ---------- */
.work { position: relative; background: var(--paper); color: var(--ink); padding: clamp(40px, 8vh, 90px) var(--gut) clamp(80px, 14vh, 160px); }
.work__mark { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--ink); }
.work__word { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(110px, 27vw, 520px); line-height: .74; }
.work__arrow { width: clamp(40px, 7vw, 120px); margin-bottom: 2vw; }
/* meta row on the index columns: label over No.+Project, the count over Type, the years over Place+Year */
.work__meta { display: grid; grid-template-columns: 70px 1.6fr 1fr 1fr 70px; gap: 16px; padding: 10px 0 32px; }
.work__meta > :nth-child(1) { grid-column: 1 / 3; }
.work__meta > :nth-child(2) { grid-column: 3; }
.work__meta > :nth-child(3) { grid-column: 4 / 6; text-align: right; }
@media (max-width: 700px) { .work__meta { grid-template-columns: 1fr auto auto; } .work__meta > * { grid-column: auto !important; } }
.work__filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.chip { border: 1px solid var(--ink); padding: 6px 10px; border-radius: 99px; font-size: 10px; transition: background .2s, color .2s; }
.chip:hover { background: var(--paper-2); }
.chip.is-on { background: var(--ink); color: var(--paper); }
.work__head, .row__a { display: grid; grid-template-columns: 70px 1.6fr 1fr 1fr 70px; gap: 16px; align-items: baseline; }
.work__head { color: var(--mute); padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.work__head span:last-child { text-align: right; }
.work__list { list-style: none; margin: 0; padding: 0; }
.row { border-bottom: 1px solid var(--line); position: relative; }
.row.is-hidden { display: none; }
.row__a { padding: 18px 0 16px; position: relative; z-index: 1; }
.row::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out); }
.row:hover::before, .row:focus-within::before { transform: scaleY(1); }
.row__no { font: 500 13px var(--mono); font-variant-numeric: tabular-nums; }
.row__title { font-weight: 700; font-size: clamp(26px, 3.6vw, 56px); line-height: .95; letter-spacing: -.03em; transition: transform .45s var(--ease-out); }
.row:hover .row__title { transform: translateX(12px); }
.row__title em { display: block; font-weight: 400; font-size: .5em; margin-top: .15em; color: #5a5a55; letter-spacing: 0; }
.row__type, .row__place { font-size: 14px; }
.row__year { font: 500 13px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .work__head { display: none; }
  .row__a { grid-template-columns: 34px 1fr 44px; gap: 10px; }
  .row__type, .row__place { display: none; }
  .row__title em { display: block; margin: 4px 0 0; }
}
.preview { position: fixed; left: 0; top: 0; z-index: 20; width: min(360px, 30vw); aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; }
.preview__in { width: 100%; height: 100%; overflow: hidden; background: var(--paper-2); clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease-out); }
.preview.is-on .preview__in { clip-path: inset(0 0 0 0); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .preview { display: none; } }

/* ---------- PROJECT PAGE ---------- */
.pp { position: fixed; inset: 0; z-index: 150; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gut) 120px; }
.pp[hidden] { display: none; }
.pill { position: sticky; top: 24px; z-index: 5; width: min(320px, 100%); margin: 24px auto 0; }
.pill__top { display: flex; align-items: stretch; height: 34px; }
.pill__brand { background: #fff; display: flex; align-items: center; padding: 0 10px; font-size: 13px; text-transform: none; font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; flex: 1; }
.pill__count { background: var(--ink); color: var(--accent); display: flex; align-items: center; padding: 0 10px; }
.pill__close { background: var(--accent); padding: 0 10px; display: flex; gap: 8px; align-items: center; }
.pill__close b { font-weight: 400; font-size: 15px; }
.pill__sub { display: flex; justify-content: space-between; background: var(--paper-2); padding: 6px 10px; }
.pp__body { max-width: 1100px; margin: 0 auto; }
.pp__statement { margin: clamp(80px, 16vh, 160px) auto 18px; max-width: 760px; font-weight: 600; font-size: clamp(26px, 3vw, 42px); line-height: 1.04; letter-spacing: -.025em; }
.pp__tags { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 0 auto clamp(60px, 12vh, 140px); max-width: 760px; }
.pp__media { display: grid; gap: clamp(16px, 3vw, 40px); justify-items: center; }
.pp__media figure { margin: 0; width: 100%; }
.pp__media figure { max-width: 1100px; }
.pp__media img { width: 100%; height: auto; background: #fff; }
.pp__media figcaption { margin-top: 8px; color: var(--mute); }
.pp__text { max-width: 760px; margin: clamp(60px, 12vh, 140px) auto 0; display: grid; gap: 40px; }
.pp__text p { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; }
.pp__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.pp__facts div { border-top: 1px solid var(--line); padding: 10px 0 14px; }
.pp__facts dt { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--mute); margin-bottom: 4px; white-space: nowrap; }
.pp__facts dd { margin: 0; font-size: 15px; }
.pp__next { position: fixed; z-index: 6; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(320px, calc(100% - 32px)); background: var(--accent); color: var(--ink); padding: 10px; text-align: left; display: flex; justify-content: space-between; font-size: 12px; }
.pp__next strong { text-transform: none; font-family: var(--sans); font-weight: 600; font-size: 13px; }

/* ---------- BOOK (click to open; click, swipe or arrows to turn) ---------- */
.booksec { position: relative; background:
  radial-gradient(ellipse at 50% 58%, #1d1d1d 0%, var(--ink) 62%); color: #fff;
  height: 100svh; min-height: 560px; padding: calc(var(--bar-top) + var(--bar) + 14px) var(--gut) 18px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; }
.booksec__fx { position: absolute; width: 0; height: 0; }
.booksec__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.booksec__head p { color: #8a8a8a; margin: 0; }
.booksec__title { margin: 0; text-align: right; font-weight: 700; font-size: clamp(24px, 2.8vw, 46px); line-height: .95; letter-spacing: -.03em; }
.stage { --pw: min(45vw, calc((100svh - 230px) / 1.36)); position: relative; min-height: 0; perspective: 2800px; perspective-origin: 50% 30%; display: grid; place-items: center; }
.book { position: relative; width: calc(var(--pw) * 2); height: calc(var(--pw) * 1.36); transform-style: preserve-3d; cursor: pointer; will-change: transform; }
.booksec.is-open .book { cursor: default; }
.booksec__foot { position: relative; height: 34px; }
.dedication { position: absolute; inset: 0; margin: 0; display: flex; justify-content: center; align-items: center; gap: .5em; flex-wrap: wrap;
  font-family: var(--serif); font-style: italic; font-size: 17px; color: #bdbdbd; transition: opacity .5s; text-align: center; }
.dedication span:first-child { color: #777; }
.booksec.is-open .dedication { opacity: 0; }
.bookui { position: absolute; inset: 0; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 24px; opacity: 0; pointer-events: none; transition: opacity .5s; }
.booksec.is-open .bookui { opacity: 1; pointer-events: auto; }
.bookui__btn { color: #bbb; padding: 8px 4px; }
.bookui__btn:hover { color: var(--accent); }
.bookui__btn:disabled { opacity: .3; cursor: default; }
.bookui__count { min-width: 140px; text-align: center; color: #fff; }
.bookopen { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 3; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 99px; font-weight: 500; white-space: nowrap; transition: opacity .4s, transform .4s, background .2s; }
.bookopen:hover { background: #fff; }
.booksec.is-open .bookopen { opacity: 0; pointer-events: none; transform: translate(-50%, 16px); }
.leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; }
.leaf.is-hidden { visibility: hidden; }
.leaf.is-blur .face { filter: url(#bookBlur); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #f4f1ea; color: var(--ink); }
.face--back { transform: rotateY(180deg); }
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: linear-gradient(90deg, rgba(0,0,0,.16), rgba(0,0,0,0) 7%); }
.face--back::after { background: linear-gradient(270deg, rgba(0,0,0,.16), rgba(0,0,0,0) 7%); }
/* light: a turning page darkens toward the spine and its neighbours sit in its shadow */
.face::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 55%, rgba(0,0,0,.15)); opacity: calc(var(--sh, 0) + var(--cast, 0)); }
.face--back::before { background: linear-gradient(270deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 55%, rgba(0,0,0,.15)); }
.leaf--cover .face--front { background: #161616; color: #fff; }
.leaf--cover .face--front::after, .leaf--last .face--back::after { background:
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"); mix-blend-mode: overlay; opacity: 1; }
.leaf--last .face--back { background: #161616; color: #fff; }
.book::before { /* page block thickness under the open book */
  content: ""; position: absolute; inset: 1% -4px -7px; background: linear-gradient(90deg, #cfc9bb, #e4dfd3 49.6%, #a59f92 50%, #e4dfd3 50.4%, #cfc9bb);
  transform: translateZ(-2px); box-shadow: 0 50px 90px rgba(0,0,0,.65), 0 8px 18px rgba(0,0,0,.4); opacity: calc(var(--open, 0) * 1.4 - .2); border-radius: 2px; }
.pg { position: absolute; inset: 0; padding: 7% 8%; display: flex; flex-direction: column; font-size: calc(var(--pw) * .028); }
.pg__run { display: flex; justify-content: space-between; font: 500 calc(var(--pw) * .02)/1 var(--mono); text-transform: uppercase; color: #6e6a5e; }
.pg__folio { margin-top: auto; font: 500 calc(var(--pw) * .02)/1 var(--mono); color: #6e6a5e; }
.pg--bleed { padding: 0; }
.pg--bleed img { width: 100%; height: 100%; object-fit: cover; }
.pg__cap { z-index: 1; position: absolute; left: 6%; bottom: 4.5%; background: #f4f1ea; padding: .4em .7em; font: 500 calc(var(--pw) * .02)/1 var(--mono); text-transform: uppercase; }
.pg--fit { background: #fff; }
.pg--fit img { width: 100%; height: 100%; object-fit: contain; padding: 5% 4% 9%; }
.pg__no { font-family: var(--display); font-weight: 800; font-size: calc(var(--pw) * .34); line-height: .78; letter-spacing: -.01em; margin: 8% 0 4%; }
.pg__title { font-weight: 700; font-size: calc(var(--pw) * .07); line-height: .95; letter-spacing: -.03em; margin: 0 0 3%; }
.pg__sub { font-family: var(--serif); font-style: italic; font-size: calc(var(--pw) * .045); margin: 0 0 6%; color: #4b4840; }
.pg__sub--push { margin-top: auto; }
.pg__text { font-size: calc(var(--pw) * .028); line-height: 1.38; margin: 0; max-width: 92%; }
.pg__place { margin-top: 5%; color: #6e6a5e; font-size: calc(var(--pw) * .02); }
.pg__turn { margin-top: 6%; font-family: var(--mono); font-size: .7em; text-transform: uppercase; color: #6e6a5e; }
.pg__thumb { margin-top: 6%; height: 26%; }
.pg__thumb img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.pg--cover { justify-content: space-between; padding: 9%; }
.pg--cover .c-top { display: flex; justify-content: space-between; font: 500 calc(var(--pw) * .022)/1.3 var(--mono); text-transform: uppercase; color: #aaa; }
.pg--cover h3 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: calc(var(--pw) * .25); line-height: .8; letter-spacing: -.01em; }
.pg--cover h3 em { display: block; font-family: var(--serif); font-weight: 400; text-transform: none; font-size: .42em; letter-spacing: 0; color: var(--accent); margin-top: .2em; }
.pg--cover .c-label { align-self: flex-start; background: var(--accent); color: var(--ink); padding: .4em .6em; font: 600 calc(var(--pw) * .022)/1 var(--mono); text-transform: uppercase; }
.pg--end { background: #ece8de; }
.pg--hex { background-color: #1a1a1a; background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v33L28 65 0 49V16zM28 65v32' fill='none' stroke='%2372795f' stroke-opacity='.35'/%3E%3C/svg%3E"); background-size: calc(var(--pw) * .12) auto; }
.pg__title-xl { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: calc(var(--pw) * .16); line-height: .82; letter-spacing: -.01em; margin: auto 0 4%; }
.pg__toc { list-style: none; margin: 6% 0 0; padding: 0; font-size: calc(var(--pw) * .03); }
.pg__toc li { display: flex; justify-content: space-between; border-top: 1px solid rgba(0,0,0,.15); padding: .45em 0; }
.pg__toc li span:first-child { font-family: var(--mono); font-size: .75em; color: #6e6a5e; width: 2.6em; }
.pg__toc li span:nth-child(2) { flex: 1; }
@media (max-width: 760px) {
  .stage { --pw: min(46vw, calc((100svh - 260px) / 1.36)); }
  .booksec__head { flex-direction: column; gap: 6px; }
  .booksec__title { text-align: left; }
  .dedication { font-size: 14px; }
  .bookopen { bottom: 60px; }
}

/* ---------- GALLERY ---------- */
.gal { position: relative; background: var(--ink); color: #fff; }
.gal__stage { position: relative; height: 100svh; min-height: 560px; max-height: 1000px; overflow: hidden; }
.gal__field { position: absolute; inset: 0; z-index: 1; contain: strict;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.4px); background-size: 40px 40px; }
.gal__stage::before { content: ""; position: absolute; inset: -40px; z-index: 0; pointer-events: none; opacity: .17;
  background: url("../img/hero-sketches.webp") center / cover no-repeat;
  transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0); }
@media (max-width: 760px) { .gal__stage::before { opacity: .13; background-position: 30% 100%; } }
/* the window's edges: pictures dissolve into the dark before they reach the texts */
.gal__stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 0, rgba(10,10,10,.85) 12%, transparent 32%, transparent 82%, rgba(10,10,10,.8) 100%),
              linear-gradient(0deg, var(--ink) 0, rgba(10,10,10,.7) 14%, transparent 34%, transparent 86%, var(--ink) 100%); }
@media (max-width: 760px) {
  .gal__stage::after { background: linear-gradient(0deg, var(--ink) 0, rgba(10,10,10,.75) 18%, transparent 36%, transparent 70%, rgba(10,10,10,.8) 86%, var(--ink) 100%); }
}
.gal__it { position: absolute; left: 0; top: 0; padding: 0; border: 0; background: #1b1b1b; cursor: pointer;
  visibility: hidden; transform-origin: 50% 50%; will-change: transform, opacity; }
.gal__it img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gal__it::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .25s; }
.gal__it:hover::after, .gal__it:focus-visible::after { box-shadow: inset 0 0 0 2px var(--accent); }
.gal__head { position: absolute; z-index: 2; left: var(--gut); top: calc(var(--bar-top) + var(--bar) + 28px); pointer-events: none; color: #d6d6d6; }
.gal__kicker { margin: 0 0 10px; color: var(--accent); }
.gal__title { margin: 0 0 18px; font: 700 clamp(34px, 4.4vw, 72px)/.92 var(--sans); letter-spacing: -.03em; text-transform: none; color: #fff; }
.gal__title em { font: italic 400 1em/1 var(--serif); letter-spacing: -.01em; color: var(--accent); }
.gal__rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; color: #8a8a8a; }
.gal__rules li::before { content: "// "; color: var(--accent); }
.gal__now { position: absolute; z-index: 2; left: var(--gut); bottom: 34px; display: grid; gap: 6px; pointer-events: none; min-width: 220px; }
.gal__count { color: #8a8a8a; }
.gal__count b { color: var(--accent); font-weight: 500; }
.gal__name { font: 600 clamp(18px, 1.8vw, 26px)/1.1 var(--sans); text-transform: none; color: #fff; }
.gal__kind { color: #8a8a8a; }
.gal__hint { position: absolute; z-index: 2; right: var(--gut); bottom: 34px; margin: 0; color: #8a8a8a; pointer-events: none; text-align: right; max-width: 40ch; }
.gal__full { position: absolute; z-index: 3; right: var(--gut); top: calc(var(--bar-top) + var(--bar) + 28px); display: inline-flex; align-items: center;
  background: rgba(10,10,10,.6); color: #fff; border: 1px solid var(--line-d); border-radius: 99px; padding: 9px 14px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, color .2s, border-color .2s; }
.gal__full:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.gal__full b { font-weight: 400; margin-left: 6px; }
.gal__full-out, .gal.is-full .gal__full-in { display: none; }
.gal.is-full .gal__full-out { display: inline; }
.gal__hint-full, .gal.is-full .gal__hint-win { display: none; }
.gal.is-full .gal__hint-full { display: inline; }
.gal__speed { position: absolute; z-index: 3; right: var(--gut); bottom: 62px; margin: 0; color: var(--accent); font-size: 22px; display: none; }
.gal.is-full .gal__speed { display: block; }
.gal.is-full .gal__stage { position: fixed; inset: 0; z-index: 140; height: 100vh; height: 100dvh; max-height: none; min-height: 0; }
.gal.is-full .gal__head, .gal.is-full .gal__full { top: 28px; }
.gal:fullscreen { background: var(--ink); }
.gal__track { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: 18px; height: 1px; background: var(--line-d); }
.gal__track i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
/* reduced motion: no flight, a plain grid */
.gal.is-static .gal__stage { position: relative; height: auto; overflow: visible; padding: calc(var(--bar-top) + var(--bar) + 260px) var(--gut) 90px; }
.gal.is-static .gal__field { position: relative; inset: auto; contain: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gal.is-static .gal__it { position: relative; visibility: visible; aspect-ratio: 1; width: auto; height: auto; }
.gal.is-static .gal__now, .gal.is-static .gal__hint, .gal.is-static .gal__track { display: none; }
@media (max-width: 760px) {
  .gal__rules { display: none; }
  .gal__hint { display: none; }
  .gal__now { bottom: 30px; }
}

/* gallery lightbox */
.galbox { position: fixed; inset: 0; z-index: 160; background: var(--ink); display: grid; grid-template-rows: auto 1fr; color: #fff; }
.galbox[hidden] { display: none; }
.galbox__bar { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--bar-top) + 4px) var(--gut) 0; color: #8a8a8a; }
.galbox__close { background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 99px; font: inherit; }
.galbox__close:hover { background: #fff; }
.galbox__fig { margin: 0; min-height: 0; display: grid; grid-template-rows: 1fr auto; place-items: center; gap: 12px; padding: 16px 72px 28px; }
.galbox__fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transform: scale(.985); transition: opacity .5s, transform .7s cubic-bezier(.2,.7,.2,1); min-height: 0; }
.galbox__fig img.is-in { opacity: 1; transform: none; }
.galbox__fig figcaption { color: #d6d6d6; }
.galbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-d); color: #fff; font-size: 16px; background: transparent; transition: background .2s, color .2s; }
.galbox__nav:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.galbox__nav--prev { left: var(--gut); }
.galbox__nav--next { right: var(--gut); }
@media (max-width: 760px) {
  .galbox__fig { padding: 12px 8px 80px; }
  .galbox__nav { top: auto; bottom: 20px; transform: none; }
}

/* ---------- CONTACT ---------- */
.contact { background: var(--accent); color: var(--ink); padding: 0 var(--gut) clamp(60px, 10vh, 120px); overflow: hidden; position: relative; isolation: isolate; }
/* contour field (assets/js/contours.js): fills the orange part above the inquiry card, behind the text */
.contours { position: absolute; z-index: -1; left: 0; top: 0; width: 100%; height: min(100%, 1400px); pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.marquee { margin: 0 calc(var(--gut) * -1); border-bottom: 1px solid var(--ink); overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 22px; padding: 10px 0; animation: marq 40s linear infinite; }
.marquee__track span:nth-child(even) { opacity: .45; }
@keyframes marq { to { transform: translateX(-50%); } }
/* one screen: heading + photo on the left, the inquiry card on the right */
.contact__screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(20px, 3vw, 56px); align-items: center;
  min-height: calc(100svh - 38px); padding: calc(var(--bar-top) + var(--bar) + 14px) 0 clamp(16px, 3vh, 32px); }
.contact__intro { display: grid; gap: clamp(12px, 2.2vh, 26px); align-content: center; min-width: 0; }
.contact__row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(16px, 2vw, 32px); align-items: start; }
.contact__row--info { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); border-top: 1px solid var(--ink); padding-top: clamp(8px, 1.4vh, 14px); }
.contact__screen .contact__label { margin: 0 0 clamp(6px, 1.2vh, 12px); }
.contact__screen .mono { line-height: 14px; }   /* one-screen block: labels a touch tighter */
.contact__big { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(50px, min(7vw, 9.8vh), 150px); line-height: .8; letter-spacing: -.01em; }
.contact__big em { text-transform: none; font-size: .7em; letter-spacing: -.01em; }
.contact__me { margin: 0; width: 100%; max-width: clamp(150px, 23vh, 270px); }
.contact__me img { width: 100%; height: auto; aspect-ratio: 799 / 717; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); background: var(--ink);
  clip-path: inset(0 round 4px); transition: clip-path .6s var(--ease-out); }
.contact__me:hover img { clip-path: inset(3% round 4px); }
.contact__me figcaption { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); margin-top: 10px; padding-top: 8px; }
.contact__label { margin: 0 0 22px; }
.services { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.services li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; border-top: 1px solid rgba(0,0,0,.2); padding: clamp(4px, .8vh, 8px) 0; }
.services li::before { content: "0" counter(s); font: 500 11px var(--mono); padding-top: 4px; }
.services span { font-weight: 600; font-size: clamp(14px, 1.15vw, 17px); letter-spacing: -.01em; }
.services i { grid-column: 2; font-style: normal; font-size: 12px; opacity: .7; }
.contact__text { margin: 0; font-size: clamp(16px, min(1.35vw, 2.4vh), 22px); line-height: 1.22; letter-spacing: -.01em; }
.mail { display: block; width: 100%; text-align: left; border: 1px solid var(--ink); padding: clamp(9px, 1.4vh, 14px); transition: background .25s, color .25s; }
.mail:hover { background: var(--ink); color: var(--accent); }
.mail span { display: block; font-weight: 700; font-size: clamp(15px, 1.3vw, 21px); letter-spacing: -.02em; word-break: break-all; }
.mail b { display: block; margin-top: 6px; font-weight: 400; opacity: .7; }
.links { list-style: none; margin: clamp(6px, 1.2vh, 14px) 0 0; padding: 0; }
.links a { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(0,0,0,.2); padding: clamp(5px, .9vh, 9px) 0; }
.links a:hover em { text-decoration: underline; }
.links em { font-style: normal; text-transform: none; font-family: var(--mono); }
@media (max-width: 1000px) {
  .contact__screen { grid-template-columns: 1fr; min-height: 0; }
  .contact__big { font-size: clamp(60px, 16vw, 150px); }
  .contact__me { max-width: 320px; }
}

@media (max-width: 560px) { .contact__row, .contact__row--info { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); color: var(--ink); padding: clamp(60px, 12vh, 140px) var(--gut); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--bar-top) + var(--bar) + 24px); display: grid; gap: 14px; justify-items: start; }
.faq__kicker { margin: 0; color: var(--accent-text); }
.faq__title { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(56px, 8vw, 140px); line-height: .82; letter-spacing: -.01em; }
.faq__title em { font-family: var(--serif); font-weight: 400; text-transform: none; color: var(--accent-text); }
.faq__lead { margin: 0; font-size: 17px; max-width: 34ch; color: #4b4840; }
.faq__cta { margin-top: 6px; background: var(--ink); color: #fff; border-radius: 99px; padding: 11px 16px; transition: background .2s, color .2s; }
.faq__cta:hover { background: var(--accent); color: var(--ink); }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 28px; align-items: center; gap: 10px; padding: clamp(16px, 2.6vh, 24px) 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__no { color: var(--mute); font-variant-numeric: tabular-nums; }
.faq__q { font-weight: 600; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -.015em; line-height: 1.2; transition: color .2s; }
.faq__item summary:hover .faq__q { color: var(--accent); }
.faq__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); transition: background .25s, border-color .25s, transform .4s var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .25s; }
.faq__item[open] .faq__icon { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { opacity: 0; }
.faq__a { padding: 0 38px clamp(18px, 3vh, 26px) 54px; font-size: 16.5px; line-height: 1.55; color: #33312c; max-width: 62ch; }
.faq__item[open] .faq__a { animation: faqIn .45s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__a { padding-left: 0; padding-right: 0; }
  .faq__item summary { grid-template-columns: 34px 1fr 28px; }
}

/* ---------- FOOTER ---------- */
.foot { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; background: var(--ink); color: var(--mute-d); padding: 18px var(--gut) 18px; }
.foot a:hover { color: var(--accent); }

/* ---------- REVEALS ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .case__text .w { opacity: 1 !important; }
}
.leaf--cover .face--front, .leaf--last .face--back { box-shadow: 0 30px 60px rgba(0,0,0,.45); }
@media (max-width: 760px) {
  :root { --bar: 42px; --bar-top: 8px; }
  .bar { left: 8px; right: 8px; transform: none; width: auto; max-width: none; justify-content: space-between; gap: 8px; padding: 0 4px; }
  .bar__brand { display: none; }
  .bar__nav a { font-size: 10px; padding: 8px 6px; }
  .bar__nav a b { display: none; }
  .bar__cta { display: none; }
  .bar__right { padding-right: 2px; }
}
/* narrow phones: the Romanian labels are longer, keep the language switch inside the bar */
@media (max-width: 420px) {
  .bar { gap: 4px; }
  .bar__nav a { padding: 8px 4px; letter-spacing: 0; }
  .lang button { padding: 4px 6px; }
}

/* ---------- INQUIRY (pattern from Watermelon UI "Form 10", rebuilt in plain CSS) ---------- */
.inq { background: var(--ink); color: #f1efe9; border-radius: 16px; padding: clamp(20px, min(2.4vw, 3.6vh), 40px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.inq__head { display: grid; gap: 6px; max-width: 640px; margin-bottom: clamp(14px, 2.6vh, 28px); }
.inq__head .mono { margin: 0; color: var(--accent); }
.inq__title { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, min(3.4vw, 6vh), 60px); line-height: .9; letter-spacing: -.01em; }
.inq__lead { margin: 0; color: #a9a7a1; font-size: 15px; }
.inq__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.8vh, 18px) 20px; }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font: 10px/1.4 var(--mono); text-transform: uppercase; color: #bdbab3; padding: 0; }
.field legend { margin-bottom: 7px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: 16px/1.4 var(--sans); color: #fff; background: #151515; border: 1px solid #2c2c2c; border-radius: 10px; padding: clamp(9px, 1.3vh, 12px) 14px;
  transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: clamp(84px, 13vh, 130px); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #444; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(114, 121, 95, .25); background: #181818; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #ff5a4a; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border: solid #9a9790; border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select option { background: #151515; color: #fff; }
.field__hint { margin: 0; font-size: 12.5px; color: #8a8780; }
.field__err { margin: 0; font-size: 12.5px; color: #ff7d6e; }
.field__err:empty { display: none; }
.field__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.field__count { color: #8a8780; white-space: nowrap; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggles label { margin: 0; cursor: pointer; text-transform: none; }
.toggles input { position: absolute; opacity: 0; pointer-events: none; }
.toggles span { display: inline-block; font: 13px/1 var(--sans); color: #d6d3cc; border: 1px solid #2f2f2f; background: #151515; border-radius: 99px; padding: clamp(9px, 1.2vh, 11px) 14px; transition: background .2s, border-color .2s, color .2s; }
.toggles label:hover span { border-color: #4a4a4a; }
.toggles input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.toggles input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.inq__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: clamp(14px, 2.4vh, 26px); padding-top: clamp(12px, 2vh, 22px); border-top: 1px solid #242424; }
.inq__send { background: var(--accent); color: var(--ink); font: 600 15px var(--sans); border-radius: 10px; padding: 14px 22px; display: inline-flex; gap: 10px; align-items: center; transition: background .2s, transform .2s; }
.inq__send:hover { background: #fff; }
.inq__send:active { transform: translateY(1px); }
.inq__send b { font-weight: 400; transition: transform .25s var(--ease-out); }
.inq__send:hover b { transform: translateX(4px); }
.inq__note { margin: 0; color: #8a8780; text-transform: none; }
.inq.is-sent .inq__note { color: var(--accent); }
@media (max-width: 700px) { .inq__grid { grid-template-columns: 1fr; } .inq { border-radius: 12px; } }
.inq__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq.is-busy .inq__send { opacity: .6; cursor: progress; }

/* ---------- PRIVACY PAGE ---------- */
body.legal { background: var(--paper); color: var(--ink); }
.legal__top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px var(--gut); background: rgba(243, 242, 238, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.legal__back:hover { color: var(--accent); }
.legal .lang { background: rgba(0, 0, 0, .06); }
.legal .lang button { color: #6b6b66; }
.legal .lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.legal__body { max-width: 760px; margin: 0 auto; padding: clamp(40px, 9vh, 100px) var(--gut) clamp(60px, 12vh, 140px); }
.legal p.legal__kicker { color: var(--mute); margin: 0 0 14px; font-size: 11px; }
.legal__title { margin: 0 0 22px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(64px, 12vw, 150px); line-height: .82; letter-spacing: -.01em; }
.legal__lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.35; margin: 0 0 clamp(30px, 6vh, 56px); }
.legal h2 { font-size: 13px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0; margin: 36px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.legal p, .legal li { font-size: 16px; line-height: 1.55; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.legal a:not(.legal__back) { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal a:not(.legal__back):hover { color: var(--accent); }
.legal [hidden] { display: none !important; }
.legal .foot { justify-content: space-between; }
.inq__note a, .foot a.foot__privacy { text-decoration: underline; text-underline-offset: 3px; }

/* logos outside the bar take the colour of their page */
.pill__brand .logo { font-size: 18px; vertical-align: middle; }
.pill__brand:hover { color: var(--accent); }
.nf__logo { display: inline-block; color: #fff; font-size: 34px; margin-bottom: 26px; transition: color .2s; }
.nf__logo:hover { color: var(--accent); }
.legal__logo { color: var(--ink); font-size: 22px; display: inline-flex; transition: color .2s; }
.legal__logo:hover { color: var(--accent); }

/* 404 page (404.html) */
.nf { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.nf__body { width: min(720px, 100%); }
.nf__kicker { display: flex; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.55); margin: 0 0 12px; }
.nf__code { font-family: var(--display, var(--sans)); font-size: clamp(120px, 34vw, 320px); line-height: .82; margin: 0; color: var(--accent); }
.nf__text { font-size: clamp(18px, 2.4vw, 24px); margin: 20px 0 28px; }
.nf__text span { color: rgba(255,255,255,.55); }
.nf__back { display: inline-flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: var(--ink); text-decoration: none; }
.nf__back:hover { background: #fff; }
