/* ==========================================================================
   CAnDI Process Library — platform styles
   A data-driven research workflow platform.
   Built on the CAnDI Design System: electric blue (#0000FF) on warm paper,
   Aharoni display + Aptos Mono, sharp corners, 2px borders, no shadows.
   ========================================================================== */

@font-face {
  font-family: "Aharoni";
  src: url("../assets/fonts/Aharoni-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aptos Mono";
  src: url("../assets/fonts/Aptos-Mono.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --blue: #0000FF;
  --paper: #faf9f5;
  --ink: #0a0a0a;
  --blue-tint: #0000FF14;
  --blue-tint-2: #0000FF0a;
  --red: #d23a3a;
  --font-display: "Aharoni", "Arial Rounded MT Bold", "M PLUS Rounded 1c", system-ui, sans-serif;
  --font-mono: "Aptos Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 200ms;
  --dur-fast: 120ms;
  --gx: 56px;       /* page gutter */
  --maxw: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

::selection { background: var(--blue); color: var(--paper); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700; color: var(--blue);
  margin: 0; letter-spacing: -0.01em; line-height: 1.04;
}
p { margin: 0; }
em, .ital { font-style: italic; }

.spell {
  text-decoration: underline wavy var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.mono { font-family: var(--font-mono); }

.meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; line-height: 1.4;
}

/* -- Top nav -------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px var(--gx);
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--blue);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 47px; width: auto; }
.nav__links {
  display: flex; gap: 10px; align-items: center;
  padding: 0; border: none; border-radius: 0; background: none;
}
.nav__group {
  display: flex; gap: 2px; align-items: center;
  padding: 5px; border: 2px solid var(--blue); border-radius: 999px; background: var(--paper);
}
.nav__link {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 8px 15px; border-radius: 999px; color: var(--blue);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease); white-space: nowrap;
}
.nav__link:hover { background: var(--blue-tint); }
.nav__link[aria-current="page"] { background: var(--blue); color: var(--paper); }
.nav__cta-wrap { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav__meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink); text-align: right; line-height: 1.45; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 22px; border: 2px solid var(--blue); background: var(--blue); color: var(--paper);
  cursor: pointer; transition: opacity var(--dur-fast) var(--ease);
}
.btn:hover { opacity: 0.82; }
.btn:active { opacity: 0.6; }
.btn--ghost { background: var(--paper); color: var(--blue); }
.btn .arrow { display: inline-block; transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }

main { padding-top: 70px; }
.wrap { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px;
  border: 2px solid var(--blue); border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); background: var(--paper);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; background: var(--blue); border-radius: 999px;
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.35;transform:scale(.65);} }

.tag {
  display: inline-flex; align-items: center; padding: 4px 11px; border: 2px solid var(--blue);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ==========================================================================
   PAGE HEADER (block + utility pages)
   ========================================================================== */
.phead { padding: 64px var(--gx) 0; }
.phead__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding-bottom: 28px; flex-wrap: wrap;
}
.crumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.crumb a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.crumb a:hover { opacity: .65; }

.block-hero { padding: 24px var(--gx) 56px; border-bottom: 2px solid var(--blue); }
.block-hero__row { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 56px; align-items: end; }
.block-hero__id {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.block-hero h1 { font-size: clamp(56px, 8vw, 124px); line-height: 0.92; letter-spacing: -0.025em; }
.block-hero h1 em { font-style: italic; }
.block-hero__lede {
  font-family: var(--font-mono); font-size: 15px; color: var(--ink); line-height: 1.6;
  border-left: 2px solid var(--blue); padding-left: 20px;
}
.block-hero__stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.block-hero__stat .n { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.block-hero__stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-top: 6px; }

/* Centered, stacked block hero */
.block-hero--center { padding: 64px var(--gx) 56px; text-align: center; }
.block-hero--center .block-hero__id { margin-bottom: 14px; }
.block-hero--center .block-hero__lede {
  border-left: none; padding-left: 0; margin: 24px auto 0; max-width: 60ch;
}
.block-hero--center .block-hero__stats { justify-content: center; }
.block-hero--center .block-hero__stat { text-align: center; }

/* ==========================================================================
   PHASE TABS  (one phase visible at a time inside a block)
   ========================================================================== */
.ptabs {
  position: sticky; top: 70px; z-index: 50;
  display: flex; justify-content: center;
  background: var(--paper); border-bottom: 2px solid var(--blue);
  padding: 16px var(--gx);
}
.ptabs__pill {
  display: inline-flex; gap: 2px; align-items: center;
  padding: 5px; border: 2px solid var(--blue); border-radius: 999px; background: var(--paper);
  max-width: 100%; flex-wrap: wrap; justify-content: center;
}
.ptab {
  appearance: none; background: none; border: none; cursor: pointer;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue); padding: 8px 16px; position: relative;
  display: flex; align-items: baseline; gap: 9px; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ptab:hover { background: var(--blue-tint); }
.ptab .pn { font-family: var(--font-display); font-size: 12px; }
.ptab[aria-selected="true"] { background: var(--blue); color: var(--paper); }

.phase-panel { display: none; }
.phase-panel[data-active] { display: block; }

.phase-intro {
  padding: 56px var(--gx) 40px;
  display: block; text-align: center;
}
.phase-intro__num { font-family: var(--font-display); font-size: clamp(72px,9vw,140px); line-height: 0.8; color: var(--blue); }
.phase-intro h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 0.98; letter-spacing: -0.02em; margin-bottom: 18px; }
.phase-intro h2 em { font-style: italic; }
.phase-intro__desc { font-family: var(--font-mono); font-size: 15px; color: var(--ink); line-height: 1.65; max-width: 640px; margin: 0 auto; }
.phase-intro__aside { border: 2px solid var(--blue); padding: 22px 24px; }
.phase-intro__aside dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.phase-intro__aside dd { font-family: var(--font-display); font-size: 18px; margin: 4px 0 18px; line-height: 1.1; }
.phase-intro__aside dd:last-child { margin-bottom: 0; }

/* ==========================================================================
   TASK GROUPS + SUBTASK ACCORDIONS
   ========================================================================== */
.tasks { padding: 0 var(--gx) 40px; }
.taskgrp { border-top: 2px solid var(--blue); margin-top: 56px; }
.taskgrp:first-child { margin-top: 0; }
.taskgrp:last-child { border-bottom: 2px solid var(--blue); }

.taskgrp__head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px; padding: 32px 4px 22px;
}
.taskgrp__no { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink); }
.taskgrp__name { font-family: var(--font-display); font-size: 28px; line-height: 1; letter-spacing: -0.01em; }
.taskgrp__count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); border: 2px solid var(--blue); padding: 3px 10px; margin-left: 0; }

/* accordion */
.acc { border-top: 2px solid var(--blue-tint); }
.acc:first-of-type { border-top: 2px solid var(--blue); }
.acc__head {
  width: 100%; appearance: none; background: none; border: none; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 18px; align-items: center;
  padding: 18px 6px; color: var(--blue); transition: background var(--dur) var(--ease);
}
.acc__head:hover { background: var(--blue-tint-2); }
.acc__mark { font-size: 17px; line-height: 1; text-align: center; }
.acc__name { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.005em; }
.acc__preview { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); margin-top: 3px;
  line-height: 1.45; max-width: 70ch; display: block;
  opacity: .85; transition: opacity var(--dur) var(--ease); }
.acc__toggle {
  width: 30px; height: 30px; border: 2px solid var(--blue); border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; position: relative; transition: background var(--dur) var(--ease);
}
.acc__toggle::before, .acc__toggle::after {
  content: ""; position: absolute; background: var(--blue); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.acc__toggle::before { width: 12px; height: 2px; }
.acc__toggle::after { width: 2px; height: 12px; }
.acc[data-open] .acc__toggle { background: var(--blue); }
.acc[data-open] .acc__toggle::before, .acc[data-open] .acc__toggle::after { background: var(--paper); }
.acc[data-open] .acc__toggle::after { transform: scaleY(0); }
.acc[data-open] .acc__preview { opacity: 0; }

.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.acc[data-open] .acc__panel { grid-template-rows: 1fr; }
.acc__panel-inner { overflow: hidden; }
.acc__body { padding: 4px 6px 34px 46px; }

/* detail grid — the 6 fields + prompt */
.detail { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 48px; border-top: 2px solid var(--blue); }
.field { padding: 22px 0; border-bottom: 2px solid var(--blue-tint); }
.field--full { grid-column: 1 / -1; }
.field__label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.field__label::before { content: attr(data-mark); font-size: 13px; }
.field__body { font-family: var(--font-mono); font-size: 14px; color: var(--ink); line-height: 1.6; }
.field__body strong { color: var(--blue); font-weight: 400; }
.field .candi-list { margin-top: 2px; }

.toollist { display: flex; flex-wrap: wrap; gap: 8px; }
.toolchip {
  font-family: var(--font-mono); font-size: 12px; padding: 7px 16px; border: 2px solid var(--blue);
  border-radius: 999px; color: var(--blue); background: var(--paper); white-space: nowrap;
}
a.toolchip { transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
a.toolchip:hover { background: var(--blue); color: var(--paper); }
.toolchip-wrap { display: inline-flex; align-items: center; gap: 4px; }
.toolchip--plain { opacity: .7; }
.toolchip__q {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1; text-decoration: none;
  border: 2px solid var(--blue); border-radius: 999px; color: var(--blue); background: var(--paper);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.toolchip__q:hover { background: var(--blue); color: var(--paper); }

/* related projects (LAB) + assistants */
.refref-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ref {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ref__k { font-size: 8.5px; letter-spacing: 0.12em; padding: 2px 6px; border-radius: 999px; }
/* LAB = solid blue fill */
.ref--lab { border: 2px solid var(--blue); background: var(--blue); color: var(--paper); }
.ref--lab .ref__k { background: var(--paper); color: var(--blue); }
a.ref--lab:hover { opacity: .7; }
/* Assistant = paper with dashed blue border */
.ref--asst { border: 2px dashed var(--blue); background: var(--paper); color: var(--blue); }
.ref--asst .ref__k { background: var(--blue); color: var(--paper); }
a.ref--asst:hover { background: var(--blue-tint); }
.ref--plain { cursor: default; }

/* assistant cards on the Assistants page */
.poc--asst { background: var(--blue-tint-2); }
.poc__badge {
  display: inline-block; font-size: 8.5px; letter-spacing: 0.12em; padding: 2px 7px; margin-right: 6px;
  border: 2px dashed var(--blue); border-radius: 999px; color: var(--blue); vertical-align: middle;
}
/* circular preview thumbnail inside an assistant card */
.poc__thumb {
  position: relative; align-self: center; width: 200px; height: 200px; margin: 26px 0 28px;
  border-radius: 999px; overflow: hidden; border: 2px solid var(--blue); background: var(--paper);
}
.poc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.poc--asst:hover .poc__thumb img { transform: scale(1.04); opacity: .85; }
.poc__thumb-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--paper); text-shadow: 0 0 12px rgba(0,0,0,.5); pointer-events: none;
}
.poc__thumb--empty { border-style: dashed; background: var(--blue-tint); }

/* case-page video (click-to-load YouTube facade) */
.case-video { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border: 2px solid var(--blue); margin: 0 auto 12px; overflow: hidden; background: var(--blue-tint-2); }
.case-video__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: none; background: none; cursor: pointer; display: block; }
.case-video__poster { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity var(--dur) var(--ease); }
.case-video__btn:hover .case-video__poster { opacity: .82; }
.case-video__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; padding-left: 5px; color: var(--paper); background: var(--blue);
  border: 2px solid var(--paper); border-radius: 999px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.case-video__btn:hover .case-video__play { transform: translate(-50%, -50%) scale(1.06); }
.case-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.prompt-box {
  border: 2px solid var(--blue); background: var(--blue-tint-2); padding: 16px 18px; margin-top: 4px;
  font-family: var(--font-mono); font-size: 13px; color: var(--blue); line-height: 1.55; position: relative;
}
.prompt-box::before {
  content: "PROMPT"; position: absolute; top: -10px; left: 14px; background: var(--paper);
  padding: 0 8px; font-size: 9.5px; letter-spacing: 0.18em; color: var(--blue);
}
.pocref-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pocref {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px;
  padding: 7px 16px; border: 2px solid var(--blue); border-radius: 999px;
  color: var(--blue); background: var(--paper); white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.pocref:hover { background: var(--blue); color: var(--paper); }
.pocref--plain { cursor: default; }
.pocref-empty {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 12px;
  padding: 7px 16px; border: 2px dashed var(--blue-tint); border-radius: 999px; color: var(--fg-mute, #6b6b6b);
}

.candi-list { list-style: none; padding: 0; margin: 0; font-family: var(--font-mono); line-height: 1.55; }
.candi-list > li { display: grid; grid-template-columns: 1.4em 1fr; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 14px; color: var(--ink); }
.candi-list > li::before { content: attr(data-mark); color: var(--blue); }
.candi-list[data-default="con"] > li:not([data-mark])::before { content: "⊖"; }
.candi-list[data-default="check"] > li:not([data-mark])::before { content: "✓"; }
.candi-list[data-default="dot"] > li:not([data-mark])::before { content: "·"; }

/* ==========================================================================
   POC INDEX
   ========================================================================== */
.poc-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; border-top: 2px solid var(--blue); }
.poc {
  display: flex; flex-direction: column; padding: 36px var(--gx) 36px;
  border-bottom: 2px solid var(--blue); border-right: 2px solid var(--blue);
  background: var(--paper); transition: background var(--dur) var(--ease); position: relative;
}
.poc:nth-child(2n) { border-right: none; }
.poc:hover { background: var(--blue-tint-2); }
.poc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.poc__kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.poc__kicker--cr { display: flex; align-items: center; gap: 7px; }
.poc__kicker--cr .cr-ic { display: inline-flex; width: 15px; height: 15px; color: var(--blue); flex: none; }
.poc__kicker--cr .cr-ic svg { width: 100%; height: 100%; }
.poc__kicker--cr .cr-logo { height: 20px; width: auto; display: block; flex: none; }
.poc__title { font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); line-height: 0.95; letter-spacing: -0.02em; }
.poc__arrow { font-family: var(--font-display); font-size: 26px; transition: transform var(--dur) var(--ease); }
.poc:hover .poc__arrow { transform: translate(3px, -3px); }
.poc__oneliner { font-family: var(--font-mono); font-size: 15px; color: var(--ink); line-height: 1.55; margin: 18px 0 18px; max-width: 46ch; }
.poc__phases { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.poc__meta { display: grid; gap: 0; margin: 0 0 22px; border-top: 2px solid var(--blue-tint); }
.poc__meta > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 11px 0; border-bottom: 2px solid var(--blue-tint); }
.poc__meta dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin: 0; }
.poc__meta dd { font-family: var(--font-mono); font-size: 13px; color: var(--ink); margin: 0; line-height: 1.5; }
.poc__cta { margin-top: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; border-top: 2px solid var(--blue); padding-top: 18px; }
.poc:hover .poc__cta .arrow { transform: translate(2px, -2px); }

/* ==========================================================================
   CASE STUDY PAGE
   ========================================================================== */
.case-hero { padding: 20px var(--gx) 48px; border-bottom: 2px solid var(--blue); }
.case-hero__id { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.case-hero h1 { font-size: clamp(56px, 9vw, 132px); line-height: 0.9; letter-spacing: -0.03em; }
.case-hero__lead { font-family: var(--font-mono); font-size: clamp(16px, 1.6vw, 20px); color: var(--ink); line-height: 1.5; max-width: 760px; margin-top: 26px; }
.case-hero__phases { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.case-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 0; }
.case-main { padding: 0 var(--gx); border-right: 2px solid var(--blue); }
.case-side { padding: 48px var(--gx) 48px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 92px; align-self: start; }

.case-sec { padding: 40px 0; border-bottom: 2px solid var(--blue-tint); }
.case-sec:first-child { padding-top: 48px; }
.case-sec__label { color: var(--blue); margin-bottom: 18px; }
.prose { font-family: var(--font-mono); font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 70ch; }

.ipo { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: start; }
.ipo__col { border: 2px solid var(--blue); padding: 18px 20px; }
.ipo__h { font-family: var(--font-display); font-size: 18px; margin-bottom: 12px; }
.ipo__arrow { font-family: var(--font-display); font-size: 26px; align-self: center; color: var(--blue); }

.case-aside { border: 2px solid var(--blue); padding: 20px 22px; }
.case-aside__h { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.case-aside dl { margin: 0; }
.case-aside dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.case-aside dd { font-family: var(--font-mono); font-size: 13.5px; color: var(--blue); margin: 4px 0 16px; line-height: 1.5; }
.case-aside dd:last-child { margin-bottom: 0; }

.case-next { padding: 40px var(--gx) 80px; border-bottom: 2px solid var(--blue); }
.case-next a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.case-next a:hover { opacity: .65; }

/* ==========================================================================
   PROCESS OVERVIEW
   ========================================================================== */
.proc { padding: 0 var(--gx) 40px; }
.proc-block { padding: 56px 0 8px; }
.proc-block__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 28px; }
.proc-block__id { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }
.proc-block__name { font-family: var(--font-display); font-size: clamp(40px, 5.5vw, 84px); line-height: 0.9; letter-spacing: -0.025em; }
.proc-block__name em { font-style: italic; }
.proc-block__tag { font-family: var(--font-mono); font-size: 14px; color: var(--ink); margin-top: 0; max-width: none; white-space: nowrap; }

.proc-rows { border-top: 2px solid var(--blue); }
.proc-row {
  display: grid; grid-template-columns: 120px minmax(0,1fr) auto 40px; gap: 32px; align-items: center;
  padding: 26px 0; border-bottom: 2px solid var(--blue); color: var(--blue);
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease), padding-right var(--dur) var(--ease);
}
.proc-row:hover { background: var(--blue); color: var(--paper); padding-left: 20px; padding-right: 20px; }
.proc-row__no { font-family: var(--font-display); font-size: 44px; line-height: 0.8; letter-spacing: -0.02em; }
.proc-row__name { font-family: var(--font-display); font-size: 26px; line-height: 1; display: block; margin-bottom: 6px; }
.proc-row__desc { font-family: var(--font-mono); font-size: 13px; line-height: 1.5; display: block; max-width: 72ch; opacity: .92; }
.proc-row__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.proc-row__arrow { font-family: var(--font-display); font-size: 22px; text-align: right; transition: transform var(--dur) var(--ease); }
.proc-row:hover .proc-row__arrow { transform: translate(3px,-3px); }

@media (max-width: 1000px) {
  .proc-block__head { gap: 12px; }
  .proc-block__tag { margin-top: 0; white-space: nowrap; font-size: clamp(10px, 1.5vw, 14px); }
  .proc-row { grid-template-columns: 60px minmax(0,1fr) 30px; gap: 18px; }
  .proc-row__no { font-size: 30px; }
  .proc-row__meta { grid-column: 2; }
  .proc-row__arrow { grid-row: 1; grid-column: 3; }
}

@media (max-width: 600px) {
  .proc-block__tag { white-space: normal; font-size: 12px; }
}

/* ==========================================================================
   STATIC CONTENT (about / contact)
   ========================================================================== */
.lede-sec { padding: 24px var(--gx) 64px; border-bottom: 2px solid var(--blue); }
.lede-logo { width: clamp(280px, 40vw, 480px); height: auto; display: block; margin-bottom: 12px; }
.lede-sec h1 { font-size: clamp(56px, 9vw, 132px); line-height: 0.9; letter-spacing: -0.03em; }
.lede-sec h1 em { font-style: italic; }
.lede-sec__p { font-family: var(--font-mono); font-size: clamp(16px, 1.7vw, 21px); color: var(--ink); line-height: 1.6; max-width: 760px; margin-top: 28px; }
.lede-sec__p em { font-style: italic; }
.lede-link, .lede-sec__p a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lede-link:hover, .lede-sec__p a:hover { opacity: .65; }

.about-do { padding: 64px var(--gx); border-bottom: 2px solid var(--blue); }
.about-do__head { margin-bottom: 36px; }
.about-do__head .meta { color: var(--blue); display: block; margin-bottom: 14px; }
.about-do__head h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 0.98; letter-spacing: -0.02em; }
.about-do__head h2 em { font-style: italic; }
.about-do__list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--blue); display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.about-do__list li {
  display: flex; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 2px solid var(--blue);
  font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); color: var(--blue); letter-spacing: -0.01em;
}
.about-do__list li:nth-child(odd) { border-right: 2px solid var(--blue); padding-right: 32px; }
.about-do__list li:nth-child(even) { padding-left: 32px; }
.about-do__list .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ink); }
.about-do__note { font-family: var(--font-mono); font-size: 15px; color: var(--ink); line-height: 1.6; max-width: 720px; margin-top: 32px; }
.about-do__note em { font-style: italic; color: var(--blue); }
@media (max-width: 700px) {
  .about-do__list { grid-template-columns: 1fr; }
  .about-do__list li:nth-child(odd) { border-right: none; padding-right: 0; }
  .about-do__list li:nth-child(even) { padding-left: 0; }
}

.team { padding: 72px var(--gx); border-bottom: 2px solid var(--blue); }
.team__head { text-align: center; margin-bottom: 56px; }
.team__head .meta { color: var(--blue); display: block; margin-bottom: 14px; }
.team__head h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 0.98; letter-spacing: -0.02em; }
.team__head h2 em { font-style: italic; }
.team__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; }
.member { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.member__photo {
  display: block; width: clamp(160px, 20vw, 240px); aspect-ratio: 1; border-radius: 999px; overflow: hidden;
  border: 2px solid var(--blue); background: var(--blue-tint-2); margin-bottom: 22px;
  filter: grayscale(1); transition: filter var(--dur) var(--ease);
}
a.member__photo:hover { filter: grayscale(0); }
.member:hover .member__photo { filter: grayscale(0); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member__name { font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); line-height: 1; letter-spacing: -0.01em; margin-bottom: 12px; }
.member__link { color: var(--blue); transition: opacity var(--dur) var(--ease); }
.member__link:hover { opacity: .65; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.member__disc { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); line-height: 1.5; display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px; }
.member__abbr {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--blue);
  border: 2px solid var(--blue); border-radius: 999px; padding: 3px 9px;}
.member__mail { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--blue-tint); }
.member__mail:hover { color: var(--blue); opacity: .8; }
@media (max-width: 760px) {
  .team__grid { grid-template-columns: 1fr; gap: 44px; max-width: 360px; margin: 0 auto; }
}
.team__credit { text-align: center; margin-top: 52px; font-family: var(--font-mono); font-size: 13px; color: var(--ink); line-height: 1.6; }
.team__credit strong { color: var(--blue); font-weight: 400; }
.team__credit a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.team__credit a:hover { opacity: .65; }
.team__credit-link strong { color: var(--blue); }

.team__about { max-width: 720px; margin: 56px auto 0; text-align: center; }
.team__about p { font-family: var(--font-mono); font-size: 15px; line-height: 1.7; color: var(--ink); }
.team__about p + p { margin-top: 20px; }
.team__about em { font-style: italic; color: var(--blue); }
.team__about strong { color: var(--blue); font-weight: 400; }
.team__about a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.team__about a:hover { opacity: .65; }
.team__disc { list-style: none; padding: 0; margin: 24px auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.team__disc li {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--blue);
  border: 2px solid var(--blue); border-radius: 999px; padding: 8px 18px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.team__disc li:hover { background: var(--blue); }
.team__disc li a { color: inherit; display: block; }
.team__disc li:hover a { color: var(--paper); }
.disc-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; transition: opacity var(--dur) var(--ease); }
.disc-link:hover { opacity: .6; }

.team-info { padding: 8px var(--gx) 72px; }
.team__about--left { margin-left: 0; margin-right: auto; text-align: left; max-width: 760px; }
.team__about--left .team__disc { justify-content: flex-start; margin-left: 0; }
.team__credit--left { text-align: left; max-width: 760px; margin-left: 0; margin-right: auto; padding-top: 28px; border-top: 2px solid var(--blue-tint); margin-top: 36px; }
.team__credit--left .meta { display: block; color: var(--blue); margin-bottom: 14px; }
.team__credit--left p + p { margin-top: 16px; }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--blue); }
.col { padding: 44px var(--gx); border-right: 2px solid var(--blue); }
.col:last-child { border-right: none; }
.col h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 14px; }
.col p { font-family: var(--font-mono); font-size: 14px; color: var(--ink); line-height: 1.6; }
.col p em { font-style: italic; }

.principles { padding: 64px var(--gx); }
.principles__head { margin-bottom: 36px; }
.principles__head h2 { font-size: clamp(34px,4.4vw,60px); letter-spacing: -0.02em; }
.principles__head h2 em { font-style: italic; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; border-top: 2px solid var(--blue); }
.pitem { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 22px 0; border-bottom: 2px solid var(--blue-tint); padding-right: 32px; }
.pitem:nth-child(odd) { border-right: 2px solid var(--blue-tint); padding-right: 32px; }
.pitem__mark { font-size: 18px; color: var(--blue); }
.pitem__term { font-family: var(--font-display); font-size: 18px; margin-bottom: 5px; }
.pitem__body { font-family: var(--font-mono); font-size: 13px; color: var(--ink); line-height: 1.55; }

.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 0; border-bottom: 2px solid var(--blue); }
.contact-main { padding: 56px var(--gx); border-right: 2px solid var(--blue); }
.contact-side { padding: 56px var(--gx); display: flex; flex-direction: column; gap: 28px; }
.field-row { margin-bottom: 22px; }
.field-row label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 8px; }
.field-row input, .field-row textarea, .field-row select {
  width: 100%; font-family: var(--font-mono); font-size: 14px; color: var(--blue); background: var(--paper);
  border: 2px solid var(--blue); border-radius: 2px; padding: 12px 14px; outline: none;
}
.field-row input:focus, .field-row textarea:focus, .field-row select:focus { background: var(--blue-tint-2); }
.field-row textarea { resize: vertical; min-height: 120px; }
.contact-side__block dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.contact-side__block dd { font-family: var(--font-mono); font-size: 14px; color: var(--blue); margin: 5px 0 18px; line-height: 1.5; }
.contact-side__block a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr; }
  .col { border-right: none; border-bottom: 2px solid var(--blue); }
  .col:last-child { border-bottom: none; }
  .pgrid { grid-template-columns: 1fr; }
  .pitem:nth-child(odd) { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-main { border-right: none; border-bottom: 2px solid var(--blue); }
}

@media (max-width: 1000px) {
  .poc-grid { grid-template-columns: 1fr; }
  .poc { border-right: none; }
  .case-grid { grid-template-columns: 1fr; }
  .case-main { border-right: none; }
  .case-side { position: static; border-top: 2px solid var(--blue); }
  .ipo { grid-template-columns: 1fr; }
  .ipo__arrow { transform: rotate(90deg); justify-self: start; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--blue); color: var(--paper); padding: 80px var(--gx) 28px; }
.footer h2 { color: var(--paper); font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.02em; margin-bottom: 36px; }
.footer h2 em { font-style: italic; }
.footer__top { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; padding-bottom: 44px; }
.footer__about { font-family: var(--font-display); font-size: clamp(18px, 1.9vw, 26px); line-height: 1.18; letter-spacing: -0.01em; color: var(--paper); max-width: 100%; width: 100%; text-align: left; }
.footer__about em { font-style: italic; }
.footer__namelink { color: var(--paper); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer__namelink:hover { opacity: .65; }
.footer__disclaimer { padding: 36px 0 32px; border-top: 2px solid var(--paper); }
.footer__disclaimer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); opacity: .7; font-weight: 400; margin-bottom: 14px; }
.footer__disclaimer p { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--paper); max-width: none; opacity: .92; }
.footer__aiupdate { margin-top: 16px; }
.footer__aiupdate a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer__aiupdate a:hover { opacity: .65; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding: 44px 0 28px; border-top: 2px solid var(--paper); }
.footer__col h4 { color: var(--paper); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; font-weight: 400; opacity: .7; }
.footer__col a { display: block; font-family: var(--font-mono); font-size: 14px; padding: 4px 0; color: var(--paper); transition: opacity var(--dur-fast) var(--ease); }
.footer__col a:hover { opacity: .65; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 2px solid var(--paper); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; gap: 20px; flex-wrap: wrap; }
.footer__howest { display: flex; align-items: center; gap: 12px; color: var(--paper); transition: opacity var(--dur-fast) var(--ease); }
a.footer__howest:hover { opacity: .65; }
.footer__howest img { height: 46px; filter: brightness(0) invert(1); }

/* signature tilted slab */
.slab { position: relative; display: inline-block; }
.slab::before, .slab::after { content: ""; position: absolute; left: -6%; right: -6%; height: 0.15em; background: currentColor; pointer-events: none; }
.slab::before { top: -0.06em; transform: rotate(6deg); }
.slab::after { bottom: 0.06em; transform: rotate(-6deg); }

/* marquee */
.marquee { overflow: hidden; border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); padding: 22px 0; }
.marquee__track { display: flex; gap: 56px; animation: scroll 44s linear infinite; white-space: nowrap; width: max-content; }
.marquee__item { display: inline-flex; align-items: center; gap: 16px; font-family: var(--font-display); font-size: 30px; color: var(--blue); }
.marquee__item::before { content: "✦"; font-size: 18px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  :root { --gx: 28px; }
  .nav { grid-template-columns: auto 1fr; }
  .nav__links { display: none; }
  .nav__cta-wrap { grid-column: 2; }
  .block-hero__row { grid-template-columns: 1fr; gap: 32px; }
  .phase-intro { grid-template-columns: 1fr; gap: 28px; }
  .detail { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__top { gap: 28px; align-items: flex-start; }
  .ptabs { top: 66px; overflow-x: auto; flex-wrap: nowrap; }
  .ptab { white-space: nowrap; }
}
@media (max-width: 600px) {
  .acc__head { grid-template-columns: 22px minmax(0,1fr) auto; gap: 12px; }
  .acc__body { padding-left: 8px; }
  .footer__grid { grid-template-columns: 1fr; }
  .block-hero h1 { font-size: clamp(40px, 13vw, 64px); }
}
