/* swyftsoft.com
   Night Ink by default, Paper on request. Square corners, gold hairlines, the
   logo's cyan to magenta spectrum used sparingly. Tokens match the brand kit
   (colours/tokens.css). */

@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/fraunces-latin-opsz-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/fraunces-latin-opsz-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/fonts/hanken-grotesk-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --cyan: #0AD3FE;
  --iris: #7E6EE9;
  --magenta: #FE00D4;
  --gold-deep: #8F5D25;
  --gold: #C9A55C;
  --gold-light: #F3E998;
  --spectrum: linear-gradient(90deg, var(--cyan) 0%, var(--iris) 50%, var(--magenta) 100%);
  --gilt: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold) 28%, var(--gold-light) 50%, var(--gold) 72%, var(--gold-deep) 100%);

  --bg: #0D0B16;
  --raised: #161325;
  --sunk: #090811;
  --line: #2B2740;
  --line-strong: #3D3757;
  --text: #F2EFF8;
  --muted: #A9A4BD;
  --link: #6FE3FF;
  --accent-text: #F3E998;
  --hairline: rgba(201, 165, 92, 0.42);
  --glow-a: rgba(10, 211, 254, 0.16);
  --glow-b: rgba(254, 0, 212, 0.12);
  --shot-dark: block;
  --shot-light: none;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --page: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 11vw, 148px);
  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #FAF8F3;
  --raised: #FFFFFF;
  --sunk: #F2EEE4;
  --line: #E4DFD3;
  --line-strong: #CFC7B6;
  --text: #17141F;
  --muted: #5D586B;
  --link: #4F3BD1;
  --accent-text: #8F5D25;
  --hairline: rgba(143, 93, 37, 0.45);
  --glow-a: rgba(10, 211, 254, 0.12);
  --glow-b: rgba(254, 0, 212, 0.07);
  --shot-dark: none;
  --shot-light: block;
  color-scheme: light;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A faint paper grain over everything, so the dark never looks flat. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' 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");
}
[data-theme='light'] body::before { opacity: 0.08; filter: invert(1); }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
::selection { background: var(--iris); color: #fff; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 10px 16px; font-family: var(--mono); font-size: 0.8rem;
}
.skip:focus { top: 12px; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

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

.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 360;
  font-optical-sizing: auto;
  letter-spacing: -0.018em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7.4vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; }
h1 em, h2 em, h3 em, .display em {
  font-style: italic;
  font-weight: 340;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.08em 0.06em 0.02em;
  margin: 0 -0.04em 0 -0.02em;
}
p { text-wrap: pretty; }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.38rem); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.lede strong { color: var(--text); font-weight: 600; }

.label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label .no { color: var(--accent-text); margin-right: 0.9em; }

.rule { height: 3px; background: var(--gilt); border: 0; }
.hair { height: 1px; background: var(--hairline); border: 0; }

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

.btn {
  --b: var(--text);
  display: inline-flex; align-items: center; gap: 0.9em;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--bg); background: var(--b);
  padding: 1.05em 1.5em; border: 1px solid var(--b);
  position: relative; isolation: isolate; overflow: hidden;
  transition: color 0.25s ease;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--spectrum);
  transform: translateX(-101%); transition: transform 0.35s cubic-bezier(.7, 0, .2, 1);
}
.btn:hover { color: #0D0B16; text-decoration: none; }
.btn:hover::after { transform: translateX(0); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { color: var(--text); background: transparent; border-color: var(--line-strong); }
.btn.ghost:hover { color: #0D0B16; border-color: transparent; }

.text-link {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hairline); padding-bottom: 4px;
}
.text-link:hover { border-bottom-color: var(--text); }
.text-button {
  font: inherit; color: var(--link); background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: block; flex: none; width: 146px; padding: 4px 0 8px; }
.brand img { width: 100%; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 10px 14px; position: relative;
}
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current='page'] { color: var(--text); }
.nav a:not(.btn)[aria-current='page']::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--gilt);
}
.nav .btn { margin-left: 12px; padding: 0.8em 1.15em; color: var(--bg); }
.nav .btn:hover { color: #0D0B16; }
.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme='light'] .theme-toggle .sun { display: none; }
[data-theme='light'] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }

@media (max-width: 920px) {
  .site-header .wrap { height: 66px; }
  .brand { width: 122px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text); background: none; border: 1px solid var(--line); padding: 10px 14px; cursor: pointer;
  }
  .nav {
    position: fixed; inset: 66px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; font-size: 0.86rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)[aria-current='page']::after { left: 0; right: auto; width: 32px; bottom: 10px; }
  .nav .btn { margin: 20px 0 0; justify-content: center; padding: 1.1em; border-bottom: 0; }
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 0; overflow: hidden; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: -1;
}
.hero::before { width: 46vw; height: 46vw; left: -14vw; top: -18vw; background: var(--glow-a); }
.hero::after { width: 40vw; height: 40vw; right: -12vw; top: 10vw; background: var(--glow-b); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero h1 { margin: 28px 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 40px; }
.hero-mark { position: relative; align-self: center; justify-self: end; width: min(100%, 420px); }
.hero-mark img { width: 100%; opacity: 0.95; }
.hero-mark .caption { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; }

.ledger {
  margin-top: clamp(56px, 8vw, 104px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ledger div { padding: 22px 22px 24px 0; }
.ledger div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.ledger dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
.ledger dd { margin-top: 8px; font-size: 0.98rem; line-height: 1.45; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { justify-self: start; width: min(46%, 190px); order: -1; }
  .hero-mark .caption { display: none; }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ledger div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Page heads on inner pages. */
.page-head { position: relative; padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head::before {
  content: ''; position: absolute; z-index: -1; width: 50vw; height: 50vw; right: -20vw; top: -30vw;
  border-radius: 50%; filter: blur(90px); background: var(--glow-a);
}
.page-head h1 { margin: 22px 0 26px; max-width: 16ch; }
.page-head .lede { max-width: 52ch; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { color: var(--line-strong); }

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

.section { padding: var(--section) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head h2 { margin-top: 18px; }
.section-head p { color: var(--muted); max-width: 52ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* What we do: three columns with big italic numerals. */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillar { padding: 36px 32px 8px 0; position: relative; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar .numeral {
  font-family: var(--display); font-style: italic; font-weight: 300; font-size: 4.6rem; line-height: 1;
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; padding-right: 0.1em;
}
.pillar h3 { margin: 18px 0 14px; }
.pillar p { color: var(--muted); }
.pillar ul { list-style: none; padding: 0; margin-top: 20px; border-top: 1px solid var(--line); }
.pillar li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; display: flex; gap: 12px; }
.pillar li::before { content: '/'; color: var(--accent-text); font-family: var(--mono); }
@media (max-width: 920px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0 24px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
}

/* Product plates. */
.plates { display: grid; gap: 28px; }
.plate {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: var(--raised); border: 1px solid var(--line);
  isolation: isolate; overflow: hidden;
}
.plate::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), var(--glow-a), transparent 60%);
}
.plate:hover::before { opacity: 1; }
.plate::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--spectrum); }
.plate.workshop::after { background: var(--gilt); }
.plate-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
.plate-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 34px; }
.status {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-strong); color: var(--text);
}
.status::before { content: ''; width: 7px; height: 7px; background: #3DDC97; box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.18); }
.status.soon::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 165, 92, 0.2); }
.plate h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.plate .line { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--accent-text); margin: 10px 0 18px; line-height: 1.3; }
.plate p { color: var(--muted); }
.plate ul { list-style: none; padding: 0; margin: 24px 0 30px; }
.plate li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); position: relative; font-size: 0.97rem; }
.plate li::before { content: ''; position: absolute; left: 0; top: 1.15em; width: 12px; height: 1px; background: var(--gold); }
.plate .platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 5px 9px; }
.plate .cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.plate-art { position: relative; border-left: 1px solid var(--line); background: var(--sunk); min-height: 320px; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 48px); }
.plate-art .shot { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55); border: 1px solid var(--line); }
.plate-art .shot.dark { display: var(--shot-dark); }
.plate-art .shot.light { display: var(--shot-light); }
.plate-art .mark { position: absolute; width: 54px; left: 24px; bottom: 24px; }
.workshop-art { text-align: center; }
.workshop-art .big {
  font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(4.5rem, 9vw, 8rem); line-height: 1;
  background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 0.1em;
}
.workshop-art .label { margin-top: 18px; display: block; }
@media (max-width: 920px) {
  .plate { grid-template-columns: 1fr; }
  .plate-art { border-left: 0; border-top: 1px solid var(--line); min-height: 240px; }
}

/* Principles: a two-column list with hairlines. */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); }
.principle { padding: 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 20px; }
.principle .label { padding-top: 8px; }
.principle h3 { font-size: 1.55rem; }
.principle p { grid-column: 2; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* Trust band. */
.trust-band { background: var(--sunk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.marks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mark-card { border: 1px solid var(--line); background: var(--raised); padding: 26px 24px; position: relative; }
.mark-card::before { content: ''; position: absolute; top: -1px; left: -1px; width: 28px; height: 28px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.mark-card .name { font-family: var(--display); font-size: 1.85rem; line-height: 1.1; }
.mark-card .scope { margin-top: 8px; }
.mark-card p { margin-top: 14px; font-size: 0.93rem; color: var(--muted); }
.fine { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .marks { grid-template-columns: 1fr; } }

/* Closing call to action. */
.closing { text-align: left; }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.closing h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.closing .side { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.closing .side p { color: var(--muted); }
@media (max-width: 860px) { .closing .wrap { grid-template-columns: 1fr; } }

/* Prose: legal pages and long text. */
.prose-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-top: clamp(48px, 7vw, 88px); padding-bottom: var(--section); }
.toc { position: sticky; top: 104px; align-self: start; }
.toc ol { list-style: none; padding: 0; margin-top: 16px; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 9px 0; font-size: 0.88rem; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--gold); }
.prose strong { font-weight: 650; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.updated { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
@media (max-width: 860px) { .prose-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* Cards (privacy centre, about facts). */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; background: var(--raised);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; position: relative; transition: border-color 0.2s ease, transform 0.2s ease;
}
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
a.card::after { content: '\2192'; position: absolute; right: 26px; top: 26px; font-family: var(--mono); color: var(--accent-text); transition: transform 0.2s ease; }
a.card:hover::after { transform: translateX(4px); }
.card h2, .card h3 { font-size: 1.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }

.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
@media (max-width: 600px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.split .stack > * + * { margin-top: 1.1em; }
.split .stack p { color: var(--muted); }
.split .stack p.strong { color: var(--text); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.quote {
  font-family: var(--display); font-style: italic; font-weight: 320; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.2;
  border-left: 3px solid; border-image: var(--gilt) 1; padding-left: clamp(20px, 3vw, 36px);
}

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 28px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: '0' counter(step); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--accent-text); }
.steps h3 { font-size: 1.45rem; margin: 14px 0 10px; }
.steps p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 920px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

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

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(48px, 7vw, 88px); padding-bottom: var(--section); }
.contact-aside > * + * { margin-top: 26px; }
.contact-aside p { color: var(--muted); }
.form { background: var(--raised); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); position: relative; }
.form::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--spectrum); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field, .row + .field, .field + .row, .row + .row { margin-top: 22px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.row .field + .field { margin-top: 0; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field label .opt { text-transform: none; letter-spacing: 0; font-family: var(--sans); color: var(--muted); opacity: 0.8; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: 0; padding: 13px 14px; width: 100%; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 25%, transparent); }
.field [aria-invalid='true'] { border-color: #FF6B8B; }
.error { font-size: 0.86rem; color: #FF8FA6; min-height: 0; }
[data-theme='light'] .error { color: #B4234A; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 24px; font-size: 0.93rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--iris); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-top: 24px; min-height: 66px; }
.form-alert { margin-top: 20px; padding: 14px 16px; border: 1px solid #FF6B8B; color: var(--text); font-size: 0.93rem; }
.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-off { padding: 18px 0; color: var(--muted); }
.success { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); background: var(--raised); }
.success:focus { outline: none; }
.success h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

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

.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 32px; background: var(--sunk); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { width: 210px; }
.footer-brand p { margin-top: 22px; color: var(--muted); max-width: 32ch; font-size: 0.95rem; }
.footer-col h2 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
.footer-col ul { list-style: none; padding: 0; margin-top: 16px; }
.footer-col li + li { margin-top: 9px; }
.footer-col a, .footer-col .text-button { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover, .footer-col .text-button:hover { color: var(--text); }
.footer-col .soon { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-left: 6px; }
.footer-rule { margin: clamp(40px, 6vw, 72px) 0 24px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; font-size: 0.84rem; color: var(--muted); }
.footer-bottom address { font-style: normal; }
.cookie-settings { display: none; }
.has-consent .cookie-settings { display: list-item; }
@media (max-width: 920px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn::after, .btn .arrow, a.card, a.card::after { transition: none; }
}

.hero-mark img { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateY(-6px) rotate(-1.2deg); } to { transform: translateY(8px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .hero-mark img { animation: none; } }

/* Not found. */
.lost { min-height: 62vh; display: flex; align-items: center; }
.lost .big { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(6rem, 18vw, 14rem); line-height: 0.9; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }

/* Cookie banner: square corners and the brand's type. */
#cc-main {
  --cc-font-family: var(--sans);
  --cc-modal-border-radius: 0;
  --cc-btn-border-radius: 0;
  --cc-bg: var(--raised);
  --cc-primary-color: var(--text);
  --cc-secondary-color: var(--muted);
  --cc-btn-primary-bg: var(--text);
  --cc-btn-primary-color: var(--bg);
  --cc-btn-primary-border-color: var(--text);
  --cc-btn-primary-hover-bg: var(--iris);
  --cc-btn-primary-hover-color: #fff;
  --cc-btn-primary-hover-border-color: var(--iris);
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: var(--text);
  --cc-btn-secondary-border-color: var(--line-strong);
  --cc-btn-secondary-hover-bg: var(--sunk);
  --cc-btn-secondary-hover-color: var(--text);
  --cc-btn-secondary-hover-border-color: var(--text);
  --cc-separator-border-color: var(--line);
  --cc-toggle-on-bg: var(--iris);
  --cc-toggle-off-bg: var(--line-strong);
  --cc-toggle-readonly-bg: var(--line);
  --cc-cookie-category-block-bg: var(--sunk);
  --cc-cookie-category-block-border: var(--line);
  --cc-cookie-category-block-hover-bg: var(--sunk);
  --cc-cookie-category-block-hover-border: var(--line-strong);
  --cc-section-category-border: var(--line);
  --cc-overlay-bg: rgba(5, 4, 10, 0.7);
  --cc-footer-bg: var(--sunk);
  --cc-footer-color: var(--muted);
  --cc-footer-border-color: var(--line);
  --cc-link-color: var(--link);
}
#cc-main .cm, #cc-main .pm { border: 1px solid var(--line); }
#cc-main .cm::before { content: ''; display: block; height: 3px; background: var(--spectrum); }
#cc-main .cm__title, #cc-main .pm__title { font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
