/* itoko — the parent brand (Desktop/itoko-brand): ink #17171A, off-white
   #F6F4F0 and lime. Lime #C6F432 on dark; #8DB31A for marks and #4F6A00 for
   text on light, because bright lime disappears on white. The two product cards keep their own brand palettes
   (mastro+: warm dark + orange; Dikografia: white desk + navy + highlighter). */
:root {
  --brand-ink: #17171A;
  --brand-paper: #F6F4F0;
  --brand-lime: #C6F432;
  --bg: #F6F4F0;
  --bg-2: #ECE9E2;
  --surface: #FBFAF7;
  --ink: #17171A;
  --ink-2: #3a3a3f;
  --muted: #6a6a70;
  --line: #d8d5cd;
  --line-soft: #e6e3dc;
  --accent: #8DB31A;         /* marks, dots, rules */
  --accent-text: #4F6A00;    /* accent used as text */
  --accent-inv: #C6F432;     /* accent on the inverted (ink) panels */
  --on-accent: #17171A;
  --mark-l: #17171A;
  --mark-r: #8DB31A;
  --grain: .05;

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wrap: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17171A; --bg-2: #1f1f23; --surface: #222226;
    --ink: #F6F4F0; --ink-2: #d2d0cb; --muted: #8e8d93;
    --line: #313136; --line-soft: #26262a;
    --accent: #C6F432; --accent-text: #C6F432; --accent-inv: #4F6A00; --on-accent: #17171A;
    --mark-l: #C6F432; --mark-r: #F6F4F0;
    --grain: .07;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17171A; --bg-2: #1f1f23; --surface: #222226;
  --ink: #F6F4F0; --ink-2: #d2d0cb; --muted: #8e8d93;
  --line: #313136; --line-soft: #26262a;
  --accent: #C6F432; --accent-text: #C6F432; --accent-inv: #4F6A00; --on-accent: #17171A;
  --mark-l: #C6F432; --mark-r: #F6F4F0;
  --grain: .07;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
/* Film grain over everything, very faint. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: var(--grain); mix-blend-mode: multiply;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::after { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::after { mix-blend-mode: screen; } }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

.serif { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-weight: 500; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13.5px/1 var(--sans); color: var(--muted); letter-spacing: .01em;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Bilingual: every string carries both languages; the <html lang> picks one. */
html[lang="el"] [lang="en"]:not(html) { display: none !important; }
html[lang="en"] [lang="el"]:not(html) { display: none !important; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 32px; width: auto; }
.logo .on-dark { display: none; }
:root[data-theme="dark"] .logo .on-light { display: none; }
:root[data-theme="dark"] .logo .on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .on-light { display: none; }
  :root:not([data-theme="light"]) .logo .on-dark { display: block; }
}
.mk-l { fill: var(--mark-l); transition: fill .4s; }
.mk-r { fill: var(--mark-r); transition: fill .4s; }
/* Marks on an always-dark surface use the brand's on-dark colours. The mark is
   drawn through <use>, so colours must arrive as inherited custom properties. */
.mark-fixed { --mark-l: #C6F432; --mark-r: #F6F4F0; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line-soft);
}
.header .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 8px; }
.nav + .tools { margin-left: 18px; }
.chip-btn {
  height: 36px; min-width: 36px; padding-inline: 10px; border-radius: 18px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 600 13px/1 var(--mono); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .2s, background-color .2s;
}
.chip-btn:hover { border-color: var(--ink); }
.chip-btn svg { width: 16px; height: 16px; }
.lang-btn span.on { color: var(--ink); }
.lang-btn span.off { color: var(--muted); }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.cta-sm {
  height: 40px; padding-inline: 18px; border-radius: 20px; background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 14.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .25s, transform .25s var(--ease);
}
.cta-sm:hover { background: var(--accent); color: var(--on-accent); }
@media (max-width: 900px) { .nav { display: none; } .tools { margin-left: auto; } }
@media (max-width: 480px) { .cta-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 56px 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.hero h1 {
  font-weight: 700; font-size: clamp(46px, 7.4vw, 108px); line-height: .94; letter-spacing: -0.045em;
  margin-top: 26px;
}
.hero h1 .serif { font-weight: 300; letter-spacing: -0.03em; }
.rotator { display: inline-grid; vertical-align: bottom; color: var(--accent-text); }
.rotator > span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(.45em); filter: blur(6px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
  white-space: nowrap;
}
.rotator > span.on { opacity: 1; transform: none; filter: none; }
.rotator > span.out { opacity: 0; transform: translateY(-.45em); filter: blur(6px); }
.hero-lede { margin-top: 30px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 31em; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  height: 54px; padding-inline: 26px; border-radius: 27px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* The constellation: itoko in the middle, a thread to each product. */
.constellation { position: relative; aspect-ratio: 1 / 1; max-width: 600px; width: 100%; margin-inline: auto; }
.constellation svg.threads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.threads .t { fill: none; stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1.6; }
.threads .flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 14; animation: flow 1.6s linear infinite; }
.threads .orbit { fill: none; stroke: color-mix(in srgb, var(--ink) 32%, transparent); stroke-width: 1.6; stroke-dasharray: 3 7; stroke-linecap: round; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.node { position: absolute; transform: translate(-50%, -50%); }
.core {
  left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: #17171A; display: grid; place-items: center;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 0 22px color-mix(in srgb, var(--accent) 5%, transparent);
  animation: breathe 5s ease-in-out infinite;
}
.core svg { width: 54%; }
@keyframes breathe { 50% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 0 34px color-mix(in srgb, var(--accent) 4%, transparent); } }
.float-card {
  border-radius: 18px; padding: 14px 16px; font-size: 13px; line-height: 1.35;
  box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 18px 40px -18px rgba(20, 15, 5, .35);
  animation: bob 7s ease-in-out infinite; width: max-content; max-width: 46%;
}
@keyframes bob { 50% { translate: 0 -10px; } }
.fc-voice { left: 22%; top: 16%; background: #141311; color: #fffdf8; font-family: "Fira Sans", var(--sans); }
.fc-voice .row { display: flex; align-items: center; gap: 10px; }
.fc-voice .mic { width: 30px; height: 30px; border-radius: 50%; background: #e35205; display: grid; place-items: center; flex: none; }
.fc-voice .mic svg { width: 15px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.wave { display: flex; align-items: center; gap: 2.5px; height: 22px; }
.wave i { width: 3px; border-radius: 2px; background: #ff7a33; animation: wv 1.1s ease-in-out infinite; }
@keyframes wv { 0%, 100% { height: 5px; } 50% { height: 20px; } }
.fc-voice .q { margin-top: 10px; color: #d8d1c4; font-size: 12.5px; }
.fc-voice .t { font: 700 11px/1 var(--mono); color: #a8a196; }

.fc-doc { left: 78%; top: 80%; background: #fff; color: #1d2740; border: 1px solid #dde2ea; animation-delay: -3.5s; }
.fc-doc .h { display: flex; justify-content: space-between; gap: 14px; font: 600 11px/1 "Commissioner", var(--sans); color: #5a6480; }
.fc-doc p { margin-top: 8px; font-family: "Literata", Georgia, serif; font-size: 13.5px; line-height: 1.6; max-width: 22ch; }
.fc-doc mark { background: linear-gradient(transparent 12%, #ffe98a 12%, #ffe98a 90%, transparent 90%); color: inherit; }
.fc-doc sup { font: 700 9px/1 var(--sans); color: #5a6480; }

.tag {
  position: absolute; transform: translate(-50%, -50%); font: 500 11.5px/1 var(--mono); color: var(--muted);
  background: var(--bg); padding: 6px 10px; border: 1px solid var(--line); border-radius: 20px; white-space: nowrap;
}
.tag b { color: var(--ink); font-weight: 700; }
@media (max-width: 520px) { .tag { display: none; } }
@media (max-width: 520px) {
  .float-card { padding: 10px 12px; font-size: 11.5px; border-radius: 14px; }
  .fc-voice .q, .fc-doc p { font-size: 11.5px; }
  .tag { font-size: 10px; padding: 5px 8px; }
}

/* Facts strip under the hero */
.facts { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { padding: 22px 20px 6px 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact .k { font: 500 13px/1 var(--sans); color: var(--muted); }
.fact .v { margin-top: 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.sec { padding-block: 128px; }
@media (max-width: 760px) { .sec { padding-block: 88px; } }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 64px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 44px; } }
.sec-head h2 { margin-top: 20px; font-size: clamp(38px, 5.2vw, 72px); line-height: .98; letter-spacing: -0.04em; font-weight: 700; }
.sec-head p { font-size: 19px; color: var(--ink-2); max-width: 30em; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 980px) { .products { grid-template-columns: minmax(0, 1fr); } }
.product {
  position: relative; border-radius: 32px; overflow: hidden; padding: 36px 36px 0; min-height: 720px;
  display: flex; flex-direction: column; text-decoration: none; isolation: isolate;
  transition: transform .6s var(--ease);
}
@media (max-width: 560px) { .product { padding: 26px 22px 0; border-radius: 24px; min-height: 0; } }
.product::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 70%);
}
.product:hover::before { opacity: 1; }
.product:hover { transform: translateY(-4px); }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.platforms { display: flex; gap: 6px; flex-wrap: wrap; }
.platforms span { font: 600 12px/1 var(--mono); padding: 7px 10px; border-radius: 14px; border: 1px solid currentColor; opacity: .75; }
.p-title { margin-top: 44px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -0.03em; }
.p-desc { margin-top: 16px; font-size: 17px; line-height: 1.55; max-width: 30em; }
.p-link { flex: none; align-self: flex-start; margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; }
.p-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.product:hover .p-link svg { transform: translate(3px, -3px); }
.p-visual { margin-top: auto; padding-top: 44px; display: flex; justify-content: center; }

/* mastro+ card — its own warm dark palette */
.pm { background: #141311; color: #fffdf8; --spot: rgba(255, 122, 51, .16); font-family: "Fira Sans", var(--sans); }
.pm .p-title { font-family: "Fira Sans", var(--sans); font-weight: 700; }
.pm .p-title em { font-style: normal; color: #ff7a33; }
.pm .p-desc { color: #d8d1c4; font-family: var(--sans); }
.pm .p-link { color: #ff8a4c; font-family: var(--sans); }
.pm-logo { display: flex; align-items: center; gap: 8px; }
.pm-logo svg { width: 30px; height: 30px; }
.pm-logo b { font-size: 24px; letter-spacing: -0.02em; }
.pm-logo b i { font-style: normal; color: #ff7a33; font-size: .72em; vertical-align: .45em; margin-left: 1px; }

.phone {
  width: 290px; max-width: 86%; aspect-ratio: 9 / 16.5; border-radius: 40px 40px 0 0; padding: 12px 12px 0;
  background: #2a2824; border: 1px solid #4a463f; border-bottom: 0;
  box-shadow: 0 -20px 60px -20px rgba(255, 122, 51, .25);
}
.phone-screen { height: 100%; border-radius: 30px 30px 0 0; background: #f3f0e8; color: #1b1a17; padding: 18px 16px 0; overflow: hidden; position: relative; font-family: "Fira Sans", var(--sans); }
.ps-status { display: flex; justify-content: space-between; font: 700 11px/1 var(--mono); color: #57524a; }
.ps-date { margin-top: 18px; font-size: 12px; color: #57524a; }
.ps-owed { margin-top: 10px; background: #1b1a17; color: #fffdf8; border-radius: 18px; padding: 14px 16px; }
.ps-owed small { font-size: 11px; color: #a8a196; display: block; }
.ps-owed strong { font-size: 30px; letter-spacing: -0.02em; display: block; margin-top: 2px; }
.ps-owed span { font-size: 10.5px; color: #a8a196; }
.ps-note { margin-top: 10px; background: #fffdf8; border: 1px solid #ddd7cb; border-radius: 16px; padding: 12px 14px; }
.ps-pill { display: inline-block; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: #ffe2d1; color: #8a2e00; }
.ps-note b { display: block; margin-top: 8px; font-size: 13px; }
.ps-note .grid { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-top: 6px; font-size: 11.5px; color: #57524a; }
.ps-note .grid .m { font-family: var(--mono); font-weight: 700; color: #1b1a17; }
.ps-note .grid .left { color: #b33f00; }
.ps-fab { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 58px; height: 58px; border-radius: 50%; background: #e35205; display: grid; place-items: center; }
.ps-fab::before, .ps-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ff7a33; animation: ping 2.4s var(--ease) infinite; }
.ps-fab::after { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.ps-fab svg { width: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Dikografia card — white page on a cool desk, ink navy, highlighter yellow */
.pd { background: #eceff3; color: #1d2740; --spot: rgba(255, 216, 74, .35); font-family: "Commissioner", var(--sans); }
.pd .p-title { font-family: "Literata", Georgia, serif; font-weight: 500; }
.pd .p-title em { font-style: normal; background: linear-gradient(transparent 58%, #ffe98a 58%, #ffe98a 92%, transparent 92%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pd .p-desc { color: #3d4866; font-family: var(--sans); }
.pd .p-link { color: #1d2740; font-family: var(--sans); }
.pd-logo img { height: 34px; width: auto; }

.window {
  width: 100%; max-width: 520px; background: #fff; border: 1px solid #dde2ea; border-bottom: 0;
  border-radius: 14px 14px 0 0; overflow: hidden;
  box-shadow: 0 1px 2px rgba(29, 39, 64, .06), 0 -12px 40px -12px rgba(29, 39, 64, .2);
}
.w-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #dde2ea; background: #f3f5f8; }
.w-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c6cedb; }
.w-bar span { margin-left: 10px; flex: 1; height: 22px; border-radius: 6px; background: #fff; border: 1px solid #dde2ea; font: 500 11px/20px var(--mono); color: #5a6480; padding-left: 10px; }
.w-body { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 300px; }
.w-memo { padding: 18px 18px 22px; }
.w-memo .ttl { font-family: "Literata", serif; font-weight: 600; font-size: 17px; }
.w-memo .tabs { display: flex; gap: 12px; margin-top: 10px; border-bottom: 1px solid #dde2ea; font-size: 11px; font-weight: 600; color: #5a6480; }
.w-memo .tabs span { padding-bottom: 7px; }
.w-memo .tabs .on { color: #1d2740; border-bottom: 2px solid #1d2740; }
.w-memo p { margin-top: 12px; font-family: "Literata", serif; font-size: 13px; line-height: 1.75; }
.w-memo .c { background: linear-gradient(transparent 14%, #ffd84a 14%, #ffd84a 90%, transparent 90%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.w-memo sup { font: 700 8.5px/1 var(--sans); color: #1d2740; }
.w-memo .ins { color: #16663e; text-decoration: underline 2px #1b7a4b; text-underline-offset: 3px; }
.w-memo .acc { margin-top: 12px; display: flex; gap: 6px; }
.w-memo .acc b { font-size: 10.5px; padding: 6px 9px; border-radius: 5px; border: 1px solid #c6cedb; }
.w-memo .acc b:first-child { background: #1b7a4b; border-color: #1b7a4b; color: #fff; }
.w-src { background: #f3f5f8; border-left: 1px solid #dde2ea; padding: 16px 14px; }
.w-src .h { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; color: #5a6480; }
.w-sheet { margin-top: 10px; background: #fff; border: 1px solid #dde2ea; border-radius: 4px; padding: 12px; font-family: "Literata", serif; font-size: 10.5px; line-height: 1.7; color: #3a4560; }
.w-sheet mark { background: #ffe98a; color: #1d2740; }
.w-sheet .ln { height: 6px; border-radius: 3px; background: #e9edf3; margin-top: 7px; }
@media (max-width: 560px) { .w-body { grid-template-columns: 1fr; } .w-src { display: none; } }

/* ---------- How it works: one engine, two products ---------- */
.engine { background: var(--ink); color: var(--bg); border-radius: 40px; padding: 72px 56px; position: relative; overflow: hidden; }
@media (max-width: 760px) { .engine { padding: 48px 22px; border-radius: 28px; } }
.engine .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.engine h2 { margin-top: 20px; font-size: clamp(36px, 4.8vw, 64px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; max-width: 14em; }
.engine h2 .serif { color: var(--accent-inv); }
.engine-glow { position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent-inv) 30%, transparent), transparent 65%); pointer-events: none; opacity: .5; }
.switch { margin-top: 40px; display: inline-flex; padding: 5px; border-radius: 30px; background: color-mix(in srgb, var(--bg) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 16%, transparent); position: relative; }
.switch button {
  position: relative; z-index: 1; height: 44px; padding-inline: 22px; border: 0; background: none; cursor: pointer;
  font: 600 15px/1 var(--sans); color: color-mix(in srgb, var(--bg) 70%, transparent); border-radius: 22px; transition: color .3s;
}
.switch button.on { color: var(--ink); }
.switch .pill-bg { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 22px; background: var(--bg); transition: transform .5s var(--ease), width .5s var(--ease); }
.flow { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .flow { grid-template-columns: minmax(0, 1fr); } }
.stepc {
  border-radius: 22px; padding: 24px 22px 26px; min-height: 230px; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg) 6%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 12%, transparent);
  transition: background-color .5s, border-color .5s;
}
.stepc .n { font: 500 12px/1 var(--mono); color: color-mix(in srgb, var(--bg) 55%, transparent); display: flex; justify-content: space-between; }
.stepc .ic { margin-top: 28px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--k, #17171A); transition: background-color .5s; }
.stepc .ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stepc h3 { margin-top: auto; padding-top: 28px; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.stepc p { margin-top: 8px; font-size: 14.5px; color: color-mix(in srgb, var(--bg) 66%, transparent); line-height: 1.5; }
.stepc .swap { transition: opacity .35s, transform .35s var(--ease); }
.flow.fading .swap { opacity: 0; transform: translateY(6px); }
.stepc.you { background: var(--bg); color: var(--ink); }
.stepc.you .n { color: var(--muted); }
.stepc.you p { color: var(--ink-2); }
.engine[data-p="m"] { --k: #e35205; }
.engine[data-p="d"] { --k: #1d2740; }
.engine[data-p="d"] .stepc:not(.you) .ic { background: #ffd84a; }
.engine[data-p="d"] .stepc:not(.you) .ic svg { stroke: #1d2740; }

/* ---------- Principles ---------- */
.principles { border-top: 1px solid var(--ink); }
.pr { display: grid; grid-template-columns: 120px minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding-block: 40px; border-bottom: 1px solid var(--line); align-items: start; position: relative; }
.pr::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--accent); transition: width .9s var(--ease); }
.pr:hover::before { width: 100%; }
.pr .num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 56px; line-height: .9; color: var(--accent-text); }
.pr h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
.pr p { font-size: 17px; color: var(--ink-2); }
.pr .ex { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.pr .ex span { font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 14px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line-soft); }
.pr .ex span b { font-weight: 700; color: var(--ink); }
@media (max-width: 860px) { .pr { grid-template-columns: 64px minmax(0, 1fr); gap: 14px 20px; } .pr .num { font-size: 40px; } .pr > div:last-child { grid-column: 2; } }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: 40px 140px; }
.manifesto blockquote { margin: 0; font-size: clamp(34px, 5vw, 76px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 600; max-width: 18em; }
.manifesto .w { color: color-mix(in srgb, var(--ink) 16%, transparent); transition: color .5s; }
.manifesto .w.lit { color: var(--ink); }
.manifesto .w.lit.acc { color: var(--accent-text); }
.manifesto .sig { margin-top: 40px; display: flex; align-items: center; gap: 14px; color: var(--muted); font: 500 15px/1.4 var(--sans); }
.manifesto .sig svg { width: 40px; height: 40px; }

/* ---------- Contact ---------- */
.contact { position: relative; border-radius: 40px; overflow: hidden; background: #C6F432; color: #17171A; padding: 88px 56px; isolation: isolate; }
@media (max-width: 760px) { .contact { padding: 56px 22px; border-radius: 28px; } }
.contact svg.bigmark { position: absolute; right: -120px; bottom: -160px; width: 620px; height: 620px; z-index: -1; opacity: .14; }
.contact svg.bigmark { --mark-l: #17171A; --mark-r: #17171A; }
@media (max-width: 760px) { .contact svg.bigmark { width: 360px; height: 360px; right: -110px; bottom: -110px; } }
.contact h2 { font-size: clamp(44px, 7vw, 112px); line-height: .92; letter-spacing: -0.05em; font-weight: 700; max-width: 10em; }
.contact h2 .serif { font-weight: 300; }
.contact p { margin-top: 26px; font-size: 19px; max-width: 30em; opacity: .9; }
.contact .row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn-primary { background: #17171A; color: #C6F432; }
.contact .btn-primary:hover { background: #F6F4F0; color: #17171A; }
.contact .btn-ghost { border-color: rgba(23, 23, 26, .35); color: #17171A; }
.contact .btn-ghost:hover { border-color: #17171A; }

/* ---------- Footer ---------- */
.footer { padding-block: 72px 40px; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-grid > :first-child { grid-column: 1 / -1; } }
.f-grid h4 { margin: 0 0 14px; font: 600 13px/1 var(--sans); color: var(--muted); }
.f-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-grid a { text-decoration: none; color: var(--ink-2); }
.f-grid a:hover { color: var(--accent-text); }
.f-grid .about { margin-top: 16px; color: var(--muted); max-width: 24em; font-size: 15px; }
.f-big { margin-top: 80px; font-family: "Figtree", var(--sans); font-size: clamp(90px, 24vw, 360px); line-height: .82; font-weight: 800; letter-spacing: -0.045em; color: transparent; -webkit-text-stroke: 1px var(--line); user-select: none; white-space: nowrap; overflow: hidden; }
.f-bottom { margin-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
.no-js .rv { opacity: 1; transform: none; }

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

/* ---------- Offices page ---------- */
.nav a.current { color: var(--ink); }
.nav a.current::after { transform: scaleX(1); }
.office-hero { padding-block: 64px 56px; }
.office-hero h1 { margin-top: 24px; font-weight: 700; font-size: clamp(44px, 6.6vw, 96px); line-height: .96; letter-spacing: -0.045em; max-width: 11em; }
.office-hero h1 .serif { color: var(--accent-text); }
.office-hero .hero-lede { margin-top: 26px; }
.office-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
@media (max-width: 920px) { .office-grid { grid-template-columns: minmax(0, 1fr); } }
.info { border: 1px solid var(--line); border-radius: 32px; background: var(--surface); padding: 12px 32px 32px; display: flex; flex-direction: column; }
@media (max-width: 560px) { .info { padding: 6px 20px 24px; border-radius: 24px; } }
.info-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.info-row .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; transition: background-color .25s; }
.info-row .ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-row .k { font-size: 13px; color: var(--muted); }
.info-row .v { margin-top: 2px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.info-row .go { width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--ease), color .25s; }
a.info-row:hover .ico { background: var(--accent); }
a.info-row:hover .ico svg { stroke: var(--on-accent); }
a.info-row:hover .go { color: var(--ink); transform: translate(3px, -3px); }
.directions { margin-top: auto; padding-top: 28px; }
.directions h2 { font-size: 15px; font-weight: 600; color: var(--muted); }
.dir-btns { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.dir-btns .btn { height: 48px; padding-inline: 20px; font-size: 15px; }
.map-frame { position: relative; border-radius: 32px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); min-height: 560px; }
@media (max-width: 920px) { .map-frame { min-height: 420px; } }
@media (max-width: 560px) { .map-frame { border-radius: 24px; min-height: 360px; } }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.02); transition: filter .4s; }
:root[data-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.5) contrast(.95); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-frame iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.5) contrast(.95); } }
.map-pin { position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 360px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; background: #17171A; color: #F6F4F0; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); }
.map-pin svg { width: 40px; height: 40px; flex: none; }
.map-pin b { display: block; font-size: 15px; }
.map-pin span { font-size: 13.5px; color: #b9b7b2; }
.social-band { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: 32px; background: var(--ink); color: var(--bg); }
@media (max-width: 560px) { .social-band { padding: 22px 20px; border-radius: 24px; } }
.social-band p { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; max-width: 26em; }
.social-band .btn { background: var(--accent-inv); color: #17171A; }
:root[data-theme="dark"] .social-band .btn { color: #F6F4F0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .social-band .btn { color: #F6F4F0; } }
.social-band .btn:hover { filter: brightness(1.08); }

/* ---------- Contact form page ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; padding-block: 64px 24px; }
@media (max-width: 920px) { .form-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 48px; } }
.form-intro h1 { margin-top: 24px; font-weight: 700; font-size: clamp(42px, 5.6vw, 84px); line-height: .96; letter-spacing: -0.045em; }
.form-intro h1 .serif { color: var(--accent-text); }
.form-intro .hero-lede { margin-top: 24px; }
.form-intro .mail { margin-top: 32px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 4px; }
.form-intro .mail svg { width: 18px; height: 18px; }
.form-card { border: 1px solid var(--line); background: var(--surface); border-radius: 32px; padding: 36px; }
@media (max-width: 560px) { .form-card { padding: 22px 18px; border-radius: 24px; } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; width: 100%; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a6a70' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #c8381f; }
.field .err { font-size: 13px; color: #c8381f; display: none; }
.field input:user-invalid ~ .err, .field textarea:user-invalid ~ .err, .field select:user-invalid ~ .err { display: block; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label { font-size: 14px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px; cursor: pointer; transition: all .2s; }
.topics label:hover { border-color: var(--ink); }
.topics input:checked + label { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.topics input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.consent a { color: var(--accent-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot .note { font-size: 13px; color: var(--muted); }
.form-foot button { border: 0; cursor: pointer; font-family: var(--sans); }
.form-foot button[disabled] { opacity: .6; cursor: progress; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-size: 15px; display: none; }
.form-status.err { display: block; background: #fce9e7; color: #b42318; }
.sent { display: none; text-align: center; padding: 40px 10px; }
.sent svg.mk { width: 72px; height: 72px; margin: 0 auto; }
.sent h2 { margin-top: 24px; font-size: 34px; letter-spacing: -0.03em; }
.sent p { margin-top: 10px; color: var(--ink-2); }
.form-card.done form { display: none; }
.form-card.done .sent { display: block; }
form.tried .field :is(input, textarea, select):invalid { border-color: #c8381f; }
form.tried .field :is(input, textarea, select):invalid ~ .err { display: block; }
form.tried .consent input:invalid { outline: 2px solid #c8381f; outline-offset: 2px; }

/* ---------- Legal pages ---------- */
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-block: 64px 24px; align-items: start; }
@media (max-width: 920px) { .legal-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 44px; } }
.legal-toc { position: sticky; top: 96px; font-size: 14px; }
.legal-toc h2 { font-size: 13px; font-weight: 600; color: var(--muted); }
.legal-toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.legal-toc a:hover, .legal-toc a.on { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 920px) { .legal-toc { position: static; } .legal-toc ol { grid-template-columns: 1fr 1fr; border-left: 0; } .legal-toc a { padding-left: 0; border-left: 0; } }
.legal h1 { margin-top: 20px; font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -0.04em; }
.legal .updated { margin-top: 16px; font-size: 14px; color: var(--muted); }
.legal .intro { margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 40em; }
.legal section { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 44em; scroll-margin-top: 96px; }
.legal h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; display: flex; gap: 14px; align-items: baseline; }
.legal h2 .n { font: 500 14px/1 var(--mono); color: var(--accent-text); flex: none; }
.legal h3 { margin-top: 22px; font-size: 17px; font-weight: 600; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--accent-text); text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .card { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.legal .card p { margin-top: 4px; }
.legal .card p:first-child { margin-top: 0; }
.ph { background: color-mix(in srgb, #ffd84a 55%, transparent); color: var(--ink); border-radius: 4px; padding: 0 4px; font-weight: 500; }
