/* ===== ai.unlocked replicated theme =====
   Palette derived from the live site:
   dark/accent  = hsl(0,0%,13.7%)  ~ #232323
   light accent = hsl(0,0%,94.9%)  ~ #f2f2f2
   white        = #ffffff
   Typeface: Hanken Grotesk (free near-match for the original's "aktiv-grotesk").
             body 400, headings 500.
*/

:root {
  --dark: #232323;
  --light: #f2f2f2;
  --white: #ffffff;
  --text-on-dark: #ffffff;
  --text-on-light: #232323;
  --muted-on-dark: rgba(255, 255, 255, 0.82);
  --header-h: 84px;
  /* Matches the original: site max-width 1800px, content-wrapper side padding
     3vw (6vw on mobile). Content widths: medium 75% / wide 100%. */
  --maxw: 1800px;
  --pad-x: 3vw;
  --pad-y: clamp(64px, 7vw, 120px);
  /* Original uses Adobe Fonts "aktiv-grotesk" site-wide (body 400 / headings 500).
     Hanken Grotesk is a free near-match; aktiv-grotesk kept first so the exact
     face is used automatically if an Adobe Fonts kit is ever added. */
  --font-body: "aktiv-grotesk", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "aktiv-grotesk", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-on-light);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.025em;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--dark); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Layout helpers ===== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
/* "medium" content width (75%) inside the full-bleed wrapper, like the original */
.measure { width: 75%; margin: 0 auto; }

.section { padding: var(--pad-y) 0; position: relative; }
.section--white { background: var(--white); color: var(--text-on-light); }
.section--light { background: var(--light); color: var(--text-on-light); }
.section--dark  { background: var(--dark);  color: var(--text-on-dark); }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: var(--dark);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.header-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
}
.brand img { height: 30px; width: auto; }
.nav-desktop { display: flex; gap: 22px; }
.nav-desktop a {
  color: #fff; font-size: 0.95rem; font-weight: 400; letter-spacing: 0.02em;
  position: relative; padding: 4px 0;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: #fff; transition: width .25s ease;
}
.nav-desktop a:hover::after { width: 100%; }

/* ===== Mobile menu ===== */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: 0; padding: 8px;
}
.menu-toggle span { width: 26px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.nav-mobile { display: flex; flex-direction: column; gap: 28px; text-align: center; }
.nav-mobile a { color: #fff; font-size: 1.6rem; font-weight: 300; }

/* ===== Hero =====
   Matches the original section settings:
   verticalAlignment: middle, horizontalAlignment: center,
   both lines are equal-size <h3> (--heading-3-size-value: 1.8),
   imageOverlayOpacity ~0.15. */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: #0c0c0c;
}
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(12, 12, 12, 0.2);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 1000px; text-align: center;
}
.hero__title {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}
.hero__lead {
  margin: 1.5em auto 0; max-width: 760px;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted-on-dark);
}
.hero__cta { margin-top: 2.4em; }

/* ===== Section heads (eyebrow label + intro) ===== */
.section-head { text-align: center; }
.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 1.6em;
}
.section-intro {
  font-family: var(--font-heading);
  font-weight: 500; letter-spacing: 0.01em;
  font-size: clamp(1.35rem, 2.3vw, 2.05rem);
  line-height: 1.32;
}
.section-intro + .section-intro { margin-top: 0.7em; }
.section-intro--accent { opacity: 0.62; }
.section-headline {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.2; margin-top: 0.4em;
}
.section-body {
  margin: 1.2em auto 0; max-width: 620px;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.6; opacity: 0.85;
}

/* ===== Prose blocks (Who It's For, About) ===== */
.prose { margin-top: 2.6em; }
.prose p {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.65; margin-bottom: 1.15em;
}
.prose p:last-child { margin-bottom: 0; }
.about-tagline {
  margin-top: 1.6em; padding-top: 1.4em;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-heading); font-weight: 500;
  letter-spacing: 0.02em; opacity: 0.92;
}

/* ===== Grids + numbered items ===== */
.grid { display: grid; gap: 48px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.numbered { margin-top: clamp(48px, 5vw, 80px); }
.num-item .num {
  display: block;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 1.6rem; letter-spacing: 0.04em;
  opacity: 0.4; margin-bottom: 0.7em;
  padding-bottom: 0.7em;
  border-bottom: 1px solid currentColor;
}
.num-item h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin-bottom: 0.55em; }
.num-item p { font-size: 1.05rem; line-height: 1.65; opacity: 0.85; }

/* ===== Contact form ===== */
.contact-form { margin-top: 48px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 8px; letter-spacing: 0.02em; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; font-family: inherit; font-size: 1rem;
  border: 1px solid #cfcfcf; border-radius: 2px; background: #fff; color: var(--dark);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--dark); }
textarea { resize: vertical; }

.btn {
  display: inline-block; cursor: pointer;
  background: var(--dark); color: #fff; border: 1px solid var(--dark);
  font-family: inherit; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 14px 38px; border-radius: 2px; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--dark); }
/* Inverted button for dark backgrounds (e.g. hero CTA) */
.btn--on-dark { background: #fff; color: var(--dark); border-color: #fff; }
.btn--on-dark:hover { background: transparent; color: #fff; }
.form-status { margin-top: 18px; font-size: 0.95rem; }

/* ===== Contact info (below form) ===== */
.contact-info {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 36px;
  font-size: 0.98rem; opacity: 0.85;
}
.contact-info a:hover { opacity: 1; text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { padding: 64px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer__logo { height: 34px; width: auto; }
.footer__copy { font-size: 0.85rem; letter-spacing: 0.02em; color: var(--muted-on-dark); opacity: 0.8; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid { gap: 48px; }
}
@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  /* Original uses 6vw side padding on mobile, and content goes full-width */
  :root { --pad-x: 6vw; }
  .measure { width: 100%; }
}
