/* =====================================================================
   Avemtis Properties LLC — landing page styles
   ---------------------------------------------------------------------
   Architecture: a neutral, monochrome "shell" (Avemtis) that frames two
   venture panels, each carrying its OWN real brand palette:
     • F2 Visuals  — intentionally monochrome / cinematic
     • Roomify     — near-black with a signature mint accent
   All brand colors are SAMPLED from the live sites + logos (see comments
   on each token). No invented accents.
   ===================================================================== */

/* ----------------------------- Fonts -------------------------------- */
/* Self-hosted, latin-subset woff2. font-display:swap to avoid blocking. */
@font-face {
  font-family: 'Fraunces';                /* Avemtis display — editorial high-contrast serif */
  src: url('/assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 300 600;                    /* variable weight axis */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';           /* Avemtis body / UI — clean grotesque */
  src: url('/assets/fonts/hanken-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';         /* F2's real display face — used to echo F2 */
  src: url('/assets/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --------------------------- Tokens --------------------------------- */
:root {
  /* ---- Avemtis shell — neutral system; the common ground of both brands ---- */
  --avemtis-bg:        #050505;  /* canvas — F2 base #050505 / Roomify #000 */
  --avemtis-bg-raised: #0a0a0a;  /* raised surface — F2 rgba(10,10,10,.97) */
  --avemtis-bg-panel:  #111111;  /* panel base — present in both brands */
  --avemtis-fg:        #f1f0ee;  /* off-white text — near F2 #f0f0f0 / rgba(255,255,255,.94) */
  --avemtis-fg-strong: #ffffff;  /* pure white, peak emphasis — both brands */
  --avemtis-muted:     #a3a3a3;  /* captions / secondary — Roomify #a3a3a3 */
  --avemtis-faint:     #888888;  /* faint grey for captions/labels — F2 ramp #888888; 5.7:1 on canvas (WCAG AA) */
  --avemtis-line:      rgba(255,255,255,0.10); /* hairline — Roomify rgba(255,255,255,.1) */
  --avemtis-line-2:    rgba(255,255,255,0.16); /* stronger hairline — Roomify rgba(255,255,255,.16) */

  /* ---- F2 Visuals — sampled from f2visuals.com + F2_logo_transparent.png ----
     F2 is deliberately chromaticless; its "accent" is high-contrast white
     paired with Instrument Serif. We honor that rather than invent a color. */
  --f2-bg:    #050505;                 /* F2 near-black base */
  --f2-bg-2:  #141414;                 /* F2 raised tone (from greyscale ramp) */
  --f2-fg:    rgba(255,255,255,0.94);  /* F2 primary text */
  --f2-muted: #aaaaaa;                 /* F2 grey ramp (#aaaaaa) */
  --f2-line:  rgba(255,255,255,0.12);

  /* ---- Roomify — sampled from roomifyapp.ai + logo-white.png ---- */
  --roomify-bg:       #000000;  /* theme-color #000000 */
  --roomify-bg-2:     #0c0c0c;  /* Roomify raised tone #0c0c0c */
  --roomify-fg:       #ffffff;
  --roomify-muted:    #a3a3a3;  /* Roomify secondary text */
  --roomify-accent:   #5ce0a6;  /* signature mint (rgb 92,224,166) */
  --roomify-accent-2: #6ce7b1;  /* brighter mint highlight */
  --roomify-line:     rgba(255,255,255,0.14);
  --roomify-glow:     rgba(92,224,166,0.15); /* #5ce0a6 @ low alpha */

  /* ---- Type families ---- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-f2:      'Instrument Serif', Georgia, serif;            /* F2's real display face */
  --font-roomify: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* Roomify's real stack */

  /* ---- Layout rhythm ---- */
  --shell-max:    1180px;
  --shell-pad:    clamp(1.25rem, 5vw, 4rem);
  --section-pad:  clamp(4.5rem, 11vw, 10rem);
  --header-h:     5.5rem;

  --ease: cubic-bezier(0.22, 0.61, 0.26, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--avemtis-bg);
  color: var(--avemtis-fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, address, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
em { font-style: normal; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--avemtis-fg);
  color: #000;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --------------------------- Layout shell --------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

/* --------------------------- Wordmark ------------------------------- */
.wordmark {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--avemtis-fg);
  padding-left: 0.34em; /* optical balance for letter-spacing */
  transition: color 0.3s var(--ease);
}
.wordmark:hover { color: var(--avemtis-fg-strong); }

/* ---------------------------- Header -------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: clamp(1.1rem, 2.6vw, 1.7rem);
  transition: padding-block 0.35s var(--ease), background-color 0.35s var(--ease),
              border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-block: 0.7rem;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--avemtis-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav {
  display: flex;
  gap: clamp(1.3rem, 3vw, 2.6rem);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.nav a {
  position: relative;
  color: var(--avemtis-muted);
  padding-block: 0.3rem;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a:focus-visible { color: var(--avemtis-fg-strong); }
.nav a:hover::after, .nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ----------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
/* Hero gallery — four cinematic stills crossfading every 4s (see main.js). */
.hero-gallery { position: absolute; inset: 0; z-index: 0; background: var(--avemtis-bg); }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero-slide.is-active {
  opacity: 1;
  animation: kenburns 9s ease-out both; /* slow, subtle zoom — adds quiet life */
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
/* Dark scrim — heaviest on the left (where the copy sits) for AA legibility,
   lighter on the right so the digital wireframe still reads through. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(5,5,5,0.93) 0%, rgba(5,5,5,0.82) 30%, rgba(5,5,5,0.55) 60%, rgba(5,5,5,0.34) 100%),
    linear-gradient(to bottom, rgba(5,5,5,0.72) 0%, rgba(5,5,5,0.12) 26%, rgba(5,5,5,0.05) 52%, rgba(5,5,5,0.5) 100%);
}
/* Fine film grain — premium texture on the near-black canvas */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 3; }

.kicker {
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--avemtis-muted);
  margin-bottom: clamp(1.4rem, 3vh, 2.2rem);
}
.hero-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 350;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  max-width: 19ch;
  color: var(--avemtis-fg);
  text-wrap: balance;
}
/* Emphasis via real weight contrast (the variable axis we host) — never faux italic */
.hero-title em { color: var(--avemtis-fg-strong); font-style: normal; font-weight: 500; }
.hero-sub {
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: var(--avemtis-muted);
  max-width: 47ch;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.6rem, 7vh, 5rem);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--avemtis-muted);
  transition: color 0.3s var(--ease);
}
.scroll-cue:hover { color: var(--avemtis-fg-strong); }
.scroll-cue__line {
  position: relative;
  width: 70px; height: 1px;
  background: var(--avemtis-line-2);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 100%;
  background: linear-gradient(90deg, transparent, var(--avemtis-fg-strong), transparent);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateX(-100%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateX(220%); opacity: 0; }
}

/* --------------------------- Eyebrow -------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--avemtis-faint);
}
.eyebrow__index {
  color: var(--avemtis-muted);
  font-variant-numeric: tabular-nums;
  position: relative;
  padding-right: 0.85rem;
}
.eyebrow__index::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 1px; height: 0.9em;
  transform: translateY(-50%);
  background: var(--avemtis-line-2);
}

.section-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--avemtis-fg);
}

/* ---------------------------- Thesis -------------------------------- */
.thesis { padding-block: var(--section-pad); }
.thesis-inner { max-width: 60ch; }
.thesis-lead {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 360;
  font-size: clamp(1.7rem, 3.6vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--avemtis-fg);
  margin-top: 1.6rem;
}
.thesis-body {
  margin-top: 1.8rem;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.7;
  color: var(--avemtis-muted);
  max-width: 56ch;
}

/* --------------------------- Ventures ------------------------------- */
.ventures-head {
  padding-top: var(--section-pad);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.ventures-head .section-title { margin-top: 1.3rem; }

.venture {
  position: relative;
  padding-block: var(--section-pad);
  border-top: 1px solid var(--avemtis-line);
}
/* Per-venture palettes — each panel comes alive in its brand's real colors */
.venture--f2      { background: var(--f2-bg);      color: var(--f2-fg); }
.venture--roomify { background: var(--roomify-bg); color: var(--roomify-fg); }

.venture-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.venture-index {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.venture--f2 .venture-index      { color: var(--f2-muted); }
.venture--roomify .venture-index { color: var(--roomify-accent); }

.venture-name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 1rem;
}
.venture--f2 .venture-name      { color: var(--avemtis-fg-strong); }
.venture--roomify .venture-name { color: var(--roomify-fg); }

/* Positioning line echoes each brand's own typographic character */
.venture-line {
  margin-top: 1.3rem;
  max-width: 26ch;
}
.venture--f2 .venture-line {
  font-family: var(--font-f2);
  font-style: italic;
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  line-height: 1.25;
  color: var(--f2-fg);
}
.venture--roomify .venture-line {
  font-family: var(--font-roomify);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--roomify-accent);
}
.venture-desc {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7;
  max-width: 46ch;
}
.venture--f2 .venture-desc      { color: var(--f2-muted); }
.venture--roomify .venture-desc { color: var(--roomify-muted); }

.venture-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.2rem;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.venture--f2 .venture-link      { color: var(--f2-fg); }
.venture--roomify .venture-link { color: var(--roomify-accent); }
.venture--roomify .venture-link:hover { color: var(--roomify-accent-2); }
.venture-link:hover { gap: 0.95rem; }
.venture-link__arrow { transition: transform 0.3s var(--ease); }
.venture-link:hover .venture-link__arrow { transform: translate(2px, -2px); }

/* ---- Brand plates: the visual that carries each brand's palette ---- */
.venture-plate { width: 100%; }
.plate-frame {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 5px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.plate-logo { width: auto; }
.plate-logo--f2      { width: clamp(118px, 24%, 184px); }
.plate-logo--roomify { width: clamp(120px, 26%, 200px); }
.plate-tag {
  position: absolute;
  left: 1.2rem; bottom: 1.05rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* F2 plate — cinematic monochrome */
.plate--f2 .plate-frame {
  background:
    radial-gradient(125% 100% at 50% 0%, #1a1a1a 0%, #0c0c0c 52%, #050505 100%);
  border: 1px solid var(--f2-line);
}
.plate--f2 .plate-frame::after { /* soft vignette */
  content: '';
  position: absolute; inset: 0; z-index: -1;
  box-shadow: inset 0 0 120px 20px rgba(0,0,0,0.7);
}
.plate--f2 .plate-tag { color: var(--f2-muted); }

/* Roomify plate — near-black + signature mint glow + space-planning grid */
.plate--roomify .plate-frame {
  background:
    radial-gradient(120% 120% at 50% 38%, var(--roomify-glow) 0%, rgba(92,224,166,0.04) 30%, #000 72%);
  border: 1px solid var(--roomify-line);
}
.plate-grid {
  position: absolute;
  inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(92,224,166,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92,224,166,0.10) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 45%, #000 0%, transparent 78%);
          mask-image: radial-gradient(75% 75% at 50% 45%, #000 0%, transparent 78%);
}
.plate--roomify .plate-tag { color: var(--roomify-accent); }

/* --------------------------- Approach ------------------------------- */
.approach {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--avemtis-line);
  background: var(--avemtis-bg);
}
.approach .section-title { margin-top: 1.3rem; }
.principles {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.principle {
  padding-top: 1.6rem;
  border-top: 1px solid var(--avemtis-line-2);
}
.principle-num {
  display: block;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--avemtis-faint);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2.4rem;
}
.principle-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 420;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: -0.01em;
  color: var(--avemtis-fg);
}
.principle-body {
  margin-top: 0.9rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--avemtis-muted);
}

/* ---------------------------- Contact ------------------------------- */
.contact {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--avemtis-line);
}
.contact-inner { max-width: 56ch; }
.contact-lead {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 360;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--avemtis-fg);
  margin-top: 1.5rem;
}
.contact-sub {
  margin-top: 1.6rem;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--avemtis-muted);
}
.contact-sub a {
  color: var(--avemtis-fg);
  border-bottom: 1px solid var(--avemtis-line-2);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-sub a:hover { color: var(--avemtis-fg-strong); border-bottom-color: currentColor; }
.contact-address {
  margin-top: 2.4rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--avemtis-faint);
}
.contact-note {
  margin-top: 2.4rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--avemtis-faint);
  max-width: 54ch;
}

/* ----------------------------- Footer ------------------------------- */
.site-footer {
  background: var(--avemtis-bg-raised);
  border-top: 1px solid var(--avemtis-line);
  padding-top: clamp(3.5rem, 7vw, 6rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2.2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.wordmark--footer { font-size: 1.25rem; display: inline-block; }
.footer-legal {
  margin-top: 1.4rem;
  color: var(--avemtis-fg);
  font-size: 0.96rem;
}
.footer-address {
  margin-top: 0.6rem;
  color: var(--avemtis-faint);
  font-size: 0.92rem;
  line-height: 1.7;
}
.footer-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--avemtis-faint);
  margin-bottom: 1.4rem;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.footer-nav a {
  color: var(--avemtis-muted);
  font-size: 0.96rem;
  transition: color 0.3s var(--ease);
}
.footer-nav a:hover { color: var(--avemtis-fg-strong); }

.footer-logos { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.footer-logos a {
  display: inline-flex;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease);
}
.footer-logos a:hover { opacity: 1; }
.footer-logos img { width: auto; }
.footer-logos li:first-child img { height: 34px; }   /* F2 mark */
.footer-logos li:last-child img  { height: 30px; }   /* Roomify mark */

.footer-base {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding-block: 1.8rem;
  border-top: 1px solid var(--avemtis-line);
  color: var(--avemtis-faint);
  font-size: 0.84rem;
}
.footer-base__tagline { max-width: 74ch; line-height: 1.55; }

/* --------------------- Scroll-reveal animation ---------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Gentle stagger within key groups */
.hero-inner .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-inner .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero-inner .reveal:nth-child(3) { transition-delay: 0.28s; }
.hero-inner .reveal:nth-child(4) { transition-delay: 0.42s; }
.venture-copy .reveal:nth-child(2) { transition-delay: 0.06s; }
.venture-copy .reveal:nth-child(3) { transition-delay: 0.12s; }
.venture-copy .reveal:nth-child(4) { transition-delay: 0.18s; }
.venture-copy .reveal:nth-child(5) { transition-delay: 0.24s; }
.principles .principle:nth-child(2) { transition-delay: 0.1s; }
.principles .principle:nth-child(3) { transition-delay: 0.2s; }

/* ============================ Responsive ============================ */
@media (min-width: 769px) {
  /* Alternate: Roomify's plate sits on the left on desktop */
  .venture--reverse .venture-copy  { order: 2; }
  .venture--reverse .venture-plate { order: 1; }
}

@media (max-width: 768px) {
  :root { --header-h: 4.75rem; }

  /* Stronger, more uniform scrim on mobile — copy spans the full width here,
     so the right side needs more cover where the wireframe is brightest. */
  .hero-scrim {
    background:
      linear-gradient(to right, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.82) 42%, rgba(5,5,5,0.70) 100%),
      linear-gradient(to bottom, rgba(5,5,5,0.45) 0%, rgba(5,5,5,0.28) 38%, rgba(5,5,5,0.32) 68%, rgba(5,5,5,0.62) 100%);
  }
  .hero-slide { object-position: 36% center; } /* favor the darker architecture behind the copy */

  .nav { gap: 1.3rem; font-size: 0.86rem; }
  .nav a:nth-child(2) { display: none; } /* trim "Approach" on small screens */

  .venture-grid { grid-template-columns: 1fr; gap: clamp(2.5rem, 8vw, 3.5rem); }
  .venture-plate { order: -1; }          /* plate above copy on mobile, both ventures */
  .plate-frame { aspect-ratio: 16 / 11; }

  .principles { grid-template-columns: 1fr; gap: 0; }
  .principle { padding-block: 1.8rem; }
  .principle:not(:first-child) { border-top: 1px solid var(--avemtis-line); }
  .principle-num { margin-bottom: 1rem; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { justify-content: flex-start; }
  .hero-title { max-width: 100%; }
}

/* ---------------- Motion preferences (accessibility) ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-slide,
  .scroll-cue__line::after { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
