/* ==========================================================================
   Olavi Innovations — site styles
   Layout: single page, near-black ground, oversized light uppercase display
   type, hairline rules, soft conic-shaded circles, one muted gold accent.
   ========================================================================== */

:root {
  --bg: #0D0D0C;
  --fg: #F2F0EB;
  --muted: #A8A7A2;
  --gold: #C9A24A;
  --hair: rgba(242, 240, 235, 0.12);
  --hair-soft: rgba(242, 240, 235, 0.06);
  --panel: #161615;

  --font: 'Archivo', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(96px, 12vw, 184px);
  --max: 1360px;

  color-scheme: dark;
}

/* ---------- Reset / base ------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout primitives ------------------------------------------- */

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.row { display: flex; flex-wrap: wrap; }

.hair { border-top: 1px solid var(--hair); }

.label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
}
.label--accent { color: var(--gold); }

.display {
  font-weight: 250;
  font-stretch: 84%;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.94;
  text-wrap: balance;
}
.display--wide { font-stretch: 92%; line-height: 1.04; }

.muted { color: var(--muted); font-weight: 300; }

.cta {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 1px solid currentColor;
  color: var(--gold);
  transition: opacity 0.25s ease;
}
.cta:hover { opacity: 0.7; }

.ulink {
  border-bottom: 1px solid rgba(242, 240, 235, 0.3);
  padding-bottom: 4px;
  transition: border-color 0.25s ease;
}
.ulink:hover { border-color: var(--fg); }

/* ---------- Grain overlay ---------------------------------------------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background-image: url('../assets/grain.png');
  background-size: 160px 160px;
  opacity: 0.07;
  mix-blend-mode: screen;
}

/* ---------- Orbs (soft conic circles) ---------------------------------- */

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.orb--a {
  top: -180px; right: -140px; width: 680px; height: 680px;
  background: conic-gradient(from 210deg at 50% 50%, #161615 0deg, #2C2C2A 120deg, #0F0F0E 220deg, #202020 300deg, #161615 360deg);
}
.orb--b {
  bottom: -260px; left: -160px; width: 560px; height: 560px;
  background: conic-gradient(from 30deg at 50% 50%, #141413 0deg, #272725 140deg, #0E0E0D 260deg, #141413 360deg);
}
.orb--c {
  left: 50%; top: 50%; width: 760px; height: 760px;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 160deg at 50% 50%, #121211 0deg, #262624 110deg, #0E0E0D 200deg, #1C1C1B 290deg, #121211 360deg);
}
.orb--ring {
  left: 50%; top: 50%; width: 1040px; height: 1040px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--hair-soft);
}
.orb--d {
  top: -120px; right: -220px; width: 720px; height: 720px;
  background: conic-gradient(from 250deg at 50% 50%, #121211 0deg, #262624 120deg, #0E0E0D 230deg, #1C1C1B 310deg, #121211 360deg);
}

/* ---------- Header / nav ------------------------------------------------ */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(13, 13, 12, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav {
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.brand__mark {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}
.brand__light { font-weight: 300; color: var(--muted); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a { color: var(--muted); transition: color 0.25s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.is-primary { color: var(--fg); }

.menu-btn {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 10px 0;
  color: var(--fg);
  cursor: pointer;
  font: inherit;
}

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 84px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 24px;
  }
  .nav-links a { padding: 16px 0; width: 100%; border-bottom: 1px solid var(--hair-soft); }
  .nav-links a:last-child { border-bottom: 0; }
  .site-header.is-open { background: var(--bg); }
  .site-header.is-open .nav-links { display: flex; }
}

/* ---------- Hero -------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  padding-block: var(--section);
}
.hero__title {
  font-size: clamp(56px, 13vw, 176px);
  max-width: 1240px;
}
.hero__foot {
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px 64px;
  margin-top: clamp(48px, 6vw, 96px);
}
.hero__lede {
  max-width: 480px;
  font-size: 18px;
  line-height: 1.5;
}

.scroll-hint {
  display: none;
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  bottom: 44px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: opacity 0.4s ease;
}
.scroll-hint span:first-child { writing-mode: vertical-rl; letter-spacing: 0.3em; }
.scroll-hint__line { display: block; width: 1px; height: 64px; background: var(--gold); }
.scroll-hint.is-hidden { opacity: 0; }
@media (min-width: 960px) { .scroll-hint { display: flex; } }

/* ---------- Meta strip -------------------------------------------------- */

.strip { padding-bottom: clamp(80px, 10vw, 160px); }
.strip__row { gap: 0 40px; }
.strip__cell { flex: 1 1 200px; padding: 20px 0; }

/* ---------- Differentiators -------------------------------------------- */

.diff { padding-bottom: var(--section); }
.diff__grid { gap: 48px 40px; margin-top: 48px; }
.diff__item { flex: 1 1 240px; min-width: 0; padding-top: 28px; }
.diff__num { margin-bottom: 64px; }
.diff__title { font-size: 26px; font-stretch: 92%; line-height: 1.1; }
.diff__text { margin-top: 18px; font-size: 15px; }

/* ---------- Statement --------------------------------------------------- */

.statement {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(120px, 16vw, 240px);
}
.statement__inner { position: relative; }
.statement__title { font-size: clamp(52px, 12vw, 168px); margin-top: 48px; }
.statement__text { margin: clamp(32px, 4vw, 56px) auto 0; max-width: 520px; font-size: 17px; }

/* ---------- Two-column sections (process, faq) ------------------------- */

.split { padding-block: var(--section); }
.split__row { gap: clamp(40px, 6vw, 120px); align-items: flex-start; }
.split__aside { flex: 1 1 300px; max-width: 440px; min-width: 0; }
.split__main { flex: 1 1 560px; min-width: 0; }
.split__title { font-size: clamp(40px, 5.4vw, 80px); margin-top: 40px; }
.split__text { margin-top: 32px; font-size: 16px; max-width: 360px; }
@media (min-width: 960px) {
  .split__aside { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px) + 24px); }
}

/* ---------- Process steps ---------------------------------------------- */

.step {
  padding: 32px 0;
  gap: 12px 32px;
  align-items: flex-start;
}
.step__num { flex: 0 0 48px; padding-top: 8px; }
.step__body { flex: 1 1 320px; min-width: 0; }
.step__head { justify-content: space-between; align-items: baseline; gap: 16px; }
.step__title { font-size: 22px; font-stretch: 92%; line-height: 1.2; }
.step__text { margin-top: 14px; font-size: 15px; max-width: 560px; }
.step--note { border-top: 1px solid var(--gold); padding-bottom: 0; }

/* ---------- Quotes ------------------------------------------------------ */

.quotes { padding-block: var(--section); }
.quotes__row { gap: 48px 64px; margin-top: 48px; }
.quote {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 880px;
  margin: 0;
}
.quote__text {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.quote__by { margin-top: 32px; }
.quote__by::before { content: "— "; color: var(--gold); }

/* ---------- Firm -------------------------------------------------------- */

.firm { padding-block: var(--section); }
.firm__row { gap: clamp(40px, 6vw, 120px); align-items: flex-start; justify-content: space-between; }
.firm__col { flex: 1 1 520px; min-width: 0; }
.firm__title { font-size: clamp(40px, 5.4vw, 80px); max-width: 760px; margin-top: 40px; }
.firm__text { margin-top: 36px; font-size: 17px; max-width: 560px; }
.principal { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--gold); }
.principal__name { font-size: clamp(30px, 3.4vw, 48px); font-stretch: 92%; line-height: 1.05; margin-top: 28px; }
.principal__bio { margin-top: 24px; font-size: 16px; max-width: 560px; }
.facts { gap: 32px 40px; margin-top: 44px; }
.fact { flex: 1 1 160px; min-width: 0; padding-top: 18px; }
.fact p:last-child { margin-top: 16px; font-size: 15px; font-weight: 300; line-height: 1.5; }
.portrait {
  flex: 0 1 420px;
  min-width: 240px;
  width: 100%;
  margin: 0;
}
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--panel);
  border: 1px solid rgba(242, 240, 235, 0.08);
  filter: grayscale(1);
}
.portrait__caption { margin-top: 16px; }

/* ---------- FAQ --------------------------------------------------------- */

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__q { font-size: 20px; font-weight: 300; line-height: 1.3; }
.faq-item__ind {
  flex: 0 0 auto;
  width: 20px;
  text-align: center;
  font-size: 20px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0;
}
.faq-item__ind::after { content: "+"; }
.faq-item[open] .faq-item__ind::after { content: "\2013"; }
.faq-item__a { margin: 0 0 30px; font-size: 15px; max-width: 600px; }
.faq-item:last-child { border-bottom: 1px solid var(--hair); }

/* ---------- Contact / footer ------------------------------------------- */

.contact { position: relative; overflow: hidden; }
.contact__inner { position: relative; padding-top: var(--section); padding-bottom: 40px; }
.contact__row { gap: clamp(40px, 6vw, 120px); align-items: flex-end; justify-content: space-between; }
.contact__col { flex: 1 1 560px; min-width: 0; }
.contact__title { font-size: clamp(44px, 7vw, 104px); max-width: 1100px; margin-top: 40px; }
.contact__text { margin-top: 40px; font-size: 17px; max-width: 520px; }
.contact__email {
  margin-top: 48px;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 300;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.contact__meta { gap: 32px 48px; margin-top: 48px; }
.contact__meta p:last-child { margin-top: 16px; font-size: 15px; line-height: 1.7; }

/* ---------- Intake form ------------------------------------------------- */

.intake {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 560px;
  margin: 0;
}
.intake__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.intake__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}
.field { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__opt { color: rgba(168, 167, 162, 0.6); margin-left: 6px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  appearance: none;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(242, 240, 235, 0.28);
  border-radius: 0;
  padding: 10px 0 12px;
  color: var(--fg);
  font: inherit;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.4;
  transition: border-color 0.25s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(168, 167, 162, 0.5); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}
.field--check input {
  appearance: none;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 1px solid rgba(242, 240, 235, 0.4);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.field--check input:checked { border-color: var(--gold); }
.field--check input:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--gold);
}
.field--check input:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.field--check label { font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.5; cursor: pointer; }
.intake__foot { align-items: center; gap: 24px 40px; margin-top: 40px; }
.intake__note { font-size: 14px; max-width: 320px; }

.btn {
  appearance: none;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  padding: 18px 28px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }

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

/* ---------- Footer ------------------------------------------------------ */

.site-footer {
  margin-top: clamp(96px, 12vw, 160px);
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}
.site-footer__top { justify-content: space-between; gap: 12px 32px; }
.site-footer .brand-name { color: var(--fg); }
.site-footer__legal {
  margin-top: 28px;
  max-width: 760px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(168, 167, 162, 0.85);
}

/* ---------- Thanks page ------------------------------------------------- */

.thanks { min-height: 70vh; display: flex; align-items: center; }
.thanks__inner { padding-block: var(--section); }
.thanks__title { font-size: clamp(44px, 8vw, 120px); margin-top: 40px; }
.thanks__text { margin-top: 36px; font-size: 17px; max-width: 520px; }
.thanks .cta { margin-top: 48px; }

/* ---------- Reveal on scroll ------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Small screens ---------------------------------------------- */

@media (max-width: 760px) {
  .orb--a { width: 440px; height: 440px; top: -140px; right: -180px; }
  .orb--b { width: 360px; height: 360px; bottom: -200px; left: -160px; }
  .orb--c { width: 520px; height: 520px; }
  .orb--ring { width: 720px; height: 720px; }
  .orb--d { width: 480px; height: 480px; right: -220px; }
  .diff__num { margin-bottom: 28px; }
  .diff__grid { gap: 36px; }
}

/* ---------- Reduced motion --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .orb { will-change: auto; }
  .cta, .ulink, .nav-links a, .site-header, .scroll-hint { transition: none; }
}
