/* KAMEN website. Tokens from the brand board (logo/brand-board.html): blue, petrol, warm grey, paper, ice; Manrope. */
@font-face {
  font-family: "Manrope"; src: url("/static/fonts/manrope-vf.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}
:root {
  --blue: #16324F; --petrol: #175C5F; --grey: #6E6A64; --paper: #F6F5F1; --ice: #E6EDF1; --white: #FFFFFF;
  --ink: #1B2430; --muted: #5C5953; --line: #E2E3DE; --line-dark: rgba(255,255,255,.18);
  --ghost-box: rgba(22,50,79,.1); --dorca: #FFFFFF; --heading: #16324F; --accent: #175C5F; --band: #16324F; --btn: #16324F; --btn-fg: #FFFFFF;
  --ghost: rgba(22,50,79,.28); --field-line: var(--field-line); --header-bg: rgba(246,245,241,.92);
  --radius: 16px; --wrap: 1120px; --gutter: 24px;
  --shadow: 0 1px 2px rgba(22,50,79,.05), 0 8px 28px rgba(22,50,79,.06);
}
/* dark mode: only when the visitor chooses it with the header button (main.js); very dark petrol (Ármin, 2026-10-22) */
html[data-theme="dark"] {
  --paper: #0B2F31; --white: #11403F; --ice: #0E3839; --ink: #DDE8E7; --muted: #A9C2C1; --line: rgba(255,255,255,.13);
  --ghost-box: rgba(255,255,255,.1); --dorca: #9FD0CF; --heading: #F2F6F6; --accent: #9FD0CF; --band: #082426; --btn: #9FD0CF; --btn-fg: #0B2F31; --grey: #A9C2C1;
  --ghost: rgba(255,255,255,.34); --field-line: rgba(255,255,255,.22); --header-bg: rgba(11,47,49,.92);
  --shadow: 0 1px 2px rgba(0,0,0,.22), 0 8px 28px rgba(0,0,0,.22); color-scheme: dark;
}
.on-dark { display: none !important; }
html[data-theme="dark"] .on-dark { display: block !important; }
html[data-theme="dark"] .on-light { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 Manrope, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--heading); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 8px; top: 8px; transform: translateY(-200%); z-index: 50; background: var(--band); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { transform: none; }

/* draft bar + placeholders (only while DRAFT = True in build.py) */
.draft { background: var(--band); color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 7px 16px; letter-spacing: .01em; }
mark.ph { background: #FFF1B8; color: var(--ink); border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* type */
h1, h2, h3 { color: var(--heading); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lead { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.55; color: var(--ink); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--btn); color: var(--btn-fg); text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 15px 26px; border-radius: 999px; transition: background .2s, transform .2s; }
.btn:hover { background: var(--petrol); color: #fff; }
html[data-theme="dark"] .btn:hover { background: #C3E4E3; color: var(--btn-fg); }
.btn::after { content: "→"; transition: transform .2s; }
.btn:hover::after { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--heading); box-shadow: inset 0 0 0 1.5px var(--ghost); }
.btn-ghost:hover { background: var(--white); color: var(--heading); }
.btn-light { background: #fff; color: #16324F; }
.btn-light:hover { background: #E6EDF1; color: #16324F; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; height: 76px; gap: 24px; }
.bar .brand { margin-right: auto; }
.brand { display: block; flex: none; }
.site-header .logo { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--heading); text-decoration: none; font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .09em; }
.nav li:last-child a { color: var(--accent); }
.nav ul a { position: relative; padding: 6px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.lang { flex: none; margin-left: 6px; color: var(--heading); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ghost); }
.lang:hover { background: var(--white); }
.menu-btn { display: none; }
.theme-btn { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: -6px; border: 0; border-radius: 50%;
  background: transparent; color: var(--heading); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--ghost); }
.theme-btn:hover { background: var(--white); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-btn .i-moon { fill: currentColor; stroke: none; }
.theme-btn .i-sun, html[data-theme="dark"] .theme-btn .i-moon { display: none; }
html[data-theme="dark"] .theme-btn .i-sun { display: block; }

/* sections */
section { padding: 104px 0; }
.tint { background: var(--white); }
.ice { background: var(--ice); }
.dark { background: var(--band); color: #E9EEF2; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #9FD0CF; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 19px; }
.dark .section-head p { color: #C9D4DE; }

/* hero */
.hero { padding: 88px 0 104px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 span { color: var(--accent); }
.hero .lead { margin-top: 22px; }
.proof { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.proof b { display: block; font-size: 28px; color: var(--heading); letter-spacing: -.02em; line-height: 1.1; }

/* cards & grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.tint .card { background: var(--paper); box-shadow: none; }
.card h3 { margin-bottom: 12px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: var(--ice); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; }
a.card:hover { transform: translateY(-3px); border-color: rgba(23,92,95,.35); color: inherit; }
.more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin: 0 0 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* audience split */
.who .card h3 { font-size: 23px; }
.who .card .q { font-size: 18px; color: var(--heading); font-weight: 600; border-left: 3px solid var(--accent); padding-left: 16px; margin: 0 0 20px; }

/* philosophy band */
.philo-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.symbol-lg { width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
blockquote { margin: 0 0 24px; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.5; color: var(--heading); font-weight: 500; letter-spacing: -.01em; }
blockquote footer { margin-top: 14px; font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px 20px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 14px; font-weight: 700; color: #9FD0CF; letter-spacing: .1em; margin-bottom: 18px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: #C9D4DE; margin: 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-top: 2px solid var(--heading); padding-top: 18px; }
.stat b { display: block; white-space: nowrap; font-size: clamp(34px, 4vw, 46px); color: var(--heading); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 15px; display: block; }

/* charts */
.chart { margin: 0; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 18px; box-shadow: var(--shadow); }
.chart-title { font-weight: 700; color: var(--heading); font-size: 16px; margin-bottom: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* dumbbell: before (ring) → after (dot) */
.db { list-style: none; margin: 8px 0 0; padding: 0 44px 0 34px; }
.db li { padding: 10px 0 14px; }
.db-lbl { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 10px -34px; }
.db-lbl .muted { font-weight: 500; }
.db-track { position: relative; display: block; height: 16px; }
.db-line { position: absolute; top: 6px; height: 4px; border-radius: 2px; background: var(--accent); opacity: .35; transform-origin: left center; }
.db-a, .db-b { position: absolute; top: 0; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; }
.db-a { background: var(--white); box-shadow: inset 0 0 0 2.5px var(--grey); }
.db-b { background: var(--accent); }
.db i { position: absolute; top: -2px; font-style: normal; font-size: 14px; font-weight: 700; white-space: nowrap; }
.db-a i { right: 24px; color: var(--muted); font-weight: 600; }
.db-b i { left: 24px; color: var(--heading); }
.db-axis { position: relative; height: 18px; margin: 6px 44px 0 34px; border-top: 1px solid var(--line); }
.db-axis span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
/* horizontal bars */
.hb { list-style: none; margin: 8px 0 0; padding: 0; }
.hb li { display: grid; grid-template-columns: minmax(0, 11em) 1fr 3.4em; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; }
.hb-lbl { font-weight: 600; color: var(--ink); }
/* the stock pile: ten boxes per row, each 10% of the starting stock; the ghost boxes show what is gone */
.hb-track { display: block; height: 20px; --box: repeating-linear-gradient(90deg, currentColor 0 calc(10% - 2px), transparent calc(10% - 2px) 10%);
  color: var(--ghost-box); background: var(--box); }
.hb .pile { display: block; height: 100%; color: var(--accent); background: var(--box); clip-path: inset(-1px var(--cut) -1px 0%);
  transition: clip-path 1.2s cubic-bezier(.45,.05,.2,1); }
.hb b { display: grid; justify-items: end; color: var(--heading); font-size: 15px; }
.chart-stock:not(.after) .pile { clip-path: inset(-1px 0% -1px 0%); }
/* the two values sit on top of each other and crossfade while the boxes move */
.hb b span { grid-area: 1 / 1; transition: opacity .6s ease, transform .6s ease, visibility .6s; }
.chart-stock .v-before, .chart-stock:not(.after) .v-after { opacity: 0; visibility: hidden; transform: translateY(4px); }
.chart-stock:not(.after) .v-before { opacity: 1; visibility: visible; transform: none; }
.seg { position: relative; display: inline-flex; margin: 2px 0 10px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ghost); }
/* the pill slides to the chosen option (position and width set by main.js) */
.seg::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: var(--x, 3px); width: var(--w, 0); border-radius: 999px; background: var(--btn);
  transition: left .5s cubic-bezier(.45,.05,.2,1), width .5s cubic-bezier(.45,.05,.2,1); }
.seg button { position: relative; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--heading); font: 700 13px Manrope, sans-serif; cursor: pointer; transition: color .35s; }
.seg button[aria-pressed="true"] { color: var(--btn-fg); }
html:not(.js) .seg { display: none; }
.chart-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.js [data-reveal] .bar, .js [data-reveal] .db-line { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal] .db-line { transition-delay: .15s; }
.js [data-reveal] .db-b { opacity: 0; transition: opacity .4s 1s; }
.js [data-reveal].in .bar, .js [data-reveal].in .db-line { transform: scaleX(1); }
.js [data-reveal].in .db-b { opacity: 1; }

/* services page */
.service { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.service .facts li { font-size: 14px; font-weight: 600; color: var(--heading); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.service h3.box-h { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.service .box + .box { margin-top: 26px; }

/* case studies */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.case + .case { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.case dl { margin: 0; }
.case dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: 20px; }
.case dt:first-child { margin-top: 0; }
.case dd { margin: 6px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.kpi b { display: block; font-size: 30px; color: var(--heading); letter-spacing: -.02em; line-height: 1.1; }
.kpi span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* about */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, var(--ice), #D3DEE4); display: grid; place-items: center; color: var(--heading); text-align: center; padding: 24px; position: sticky; top: 110px; }
.portrait svg { width: 60%; height: auto; opacity: .9; margin: 0 auto 18px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--accent); }
.timeline b { display: block; color: var(--heading); }
.timeline span { color: var(--muted); font-size: 15px; }

.portrait-photo { position: sticky; top: 110px; margin: 0; }
.portrait-photo .photo { width: 100%; height: auto; border-radius: var(--radius); }
.portrait-photo figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.portrait-photo figcaption b { display: block; color: var(--heading); font-size: 17px; }
/* the wider team: small on purpose, István leads */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.member { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.member .photo { width: 96px; height: 96px; border-radius: 50%; }
.member h3 { font-size: 18px; margin: 2px 0 2px; }
.member .role { font-size: 14px; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
.member ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--ink); }
.member li { margin-bottom: 4px; }
.member .more { font-size: 14px; margin-top: 10px; }
.team-note { font-size: 15px; color: var(--muted); max-width: 760px; margin: 0 0 24px; }

/* book page */
.book-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.book { margin: 0; text-align: center; }
/* the book opens on hover or tap (main.js): the cover swings left around the spine, the page shows a line from the book */
.book3d { position: relative; z-index: 1; width: 100%; max-width: 330px; aspect-ratio: 300 / 440; margin: 0 auto; perspective: 1500px; cursor: pointer;
  border-radius: 6px; transition: z-index 0s .75s; }
.book3d.open { z-index: 15; transition: z-index 0s; }
.book3d:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.book-stage { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 0 50%; transform: rotateY(-14deg); transition: transform .75s cubic-bezier(.3,.7,.2,1); }
.book3d.open .book-stage { transform: translateX(var(--dx, 0)) scale(var(--s, 1)); }
.book-page { position: absolute; inset: 0; display: grid; align-items: center; padding: 8% 9%; container-type: inline-size; background: #FBFAF6; color: #16324F; border-radius: 2px 6px 6px 2px; text-align: left;
  box-shadow: inset 12px 0 16px -12px rgba(22,50,79,.35), 2px 0 0 #E7E5DD, 4px 0 0 #F3F1EA, 24px 30px 50px rgba(22,50,79,.28), 4px 6px 12px rgba(22,50,79,.18); }
.book-text { display: none; opacity: 0; transition: opacity .35s .3s; }
.book-text.show { display: block; }
.book3d.open .book-text { opacity: 1; }
.book-text span { display: block; margin-bottom: .7em; font-size: 12px; font-size: 5cqw; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #175C5F; }
.book-text p { margin: 0; font-size: 13px; font-size: 7.6cqw; line-height: 1.4; font-weight: 600; color: #16324F; }
.book-lid { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 0 50%; transition: transform .75s cubic-bezier(.3,.7,.2,1); }
.book3d.open .book-lid { transform: rotateY(-176deg); }
.cover { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 6px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.book-inside { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2%; container-type: inline-size; background: #16324F; color: #fff; border-radius: 6px 2px 2px 6px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: rotateY(180deg); box-shadow: inset -12px 0 16px -12px rgba(0,0,0,.45); }
.book-inside svg { width: 46%; height: auto; }
.book-inside b { font-size: 16px; font-size: 7.5cqw; font-weight: 800; }
.book-inside span { font-size: 10px; font-size: 3.8cqw; letter-spacing: .24em; color: #9FD0CF; }
.book figcaption { margin-top: 22px; font-size: 13px; color: var(--muted); }
.c-title { font: 800 52px Manrope, sans-serif; fill: #fff; letter-spacing: .06em; }
.c-sub { font: 600 15px Manrope, sans-serif; fill: #9FD0CF; letter-spacing: .04em; }
.c-author { font: 700 13px Manrope, sans-serif; fill: #C9D4DE; letter-spacing: .3em; }
.c-tag { font: 500 11px Manrope, sans-serif; fill: #C9D4DE; letter-spacing: .06em; }
.symbol-sm { width: 140px; height: auto; margin: 0 auto 18px; }
.signup { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-top: 30px; }
.signup .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field span { display: block; font-size: 14px; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.field i { font-style: normal; font-weight: 500; color: var(--muted); }
.field input { width: 100%; font: 500 16px Manrope, sans-serif; color: var(--ink); background: var(--paper); border: 1.5px solid var(--field-line); border-radius: 10px; padding: 12px 14px; }
.field input:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(23,92,95,.15); }
.editions { border: 0; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.editions legend { float: left; font-size: 14px; font-weight: 700; color: var(--heading); margin-right: 8px; padding: 0; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; font-size: 14px; font-weight: 600; color: var(--heading); border-radius: 999px; padding: 6px 14px; box-shadow: inset 0 0 0 1.5px var(--field-line); cursor: pointer; }
.chip input:checked + span { background: var(--btn); color: var(--btn-fg); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 18px 0 20px; font-size: 14px; line-height: 1.5; color: var(--ink); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.signup .btn { border: 0; cursor: pointer; font-family: inherit; }
.signup .btn:disabled { opacity: .6; cursor: wait; }
.form-msg { margin: 12px 0 0; font-size: 15px; font-weight: 600; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.bad { color: #8A2E1F; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hook { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; color: var(--heading); font-weight: 600; letter-spacing: -.01em; max-width: 900px; margin: 0 auto; text-align: center; }
.hook small { display: block; margin-top: 14px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.story-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.story-nums div { background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 14px; padding: 22px 18px; }
.story-nums b { display: block; font-size: clamp(34px, 4vw, 48px); color: #fff; letter-spacing: -.03em; line-height: 1; }
.story-nums div:last-child b { color: #9FD0CF; }
.story-nums span { display: block; margin-top: 10px; font-size: 14px; color: #C9D4DE; }
.insights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; counter-reset: i; }
.insights li { counter-increment: i; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--heading); }
.insights li::before { content: counter(i, decimal-leading-zero); font-size: 14px; font-weight: 700; color: var(--accent); padding-top: 3px; }
.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.part { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.part .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.part h3 { font-size: 18px; }
.part ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.part li { padding: 7px 0; border-top: 1px solid var(--line); font-style: italic; }
.author { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: center; max-width: 860px; }
.author .photo { width: 160px; height: 160px; border-radius: 50%; }
.book-band { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.book-band .book3d { width: 150px; }
.book-band .book figcaption { display: none; }

/* book pictures: slow endless row (web-playbook §5: no scroll hijacking; still for reduced motion) */
.strip { display: flex; overflow: hidden; margin-top: 44px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip-track { display: flex; flex: none; gap: 16px; padding: 0 16px 0 0; margin: 0; list-style: none; animation: strip 70s linear infinite; }
.strip-track li { flex: none; }
.strip-track img { height: 180px; width: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 6px 18px rgba(22,50,79,.08); }
.top-strip { padding: 22px 0 0; }
.top-strip .strip { margin-top: 0; }
.top-strip .strip-note { padding: 0 var(--gutter); }
.top-strip + .hero { padding-top: 56px; }
.strip-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
@keyframes strip { to { transform: translateX(-100%); } }
@media (hover: hover) { .strip:hover .strip-track { animation-play-state: paused; } }

.booking-note { margin: 16px 0 0; }

/* KAMEN page */
.lockup { width: 100%; max-width: 640px; height: auto; margin: 0 auto; }
.meaning { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.meaning .card b.big { display: block; font-size: 40px; letter-spacing: .04em; color: var(--heading); line-height: 1; margin-bottom: 6px; }
.meaning .card b.big span { color: var(--accent); }
.meaning .card .lang-tag { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.anatomy { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; list-style: none; margin: 0; padding: 0; }
.anatomy li { padding: 16px 0; border-top: 1px solid var(--line); }
.anatomy b { display: block; color: var(--heading); margin-bottom: 4px; }
.saying { font-size: 15px; color: var(--muted); font-style: italic; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.contact-list li span:first-child { min-width: 110px; color: var(--muted); font-size: 15px; }
ol.flow { margin: 0; padding-left: 22px; }
ol.flow li { margin-bottom: 10px; padding-left: 4px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 820px; margin: 0 auto 16px; }
.cta-band p { max-width: 640px; margin: 0 auto; color: #C9D4DE; font-size: 19px; }
.cta-band .actions { justify-content: center; }

/* legal pages */
.legal { max-width: 780px; }
.legal h2 { font-size: 24px; margin-top: 44px; }
.legal table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15px; margin: 0 0 1em; }
.legal th, .legal td { overflow-wrap: anywhere; text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { width: 38%; color: var(--muted); font-weight: 600; }
.page-head { padding: 80px 0 40px; }
.page-head .lead { color: var(--muted); }

/* footer */
.site-footer { position: relative; background: var(--band); color: #C9D4DE; text-align: center; padding: 64px 0 48px; font-size: 15px; }
/* the moving tortoise (main.js): walks on the footer's top edge; head pulled in on tap */
.tort-wrap { --t-fg: #fff; --t-body: #fff; --t-bg: var(--band); position: relative; width: 64px; height: 40px; cursor: pointer; }
.tort-wrap::after { content: ""; position: absolute; inset: -6px; }
.tort { display: block; width: 100%; height: 100%; overflow: visible; }
.t-f { fill: var(--t-fg); } .t-bd { fill: var(--t-body); } .t-s { stroke: var(--t-bg); } .t-l { stroke: var(--t-bg); } .t-b { fill: var(--t-bg); }
.foot-stage { position: absolute; left: 0; right: 0; bottom: 100%; height: 48px; overflow: hidden; pointer-events: none; }
.foot-walker { --t-fg: var(--heading); --t-body: var(--accent); --t-bg: var(--paper); position: absolute; left: 0; bottom: -1px; display: none; pointer-events: auto; will-change: transform; }
.foot-walker.walking { display: block; }
.above-tint .foot-walker { --t-bg: var(--white); }
.above-band .foot-walker { --t-fg: #fff; --t-body: #fff; --t-bg: var(--band); }
.site-footer.above-band { border-top: 1px solid var(--line-dark); }
.site-footer .brand { display: inline-block; }
.site-footer .logo { height: 40px; width: auto; margin: 0 auto; }
.site-footer a { color: #fff; }
.foot-tag { margin: 16px 0 22px; color: #9FB3C4; }
.foot-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.foot-copy { margin: 26px 0 0; font-size: 13px; color: #8EA3B5; }
/* the studio credit, on its own line with the Dorca logo, in the colours of the footer's KAMEN logo */
.foot-credit { margin: 26px 0 0; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; }
.foot-credit a { color: #C9D4DE; text-decoration: none; display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .3em .7em; }
.foot-credit a:hover { opacity: .75; }
.foot-credit .dorca-logo { display: inline-block; width: 6.9em; height: 1.6em; background: var(--dorca);
  -webkit-mask: url(/static/dorca.svg) center / contain no-repeat; mask: url(/static/dorca.svg) center / contain no-repeat; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-footer mark.ph { font-size: 14px; }

/* tablet */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .philo-grid, .service, .case, .about-grid, .contact-grid, .book-hero, .story { grid-template-columns: 1fr; gap: 40px; }
  .parts { grid-template-columns: 1fr 1fr; }
  .book-band { grid-template-columns: auto 1fr; }
  .book-band .actions { grid-column: 1 / -1; margin-top: 0; }
  .book3d { max-width: 260px; }
  .portrait, .portrait-photo { position: static; max-width: 420px; }
  .team { grid-template-columns: 1fr; }
  .symbol-lg { max-width: 300px; }
}
/* phone menu */
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 2px 10px 10px; font: 700 15px Manrope, sans-serif; color: var(--heading); cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .25s, opacity .25s; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
  [aria-expanded="true"] .menu-icon { background: transparent; }
  [aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  [aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; display: none; box-shadow: 0 18px 30px rgba(22,50,79,.08); }
  .js .nav.open { display: flex; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav ul a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .js .nav ul a::after { display: none; }
  .js .nav ul a[aria-current="page"] { color: var(--accent); }
  html:not(.js) .bar { height: auto; flex-wrap: wrap; padding: 12px var(--gutter); }
  html:not(.js) .nav ul { flex-wrap: wrap; gap: 14px; }
}
/* phone */
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .hero { padding: 48px 0 68px; }
  .bar { height: 64px; gap: 12px; }
  .lang { display: inline-flex; align-items: center; height: 38px; margin-left: 0; padding: 0 12px; }
  .theme-btn { margin-left: 0; }
  .site-header .logo { height: 28px; }
  .hero-grid > div:first-child, .section-head, .cta-band, .page-head { text-align: center; }
  .section-head { margin-left: auto; margin-right: auto; margin-bottom: 36px; }
  .lead { margin-left: auto; margin-right: auto; }
  .actions, .proof { justify-content: center; }
  .proof { gap: 20px 28px; }
  .grid-2, .grid-3, .kpis, .meaning, .anatomy { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .stat b { font-size: 29px; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .chart { padding: 18px 14px 14px; }
  .philo-grid > div:last-child { text-align: left; }
  .page-head { padding: 52px 0 28px; }
  .contact-list li { flex-direction: column; gap: 2px; }
  .signup { padding: 20px; }
  .signup .fields, .insights, .parts { grid-template-columns: 1fr; }
  .story-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-nums span { hyphens: auto; overflow-wrap: break-word; }
  .story-nums div { padding: 16px 12px; }
  .story-nums b { font-size: 30px; }
  .author { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 18px; }
  .author > div { min-width: 0; overflow-wrap: break-word; }
  .author .photo { margin: 0 auto; width: 128px; height: 128px; }
  .book-band { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .book-band .book3d { width: 130px; }
  .book-hero .book3d { max-width: 200px; }
  .strip-track img { height: 130px; }
  .strip-track { gap: 10px; padding-right: 10px; }
  .book-hero { gap: 28px; }
  .book-hero > div:last-child { text-align: center; }
  .signup { text-align: left; }
  .portrait, .portrait-photo { margin: 0 auto; }
  .member { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .member > div { overflow-wrap: break-word; hyphens: auto; }
  .member .photo { width: 72px; height: 72px; }
  .btn { padding: 14px 22px; }
}
@media (max-width: 380px) {
  .bar { gap: 8px; }
  .menu-btn .menu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header .logo { height: 24px; }
}
/* only room for one control next to the logo and the menu: the language button stays */
@media (max-width: 319px) {
  .theme-btn { display: none; }
}
@media (hover: hover) { .card { will-change: transform; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .strip-track[aria-hidden] { display: none; }
  .js [data-reveal] .bar, .js [data-reveal] .db-line { transform: none; } .js [data-reveal] .db-b { opacity: 1; }
  .foot-walker.walking { display: none; }
}
