/* subin.in v4 – the Piszczek direction (Subin's pick). Near-black ground with faint grain and a dark-green
   tint, grotesk display + JetBrains Mono for labels, terminal and nav. Mobile-first. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-latin.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin.woff2) format("woff2"); }

:root {
  --bg: #040505;
  --panel: #0b0c0c;      /* cards, terminal body */
  --panel-2: #121414;    /* bars, inputs, chips */
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e8ecef;       /* 17:1 */
  --soft: #c3cad1;       /* 12:1 – running text */
  --muted: #8f9ba8;      /* 7.1:1 */
  --dim: #77828d;        /* 5.1:1 – side text, captions */
  --green: #19f08f;      /* 13:1 */
  --green-ink: #03140c;
  --green-bg: rgba(25, 240, 143, .07);
  --green-line: rgba(25, 240, 143, .32);
  --red: #ff8a8a;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 20px;
  --r-sm: 6px; --r: 12px; --r-term: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scrollbar-color: #2a2f33 var(--bg); background: var(--bg); }
body { position: relative; z-index: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* ground: a faint dark-green tint toward the top right of the page, and a very light grain over the whole body. Behind everything, no interaction. */
body::before, body::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
body::before { bottom: auto; height: 1100px; background: radial-gradient(1100px 640px at 88% -8%, rgba(25, 240, 143, .065), transparent 62%); }
body::after { opacity: .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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: var(--green); color: var(--green-ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; background: var(--panel-2); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.g { color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--green); color: var(--green-ink); padding: 10px 14px; font-weight: 700; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.i { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
a .i, button .i { margin-left: .35em; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; } }

/* type */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; font-weight: 700; }
h2 { font-size: clamp(32px, 6vw, 48px); letter-spacing: -0.025em; }
.lbl { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: var(--s3); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: #040505; border-bottom: 1px solid var(--line); }
.head-wrap { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo act" "nav nav"; grid-template-rows: 60px auto; align-items: center; column-gap: var(--s3); }
.logo { grid-area: logo; font-family: var(--mono); font-size: 19px; font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; color: var(--text); }
.caret { color: var(--green); animation: blink 1.12s steps(1) infinite; }
.nav { grid-area: nav; display: flex; gap: var(--s1); font-family: var(--mono); font-size: 12.5px; color: var(--muted); overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); margin: 0 calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - 10px); }
.nav::-webkit-scrollbar { display: none; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; white-space: nowrap; letter-spacing: .02em; transition: color .15s ease; }
.nav a[aria-current="page"] { color: var(--green); }
.head-act { grid-area: act; display: flex; align-items: center; gap: var(--s2); }
.jump { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--r-sm); background: rgba(255, 255, 255, .02); transition: border-color .15s ease, color .15s ease, transform .14s var(--ease-out); }
.jump kbd { display: none; }
.jump-t { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* phones: icon only, name stays for screen readers */
.call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm); letter-spacing: .02em; transition: border-color .15s ease, background-color .15s ease, transform .14s var(--ease-out); }
.call[aria-current="page"] { border-color: var(--green-line); color: var(--green); }

/* ---------- buttons ---------- */
.btn { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; min-height: 54px; padding: 14px 28px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); border: 1px solid transparent; cursor: pointer; text-align: center; transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .14s var(--ease-out); }
.btn .i { margin-left: 0; width: 1.05em; height: 1.05em; }
.btn-p { background: #f4f6f7; color: #050606; }
.btn-s { background: rgba(255, 255, 255, .03); border-color: var(--line-2); color: var(--text); }
.btn-s span { color: var(--muted); font-weight: 500; margin-left: .4em; text-transform: none; }
.btn:active, .jump:active, .call:active, .bk-slot:active, .bk-date:active, .svc-card:active { transform: scale(0.97); }
.ctas { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s6); }

/* ---------- hero ---------- */
.hero { position: relative; padding: var(--s6) 0 var(--s7); }
.hero-grid { display: grid; gap: var(--s5); position: relative; }
.now { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--text); border: 1px solid var(--green-line); background: var(--green-bg); border-radius: 999px; transition: border-color .15s ease, transform .14s var(--ease-out); }
.now span { color: var(--green); }
.now i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
.hero h1 { font-size: clamp(44px, 12vw, 92px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin-top: var(--s1); }
.sur { background: linear-gradient(100deg, #e7ecf0 0%, #aab4be 55%, #8e99a5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.role { font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--green); line-height: 1.75; }
.role span { color: #12c779; } /* a step down from the first line, solid (no opacity) */
.statement { font-size: clamp(21px, 4.6vw, 26px); font-weight: 400; line-height: 1.42; color: var(--soft); letter-spacing: -0.01em; }
.statement b { color: #fff; font-weight: 600; }
.value { font-size: 17px; color: var(--muted); max-width: 560px; margin-top: var(--s4); line-height: 1.6; }

/* terminal: a real fragment with real data */
.term { background: rgba(14, 15, 15, .92); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-term); overflow: hidden; align-self: start; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.term-bar { display: flex; align-items: center; gap: var(--s3); padding: 11px 16px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.term-bar .t { flex: 1; text-align: center; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); letter-spacing: .12em; font-size: 11px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
.term-body { padding: 20px 18px var(--s3); font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--soft); }
.term-body .ln { color: var(--text); margin-top: var(--s3); }
.term-body .ln:first-child { margin-top: 0; }
.pr { color: var(--green); margin-right: 2px; }
.tc { display: inline-block; position: relative; }
.term-body .out { color: var(--muted); margin-top: 4px; }
.term-body .out b { color: var(--text); font-weight: 600; }
.who { display: flex; gap: var(--s3); align-items: center; }
.who img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.who p { margin: 0; }
.ls { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 18px; line-height: 1.2; }
.ls a { color: var(--text); display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .15s ease, text-decoration-color .15s ease; }
.cursor { display: inline-block; width: 8px; height: 16px; margin-left: 4px; background: var(--green); vertical-align: -3px; animation: blink 1.12s steps(1) infinite; }
.term-foot { border-top: 1px solid var(--line); margin: 0 18px; padding: var(--s1) 0 var(--s2); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--dim); }
.term-foot button { font: inherit; color: var(--muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 4px; }
.term-foot kbd { font-size: 10.5px; }
.term-live { display: flex; flex-direction: column; overflow: hidden; }
.term-live[hidden] { display: none; }
.term-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.term-log .ln, .term-log .out { margin-top: 4px; }
.term-log a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.term-in { display: flex; align-items: center; gap: 6px; margin-top: var(--s2); }
.term-in input { flex: 1; min-width: 0; min-height: 32px; font: inherit; color: var(--text); background: transparent; border: 0; caret-color: var(--green); }
.term-in input:focus-visible { outline: none; }
.term-live:focus-within { box-shadow: inset 0 0 0 1px var(--green-line); }
.side { display: none; }

/* ---------- stats band ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .012); }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; }
.stats-row > div { display: flex; flex-direction: column-reverse; padding: var(--s4) var(--s4) var(--s4) 0; }
.stats-row > div:nth-child(even) { padding-left: var(--s4); border-left: 1px solid var(--line); }
.stats-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stats-row dd { font-size: clamp(34px, 8vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stats-row dt { margin-top: var(--s2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stats-src { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--dim); padding: 0 0 var(--s1); }
.stats-src a { color: var(--green); display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sections ---------- */
section.sec { padding: 36px 0; }
.sec-head { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s5); }
.sec-head p:not(.lbl) { color: var(--muted); max-width: 440px; }
.sec-head p a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.svc-grid { list-style: none; display: grid; gap: var(--s3); }
.svc-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .18s ease, transform .14s var(--ease-out); }
.svc-dir { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--green); }
.svc-card h3 { font-size: 22px; letter-spacing: -0.015em; }
.svc-card p { color: var(--muted); font-size: 16px; }
.svc-go { display: none; margin-top: auto; padding-top: var(--s2); font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); display: inline-flex; align-items: center; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s2); }
.tags li { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

.reviews { display: grid; gap: var(--s3); }
.review { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.rv-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--green); }
.review blockquote p { font-size: 18px; line-height: 1.5; color: var(--text); }
.review blockquote p::before { content: "“"; }
.review blockquote p::after { content: "”"; }
.review figcaption { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.45; }
.review figcaption b { display: block; color: var(--text); font-weight: 600; }

.cases { display: grid; gap: var(--s4); }
.prose .cases { margin-top: var(--s4); }
.case { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.case h3, .prose .case h3 { font-size: 19px; margin: 0; color: var(--text); }
.case p, .prose .case p { color: var(--muted); font-size: 16px; margin: 0; }
.prose .case .tags, .case p.tags { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--green); }
.case-svc { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); min-height: 44px; display: inline-flex; align-items: center; }

.qa { max-width: 860px; border-top: 1px solid var(--line); }
.qa h3 { font-size: 19px; font-weight: 600; padding-top: var(--s4); display: flex; gap: 10px; }
.qa h3::before { content: ">"; font-family: var(--mono); font-weight: 400; color: var(--green); }
.qa p { color: var(--muted); padding: 2px 0 var(--s4) 22px; border-bottom: 1px solid var(--line); }

/* closing band */
.cta-band { border-top: 1px solid var(--line); background: #050606; padding: 40px 0; }
.cta-box { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); border: 1px solid var(--green-line); background: var(--green-bg); border-radius: 999px; padding: 5px 14px; margin-bottom: var(--s4); }
.cta-box h2 { font-size: clamp(36px, 7vw, 56px); letter-spacing: -0.03em; color: var(--text); }
.cta-box > p:not(.pill-lbl):not(.reply) { color: var(--muted); margin-top: var(--s3); max-width: 520px; }
.cta-box .ctas { justify-content: center; width: 100%; }
.cta-box .reply { margin-top: var(--s4); }
.cta-box .ctas { margin-top: var(--s5); }

.reply { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); display: inline-flex; align-items: center; gap: var(--s2); }
.reply i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }

/* ---------- inner pages ---------- */
.page-head { padding: var(--s6) 0 var(--s7); }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s5); list-style: none; }
.crumbs li + li::before { content: "/ "; color: var(--line-2); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; transition: color .15s ease; }
.page-head .lbl { margin-bottom: var(--s3); }
.page-head h1 { font-size: clamp(38px, 8vw, 64px); letter-spacing: -0.035em; line-height: 1.04; max-width: 920px; }
.lede a, .box p a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.lede { font-size: 19px; color: var(--muted); margin-top: var(--s4); max-width: 660px; line-height: 1.55; }
.answer { margin-top: var(--s5); background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--green); border-radius: var(--r-sm); padding: var(--s4) var(--s5); max-width: 820px; }
.answer p { font-size: 17px; line-height: 1.55; color: var(--soft); }
.answer b { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: var(--s1); }
.head-photo { display: grid; gap: var(--s6); align-items: center; }
.headshot img { width: 240px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line-2); }
.layout { display: grid; gap: var(--s7); padding-bottom: var(--s8); }
.contact-grid > *, .layout > *, .booker, .bk-step { min-width: 0; }
.aside { display: grid; gap: var(--s4); align-content: start; }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); background: var(--panel); }
.box h2 { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: var(--s3); line-height: 1.4; }
.box h2::before { content: "// "; }
.box p, .box li { color: var(--muted); font-size: 16px; }
.box ul { list-style: none; display: grid; gap: var(--s1); }
.box ul a { color: var(--text); display: inline-flex; align-items: center; min-height: 44px; transition: color .15s ease; }
.box .btn { width: 100%; margin-top: var(--s4); }
.box .btn + .btn { margin-top: var(--s2); }
.facts li { color: var(--text) !important; padding-left: 18px; position: relative; }
.facts li::before { content: ">"; position: absolute; left: 0; top: 0; font-family: var(--mono); color: var(--green); }
.src { display: block; margin-top: var(--s3); font-size: 13px; color: var(--dim); }
.src a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.prose { max-width: 700px; }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { font-size: clamp(24px, 4.4vw, 30px); margin-top: var(--s7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 600; margin-top: var(--s5); }
.prose p, .prose li { color: var(--soft); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: var(--s2); }
.prose ul li { padding-left: 20px; position: relative; }
.prose ul li::before { content: ">"; position: absolute; left: 0; top: 0; font-family: var(--mono); color: var(--green); }
.prose ol { counter-reset: o; gap: var(--s3); }
.prose ol li { counter-increment: o; padding-left: 36px; position: relative; }
.prose ol li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 13px; color: var(--green); }
.prose blockquote { background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--green); border-radius: var(--r-sm); padding: var(--s4) var(--s5); }
.prose blockquote p { color: var(--text); }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }
.prose .q-section { margin-top: var(--s7); }
.prose .q-section > * + * { margin-top: var(--s2); }
.prose .q-section h3 { font-size: 18px; margin-top: var(--s5); color: var(--text); }

/* ---------- forms ---------- */
.form-fields { display: grid; gap: var(--s4); }
.form-fields[hidden], .form-done[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.field label small { color: var(--dim); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--text); caret-color: var(--green); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 12px; min-height: 48px; width: 100%; transition: border-color .15s ease; }
.field textarea { min-height: 128px; resize: vertical; }
.field ::placeholder { color: var(--dim); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--red); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--green); cursor: pointer; }
.check a { color: var(--green); text-decoration: underline; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; gap: var(--s4); }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: 14px; min-height: 1.4em; color: var(--muted); }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.form-status a { text-decoration: underline; }
.form-alt { font-size: 14px; color: var(--muted); }
.form-alt a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.form-done h3, .bk-done-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: var(--s2); }
.form-done p { color: var(--muted); }

/* ---------- dialogs: fade + scale from .96 over 180ms; exit shorter; top-anchored ---------- */
dialog.modal { margin: max(16px, 6vh) auto auto; width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 2 * max(16px, 6vh)); background: #0d0e0e; color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); padding: 0; overflow: auto;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85);
  opacity: 1; transform: scale(1);
  transition: opacity .12s var(--ease-out), transform .12s var(--ease-out), overlay .12s allow-discrete, display .12s allow-discrete; }
dialog.modal:not([open]) { opacity: 0; transform: scale(.98); }
dialog.modal[open] { transition-duration: .18s; }
@starting-style { dialog.modal[open] { opacity: 0; transform: scale(.96); } }
dialog.modal::backdrop { background: rgba(0, 0, 0, .7); opacity: 1; transition: opacity .12s var(--ease-out), overlay .12s allow-discrete, display .12s allow-discrete; }
dialog.modal:not([open])::backdrop { opacity: 0; }
dialog.modal[open]::backdrop { transition-duration: .18s; }
@starting-style { dialog.modal[open]::backdrop { opacity: 0; } }
body:has(dialog[open]) { overflow: hidden; }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 6px 6px 6px 18px; position: sticky; top: 0; background: #0d0e0e; border-bottom: 1px solid var(--line); z-index: 1; }
.modal-bar span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.modal-bar span::before { content: "// "; }
.modal-x { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: var(--r-sm); display: grid; place-items: center; transition: background-color .15s ease, color .15s ease, transform .14s var(--ease-out); }
.modal-x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.modal-x:active { transform: scale(.94); }
.modal-body { padding: var(--s5) 18px var(--s5); }
.modal-body h2 { font-size: 30px; margin-bottom: var(--s1); }
.modal-body > p { color: var(--muted); margin-bottom: var(--s5); font-size: 16px; }

/* command palette */
dialog.palette { margin-top: max(16px, 14vh); width: min(640px, calc(100% - 24px)); overflow: hidden; display: none; }
dialog.palette[open] { display: flex; flex-direction: column; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.pal-in input { flex: 1; min-width: 0; min-height: 48px; font-family: var(--mono); font-size: 15px; color: var(--text); background: transparent; border: 0; caret-color: var(--green); }
.pal-in input::placeholder { color: var(--dim); }
.pal-in input:focus-visible { outline: none; }
.pal-x { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 4px; min-height: 44px; min-width: 44px; cursor: pointer; }
.pal-list { list-style: none; max-height: min(52vh, 420px); overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.pal-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); cursor: pointer; color: var(--soft); }
.pal-list li[hidden] { display: none; }
.pal-list li small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.pal-list li[aria-selected="true"] { background: var(--green-bg); color: var(--text); box-shadow: inset 2px 0 0 var(--green); }
.pal-list li[aria-selected="true"] small { color: var(--green); }
.pal-empty { padding: var(--s4) 18px; color: var(--muted); font-size: 15px; }
.pal-foot { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--dim); }
.pal-foot kbd + kbd { margin-left: -2px; }

/* ---------- booking widget (v2 fixes kept: reserved heights, stale lock) ---------- */
.booker { display: grid; gap: var(--s4); }
.bk-step[hidden] { display: none; }
.bk-tz { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.bk-tz b { color: var(--text); font-weight: 600; }
/* min-height = one row of date chips, so filling the strip on load moves nothing */
.bk-dates { display: flex; gap: var(--s2); overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; min-height: 78px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.bk-date { position: relative; flex: 0 0 auto; scroll-snap-align: start; min-width: 76px; min-height: 64px; display: grid; place-items: center; gap: 2px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel-2); color: var(--text); font-family: var(--mono); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .14s var(--ease-out); }
.bk-date span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk-date b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.bk-date[aria-pressed="true"] { background: var(--green-bg); border-color: var(--green); }
.bk-date[aria-pressed="true"] span { color: var(--green); }
.bk-label { font-size: 16px; font-weight: 600; color: var(--text); margin-top: var(--s1); }
.bk-label span { color: var(--muted); font-weight: 400; }
/* height reserved for the usual evening (up to 12 times + the after-midnight note): 4 rows on phones, 3 from 600px */
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); align-content: start; gap: var(--s2); margin-top: var(--s3); min-height: 232px; }
.bk-slots > * { transition: opacity .15s ease; }
.bk-slots[aria-busy="true"] > * { opacity: .35; pointer-events: none; }
.bk-slots.in > * { animation: fade .18s var(--ease-out) both; }
.bk-slot { min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel-2); color: var(--text); font-family: var(--mono); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .12s ease, color .12s ease, border-color .12s ease, transform .14s var(--ease-out); }
.bk-slot:focus-visible { border-color: var(--green); color: var(--green); }
.bk-slot:active { background: var(--green); color: var(--green-ink); }
.bk-empty { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.bk-empty a { color: var(--green); text-decoration: underline; }
.bk-warn { color: var(--red); }
.bk-chosen { font-size: 16px; font-weight: 600; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.bk-link { background: none; border: 0; color: var(--green); font: inherit; font-weight: 400; text-decoration: underline; cursor: pointer; min-height: 32px; padding: 0 4px; }
.bk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.bk-alt { border-top: 1px solid var(--line); padding-top: var(--s4); display: flex; flex-wrap: wrap; gap: 6px var(--s3); align-items: center; }
.bk-inline .booker { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); }

/* contact page */
.contact-grid { display: grid; gap: var(--s7); padding-bottom: var(--s8); }
.cmd { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); display: grid; gap: var(--s3); font-size: 16px; }
.cmd .k { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.cmd a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; word-break: break-word; transition: color .15s ease; }
.cmd { gap: var(--s1); }

/* 404 */
.nf { padding: var(--s8) 0 var(--s9); }
.nf h1 { font-size: clamp(40px, 9vw, 88px); letter-spacing: -.04em; line-height: 1; }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.nf-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); font-family: var(--mono); font-size: 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color .15s ease, color .15s ease, transform .14s var(--ease-out); }
.nf-links a:active { transform: scale(.97); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: #050606; padding: var(--s6) 0 var(--s4); font-size: 14px; color: var(--muted); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s5); }
.foot-id { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin-top: var(--s4); }
.foot-grid ul { display: flex; flex-wrap: wrap; column-gap: var(--s4); }
.foot-grid h2 { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 0; }
.foot-grid ul { list-style: none; }
.foot-grid a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 13px; color: var(--muted); word-break: break-word; transition: color .15s ease; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); border-top: 1px solid var(--line); margin-top: var(--s4); padding-top: var(--s4); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* ---------- hover: fine pointers only ---------- */
@media (hover: hover) and (pointer: fine) {
  .foot-grid a { min-height: 32px; }
  .nav a:hover { color: var(--text); }
  .jump:hover { border-color: var(--green-line); color: var(--text); }
  .call:hover { border-color: var(--text); background: rgba(255, 255, 255, .04); }
  .btn-p:hover { background: #fff; }
  .btn-s:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); }
  a:hover > .i, button:hover > .i { transform: translateX(3px); }
  .now:hover { border-color: var(--green); }
  .ls a:hover { color: var(--green); text-decoration-color: currentColor; }
  .term-foot button:hover { color: var(--green); }
  .svc-card:hover { border-color: var(--green-line); }
  .svc-card:hover .svc-go { color: var(--green); }
  .crumbs a:hover, .box ul a:hover, .cmd a:hover, .foot-grid a:hover { color: var(--green); }
  .modal-x:hover { color: var(--text); background: var(--panel-2); }
  .pal-list li:hover { background: rgba(255, 255, 255, .04); }
  .bk-date:hover { border-color: rgba(255, 255, 255, .3); }
  .bk-date[aria-pressed="true"]:hover { border-color: var(--green); }
  .bk-slot:hover { border-color: var(--green); color: var(--green); }
  .nf-links a:hover { border-color: var(--green-line); color: var(--green); }
}

/* ---------- motion: one hero entrance, terminal types once, quiet reveals ---------- */
@keyframes rise { from { transform: translateY(12px); } } /* transform only: the first paint already shows everything */
@keyframes fade { from { opacity: 0; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } }
/* .intro is set by the inline head script on the first home view of a visit; everything is in the HTML and visible without it */
.intro .hero [data-rise] { animation: rise .32s var(--ease-expo) both; }
.intro .hero [data-rise="1"] { animation-delay: 60ms; }
.intro .hero [data-rise="2"] { animation-delay: 120ms; }
.intro .hero [data-rise="3"] { animation-delay: 180ms; }
.intro .hero [data-rise="4"] { animation-delay: 240ms; }
/* typing never hides text: the command shows dimmed from the first paint while a bright copy (CSS, empty alt text so it is never read) sweeps over it */
@media (prefers-reduced-motion: no-preference) {
  .intro .term .tc { color: #6b7681; }
  .intro .term .tc::after { content: attr(data-t); content: attr(data-t) / ""; position: absolute; inset: 0; color: var(--text); white-space: pre; animation: type calc(var(--n) * 15ms) steps(var(--n), end) var(--at) both; }
}
.rv { opacity: 0; transform: translateY(8px); }
.rv.in { opacity: 1; transform: none; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }

/* ---------- phones: the footer's services column repeats the services section just above, so it is skipped here ---------- */
@media (max-width: 599px) {
  .foot-grid > div:nth-child(2) { display: none; }
  .review blockquote p { font-size: 16.5px; }
}

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .ctas { flex-direction: row; flex-wrap: wrap; }
  .jump-t { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .svc-grid, .cases, .reviews { grid-template-columns: 1fr 1fr; }
  .svc-go { display: inline-flex; }
  .svc-card, .review { padding: 20px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .modal-body { padding: var(--s5) var(--s6) var(--s6); }
  .foot-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s5); margin-top: var(--s5); }
  .foot-grid ul { display: block; }
  .foot-grid h2 { margin-bottom: var(--s2); }
  .head-photo { grid-template-columns: 1fr auto; }
  .bk-inline .booker { padding: var(--s6); }
  .bk-slots { min-height: 178px; }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .stats-row > div, .stats-row > div:nth-child(even) { padding: var(--s5) var(--s5) var(--s4); border-left: 1px solid var(--line); }
  .stats-row > div:first-child { padding-left: 0; border-left: 0; }
  .stats-row > div:nth-child(-n+2) { border-bottom: 0; }
}

/* ---------- ≥ 960px ---------- */
@media (min-width: 960px) {
  body { font-size: 17px; }
  .head-wrap { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav act"; grid-template-rows: 64px; column-gap: var(--s6); }
  .nav { border-top: 0; margin: 0; padding: 0; overflow: visible; gap: var(--s2); }
  .jump kbd { display: inline; }
  .hero { padding: var(--s8) 0 var(--s7); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 440px; column-gap: var(--s8); row-gap: var(--s5); }
  .now, .hero h1, .role { grid-column: 1 / -1; }
  .hero h1 { white-space: nowrap; }
  .lead { grid-column: 1; grid-row: 4; align-self: center; }
  .term { grid-column: 2; grid-row: 4; margin-top: calc(-1 * var(--s5)); }
  .role { font-size: 14px; }
  .value { font-size: 18px; }
  .side { display: block; position: absolute; right: calc(-1 * var(--s7)); top: 52%; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--mono); font-size: 11px; letter-spacing: .42em; color: var(--dim); padding-top: var(--s5); white-space: nowrap; }
  .side::after { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 72px; background: var(--line-2); transform: translateY(-12px); }
  .sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--s5); }
  section.sec { padding: 56px 0; }
  /* FAQ: heading beside the questions, not above them */
  #faq .wrap { display: grid; grid-template-columns: 4fr 8fr; column-gap: var(--s7); align-items: start; }
  #faq .sec-head { margin-bottom: 0; }
  #faq .qa { max-width: none; }
  .svc-grid, .cases { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .cta-band { padding: 48px 0; }
  .page-head { padding: var(--s8) 0 var(--s7); }
  .headshot img { width: 300px; }
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s8); }
  .aside { position: sticky; top: 96px; }
  .prose .cases { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.2fr .8fr; gap: var(--s8); }
  .bk-slots { min-height: 178px; }
}
@media (max-width: 1239px) { .side { display: none; } }
@media (min-width: 1600px) { .wrap { max-width: 1280px; } }

/* Reduced motion: no travel, no typing, no blink or pulse. Short opacity fades stay. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .intro .hero [data-rise] { animation: none; }
  .caret, .cursor, .now i, .live i { animation: none; }
  .rv { transform: none; }
  .rv.in { transition: opacity .25s ease; }
  .btn:active, .jump:active, .call:active, .bk-slot:active, .bk-date:active, .svc-card:active, .nf-links a:active, .modal-x:active { transform: none; }
  dialog.modal, dialog.modal:not([open]) { transform: none; }
  @starting-style { dialog.modal[open] { transform: none; } }
  .i { transition: none; }
}
