/* Jacksicon Valley — site styles. Dark, architectural, mint-lit. */
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-opsz.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0c0b;
  --bg-2: #101312;
  --bg-3: #161a19;
  --line: #232927;
  --line-soft: #1a1f1d;
  --text: #eef2ef;
  --muted: #a3ada8;
  --faint: #7d8883;
  --mint: #7cf0b2;
  --mint-2: #5fd998;
  --mint-ink: #04140c;
  --paper: #f1f0ea;
  --paper-2: #e7e5dc;
  --ink: #101412;
  --ink-muted: #4b5450;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
::selection { background: var(--mint); color: var(--mint-ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mint); color: var(--mint-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
mark.todo { background: #ffd54a; color: #1a1300; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: .975rem; font-weight: 600; letter-spacing: -0.005em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .3s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: var(--mint); color: var(--mint-ink); box-shadow: 0 0 0 0 rgba(124, 240, 178, 0); }
.btn-primary:hover { background: #93f5c1; box-shadow: 0 10px 40px -8px rgba(124, 240, 178, .45); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border-color: rgba(124, 240, 178, .55); color: var(--text); min-height: 42px; padding: 0 20px; }
.btn-ghost:hover { background: rgba(124, 240, 178, .1); border-color: var(--mint); }
.btn-text { color: var(--muted); padding: 0 6px; }
.btn-text:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10, 12, 11, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .18em; font-size: .86rem; }
.brand-mark { width: 26px; height: 26px; color: var(--mint); }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: .94rem; }
.site-nav a:not(.btn) { color: var(--muted); position: relative; padding: 10px 0; transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; place-items: center; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 72px; overflow: hidden; isolation: isolate; }
.hero-inner { position: relative; z-index: 2; }
.display { font-size: clamp(2.9rem, 7.4vw, 6.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: .98; max-width: 11ch; }
.display span { display: block; }
.accent { color: var(--mint); }
.lede { margin-top: 28px; max-width: 34rem; font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--muted); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-rail { margin-top: clamp(56px, 9vh, 96px); display: flex; align-items: center; gap: 16px; font-size: .72rem; letter-spacing: .24em; color: var(--faint); }
.rail-line { width: 72px; height: 1px; background: linear-gradient(90deg, transparent, var(--faint)); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--mint); opacity: .8; }

.hero-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.arch {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(64%, 980px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.arch > div { position: absolute; }
.arch-wall { inset: 0; background: radial-gradient(120% 90% at 85% 40%, #1d2321 0%, #121615 45%, #0a0c0b 80%); }
.arch-beam {
  inset: 0;
  background: linear-gradient(170deg, #2c3330 0%, #1a1f1d 40%, #0f1211 75%);
  clip-path: polygon(8% 0, 100% 0, 100% 18%, 30% 44%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06);
}
.arch-light {
  left: 52%; top: 33%; width: 30%; height: 44%;
  background:
    linear-gradient(180deg, rgba(4, 20, 12, 0) 35%, rgba(4, 20, 12, .42) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .18) 0, rgba(255, 255, 255, 0) 14%),
    linear-gradient(160deg, #d6ffea 0%, #8af5bd 32%, #44c286 74%, #1c6f49 100%);
  clip-path: polygon(0 26%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 60px rgba(4, 20, 12, .35);
  animation: breathe 7s ease-in-out infinite;
}
.arch-light-glow {
  left: 38%; top: 20%; width: 60%; height: 70%;
  background: radial-gradient(closest-side, rgba(124, 240, 178, .35), rgba(124, 240, 178, .08) 60%, transparent);
  filter: blur(30px);
  animation: breathe 7s ease-in-out infinite;
}
.arch-pillar {
  left: 82%; top: 26%; bottom: 0; width: 18%;
  background: linear-gradient(90deg, #232a27 0%, #151918 60%, #0d100f 100%);
  box-shadow: -18px 0 40px -10px rgba(124, 240, 178, .18);
}
.arch-floor {
  left: 20%; right: 0; bottom: 0; height: 24%;
  background:
    radial-gradient(60% 90% at 62% 0%, rgba(124, 240, 178, .28), rgba(124, 240, 178, .06) 55%, transparent 75%),
    linear-gradient(180deg, #131816, #0a0c0b);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
.arch-floor::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(255, 255, 255, .025) 119px 120px); }
.grain { position: absolute; inset: 0; background-image: var(--grain); background-size: 220px; opacity: .32; mix-blend-mode: overlay; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }
@keyframes breathe { 0%, 100% { opacity: .92; } 50% { opacity: 1; filter: saturate(1.08); } }

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 11vw, 140px) 0; position: relative; }
.light { background: var(--paper); color: var(--ink); }
.light .intro, .light p { color: var(--ink-muted); }
.light .eyebrow { color: #17703f; }
.dark { background: var(--bg); }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.h2 { font-size: clamp(2rem, 4.3vw, 3.35rem); letter-spacing: -0.035em; line-height: 1.04; }
.split-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 80px); }
.intro { color: var(--muted); max-width: 30rem; justify-self: end; margin: 0; }

.cap-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.cap { padding: 8px 32px 8px 0; border-left: 1px solid transparent; }
.cap + .cap { padding-left: 32px; border-left-color: #d3d1c7; }
.cap-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--mint); margin-bottom: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cap-icon .i { width: 24px; height: 24px; }
.cap:hover .cap-icon { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(16, 20, 18, .55); }
.cap h3 { font-size: 1.32rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.cap p { font-size: .97rem; margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 25px; left: 26px; right: 8%; height: 1px; background: linear-gradient(90deg, var(--mint) 0%, rgba(124, 240, 178, .35) 50%, rgba(124, 240, 178, .08)); }
.step { position: relative; }
.step-num { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--mint); background: var(--bg); color: var(--mint); font-size: .88rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 28px; }
.step h3 { font-size: 1.24rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; max-width: 17rem; }

.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-top: 1px solid var(--line-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px 80px; align-items: start; }
.about-copy > p { color: var(--muted); font-size: 1.12rem; }
.principles { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.principles li { padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .015); color: var(--muted); font-size: .98rem; }
.principles strong { color: var(--text); font-weight: 600; }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 520px; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.cta-art { position: relative; overflow: hidden; }
.cta-wall { position: absolute; inset: 0; background: radial-gradient(90% 80% at 75% 20%, #3a3f3a 0%, #262a27 35%, #141715 75%), #141715; }
.cta-wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 245, 220, .08) 55%, transparent 70%); }
.fronds { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(.4px) drop-shadow(30px 10px 18px rgba(0, 0, 0, .45)); opacity: .92; }
.cta-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bg-2)), radial-gradient(70% 60% at 20% 100%, rgba(0, 0, 0, .55), transparent 70%); }
.cta-panel { padding: clamp(56px, 8vw, 110px) clamp(28px, 6vw, 96px); align-self: center; }
.cta-panel p:not(.eyebrow) { color: var(--muted); max-width: 30rem; margin: 22px 0 32px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg); padding: 72px 0 32px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 22rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-style: normal; color: var(--muted); }
.footer-col h2 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 6px; }
.footer-col a { color: var(--muted); width: fit-content; transition: color .2s; }
.footer-col a:hover { color: var(--mint); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: .86rem; }
.footer-base p { margin: 0; }
.footer-base a:hover { color: var(--mint); }
.muted { color: var(--muted); }

/* ---------- Inner pages (contact, legal) ---------- */
.page-hero { padding: calc(var(--header-h) + 72px) 0 56px; border-bottom: 1px solid var(--line-soft); background: radial-gradient(60% 120% at 90% 0%, rgba(124, 240, 178, .08), transparent 60%), var(--bg); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -0.04em; }
.page-hero p { color: var(--muted); max-width: 40rem; margin-top: 18px; font-size: 1.1rem; }
.prose { max-width: 46rem; padding: 64px 0 112px; color: #c9d1cd; }
.prose h2 { font-size: 1.45rem; color: var(--text); margin: 48px 0 14px; letter-spacing: -0.02em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { font-size: 1.1rem; color: var(--text); margin: 28px 0 10px; }
.prose a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose .meta { color: var(--faint); font-size: .92rem; }
.prose .callout { border: 1px solid var(--line); border-left: 3px solid var(--mint); border-radius: 10px; padding: 16px 20px; background: var(--bg-2); margin: 24px 0; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 8px 0 8px; background: var(--bg-2); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 32px; font-size: .95rem; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--mint); }

.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; padding: 64px 0 112px; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { color: var(--faint); font-weight: 400; font-size: .85rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; min-height: 50px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #33403a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(124, 240, 178, .14); background: var(--bg-3); }
.field [aria-invalid="true"] { border-color: #ff8a80; }
.field .error { color: #ff9d94; font-size: .88rem; min-height: 1em; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .93rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--mint); flex: none; }
.check a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: .95rem; }
.form-status.ok { color: var(--mint); }
.form-status.bad { color: #ff9d94; }
.btn[disabled] { opacity: .6; cursor: progress; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); align-self: start; }
.contact-card h2 { font-size: 1.2rem; margin-bottom: 18px; }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dt { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.contact-card dd { margin: 0; color: var(--text); }
.contact-card a:hover { color: var(--mint); }

.notfound { min-height: 80svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.notfound .code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 600; letter-spacing: -0.06em; color: var(--mint); line-height: 1; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .arch-light, .arch-light-glow { animation: none; }
  .btn, .cap-icon { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .cap:nth-child(3) { padding-left: 0; border-left-color: transparent; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .arch { width: 78%; opacity: .7; }
}
@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 28px; background: rgba(10, 12, 11, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-open .site-nav { opacity: 1; transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 20px; justify-content: center; min-height: 50px; }
  .nav-open .site-header { background: rgba(10, 12, 11, .97); }
  .split-head, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro { justify-self: start; }
  .cta { grid-template-columns: 1fr; }
  .cta-art { min-height: 300px; }
  .arch { width: 100%; opacity: .45; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
  .toc ol { columns: 1; }
}
@media (max-width: 560px) {
  .cap-grid, .steps { grid-template-columns: 1fr; }
  .cap, .cap + .cap { padding-left: 0; border-left: 0; }
  .cap + .cap { padding-top: 32px; border-top: 1px solid #d3d1c7; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-rail { font-size: .66rem; gap: 10px; }
  .rail-line { width: 32px; }
}
.page-hero .eyebrow { color: var(--mint); font-size: .74rem; margin: 0 0 18px; }
