/* ============================================
   IRIS Landing Page — CSS
   Fonts: Exposure Trial -30 (display) + General Sans (body)
   Design: Hybrid responsive — display type scales (vw), UI stays fixed (px)
   ============================================ */

/* --- FONT FACES --- */

@font-face {
  font-family: 'Exposure';
  src: url('fonts/ExposureTrial-30.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exposure Italic';
  src: url('fonts/ExposureItalicTrial-30.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-VariableItalic.woff2') format('woff2');
  font-weight: 200 700;
  font-style: italic;
  font-display: swap;
}

/* --- DESIGN TOKENS --- */
:root {
  --signal: #fa3d19;
  --canvas-100: #f6f4f0;
  --canvas-200: #eae6e0;
  --canvas-300: #d4cfc7;
  --canvas-400: #a3a3a3;
  --canvas-500: #676767;
  --canvas-600: #4f4f4f;
  --canvas-700: #474747;
  --ink: #292929;
  --cream: #fdf6ee;
  --forest: #2e5e3f;
  --slate: #4a5568;
  --mauve: #7b6b8a;
  --clay: #c1714f;
  --ochre: #c49a3c;
  --caspian: #3a7ca5;
  --stone: #8b8178;

  --font-display: 'Exposure', serif;
  --font-display-italic: 'Exposure Italic', serif;
  --font-body: 'General Sans', -apple-system, sans-serif;

  /* Layout */
  --page-pad: clamp(20px, 2.083vw, 40px);
  --section-pad: clamp(60px, 6.25vw, 120px);
}

/* --- RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Lenis handles smooth scroll via JS */

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-body);
  background: var(--canvas-100);
  color: var(--ink);
  overflow-x: hidden;
  width: 100%;
  position: relative;
  transform-origin: top center;
}

body::after {
  content: '';
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.8;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: grain 0.8s steps(1) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-5%, -10%); }
  20%  { transform: translate(-15%, 5%); }
  30%  { transform: translate(7%, -20%); }
  40%  { transform: translate(-5%, 15%); }
  50%  { transform: translate(-15%, 10%); }
  60%  { transform: translate(15%, 0%); }
  70%  { transform: translate(0%, 10%); }
  80%  { transform: translate(3%, -25%); }
  90%  { transform: translate(-10%, 10%); }
  100% { transform: translate(5%, 5%); }
}

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

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

/* ============================================
   NAV — fixed px sizes, always readable
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
}

/* Progressive blur */
.nav-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: -1;
}

.blur-layer {
  position: absolute;
  inset: 0;
}

.blur-layer.bl-1 {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 90%);
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 90%);
}

.blur-layer.bl-2 {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 45%, transparent 70%);
  mask-image: linear-gradient(to bottom, black 0%, black 45%, transparent 70%);
}

.blur-layer.bl-3 {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 25%, transparent 50%);
  mask-image: linear-gradient(to bottom, black 0%, black 25%, transparent 50%);
}

.blur-layer.bl-4 {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 10%, transparent 35%);
  mask-image: linear-gradient(to bottom, black 0%, black 10%, transparent 35%);
}

.blur-layer.bl-5 {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 20%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 20%);
}

.blur-gradient {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.nav-logo {
  position: absolute;
  left: var(--page-pad);
  top: 50%;
  transform: translateY(-50%);
}

.nav-logo-img {
  height: 40px;
  width: 73px;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-left: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--canvas-500);
  background: rgba(234, 230, 224, 0.9);
  border-radius: 4px;
  line-height: 1.1;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--canvas-100);
  background: var(--ink);
  border-radius: 4px;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-cta svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* ============================================
   HERO VIEWPORT — everything fits in first screen
   ============================================ */
.hero-viewport {
  display: flex;
  flex-direction: column;
  height: calc(var(--vh, 100vh) - 32px);
  min-height: 500px;
}

/* ============================================
   HERO IMAGE — fills remaining space
   ============================================ */
.hero-image {
  padding-top: 64px;         /* nav height */
  padding-left: 14px;
  padding-right: 14px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hero-image-inner {
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.hero-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* ============================================
   HERO TEXT — display type scales with vw
   ============================================ */
.hero-labels {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 0;
}

.label-tag {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}

.hero-title {
  padding: clamp(12px, 1.5vw, 32px) var(--page-pad) 0;
  flex-shrink: 0;
}

.hero-title-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.51vw, 125px);
  font-weight: 400;
  line-height: 0.84;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-title-line:first-child {
  text-align: right;
}

.hero-title-line:nth-child(2) {
  margin-top: 0.08em;
}

/* ============================================
   EMBLEM
   ============================================ */
.emblem {
  padding: clamp(20px, 2.083vw, 40px) var(--page-pad) 0;
}

.emblem-symbol {
  width: 50px;
  height: 47px;
}

/* ============================================
   HERO BODY — fixed px, stays readable
   ============================================ */
.hero-body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.25vw, 24px);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 36%;
  padding: clamp(16px, 1.25vw, 24px) var(--page-pad) var(--section-pad);
}

.dual-font {
  font-family: var(--font-display-italic);
  font-weight: 400;
  font-style: normal;
  text-transform: none;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  height: 4px;
  background: var(--ink);
  width: 100%;
}

.divider--caspian { background: #3f7275; }
.divider--slate   { background: #6f87ab; }

/* ============================================
   SECTIONS — centered content
   ============================================ */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section-pad) var(--page-pad);
}

.section--what-is {
  gap: clamp(28px, 2.917vw, 56px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}

.section-title--72 {
  font-size: clamp(36px, 3.75vw, 72px);
  max-width: 48%;
}

.section-title--80 {
  font-size: clamp(40px, 4.167vw, 80px);
  max-width: 50%;
}

.section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 2.917vw, 56px);
  max-width: 32%;
}

/* --- TAG PILL --- */
.tag-pill {
  border: 1px solid var(--signal);
  border-radius: 100px;
  padding: clamp(6px, 0.417vw, 8px) clamp(12px, 0.833vw, 16px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tag-pill span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--signal);
  line-height: 1.1;
  white-space: nowrap;
}

/* --- SECTION TEXT --- */
.section-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 1.667vw, 32px);
  width: 100%;
  text-align: center;
  color: var(--ink);
}

.section-subhead {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  color: var(--ink);
}

.section-quote {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}

.section-body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  color: var(--ink);
}

.section-inner-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(24px, 2.5vw, 48px);
  width: 100%;
  text-align: center;
}

/* ============================================
   IMAGE ROW
   ============================================ */
.image-row {
  display: flex;
  gap: 6px;
  padding: 0 14px;
  width: 100%;
}

.image-row-left,
.image-row-right {
  flex: 1;
  aspect-ratio: 940 / 637;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.image-row-left img,
.image-row-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   ROLES SECTION
   ============================================ */
.section--roles {
  background: linear-gradient(to bottom, #f6f4f0, #f7f0e6);
  padding: var(--section-pad) 0;
  gap: clamp(28px, 2.917vw, 56px);
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: clamp(24px, 4.323vw, 83px);
  width: 100%;
  padding: 0 clamp(40px, 10.156vw, 195px);
  margin-top: clamp(60px, 6.25vw, 120px);
}

.roles-center-image {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
  aspect-ratio: 451 / 565;
  border-radius: 4px;
  overflow: hidden;
}

.roles-center-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roles-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.roles-col--left {
  grid-column: 1;
  grid-row: 1 / 3;
}

.roles-col--right {
  grid-column: 3;
  grid-row: 1 / 3;
}

.role {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.25vw, 24px);
  padding: 24px;
}

.role-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.role-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.role-dot--signal { background: var(--signal); }
.role-dot--ochre { background: var(--ochre); }
.role-dot--forest { background: var(--forest); }
.role-dot--caspian { background: var(--caspian); }

.role-name {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 600;
  line-height: 0.84;
  color: var(--ink);
  white-space: nowrap;
}

.role-tagline {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.role-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--canvas-600);
  margin-top: 8px;
}

/* ============================================
   MANIFESTO
   ============================================ */
.section--manifesto {
  padding: var(--section-pad) var(--page-pad);
  gap: 0;
  align-items: center;
}

.manifesto-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.167vw, 80px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  max-width: 50%;
}

.manifesto-emblem {
  padding: clamp(24px, 2.5vw, 48px) 0;
}

.manifesto-intro {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  color: var(--ink);
  max-width: 606px;
}

.manifesto-quote {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  max-width: 478px;
  padding: clamp(28px, 2.917vw, 56px) 0;
}

.manifesto-columns {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3.125vw, 60px);
  width: 100%;
}

.manifesto-col {
  max-width: 450px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}

.manifesto-closing {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  max-width: 914px;
  padding-top: clamp(28px, 2.917vw, 56px);
}

/* ============================================
   BOTTOM IMAGE
   ============================================ */
.bottom-image {
  padding: 0 12%;
}

.bottom-image-inner {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.bottom-image-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  font-family: var(--font-display-italic);
  font-size: 24px;
  font-weight: 400;
  text-transform: none;
  text-align: center;
  color: var(--canvas-100);
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.bottom-image-inner picture {
  display: block;
  width: 100%;
}

.bottom-image-inner img {
  width: 100%;
  min-height: 486px;
  display: block;
  object-fit: cover;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(to bottom, #f6f4f0, #f7f0e6);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section-pad) var(--page-pad) 40px;
  width: 100%;
}

.footer-logo-img {
  height: 59px;
  width: 108px;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  color: var(--ink);
  max-width: 633px;
  text-transform: uppercase;
  padding-top: clamp(40px, 4.167vw, 80px);
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: clamp(28px, 2.917vw, 56px);
}

.footer-cta-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--signal);
  text-align: center;
}

.footer-cta-sub {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--canvas-700);
  text-align: center;
  max-width: 412px;
  line-height: 1.1;
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
}

.footer-input {
  width: 300px;
  height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--canvas-400);
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.footer-input::placeholder {
  color: #c5c1bd;
}

.footer-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  height: 42px;
  padding: 10px 12px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.1;
}

.footer-btn svg {
  flex-shrink: 0;
}

/* Footer accelerator/partner logos */
.footer-accelerators {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: clamp(40px, 4.167vw, 80px);
  width: 100%;
}

.footer-accelerators-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--canvas-700);
  text-align: center;
  max-width: 520px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.footer-accelerators-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.accelerator-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.accelerator-logo:hover {
  opacity: 1;
}

.footer-maker {
  display: flex;
  align-items: center;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: clamp(40px, 4.167vw, 80px) 0 0;
}

.footer-bottom .footer-legal {
  justify-self: start;
}

.footer-bottom .footer-maker {
  justify-self: center;
}

.footer-bottom .footer-copy {
  justify-self: end;
}

.footer-legal {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.footer-legal a:hover {
  color: var(--signal);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ============================================
   PLACEHOLDER IMAGES
   ============================================ */
.image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--canvas-300);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.image-placeholder::after {
  content: 'Pilt — asenda oma pildiga';
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--canvas-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   SCROLL PARALLAX — images
   ============================================ */
.parallax-wrap {
  overflow: hidden;
  position: relative;
}

.parallax-wrap img {
  will-change: transform;
  display: block;
  width: 100%;
  height: 110%;
  object-fit: cover;
  margin-top: -5%;
}

/* ============================================
   TEXT REVEAL — fade up on scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SPLIT TEXT — GSAP char animation
   ============================================ */
[data-fx="chars"] {
  overflow: visible;
}

[data-fx="chars"] .word {
  display: inline-block;
  white-space: nowrap;
}

[data-fx="chars"] .char {
  display: inline-block;
  will-change: transform, filter;
  white-space: nowrap;
}

/* stagger children */
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   1920+ BREAKPOINT — scaled nav elements
   ============================================ */
@media (min-width: 1921px) {
  .nav-logo-img {
    height: 32px;
    width: 58px;
  }

  .nav-link {
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .nav-cta {
    gap: 6px;
    height: 30px;
    padding: 0 13px;
    font-size: 11px;
  }

  .nav-cta svg {
    width: 13px;
    height: 13px;
  }
}

/* ============================================
   PAGE INTRO / LOADER
   ============================================ */

/* Phase 1: Loading — only hero-title area visible */
body.is-loading {
  overflow: hidden;
}

body.is-loading .nav,
body.is-loading .hero-image,
body.is-loading .hero-labels,
body.is-loading .emblem,
body.is-loading .hero-body,
body.is-loading .divider,
body.is-loading .section,
body.is-loading .image-row,
body.is-loading .bottom-image,
body.is-loading .footer {
  opacity: 0;
}

/* Title lines start hidden and offset horizontally */
body.is-loading .hero-title-line:first-child {
  opacity: 0;
  transform: translateX(-100px);
}

body.is-loading .hero-title-line:nth-child(2) {
  opacity: 0;
  transform: translateX(100px);
}

/* Phase 2: Intro — title slides in from opposite sides */
body.is-intro .hero-title-line:first-child {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-intro .hero-title-line:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Phase 3: Loaded — everything else fades in, staggered and slow */
body.is-loaded .hero-image {
  opacity: 1;
  transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1) 0s;
}

body.is-loaded .hero-labels {
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

body.is-loaded .nav {
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0s;
}

body.is-loaded .emblem {
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s;
}

body.is-loaded .hero-body {
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 1.4s;
}

body.is-loaded .divider,
body.is-loaded .section,
body.is-loaded .image-row,
body.is-loaded .bottom-image,
body.is-loaded .footer {
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 1.6s;
}

/* ===========================
   WAITLIST OVERLAY
   =========================== */
.waitlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(41, 41, 41, 0.4);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s;
  cursor: url("data:image/svg+xml,%3Csvg width='25' height='22' viewBox='0 0 25 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.896 21.864H0V0H4.896V2.088H2.496V19.776H4.896V21.864Z' fill='%23FA3D19'/%3E%3Cpath d='M8.435 16.152L6.779 14.496L10.643 10.632L6.779 6.768L8.435 5.112L12.299 8.976L16.163 5.112L17.819 6.768L13.955 10.632L17.819 14.496L16.163 16.152L12.299 12.288L8.435 16.152Z' fill='%23FA3D19'/%3E%3Cpath d='M24.575 21.864H19.679V19.776H22.103V2.088H19.679V0H24.575V21.864Z' fill='%23FA3D19'/%3E%3C/svg%3E") 12 11, pointer;
}

.waitlist-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.waitlist-card {
  background: #f6f4f0;
  border-radius: 4px;
  padding: 32px;
  width: 412px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  cursor: default;
}

.waitlist-logo {
  width: 73px;
  height: 40px;
}

.waitlist-header {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: center;
}

.waitlist-title {
  font-family: 'Exposure', serif;
  font-size: 24px;
  line-height: 1.1;
  color: #292929;
  font-weight: normal;
  text-transform: uppercase;
}

.waitlist-sub {
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: #474747;
}

.waitlist-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.waitlist-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.waitlist-success {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 16px 0;
}

.waitlist-success-title {
  font-family: 'Exposure', serif;
  font-size: 28px;
  line-height: 1.1;
  color: #292929;
  font-weight: normal;
  font-style: italic;
  margin: 0;
}

.waitlist-success-sub {
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: #474747;
  margin: 0;
}

/* Ensure hidden attribute always wins (override flex/grid display) */
[hidden] { display: none !important; }

/* Form error + loading state (shared) */
.form-error {
  font-family: 'General Sans', sans-serif;
  font-size: 13px;
  color: #c0392b;
  margin: 0;
}

button.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.waitlist-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.waitlist-label {
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #292929;
}

.waitlist-input {
  height: 48px;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  padding: 0 16px;
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #292929;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-input:focus {
  border-color: #292929;
}

.waitlist-submit {
  height: 48px;
  background: #292929;
  border: none;
  border-radius: 4px;
  color: #fdf6ee;
  font-family: 'General Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  transition: background 0.2s;
}

.waitlist-submit:hover {
  background: #3a3a3a;
}

.waitlist-submit svg {
  width: 16px;
  height: 16px;
  color: #fdf6ee;
}

/* ===========================
   ABOUT OVERLAY
   =========================== */
.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f6f4f0;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s;
  cursor: none;
}

.about-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.about-overlay,
.about-overlay * {
  cursor: url("data:image/svg+xml,%3Csvg width='25' height='22' viewBox='0 0 25 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.896 21.864H0V0H4.896V2.088H2.496V19.776H4.896V21.864Z' fill='%23FA3D19'/%3E%3Cpath d='M8.435 16.152L6.779 14.496L10.643 10.632L6.779 6.768L8.435 5.112L12.299 8.976L16.163 5.112L17.819 6.768L13.955 10.632L17.819 14.496L16.163 16.152L12.299 12.288L8.435 16.152Z' fill='%23FA3D19'/%3E%3Cpath d='M24.575 21.864H19.679V19.776H22.103V2.088H19.679V0H24.575V21.864Z' fill='%23FA3D19'/%3E%3C/svg%3E") 12 11, pointer !important;
}


.about-content {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 180px 120px 80px 14%;
  max-width: 900px;
  color: #292929;
}

.about-title {
  font-family: 'Exposure', serif;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: normal;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: #292929;
}

.about-body em {
  font-family: 'Exposure Italic', serif;
  font-style: normal;
  font-size: 18px;
  line-height: 1.1;
}

/* About contact line — sits at end of about-body */
.about-contact {
  padding-top: 24px;
  border-top: 1px solid rgba(41, 41, 41, 0.15);
}

.about-contact a {
  color: var(--signal);
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease;
}

.about-contact a:hover {
  opacity: 0.7;
}


.about-image {
  width: 450px;
  flex-shrink: 0;
  align-self: stretch;
  margin-left: auto;
  position: relative;
  overflow: hidden;
}

/* Legal overlays — Terms + Privacy (no image, scrollable) */
.about-overlay--legal .about-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  height: 100%;
}

.about-overlay--legal .about-text {
  max-width: none;
  padding: 180px 14% 80px 14%;
}

.about-overlay--legal .about-text--full {
  max-width: 1100px;
}

.about-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   MOBILE — max-width 768px
   ============================================ */
@media (max-width: 768px) {

  /* --- LAYOUT TOKENS --- */
  :root {
    --page-pad: 8px;
    --section-pad: 40px;
  }

  body {
    overflow-x: hidden;
  }

  /* --- NAV --- */
  .nav {
    height: 56px;
    padding: 0 8px;
  }

  .nav-logo {
    left: 8px;
  }

  .nav-logo-img {
    height: 32px;
    width: 58px;
  }

  .nav-links {
    gap: 2px;
  }

  /* Hide section links, keep About as "Menu" */
  .nav-link[href="#what"],
  .nav-link[href="#roles"],
  .nav-link[href="#manifesto"] {
    display: none;
  }

  .nav-link {
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
  }

  .nav-cta {
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    min-width: 0;
    width: auto;
  }

  .nav-cta svg {
    width: 14px;
    height: 14px;
  }

  /* --- HERO VIEWPORT --- */
  .hero-viewport {
    height: calc(var(--vh, 100vh) - 16px);
    min-height: 400px;
  }

  .hero-image {
    padding-top: 56px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-image-inner {
    border-radius: 4px;
  }

  .hero-labels {
    padding: 6px 8px 0;
  }

  .label-tag {
    font-size: 12px;
  }

  .hero-title {
    padding: 8px 8px 0;
  }

  .hero-title-line {
    font-size: 40px;
    line-height: 0.88;
  }

  /* --- EMBLEM --- */
  .emblem {
    padding: 24px 8px 0;
  }

  .emblem-symbol {
    width: 40px;
    height: 37px;
  }

  /* --- HERO BODY --- */
  .hero-body {
    font-size: 18px;
    max-width: 90%;
    padding: 16px 8px 40px;
    text-align: center;
  }

  /* --- SECTIONS --- */
  .section {
    padding: 80px 8px;
  }

  .section--what-is {
    gap: 24px;
  }

  .section-title--72 {
    font-size: 40px;
    max-width: 100%;
  }

  .section-title--80 {
    font-size: 40px;
    max-width: 100%;
  }

  .section-content {
    max-width: 100%;
    padding: 0 8px;
    gap: 24px;
  }

  .section-subhead {
    font-size: 18px;
  }

  .section-quote {
    font-size: 18px;
  }

  .section-body {
    font-size: 18px;
  }

  /* --- IMAGE ROW (parallax images) --- */
  .image-row {
    flex-direction: column;
    gap: 8px;
    padding: 0 8px;
  }

  .image-row-left,
  .image-row-right {
    flex: none;
    width: 100%;
    aspect-ratio: 374 / 250;
    border-radius: 4px;
  }

  /* --- ROLES SECTION --- */
  .section--roles {
    padding: 80px 0;
    gap: 40px;
  }

  .roles-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 8px;
    margin-top: 32px;
  }

  .roles-center-image {
    width: 100%;
    aspect-ratio: 374 / 414;
    border-radius: 4px;
    order: -1;
  }

  .roles-col {
    gap: 12px;
  }

  .role {
    padding: 12px 12px 24px;
    gap: 12px;
  }

  .role-name {
    font-size: 24px;
  }

  .role-tagline {
    font-size: 18px;
  }

  .role-desc {
    font-size: 18px;
    color: var(--canvas-600);
  }

  /* --- MANIFESTO --- */
  .section--manifesto {
    padding: 80px 8px;
  }

  .manifesto-title {
    font-size: 40px;
    max-width: 100%;
  }

  .manifesto-intro {
    font-size: 18px;
    max-width: 100%;
    padding: 0 8px;
  }

  .manifesto-quote {
    font-size: 18px;
    max-width: 100%;
    padding: 24px 8px;
  }

  .manifesto-columns {
    flex-direction: column;
    gap: 24px;
    padding: 0 8px;
  }

  .manifesto-col {
    max-width: 100%;
    font-size: 18px;
  }

  .manifesto-closing {
    font-size: 18px;
    max-width: 100%;
    padding-top: 24px;
  }

  /* --- BOTTOM IMAGE --- */
  .bottom-image {
    padding: 0 8px;
  }

  .bottom-image-inner {
    border-radius: 4px;
  }

  .bottom-image-inner {
    aspect-ratio: 374 / 222;
  }

  .bottom-image-inner img {
    height: 100%;
    object-position: center 30%;
  }

  .bottom-image-caption {
    font-size: 18px;
    bottom: 16px;
  }

  /* --- FOOTER --- */
  .footer {
    padding: 40px 8px 24px;
  }

  .footer-logo-img {
    height: 48px;
    width: 88px;
  }

  .footer-tagline {
    font-size: 18px;
    max-width: 100%;
    padding-top: 32px;
  }

  .footer-cta {
    padding-top: 24px;
    width: 100%;
  }

  .footer-cta-sub {
    font-size: 16px;
    max-width: 100%;
  }

  .footer-form {
    width: 100%;
    align-items: center;
  }

  .footer-input {
    width: 100%;
    max-width: 300px;
    height: 48px;
  }

  .footer-btn {
    width: 100%;
    max-width: 300px;
    height: 42px;
  }

  /* --- FOOTER ACCELERATORS --- */
  .footer-accelerators {
    gap: 20px;
    padding-top: 40px;
  }

  .footer-accelerators-text {
    font-size: 13px;
    max-width: 100%;
    padding: 0 8px;
  }

  .footer-accelerators-row {
    gap: 32px;
  }

  .accelerator-logo {
    height: 40px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    padding-top: 80px;
  }

  .footer-legal {
    gap: 12px;
    font-size: 14px;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-maker {
    order: -1;
  }

  .footer-maker svg {
    width: 140px;
    height: auto;
  }

  .footer-copy {
    font-size: 14px;
  }

  /* --- WAITLIST OVERLAY --- */
  .waitlist-card {
    width: calc(100% - 16px);
    max-width: 412px;
    padding: 24px 16px;
    gap: 32px;
  }

  .waitlist-title {
    font-size: 22px;
  }

  .waitlist-sub {
    font-size: 16px;
  }

  /* --- ABOUT OVERLAY --- */
  .about-content {
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .about-text {
    flex: 0 0 auto;
    padding: 80px 24px 40px;
    max-width: 100%;
  }

  .about-title {
    font-size: 28px;
  }

  .about-body {
    font-size: 16px;
    gap: 24px;
  }

  .about-body em {
    font-size: 16px;
  }

  .about-image {
    position: relative;
    width: 100%;
    height: auto;
    margin-left: 0;
    align-self: auto;
    flex-shrink: 0;
  }

  .about-image img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }

  /* --- PARALLAX IMAGES — prevent overflow --- */
  .parallax-wrap img {
    height: 115%;
    margin-top: -7.5%;
  }

  /* --- INTRO ANIMATION — reduce title offset for mobile --- */
  body.is-loading .hero-title-line:first-child {
    transform: translateX(-40px);
  }

  body.is-loading .hero-title-line:nth-child(2) {
    transform: translateX(40px);
  }
}
