@font-face {
  font-family: "Whiff Barlow";
  src: url("projects/whiff/fonts/Barlow-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Whiff Barlow";
  src: url("projects/whiff/fonts/Barlow-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Whiff Condensed";
  src: url("projects/whiff/fonts/BarlowCondensed-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

.case-header { position: sticky; top: 0; z-index: 20; color: #f7eedf; background: rgba(16, 20, 21, 0.96); backdrop-filter: blur(12px); }
.case-header .site-nav a, .case-header .theme-toggle { color: #9c8e79; }
.case-header .site-nav a:hover, .case-header .site-nav a:focus-visible, .case-header .theme-toggle:hover, .case-header .theme-toggle:focus-visible { color: #f7eedf; }
.case-header .site-nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 0.75rem; white-space: nowrap; }
.case-header .theme-toggle { min-width: 44px; min-height: 44px; justify-content: center; }
html[data-theme="light"] .case-header { border-color: rgba(247, 238, 223, 0.15); }
html[data-theme="light"] .case-header .brand-mark-dark { display: block; }
html[data-theme="light"] .case-header .brand-mark-light { display: none; }
.whiff-case {
  --whiff-charcoal: #101415;
  --whiff-chalk: #f4f0e6;
  --whiff-graphite: #5b6264;
  --whiff-rule: rgba(91, 98, 100, 0.34);
  background: var(--whiff-chalk);
  color: var(--whiff-charcoal);
  font-family: "Whiff Barlow", var(--display);
}
.whiff-case :focus-visible { outline-color: #2f8578; }
.case-shell { width: min(calc(100% - 48px), 1120px); margin: 0 auto; }
.whiff-label { margin-bottom: 20px; color: var(--whiff-graphite); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; line-height: 1.5; text-transform: uppercase; }
.whiff-case h1, .whiff-case h2, .whiff-case h3 { font-family: "Whiff Condensed", var(--display); font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.whiff-case h2 { margin-bottom: 0; font-size: clamp(3rem, 6vw, 5.8rem); line-height: 0.9; }
.whiff-case h3 { font-size: clamp(2.15rem, 3.8vw, 4rem); line-height: 0.94; }

.whiff-hero { min-height: 680px; padding: 76px 0 32px; overflow: hidden; background: var(--whiff-charcoal); color: var(--whiff-chalk); }
.whiff-hero .whiff-label { color: #aeb4b4; }
.whiff-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr); gap: 8%; align-items: center; }
.whiff-lockup { width: min(205px, 48vw); height: auto; margin-bottom: 28px; }
.whiff-hero h1 { max-width: 760px; margin-bottom: 12px; font-size: clamp(3.4rem, 6vw, 5.8rem); line-height: 0.88; }
.whiff-deck { max-width: 660px; margin-bottom: 22px; color: #bdc2c2; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; }
.whiff-promise { margin: 0; color: var(--whiff-chalk); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.whiff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.whiff-actions > span { color: #aeb4b4; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.whiff-button { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 11px 18px; background: var(--whiff-chalk); color: var(--whiff-charcoal); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.11em; text-decoration: none; text-transform: uppercase; transition: transform 180ms ease, background-color 180ms ease; }
.whiff-button:hover, .whiff-button:focus-visible { background: #ffffff; transform: translateY(-2px); }
.snapshot-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid rgba(244, 240, 230, 0.3); }
.snapshot-grid div { min-width: 0; padding: 16px 14px 16px 0; border-bottom: 1px solid rgba(244, 240, 230, 0.2); }
.snapshot-grid div:nth-child(odd) { border-right: 1px solid rgba(244, 240, 230, 0.2); }
.snapshot-grid div:nth-child(even) { padding-left: 14px; }
.snapshot-grid div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-right: 0; }
.snapshot-grid div:nth-child(4) { padding-left: 0; border-right: 1px solid rgba(244, 240, 230, 0.2); }
.snapshot-grid div:nth-child(5) { padding-left: 14px; border-right: 0; }
.snapshot-grid dt, .publish-gate dt { color: #aeb4b4; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.snapshot-grid dd { margin: 5px 0 0; font-size: 0.95rem; line-height: 1.4; }
.whiff-case code { padding: 2px 5px; background: rgba(91, 98, 100, 0.18); color: inherit; font-family: var(--mono); font-size: 0.75em; overflow-wrap: anywhere; }
.whiff-hero-line { display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: 18px; align-items: center; margin-top: 48px; color: #aeb4b4; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; }
.whiff-hero-line i { height: 1px; background: #5b6264; }

.case-section { padding: 108px 0; }
.split-heading { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 10%; }
.case-copy-large { padding-top: 42px; }
.case-copy p { color: var(--whiff-graphite); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; }
.case-copy p:first-child { color: var(--whiff-charcoal); }
.thesis-section { border-top: 1px solid var(--whiff-rule); border-bottom: 1px solid var(--whiff-rule); }
.section-ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr); gap: 8%; align-items: end; }
.section-ledger .whiff-label { grid-column: 1 / -1; }
.section-ledger > p:last-child { margin: 0; color: var(--whiff-graphite); font-size: 1.1rem; line-height: 1.5; }
.domain-route { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 64px 0 30px; padding: 0; list-style: none; }
.domain-route li { position: relative; min-height: 135px; padding: 48px 18px 18px 0; border-top: 2px solid var(--whiff-charcoal); }
.domain-route li::before { position: absolute; top: -7px; left: 0; width: 11px; height: 11px; border: 2px solid var(--whiff-charcoal); border-radius: 50%; background: var(--whiff-chalk); content: ""; }
.domain-route li:not(:last-child)::after { position: absolute; top: -6px; right: 4px; color: var(--whiff-graphite); content: "→"; font-family: var(--mono); font-size: 0.75rem; }
.domain-route span { display: block; margin-bottom: 4px; color: var(--whiff-graphite); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.domain-route strong { font-size: 1.1rem; line-height: 1.2; }
.domain-route .domain-anchor { padding-left: 14px; background: var(--whiff-charcoal); color: var(--whiff-chalk); }
.domain-route .domain-anchor::before { left: 14px; background: var(--whiff-chalk); }
.domain-route .domain-anchor span { color: #bdc2c2; }
.domain-note { max-width: 720px; margin: 0; color: var(--whiff-graphite); }
.domain-note strong { color: var(--whiff-charcoal); }

.decisions-section { background: #ebe6dc; }
.decisions-section > .case-shell > .section-ledger { margin-bottom: 60px; }
.decision-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr); gap: 6%; padding: 48px; border: 1px solid var(--whiff-rule); background: var(--whiff-chalk); }
.decision-card + .decision-card { margin-top: 28px; }
.decision-number { position: absolute; top: 20px; right: 24px; color: rgba(91, 98, 100, 0.34); font-family: "Whiff Condensed"; font-size: 3rem; line-height: 1; }
.decision-story > .whiff-label { padding-right: 64px; }
.decision-story h3 { max-width: 700px; margin-bottom: 34px; padding-right: 42px; }
.decision-logic { margin: 0; }
.decision-logic div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 17px 0; border-top: 1px solid var(--whiff-rule); }
.decision-logic dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.decision-logic dd { margin: 0; color: var(--whiff-graphite); line-height: 1.55; }
.system-callout { align-self: end; padding: 24px; border-left: 6px solid var(--whiff-charcoal); background: #e8e3da; }
.system-callout ul { margin: 0; padding-left: 18px; }
.system-callout li { margin: 10px 0; }
.decision-card-dark { background: var(--whiff-charcoal); color: var(--whiff-chalk); }
.decision-card-dark .whiff-label, .decision-card-dark .decision-logic dd { color: #bdc2c2; }
.decision-card-dark .decision-logic div { border-color: rgba(244, 240, 230, 0.2); }
.reveal-diagram { align-self: end; display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.reveal-diagram div { padding: 20px; border: 1px solid #5b6264; }
.reveal-diagram div span, .reveal-diagram div small { display: block; color: #bdc2c2; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.reveal-diagram div strong { display: block; margin: 10px 0; font-size: 1.05rem; }
.reveal-arrow { color: #bdc2c2; }
.reveal-diagram p { grid-column: 1 / -1; margin: 0; padding-top: 16px; border-top: 1px solid #5b6264; color: #bdc2c2; font-size: 0.85rem; }
.decision-card-media { grid-template-columns: 1fr; }
.proof-media { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; margin-top: 30px; }
.proof-media figure { margin: 0; }
.proof-media img { display: block; width: 100%; height: auto; border: 1px solid var(--whiff-rule); background: var(--whiff-charcoal); }
.proof-media figcaption { padding-top: 10px; color: var(--whiff-graphite); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; line-height: 1.5; text-transform: uppercase; }

.evidence-section { background: var(--whiff-charcoal); color: var(--whiff-chalk); }
.evidence-section .section-ledger { margin-bottom: 54px; }
.evidence-section .section-ledger > p:last-child, .evidence-section .whiff-label { color: #bdc2c2; }
.outcome-strip { display: grid; grid-template-columns: 0.7fr 0.55fr 0.55fr 1.5fr; margin: 0 0 28px; border-top: 1px solid #4c5354; border-bottom: 1px solid #4c5354; }
.outcome-strip div { padding: 22px; border-right: 1px solid #4c5354; }
.outcome-strip div:last-child { border-right: 0; }
.outcome-strip dt { color: #bdc2c2; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.outcome-strip dd { margin: 7px 0 0; font-family: "Whiff Condensed", var(--display); font-size: 1.8rem; line-height: 1; text-transform: uppercase; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.evidence-grid article { padding: 30px; border: 1px solid #4c5354; }
.evidence-state { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.evidence-state span { width: 8px; height: 8px; border-radius: 50%; background: var(--whiff-chalk); }
.evidence-state-open span { border: 1px solid #bdc2c2; background: transparent; }
.evidence-grid ul { margin: 25px 0 0; padding-left: 18px; color: #d2d5d1; }
.evidence-grid li { margin: 12px 0; }
.evidence-section blockquote { margin: 56px 0 0; padding: 0 0 0 28px; border-left: 4px solid var(--whiff-chalk); }
.evidence-section blockquote p { max-width: 850px; margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.35; }

.publish-gate { background: var(--whiff-chalk); }
.gate-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); gap: 8%; }
.gate-grid h2 { margin-bottom: 30px; }
.gate-grid > div > p:last-child { max-width: 560px; color: var(--whiff-graphite); }
.publish-gate dl { margin: 0; border-top: 1px solid var(--whiff-rule); }
.publish-gate dl div { display: grid; grid-template-columns: 135px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--whiff-rule); }
.publish-gate dd { margin: 0; min-width: 0; }
.publish-gate dt { color: var(--whiff-graphite); }
.publish-gate a { display: inline-flex; min-height: 44px; align-items: center; color: inherit; text-underline-offset: 3px; }
.site-footer .footer-top { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 850px) {
  .whiff-hero-grid, .split-heading, .section-ledger, .gate-grid { grid-template-columns: 1fr; }
  .whiff-hero { padding-top: 70px; }
  .snapshot-grid { margin-top: 60px; }
  .section-ledger > p:last-child { margin-top: 28px; }
  .domain-route { grid-template-columns: repeat(3, 1fr); gap: 34px 0; }
  .domain-route li:nth-child(3)::after { display: none; }
  .decision-card { grid-template-columns: 1fr; padding: 48px; }
  .outcome-strip { grid-template-columns: 1fr 1fr; }
  .outcome-strip div:nth-child(2) { border-right: 0; }
  .outcome-strip div:nth-child(-n+2) { border-bottom: 1px solid #4c5354; }
  .system-callout, .reveal-diagram { margin-top: 28px; }
  .gate-grid dl { margin-top: 30px; }
}

@media (max-width: 600px) {
  .case-shell { width: min(calc(100% - 32px), 1080px); }
  .case-section { padding: 84px 0; }
  .case-header .header-inner { flex-wrap: nowrap; min-height: 64px; padding: 0; gap: 8px; }
  .case-header .brand { min-width: 44px; min-height: 44px; justify-content: center; }
  .case-header .brand-mark { width: 34px; }
  .case-header .brand-name { display: none; }
  .case-header .site-nav { order: initial; flex: 1; width: auto; justify-content: center; gap: 8px; padding: 0; }
  .case-header .theme-toggle { margin-left: 0; padding-left: 10px; }
  .whiff-hero { min-height: 0; padding-top: 54px; }
  .whiff-hero h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .whiff-deck { font-size: 1.16rem; }
  .whiff-actions { align-items: flex-start; flex-direction: column; }
  .snapshot-grid { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .snapshot-grid div:nth-child(3) { grid-column: 1 / -1; }
  .whiff-hero-line { gap: 8px; margin-top: 44px; }
  .whiff-case h2 { font-size: clamp(3rem, 15vw, 5rem); }
  .case-copy-large { padding-top: 18px; }
  .domain-route { grid-template-columns: 1fr; gap: 0; margin-top: 55px; }
  .domain-route li { min-height: 0; padding: 28px 0 28px 24px; border-top-width: 1px; }
  .domain-route li::before { top: -6px; }
  .domain-route li:not(:last-child)::after { top: auto; right: 5px; bottom: 8px; transform: rotate(90deg); }
  .domain-route .domain-anchor { padding-left: 24px; }
  .domain-route .domain-anchor::before { left: 0; }
  .decision-card { padding: 52px 22px 28px; }
  .decision-number { top: 16px; right: 18px; font-size: 3rem; }
  .decision-logic div { grid-template-columns: 1fr; gap: 6px; }
  .proof-media, .evidence-grid { grid-template-columns: 1fr; }
  .outcome-strip { grid-template-columns: 1fr 1fr; }
  .outcome-strip div { padding: 18px 14px; }
  .outcome-strip div:nth-child(2) { border-right: 0; }
  .outcome-strip div:nth-child(-n+2) { border-bottom: 1px solid #4c5354; }
  .outcome-strip div:last-child { grid-column: 1 / -1; }
  .outcome-strip dd { font-size: 1.5rem; }
  .reveal-diagram { grid-template-columns: 1fr; }
  .reveal-arrow { transform: rotate(90deg); text-align: center; }
  .publish-gate dl div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 360px) {
  .case-header .site-nav a { letter-spacing: 0.02em; }
}

@media (max-width: 850px) and (max-height: 500px) and (orientation: landscape) {
  .whiff-hero { padding-top: 40px; }
  .whiff-hero .whiff-label { margin-bottom: 12px; }
  .whiff-lockup { width: 165px; margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .whiff-case *, .whiff-case *::before, .whiff-case *::after { scroll-behavior: auto; }
}
