/* Hallmark · genre: modern-minimal · macrostructure: Workbench · theme: studied-DNA (source: Stash site/page.html) · enrichment: none (live CSS/JS demos) · nav: N5 · footer: Ft5 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 */

:root {
  color-scheme: light;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --color-paper:     oklch(97.6% 0.006 60);
  --color-paper-2:   oklch(94.6% 0.009 60);
  --color-rule:      oklch(88.5% 0.009 60);
  --color-ink:       oklch(21% 0.012 40);
  --color-muted:     oklch(46% 0.012 50);
  --color-accent:    oklch(56% 0.21 24);
  --color-accent-2:  oklch(50% 0.21 24);
  --color-on-accent: oklch(98.5% 0.008 24);
  --color-focus:     oklch(56% 0.21 24);
  --color-accent-on-dark: oklch(74% 0.15 24);
  --color-live:      oklch(74% 0.16 152);

  /* dark working panel, same as Stash's app panel */
  --panel-bg:    oklch(22% 0.012 285);
  --panel-bar:   oklch(18.5% 0.012 285);
  --panel-card:  oklch(28% 0.013 285);
  --panel-ink:   oklch(96% 0.006 285);
  --panel-muted: oklch(74% 0.012 285);
  --panel-rule:  oklch(36% 0.012 285);

  /* one hue per department, lifted from Stash's accent options */
  --d-kd: oklch(80.3% 0.152 80);    /* Kinh doanh */
  --d-mk: oklch(68.6% 0.192 358);   /* Marketing */
  --d-vh: oklch(64.6% 0.187 256);   /* Vận hành */
  --d-ns: oklch(70.0% 0.161 152);   /* Nhân sự & Tài chính */

  --shadow-soft:  oklch(30% 0.04 40 / .25);
  --shadow-panel: oklch(25% 0.05 285 / .55);
  --fade-mask: linear-gradient(to bottom, oklch(0% 0 0) 72%, oklch(0% 0 0 / 0));

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  background: var(--color-paper); color: var(--color-ink);
  font: 400 1.0625rem/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul, ol, blockquote, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 6px; }
:target, [id] { scroll-margin-top: 5.5rem; }

.wrap { width: min(100% - clamp(2rem, 8vw, 5rem), 72rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; z-index: 20; left: 1rem; top: -4rem; padding: .5rem 1rem; border-radius: 999px;
  background: var(--color-ink); color: var(--color-paper); text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.032em; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: clamp(2.5rem, 5.4vw + .4rem, 4.75rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 2.6vw + 1rem, 2.75rem); line-height: 1.08; }
h3 { font-size: clamp(1.375rem, 1.4vw + 1rem, 1.875rem); line-height: 1.15; letter-spacing: -0.026em; }
.lede { font-size: clamp(1.0625rem, .5vw + 1rem, 1.25rem); line-height: 1.5; color: var(--color-muted); max-width: 38rem; }
.muted { color: var(--color-muted); }
.small { font-size: .875rem; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.75rem; padding-inline: 1.25rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: .96875rem; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn-primary:hover { background: var(--color-accent-2); }
.btn-ghost { border-color: var(--color-rule); background: transparent; }
.btn-ghost:hover { border-color: var(--color-muted); }
.btn-sm { height: 2.25rem; padding-inline: 1rem; font-size: .875rem; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.chip:active, .seg button:active, .link:active { transform: translateY(1px); }
.link { padding: 0; border: 0; background: none; font-weight: 500; color: var(--color-accent-2); text-decoration: underline; text-underline-offset: 3px; }

.key {
  display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .5rem;
  font: 500 .8125rem/1 var(--font-mono); color: var(--color-ink); white-space: nowrap;
  background: var(--color-paper); border: 1px solid var(--color-rule); border-bottom-width: 3px; border-radius: .5rem;
}

/* monogram tile — each AI employee's face, coloured by department */
.mono {
  display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: .625rem;
  background: var(--dc); color: var(--panel-bar); font: 500 .75rem/1 var(--font-mono); letter-spacing: .02em;
}
.d-kd { --dc: var(--d-kd); }
.d-mk { --dc: var(--d-mk); }
.d-vh { --dc: var(--d-vh); }
.d-ns { --dc: var(--d-ns); }

/* ---------- N5 floating pill nav ---------- */
.nav {
  position: fixed; z-index: 10; top: 1rem; left: 0; right: 0; margin-inline: auto; width: max-content;
  display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem);
  max-width: calc(100% - 1.5rem); padding: .375rem .375rem .375rem 1rem;
  background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: 999px;
  box-shadow: 0 8px 24px -12px var(--shadow-soft);
}
.nav > * { flex: none; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand img { width: 1.5rem; height: 1.5rem; }
.nav-links { display: flex; gap: 1.25rem; font-size: .9375rem; }
.nav-links a { text-decoration: none; color: var(--color-muted); white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-ink); }
.nav .narrow { display: none; }
@media (max-width: 39.99rem) {
  .nav { padding-left: .75rem; }
  .nav .wide { display: none; }
  .nav .narrow { display: inline; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(6.5rem, 12vw, 9rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: end; }
.hero-side { display: grid; gap: var(--space-6); justify-items: start; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.req { font-size: .875rem; color: var(--color-muted); }
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-16); }
}

.crumbs { margin-bottom: var(--space-6); font-size: .875rem; color: var(--color-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.crumbs li { white-space: nowrap; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--color-rule); }
.crumbs a { text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.crumbs a:hover { color: var(--color-ink); }

/* ---------- stage + dark panel ---------- */
.stage { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding: clamp(.75rem, 3vw, 2.5rem); background: var(--color-paper-2); border-radius: clamp(1.25rem, 3vw, 2rem); }
.panel {
  position: relative; overflow: hidden; color: var(--panel-ink);
  background: var(--panel-bg); border: 1px solid var(--panel-rule); border-radius: clamp(1.1rem, 2vw, 1.5rem);
  box-shadow: 0 30px 60px -24px var(--shadow-panel);
}
.p-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .875rem 1.125rem; border-bottom: 1px solid var(--panel-rule); }
.p-title { font-size: .9375rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 1.125rem; font-size: .875rem; color: var(--color-muted); }
.stage-bar .small { display: flex; align-items: center; gap: .75rem; }
.stage-bar .key { min-width: auto; height: 1.75rem; font: 500 .8125rem/1 var(--font-sans); }

.chips { display: none; gap: .25rem; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.js .chips { display: flex; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; isolation: isolate; flex: none; height: 1.75rem; padding: 0 .75rem; border: 0; border-radius: 999px; background: transparent;
  font-size: .75rem; font-weight: 500; color: var(--panel-muted); white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}
.chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--panel-ink);
  opacity: 0; transform: scale(.85);
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.chip:hover { color: var(--panel-ink); }
.chip[aria-pressed="true"] { color: var(--panel-bar); }
.chip[aria-pressed="true"]::before { opacity: 1; transform: none; }
.count { margin-left: auto; padding: .125rem .625rem; border-radius: 999px; background: var(--panel-card); font-size: .75rem; color: var(--panel-muted); white-space: nowrap; }
.count b { font-weight: 600; color: var(--panel-ink); }

/* home: live work board */
.feed {
  display: flex; flex-direction: column; gap: .375rem; height: 21rem; overflow: hidden; padding: .75rem;
  -webkit-mask-image: var(--fade-mask); mask-image: var(--fade-mask);
}
.ev {
  flex: none; display: grid; grid-template-columns: auto minmax(0, 6.5rem) minmax(0, 1fr) auto 2.75rem; align-items: center; gap: .75rem;
  min-height: 3rem; padding: .5rem .5rem .5rem .625rem; border-radius: .875rem;
  background: var(--panel-card); border: 1px solid var(--panel-rule); font-size: .875rem;
}
.ev-who { font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-who:hover { text-decoration: underline; text-underline-offset: 3px; }
.ev-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-st {
  display: inline-grid; place-items: center; height: 1.75rem; padding: 0 .75rem; border: 0; border-radius: 999px;
  background: var(--panel-bg); font-size: .75rem; font-weight: 500; color: var(--panel-muted); white-space: nowrap;
}
.ev-st[data-st="lam"] { color: var(--panel-ink); animation: pulse 1.6s var(--ease-in-out) infinite; }
.ev-ok { background: var(--color-accent); color: var(--color-on-accent); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.ev-ok:hover { background: var(--color-accent-2); }
.ev-ok:active { transform: translateY(1px); }
.ev-time { justify-self: end; font: 500 .75rem/1 var(--font-mono); color: var(--panel-muted); }
@media (max-width: 39.99rem) {
  .feed { height: 23rem; }
  .ev { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "m who st" "m text st"; row-gap: .125rem; }
  .ev .mono { grid-area: m; }
  .ev-who { grid-area: who; }
  .ev-text { grid-area: text; white-space: normal; color: var(--panel-muted); }
  .ev-st { grid-area: st; }
  .ev-time { display: none; }
}

/* detail: work session + profile */
.desk .p-title { display: grid; line-height: 1.3; white-space: normal; min-width: 0; flex: 1 1 10rem; }
.desk .p-title span { font-size: .75rem; font-weight: 400; color: var(--panel-muted); }
.live { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--panel-muted); white-space: nowrap; }
.live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--color-live); animation: pulse 2s var(--ease-in-out) 2; }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.chat {
  display: flex; flex-direction: column; gap: .625rem; height: clamp(22rem, 52vh, 26rem); padding: 1.25rem;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--panel-rule) transparent;
}
.chat > :first-child { margin-top: auto; }
.msg { display: grid; gap: .25rem; max-width: min(88%, 30rem); }
.msg p { padding: .625rem .875rem; border-radius: 1.125rem; font-size: .9375rem; line-height: 1.45; }
.msg-who { padding-inline: .5rem; font-size: .6875rem; color: var(--panel-muted); }
.msg-in { align-self: flex-start; }
.msg-in p { background: var(--panel-card); border-bottom-left-radius: .375rem; }
.msg-out { align-self: flex-end; justify-items: end; }
.msg-out p { background: var(--dc); color: var(--panel-bar); border-bottom-right-radius: .375rem; }
.msg-act, .msg-hand { align-self: center; justify-items: center; max-width: 100%; text-align: center; }
.msg-act p { padding: .3125rem .875rem; border: 1px dashed var(--panel-rule); border-radius: 999px; font: 500 .75rem/1.5 var(--font-mono); color: var(--panel-muted); }
.msg-hand .msg-who { color: var(--color-accent-on-dark); }
.msg-hand p { border: 1px solid var(--color-accent-on-dark); font-size: .8125rem; }
.msg.typing p { letter-spacing: .2em; animation: pulse 1s var(--ease-in-out) infinite; }

.profile { padding: 1.25rem; border-top: 1px solid var(--panel-rule); font-size: .875rem; }
.profile-title { margin-bottom: .5rem; font-size: .75rem; color: var(--panel-muted); }
.profile dl > div { display: grid; gap: .25rem; padding-block: .75rem; border-top: 1px solid var(--panel-rule); }
.profile dt { font-size: .75rem; color: var(--panel-muted); }
.profile dd ul { display: grid; gap: .25rem; }
@media (min-width: 60rem) {
  .desk-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .profile { border-top: 0; border-left: 1px solid var(--panel-rule); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 44rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.split .section-head { margin-bottom: 0; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-16); } }

/* comparison tables */
.table-wrap { min-width: 0; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.cmp caption { padding-bottom: 1rem; text-align: left; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.cmp th, .cmp td { padding: .875rem .75rem; text-align: left; vertical-align: top; border-top: 1px solid var(--color-rule); }
.cmp th:first-child { padding-left: 0; }
.cmp thead th { padding-top: .5rem; border-top: 0; font-size: .8125rem; font-weight: 500; color: var(--color-muted); }
.cmp tbody th { width: 30%; font-weight: 500; color: var(--color-muted); }
.cmp td:last-child, .cmp thead th:last-child { background: var(--color-paper-2); font-weight: 500; }
.cmp thead th:last-child { border-radius: .75rem .75rem 0 0; color: var(--color-ink); }
.cmp tbody tr:last-child td:last-child { border-radius: 0 0 .75rem .75rem; }
.cmp.wide-first tbody th { width: 46%; color: var(--color-ink); }
.cmp.wide-first td:last-child, .cmp.wide-first thead th:last-child { background: none; }
.cmp.wide-first td:nth-child(2) { font-weight: 500; }
@media (max-width: 39.99rem) { .cmp { font-size: .875rem; } .cmp th, .cmp td { padding-inline: .5rem; } }

/* how it works: alternating rows (Stash's feature rows) */
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: center; padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--color-rule); }
.row-text { display: grid; gap: var(--space-4); max-width: 30rem; }
.row-visual { min-width: 0; padding: clamp(1rem, 3vw, 2rem); background: var(--color-paper-2); border-radius: 1.5rem; }
@media (min-width: 60rem) {
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-16); }
  .row.flip .row-text { order: 2; }
  .row.flip .row-visual { order: 1; }
}
.step-tag { display: block; margin-bottom: .75rem; font: 500 .8125rem/1 var(--font-mono); letter-spacing: 0; color: var(--color-accent-2); }

.vis { display: grid; gap: 1rem; }
.vis-title { display: flex; align-items: center; gap: .625rem; font-size: .875rem; font-weight: 600; }
.vis-title .mono { width: 1.75rem; height: 1.75rem; border-radius: .5rem; font-size: .6875rem; }

.learn li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .625rem; border-top: 1px solid var(--color-rule); font-size: .9375rem; }
.learn-st { display: grid; flex: none; font-size: .8125rem; color: var(--color-muted); }
.learn-st > * { grid-area: 1 / 1; text-align: right; transition: opacity var(--dur-long) var(--ease-out); transition-delay: calc(var(--i) * 450ms + 300ms); }
.learn-st .a { display: none; }
.learn-st .b { font-weight: 500; color: var(--color-ink); }
.js .learn-st .a { display: block; }
.js .learn-st .b, .js .in .learn-st .a { opacity: 0; }
.js .in .learn-st .b { opacity: 1; }

.tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.tools li { position: relative; isolation: isolate; padding: .375rem .75rem; border: 1px solid var(--color-rule); border-radius: 999px; background: var(--color-paper); font-size: .875rem; white-space: nowrap; }
.tools li::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--color-ink); opacity: 0; }
.js .in .tools li, .js .in .tools li::before { animation: ping 700ms var(--ease-in-out) backwards; animation-delay: calc(var(--s) * 280ms + 300ms); }
.js .in .tools li { animation-name: ping-ink; }
@keyframes ping { 0%, 100% { opacity: 0; } 40% { opacity: 1; } }
@keyframes ping-ink { 0%, 100% { color: var(--color-ink); } 40% { color: var(--color-paper); } }

.log { position: relative; display: grid; gap: .75rem; padding-left: 1.5rem; }
.log::before { content: ""; position: absolute; left: .3125rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--color-rule); transform-origin: top; }
.log li { position: relative; display: flex; gap: .875rem; font-size: .9375rem; }
.log li::before { content: ""; position: absolute; left: -1.5rem; top: .4375rem; width: .6875rem; height: .6875rem; border-radius: 50%; background: var(--color-paper); border: 2px solid var(--color-accent); }
.log time { flex: none; font: 500 .8125rem/1.7 var(--font-mono); color: var(--color-muted); }
.js .log::before { transform: scaleY(0); transition: transform 1.6s var(--ease-out) .2s; }
.js .in .log::before { transform: none; }
.js .log li { opacity: 0; transform: translateY(6px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i) * 280ms + 200ms); }
.js .in .log li { opacity: 1; transform: none; }

.approve-what { font-size: .9375rem; color: var(--color-muted); }
.approve blockquote { padding: 1rem 1.125rem; border: 1px solid var(--color-rule); border-radius: 1rem; background: var(--color-paper); }
.approve-act { display: flex; flex-wrap: wrap; gap: .5rem; }
.approve-done { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; min-height: 2.25rem; font-size: .9375rem; animation: rise var(--dur-long) var(--ease-out); }

/* team overview by department */
.depts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8) var(--space-6); }
.dept { padding-top: 1rem; border-top: 2px solid var(--dc); }
.dept h3 { margin-bottom: .75rem; font-size: 1.125rem; letter-spacing: -0.015em; }
.dept ul { display: grid; gap: .125rem; }
.dept a {
  display: flex; align-items: center; gap: .75rem; padding: .5rem; margin-inline: -.5rem; border-radius: .875rem;
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: transform var(--dur-short) var(--ease-out);
}
.dept a:hover { transform: translateX(4px); }
.more { margin-top: var(--space-12); }
@media (min-width: 40rem) { .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .depts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* definition lists (Stash's "small things") */
.things { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--space-16); }
.thing { display: grid; gap: .375rem; padding-block: 1.5rem; border-top: 1px solid var(--color-rule); }
.thing dt { font-weight: 600; letter-spacing: -0.01em; }
.thing dd { max-width: 30rem; color: var(--color-muted); }
@media (min-width: 48rem) { .things { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- roster ---------- */
.roster { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.seg { display: flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: 1.25rem; }
.seg button {
  position: relative; isolation: isolate; flex: 1 1 auto; height: 2.5rem; padding: 0 .875rem; border: 0; border-radius: 1rem; background: transparent;
  font-size: .875rem; font-weight: 500; color: var(--color-muted); white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}
.seg button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--color-ink); opacity: 0; transform: scale(.9); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.seg button:hover { color: var(--color-ink); }
.seg button[aria-pressed="true"] { color: var(--color-paper); }
.seg button[aria-pressed="true"]::before { opacity: 1; transform: none; }
.seg .n { margin-left: .25rem; font: 500 .75rem var(--font-mono); }
.filter { display: none; margin-bottom: var(--space-6); }
.js .filter { display: flex; }

.team { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.emp {
  position: relative; display: flex; flex-direction: column; gap: .75rem; padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: 1.5rem;
  transition: border-color var(--dur-short) var(--ease-out);
}
.emp:hover { border-color: var(--dc); }
.emp-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .8125rem; color: var(--color-muted); }
.emp-name { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.022em; }
.emp-name a { text-decoration: none; }
.emp-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.emp-sum { font-size: .9375rem; color: var(--color-muted); }
.emp-tasks { display: grid; gap: .375rem; font-size: .875rem; }
.emp-tasks li { position: relative; padding-left: 1rem; }
.emp-tasks li::before { content: ""; position: absolute; left: 0; top: .72em; width: .4375rem; height: 1px; background: var(--color-muted); }
.emp-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--color-rule); font-size: .8125rem; color: var(--color-muted); }
.emp-go { font-weight: 500; color: var(--color-ink); white-space: nowrap; transition: transform var(--dur-short) var(--ease-out); }
.emp:hover .emp-go { transform: translateX(3px); }
@supports selector(:has(a)) {
  .emp:has(.emp-name a:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
  .emp-name a:focus-visible { outline: none; }
}
@media (min-width: 40rem) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* problem -> employee */
.pick { border-bottom: 1px solid var(--color-rule); }
.pick li { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: .75rem; padding-block: 1.25rem; border-top: 1px solid var(--color-rule); }
.pick p { font-size: 1.125rem; letter-spacing: -0.012em; }
.pick a {
  display: inline-flex; align-items: center; gap: .75rem; justify-self: start; max-width: 100%;
  padding: .375rem 1rem .375rem .375rem; border: 1px solid var(--color-rule); border-radius: 999px;
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: transform var(--dur-short) var(--ease-out);
}
.pick a:hover { transform: translateX(4px); }
.pick a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .mono { width: 1.75rem; height: 1.75rem; border-radius: 999px; font-size: .6875rem; }
@media (max-width: 29.99rem) { .pick a { gap: .5rem; padding-right: .75rem; font-size: .8125rem; } }
@media (min-width: 48rem) { .pick li { grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: var(--space-8); } }

/* ---------- detail ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8) var(--space-6); }
.step { position: relative; display: grid; align-content: start; gap: .625rem; padding-top: 1.5rem; border-top: 1px solid var(--color-rule); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--color-ink); transform-origin: left; }
.js .step::before { transform: scaleX(0); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i) * 220ms + 150ms); }
.js .step.in::before { transform: none; }
.step-no { font: 500 .8125rem/1 var(--font-mono); color: var(--color-muted); }
.step h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.step p { color: var(--color-muted); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8) var(--space-12); }
.col h3 { margin-bottom: .5rem; font-size: 1.125rem; letter-spacing: -0.015em; }
.col li { padding-block: .75rem; border-top: 1px solid var(--color-rule); color: var(--color-muted); }
@media (min-width: 48rem) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- faq ---------- */
.faq { border-bottom: 1px solid var(--color-rule); }
.faq details { border-top: 1px solid var(--color-rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem;
  font-size: 1.125rem; font-weight: 500; letter-spacing: -0.015em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .625rem; height: .625rem; margin-right: .25rem;
  border-right: 2px solid var(--color-muted); border-bottom: 2px solid var(--color-muted); rotate: 45deg;
  transition: rotate var(--dur-short) var(--ease-out);
}
.faq details[open] summary::after { rotate: -135deg; }
.faq p { max-width: 38rem; padding-bottom: 1.5rem; color: var(--color-muted); }
.faq details[open] p { animation: rise var(--dur-long) var(--ease-out); }

/* ---------- final cta ---------- */
.get { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: center; padding: clamp(1.5rem, 5vw, 4rem); background: var(--color-paper-2); border-radius: clamp(1.25rem, 3vw, 2rem); }
.get-text { display: grid; gap: var(--space-4); justify-items: start; }
.get-tiles { display: grid; grid-template-columns: repeat(4, 2.75rem); gap: .5rem; }
.get-tiles .mono { width: 2.75rem; height: 2.75rem; border-radius: .875rem; font-size: .8125rem; }
.get-tiles.one { grid-template-columns: auto; }
.get-tiles.one .mono { width: clamp(5rem, 14vw, 8.5rem); height: clamp(5rem, 14vw, 8.5rem); border-radius: 28%; font-size: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 24px 40px -20px var(--shadow-soft); }
.js .get-tiles .mono { opacity: 0; transform: scale(.6); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i) * 45ms + 150ms); }
.js .get.in .get-tiles .mono { opacity: 1; transform: none; }
@media (min-width: 48rem) { .get { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-16); } }

/* ---------- Ft5 statement footer ---------- */
.foot { padding-block: clamp(3rem, 8vw, 6rem) var(--space-8); }
.foot-line { max-width: 22ch; overflow-wrap: anywhere; min-width: 0; font-size: clamp(1.5rem, 3.4vw + .5rem, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: clamp(2rem, 5vw, 4rem); padding-top: 1.25rem; border-top: 1px solid var(--color-rule); font-size: .875rem; color: var(--color-muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.foot-links a { text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.foot-links a:hover { color: var(--color-ink); }

/* ---------- motion ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pulse { 50% { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv { opacity: 1; transform: none; }
}
