/* ───────────────────────────────────────────────
   OctoFox Studio — Apple-inspired design
   ─────────────────────────────────────────────── */

:root {
  --cream:       #F4EFE6;
  --cream-warm:  #EDE6D8;
  --cream-light: #FAF7F2;
  --dark:        #2C2218;
  --dark-mid:    #3E3128;
  --brown:       #3E3128;
  --brown-soft:  rgba(62, 49, 40, 0.55);
  --brown-muted: rgba(62, 49, 40, 0.35);
  --copper:      #C4682D;
  --copper-dk:   #A95624;
  --lake:        #2F5D73;
  --moss:        #5F6F52;

  --font-serif:  "Playfair Display", Georgia, serif;
  --font-sans:   "Source Sans 3", -apple-system, sans-serif;

  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; height: auto; }

.shell {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */
.hero {
  padding: clamp(80px, 12vh, 140px) 0 clamp(80px, 10vh, 120px);
  text-align: center;
}

.hero-logo {
  margin: 0 auto clamp(40px, 5vh, 64px);
  max-width: clamp(400px, 50vw, 620px);
}
.hero-logo img {
  width: 100%;
  height: auto;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 1.8rem + 4vw, 5.2rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--brown);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
}
.hero-line {
  display: block;
}

.hero-sub {
  margin: clamp(20px, 3vh, 32px) auto 0;
  max-width: 540px;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.18rem);
  color: var(--brown-soft);
  line-height: 1.65;
}

.hero-links {
  margin-top: clamp(24px, 3.5vh, 40px);
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
}

/* ── Link with arrow (Apple "Learn more >" style) ── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.08rem);
  font-weight: 500;
  color: var(--copper);
  transition: color 0.2s ease, gap 0.3s var(--ease);
}
.link-arrow::after {
  content: '\203A';
  font-size: 1.3em;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover {
  color: var(--copper-dk);
}
.link-arrow:hover::after {
  transform: translateX(3px);
}

/* On dark backgrounds */
.section-dark .link-arrow {
  color: rgba(244, 239, 230, 0.7);
}
.section-dark .link-arrow:hover {
  color: var(--cream);
}

/* On warm backgrounds */
.section-warm .link-arrow {
  color: var(--copper);
}

/* ═══════════════════════════════
   SECTIONS — Alternating backgrounds
   ═══════════════════════════════ */

/* Dark section (Quiltr intro) */
.section-dark {
  background: var(--dark);
  color: var(--cream-light);
  padding: clamp(80px, 12vh, 140px) 0;
  text-align: center;
  overflow: hidden;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 0.72rem + 0.3vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: clamp(12px, 2vh, 20px);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 700px;
  margin: 0 auto;
}
.section-headline em {
  font-style: italic;
  font-weight: 400;
}

.section-body {
  margin: clamp(16px, 2.5vh, 28px) auto 0;
  max-width: 580px;
  font-size: clamp(0.95rem, 0.86rem + 0.35vw, 1.1rem);
  line-height: 1.7;
  color: var(--brown-soft);
}
.section-dark .section-body {
  color: rgba(244, 239, 230, 0.55);
}

/* Hero image in dark section */
.hero-image {
  margin: clamp(48px, 7vh, 80px) auto 0;
  max-width: 480px;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Light section (Features) */
.section-light {
  background: var(--cream);
  padding: clamp(80px, 12vh, 140px) 0;
}

/* Warm section (Studio) */
.section-warm {
  background: var(--cream-warm);
  padding: clamp(100px, 14vh, 160px) 0;
  text-align: center;
}
.section-warm .section-headline {
  color: var(--brown);
}
.section-warm .section-body {
  color: var(--brown-soft);
}

/* ═══════════════════════════════
   FEATURE ROWS — Alternating left/right
   ═══════════════════════════════ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.feature-row + .feature-row {
  margin-top: clamp(64px, 9vh, 112px);
}

.feature-row--reverse {
  direction: rtl;
}
.feature-row--reverse > * {
  direction: ltr;
}

.feature-row-img {
  border-radius: 20px;
  overflow: hidden;
}
.feature-row-img img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}
.feature-row:hover .feature-row-img img {
  transform: scale(1.03);
}

.feature-row-copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.feature-row-copy p {
  margin-top: clamp(12px, 2vh, 20px);
  font-size: clamp(0.92rem, 0.84rem + 0.3vw, 1.05rem);
  color: var(--brown-soft);
  line-height: 1.7;
  max-width: 40ch;
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.footer {
  background: var(--dark);
  color: rgba(244, 239, 230, 0.6);
  padding: clamp(48px, 6vh, 72px) 0 clamp(32px, 4vh, 48px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: clamp(32px, 4vh, 48px);
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
}

.footer-logo {
  width: clamp(120px, 18vw, 180px);
  height: auto;
  opacity: 0.5;
  margin-bottom: 16px;
  transition: opacity 0.3s ease;
}
.footer-logo:hover {
  opacity: 0.7;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(244, 239, 230, 0.4);
  max-width: 24ch;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: clamp(40px, 6vw, 80px);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.35);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(244, 239, 230, 0.55);
  padding: 3px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  padding-top: clamp(20px, 3vh, 32px);
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(244, 239, 230, 0.25);
}

/* ═══════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--delay, 0) * 1s);
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .feature-row--reverse {
    direction: ltr;
  }
  .feature-row-copy p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .feature-row-img {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }

  .hero-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .feature-row-img img,
  .link-arrow::after {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
  }
}
