/* ============================================================
   Inhabit — The Design Narrative
   css/style.css
   ============================================================ */

:root {
  --black: #0d0c0b;
  --off-black: #111110;
  --terracotta: #b5522a;
  --terra-dim: #8a3d1f;
  --cream: #e8e0d5;
  --cream-dim: #9e9488;
  --white: #f5f2ee;
  --line: rgba(181,82,42,0.12);
  --line-soft: rgba(255,255,255,0.06);
  --panel: rgba(255,255,255,0.018);
  --panel-hover: rgba(181,82,42,0.05);
  --grain-opacity: 0.045;
  --radius: 0px;
  --shadow: 0 18px 60px rgba(0,0,0,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: none; text-size-adjust: none; }
body {
  min-height: 100vh;
  background: var(--black);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: var(--grain-opacity);
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="1"/%3E%3C/svg%3E');
}

/* ── Custom Cursor ── */
.cursor, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.28s ease, height 0.28s ease, border-color 0.28s ease;
}
.cursor {
  width: 10px;
  height: 10px;
  background: var(--terracotta);
  border-radius: 50%;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(181,82,42,0.4);
  border-radius: 50%;
}
.cursor.hover { width: 16px; height: 16px; }
.cursor-ring.hover { width: 56px; height: 56px; border-color: rgba(181,82,42,0.22); }

/* ── Layout ── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* ── Navigation ── */
nav {
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.1s forwards;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--white);
}
.nav-tag {
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--cream-dim);
  text-align: right;
}

/* ── Hero ── */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: end;
  padding: 36px 0 72px;
}
.hero-copy {
  padding: 48px 0 24px;
}
.hero-eyebrow, .section-label, .waitlist-label, .photo-caption-tag, .del-label, .pillar-tag {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(78px, 13vw, 170px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 28px 0 0;
  opacity: 0;
  animation: fadeUp 1s ease 0.45s forwards;
}
.hero-title span { display: block; color: var(--terracotta); }
.divider {
  width: 48px;
  height: 1px;
  background: var(--terracotta);
  margin: 38px 0 30px;
  opacity: 0;
  animation: expandLine 1s ease 0.75s forwards;
}
.hero-body {
  max-width: 560px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--cream-dim);
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}
.hero-body em, .section-copy em, .cta-copy em { color: var(--cream); font-style: italic; }

/* ── Waitlist Form ── */
.waitlist-block {
  margin-top: 56px;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 1s ease 1.05s forwards;
}
.waitlist-form {
  display: flex;
  max-width: 520px;
  border: 1px solid rgba(181,82,42,0.32);
  transition: border-color 0.3s ease, background 0.3s ease;
  background: rgba(255,255,255,0.01);
}
.waitlist-form:focus-within {
  border-color: rgba(181,82,42,0.85);
  background: rgba(255,255,255,0.02);
}
.waitlist-form input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 18px 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.waitlist-form input::placeholder {
  color: rgba(158,148,136,0.5);
  font-style: italic;
}
.waitlist-form button {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  padding: 18px 30px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}
.waitlist-form button:hover { background: var(--terra-dim); }
.waitlist-note {
  margin-top: 14px;
  font-size: 12px;
  font-style: italic;
  color: rgba(158,148,136,0.62);
  letter-spacing: 0.04em;
}
.success-message {
  display: none;
  max-width: 520px;
  padding: 24px;
  border-left: 2px solid var(--terracotta);
  background: rgba(181,82,42,0.06);
}
.success-message p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream);
  font-style: italic;
}
.success-message strong {
  color: var(--terracotta);
  font-style: normal;
  font-weight: 400;
}

/* ── Hero Image ── */
.hero-image-wrap {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 1.1s ease 0.55s forwards;
  box-shadow: var(--shadow);
}
.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,12,11,0.12) 0%, rgba(13,12,11,0.04) 26%, rgba(13,12,11,0.04) 62%, rgba(13,12,11,0.68) 100%);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.photo-caption {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  z-index: 2;
}
.photo-caption-text {
  max-width: 420px;
  margin-top: 10px;
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  line-height: 1.45;
}

/* ── Founder Quote ── */
.founder {
  padding: 0 0 90px;
}
.founder p {
  max-width: 760px;
  border-left: 2px solid var(--terracotta);
  padding-left: 32px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.65;
  color: var(--cream-dim);
}

/* ── Sections ── */
.section {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}
.philosophy-grid, .bottom-cta {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.96;
  letter-spacing: 0.03em;
  color: var(--white);
  max-width: 6ch;
  margin-top: 26px;
}
.section-copy p, .cta-copy p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--cream-dim);
  margin-bottom: 26px;
  max-width: 620px;
}

/* ── Framework / Pillars ── */
.framework {
  padding-top: 0;
}
.framework-head {
  padding-bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}
.framework-head h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 4vw, 58px);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}
.framework-head p {
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  max-width: 360px;
}
.pillars { display: flex; flex-direction: column; gap: 2px; }
.pillar {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 40px;
  padding: 42px 32px;
  background: var(--panel);
  transition: background 0.35s ease;
}
.pillar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--terracotta);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
}
.pillar:hover { background: var(--panel-hover); }
.pillar:hover::after { transform: scaleY(1); }
.pillar-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  color: rgba(232,224,213,0.08);
  padding-top: 4px;
}
.pillar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.05em;
  line-height: 1.04;
  color: var(--white);
  margin: 10px 0 14px;
}
.pillar-desc {
  max-width: 620px;
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.76;
  color: var(--cream-dim);
}

/* ── Deliverables Grid ── */
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 54px;
}
.del-item {
  padding: 40px 30px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(181,82,42,0.2);
  transition: background 0.3s ease;
  min-height: 250px;
}
.del-item:hover { background: rgba(181,82,42,0.05); }
.del-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  margin-bottom: 18px;
}
.del-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.04;
}
.del-body {
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
  color: var(--cream-dim);
}

/* ── Bottom CTA ── */
.cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.94;
  letter-spacing: 0.03em;
  color: var(--white);
}
.cta-title span { color: var(--terracotta); }
.studio-whisper {
  margin-top: -8px;
  margin-bottom: 28px;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.05em;
  color: rgba(158,148,136,0.72);
}

/* ── Footer ── */
footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.26);
}
.footer-copy {
  font-size: 11px;
  font-style: italic;
  color: rgba(158,148,136,0.4);
  letter-spacing: 0.06em;
  text-align: right;
}

/* ── Keyframe Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes expandLine {
  from { opacity: 0; width: 0; }
  to { opacity: 1; width: 48px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  nav,
  .hero-title,
  .divider,
  .hero-body,
  .waitlist-block,
  .hero-image-wrap {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  .page { padding: 0 24px; }
  nav, .hero, .founder, .section, footer { padding-left: 0; padding-right: 0; }
  .hero,
  .philosophy-grid,
  .bottom-cta,
  .deliverable-grid {
    grid-template-columns: 1fr;
  }
  .framework-head {
    flex-direction: column;
    align-items: start;
    padding-bottom: 38px;
  }
  .hero {
    min-height: auto;
    padding-bottom: 54px;
  }
  .hero-copy { padding-top: 8px; }
  .hero-image-wrap { min-height: 420px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form button { width: 100%; }
  .pillar { grid-template-columns: 50px 1fr; gap: 20px; padding: 34px 20px; }
  .pillar-num { font-size: 36px; }
  .del-item { min-height: auto; }
  footer {
    flex-direction: column;
    align-items: start;
  }
  .footer-copy { text-align: left; }
  .nav-tag { text-align: left; }
}
