@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0f1113;
  --surface: #181a1d;
  --line: #25282c;
  --line-strong: #32363d;
  --ink: #f4f4f5;
  --ink-2: #9ca3af;
  --ink-3: #6b7280;
  --accent: #f68330;
  --accent-2: #f35e32;
  --accent-ink: #f68330;
  --on-accent: #0f1113;
  --logo-ink: #4d5058;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --pad: 80px;
  --radius: 12px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f7f8;
    --surface: #ffffff;
    --line: #e4e7e9;
    --line-strong: #cbd2d6;
    --ink: #0f1113;
    --ink-2: #52525b;
    --ink-3: #6b7280;
    --accent-ink: #c2531c;
    --logo-ink: #262626;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --line: #e4e7e9;
  --line-strong: #cbd2d6;
  --ink: #0f1113;
  --ink-2: #52525b;
  --ink-3: #6b7280;
  --accent-ink: #c2531c;
  --logo-ink: #262626;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; z-index: 10; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 8px;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-2); color: var(--on-accent); text-decoration: none; }
.btn-sm { font-size: 15px; padding: 10px 18px; }

/* nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 18px; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand .logo-ink { stroke: var(--logo-ink); }
.nav-links { display: flex; gap: 32px; font-size: 15px; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  align-items: center;
  padding: 96px var(--pad) 88px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 13px; color: var(--accent-ink); }
h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; text-wrap: pretty; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.cta-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cta-note { font-size: 15px; color: var(--ink-2); max-width: 260px; line-height: 1.4; }

.run-log {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.run-log-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.badge { font-size: 12px; color: var(--on-accent); background: var(--accent); padding: 3px 8px; border-radius: 4px; }
.run-log-steps { list-style: none; padding: 0; display: flex; flex-direction: column; }
.run-log-steps li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.run-log-steps li:last-child { border-bottom: 1px solid var(--line); }
.run-log-steps li { animation: rise 220ms ease-out both; }
.run-log-steps li:nth-child(2) { animation-delay: 40ms; }
.run-log-steps li:nth-child(3) { animation-delay: 80ms; }
.run-log-steps li:nth-child(4) { animation-delay: 120ms; }
.run-log-steps li:nth-child(5) { animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.run-log-steps .t { font-size: 13px; color: var(--ink-3); width: 52px; flex: none; }
.run-log-steps .hi { color: var(--accent-ink); }
.run-log .caption { font-size: 12px; }
.run-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.run-tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-size: 12px; color: var(--ink-3); padding: 6px 10px; border-radius: 6px;
  position: relative; overflow: hidden;
}
.run-log.auto .run-tab[aria-selected="true"]::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--on-accent); opacity: 0.45; transform-origin: left;
  animation: fill 6s linear;
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.run-tab:hover { color: var(--ink); background: var(--line); }
.run-tab[aria-selected="true"] { color: var(--on-accent); background: var(--accent); }
.run-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.run-panel { display: flex; flex-direction: column; gap: 16px; }
.run-panel[hidden] { display: none; }

/* sections */
.section { padding: 0 var(--pad) 88px; display: flex; flex-direction: column; gap: 32px; }
h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
  transition: transform 150ms ease, border-color 150ms ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.card .pict { color: var(--accent-ink); }
.card p { font-size: 15px; color: var(--ink-2); }
.card .tools { font-size: 12px; color: var(--ink-3); line-height: 1.6; }

.work { display: flex; flex-direction: column; }
.work div { display: grid; grid-template-columns: 48px 280px minmax(0, 1fr); gap: 40px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); }
.work .pict { color: var(--accent-ink); }
.work .pict .node { fill: var(--surface); }
.work div:last-child { border-bottom: 1px solid var(--line); }
.work dt { font-size: 18px; font-weight: 500; }
.work dd { color: var(--ink-2); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 30px; }
.steps li::before { content: ''; position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); }
.steps li:first-child::before { background: var(--accent); }
.steps li::after { content: ''; position: absolute; top: 6px; left: 18px; right: -24px; height: 2px; background: var(--line-strong); }
.steps li:first-child::after { background: var(--accent); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; }
.steps p { font-size: 15px; color: var(--ink-2); }
.num { font-size: 13px; color: var(--accent-ink); }

.about {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px 32px;
  align-items: center;
}
.about h2 { font-size: 24px; margin-bottom: 8px; }
.about p { color: var(--ink-2); max-width: 640px; }
.portrait { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-strong); }

.contact { gap: 16px; }
.contact-lines { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.footer a { color: var(--ink-3); }
.footer a:hover { color: var(--ink); }

/* theme toggle */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  appearance: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}


@media (max-width: 1024px) {
  :root { --pad: 40px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding-top: 0; padding-left: 30px; }
  .steps li::before { top: 6px; }
  .steps li::after { top: 22px; left: 6px; right: auto; bottom: -28px; width: 2px; height: auto; }
  .work div { grid-template-columns: 1fr; gap: 8px; }
  .about { grid-template-columns: auto minmax(0, 1fr); }
  .about .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .nav-links { display: none; }
  .hero { padding-top: 48px; padding-bottom: 56px; }
  .section { padding-bottom: 56px; }
  .about { grid-template-columns: 1fr; padding: 28px; }
  .btn { white-space: normal; }
}
