/* Kohu Labs - digital cartography
   Tokens → base → header → hero → sections → motion → responsive */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { /* extended Latin (e.g. the ō in Kō) */
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  src: url("../assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { /* extended Latin (e.g. the ō in Kō) */
  font-family: "DM Mono";
  src: url("../assets/fonts/dm-mono-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  src: url("../assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { /* extended Latin (e.g. the ō in Kō) */
  font-family: "DM Mono";
  src: url("../assets/fonts/dm-mono-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- tokens ------------------------------------------------------------ */
:root {
  color-scheme: light;
  --bg: #dfe3ec;            /* mist blue: soft on the eyes, a faint echo of the cobalt */
  --bg-2: #d1d7e3;
  --surface: #e9ecf3;
  --ink: #0c0e14;           /* near-black */
  --muted: #566073;         /* muted blue-grey */
  --line: rgba(12, 14, 20, 0.2);
  --accent: #1c3dff;        /* electric cobalt */
  --accent-ink: #ffffff;
  --accent-hover: #0c0e14;
  --acid: #c6ee00;          /* acid yellow-green, tiny highlights only */
  --highlight: var(--accent);

  --field-accent: #1c3dff;  /* read by the canvas */
  --field-strong: #0c0e14;
  --field-acid: #c6ee00;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 76px;
  --max: 1280px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090b11;            /* deep ink */
  --bg-2: #0f121b;
  --surface: #0f131d;
  --ink: #eeeae0;
  --muted: #98a3b8;
  --line: rgba(238, 234, 224, 0.17);
  --accent: #5b7bff;
  --accent-ink: #090b11;
  --accent-hover: #eeeae0;
  --acid: #d4ff3a;
  --highlight: var(--acid);

  --field-accent: #6d8aff;
  --field-strong: #eeeae0;
  --field-acid: #d4ff3a;
}

/* ---- base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; overflow-x: clip; } /* the mascots draw past their boxes; never a sideways scroll */
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 0.8rem; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;   /* never blocks links, text selection or scrolling */
}
main, .site-footer { position: relative; z-index: 1; }
.field-label { text-transform: none; position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none; color: var(--field-strong); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.04em; white-space: nowrap; will-change: transform, opacity; }

/* ---- header ------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled { background: var(--bg); border-bottom-color: var(--line); }
.header-inner {
  max-width: var(--max);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: block; flex: none; width: 136px; margin-left: -13px; border-radius: 4px; }
.logo { width: 100%; height: auto; aspect-ratio: 4800 / 2520; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.header-meta { display: flex; gap: 18px; color: var(--muted); margin-left: 6px; }
.header-meta span + span { padding-left: 18px; border-left: 1px solid var(--line); }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 40px); margin-left: auto; }
.site-nav a {
  position: relative;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

.header-controls { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 99px;
  background: transparent; color: var(--ink); cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -4px 0 0 0 var(--bg);   /* half-moon: reads as a light/dark switch */
  border: 1px solid var(--accent);
}
:root[data-theme="dark"] .theme-dot { box-shadow: inset 4px 0 0 0 var(--bg); }

.nav-toggle { display: none; }

/* language switch + the one-time offer for Portuguese-language visitors */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); text-decoration: none; transition: border-color 0.2s ease, color 0.2s ease; }
.lang-switch:hover, .lang-switch:focus-visible { border-color: var(--accent); color: var(--accent); }
.lang-offer { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; width: min(560px, calc(100vw - 32px)); padding: 12px 14px 12px 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--accent); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); }
.lang-offer p { margin: 0; flex: 1 1 200px; font-size: 0.95rem; }
.lang-offer .btn { min-height: 44px; font-size: 0.95rem; }
.lang-offer-x { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.lang-offer-x:hover { color: var(--ink); }

/* client login: an outlined button at the end of the nav */
.site-nav a.nav-login { padding: 8px 16px; border: 1px solid var(--accent); border-radius: 2px; color: var(--accent); transition: background-color 0.2s ease, color 0.2s ease; }
.site-nav a.nav-login::after { display: none; }
.site-nav a.nav-login:hover, .site-nav a.nav-login:focus-visible { background: var(--accent); color: var(--accent-ink); }

/* ---- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 22px;
  max-width: var(--max);
  margin-inline: auto;
}
.hero-grid { flex: 1; display: flex; align-items: center; }
.hero-copy { position: relative; max-width: 58rem; padding-block: 32px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.eyebrow span:first-child:not(.status-dot) { color: var(--accent); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

h1 {
  margin: 22px 0 28px;
  font-size: clamp(3.9rem, 11.2vw, 10.6rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 96;
}
.noise-word { display: inline-block; color: var(--accent); }
.noise-word > span[aria-hidden] { display: inline-block; }
.stop { color: var(--accent); }
.hero-lede { max-width: 31rem; font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.5; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 52px; padding: 0 22px;
  border: 1px solid var(--accent); border-radius: 2px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }
.btn-primary:hover .arrow { transform: translate(2px, -2px); }
.btn-large { min-height: 64px; padding: 0 28px; font-size: clamp(1rem, 2.2vw, 1.35rem); }
.arrow { width: 16px; height: 16px; flex: none; transition: transform 0.2s ease; }
.btn-large .arrow { width: 20px; height: 20px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }
.link-arrow .arrow { color: var(--accent); }

.hero-foot { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); padding-top: 18px; }
.hero-readout { color: var(--accent); white-space: pre; }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-touch { display: inline; } .hint-mouse { display: none; } }

/* ---- principles strip --------------------------------------------------- */
.principles { background: var(--accent); color: var(--accent-ink); padding: 18px var(--gutter); }
.principles-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px clamp(16px, 3.4vw, 46px); font-size: 0.8rem; letter-spacing: 0.16em; }
.principles .mark svg { width: 14px; height: 14px; }
.principles .acid { fill: var(--acid); }
:root[data-theme="dark"] .principles .acid { fill: #d4ff3a; }

/* ---- sections ----------------------------------------------------------- */
.section { position: relative; padding-block: clamp(56px, 7vw, 104px); }
.section-head { margin-bottom: clamp(28px, 3.6vw, 48px); max-width: 52rem; }
.section-head .eyebrow, .approach .eyebrow, .contact .eyebrow { margin-bottom: 18px; }
h2 { font-size: clamp(2.7rem, 7.2vw, 6.4rem); font-weight: 800; line-height: 0.93; letter-spacing: -0.045em; font-variation-settings: "opsz" 96; }
h2 em { font-style: normal; color: var(--accent); }

/* services */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1280px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; }
.card article {
  display: flex; flex-direction: column; width: 100%;
  padding: 22px 22px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover article { border-color: var(--accent); transform: translateY(-3px); }
.card-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.card-num { color: var(--accent); }
.ill {
  margin: 20px 0 24px; padding: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  overflow: hidden;           /* illustration is clipped to its own box: it can never reach the text */
}
.ill svg { width: 100%; height: 100%; }
.card h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 34ch; }
/* Active clients: a strip under the service cards, logos in the site's ink with each brand's accent */
.clients {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 40px;
  margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 2px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.clients-label { display: flex; align-items: center; gap: 10px; color: var(--ink); margin: 0; }
.clients-work { grid-column: 1; margin: 0; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: none; }
.clients-logos { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 20px 56px; margin: 0; padding: 0; list-style: none; }
.clients-logos a { display: block; padding: 6px 0; text-decoration: none; opacity: 0.85; transition: opacity 0.2s ease; }
.clients-logos a:hover, .clients-logos a:focus-visible { opacity: 1; outline: none; }
.clients-logos a:focus-visible { box-shadow: 0 2px 0 var(--accent); }
.logo-door2 { position: relative; display: block; height: 30px; aspect-ratio: 910 / 182; }
.logo-door2 i { position: absolute; inset: 0; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.logo-door2 .l-base { --m: url("../assets/clients/door2-base.png"); background: var(--ink); }
.logo-door2 .l-two { --m: url("../assets/clients/door2-two.png"); background: var(--accent); }
.logo-mdm { display: block; font-family: "Bricolage Grotesque", var(--font); font-weight: 700; font-size: 31px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.logo-mdm i { font-style: normal; color: #ff5f2e; } /* MDM Legal's ember */
@media (max-width: 760px) {
  .clients { grid-template-columns: 1fr; padding: 20px; }
  .clients-logos { grid-column: 1; grid-row: auto; justify-content: flex-start; gap: 18px 40px; }
  .logo-door2 { height: 26px; } .logo-mdm { font-size: 27px; }
}

/* illustration drawing */
.ill-grid path { stroke: var(--line); stroke-width: 1; fill: none; }
.ill-dots line { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.1 7; }
.ill-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.ill-pts circle { fill: var(--bg-2); stroke: var(--accent); stroke-width: 1.6; }
.ill-pts circle.acid { fill: var(--acid); stroke: var(--ink); stroke-width: 1.2; }
.ill-pts circle.ring { fill: none; stroke: var(--accent); stroke-width: 1; }
.ill-pts.scatter circle { fill: var(--accent); stroke: none; opacity: 0.85; }
.ill-flow { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 3 5; stroke-linecap: round; }
.ill-box { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.ill-ring { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.ill-core { fill: var(--accent); }
.ill-line-set path { stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; fill: none; }
.ill-human { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 4; stroke-linecap: round; }
.ill-pts-fill { fill: var(--acid); stroke: var(--ink); stroke-width: 1.2; }
.ill-halftone circle { fill: var(--accent); }
.ill-prompt-bg { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; }
.ill-prompt { font: 500 13px var(--mono); fill: var(--ink); }
.cursor { fill: var(--accent); }
.ill-text { font: 400 9px var(--mono); letter-spacing: 0.1em; fill: var(--muted); }

/* approach */
.approach .statement {
  max-width: 17em;
  font-size: clamp(2.3rem, 6.4vw, 5.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: clamp(32px, 4.5vw, 64px);
  text-wrap: balance;
}
.statement mark { background: none; color: var(--highlight); }

/* about us + mission */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.about-head .eyebrow { margin-bottom: 18px; }
.about-head h2 { font-size: clamp(2.6rem, 4.9vw, 4.7rem); }
.about-copy p { max-width: 40em; font-size: clamp(1.08rem, 1.35vw, 1.25rem); line-height: 1.65; color: var(--ink); }
.about-copy p + p { margin-top: 1em; color: var(--muted); }
.mission {
  margin-top: clamp(40px, 5vw, 72px); padding: clamp(24px, 3.2vw, 44px);
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 2px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.mission-label { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--ink); }
.mission-statement { max-width: 24em; font-size: clamp(1.7rem, 3.5vw, 3.1rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.mission-statement mark { background: none; color: var(--highlight); }
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: clamp(36px, 4.5vw, 64px); }
.guides li { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 10px 16px; padding-top: 18px; border-top: 1px solid var(--ink); }
.guides .mono { color: var(--accent); padding-top: 0.35em; }
.guides h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.guides p { grid-column: 2; color: var(--muted); line-height: 1.55; max-width: 32ch; }
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; align-items: start; }
  .guides { grid-template-columns: 1fr; gap: 24px; }
}
.tenets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.tenets li { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 0; border-top: 1px solid var(--ink); }
.tenets .mono { color: var(--accent); }
.tenets p { font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }

/* contact */
.contact { padding-bottom: clamp(64px, 8vw, 120px); }
.contact h2 { font-size: clamp(3rem, 9.4vw, 8.6rem); margin-bottom: 28px; }
.contact-copy { max-width: 56rem; }
.contact-lede { max-width: 30rem; font-size: clamp(1.1rem, 1.7vw, 1.35rem); margin-bottom: 36px; }
/* Email and WhatsApp, side by side (stacked on narrow phones) */
.contact-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; }
/* Offices: Lisboa and Faro, under the contact buttons */
.offices { margin-top: 44px; max-width: 44rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; }
.offices-label { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.office { font-style: normal; font-size: 0.98rem; line-height: 1.55; color: var(--ink); }
.office-city { display: block; margin-bottom: 4px; color: var(--accent); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 620px) { .offices { grid-template-columns: 1fr; row-gap: 18px; } }
@media (max-width: 620px) { .contact-actions > a { width: 100%; } .contact-actions .btn { justify-content: space-between; } }
.wa-banner {
  display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; min-height: 64px; padding: 8px 20px 8px 9px;
  border: 1px solid var(--line); border-radius: 2px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink); text-decoration: none; transition: border-color 0.2s ease;
}
.wa-banner:hover, .wa-banner:focus-visible { border-color: #25d366; outline: none; }
.wa-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #25d366; color: #fff; }
.wa-icon svg { width: 26px; height: 26px; }
.wa-text { display: flex; flex-direction: column; gap: 4px; }
.wa-title { font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 600; }
.wa-number { color: var(--muted); font-size: 0.72rem; }
.wa-banner .arrow { flex: none; width: 18px; height: 18px; margin-left: 8px; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-head .eyebrow { margin-bottom: 18px; }
.faq-head h2 { font-size: clamp(2.6rem, 4.9vw, 4.7rem); }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 18px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num { color: var(--accent); }
.faq-q { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.faq-toggle { position: relative; width: 16px; height: 16px; align-self: center; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--ink); transition: transform 0.25s ease; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::before { transform: rotate(45deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(135deg); }
.faq-item summary:hover .faq-q, .faq-item summary:focus-visible .faq-q { color: var(--accent); }
.faq-item summary:focus-visible { outline: none; }
.faq-item summary:focus-visible .faq-toggle::before, .faq-item summary:focus-visible .faq-toggle::after { background: var(--accent); }
.faq-a { padding: 0 34px 24px calc(18px + 2ch); }
.faq-a p { max-width: 46em; color: var(--muted); line-height: 1.65; }
.faq-a a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.faq-a a:hover { color: var(--accent); }
@media (max-width: 960px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-a { padding-left: 0; padding-right: 0; }
}

/* footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-home { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-home:hover { color: var(--accent); }
.footer-link { color: inherit; text-decoration: none; display: inline-block; padding: 12px 0; }
.footer-link:hover, .footer-link:focus-visible { color: var(--accent); }
.footer-inner { align-items: center; }

/* ---- motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .draw { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 2.4s 0.4s cubic-bezier(.3,.6,.2,1) forwards; }
  .flow { animation: flow 1.6s linear infinite; }
  .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
  .cursor { animation: blink 1.1s steps(1) infinite; }
  .ill-human { animation: flow 3s linear infinite; }
  .status-dot { animation: ping 2.8s ease-out infinite; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flow { to { stroke-dashoffset: -16; } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- responsive --------------------------------------------------------- */
/* The KOHU LABS / SYS tag only on very wide screens; menu items never wrap */
@media (max-width: 1500px) { .header-meta { display: none; } }
.site-nav a, .header-meta span { white-space: nowrap; }

/* Menu: the hamburger takes over below 1000px (six items no longer fit beside the logo and controls) */
@media (max-width: 1000px) {
  .header-controls { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line); border-radius: 50%;
    background: transparent; color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before {
    display: block; width: 16px; height: 1.6px; background: currentColor; position: relative; transition: transform 0.25s ease;
  }
  .nav-toggle-bars::before { content: ""; position: absolute; left: 0; top: 5px; }
  .nav-toggle-bars { top: -2.5px; }
  .nav-open .nav-toggle-bars { transform: translateY(2.5px) rotate(45deg); }
  .nav-open .nav-toggle-bars::before { transform: translateY(-5px) rotate(-90deg); }

  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    padding: 6px var(--gutter) 14px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .js .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav a { padding: 0; min-height: 52px; display: flex; align-items: center; font-size: 1.35rem; font-weight: 600; border-top: 1px solid var(--line); }
  .js .site-nav a:first-child { border-top: 0; }
  .js .site-nav a::after { display: none; }
  .js .site-nav a.nav-login { margin: 10px 0 4px; min-height: 48px; justify-content: center; font-size: 1.1rem; background: var(--accent); color: var(--accent-ink); }
  .site-header.nav-open { background: var(--bg); border-bottom-color: var(--line); }
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { width: 100%; order: 3; justify-content: space-between; margin: 0; }
  html:not(.js) .nav-toggle { display: none; }
}

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; max-width: 640px; }
  .card p { max-width: 48ch; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .brand { width: 108px; margin-left: -10px; }
  .theme-toggle { padding: 0 14px; }

  .hero { padding-top: calc(var(--header-h) + 18px); padding-bottom: 16px; }
  h1 { font-size: clamp(3.2rem, 15.2vw, 7rem); line-height: 0.9; margin: 18px 0 22px; }
  .hero-actions { margin-top: 26px; }
  .hero-foot { flex-wrap: wrap; font-size: 0.7rem; gap: 6px 16px; }
  .hero-readout { display: none; }
  .tenets { grid-template-columns: 1fr; gap: 22px; }
  .tenets li { flex-direction: row; align-items: baseline; gap: 18px; padding-top: 14px; }
  .principles-list { gap: 8px 14px; font-size: 0.7rem; }
}

@media (max-width: 380px) {
  .theme-toggle .theme-state { display: none; }
  .theme-toggle { padding: 0 14px; }
}
button.lang-switch { background: transparent; cursor: pointer; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- Kō: assistant (js/assistant.js) ----------------------------- */
/* Hero: the mascot sits in the free space beside the headline on wide screens. */
.hero-grid { position: relative; }
.hero-signal { display: none; }
@media (min-width: 1100px) {
  .hero-signal {
    position: absolute; right: 0; top: 58%; transform: translateY(-50%); z-index: 2;
    width: clamp(240px, 22vw, 330px); display: flex; flex-direction: column; align-items: center; gap: 4px;
  }
}
.hero-signal-stage { position: relative; width: 100%; aspect-ratio: 1; cursor: pointer; border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 0 42%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, transparent 70%); } /* a quiet halo so it reads against the field */
.sig-bleed { position: absolute; inset: -40%; pointer-events: none; } /* the mascot's canvas, larger than its stage (js/assistant-core.js) */
.hero-signal-bubble {
  max-width: 100%; padding: 9px 14px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--ink);
  font-size: 0.72rem; letter-spacing: 0.04em; text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hero-signal-bubble:hover, .hero-signal-bubble:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }

/* Dock: chat panel, and the mascot button once the hero mascot is out of view (always on phones). */
.sig-dock {
  position: fixed; z-index: 35; right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom) + var(--sig-kb, 0px)); /* --sig-kb: height hidden by an on-screen keyboard */
  display: flex; align-items: flex-end; gap: 12px; pointer-events: none;
}
.sig-dock > * { pointer-events: auto; }
.sig-dock[hidden] { display: none; } /* display: flex above would otherwise override [hidden] (the portal hides it on sign-in) */
.sig-launcher {
  position: relative; flex: none; width: 76px; height: 76px; padding: 0; overflow: visible; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.sig-launcher:hover, .sig-launcher:focus-visible { border-color: var(--accent); outline: none; }
.sig-launcher::after { content: "• •"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.1rem; letter-spacing: 0.3em; } /* until the mascot loads */
.sig-dock.ready .sig-launcher::after { content: none; }
.sig-launcher-stage { position: absolute; inset: -100%; pointer-events: none; } /* 3× the button: the mascot's "?" and z's float outside the circle */
.sig-dock.hero-visible:not(.open) .sig-launcher { opacity: 0; transform: scale(0.6); visibility: hidden; } /* the panel covers the hero mascot, so the button shows while it's open */

.sig-panel {
  display: flex; flex-direction: column; width: min(390px, calc(100vw - 120px)); height: min(540px, calc(100vh - 120px)); height: min(540px, calc(var(--sig-vh, 100svh) - 120px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  position: relative; z-index: 1; /* above the launcher's mascot marks, which float outside the button */
}
.sig-panel[hidden] { display: none; }
/* Beside the hero mascot (homepage, wide screens): the panel sits to its left, with a tail pointing at it. */
.sig-dock.beside .sig-panel { position: fixed; left: var(--sig-left); top: var(--sig-top); }
.sig-dock.beside .sig-panel::after {
  content: ""; position: absolute; right: -8px; top: var(--sig-tail, 50%); width: 14px; height: 14px; margin-top: -7px;
  background: var(--surface); border: solid var(--line); border-width: 1px 1px 0 0; transform: rotate(45deg);
}
.sig-dock.beside .sig-launcher { opacity: 0; transform: scale(0.6); visibility: hidden; } /* the big mascot is the one talking */

/* Nudge: near the end of the page the big Signal drops in from the top, with a speech bubble beside it. */
.sig-nudge {
  position: fixed; z-index: 34; top: calc(var(--header-h) + 8px); right: max(16px, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 4px; pointer-events: none;
  transform: translateY(calc(-100% - var(--header-h) - 40px)); transition: transform 0.7s cubic-bezier(.25, 1.35, .45, 1);
}
.sig-nudge.in { transform: none; }
.sig-nudge.in.away { transform: translateX(calc(100% + 40px)); transition: transform 0.45s ease; } /* scrolled back up: off to the right until they scroll down again */
.sig-dock.nudging .sig-launcher { opacity: 0; transform: scale(0.6); visibility: hidden; } /* the big mascot is out: one mascot at a time */
.sig-nudge > * { pointer-events: auto; }
.sig-nudge-stage { position: relative; flex: none; width: clamp(150px, 16vw, 230px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 0 42%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, transparent 70%); }
.sig-nudge-bubble {
  position: relative; width: min(330px, calc(100vw - 210px)); padding: 14px 40px 14px 16px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--accent); border-radius: 2px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  opacity: 0; transform: scale(0.92); transform-origin: right center; transition: opacity 0.3s ease 0.45s, transform 0.3s ease 0.45s;
}
.sig-nudge.in .sig-nudge-bubble { opacity: 1; transform: none; }
.sig-nudge.talking .sig-nudge-bubble { opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s; } /* the chat takes over beside it */
.sig-nudge-bubble::after { /* tail towards the mascot */
  content: ""; position: absolute; right: -8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: var(--surface); border: solid var(--accent); border-width: 1px 1px 0 0; transform: rotate(45deg);
}
.sig-nudge-bubble p { margin: 0 0 10px; font-size: 0.98rem; line-height: 1.45; }
.sig-nudge-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sig-nudge .sig-close { position: absolute; top: 6px; right: 6px; }
@media (max-width: 620px) {
  .sig-nudge { left: 12px; right: 12px; flex-direction: column-reverse; align-items: flex-end; gap: 0; }
  .sig-nudge-stage { width: 130px; margin-right: 8px; }
  .sig-nudge-bubble { width: 100%; transform-origin: top right; }
  .sig-nudge-bubble::after { right: 56px; top: -8px; margin-top: 0; border-width: 1px 0 0 1px; }
}
@media (prefers-reduced-motion: reduce) { .sig-nudge, .sig-nudge-bubble { transition: none; } }
.sig-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.sig-head b { font-weight: 700; margin-right: 10px; }
.sig-head .mono { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.sig-close { width: 36px; height: 36px; border: 1px solid transparent; border-radius: 2px; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sig-close:hover, .sig-close:focus-visible { color: var(--accent); border-color: var(--line); outline: none; }
.sig-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sig-msg { max-width: 92%; font-size: 0.95rem; line-height: 1.5; }
.sig-msg.user { align-self: flex-end; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 2px; }
.sig-msg.bot p { margin: 0 0 6px; } .sig-msg.bot p:last-child { margin: 0; }
.sig-msg.bot ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sig-msg.bot li { border-left: 2px solid var(--accent); padding: 2px 0 2px 10px; }
.sig-msg.bot li b { display: block; font-weight: 700; }
.sig-msg.bot li span { color: var(--muted); font-size: 0.88rem; }
.sig-msg .sig-noise, .sig-msg.bot li .sig-noise { color: var(--accent); } /* unresolved characters, like "noise" in the headline */
.sig-card { display: grid; gap: 3px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); }
.sig-card .mono { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sig-card strong { font-size: 1.05rem; }
.sig-note { color: var(--muted); font-size: 0.8rem; }
.sig-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.sig-chip {
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 2px; background: none; color: var(--ink);
  font: inherit; font-size: 0.86rem; text-decoration: none; cursor: pointer;
}
.sig-chip:hover, .sig-chip:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.sig-chip.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sig-chip.primary:hover, .sig-chip.primary:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }
.sig-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.sig-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
.sig-form input:focus { outline: none; border-color: var(--accent); }
.sig-form button { padding: 0 16px; border: 0; border-radius: 2px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; }
/* Booking details (js/assistant.js): a small form inside Kō's message */
.sig-book { display: grid; gap: 8px; margin-top: 4px; }
.sig-book .sig-card { margin-top: 0; }
.sig-book label { display: grid; gap: 3px; font-size: 0.8rem; color: var(--muted); }
.sig-book input, .sig-book textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
.sig-book textarea { resize: vertical; min-height: 64px; }
.sig-book input:focus, .sig-book textarea:focus { outline: none; border-color: var(--accent); }
.sig-book input:disabled, .sig-book textarea:disabled { opacity: 0.6; }
.sig-book details { display: block; }
.sig-book details[open] { padding-bottom: 2px; }
.sig-book details > label + label, .sig-book details > summary + label { margin-top: 8px; }
.sig-book summary { cursor: pointer; color: var(--ink); font-size: 0.86rem; }
.sig-book summary:hover, .sig-book summary:focus-visible { color: var(--accent); outline: none; }
.sig-book button { justify-self: start; font-weight: 600; }
.sig-book button:disabled { cursor: default; opacity: 0.7; }
.sig-book .sig-note { margin: 0; }
.sig-book-error { color: var(--accent) !important; }
.sig-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* a field only bots fill in */
/* After a booking: a small bubble by the corner button that reopens the chat */
.sig-sent {
  position: fixed; z-index: 36; right: max(16px, env(safe-area-inset-right)); bottom: calc(104px + env(safe-area-inset-bottom));
  padding: 9px 14px; border: 1px solid var(--accent); border-radius: 14px 14px 2px 14px; background: var(--surface); color: var(--ink);
  font-size: 0.8rem; letter-spacing: 0.04em; cursor: pointer; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  opacity: 0; transform: translateY(8px) scale(0.92); transform-origin: bottom right; transition: opacity 0.3s ease, transform 0.3s ease;
}
.sig-sent.in { opacity: 1; transform: none; }
.sig-sent:hover, .sig-sent:focus-visible { color: var(--accent); outline: none; }
@media (prefers-reduced-motion: reduce) { .sig-sent { transition: none; } }
@media (max-width: 620px) {
  .sig-sent { right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); }
  .sig-dock { left: 12px; right: 12px; flex-direction: column-reverse; align-items: flex-end; }
  .sig-panel { width: 100%; height: min(520px, calc(var(--sig-vh, 100svh) - 28px)); }
  .sig-dock.open .sig-launcher { display: none; } /* more room for the chat; the panel's × closes it */
  .sig-launcher { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .sig-launcher { transition: none; } }

/* ---- Kō's intro (js/intro.js): flies in, says hello, flies home ---------- */
/* The real mascots stay hidden until the flying one lands on them, then cross-fade in. */
.hero-signal { transition: opacity 0.45s ease; }
html.ko-intro-hide .hero-signal { opacity: 0; visibility: hidden; }
html.ko-intro-hide .sig-launcher { opacity: 0 !important; visibility: hidden !important; } /* no transform: its position is Kō's landing spot */
.ko-intro { position: fixed; inset: 0; z-index: 60; overflow: hidden; cursor: pointer; opacity: 0; transition: opacity 0.5s ease; }
.ko-intro.in { opacity: 1; }
.ko-intro-bg { position: absolute; inset: 0; transition: opacity 0.9s ease; }
.ko-intro.leaving .ko-intro-bg { opacity: 0; } /* the page comes back while Kō flies home */
.ko-intro[data-bg="veil"] .ko-intro-bg { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(8px) saturate(0.75) brightness(0.85); backdrop-filter: blur(8px) saturate(0.75) brightness(0.85); }
.ko-intro[data-bg="solid"] .ko-intro-bg { background: var(--bg); }
.ko-intro[data-bg="ascii"] .ko-intro-bg { background: var(--bg); }
.ko-intro[data-bg="spotlight"] .ko-intro-bg {
  background: radial-gradient(circle at var(--kx, 50%) var(--ky, 50%), transparent 0, transparent var(--kr, 120px), color-mix(in srgb, var(--bg) 90%, transparent) calc(var(--kr, 120px) * 3));
}
.ko-intro[data-bg="clear"] .ko-intro-bg { display: none; }
.ko-intro-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; will-change: transform; } /* its own layer: redrawing it never touches the blurred veil */
html.ko-intro-hold body > :not(.ko-intro) * { animation-play-state: paused !important; } /* nothing moves under the veil, so the blur isn't redone every frame */
.ko-intro-ko { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; transition: opacity 0.45s ease; }
.ko-intro-ko.gone { opacity: 0; }
.ko-intro-gaze { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; }
.ko-intro-bubble {
  position: absolute; left: 0; top: 0; width: min(400px, calc(100vw - 32px)); padding: 16px 18px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--accent); border-radius: 2px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  opacity: 0; transform: translateY(8px) scale(0.92); transform-origin: var(--tail, 50%) 100%; visibility: hidden;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.25, 1.35, .45, 1), visibility 0.3s;
}
.ko-intro-bubble.in { opacity: 1; transform: none; visibility: visible; }
.ko-intro-bubble::after { /* tail down to Kō */
  content: ""; position: absolute; left: var(--tail, 50%); bottom: -8px; width: 14px; height: 14px; margin-left: -7px;
  background: var(--surface); border: solid var(--accent); border-width: 0 1px 1px 0; transform: rotate(45deg);
}
.ko-intro-bubble p { margin: 0; font-size: 1.08rem; line-height: 1.45; }
.ko-intro-bubble strong { font-weight: 700; }
.ko-intro-bubble .sig-noise { color: var(--accent); }
.ko-intro-skip {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px; background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--muted); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: opacity 0.3s ease;
}
.ko-intro-skip:hover, .ko-intro-skip:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }
.ko-intro.leaving .ko-intro-skip { opacity: 0; pointer-events: none; }
