/* BASI Web Services Pilot — case-study / capabilities page. Same visual language as the BASI intake
   experience (ink, cream, gold, editorial serif) arranged as a long-form case study, not a proposal. */
:root {
  color-scheme: dark;
  --ink: #11100f;
  --ink-soft: #181715;
  --ink-card: #1e1c19;
  --paper: #f5f1e8;
  --paper-deep: #e8e0d0;
  --white: #fffdf8;
  --gold: #c8a45d;
  --gold-bright: #dfc17f;
  --gold-ink: #6f5623;
  --muted: #aaa59a;
  --muted-dark: #5d574c;
  --line: rgba(255, 255, 255, .14);
  --dark-line: rgba(17, 16, 15, .16);
  --focus: #f2cf82;
  --radius: 1rem;
  --shell: min(1180px, calc(100% - 2rem));
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (min-width: 720px) { :root { --shell: min(1180px, calc(100% - 3rem)); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 1rem; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.9rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.25; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: 1rem; padding: .75rem 1rem; color: var(--ink); background: var(--focus); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--gold-ink); }
.eyebrow { margin: 0 0 1.25rem; color: var(--gold-bright); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.light .eyebrow { color: var(--gold-ink); }
.lead { font-size: 1.2rem; max-width: 62ch; color: var(--muted); }
.light .lead { color: var(--muted-dark); }
.measure { max-width: 62ch; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { width: var(--shell); margin-inline: auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.wordmark { margin: 0; font-family: var(--serif); font-size: 1.85rem; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.wordmark span { color: var(--gold); }
.header-tag { display: inline-flex; align-items: center; gap: .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); }
.header-tag::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); }
.header-link { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.header-link span { margin-left: .45rem; color: var(--gold); }
@media (max-width: 719px) { .header-tag { display: none; } }

/* buttons */
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: .8rem; padding: .85rem 1.4rem; border: 1px solid transparent; border-radius: .3rem; font-size: .8rem; font-weight: 800; letter-spacing: .035em; text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #17130d; }
.button-primary:hover { background: var(--gold-bright); }
.button-secondary { background: transparent; color: var(--white); border-color: var(--line); }
.button-secondary:hover { border-color: var(--gold); }
.light .button-secondary { color: var(--ink); border-color: var(--dark-line); }
.button-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* sections */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.light { background: var(--paper); color: var(--ink); }
.light-deep { background: var(--paper-deep); color: var(--ink); }
.pilot-banner { background: var(--gold); color: #17130d; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-align: center; padding: .6rem 1rem; }
.pilot-banner strong { font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-right: .5rem; }

/* hero */
.hero { padding-block: clamp(4rem, 9vw, 7.5rem) clamp(4rem, 8vw, 6.5rem); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: clamp(2.5rem, 7vw, 8rem); align-items: end; }
.hero h1 { max-width: 15ch; }
.hero-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; background: var(--ink-card); }
.hero-card dl { margin: 0; display: grid; gap: 1rem; }
.hero-card dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-card dd { margin: .15rem 0 0; font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.02em; }
.hero-card dl > div + div { border-top: 1px solid var(--line); padding-top: 1rem; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; align-items: start; } }

/* challenge */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pain-list li { padding: 1.1rem 1.25rem; border-left: 3px solid var(--gold); background: rgba(17, 16, 15, .05); }
.light .pain-list li { background: rgba(17, 16, 15, .04); }

/* lifecycle */
.lifecycle { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.lifecycle li { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.4rem; background: var(--ink-card); display: grid; gap: .5rem; align-content: start; }
.lifecycle li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.6rem; color: var(--gold); letter-spacing: -.03em; }
.lifecycle h3 { margin: 0; }
.lifecycle p { margin: 0; color: var(--muted); font-size: .95rem; }
.gate { display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); }
.gate::before { content: ""; width: .8rem; height: .8rem; border: 2px solid var(--gold); border-radius: 2px; transform: rotate(45deg); }
.gate-auto { color: var(--muted); }
.gate-auto::before { border-color: var(--muted); border-radius: 50%; transform: none; }
@media (max-width: 960px) { .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lifecycle { grid-template-columns: 1fr; } }
.legend { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }

/* feature blocks */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 8vw, 6rem); }
.feature-flip > :first-child { order: 2; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-flip > :first-child { order: 0; } }
.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .8rem; }
.facts li { position: relative; padding-left: 1.6rem; }
.facts li::before { content: "◆"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: .7rem; line-height: 1.9; }
.panel { border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--white); padding: 1.6rem; box-shadow: 0 30px 60px -40px rgba(17, 16, 15, .45); }
.dark .panel, .section:not(.light) .panel { background: var(--ink-card); border-color: var(--line); box-shadow: none; }
.panel h3 { margin-bottom: .75rem; }
.panel .kicker { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1rem; }
.section:not(.light) .panel .kicker { color: var(--gold-bright); }
.record { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.7; color: var(--muted-dark); white-space: pre-wrap; margin: 0; }
.section:not(.light) .record { color: var(--muted); }
.record b { color: var(--ink); font-weight: 700; }
.section:not(.light) .record b { color: var(--white); }
.record .ok { color: #256b43; }
.section:not(.light) .record .ok { color: #8fd6ab; }
.record .gold { color: var(--gold-ink); }
.section:not(.light) .record .gold { color: var(--gold-bright); }

/* build / QA stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.stat { border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 1.4rem 1.5rem; background: var(--white); }
.stat .n { font-family: var(--serif); font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.stat .l { margin: .5rem 0 0; font-size: .85rem; color: var(--muted-dark); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }
.shots { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 2.5rem; align-items: start; }
.shot { border: 1px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.shot figcaption { padding: .8rem 1rem; font-size: .78rem; color: var(--muted-dark); border-top: 1px solid var(--dark-line); }
.shot-mobile { max-width: 330px; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } .shot-mobile { max-width: 100%; } }
.shots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 860px) { .shots-grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.chip { font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: .45rem .8rem; border: 1px solid var(--dark-line); border-radius: 999px; color: var(--ink); background: var(--white); }

/* result */
.result-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--ink-card); display: grid; gap: 1rem; }
.result-card .big { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.status { display: inline-flex; align-items: center; gap: .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200, 164, 93, .2); }

/* learned */
.learned { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.learned li { border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--white); padding: 1.5rem; }
.learned h3 { margin-bottom: .5rem; }
.learned p { margin: 0; color: var(--muted-dark); font-size: .95rem; }
@media (max-width: 760px) { .learned { grid-template-columns: 1fr; } }

/* future */
.future { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .75rem; }
.future li { border-top: 2px solid var(--gold); padding-top: .9rem; font-size: .9rem; }
.future li b { display: block; font-family: var(--serif); font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: .25rem; }
.future li span { color: var(--muted); font-size: .82rem; }
@media (max-width: 1000px) { .future { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .future { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* cta */
.cta { text-align: center; }
.cta h2 { margin-inline: auto; }
.cta .lead { margin-inline: auto; }
.cta .button-row { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: .82rem; color: var(--muted); }
.site-footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--white); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } .button:hover { transform: none; } }
