:root {
  color-scheme: light;
  --ink: oklch(0.19 0.018 255);
  --ink-soft: oklch(0.31 0.02 255);
  --paper: oklch(0.965 0.015 80);
  --paper-deep: oklch(0.925 0.025 78);
  --blue: oklch(0.56 0.235 259);
  --blue-dark: oklch(0.42 0.22 260);
  --coral: oklch(0.66 0.2 38);
  --line: oklch(0.77 0.025 255 / 0.55);
  --white: oklch(0.985 0.008 80);
  --muted: oklch(0.57 0.02 255);
  --focus: oklch(0.69 0.19 250);
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Archivo", Arial, sans-serif;
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; }
body { margin: 0; max-width: 100%; overflow-wrap: anywhere; background: var(--paper); color: var(--ink); font-family: var(--font-body); line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E"); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 99; background: var(--white); color: var(--ink); padding: .75rem 1rem; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; max-width: var(--max); margin: 0 auto; padding: 1.25rem clamp(1rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; color: var(--white); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-size: .82rem; font-weight: 650; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--coral); color: var(--ink); font-family: var(--font-display); font-weight: 800; }
.nav-links { display: flex; gap: 1.5rem; font-size: .84rem; }
.nav-links a { text-decoration: none; color: color-mix(in oklch, var(--white), transparent 22%); }
.nav-links a:hover { color: var(--white); }
.site-header > .button { justify-self: end; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .8rem 1.15rem; border: 1px solid var(--blue); background: var(--blue); color: var(--white); text-decoration: none; font-weight: 700; transition: transform .25s var(--ease), background .25s var(--ease); }
.button:hover { transform: translateY(-2px); background: var(--blue-dark); }
.button-small { min-height: 2.5rem; padding: .55rem .9rem; font-size: .82rem; }
.text-link { display: inline-flex; gap: .45rem; align-items: center; width: fit-content; color: inherit; text-underline-offset: .28rem; font-weight: 700; }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translate(3px, -3px); }

.hero { min-height: 100svh; padding: clamp(8rem, 15vw, 12rem) max(1rem, calc((100vw - var(--max)) / 2 + 3rem)) clamp(5rem, 8vw, 7rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); background: var(--ink); color: var(--white); }
.hero-copy { max-width: 760px; }
.eyebrow, .section-index, .panel-label { margin: 0 0 1.25rem; font-size: .74rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { color: var(--coral); }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--font-display); line-height: .98; letter-spacing: -.035em; }
h1 { margin: 0; max-width: 16ch; font-size: clamp(3.15rem, 7vw, 7.8rem); font-weight: 720; }
h1 span { color: var(--blue); }
.hero-lead { max-width: 64ch; margin: 2rem 0 0; color: color-mix(in oklch, var(--white), transparent 22%); font-size: clamp(1rem, 1.3vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2.5rem; }

.hero-stage { position: relative; min-height: 560px; isolation: isolate; }
.hero-stage::before { content: ""; position: absolute; inset: 8% 0 4% 6%; border: 1px solid color-mix(in oklch, var(--white), transparent 75%); transform: rotate(-3deg); }
.stage-core { position: absolute; top: 34%; left: 12%; right: 3%; padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--blue); transform: rotate(3deg); box-shadow: 1.2rem 1.2rem 0 var(--coral); }
.stage-core span, .stage-core strong { display: block; }
.stage-core span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.stage-core strong { margin-top: .75rem; max-width: 9ch; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 4.4rem); line-height: .9; }
.stage-note { position: absolute; z-index: 2; display: flex; gap: .65rem; align-items: center; padding: .7rem .85rem; background: var(--paper); color: var(--ink); font-size: .75rem; font-weight: 650; box-shadow: .55rem .55rem 0 color-mix(in oklch, var(--blue), transparent 42%); }
.stage-note b { color: var(--blue); }
.note-a { top: 9%; left: 0; }
.note-b { top: 21%; right: 0; }
.note-c { bottom: 8%; left: 18%; }
.stage-line { position: absolute; width: 30%; height: 1px; background: var(--coral); transform-origin: left center; }
.stage-line-one { top: 25%; left: 21%; transform: rotate(56deg); }
.stage-line-two { bottom: 30%; right: 9%; transform: rotate(125deg); }

.proof-strip { background: var(--blue); color: var(--white); padding: 1.35rem max(1rem, calc((100vw - var(--max)) / 2 + 3rem)); display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.proof-strip > p { margin: 0; font-weight: 750; }
.proof-strip ul { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; margin: 0; padding: 0; list-style: none; font-size: .87rem; }
.proof-strip li { position: relative; padding-left: 1rem; }
.proof-strip li::before { content: ""; position: absolute; left: 0; top: .65em; width: .35rem; height: .35rem; background: var(--coral); }

.section { padding: clamp(5rem, 10vw, 10rem) max(1rem, calc((100vw - var(--max)) / 2 + 3rem)); }
.section-heading { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.4fr) minmax(250px, .65fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; margin-bottom: clamp(3rem, 7vw, 6rem); }
.section-index { color: var(--blue-dark); }
.section-heading h2, .portfolio-heading h2, .final-copy h2 { margin: 0; max-width: 15ch; font-size: clamp(2.6rem, 5.5vw, 6.2rem); }
.section-heading > p:last-child { margin: .35rem 0 0; max-width: 48ch; color: var(--ink-soft); }

.comparison { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comparison-tabs { display: none; gap: .5rem; padding: 1rem 0; }
.comparison-tab { min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 .9rem var(--font-body); }
.comparison-tab.is-active { background: var(--ink); color: var(--white); }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-panel { min-width: 0; padding: clamp(2rem, 5vw, 4.5rem); }
.profile-panel + .profile-panel { border-left: 1px solid var(--line); }
.profile-before { background: var(--paper-deep); }
.profile-after { background: var(--ink); color: var(--white); }
.panel-label { color: var(--blue-dark); }
.profile-after .panel-label { color: var(--coral); }
.profile-panel h3 { margin: 0; max-width: 20ch; font-size: clamp(1.85rem, 3.2vw, 3.3rem); line-height: 1.02; }
.profile-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.profile-meta span { padding: .45rem .65rem; border: 1px solid currentColor; font-size: .73rem; font-weight: 650; }
.diagnosis { max-width: 56ch; margin: 0; color: var(--ink-soft); }
.profile-after .diagnosis { color: color-mix(in oklch, var(--white), transparent 25%); }

.about-redraft { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: clamp(2rem, 7vw, 7rem); padding: clamp(4rem, 8vw, 8rem) 0; }
.about-intro h3 { margin: 0; max-width: 10ch; font-size: clamp(2rem, 4vw, 4rem); }
blockquote { margin: 0; max-width: 68ch; font-size: clamp(1.05rem, 1.45vw, 1.25rem); }
blockquote p { margin-top: 0; margin-bottom: 1.25rem; }
blockquote p:first-child { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 3rem); font-weight: 700; line-height: 1.05; }
.action-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.action-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 1rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.action-list li > span { color: var(--coral); font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.action-list h3 { margin: 0 0 .5rem; font-size: clamp(1.35rem, 2.2vw, 2rem); }
.action-list p { max-width: 70ch; margin: 0; color: var(--ink-soft); }

.portfolio-section { background: var(--ink); color: var(--white); }
.portfolio-heading { display: grid; grid-template-columns: minmax(220px, .5fr) minmax(0, 1.5fr); gap: clamp(2rem, 7vw, 7rem); margin-bottom: clamp(4rem, 8vw, 8rem); }
.portfolio-heading .section-index { color: var(--coral); }
.site-audit { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.portfolio-section .panel-label { color: var(--coral); }
.site-wireframe { border: 1px solid color-mix(in oklch, var(--white), transparent 70%); background: var(--paper); color: var(--ink); box-shadow: 1rem 1rem 0 var(--blue); }
.site-wireframe > div { padding: 1rem; border-bottom: 1px solid var(--line); }
.site-wireframe > div:last-child { border: 0; }
.wire-nav { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.wire-hero { min-height: 190px; display: flex; flex-direction: column; justify-content: center; gap: .8rem; background: var(--blue); color: var(--white); }
.wire-hero b { font-family: var(--font-display); font-size: 2.8rem; line-height: .9; }
.wire-hero span { font-size: .8rem; }
.wire-row, .wire-video, .wire-form { font-size: .82rem; font-weight: 650; }
.wire-video { min-height: 130px; display: grid; place-items: center; background: var(--ink); color: var(--white); }
.wire-form { min-height: 90px; }
.audit-findings ul { margin: 0; padding: 0; list-style: none; }
.audit-findings li { padding: 1.25rem 0; border-top: 1px solid color-mix(in oklch, var(--white), transparent 78%); color: color-mix(in oklch, var(--white), transparent 22%); }
.audit-findings li:last-child { border-bottom: 1px solid color-mix(in oklch, var(--white), transparent 78%); }
.audit-findings b { color: var(--white); }
.structure-plan { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: clamp(3rem, 8vw, 8rem); margin-top: clamp(6rem, 11vw, 11rem); }
.plan-copy { position: sticky; top: 2rem; align-self: start; }
.plan-copy h3 { max-width: 10ch; margin: 0 0 1.25rem; font-size: clamp(2.4rem, 5vw, 5rem); }
.plan-copy > p:not(.section-index) { max-width: 42ch; color: color-mix(in oklch, var(--white), transparent 28%); }
.plan-copy .text-link { margin-top: 1rem; }
.structure-flow { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.structure-flow li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 1.2rem; padding: 1.5rem 0; border-top: 1px solid color-mix(in oklch, var(--white), transparent 78%); }
.structure-flow li:last-child { border-bottom: 1px solid color-mix(in oklch, var(--white), transparent 78%); }
.structure-flow span { color: var(--coral); font-family: var(--font-display); font-weight: 800; }
.structure-flow b { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.75rem); }
.structure-flow p { margin: .35rem 0 0; color: color-mix(in oklch, var(--white), transparent 30%); }

.content-section { background: var(--paper-deep); }
.post-concept { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; padding: clamp(3rem, 7vw, 7rem) 0; border-top: 1px solid var(--line); }
.post-reverse .post-visual { order: 2; }
.post-visual { position: relative; min-width: 0; aspect-ratio: 1; overflow: hidden; box-shadow: 1rem 1rem 0 var(--blue); }
.post-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-cover-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.25rem, 4vw, 3rem); color: var(--white); background: linear-gradient(90deg, color-mix(in oklch, var(--ink), transparent 5%) 0 34%, transparent 72%); }
.post-cover-copy span { font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.post-cover-copy strong { max-width: 8ch; font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 4.8rem); line-height: .9; }
.post-cover-light { color: var(--ink); background: linear-gradient(90deg, color-mix(in oklch, var(--paper), transparent 4%) 0 37%, transparent 72%); }
.post-copy h3 { max-width: 12ch; margin: 0 0 1.4rem; font-size: clamp(2.2rem, 4vw, 4.5rem); }
.post-hook { padding: 1.1rem 1.25rem; background: var(--ink); color: var(--white); font-family: var(--font-display); font-size: clamp(1.1rem, 1.7vw, 1.5rem); font-weight: 650; }
.post-outline { margin-top: 1.8rem; }
.post-outline ol { padding-left: 1.25rem; }
.post-outline li { margin-bottom: .5rem; }
.post-caption { margin-top: 1.75rem; color: var(--ink-soft); font-size: .92rem; }

.final-plan { background: var(--blue); color: var(--white); }
.final-copy { display: grid; grid-template-columns: .5fr 1.5fr; gap: clamp(2rem, 7vw, 7rem); }
.final-copy .section-index { color: var(--paper); }
.month-plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: clamp(4rem, 8vw, 8rem) 0 0; padding: 0; border-top: 1px solid color-mix(in oklch, var(--white), transparent 65%); list-style: none; }
.month-plan li { min-width: 0; padding: 1.5rem; border-right: 1px solid color-mix(in oklch, var(--white), transparent 65%); }
.month-plan li:last-child { border-right: 0; }
.month-plan span { color: var(--coral); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.month-plan p { margin-bottom: 0; }
.closing-note { margin-top: clamp(5rem, 10vw, 10rem); text-align: center; }
.closing-note p { margin: 0; font-size: clamp(1rem, 2vw, 1.5rem); }
.closing-note strong { display: block; max-width: 18ch; margin: 1rem auto 0; font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 7rem); line-height: .9; }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem max(1rem, calc((100vw - var(--max)) / 2 + 3rem)); background: var(--ink); color: color-mix(in oklch, var(--white), transparent 35%); font-size: .78rem; }
footer p { max-width: 70ch; margin: 0; }
footer a { white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-stage { min-height: 440px; max-width: 620px; width: 100%; }
  .proof-strip { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading h2 { max-width: 18ch; }
  .site-audit, .structure-plan, .post-concept { grid-template-columns: 1fr; }
  .plan-copy { position: static; }
  .post-reverse .post-visual { order: 0; }
  .post-visual { max-width: 640px; }
  .month-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .month-plan li:nth-child(2) { border-right: 0; }
  .month-plan li:nth-child(n+3) { border-top: 1px solid color-mix(in oklch, var(--white), transparent 65%); }
}

@media (max-width: 680px) {
  .site-header { padding-inline: 1rem; }
  .brand > span:last-child { display: none; }
  .hero { padding-top: 7.5rem; }
  .hero-stage { min-height: 360px; }
  .stage-core { left: 4%; right: 7%; }
  .note-a { top: 3%; }
  .note-b { top: 17%; }
  .note-c { bottom: 2%; left: 8%; }
  .comparison-tabs { display: flex; }
  .comparison-grid { display: block; }
  .profile-panel { display: none; }
  .profile-panel.is-active { display: block; }
  .profile-panel + .profile-panel { border-left: 0; }
  .about-redraft, .portfolio-heading, .final-copy { grid-template-columns: 1fr; }
  .action-list li { grid-template-columns: 54px minmax(0, 1fr); }
  .month-plan { grid-template-columns: 1fr; }
  .month-plan li, .month-plan li:nth-child(2) { border-right: 0; border-top: 1px solid color-mix(in oklch, var(--white), transparent 65%); }
  .month-plan li:first-child { border-top: 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
