/* Soma Corpus — survey-linen field atlas. Desktop-first. System fonts only. */
:root {
  --linen: #e7d9c4;
  --sheet: #f4ead8;
  --ink: #1b1610;
  --mute: #5c5348;
  --vermilion: #c23b22;
  --indigo: #2a4464;
  --hair: rgba(27, 22, 16, 0.16);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, ui-serif, serif;
  --sans: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --wide: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: rgba(194, 59, 34, 0.22); color: var(--ink); }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(194, 59, 34, 0.08), transparent 50%),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(42, 68, 100, 0.05) 48px),
    var(--linen);
  color: var(--ink); font-family: var(--serif); font-size: 1.12rem; line-height: 1.65;
}
.fiber {
  pointer-events: none; position: fixed; inset: 0; z-index: 50; opacity: 0.18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/></svg>");
}
a { color: var(--ink); text-underline-offset: 3px; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--vermilion); }
a:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }
.atlas { width: min(var(--wide), calc(100% - 5rem)); margin: 0 auto; padding: 0 0 4rem; }
.site-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 1.4rem 0 1.1rem; border-bottom: 2px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand svg { width: 34px; height: 34px; display: block; }
.wordmark { font-size: 1.35rem; letter-spacing: 0.02em; font-weight: 600; }
.imprint { margin: 0.15rem 0 0; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--ink); padding: 0.35rem 0.7rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.nav-list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-list a { text-decoration: none; color: var(--mute); }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--vermilion); }
.register { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0 0; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--indigo); }
.tick { color: var(--vermilion); }
.hero { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3rem; align-items: end; padding: 3.4rem 0 2.6rem; }
.folio { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vermilion); margin: 0 0 1rem; }
.hero h1 { margin: 0 0 1.2rem; font-weight: 500; font-size: clamp(2.1rem, 4.2vw, 3.35rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 18ch; }
.lede { margin: 0; color: #2c271f; max-width: 34rem; font-size: 1.08rem; }
.hero-art { background: var(--sheet); border: 1px solid var(--hair); padding: 0.6rem 0.6rem 0.35rem; box-shadow: 8px 10px 0 rgba(27, 22, 16, 0.06); }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art figcaption { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); padding: 0.45rem 0.3rem 0.15rem; }
.sec { padding: 2.6rem 0 0.4rem; border-top: 1px solid var(--hair); }
.sec-label { display: flex; align-items: baseline; gap: 1rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--indigo); margin: 0 0 1.6rem; font-weight: 500; }
.sec-label span { color: var(--vermilion); }
.pillars { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.4rem; }
.pillar { background: var(--sheet); border: 1px solid var(--hair); padding: 1.2rem 1.15rem 1.15rem; min-height: 100%; }
.pillar svg { width: 100%; height: auto; display: block; margin-bottom: 0.9rem; }
.pillar dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.55rem; color: var(--vermilion); }
.pillar dd { margin: 0; font-size: 0.98rem; color: #2a251e; }
.mission { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.4rem; align-items: center; }
.mission p { margin: 0; font-size: 1.22rem; line-height: 1.55; }
.mission figure { background: var(--sheet); border: 1px solid var(--hair); padding: 0.8rem; }
.mission svg { width: 100%; height: auto; display: block; }
.reel { position: relative; display: grid; grid-template-columns: 4.2rem 1fr 4.2rem; background: #16120e; color: #f3ead8; text-decoration: none; min-height: 22rem; overflow: hidden; }
.reel:hover { color: #fff; filter: brightness(1.06); }
.sprocket { background: repeating-linear-gradient(180deg, #16120e 0 10px, #16120e 10px 18px, #f3ead8 18px 28px, #16120e 28px 36px); }
.reel-body { display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem 1.8rem 1.5rem; position: relative; z-index: 1; }
.reel svg.field { position: absolute; inset: 8% 8% 28% 8%; width: auto; height: auto; opacity: 0.85; }
.play { width: 52px; height: 52px; border: 1px solid #f3ead8; border-radius: 50%; position: relative; margin-bottom: 0.9rem; }
.play::after { content: ""; position: absolute; left: 20px; top: 16px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #f3ead8; }
.video-cap { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.team-fig { background: #17130f; border: 1px solid var(--ink); }
.team-fig svg { display: block; width: 100%; height: auto; }
.get p { max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.btn { display: inline-block; background: var(--ink); color: var(--sheet); text-decoration: none; padding: 0.62rem 1.15rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--ink); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.btn:hover { background: var(--vermilion); border-color: var(--vermilion); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: #fff; }
.colophon { margin-top: 3.4rem; padding: 1.1rem 0 2rem; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 1.5rem; font-family: var(--mono); font-size: 0.68rem; color: var(--mute); }
.colophon p { margin: 0; }
.colophon a { color: var(--mute); }
.page-hero { padding: 2.8rem 0 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.page-hero h1 { margin: 0; font-weight: 500; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.03em; }
.page-hero svg { width: 100%; height: auto; display: block; }
.page { padding-bottom: 2rem; }
form { display: grid; gap: 0.35rem; max-width: 30rem; margin-top: 1.6rem; }
label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin-top: 0.7rem; }
input, textarea { font: inherit; padding: 0.5rem 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--vermilion); }
form .btn { margin-top: 1.2rem; justify-self: start; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes stroke { to { stroke-dashoffset: 0; } }
@keyframes walk { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.hero-copy { animation: rise 0.8s ease both; }
.hero-art { animation: rise 1s 0.12s ease both; }
.draw { stroke-dasharray: 480; stroke-dashoffset: 480; animation: stroke 2.4s ease forwards; }
.walker { animation: walk 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.dot { animation: pulse 2.6s ease-in-out infinite; }
.dot.d2 { animation-delay: 0.4s; }
.dot.d3 { animation-delay: 0.8s; }
.dot.d4 { animation-delay: 1.2s; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 800px) {
  .atlas { width: calc(100% - 1.6rem); }
  .site-header { flex-wrap: wrap; align-items: center; }
  .nav-toggle { display: inline-block; }
  .nav-list { display: none; width: 100%; flex-direction: column; gap: 0.7rem; padding: 0.6rem 0 0.2rem; }
  .nav-list.is-open { display: flex; }
  .hero, .pillars, .mission, .page-hero { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; gap: 1.4rem; }
  .reel { grid-template-columns: 1.6rem 1fr 1.6rem; min-height: 16rem; }
  .hero h1 { font-size: 1.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
