/* hyogomo.com — field-notebook editorial system
   Paper + ink, one signal yellow, serif display, mono for data. */

:root {
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --card: #fffdf8;
  --ink: #17140f;
  --ink-2: #4a443a;
  --ink-3: #8a8171;
  --rule: #ddd5c6;
  --signal: #f5c400;
  --signal-ink: #6b5500;
  --signal-soft: #fbeaa3;
  --ok: #2f7d4f;
  --err: #b3261e;

  --cat-pm: #d9480f;
  --cat-ai: #5b4bd6;
  --cat-ev: #1f8a5b;
  --cat-bip: #c27c0e;
  --cat-career: #2e6fb5;

  --ff-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ff-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --wrap: 1140px;
  --measure: 68ch;
  --shadow: 0 1px 0 rgba(23, 20, 15, .04), 0 12px 32px -18px rgba(23, 20, 15, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12110e;
    --paper-2: #1a1814;
    --card: #1e1c17;
    --ink: #f1ece1;
    --ink-2: #c9c1b1;
    --ink-3: #8f8676;
    --rule: #332f27;
    --signal: #f5c400;
    --signal-ink: #f5c400;
    --signal-soft: #3a3208;
    --cat-pm: #ff8a50; --cat-ai: #a99bff; --cat-ev: #5fd39a; --cat-bip: #f0b44c; --cat-career: #7fb2ee;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 40px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
  .brand-mark { background: #2a261f; box-shadow: inset 0 0 0 1px #3a352c; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--ff-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--signal); color: #17140f; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; }
p { margin: 0 0 var(--s4); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display { font-family: var(--ff-display); font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: .98; letter-spacing: -.01em; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--signal-ink); }
.h1 { font-family: var(--ff-display); font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.02; }
.h2 { font-family: var(--ff-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; }
.h3 { font-family: var(--ff-body); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.label {
  font: 500 .74rem/1.2 var(--ff-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.muted { color: var(--ink-3); }
.mono { font-family: var(--ff-mono); }
.mark { background: linear-gradient(transparent 62%, var(--signal-soft) 62%); padding: 0 .08em; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 46px; padding: 0 20px;
  border: 1px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 .95rem/1 var(--ff-body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--signal { --bg: var(--signal); --fg: #17140f; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover span:last-child { transform: translateX(3px); }
.link-arrow span:last-child { transition: transform .2s var(--ease); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--signal); display: grid; place-items: center; font: 400 1.25rem/1 var(--ff-display); font-style: italic; }
.brand small { font: 500 .7rem/1 var(--ff-mono); color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: var(--s1); }
.nav a:not(.btn) { padding: 10px 12px; border-radius: 999px; text-decoration: none; font-size: .95rem; color: var(--ink-2); transition: background-color .15s, color .15s; }
.nav a:not(.btn):hover, .nav a[aria-current='page'] { color: var(--ink); background: var(--paper-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 999px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .2s var(--ease), opacity .2s; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s3) 16px var(--s5); background: var(--paper); border-bottom: 1px solid var(--rule); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s var(--ease); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--rule); background: none !important; }
  .nav .btn { margin-top: var(--s4); justify-content: center; }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: var(--paper-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); }
.section-head .label { display: block; margin-bottom: var(--s3); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s5); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero .lede { margin: var(--s5) 0 var(--s6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.portrait { position: relative; justify-self: end; width: min(100%, 380px); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); box-shadow: var(--shadow); filter: saturate(.92); }
.portrait-tag { position: absolute; left: -18px; bottom: 28px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow); max-width: 250px; }
.portrait-tag strong { display: block; font-size: .92rem; }
.portrait-tag span { font-size: .82rem; color: var(--ink-3); }
.portrait::before { content: ''; position: absolute; inset: 18px -14px -14px 18px; border: 1px solid var(--signal); border-radius: var(--r-lg); z-index: -1; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; width: min(100%, 260px); order: -1; }
  .portrait-tag { left: auto; right: -8px; }
}
@media (max-width: 560px) {
  .portrait { width: 132px; }
  .portrait img { aspect-ratio: 1; border-radius: var(--r-md); }
  .portrait::before { inset: 8px -8px -8px 8px; border-radius: var(--r-md); }
  .portrait-tag { display: none; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat { padding: var(--s5) var(--s4) var(--s5) 0; }
.stat + .stat { padding-left: var(--s5); border-left: 1px solid var(--rule); }
.stat b { display: block; font: 400 clamp(2rem, 4vw, 2.9rem)/1 var(--ff-display); }
.stat span { display: block; margin-top: var(--s2); font-size: .88rem; color: var(--ink-3); max-width: 22ch; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: var(--s5) 0 0; list-style: none; }
.chip { font: 500 .78rem/1 var(--ff-mono); padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); text-decoration: none; background: var(--card); }
a.chip:hover, .chip[aria-current='true'] { border-color: var(--ink); color: var(--ink); }
.chip[aria-current='true'] { background: var(--ink); color: var(--paper); }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--s5); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: var(--s5); text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
a.card:hover, .card:has(a.card-link:hover) { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 30%, var(--rule)); }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-link { text-decoration: none; }
.card .label { margin-bottom: var(--s3); }
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--ink-2); font-size: .96rem; }
.card-foot { margin-top: auto; padding-top: var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-size: .85rem; color: var(--ink-3); }

.case-card { padding: var(--s6); min-height: 100%; }
.case-card .h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: var(--s3); }
.metrics { display: flex; flex-wrap: wrap; gap: var(--s5); margin: var(--s4) 0 0; }
.metric b { display: block; font: 400 2rem/1 var(--ff-display); }
.metric span { font-size: .82rem; color: var(--ink-3); }
.case-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s6); align-items: end; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.case-featured p, .case-featured .label, .case-featured .metric span { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.case-featured .metric b { color: var(--signal); }
@media (max-width: 760px) { .case-featured { grid-template-columns: 1fr; } }

.post-card .cat { display: inline-flex; align-items: center; gap: 8px; }
.post-card .cat::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--ink-3)); }
.post-card h3 { font: 400 1.55rem/1.12 var(--ff-display); }
.post-cover { margin: calc(var(--s5) * -1) calc(var(--s5) * -1) var(--s4); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.product-card .price { font: 600 1rem/1 var(--ff-mono); color: var(--ink); }
.product-card .price s { color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.product-cover { margin: calc(var(--s5) * -1) calc(var(--s5) * -1) var(--s4); aspect-ratio: 4 / 3; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; background: var(--ink); display: grid; place-items: center; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-cover .placeholder { font: 400 2.2rem/1 var(--ff-display); font-style: italic; color: var(--signal); padding: var(--s5); text-align: center; }
.badge { display: inline-block; font: 600 .7rem/1 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 4px; background: var(--signal); color: #17140f; }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.service { padding: var(--s5) var(--s5) var(--s5) 0; display: flex; flex-direction: column; }
.service + .service { padding-left: var(--s5); border-left: 1px solid var(--rule); }
.service .num { font: 500 .78rem/1 var(--ff-mono); color: var(--ink-3); margin-bottom: var(--s5); }
.service h3 { margin-bottom: var(--s2); }
.service p { color: var(--ink-2); font-size: .95rem; }
.service a { margin-top: auto; }
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding-left: 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--rule); }
}

/* CTA band */
.cta-band { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s6); align-items: center; }
.cta-band p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.cta-band .label { color: var(--signal); }
.cta-band .btn--ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--s4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .82rem; color: var(--ink-3); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--rule)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 45%, transparent); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--err); }
.error { color: var(--err); font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s2); border: 0; padding: 0; margin: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--card); font-size: .92rem; cursor: pointer; transition: all .15s; }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.form-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.inline-form { display: flex; gap: var(--s2); flex-wrap: wrap; }
.inline-form .input { flex: 1 1 220px; }
.notice { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--rule); background: var(--card); }
.notice--ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.notice--err { border-color: color-mix(in srgb, var(--err) 40%, transparent); }

/* ---------- article ---------- */
.article-head { padding-block: clamp(40px, 6vw, 80px) var(--s6); }
.article-head .h1 { max-width: 20ch; margin: var(--s4) 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; font-size: .9rem; color: var(--ink-3); }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--measure)) 240px; gap: clamp(32px, 6vw, 80px); justify-content: space-between; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: 96px; align-self: start; font-size: .88rem; }
.toc ol { list-style: none; padding: 0; margin: var(--s3) 0 0; border-left: 1px solid var(--rule); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-3); text-decoration: none; }
.toc li.l3 a { padding-left: 26px; }
.toc li a:hover, .toc li a.is-active { color: var(--ink); border-left-color: var(--signal); }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-family: var(--ff-display); font-size: 2rem; margin-top: 1.8em; scroll-margin-top: 90px; }
.prose h3 { font-weight: 600; font-size: 1.2rem; margin-top: 1.6em; scroll-margin-top: 90px; }
.prose a { text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin-left: 0; padding-left: var(--s5); border-left: 3px solid var(--signal); font-family: var(--ff-display); font-size: 1.45rem; line-height: 1.35; color: var(--ink-2); }
.prose code { font-family: var(--ff-mono); font-size: .88em; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: #17140f; color: #f1ece1; padding: var(--s5); border-radius: var(--r-md); overflow-x: auto; font-size: .9rem; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose .callout { background: var(--signal-soft); border-radius: var(--r-md); padding: var(--s4) var(--s5); }
.prose .callout > * + * { margin-top: .6em; }
.inline-cta, .inline-product { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--s5); background: var(--card); display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; }
.inline-cta p, .inline-product p { margin: 0; }
.author { display: flex; gap: var(--s4); align-items: center; padding: var(--s5) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: var(--s7); }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author p { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* case study */
.cs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: var(--s6); }
.cs-meta dt { margin-bottom: 6px; }
.cs-meta dd { margin: 0; font-weight: 500; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: var(--s5); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 500 .8rem/1 var(--ff-mono); color: var(--signal-ink); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 8px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline ul { margin: var(--s2) 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: var(--s2); } }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s5); }

/* pagination */
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s7); gap: var(--s4); }

/* empty */
.empty { border: 1px dashed var(--rule); border-radius: var(--r-lg); padding: var(--s7) var(--s5); text-align: center; color: var(--ink-3); }
.empty .h3 { color: var(--ink); margin-bottom: var(--s2); }

/* ---------- FleetQ ---------- */
.fq { --fq-bg: #0d0d0d; background: var(--fq-bg); color: #f4f1ea; }
.fq .label { color: #f5c400; }
.fq .lede, .fq p { color: rgba(244, 241, 234, .72); }
.fq .card { background: #161616; border-color: rgba(255, 255, 255, .08); color: #f4f1ea; }
.fq .card p { color: rgba(244, 241, 234, .66); }
.fq .input, .fq .select { background: #161616; border-color: rgba(255, 255, 255, .14); color: #f4f1ea; }
.fq .form-card { background: #111; border-color: rgba(255, 255, 255, .1); }
.fq .field label { color: #f4f1ea; }
.fq .btn--ghost { color: #f4f1ea; border-color: rgba(255, 255, 255, .2); }
.fq-feature .num { font: 500 .78rem/1 var(--ff-mono); color: #f5c400; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: var(--s8) var(--s6); margin-top: var(--s8); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s6); }
.footer-grid h2 { font: 500 .74rem/1.2 var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rule); color: var(--ink-3); font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
