/* Self-hosted fonts (OFL). Shippori Mincho is subset to the characters this site uses. */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/ibm-plex-sans-latin.woff2') format('woff2'); 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 { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-ext.woff2') format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Shippori Mincho'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/shippori-mincho-700.woff2') format('woff2'); }
@font-face { font-family: 'Shippori Mincho'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/shippori-mincho-800.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-400-latin.woff2') format('woff2'); 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 { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); 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; }

/* Kokoveda: 心 (heart) + Veda (knowledge).
   Washi paper, sumi ink, ai indigo and a vermilion seal. Editorial serif headings, square-cut details,
   and one signature: a vermilion heartbeat line. */
:root {
  --paper: #F7F3EC;          /* washi */
  --paper-2: #EFE8DC;
  --surface: #FFFCF7;
  --ink: #1B1A17;            /* sumi */
  --ink-dim: #5F5A52;
  --line: #E2D9CA;
  --line-strong: #CFC4B2;
  --shu: #C8402B;            /* vermilion: seal, heart, links */
  --shu-soft: #F5E2DA;
  --shu-ink: #A8321D;        /* vermilion for small text links on tinted paper */
  --ai: #1D3254;             /* indigo, shared by Japan (aizome) and India */
  --btn: #1B1A17;
  --btn-ink: #F7F3EC;

  /* Indigo band and the live monitor */
  --band: #14223B;
  --band-2: #1B2C4A;
  --band-line: #2C3E5E;
  --band-ink: #EEF1F6;
  --band-dim: #A9B4C6;
  --mon-ink: #9AA3AE;
  --teal: #3BD08F;
  --rose: #FF6B7D;
  --grid-minor: rgba(255, 107, 125, 0.12);
  --grid-major: rgba(255, 107, 125, 0.30);

  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141311; --paper-2: #1B1A17; --surface: #201E1B;
    --ink: #F1ECE3; --ink-dim: #B3AA9C; --line: #322F2A; --line-strong: #46413A;
    --shu: #E2604A; --shu-soft: #3A211B; --btn: #F1ECE3; --btn-ink: #141311;
    --band: #0F1A2E; --band-2: #16243D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141311; --paper-2: #1B1A17; --surface: #201E1B;
  --ink: #F1ECE3; --ink-dim: #B3AA9C; --line: #322F2A; --line-strong: #46413A;
  --shu: #E2604A; --shu-soft: #3A211B; --btn: #F1ECE3; --btn-ink: #141311;
  --band: #0F1A2E; --band-2: #16243D;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-color: var(--paper);
  /* faint washi fibre */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .24  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--shu); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h4 { margin: 0; font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.3rem); line-height: 1.08; font-weight: 800; }
h3 { font-size: 1.28rem; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[lang="ja"] { font-family: var(--serif); font-weight: 800; color: var(--shu); }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; position: relative; }
@media (min-width: 700px) { .wrap { width: min(1200px, 100% - 64px); } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; padding: 14px 24px; border-radius: 2px; border: 1px solid var(--btn); background: var(--btn); color: var(--btn-ink); font: 500 1rem var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--shu); border-color: var(--shu); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; color: var(--shu); border-color: var(--shu); }
.btn-small { padding: 9px 16px; font-size: 0.93rem; }

.eyebrow { display: flex; align-items: baseline; gap: 12px; color: var(--ink-dim); font-size: 0.78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { align-items: center; }
.eyebrow .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--shu); color: #FBF5EC; font-family: var(--serif); font-weight: 800; font-size: 0.95rem; letter-spacing: 0; text-transform: none; line-height: 1; }
.fig { font-family: var(--mono); font-size: 0.78rem; color: var(--shu); margin-right: 6px; letter-spacing: .02em; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 1.32rem; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-dim); font-size: 0.95rem; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px; background: var(--shu); transition: right .25s var(--ease); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { right: 0; }
.menu-btn { display: none; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); border-radius: 2px; padding: 7px 14px; font: 500 0.94rem var(--font); cursor: pointer; margin-left: auto; }
.menu-icon, .menu-icon::before { display: block; width: 14px; height: 1.6px; background: currentColor; position: relative; transition: transform .2s var(--ease); }
.menu-icon::before { content: ""; position: absolute; top: 5px; }
.menu-icon { top: -2.5px; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav-links { gap: 0; }
  .nav-links a:not(.btn) { display: none; }
  .nav.menu-open .nav-links { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.menu-open .nav-links a:not(.btn) { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.05rem; }
  .nav.menu-open .nav-links a:not(.btn)::after { display: none; }
  .nav.menu-open .nav-links .btn { margin-top: 14px; }
  .nav.menu-open .menu-icon { transform: rotate(45deg); top: 0; }
  .nav.menu-open .menu-icon::before { transform: rotate(-90deg); top: 0; }
  .nav-inner { gap: 10px; }
}

/* Hero */
.hero { position: relative; padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 14px; font-size: 0.8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }
.kicker-line { width: 36px; height: 2px; background: var(--shu); }
h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2.5rem, 1.4rem + 3.1vw, 4.15rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 13.5ch; text-wrap: balance; }
h1 em { font-style: normal; color: var(--shu); }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.18rem); color: var(--ink-dim); max-width: 31em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-photo { margin: 0 -2vw 0 0; min-width: 0; position: relative; }
.hero-photo img { width: 104%; max-width: none; margin-left: -2%; filter: drop-shadow(0 24px 30px rgba(60, 45, 30, .10)); }
.hero-photo figcaption { margin-top: 8px; padding-left: 4%; font-size: 0.86rem; color: var(--ink-dim); position: relative; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { margin: 0; }
  .hero-photo img { width: 100%; margin-left: 0; }
  .hero-photo figcaption { padding-left: 0; }
}

/* Signature: the heartbeat line */
.pulse-line { margin-top: clamp(40px, 6vw, 72px); height: 80px; position: relative; z-index: 1; }
.pulse-line svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pulse-line path { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pulse-line .base { stroke: var(--line-strong); }
.pulse-line .run { stroke: var(--shu); stroke-width: 2.2; stroke-dasharray: .16 .84; animation: run 4.8s linear infinite; }
@keyframes run { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.pulse-divider { margin: 0; height: 64px; }

.stats { list-style: none; margin: 0; padding: clamp(20px, 3vw, 36px) 0 clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats li { display: grid; gap: 4px; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.stats b { font-family: var(--serif); font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); font-weight: 800; line-height: 1; }
.stats span { color: var(--ink-dim); font-size: 0.95rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }

/* Sections */
.section { padding-block: clamp(80px, 11vw, 140px); position: relative; }
.section.alt { background: var(--paper-2); }
.section-head { display: grid; gap: 16px; max-width: 50rem; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head p:not(.eyebrow) { color: var(--ink-dim); font-size: 1.12rem; max-width: 42em; }
.fineprint { margin-top: 18px; color: var(--ink-dim); font-size: 0.86rem; }
.subhead { margin-top: clamp(56px, 7vw, 80px); margin-bottom: 20px; }

/* Product figures */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.tile { margin: 0; min-width: 0; display: grid; gap: 12px; align-content: start; }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); background: #CBC8C2; transition: filter .6s var(--ease); }
.tile:hover img { filter: contrast(1.04) saturate(1.05); }
.tile figcaption { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.5; max-width: 52ch; }
.tile figcaption b { color: var(--ink); font-weight: 600; }
.tile-xl { grid-column: span 4; }
.tile:not(.tile-xl) { grid-column: span 2; }
@media (max-width: 760px) { .bento { grid-template-columns: 1fr; } .tile-xl, .tile:not(.tile-xl) { grid-column: auto; } }

.spec-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(64px, 8vw, 96px); }
.spec-grid h3 { margin-bottom: 18px; }
.specs { margin: 0; }
.specs > div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-dim); font-size: 0.95rem; }
.specs dd { margin: 0; font-weight: 500; }
.placement-box { border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 3vw, 32px); border-radius: var(--r); }
.placement-box h3 { margin-bottom: 10px; }
.placement-box p { color: var(--ink-dim); margin-bottom: 8px; }
.placement { width: 100%; height: auto; display: block; }
.placement .body { fill: none; stroke: var(--ink-dim); stroke-width: 2; stroke-linecap: round; opacity: .45; }
.placement .faint { opacity: .18; }
.placement .patch { fill: var(--surface); stroke: var(--ink-dim); stroke-width: 1.2; }
.placement .pod { fill: var(--paper-2); stroke: var(--ink-dim); stroke-width: 1.4; }
.placement .electrode { fill: none; stroke: var(--ai); stroke-width: 1.6; stroke-dasharray: 3 3; }
.placement .beat { fill: none; stroke: var(--shu); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.placement .optic { fill: var(--shu); }
.placement .callouts path { fill: none; stroke: var(--ink-dim); stroke-width: 1.1; stroke-dasharray: 3 4; }
.placement .callouts text { fill: var(--ink); font: 400 14px var(--font); }
@media (max-width: 900px) { .spec-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .specs > div { grid-template-columns: 1fr; gap: 2px; } }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.use { display: grid; align-content: start; gap: 14px; min-width: 0; }
.use img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--r); filter: saturate(.92); transition: filter .5s var(--ease); }
.use:hover img { filter: saturate(1.05); }
.use > div { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--ink); }
.use p { color: var(--ink-dim); font-size: 0.96rem; }
@media (max-width: 960px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .uses { grid-template-columns: 1fr; } }

/* Vitals in motion */
.vitals { display: grid; grid-template-columns: 1fr 300px; grid-template-areas: "acts acts" "mon read"; gap: 20px 28px; align-items: start; }
.acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 10px; }
.act { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 2px; font: 500 0.98rem var(--font); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.act svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act:hover { border-color: var(--shu); color: var(--shu); }
.act.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.monitor-lg { grid-area: mon; }
.readouts { grid-area: read; display: grid; gap: 18px; }
.readouts dl { margin: 0; display: grid; }
.readouts dl > div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.readouts dl > div:last-child { border-bottom: 1px solid var(--line); }
.readouts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.readouts dd { margin: 0; color: var(--ink-dim); }
.readouts b { font-family: var(--serif); font-weight: 800; font-size: 2rem; color: var(--ink); line-height: 1.1; }
#r-cad, #r-q { font-size: 1.3rem; }
#r-q[data-q="good"] { color: #2E8B57; }
#r-q[data-q="fair"] { color: #C27A10; }
.act-note { color: var(--ink-dim); font-size: 0.97rem; min-height: 4.8em; }
@media (max-width: 900px) { .vitals { grid-template-columns: 1fr; grid-template-areas: "acts" "mon" "read"; } .readouts dl { grid-template-columns: 1fr 1fr; column-gap: 20px; } }

/* Indigo app band */
.section.dark { background: var(--band); color: var(--band-ink); background-image: none;
  --ink: var(--band-ink); --ink-dim: var(--band-dim); --line: var(--band-line); --line-strong: var(--band-line); --surface: var(--band-2); --paper-2: var(--band-2);
  --btn: var(--band-ink); --btn-ink: var(--band); --shu: #F07A62; }
.app-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-head .section-head { margin-bottom: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 2px; padding: 3px; }
.seg-btn { border: 0; background: transparent; color: var(--ink-dim); font: 500 0.92rem var(--font); padding: 7px 16px; border-radius: 1px; cursor: pointer; }
.seg-btn.is-on { background: var(--ink); color: var(--band); }
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(40px, 5vw, 60px); }
.phone { margin: 0; display: grid; gap: 12px; min-width: 0; }
.phone img { border-radius: 30px; border: 7px solid #0B1324; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.phone:nth-child(even) { transform: translateY(32px); }
.phone.reveal:nth-child(even):not(.is-in) { transform: translateY(46px); }
.js .phone.reveal.is-in:nth-child(even) { transform: translateY(32px); }
.phone figcaption { font-size: 0.92rem; color: var(--ink-dim); text-align: center; }
@media (max-width: 900px) { .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phone:nth-child(even), .phone.reveal:nth-child(even):not(.is-in), .js .phone.reveal.is-in:nth-child(even) { transform: none; } }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: clamp(72px, 9vw, 104px); }
.features > div { display: grid; gap: 6px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line); }
.features h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.features p { color: var(--ink-dim); font-size: 0.96rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

.report-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(64px, 8vw, 96px); }
.report { margin: 0; }
.report img { border-radius: 2px; background: #fff; transform: rotate(-1.5deg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75); }
.report-copy { display: grid; gap: 16px; min-width: 0; }
.report-copy > p { color: var(--ink-dim); }
@media (max-width: 800px) { .report-row { grid-template-columns: 1fr; } .report { max-width: 420px; } .report img { transform: none; } }

.monitor { margin: 0; background: #070B14; border: 1px solid var(--band-line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; color: var(--mon-ink); --ink-dim: var(--mon-ink); }
.monitor-head { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.monitor-hr { margin-left: auto; }
.monitor-hr b { font-size: 1.5rem; color: var(--teal); font-weight: 500; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
#trace { width: 100%; height: auto; border-radius: 2px; background: #05080F; }
.monitor figcaption { font-size: 0.82rem; }

/* Services: numbered in kanji */
.services { list-style: none; counter-reset: svc; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.services li { counter-increment: svc; padding: 26px 0 30px; border-top: 1px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.services li::before { content: counter(svc, cjk-decimal); font-family: var(--serif); font-weight: 800; color: var(--shu); font-size: 1.6rem; line-height: 1; }
.services p { color: var(--ink-dim); font-size: 0.97rem; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.chain-scroll { overflow-x: auto; margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.chain { width: 100%; min-width: 760px; height: auto; display: block; }
.chain-box rect { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1.3; }
.chain-key rect { stroke: var(--shu); stroke-width: 1.8; }
.chain text { fill: var(--ink); font: 500 15px var(--font); text-anchor: middle; }
.chain .chain-sub { fill: var(--ink-dim); font: 400 11.5px var(--mono); }
.chain-line { fill: none; stroke: var(--ink-dim); stroke-width: 1.3; }
.chain-radio { stroke: var(--shu); stroke-dasharray: 5 5; }
.chain-arrow { fill: var(--ink-dim); }

/* Process */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(step, cjk-decimal); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--shu); color: #FBF5EC; font-family: var(--serif); font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; }
.steps p { color: var(--ink-dim); font-size: 0.96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.engage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.engage > div { padding-top: 18px; border-top: 1px solid var(--ink); display: grid; gap: 8px; align-content: start; }
.engage h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.engage p { color: var(--ink-dim); font-size: 0.96rem; }
@media (max-width: 800px) { .engage { grid-template-columns: 1fr; } }
.note { margin-top: 32px; padding: 16px 20px; border-left: 3px solid var(--shu); background: var(--surface); color: var(--ink); max-width: 72ch; font-size: 0.97rem; }

/* Progress */
.status { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.status-col { border-top: 1px solid var(--ink); padding: 22px 0 0; display: grid; gap: 14px; align-content: start; min-width: 0; }
.status-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status-done { border-top-color: var(--shu); border-top-width: 3px; }
.status-done .status-dot { background: var(--shu); }
.status-now .status-dot { background: #D99A2B; }
.status-next .status-dot { border: 2px solid var(--ink-dim); }
.status ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.status li { padding-left: 22px; position: relative; color: var(--ink-dim); font-size: 0.97rem; }
.status li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1.5px; background: var(--ink-dim); opacity: .6; }
.status-done li { color: var(--ink); }
.status-done li::before { content: "\2713"; top: 0; width: auto; height: auto; background: none; opacity: 1; color: var(--shu); font-weight: 700; }
@media (max-width: 900px) { .status { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--font); font-weight: 300; font-size: 1.7rem; color: var(--shu); line-height: 1.2; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-dim); padding: 0 40px 22px 0; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about > div { display: grid; gap: 18px; }
.about > div p:not(.eyebrow) { color: var(--ink-dim); font-size: 1.08rem; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; }
.principles li { padding: 20px 0; border-top: 1px solid var(--line-strong); color: var(--ink-dim); }
.principles li:last-child { border-bottom: 1px solid var(--line-strong); }
.principles b { color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.12rem; display: block; margin-bottom: 4px; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* Contact */
.section.cta { background: var(--paper-2); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact > div { min-width: 0; display: grid; gap: 18px; }
.contact-lede { color: var(--ink-dim); font-size: 1.12rem; }
.good-fit { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.good-fit li { padding-left: 28px; position: relative; }
.good-fit li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 3px; background: var(--shu); box-shadow: inset 0 0 0 3px var(--paper-2); outline: 1px solid var(--shu); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; min-width: 0; box-shadow: 0 40px 70px -55px rgba(27, 26, 23, .5); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--line-strong); border-radius: 0; padding: 9px 2px; width: 100%; transition: border-color .15s; }
.field select { background: transparent; }
.field textarea { resize: vertical; border: 1.5px solid var(--line-strong); padding: 10px 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--shu); }
.field [aria-invalid="true"] { border-color: var(--shu); }
.form .btn { justify-self: start; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: 0.92rem; color: var(--ink-dim); min-height: 1.4em; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 70%, transparent); padding-block: 48px 36px; font-size: 0.92rem; }
.footer .brand { color: var(--paper); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer-brand { display: grid; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: color-mix(in srgb, var(--paper) 75%, transparent); text-decoration: none; }
.footer-links a:hover { color: var(--paper); }
.footer-legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); font-size: 0.84rem; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* Reveal on scroll, only with JavaScript and when motion is welcome */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .phone:nth-child(even) { transform: translateY(32px); }
  .pulse-line .run { animation: none; stroke-dasharray: none; }
  .live-dot { animation: none; }
}
@media (max-width: 420px) { .brand-name { font-size: 1.15rem; } .nav .btn-small { padding: 8px 12px; } }

/* Theme toggle */
.theme-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; padding: 0; transition: border-color .2s, color .2s; }
.theme-btn:hover { border-color: var(--shu); color: var(--shu); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun { display: none; }
.theme-btn.is-dark .sun { display: inline; }
.theme-btn.is-dark .moon { display: none; }
@media (max-width: 820px) { .theme-btn { margin-left: auto; width: 36px; height: 36px; } .menu-btn { margin-left: 0; } }

/* 3D viewer */
.viewer-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(56px, 7vw, 88px); }
.viewer { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); background: radial-gradient(ellipse at 50% 40%, var(--surface), var(--paper-2)); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.viewer-poster { width: 86%; opacity: .9; transition: opacity .4s; }
.viewer-btn { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); }
.viewer-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.viewer model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; --poster-color: transparent; }
.viewer.is-3d model-viewer { opacity: 1; }
.viewer.is-3d .viewer-poster, .viewer.is-3d .viewer-btn { opacity: 0; pointer-events: none; }
.viewer-copy { display: grid; gap: 12px; }
.viewer-copy p:not(.fineprint) { color: var(--ink-dim); }
@media (max-width: 860px) { .viewer-row { grid-template-columns: 1fr; } }

/* Engagement durations and standards */
.engage { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .engage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .engage { grid-template-columns: 1fr; } }
.engage-time { font-family: var(--mono); font-size: 0.78rem; color: var(--shu); letter-spacing: .02em; }
.subhead-lede { color: var(--ink-dim); max-width: 60ch; margin: -8px 0 24px; }
.standards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.standards li { background: var(--surface); padding: 20px 20px 22px; display: grid; gap: 6px; align-content: start; }
.standards b { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.standards span { color: var(--ink-dim); font-size: 0.93rem; line-height: 1.5; }
@media (max-width: 1000px) { .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .standards { grid-template-columns: 1fr; } }

/* Contact extras */
.contact-extra { display: grid; gap: 14px; margin-top: 10px; }
.sheet { display: inline-flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; justify-self: start; transition: border-color .2s; }
.sheet:hover { border-color: var(--shu); }
.sheet svg { width: 26px; height: 26px; fill: none; stroke: var(--shu); stroke-width: 1.5; stroke-linejoin: round; flex: none; }
.sheet span { display: grid; }
.sheet small { color: var(--ink-dim); font-size: 0.84rem; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; }
.quick[hidden], .quick [hidden] { display: none; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-dim); }
.reply { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.reply legend { font-size: 0.82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; padding: 0; width: 100%; }
.reply label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.97rem; cursor: pointer; }
.reply input { accent-color: var(--shu); width: 16px; height: 16px; }

/* Articles */
.article-hero { padding-block: clamp(48px, 7vw, 96px) clamp(24px, 3vw, 40px); }
.crumbs { font-size: 0.86rem; color: var(--ink-dim); margin-bottom: 22px; }
.crumbs a { color: var(--ink-dim); }
.article-hero h1 { max-width: 22ch; font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); }
.article-hero .lede { margin-top: 18px; }
.article-meta { margin-top: 18px; font-family: var(--mono); font-size: 0.84rem; color: var(--ink-dim); }
.prose { max-width: 70ch; padding-bottom: clamp(64px, 8vw, 110px); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); vertical-align: top; }
.prose th { font-weight: 600; background: var(--paper-2); }
.prose .callout { padding: 16px 20px; border-left: 3px solid var(--shu); background: var(--surface); }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--r); }
.prose figcaption { font-size: 0.88rem; color: var(--ink-dim); margin-top: 8px; }
.table-scroll { overflow-x: auto; }
.article-cta { margin-top: 2.4em; padding: 24px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r); display: grid; gap: 12px; }
.article-cta .btn { justify-self: start; }
.posts { list-style: none; margin: 0; padding: 0 0 clamp(64px, 8vw, 110px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.posts a { display: grid; gap: 10px; align-content: start; height: 100%; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.posts a:hover { border-color: var(--shu); transform: translateY(-2px); }
.posts h2, .posts h3 { font-size: 1.4rem; line-height: 1.2; font-weight: 700; }
.posts p { color: var(--ink-dim); font-size: 0.97rem; }
.posts .post-meta { font-family: var(--mono); font-size: 0.8rem; color: var(--shu); }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }
.reply label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.97rem; color: var(--ink); }
@media (max-width: 480px) { .menu-btn { font-size: 0; gap: 0; padding: 10px 11px; } .theme-btn { width: 34px; height: 34px; } .nav-inner { gap: 8px; } }
.sheet b { overflow-wrap: anywhere; }
.more { display: flex; width: fit-content; gap: 6px; margin-top: 10px; font-weight: 500; font-size: 0.94rem; text-decoration: none; color: var(--shu); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
#insights .posts { padding-bottom: 0; }
.subhead-lede a, .fineprint a, .more, .prose a, .crumbs a:hover { color: var(--shu-ink); }
:root[data-theme="dark"] { --shu-ink: #F07A63; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shu-ink: #F07A63; } }

/* Develop Hridya */
.why3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin-top: clamp(40px, 5vw, 56px); }
.why3 > div { border-top: 1px solid var(--ink); padding-top: 20px; display: grid; gap: 8px; align-content: start; }
.why3 p { color: var(--ink-dim); font-size: 0.97rem; }
.develop-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 44px); }
.engage a { color: var(--shu-ink); }
@media (max-width: 760px) { .why3 { grid-template-columns: 1fr; } }
.why3 a { color: var(--shu-ink); }
/* Products we have built */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-card { display: grid; gap: 10px; align-content: start; padding: 0 0 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.work-card:hover { border-color: var(--shu); transform: translateY(-2px); }
.work-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-2); }
.work-card > :not(img) { margin-inline: 24px; }
.work-card p { color: var(--ink-dim); font-size: 0.97rem; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shots img { border-radius: 14px; border: 1px solid var(--line); }
/* Contrast: buttons inside prose keep button colours; links in section intros use the darker red */
.prose a.btn { color: var(--btn-ink); }
.prose a.btn:hover { color: #fff; }
.prose a.btn-ghost { color: var(--ink); }
.prose a.btn-ghost:hover { color: var(--shu); }
.section-head p a { color: var(--shu-ink); }
