/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f4efe6;
  --bg-alt: #ebe3d5;
  --ink: #1d1a16;
  --muted: #6b6257;
  --line: #d6cbb9;
  --accent: #e2542f;
  --accent-ink: #fff8f0;
  --card: #fbf8f2;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --gutter: clamp(16px, 5vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: .95rem;
  border: 1.5px solid var(--ink);
  transition: transform .4s var(--ease-out), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-small { min-height: 40px; padding: .5rem 1.1rem; font-size: .85rem; }
.btn-light { background: var(--accent-ink); color: var(--ink); border-color: var(--accent-ink); }
.btn-light:hover { background: var(--ink); border-color: var(--ink); color: var(--accent-ink); }

/* Placeholders */
.ph {
  position: relative; display: grid; place-items: center;
  border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(29,26,22,.05) 14px 15px),
    linear-gradient(140deg, #e9dcc6, #d9c6a8);
  color: var(--muted); font-size: .85rem; font-weight: 500; letter-spacing: .04em;
}
.ph span {
  background: rgba(251,248,242,.85); padding: .4rem .9rem; border-radius: 999px;
}

/* =============================================================
   6. Sections
   ============================================================= */
/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,230,.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.nav-links { display: none; gap: 2rem; font-size: .92rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(40px, 8vw, 110px) clamp(48px, 8vw, 100px); }
.hero-grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 14vw, 8.5rem); line-height: .95; letter-spacing: -0.04em;
}
.hero-title em { font-style: italic; color: var(--accent); }
.wave { display: inline-block; font-size: .55em; margin-left: .15em; transform-origin: 70% 70%; animation: wave 2.6s ease-in-out 1s 2; }
.hero-lead { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-visual { position: relative; }
.ph-hero { aspect-ratio: 4 / 5; max-height: 560px; width: 100%; }
.hero-badge {
  position: absolute; left: 14px; bottom: 14px;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: .9rem 1.2rem; box-shadow: 0 18px 40px -20px rgba(29,26,22,.35);
}
.hero-badge strong { font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--accent); }
.hero-badge span { font-size: .8rem; color: var(--muted); }

/* Strip */
.strip { background: var(--ink); color: var(--bg); overflow: hidden; padding-block: 1.1rem; }
.strip-track {
  display: flex; gap: 2rem; width: max-content; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.7rem); font-style: italic;
  animation: marquee 28s linear infinite;
}
.strip-track span:nth-child(even) { color: var(--accent); font-style: normal; }

/* Sections */
.section { padding-block: clamp(64px, 10vw, 130px); }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 6vw, 3.6rem); max-width: 18ch; }

/* Cards */
.cards { display: grid; gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(29,26,22,.4); }
.card-num { font-family: var(--serif); font-size: 1rem; color: var(--accent); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-block: 1.6rem .6rem; }
.card p { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.gallery .ph { aspect-ratio: 1; }
.gallery .ph-a,
.gallery .ph-d { grid-column: span 2; aspect-ratio: 16 / 10; }

/* CTA */
.cta {
  background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 8vw, 5.5rem) clamp(1.5rem, 6vw, 4rem); text-align: center;
}
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 10vw, 5.5rem); }
.cta p { margin: 1rem auto 2rem; max-width: 30rem; opacity: .9; }
.cta .btn { max-width: 100%; overflow-wrap: anywhere; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer a:hover { color: var(--accent); }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(16deg); }
  20%, 40% { transform: rotate(-8deg); }
}

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .hero-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .ph-a { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gallery .ph-d { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; }
  .hero-badge { left: -28px; }
}

/* =============================================================
   9. Reduced motion (only intrusive loops)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
  .wave { animation: none; }
}
