/* -------------------------------------------------------------
   Sampo — styles
   Palette: #F4EFE6 (warm off-white), #000 (black), #B97340 (terracotta)
------------------------------------------------------------- */

:root {
  --bg: #F4EFE6;
  --ink: #0A0A0A;
  --ink-soft: rgba(10, 10, 10, 0.64);
  --ink-muted: rgba(10, 10, 10, 0.42);
  --line: rgba(10, 10, 10, 0.14);
  --line-soft: rgba(10, 10, 10, 0.08);
  --accent: #B97340;
  --accent-deep: #8F5428;
  --accent-soft: rgba(185, 115, 64, 0.12);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1360px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(185,115,64,0.06), transparent 60%),
    radial-gradient(900px 500px at 120% 110%, rgba(185,115,64,0.05), transparent 60%);
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
a:hover { opacity: 0.62; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----------------------------- Global grain */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .35;
  mix-blend-mode: multiply;
  filter: url(#grainFilter);
  background: transparent;
}
@media (prefers-reduced-motion: reduce) { .grain { opacity: .18; } }

/* ----------------------------- Typography primitives */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow--muted { color: var(--ink-muted); }
.eyebrow em { font-style: normal; letter-spacing: .2em; }

.index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 5.6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 60px;
  max-width: 18ch;
}
.section__title .accent {
  color: var(--accent);
  font-style: italic;
}

/* ----------------------------- Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  color: #F4EFE6;
  transition: padding .4s var(--ease), color .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0));
  opacity: 1; pointer-events: none;
  transition: opacity .4s var(--ease);
  z-index: -1;
}
.nav.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--ink);
  background: rgba(244, 239, 230, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav.is-scrolled::before { opacity: 0; }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.nav__logo {
  width: 42px;
  height: 32px;
  display: block;
  /* Source SVG is black. On the dark hero nav we invert to cream. */
  filter: invert(1) brightness(0.96) sepia(0.06);
  transition: filter .5s var(--ease);
}
.nav.is-scrolled .nav__logo {
  /* On the light scrolled nav, keep the logo black for max contrast. */
  filter: none;
}
.nav__wordmark { font-weight: 400; font-style: italic; }

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__cta svg { width: 14px; height: 14px; }
.nav__cta:hover { background: currentColor; color: #000; opacity: 1; }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ----------------------------- Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) clamp(32px, 6vw, 80px);
  overflow: hidden;
  color: #F4EFE6;
  background-color: #0B0A0A;
  background-image:
    radial-gradient(60% 50% at 30% 35%, rgba(185,115,64,0.35), transparent 65%),
    radial-gradient(55% 45% at 78% 75%, rgba(244,239,230,0.08), transparent 70%),
    linear-gradient(180deg, #131110 0%, #0B0A0A 60%, #050404 100%);
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 30% 20%, transparent 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.78) 100%),
    linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 60%);
  z-index: 1;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(140px, 20vh, 220px);
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(60px, 10vh, 140px);
  color: rgba(244,239,230,0.7);
}
.hero__meta .eyebrow { color: inherit; }

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(52px, 9vw, 164px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .ink {
  display: inline-block;
}
.hero__title .ink--accent { color: var(--accent); font-style: italic; }

html.js .hero__title .ink {
  transform: translateY(105%);
  opacity: 0;
  animation: rise 1.2s var(--ease) .3s forwards;
}
html.js .hero__title .line:nth-child(2) .ink { animation-delay: .55s; }

@keyframes rise {
  0% { transform: translateY(105%); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

.hero__lede {
  max-width: 52ch;
  margin: clamp(28px, 4vw, 44px) 0 clamp(36px, 5vw, 56px);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(244,239,230,0.82);
}
html.js .hero__lede {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s var(--ease) 1.0s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Email capture form */
.capture {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 520px;
  gap: 0;
  padding: 6px;
  border: 1px solid rgba(244,239,230,0.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(10,10,10,0.22);
}
html.js .capture {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s var(--ease) 1.25s forwards;
}
.capture input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  padding: 14px 22px;
}
.capture input::placeholder { color: rgba(244,239,230,0.55); }
.capture button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #F4EFE6;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.capture button svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.capture button:hover { background: var(--accent-deep); }
.capture button:hover svg { transform: translateX(3px); }
.capture__note {
  position: absolute;
  top: calc(100% + 14px);
  left: 22px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(244,239,230,0.6);
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: clamp(70px, 10vh, 120px);
  color: rgba(244,239,230,0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.scroll-cue__label { color: inherit; }
.scroll-cue__line {
  display: inline-block;
  width: 48px; height: 1px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute; top: 0; left: -40%;
  width: 40%; height: 100%;
  background: var(--accent);
  animation: sweep 2.4s var(--ease-smooth) infinite;
}
@keyframes sweep {
  0%   { left: -40%; }
  100% { left: 100%; }
}
.hero__loc {
  display: inline-flex; gap: 14px; align-items: center;
}
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; }

@media (max-width: 640px) {
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 50px; }
  .capture { flex-direction: column; align-items: stretch; border-radius: 20px; padding: 6px 6px 10px; }
  .capture input { padding: 14px 18px; }
  .capture button { justify-content: center; }
  .capture__note { position: static; margin-top: 10px; padding: 0 6px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
}

/* ----------------------------- Marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg);
}
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  gap: 44px;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 2vw, 28px);
  color: var(--ink);
  animation: slide 36s linear infinite;
}
.marquee__track .sep { color: var(--accent); font-style: normal; }
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------------------------- Generic section shell */
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(100px, 14vw, 180px) var(--gutter);
}
.section__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 70px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------- About */
.about__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: flex-start;
}
.about__body {
  max-width: 44ch;
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--ink-soft);
}
.about__body p + p { margin-top: 20px; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ----------------------------- Capabilities */
.capabilities {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cap {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 40px;
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
  transition: background .5s var(--ease);
}
.cap:last-child { border-bottom: 1px solid var(--line); }
.cap:hover { background: linear-gradient(to right, transparent, var(--accent-soft), transparent); }

.cap__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--accent);
  padding-top: 6px;
}

.cap__body h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.cap__body p {
  margin: 0 0 18px;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.05vw, 16px);
}
.cap__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.cap__meta li {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

@media (max-width: 680px) {
  .cap { grid-template-columns: 60px 1fr; gap: 18px; }
  .cap__num { font-size: 18px; }
}

/* ----------------------------- Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background .4s var(--ease);
  position: relative;
}
.step:last-child { border-right: none; }
.step:hover { background: rgba(185,115,64,0.04); }

.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 50px;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  margin: 0 0 12px;
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 26ch;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: none; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; }
}

/* ----------------------------- Values */
.values .display { max-width: 16ch; margin-bottom: 80px; }

.values__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 64px) clamp(40px, 6vw, 100px);
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 4vw, 56px);
}
.value h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 24px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.value h4::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 12px;
  vertical-align: middle;
  transform: translateY(-2px);
}
.value p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 40ch;
}
@media (max-width: 720px) {
  .values__grid { grid-template-columns: 1fr; }
}

/* ----------------------------- Vision */
.vision {
  padding-top: clamp(120px, 16vw, 220px);
  padding-bottom: clamp(120px, 16vw, 220px);
}
.vision .section__head {
  border-bottom: 1px solid var(--line);
}
.vision__wrap { max-width: 70ch; }
.vision__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}
.vision__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
}
.vision__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}
.vision__body {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ----------------------------- Signal / final CTA */
.signal {
  background: var(--ink);
  color: var(--bg);
  max-width: none;
  margin: 0;
  padding: clamp(120px, 16vw, 200px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.signal::before {
  content: "";
  position: absolute;
  inset: -10% -5% auto auto;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(closest-side, rgba(185,115,64,0.35), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  opacity: .8;
}
.signal__wrap {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}
.signal .eyebrow { color: rgba(244,239,230,0.55); display: block; margin-bottom: 26px; }

.signal__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin: 0 0 28px;
}
.signal__title em { font-style: italic; color: var(--accent); font-weight: 300; }

.signal__body {
  max-width: 52ch;
  color: rgba(244,239,230,0.72);
  font-size: clamp(15px, 1.1vw, 17px);
  margin: 0 0 44px;
}

.capture--lg {
  max-width: 640px;
  border-color: rgba(244,239,230,0.4);
  background: rgba(244,239,230,0.06);
}
html.js .capture--lg {
  animation: none;
  opacity: 1;
  transform: none;
}
.capture--lg input { font-size: 15px; padding: 18px 26px; }
.capture--lg button { padding: 14px 26px; }

/* ----------------------------- Footer */
.footer {
  background: var(--bg);
  color: var(--ink);
  padding: clamp(60px, 7vw, 96px) var(--gutter) 28px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer__brand { display: flex; flex-direction: column; gap: 22px; }
.footer__mark { width: 120px; height: auto; opacity: 0.92; }
.footer__tag {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-soft);
  margin: 0;
  max-width: 22ch;
  line-height: 1.3;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.footer__cols h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 20px;
  font-weight: 400;
}
.footer__cols a {
  display: block;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--ink);
}

.footer__bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.footer__wave {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent);
  position: relative;
  overflow: hidden;
}
.footer__wave::after {
  content: "";
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  background: var(--accent);
  animation: sweep 4s var(--ease-smooth) infinite;
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__wave { width: 100%; max-width: 200px; }
}

/* ----------------------------- Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .ink { transform: none; opacity: 1; }
}
