/* ============================================================
   GRADHOUSE — Landing Page
   Monochrome luxury system per the brand manual:
   #000000 / #FFFFFF only · Helios Extended ≈ Archivo Expanded.
   ============================================================ */

:root {
  --ink: #000000;
  --surface: #121212;
  --surface-light: #222222;
  --selection: #303030;
  --white: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-faint: rgba(255, 255, 255, 0.3);
  --border: rgba(255, 255, 255, 0.15);
  --border-strong: rgba(255, 255, 255, 0.25);

  /* Monochrome accent — the brand allows only black and white */
  --silver: #F2F2F2;
  --silver-deep: #8F8F8F;

  --font-display: 'Archivo', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1200px;
  --radius: 16px;
  --radius-pill: 9999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Monochrome photography — GRADHOUSE brand is strictly black & white */
.hero__bg img,
.how__bg img,
.gallery__item img,
.brand__media img { filter: grayscale(100%) contrast(1.05); }

/* ---------- Shared ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.1rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}
.section__lead {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 46ch;
  margin-top: 1.2rem;
}
.section__lead strong { color: var(--white); font-weight: 600; }
.silver {
  background: linear-gradient(110deg, var(--white), var(--silver-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section__head { max-width: 640px; margin: 0 auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--border);
  background: rgba(39, 39, 39, 0.6);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--surface-light); border-color: var(--border-strong); }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn--primary:hover { background: #D6D6D6; border-color: #D6D6D6; color: var(--ink); }
.btn--ghost { background: transparent; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo img { height: 17px; width: auto; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0,0,0,0.35), rgba(0,0,0,0.65) 55%, var(--ink) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.85));
}
.hero__content { position: relative; z-index: 2; max-width: 800px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.2rem, 5.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.hero__sub {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  max-width: 40ch;
  margin: 1.6rem auto 2.4rem;
}
.hero__sub strong { color: var(--silver); font-weight: 600; }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__meta {
  margin-top: 2rem;
  display: flex; gap: 1.4rem; justify-content: center; align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.hero__stars { display: inline-flex; align-items: center; gap: 3px; color: var(--silver); }
.hero__stars svg { display: block; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 42px;
  border: 2px solid var(--border-strong); border-radius: var(--radius-pill);
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll span {
  width: 4px; height: 8px; background: var(--silver); border-radius: 2px;
  animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translateY(-4px);} 40%{opacity:1;} 80%,100%{opacity:0;transform:translateY(10px);} }

/* ---------- Brand strip ---------- */
.brand {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.brand__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}
.brand__media img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: flex; gap: 2.4rem; margin-top: 2.4rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1;
  color: var(--silver);
}
.stat__label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; max-width: 12ch; }

/* ---------- Features ---------- */
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
}
.feature-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.feature {
  background: linear-gradient(160deg, rgba(39,39,39,0.4), rgba(22,22,22,0.2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(22,22,22,0.2));
}
.feature__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 1.3rem;
  color: var(--white);
}
.feature:hover .feature__icon { background: rgba(255,255,255,0.12); border-color: var(--border-strong); }
.feature__icon svg { display: block; }
.feature h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- How it works ---------- */
.how { position: relative; padding: clamp(4rem, 10vw, 8rem) 1.5rem; overflow: hidden; }
.how__bg { position: absolute; inset: 0; z-index: 0; }
.how__bg img { width: 100%; height: 100%; object-fit: cover; }
.how__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--ink) 0%, rgba(0,0,0,0.85) 45%, rgba(0,0,0,0.55) 100%);
}
.how__content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.how .section__head { text-align: left; margin: 0; }
.steps { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step {
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 2rem;
  color: var(--silver);
  line-height: 1;
  display: block;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-secondary); font-size: 0.92rem; }

/* ---------- Gallery ---------- */
.gallery { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) 1.5rem; }
.gallery__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 1rem;
}
.gallery__item {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
/* Explicit bento — 4 photos fill a 3x2 grid (6 cells) with zero gaps:
   [ tall ][ top-mid ][ top-right ]
   [ tall ][   wide (spans 2)     ] */
.gallery__grid .gallery__item:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; } /* tall left */
.gallery__grid .gallery__item:nth-child(2) { grid-column: 2; grid-row: 1; }          /* top mid */
.gallery__grid .gallery__item:nth-child(3) { grid-column: 3; grid-row: 1; }          /* top right */
.gallery__grid .gallery__item:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; } /* wide bottom */
.gallery__grid .gallery__item:nth-child(5) { display: none; }                        /* 5th spare, hidden on desktop */

/* ---------- CTA ---------- */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(5rem, 12vw, 9rem) 1.5rem;
  overflow: hidden;
}
.cta__glow {
  position: absolute; top: 50%; left: 50%;
  width: 700px; height: 700px; max-width: 140vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.09), transparent 65%);
  z-index: 0;
}
.cta__inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; text-align: center; }
.cta__inner .section__lead { margin-left: auto; margin-right: auto; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2rem, 5.6vw, 3.8rem);
  line-height: 1.04;
  margin: 0.5rem 0 1.2rem;
}
.cta .hero__cta { margin-top: 2rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer__logo { height: 15px; margin-bottom: 1rem; }
.footer__brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer__col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.footer__col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: var(--silver); }
.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.82rem;
}
.footer__tag { color: var(--silver); font-weight: 500; letter-spacing: 0.05em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .brand { grid-template-columns: 1fr; }
  .brand__media { max-width: 480px; margin: 0 auto; order: 2; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .how .section__head { text-align: center; margin: 0 auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  /* Two-column bento on tablet */
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 180px); }
  .gallery__item--tall { grid-row: span 2; }
  .gallery__item--wide { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: 150px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .stats { gap: 1.5rem; }

  /* Tighter hero so the title never crowds the edges */
  .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero__title { font-size: clamp(1.9rem, 10vw, 2.7rem); letter-spacing: 0; }
  .hero__sub { font-size: 1rem; max-width: 34ch; }
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.24em; }
  .section__title { font-size: clamp(1.5rem, 6.8vw, 2.1rem); }
  .cta__title { font-size: clamp(1.7rem, 8vw, 2.5rem); }
}

/* ---------- Motion-safe ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
