/* Vallum — getvallum.com
   Layout: one long dark page, a single lamplit hero, then calm sections separated by thin gold rules.
   Palette and type match the logo kit (ivory V, gold flame, Cinzel capitals). */
:root {
  --night: #0d0b09;      /* page */
  --night-2: #12100d;    /* alternate band */
  --panel: #17140f;      /* cards, form panels */
  --field: #0f0d0a;      /* inputs */
  --ivory: #efe7da;      /* text, the V */
  --muted: #b3a895;      /* secondary text */
  --gold: #d9a654;       /* the flame, accents */
  --gold-hi: #e8bd73;    /* hover */
  --rule: #2b251e;       /* hairlines */
  --edge: #786c5b;       /* field borders, >= 3:1 on --field */
  --error: #f08a72;
  --display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--night); color: var(--ivory);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(217, 166, 84, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 900px) { :root { --gutter: max(40px, env(safe-area-inset-left, 0px)); --gutter-r: max(40px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: #1a1208; padding: 10px 14px; border-radius: 3px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* faint film grain over everything, for depth on large dark fields */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h1, h2 { font-family: var(--display); letter-spacing: .02em; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.7rem); line-height: 1.15; }
h3 { font: 600 1.125rem/1.35 var(--body); letter-spacing: .01em; }
p { margin: 0; }
.eyebrow { font: 600 .75rem/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--muted); max-width: 36em; }
.gold { color: var(--gold); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border: 1px solid var(--gold); border-radius: 2px;
  background: var(--gold); color: #1a1208; font: 600 .9375rem/1 var(--body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn[disabled] { cursor: progress; opacity: .75; }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(217, 166, 84, .6); }
.btn-ghost:hover { background: rgba(217, 166, 84, .12); border-color: var(--gold); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ivory); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(217, 166, 84, .55); padding: 4px 0; transition: border-color .2s, color .2s; }
.arrow::after { content: "→"; color: var(--gold); transition: transform .2s; }
.arrow:hover { border-color: var(--gold); }
.arrow:hover::after { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 11, 9, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: auto; }
.wordmark { font: 500 1.25rem/1 var(--display); letter-spacing: .2em; padding-left: .2em; }
.site-header nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 34px; }
.site-header nav a { text-decoration: none; font-size: .9375rem; color: var(--muted); transition: color .2s; }
.site-header nav a:hover { color: var(--ivory); }
@media (min-width: 860px) { .site-header nav ul { display: flex; } }
@media (max-width: 380px) { .wordmark { font-size: 1.05rem; letter-spacing: .16em; } .brand img { width: 32px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 128px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-art { position: relative; justify-self: center; width: min(62vw, 300px); order: -1; }
.hero-art img { position: relative; width: 100%; height: auto; }
.glow {
  position: absolute; left: 50%; top: 18%; width: 190%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217, 166, 84, .30) 0%, rgba(217, 166, 84, .12) 28%, rgba(217, 166, 84, 0) 62%);
  animation: breathe 7s ease-in-out infinite; pointer-events: none;
}
@keyframes breathe { 0%, 100% { opacity: .82; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
.hero h1 { margin-bottom: 24px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 36px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .hero-art { order: 0; width: min(100%, 440px); }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; border-top: 1px solid var(--rule); position: relative; }
.section.alt { background: var(--night-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 + p { margin-top: 22px; }

/* why: two figures from public sources */
.why-grid { display: grid; gap: 48px; }
.why-copy h2 + p { margin-top: 26px; }
.why-copy p + p { margin-top: 18px; }
.why-copy p { color: var(--muted); max-width: 34em; }
.why-copy strong { color: var(--ivory); font-weight: 500; }
.stats { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.stat { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 10px; }
.stat .num { font: 500 clamp(3rem, 6vw, 4.5rem)/1 var(--display); color: var(--gold); letter-spacing: .01em; }
.stat .num small { font: 500 .3em/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-left: 12px; vertical-align: .35em; }
.stat figcaption { color: var(--ivory); max-width: 30em; }
.stat cite { display: block; margin-top: 8px; font-style: normal; font-size: .8125rem; letter-spacing: .02em; color: var(--muted); }
.stat cite a { color: var(--muted); text-decoration-color: rgba(179, 168, 149, .5); text-underline-offset: 3px; }
.stat cite a:hover { color: var(--ivory); }
@media (min-width: 900px) { .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; } }

/* building: three design goals */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.pillars li { background: var(--night-2); padding: 34px 28px 36px; display: grid; gap: 12px; align-content: start; }
.pillars .n { font: 500 .8125rem/1 var(--display); color: var(--gold); letter-spacing: .2em; }
.pillars p { color: var(--muted); }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.status { margin-top: 32px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9375rem; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 166, 84, .18); flex: none; }

/* the name */
.name { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--rule); text-align: center; position: relative; overflow: hidden; }
.name::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 140vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(217, 166, 84, .09), rgba(217, 166, 84, 0) 65%); pointer-events: none; }
.name blockquote { margin: 0 auto; max-width: 720px; position: relative; }
.name .latin { font: 500 clamp(2.6rem, 8vw, 5.5rem)/1 var(--display); letter-spacing: .24em; padding-left: .24em; }
.name .gloss { margin-top: 26px; font-size: clamp(1.0625rem, 1.8vw, 1.3rem); color: var(--muted); }
.name .gloss em { font-style: normal; color: var(--gold); }

/* audiences */
.audiences { display: grid; gap: 20px; }
.audience { border: 1px solid var(--rule); background: var(--panel); padding: 36px 30px; display: grid; gap: 16px; align-content: start; }
.audience h3 { font: 500 1.6rem/1.2 var(--display); letter-spacing: .03em; }
.audience p { color: var(--muted); }
.audience ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.audience li { font-size: .8125rem; letter-spacing: .02em; color: var(--ivory); border: 1px solid #3a3229; border-radius: 999px; padding: 5px 12px; }
.audience .arrow { justify-self: start; margin-top: 10px; }
@media (min-width: 860px) { .audiences { grid-template-columns: 1fr 1fr; } }

/* founder */
.founder { display: grid; gap: 28px; }
.founder .role { color: var(--gold); font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-top: 10px; }
.founder p.bio { color: var(--muted); font-size: 1.125rem; max-width: 40em; }
.founder p.bio + p.bio { margin-top: 16px; }
@media (min-width: 900px) { .founder { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; } }

/* ---------- forms ---------- */
.forms-grid { display: grid; gap: 24px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .forms-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.form-card { background: var(--panel); border: 1px solid var(--rule); padding: clamp(28px, 4vw, 44px); scroll-margin-top: 90px; }
.form-card .card-title { font: 500 clamp(1.45rem, 2.3vw, 1.9rem)/1.2 var(--display); letter-spacing: .02em; }
.form-card .intro { color: var(--muted); margin: 14px 0 28px; }
.form-card form { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.field { display: grid; gap: 8px; min-width: 0; }
.row2 { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
label, legend { font-size: .9375rem; font-weight: 500; color: var(--ivory); }
.opt { font-weight: 400; color: var(--muted); font-size: .8125rem; margin-left: 6px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border-radius: 3px;
  background: var(--field); color: var(--ivory); border: 1px solid var(--edge);
  font: 400 1rem/1.4 var(--body); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 104px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23d9a654' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
}
select:invalid { color: var(--muted); }
option { background: #17140f; color: var(--ivory); }
input::placeholder, textarea::placeholder { color: #8b8070; }
input:hover, select:hover, textarea:hover { border-color: #93866f; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 166, 84, .35); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.err { color: var(--error); font-size: .875rem; min-height: 0; }
.err:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--edge); color: var(--ivory); font-size: .9375rem; cursor: pointer; user-select: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.choice span:hover { border-color: #93866f; }
.choice input:checked + span { background: rgba(217, 166, 84, .16); border-color: var(--gold); color: #fff; }
.choice input:checked + span::before { content: "✓"; color: var(--gold); margin-right: 8px; font-size: .875rem; }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; cursor: pointer; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.fineprint { font-size: .8125rem; color: var(--muted); }
.fineprint a { color: var(--muted); text-underline-offset: 3px; }
.fineprint a:hover { color: var(--ivory); }
.notice { border: 1px solid; border-radius: 3px; padding: 14px 16px; font-size: .9375rem; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.notice[hidden] { display: none; }
.notice.error { border-color: rgba(240, 138, 114, .6); background: rgba(240, 138, 114, .08); color: #ffd9cf; }
.notice button { background: none; border: 0; color: inherit; font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0 2px; opacity: .8; }
.notice button:hover { opacity: 1; }
.done { display: grid; gap: 14px; padding: 8px 0 4px; }
.done[hidden] { display: none; }
.done .tick { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-size: 1.25rem; }
.done h3 { font: 500 1.6rem/1.2 var(--display); letter-spacing: .02em; }
.done h3:focus { outline: none; }
.done p { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 56px 0 calc(48px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .9375rem; }
.foot { display: grid; gap: 28px; }
.foot .brand img { width: 34px; }
.foot .brand .wordmark { font-size: 1.1rem; }
.foot address { font-style: normal; line-height: 1.8; }
.foot a { color: var(--muted); text-underline-offset: 3px; }
.foot a:hover { color: var(--ivory); }
.foot .legal { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .875rem; }
@media (min-width: 860px) { .foot { grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; } }

/* ---------- prose pages (privacy, 404) ---------- */
.prose { padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); }
.prose .inner { max-width: 720px; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.prose .updated { color: var(--muted); font-size: .9375rem; margin-bottom: 44px; }
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin: 12px 0 0; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ivory); font-weight: 500; }
.prose a { color: var(--ivory); text-decoration-color: rgba(217, 166, 84, .7); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.nowrap { white-space: nowrap; }
