:root {
  --paper: #f2efe8;
  --paper-2: #e8e4da;
  --ink: #11130f;
  --muted: #54594f;
  --line: #bbb9af;
  --signal: #d8ff5f;
  --signal-dark: #44570c;
  --orange: #f26735;
  --white: #fffdf8;
  --sans: "IBM Plex Sans", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: oa-page-out .22s ease both; }
::view-transition-new(root) { animation: oa-page-in .42s var(--ease-out) both; }
@keyframes oa-page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes oa-page-in { from { opacity: 0; transform: translateY(12px); } }

body {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(17, 19, 15, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 15, .025) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

.section-grid > *, .prose { min-width: 0; }
h1, h2, h3, blockquote { text-wrap: balance; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.site-header {
  border-top: 4px solid var(--ink);
  background: rgba(242, 239, 232, .97);
  box-shadow: 0 8px 28px rgba(17, 19, 15, .05);
}
.site-progress { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 4; height: 2px; overflow: hidden; pointer-events: none; }
.site-progress span { display: block; width: 100%; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.nav { min-height: 78px; }
.brand { gap: 11px; font-size: .9rem; letter-spacing: .045em; text-transform: uppercase; }
.brand-logo { display: block; width: 36px; height: 36px; flex: 0 0 auto; }
.brand-copy { display: inline-flex; align-items: baseline; gap: 6px; }
.brand-copy span { font-weight: 700; }
.brand-copy b { padding-left: 6px; border-left: 1px solid var(--line); color: var(--signal-dark); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.nav-links a { position: relative; text-decoration: none; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 10px; height: 2px; background: var(--orange); transition: right .28s var(--ease-out); }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { text-decoration-thickness: 3px; }
.nav-cta, .button, .signup button { border: 1px solid var(--ink); transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), background-color .18s ease, color .18s ease; }
.nav-cta:hover, .button:hover, .signup button:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.nav-cta:hover { background: var(--orange); color: var(--ink); }

.hero { grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); }
.hero-main { position: relative; isolation: isolate; overflow: hidden; background: rgba(242, 239, 232, .9); }
.hero-main::before {
  content: "OA / FIELD NOTES / 001";
  position: absolute;
  z-index: -1;
  right: 24px;
  bottom: 24px;
  writing-mode: vertical-rl;
  color: rgba(17, 19, 15, .16);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.hero-main::after {
  content: "01";
  position: absolute;
  z-index: -1;
  left: clamp(18px, 5vw, 92px);
  bottom: -0.2em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(17, 19, 15, .11);
  font-family: var(--serif);
  font-size: clamp(12rem, 28vw, 34rem);
  line-height: .72;
  letter-spacing: -.12em;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 8.5ch; }
.hero h1 em { color: var(--signal-dark); }
.hero-foot span::before { border-radius: 0; }
.hero-side { grid-template-rows: minmax(330px, .82fr) auto auto; background: var(--ink); }
.hero-art { position: relative; min-height: 330px; margin: 0; overflow: hidden; border-bottom: 1px solid #4a4d46; background: #080a08; }
.hero-art::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: -25%; height: 24%; background: linear-gradient(180deg, transparent, rgba(216,255,95,.22), transparent); mix-blend-mode: screen; pointer-events: none; animation: oa-scan 7s ease-in-out infinite; }
.hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 42%; transition: transform 1.1s var(--ease-out), filter .5s ease; }
.hero-art:hover img { transform: scale(1.035); filter: saturate(1.12) contrast(1.04); }
@keyframes oa-scan { 0%, 12% { transform: translateY(0); opacity: 0; } 28%, 68% { opacity: 1; } 82%, 100% { transform: translateY(520%); opacity: 0; } }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,19,15,.02) 50%, rgba(17,19,15,.78) 100%); }
.hero-art figcaption {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.55);
  color: var(--white);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-art figcaption span:last-child { color: var(--signal); }
.field-card { padding-block: clamp(32px, 4vw, 52px); }
.field-card h2 { max-width: 14ch; font-size: clamp(2.1rem, 3.8vw, 3.6rem); }
.field-link b { transition: transform .28s var(--ease-out); }
.field-link:hover b { transform: translateX(8px); }

.proof-bar { position: relative; }
.proof-bar::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 63px, rgba(17,19,15,.12) 63px 64px); }
.operator-image { background: #0c0e0c; }
.operator-image img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: none; }
.operator-image::after { background: linear-gradient(180deg, transparent 58%, rgba(17,19,15,.86) 100%); }

.editorial-visual, .report-visual, .control-map { position: relative; margin: 0; overflow: hidden; background: var(--ink); }
.editorial-visual::before, .report-visual::before { content: ""; position: absolute; z-index: 2; inset: 14px; border: 1px solid rgba(242,239,232,.42); pointer-events: none; }
.editorial-visual img, .report-visual img, .control-map img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .5s ease; }
.editorial-visual:hover img, .report-visual:hover img { transform: scale(1.025); filter: contrast(1.04); }
.editorial-visual figcaption, .report-visual figcaption {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(17,19,15,.9);
  color: var(--white);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.editorial-visual figcaption span:last-child, .report-visual figcaption span:last-child { color: var(--signal); }

.method-stage { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(38px, 7vw, 110px); align-items: start; margin-top: clamp(42px, 6vw, 82px); }
.visual-control { position: sticky; top: 112px; min-height: 650px; clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); }
.visual-control img { position: absolute; inset: 0; object-position: 52% center; }

.method { display: block; border-left: 0; }
.method article { min-height: 0; display: grid; grid-template-columns: 82px 1fr; align-items: start; gap: 18px; padding: 34px 22px 34px 0; border-right: 0; transition: padding .3s var(--ease-out), background-color .3s ease, color .3s ease; }
.method article:hover { padding-left: 22px; background: var(--signal); color: var(--ink); }
.method .number { font-size: 2rem; }
.method h3 { margin: 0; font-size: clamp(2rem, 3.4vw, 3.25rem); }
.method p { max-width: 48ch; }

.library-shell { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(320px, .84fr); gap: clamp(44px, 7vw, 104px); align-items: start; margin-top: clamp(40px, 6vw, 76px); }
.library-list { min-width: 0; }
.library-item { position: relative; transition: padding .28s var(--ease-out), background-color .25s ease; }
.library-item::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 0; background: var(--signal); transition: width .28s var(--ease-out); }
.library-item:hover { padding-inline: 18px; background: rgba(216,255,95,.16); }
.library-item:hover::before { width: 5px; }
.library-arrow { transition: transform .28s var(--ease-out); }
.library-item:hover .library-arrow { transform: translateX(8px) rotate(-12deg); }
.visual-workbench { position: sticky; top: 112px; min-height: 660px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%); }
.visual-workbench img { position: absolute; inset: 0; object-position: center; }

.operator-proof { position: relative; overflow: hidden; }
.operator-proof::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.operator-proof > * { position: relative; z-index: 1; }
.operator-copy { position: relative; overflow: hidden; }
.operator-copy::after { content: "OWNER / OPERATOR / PROOF"; position: absolute; left: 7%; bottom: -8%; color: rgba(17,19,15,.06); font-family: var(--sans); font-size: clamp(4rem, 9vw, 10rem); font-weight: 800; letter-spacing: -.08em; white-space: nowrap; }
.byline { align-items: center; }
.byline-person { display: flex; align-items: center; gap: 12px; }
.byline-portrait { width: 48px; height: 48px; object-fit: cover; object-position: center 20%; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); }

.briefing-preview { transform: none; box-shadow: none; border-top-width: 8px; background-image: linear-gradient(rgba(17,19,15,.045) 1px, transparent 1px); background-size: 100% 28px; }
.briefing-preview::before { right: 22px; background: var(--ink); color: var(--white); }

.workbench-stage { display: grid; grid-template-columns: minmax(0, .92fr) minmax(400px, 1.08fr); gap: clamp(44px, 7vw, 100px); align-items: start; margin-top: clamp(40px, 6vw, 76px); }
.control-map { position: sticky; top: 112px; border: 1px solid #454941; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 38px), calc(100% - 38px) 100%, 0 100%); }
.control-map img { aspect-ratio: 4 / 3; }
.control-map figcaption { padding: 16px 18px; border-top: 1px solid #454941; color: var(--signal); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.resource { transition: padding .28s var(--ease-out), background-color .25s ease; }
.resource:hover { padding-inline: 16px; background: rgba(216,255,95,.08); }

.report-visual { min-height: 420px; margin: 34px 0 42px; clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.report-visual img { position: absolute; inset: 0; }

.article-hero { position: relative; overflow: hidden; background: rgba(242,239,232,.93); }
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr); gap: clamp(48px, 8vw, 112px); align-items: end; }
.article-hero-copy { min-width: 0; }
.article-hero-art { position: relative; min-height: 420px; margin: 0; overflow: hidden; border: 1px solid var(--ink); background: var(--ink); }
.article-hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.article-hero-art figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; background: rgba(17,19,15,.9); color: var(--white); font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-hero-art figcaption span:last-child { color: var(--signal); }

.resource-index { display: block; border-left: 0; }
.resource-card { min-height: 0; display: grid; grid-template-columns: 72px minmax(220px, .8fr) minmax(300px, 1.2fr) auto; gap: clamp(20px, 4vw, 52px); align-items: center; padding: 30px 0; border-right: 0; transition: padding .18s ease, background-color .18s ease; }
.resource-card:hover { padding-inline: 18px; }
.resource-card h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.resource-card b { font-size: 2rem; }
.resource-card > span { margin: 0; text-align: right; }
.resource-preview { margin: 0; padding: 0; }

.footer-brand { display: flex; align-items: center; gap: 18px; font-family: var(--sans); letter-spacing: 0; }
.footer-brand .brand-logo { width: 54px; height: 54px; border: 1px solid #4a4d46; }
.footer-lockup { display: grid; gap: 5px; }
.footer-lockup b { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 500; line-height: 1; }
.footer-lockup small { color: #9fa29a; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art img, .article-hero-art img { animation: oa-image-in .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy, .article-hero-copy { animation: oa-copy-in .65s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes oa-image-in { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
  @keyframes oa-copy-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}

@supports (animation-timeline: scroll()) {
  .site-progress span { animation: oa-reading-progress linear both; animation-timeline: scroll(root); }
  @keyframes oa-reading-progress { to { transform: scaleX(1); } }
}

@supports (animation-timeline: view()) {
  .operator-image img, .visual-control img, .visual-workbench img, .report-visual img {
    animation: oa-editorial-drift linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes oa-editorial-drift { from { transform: scale(1.09) translateY(-2%); } to { transform: scale(1.02) translateY(2%); } }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: 380px auto auto; }
  .article-hero-grid { grid-template-columns: 1fr; }
  .article-hero-art { min-height: 420px; }
  .resource-card { grid-template-columns: 60px 1fr auto; }
  .resource-preview { grid-column: 2 / -1; }
  .method-stage, .library-shell, .workbench-stage { grid-template-columns: 1fr; }
  .visual-control, .visual-workbench, .control-map { position: relative; top: auto; }
  .visual-control { min-height: 540px; }
  .visual-workbench { min-height: 520px; order: -1; }
  .control-map { max-width: 760px; }
}

@media (max-width: 680px) {
  .site-header { border-top-width: 3px; }
  .brand-logo { width: 31px; height: 31px; }
  .brand-copy { gap: 4px; }
  .brand-copy b { padding-left: 0; border-left: 0; font-size: .66rem; }
  .hero-side { grid-template-rows: 300px auto auto; }
  .hero-art { min-height: 300px; }
  .hero-art figcaption { left: 18px; right: 18px; flex-direction: column; gap: 5px; }
  .method article { grid-template-columns: 54px 1fr; gap: 16px; }
  .method article > div { grid-column: 2; }
  .method p { margin-top: 10px; }
  .article-hero-art { min-height: 300px; }
  .resource-card { grid-template-columns: 46px 1fr; padding: 26px 0; }
  .resource-card > span, .resource-preview { grid-column: 2; text-align: left; }
  .resource-preview { grid-template-columns: 1fr; }
  .resource-preview small { min-height: 38px; align-items: center; }
  .method-stage, .library-shell, .workbench-stage { gap: 30px; margin-top: 32px; }
  .visual-control, .visual-workbench { min-height: 380px; clip-path: none; }
  .editorial-visual::before, .report-visual::before { inset: 9px; }
  .editorial-visual figcaption, .report-visual figcaption { flex-direction: column; gap: 5px; padding: 14px 16px; }
  .method article { padding: 26px 12px 26px 0; }
  .method article:hover { padding-left: 12px; }
  .method h3 { font-size: 2rem; }
  .library-item:hover, .resource:hover { padding-inline: 8px; }
  .control-map { clip-path: none; }
  .report-visual { min-height: 300px; clip-path: none; }
  .worksheet { width: 100%; max-width: 100%; }
  .footer-brand { align-items: flex-start; }
  .footer-brand .brand-logo { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-progress span, .hero-art::before, .hero-art img, .article-hero-art img,
  .operator-image img, .visual-control img, .visual-workbench img, .report-visual img {
    animation: none !important;
    transform: none !important;
  }
  .hero-art::before { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
