/* objective.works — "Swiss blueprint" system.
   Tokens and base construction come from the original design handoff
   (design_handoff_objective_works); the component layer below implements
   the applied-AI-consultancy site per the North Star brief: typographic,
   editorial, hairline-ruled, with CSS-drawn workflow and decision-path
   diagrams. No photography, no build step. */

/* — fonts (self-hosted) — */
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../assets/fonts/spacegrotesk-var-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: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../assets/fonts/spacegrotesk-var-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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/plexmono-400-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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/plexmono-400-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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/plexmono-500-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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/plexmono-500-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;
}

/* — tokens (oklch authoritative, from the design handoff) — */
:root {
  --bg: oklch(0.985 0.003 240);
  --bg-header: oklch(0.985 0.003 240 / .82);
  --surface: oklch(0.99 0.002 240);
  --ink: oklch(0.24 0.02 255);
  --ink-strong: oklch(0.26 0.02 255);
  --muted: oklch(0.44 0.02 255);
  --muted-2: oklch(0.46 0.02 255);
  --muted-soft: oklch(0.5 0.02 255);
  --muted-nav: oklch(0.42 0.02 255);
  --faint: oklch(0.62 0.02 255);
  --accent: oklch(0.55 0.16 250);
  --number-tint: oklch(0.8 0.02 255);
  --hover-tint: oklch(0.965 0.01 250);
  --hairline: rgba(30, 41, 59, .16);
  --hairline-header: rgba(30, 41, 59, .14);
  --hairline-chip: rgba(30, 41, 59, .2);
  --grid-line: rgba(30, 41, 59, .045);
  --mono: 'IBM Plex Mono', monospace;
  --pad-x: clamp(24px, 4vw, 56px);
  --pad-y: clamp(56px, 6vw, 88px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Space Grotesk', sans-serif; min-height: 100vh;
  overflow-x: hidden; position: relative;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .62; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: oklch(0.55 0.16 250 / .18); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* — blueprint grid background (remove .blueprint-grid from <body> to disable) — */
body.blueprint-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
}
.page { position: relative; z-index: 1; }

/* — mono labels — */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  color: var(--accent); text-transform: uppercase;
}
.eyebrow .dim { color: var(--faint); }
.mono-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); }

/* — header — */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--pad-x);
  border-bottom: 1px solid var(--hairline-header);
  background: var(--bg-header);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand .name { font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.brand .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--accent); }
.site-nav {
  display: flex; align-items: center; gap: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted-nav);
}
.site-nav a.active { color: var(--accent); }
.nav-cta {
  padding: 8px 14px; border: 1px solid var(--accent); color: var(--accent);
}
.nav-cta:hover { background: var(--hover-tint); opacity: 1; }
.menu-btn {
  display: none; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  padding: 8px 14px; border: 1px solid var(--hairline-chip);
}
.menu-btn:hover { border-color: var(--accent); }

/* — sections — */
.section { border-top: 1px solid var(--hairline); }
.section.on-surface { background: var(--surface); }
.inner { max-width: 1180px; margin: 0 auto; padding: var(--pad-y) var(--pad-x); }
.head-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: flex-end;
}
.head-row h2 { font-weight: 600; letter-spacing: -.02em; }
.link-mono {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--accent);
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}

/* — hero — */
.hero {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(48px, 7vw, 104px) var(--pad-x) clamp(44px, 6vw, 88px);
}
.hero .eyebrow { margin-bottom: 28px; animation: riseIn .7s var(--ease) .05s both; }
.hero h1 {
  font-weight: 600; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06;
  letter-spacing: -.025em; max-width: 15ch;
  animation: riseIn .8s var(--ease) .14s both;
}
.hero h1 .line { display: block; }
.hero .sub {
  font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: var(--muted);
  max-width: 56ch; margin-top: 28px;
  animation: riseIn .8s var(--ease) .2s both;
}
.hero .row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; animation: riseIn .8s var(--ease) .26s both; }
.objective-row {
  margin-top: 48px; display: flex; align-items: center; gap: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted-soft);
  animation: riseIn .8s var(--ease) .3s both;
}
.objective-row .lbl { color: oklch(0.3 0.02 255); }
.objective-row .word { display: inline-flex; align-items: center; gap: 8px; }
.objective-row .word::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
}
.objective-row .rule {
  flex: 1; height: 1px; min-width: 40px;
  background: repeating-linear-gradient(90deg, rgba(30,41,59,.28) 0 1px, transparent 1px 9px);
}

/* — buttons — */
.btn-solid {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  padding: 15px 24px; border-radius: 7px;
}
.btn-solid:hover { opacity: .86; }
.btn-quiet {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--accent);
  padding: 15px 18px; border: 1px solid var(--hairline-chip); border-radius: 7px;
}
.btn-quiet:hover { border-color: var(--accent); opacity: 1; }

/* — principle callout (the "whatever works" line) — */
.principle {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em;
  color: var(--ink-strong); text-transform: uppercase;
  border: 1px solid var(--hairline); padding: 13px 18px;
  background: var(--surface);
}
.principle::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex: none; }

/* — what we do — */
.lede { font-size: clamp(16px, 1.7vw, 18px); line-height: 1.65; color: var(--muted); max-width: 62ch; }
.lede + .lede { margin-top: 18px; }
.what-grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 64px); align-items: flex-start; }
.what-copy { flex: 1 1 460px; }
.what-copy h2 {
  font-weight: 600; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.02em;
  margin-bottom: 22px; max-width: 22ch;
}
.what-side {
  flex: 1 1 300px; max-width: 380px;
  font-family: var(--mono); font-size: 12.5px; line-height: 2.1; color: var(--muted-2);
}
.what-side .lbl { letter-spacing: .16em; color: var(--accent); font-size: 11px; margin-bottom: 10px; }
.what-side ul { list-style: none; margin: 0; padding: 0; }
.what-side li { border-bottom: 1px solid var(--hairline-header); padding: 6px 0; }
.what-side li:last-child { border-bottom: 0; }

/* — outcomes (ruled three-up) — */
.outcomes-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: var(--hairline); border: 1px solid var(--hairline);
}
.outcome { background: var(--surface); padding: 30px 30px 34px; }
.outcome:hover { background: var(--hover-tint); }
.outcome .n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); margin-bottom: 18px; }
.outcome h3 { font-weight: 600; font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -.015em; margin-bottom: 12px; }
.outcome .what { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-bottom: 10px; }
.outcome .flavor { font-size: 13px; line-height: 1.6; color: var(--muted-soft); }

/* — engagement model: six-step rail — */
.rail {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border-top: 1px solid var(--hairline); margin-top: 42px;
}
.step { position: relative; padding: 26px 18px 6px 0; }
.step::before { /* the node on the rail */
  content: ""; position: absolute; top: -4.5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--accent);
}
.step:first-child::before { background: var(--accent); }
.step .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; }
.step h3 { font-weight: 600; font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.step p { font-size: 13px; line-height: 1.6; color: var(--muted-2); max-width: 24ch; }
@media (max-width: 980px) {
  .rail { grid-template-columns: repeat(2, 1fr); border-top: 0; gap: 0 32px; }
  .step { border-top: 1px solid var(--hairline); padding-right: 0; }
  .step p { max-width: none; }
}
@media (max-width: 520px) { .rail { grid-template-columns: 1fr; } }

/* — objective cards — */
.obj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 38px; }
.obj-card {
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--hairline); padding: 24px 26px 22px;
  background: var(--bg);
}
a.obj-card:hover { border-color: var(--accent); opacity: 1; }
.obj-card .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.obj-card .k .dim { color: var(--faint); }
.obj-card .stmt { font-weight: 600; font-size: 19px; line-height: 1.35; letter-spacing: -.01em; flex: 1; }
.obj-card .go { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--accent); }

/* — staffing: decision path — */
.staffing-grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 72px); align-items: center; }
.staffing-copy { flex: 1 1 400px; }
.staffing-copy h2 {
  font-weight: 600; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.02em;
  margin-bottom: 20px; max-width: 16ch;
}
.staffing-copy .lede { max-width: 48ch; }
.decision { flex: 1 1 380px; display: flex; align-items: stretch; gap: 0; min-width: min(100%, 340px); }
.d-root { display: flex; align-items: center; }
.d-root .node { border-color: var(--accent); }
.node {
  border: 1px solid var(--hairline); background: var(--surface);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  padding: 12px 16px; white-space: nowrap;
}
.d-branches { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 4px 0; }
.d-branch { display: flex; align-items: center; }
.d-link { width: clamp(20px, 4vw, 46px); height: 1px; background: var(--hairline-chip); flex: none; position: relative; }
.d-link::after { content: ""; position: absolute; right: 0; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.d-trunk { width: clamp(16px, 3vw, 36px); height: 1px; background: var(--hairline-chip); flex: none; align-self: center; }
.d-spine { width: 1px; background: var(--hairline-chip); flex: none; margin: 22px 0; }
.d-note { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted-soft); margin-top: 16px; }
@media (max-width: 640px) {
  .decision { flex-direction: column; gap: 10px; }
  .d-trunk, .d-spine, .d-link { display: none; }
  .d-branches { gap: 10px; }
  .node { white-space: normal; }
  .d-branch .node { width: 100%; }
  .d-root .node { width: 100%; text-align: center; }
}

/* — trust principles — */
.principles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 clamp(28px, 4vw, 56px); margin-top: 34px;
}
.principle-item {
  display: flex; align-items: baseline; gap: 12px;
  border-top: 1px solid var(--hairline-header); padding: 13px 0;
  font-size: 14.5px; color: var(--ink-strong);
}
.principle-item::before {
  content: ""; width: 6px; height: 6px; background: var(--accent); flex: none;
  transform: translateY(-1px);
}
.principles-note { font-size: 13.5px; line-height: 1.65; color: var(--muted-soft); max-width: 60ch; margin-top: 26px; }

/* — contact / close — */
.contact-inner {
  max-width: 1180px; margin: 0 auto;
  padding: var(--pad-y) var(--pad-x) 0;
  display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 52px); align-items: flex-start;
}
.contact-copy { flex: 1 1 420px; }
.contact-copy h2 {
  font-weight: 600; letter-spacing: -.025em; line-height: 1.05; margin-bottom: 20px;
  font-size: clamp(32px, 4vw, 42px); max-width: 14ch;
}
.contact-copy p { font-size: 16px; line-height: 1.65; color: var(--muted); margin-bottom: 30px; max-width: 46ch; }
.location {
  flex: 0 1 300px;
  font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--muted-2);
  font-style: normal;
}
.location .lbl { letter-spacing: .16em; color: var(--accent); margin-bottom: 12px; font-size: 11px; }
.location .co { color: var(--ink-strong); font-weight: 500; }

/* — footer row — */
.foot-wrap { max-width: 1180px; margin: 64px auto 0; padding: 0 var(--pad-x); }
.foot-row {
  border-top: 1px solid var(--hairline); padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted-soft);
}

/* — examples page: title block + engagement sheets — */
.title-block {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(48px, 6vw, 86px) var(--pad-x) clamp(28px, 3vw, 40px);
}
.title-block .eyebrow { margin-bottom: 26px; animation: riseIn .7s var(--ease) .05s both; }
.title-block h1 {
  font-weight: 600; font-size: clamp(36px, 5vw, 60px); line-height: 1.04;
  letter-spacing: -.025em; margin-bottom: 24px;
  animation: riseIn .8s var(--ease) .12s both;
}
.title-block .intro {
  font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; color: var(--muted); max-width: 62ch;
  animation: riseIn .8s var(--ease) .18s both;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  border: 1px solid var(--hairline-chip); border-radius: 999px;
  padding: 5px 12px; color: var(--muted);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--number-tint); }

.sheet { border: 1px solid var(--hairline); background: var(--surface); margin-top: 34px; }
.sheet-head {
  display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: baseline;
  padding: 22px 28px; border-bottom: 1px solid var(--hairline);
}
.sheet-head .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--accent); }
.sheet-head .k .dim { color: var(--faint); }
.sheet-title { font-weight: 600; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.015em; padding: 24px 28px 0; }
.sheet-rows { padding: 10px 28px 26px; }
.srow {
  display: grid; grid-template-columns: 190px 1fr; gap: 8px clamp(20px, 3vw, 44px);
  border-top: 1px solid var(--hairline-header); padding: 14px 0;
}
.srow:first-child { border-top: 0; }
.srow .f {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--muted-soft); padding-top: 3px; text-transform: uppercase;
}
.srow .v { font-size: 14.5px; line-height: 1.65; color: var(--ink-strong); max-width: 72ch; }
.srow .v .arrow { color: var(--accent); }
@media (max-width: 640px) { .srow { grid-template-columns: 1fr; gap: 4px; } }

/* — motion — */
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
[data-reveal] { /* JS sets initial state; content stays visible without JS */ }
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .sub, .hero .row, .objective-row,
  .title-block .eyebrow, .title-block h1, .title-block .intro { animation: none; }
}

/* — responsive header — */
@media (max-width: 880px) {
  .site-nav {
    display: none;
    position: absolute; top: calc(100% + 1px); right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border: 1px solid var(--hairline); border-top: 0;
    min-width: 240px;
  }
  .site-nav a { padding: 13px 18px; border-bottom: 1px solid var(--hairline-header); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav .nav-cta { border: 0; color: var(--accent); }
  .site-header.menu-open .site-nav { display: flex; }
  .menu-btn { display: inline-flex; }
  .brand .tag { display: none; }
}
