:root {
  color-scheme: light;
  --paper: oklch(97% .009 88);
  --ink: oklch(28% .026 263);
  --blue: oklch(43% .16 263);
  --muted: oklch(47% .025 263);
  --line: oklch(82% .035 263);
  --grid: oklch(79% .045 263 / .18);
  --node: oklch(98% .006 88);
  --green: oklch(40% .055 170);
  --ochre: oklch(45% .075 70);
  --surface: oklch(98% .008 88 / .72);
  --highlight: oklch(91% .04 263);
  --map-node: oklch(99% .005 88);
  --map-node-line: oklch(72% .047 263);
  --map-locked: oklch(95% .009 263);
  --map-detail: oklch(95% .012 263);
  --map-hover: oklch(93% .017 263);
  --map-active: oklch(91% .025 263);
  --map-wire: oklch(58% .08 263);
  --map-fade: oklch(97% .009 88 / .9);
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { background: var(--blue); color: var(--paper); }
.sheet { max-width: 1260px; margin: 0 auto; padding: 0 48px; }
.header { display: flex; align-items: center; gap: 32px; min-height: 96px; border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 700; text-decoration: none; letter-spacing: -.5px; }
.mark { color: var(--blue); margin-left: 12px; }
nav { display: flex; gap: 28px; margin-left: auto; }
nav a, .header-contact { font-size: 14px; text-decoration: none; }
.header-contact { color: var(--blue); margin-left: 20px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; padding: 70px 0 76px; }
.hero-role { font-size: 12px; color: var(--blue); margin: 0 0 28px; }
.hero h1 { font-size: clamp(66px, 7.5vw, 106px); line-height: .98; letter-spacing: -.065em; font-weight: 500; margin: 0 0 30px; }
.name-dot { color: var(--blue); }
.hero-lead { font-size: 32px; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 18px; }
.hero-description { font-size: 15px; color: var(--muted); max-width: 44ch; margin: 0 0 28px; }
.button { display: inline-flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 50px; padding: 15px 20px; background: var(--blue); border: 1px solid var(--blue); color: var(--paper); text-decoration: none; font-size: 15px; line-height: 1.3; }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.portrait { margin: 0; }
.photo-frame { position: relative; padding: 8px; border: 1px solid var(--blue); background: var(--paper); }
.photo-frame::before, .photo-frame::after { content: '+'; position: absolute; color: var(--blue); font: 22px var(--mono); background: var(--paper); line-height: 16px; }
.photo-frame::before { top: -8px; left: -7px; }
.photo-frame::after { bottom: -8px; right: -7px; }
.portrait img { display: block; width: 100%; height: 450px; object-fit: cover; object-position: 84% 50%; }
.section { display: grid; grid-template-columns: 1fr 1.7fr; gap: 70px; border-top: 1px solid var(--line); padding: 60px 0; }
h2 { font-weight: 500; font-size: 32px; line-height: 1.2; letter-spacing: -.035em; margin: 0; }
p { margin: 0 0 18px; }
.about-lead { font-size: 25px; line-height: 1.3; letter-spacing: -.025em; }
.about-content > p:not(.about-lead) { max-width: 65ch; color: var(--muted); font-size: 15px; }
.about-content a { color: var(--blue); }
.about-content > p:last-child { margin-bottom: 0; }
.section-intro { font-size: 18px; max-width: 52ch; }
.topics { margin: 0 0 32px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.topics li { padding: 5px 0; }
.topics li::before { content: '+'; font-family: var(--mono); color: var(--blue); margin-right: 12px; }
.price-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; }
.price-row:last-child { border-bottom: 1px solid var(--line); }
h3 { font-size: 17px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 5px; }
.price-row p { font-size: 12px; color: var(--muted); margin: 0; }
.price { white-space: nowrap; color: var(--blue); font-size: 20px; letter-spacing: -.04em; }
.price > span { font-size: 15px; margin-left: 14px; }
.overtime { font-size: 13px; color: var(--muted); max-width: 66ch; margin: 18px 0 0; }
.team-lead { font-size: 25px; line-height: 1.35; letter-spacing: -.03em; max-width: 36ch; }
.team-description { font-size: 15px; color: var(--muted); max-width: 62ch; }
.team-price { padding: 22px 0; margin-top: 10px; }
.team-price strong { font-weight: 500; font-size: 31px; letter-spacing: -.04em; color: var(--blue); }
.team-price strong span { font-size: 15px; letter-spacing: 0; }
.team-price p { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.text-link { font-size: 15px; color: var(--blue); }
.booking { display: flex; justify-content: space-between; gap: 36px; align-items: center; padding: 38px 0 52px; margin-bottom: 12px; border-top: 1px solid var(--line); }
.booking h2 { font-size: 36px; margin-bottom: 18px; }
.booking p:not(.button-note) { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.booking-action { flex-shrink: 0; }
footer { display: flex; gap: 26px; align-items: center; padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
footer a { text-decoration: none; }
.back-top { margin-left: auto; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 10px; background: var(--paper); z-index: 10; }
.skip-link:focus { top: 10px; }
.process-section { padding: 56px 0; border-top: 1px solid var(--line); }
.process-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.process-heading p { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.process-controls { display: flex; gap: 8px; }
[hidden] { display: none !important; }
.process-controls button { background: var(--paper); border: 1px solid var(--line); font: 12px Arial, sans-serif; color: var(--blue); padding: 0 12px; min-height: 44px; cursor: pointer; }
.process-controls button:disabled { color: var(--muted); cursor: default; }
.process-input { display: flex; align-items: center; gap: 18px; margin: 30px 0 22px; font-size: 13px; color: var(--blue); }
.input-arrow { color: var(--muted); }
.pipeline { display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr; column-gap: 28px; padding: 0; margin: 0; list-style: none; }
.stage { position: relative; min-width: 0; }
.stage-name { display: block; font-size: 12px; font-weight: 700; margin-bottom: 16px; color: var(--blue); }
.stage:not(:last-child)::after { content: '→'; position: absolute; right: -22px; top: 85px; color: var(--blue); font: 18px var(--mono); }
.flow-node { position: relative; isolation: isolate; padding: 14px 12px; margin-bottom: 12px; min-height: 110px; border: 1px solid var(--line); background: var(--node); }
.flow-node::after { content: ''; position: absolute; inset: -1px; z-index: -1; border: 1px solid var(--blue); background: var(--highlight); opacity: 0; }
.node-role { display: block; color: var(--blue); font: 9px/1.5 var(--mono); margin-bottom: 10px; }
.flow-node strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.35; }
.flow-node p { font-size: 11px; line-height: 1.5; margin: 7px 0 0; color: var(--muted); }
.check .node-role { color: var(--green); }
.human .node-role { color: var(--ochre); }
.retry { font-size: 10px; line-height: 1.5; color: var(--blue); margin: 0; padding: 8px 4px; border-top: 1px dashed var(--blue); }
.retry span { font-size: 20px; vertical-align: middle; margin-right: 4px; }
.process-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; }
.flow-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 10px; color: var(--muted); }
.flow-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.flow-legend i { display: inline-block; width: 8px; height: 8px; border: 1px solid; }
.legend-agent { color: var(--blue); }.legend-check { color: var(--green); }.legend-human { color: var(--ochre); }
.process-footer > p { font-size: 10px; color: var(--muted); margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .process-section.running .flow-node::after { animation: step-highlight 1.3s cubic-bezier(.19, 1, .22, 1) both; animation-delay: calc(var(--step) * 1.15s); }
  .process-section.running .stage:not(:last-child)::after { animation: connector-pass 1s cubic-bezier(.19, 1, .22, 1) both; animation-delay: calc(var(--step) * 1.15s + .6s); }
  .process-section.paused .flow-node::after, .process-section.paused .stage:not(:last-child)::after { animation-play-state: paused; }
}
@keyframes step-highlight { 0% { opacity: 0; } 25%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes connector-pass { 0% { opacity: .35; transform: translateX(-3px); } 45% { opacity: 1; transform: translateX(3px); } 100% { opacity: .6; transform: translateX(0); } }
@media (max-width: 1000px) {
  .sheet { padding: 0 28px; }.hero { gap: 36px; }.hero h1 { font-size: 78px; }.portrait img { height: 410px; }
  .section { gap: 38px; grid-template-columns: 1fr 1.6fr; }
  .pipeline { grid-template-columns: 1fr; gap: 30px; }
  .stage { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .stage-name { grid-column: 1/-1; margin: 0; }.flow-node { margin: 0; min-height: 105px; }
  .stage:not(:last-child)::after { content: '↓'; right: auto; left: 0; top: auto; bottom: -25px; }
  .retry { grid-column: 1/-1; }.process-footer { flex-direction: column; gap: 12px; }
}
@media (max-width: 640px) {
  .sheet { padding: 0 20px; }.header { min-height: 76px; flex-wrap: wrap; padding: 17px 0; gap: 12px; }
  .wordmark { font-size: 15px; }nav { order: 3; width: 100%; margin: 0; gap: 24px; }nav a { font-size: 12px; }
  .header-contact { margin-left: auto; font-size: 12px; }.hero { grid-template-columns: 1fr; padding: 36px 0; gap: 32px; }
  .hero-role { font-size: 11px; margin-bottom: 22px; }.hero h1 { font-size: clamp(66px, 17vw, 90px); margin-bottom: 24px; }
  .hero-lead { font-size: 28px; }.hero-description { font-size: 14px; }.portrait img { height: 340px; object-position: 83% 50%; }
  .section { grid-template-columns: 1fr; gap: 24px; padding: 38px 0; }h2 { font-size: 28px; }.about-lead { font-size: 23px; }
  .section-intro { font-size: 17px; }.topics { font-size: 13px; }.price-row { gap: 12px; padding: 19px 0; }h3 { font-size: 15px; }
  .price-row p { font-size: 11px; max-width: 27ch; }.price { font-size: 18px; }.price > span { margin-left: 4px; font-size: 12px; }
  .team-lead { font-size: 23px; }.team-price strong { font-size: 28px; }.booking { display: block; padding: 32px 0; }
  .booking h2 { font-size: 30px; }.booking-action { margin-top: 24px; }.booking .button { font-size: 14px; }
  footer { flex-wrap: wrap; gap: 14px 20px; font-size: 11px; }footer > span { width: 100%; }
  .process-section { padding: 38px 0; }.process-heading { display: block; }.process-controls { margin-top: 16px; }
  .stage { grid-template-columns: 1fr; gap: 0; }.stage-name { margin-bottom: 12px; }
  .flow-node { min-height: 0; padding: 14px 16px; margin-bottom: 20px; }
  .flow-node:not(:last-of-type)::before { content: '↓'; position: absolute; bottom: -22px; left: 16px; color: var(--blue); font: 14px var(--mono); }
  .node-role { font-size: 10px; margin-bottom: 6px; }.flow-node strong { font-size: 15px; }.flow-node p { font-size: 12px; }
  .stage:not(:last-child)::after { bottom: -10px; left: 16px; }.retry { padding: 8px 0; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-node::after, .stage::after { animation: none !important; transform: none !important; }
}

.availability { display: flex; align-items: center; gap: 9px; margin: 12px 0 18px; color: var(--blue); font-size: 13px; }
.availability p { margin: 0; }
.seat-mark { width: 7px; height: 7px; flex-shrink: 0; background: var(--blue); border-radius: 50%; }
.format-explanation { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 24px; max-width: 62ch; }
.format { border-top: 1px solid var(--line); }
.format:last-child { border-bottom: 1px solid var(--line); }
.format .price-row { border: 0; cursor: pointer; list-style: none; gap: 18px; }
.format summary::-webkit-details-marker { display: none; }
.format summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.format-heading { display: block; margin-right: auto; }
.format-title { display: block; font-size: 17px; line-height: 1.4; letter-spacing: -.025em; }
.format-subtitle { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.expand-mark { width: 20px; text-align: center; font: 22px var(--mono); color: var(--blue); }
.format[open] > summary .expand-mark { font-size: 0; }
.format[open] > summary .expand-mark::after { content: '−'; font: 22px var(--mono); }
.format-body { padding: 0 0 28px; font-size: 14px; }
.format-body > p { max-width: 65ch; }
.format-body h3 { font-weight: 700; font-size: 13px; margin: 22px 0 12px; }
.format-body ul { padding-left: 18px; color: var(--muted); margin: 0 0 18px; }
.format-body li { padding-left: 4px; margin-bottom: 10px; }
.format-note { color: var(--muted); font-size: 12px; }
.tools-preview { margin: 22px 0; }
.tools-image { overflow: hidden; border: 1px solid var(--line); max-height: 260px; background: var(--ink); }
.tools-image img { display: block; width: 100%; height: auto; filter: blur(3px); transform: scale(1.025); opacity: .8; }
.tools-preview figcaption { font-size: 11px; color: var(--muted); margin-top: 10px; max-width: 62ch; }
@media (max-width: 640px) {
  .format .price-row { gap: 10px; }
  .format-title { font-size: 15px; }.format-subtitle { font-size: 11px; max-width: 23ch; }
  .format .price { font-size: 17px; }.expand-mark { width: 16px; }
  .format-body { font-size: 13px; }.availability { font-size: 12px; }.format-explanation { font-size: 13px; }
  .tools-image { max-height: 200px; }
}

/* Workflow drawing: wires are measured from the real node positions. */
.process-heading h2 { max-width: 24ch; }
.pipeline-schematic { position: relative; isolation: isolate; padding: 30px 22px 26px; margin-top: 28px; border: 1px solid var(--line); background: var(--surface); }
.pipeline-schematic .process-input { position: relative; margin: 0 0 28px; gap: 28px; }
.process-input [data-flow] { padding: 8px 14px; border: 1px solid var(--blue); background: var(--paper); font-size: 12px; }
.flow-status { margin-left: auto; font: 10px var(--mono); color: var(--muted); max-width: 34ch; }
.workflow-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; overflow: visible; color: var(--blue); }
.wire-underlay { stroke: var(--paper); stroke-width: 5; fill: none; }
.wire-path { stroke: var(--blue); stroke-width: 1; fill: none; opacity: .5; }
.return-wire .wire-path { stroke-dasharray: 3 3; }
.workflow-wire.is-visited .wire-path { opacity: 1; }
.flow-packet { position: absolute; left: 0; top: 0; width: 8px; height: 8px; background: var(--blue); border: 2px solid var(--paper); outline: 1px solid var(--blue); z-index: 4; pointer-events: none; border-radius: 50%; }
.pipeline-schematic .pipeline { column-gap: 32px; }
.stage:not(:last-child)::after, .flow-node:not(:last-of-type)::before { content: none; }
.flow-node { margin-bottom: 18px; }
.flow-node.is-active::after { opacity: 1; }
.flow-node.is-visited { border-color: var(--blue); }
.retry { border: 0; padding: 2px 0; }
@media (max-width: 1000px) {
  .pipeline-schematic { padding: 24px; }
  .pipeline-schematic .stage { display: block; }
  .pipeline-schematic .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .flow-node { padding: 12px 9px; min-height: 116px; }
  .flow-node strong { font-size: 12px; }.flow-node p { font-size: 10px; }.node-role { font-size: 8px; }
}
@media (max-width: 760px) {
  .pipeline-schematic .pipeline { grid-template-columns: 1fr; gap: 28px; }
  .pipeline-schematic { padding: 22px; }
  .pipeline-schematic .process-input { flex-wrap: wrap; gap: 22px; margin-bottom: 36px; }
  .flow-status { width: 100%; max-width: none; margin: 0; min-height: 16px; }
  .pipeline-schematic .stage { padding-top: 4px; }
  .flow-node { min-height: 0; padding: 14px 16px; margin-bottom: 24px; }
  .flow-node strong { font-size: 15px; }.flow-node p { font-size: 12px; }.node-role { font-size: 10px; }
  .retry { margin-bottom: 10px; }
}
.hero-copy .availability { margin: -12px 0 28px; font-size: 12px; }
.flow-packet { width: 8px; height: 8px; box-shadow: 0 0 0 4px oklch(61% .13 263 / .14); }
.flow-node::after { transition: opacity 240ms cubic-bezier(.19, 1, .22, 1); }
@media (prefers-reduced-motion: reduce) { .flow-node::after { transition: none; } }

/* One timing family for pointer transitions and disclosure controls. */
/* Anchor travel is requested explicitly in motion.js; wheel and focus scrolling stay native. */
.motion-disclosure { position: relative; }
.motion-disclosure > .format-body, .disclosure-body { transform-origin: top center; }
.motion-disclosure[data-motion-state="closing"] { z-index: 1; }
.format.motion-disclosure > summary .expand-mark, .map-preview.motion-disclosure > summary .expand-mark { position: relative; width: 18px; height: 18px; flex-shrink: 0; font-size: 0; }
.format.motion-disclosure > summary .expand-mark::before, .map-preview.motion-disclosure > summary .expand-mark::before { content: ''; position: absolute; width: 12px; height: 1px; top: 8px; left: 3px; background: currentColor; }
.format.motion-disclosure > summary .expand-mark::after, .map-preview.motion-disclosure > summary .expand-mark::after { content: ''; font-size: 0; position: absolute; width: 1px; height: 12px; top: 3px; left: 8px; background: currentColor; transform: scaleY(1); opacity: 1; transition: transform 220ms cubic-bezier(.25,1,.5,1), opacity 180ms ease; }
.format.motion-disclosure[open] > summary .expand-mark::after, .map-preview.motion-disclosure[open] > summary .expand-mark::after { transform: scaleY(0); opacity: 0; }
.format.motion-disclosure[data-motion-state="closing"] > summary .expand-mark::after, .map-preview.motion-disclosure[data-motion-state="closing"] > summary .expand-mark::after { transform: scaleY(1); opacity: 1; }
.button, .header-contact, nav a, .text-link, .back-top { transition: color 160ms ease, background-color 180ms ease, border-color 180ms ease; }
.button > span, .text-link > span { display: inline-block; transition: transform 220ms cubic-bezier(.19,1,.22,1); }
.button:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .button:hover > span, .text-link:hover > span { transform: translate(2px,-2px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .motion-disclosure > summary .expand-mark::after, .button, .button > span, .header-contact, nav a, .text-link, .text-link > span, .back-top { transition: none; } }

.button { transition: color 160ms ease, background-color 180ms ease, border-color 180ms ease, transform 150ms cubic-bezier(.25,.46,.45,.94); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* Shared blueprint palette, including dialogs mounted outside the sheet. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: oklch(19% .018 263);
  --ink: oklch(92% .012 263);
  --blue: oklch(76% .12 263);
  --muted: oklch(72% .025 263);
  --line: oklch(39% .035 263);
  --grid: oklch(65% .045 263 / .13);
  --node: oklch(23% .022 263);
  --green: oklch(77% .07 170);
  --ochre: oklch(79% .09 70);
  --surface: oklch(21% .02 263 / .85);
  --highlight: oklch(31% .055 263);
  --map-node: oklch(25% .026 263);
  --map-node-line: oklch(48% .045 263);
  --map-locked: oklch(23% .022 263);
  --map-detail: oklch(23% .026 263);
  --map-hover: oklch(29% .04 263);
  --map-active: oklch(34% .055 263);
  --map-wire: oklch(66% .08 263);
  --map-fade: oklch(19% .018 263 / .9);
}
.theme-select { min-height: 44px; max-width: 140px; padding: 0 9px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--muted); font: 12px var(--mono); cursor: pointer; }
.theme-select:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.header { gap: 20px; }
.header-contact { margin-left: 0; }
@media (max-width: 800px) and (min-width: 641px) { .header { flex-wrap: wrap; padding-block: 16px; } nav { order: 3; width: 100%; margin-left: 0; } .header-contact { margin-left: auto; } }
@media (max-width: 640px) { .header { gap: 8px; } .header-contact { margin-left: auto; } .theme-select { max-width: 120px; font-size: 11px; } }
