/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f4efe6;
  --bg-2:      #e8dfd0;
  --paper:     #ffffff;
  --ink:       #1a1a1a;
  --ink-soft:  #2a2a2a;
  --ink-mute:  #6b6b6b;
  --accent:    #b85c3a;
  --accent-2:  #4a5d3a;
  --line:      rgba(26,26,26,0.12);
  --cream:     #f4efe6;

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; color: var(--ink); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
em { font-style: italic; color: var(--accent); }
.section-lede { max-width: 46ch; color: var(--ink-mute); font-size: 1.05rem; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .4s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--cream); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(184,92,58,.55); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); }

.card {
  background: var(--paper);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--gutter);
  background: rgba(244,239,230,0);
  backdrop-filter: blur(0px);
  transition: background .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), padding .4s var(--ease-out);
}
.nav.is-solid {
  background: rgba(244,239,230,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .85rem;
}
.nav-brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.nav-links { display: none; align-items: center; gap: 2rem; font-size: .92rem; font-weight: 500; }
.nav-links a { position: relative; padding-block: .25rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }
.nav-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle-bars { width: 22px; height: 14px; position: relative; }
.nav-toggle-bars i { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle-bars i:nth-child(1) { top: 0; }
.nav-toggle-bars i:nth-child(2) { top: 6px; }
.nav-toggle-bars i:nth-child(3) { top: 12px; }
.nav.is-open .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transform: translateY(-100%); transition: transform .5s var(--ease-out);
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile a { font-family: var(--serif); font-size: 1.8rem; }
@media (min-width: 960px) { .nav-mobile { display: none; } }

/* =============================================================
   7. Sections — Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,239,230,.05) 0%, rgba(244,239,230,.08) 45%, rgba(26,26,26,.42) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  color: var(--cream);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(244,239,230,.16);
  border: 1px solid rgba(244,239,230,.3);
  backdrop-filter: blur(6px);
  padding: .5rem 1rem; border-radius: 999px;
  font-size: .82rem; margin-bottom: 1.4rem;
}
.hero-title { color: var(--cream); max-width: 16ch; }
.hero-title em { color: #e8b394; }
.hero-sub { max-width: 42ch; margin-top: 1.1rem; font-size: 1.1rem; color: rgba(244,239,230,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-actions .btn-ghost { border-color: rgba(244,239,230,.4); color: var(--cream); }
.hero-actions .btn-ghost:hover { background: rgba(244,239,230,.12); border-color: var(--cream); }
.hero-rating {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.75rem; font-size: .95rem; color: rgba(244,239,230,.9);
}
.hero-rating .stars { color: #e8b394; letter-spacing: 2px; }

/* =============================================================
   8. Manifesto
   ============================================================= */
.manifesto { padding: clamp(4rem, 9vw, 7rem) 0; }
.manifesto-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .manifesto-grid { grid-template-columns: 0.7fr 1.3fr; gap: 3rem; } }
.manifesto-num { font-family: var(--serif); font-size: 4rem; color: var(--accent); opacity: .35; line-height: 1; }
.manifesto-text p { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink-soft); }
.manifesto-text p + p { margin-top: 1.1rem; }

/* =============================================================
   9. Services — bento
   ============================================================= */
.services { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-head { display: flex; flex-direction: column; gap: .75rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.bento { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
.bento .card { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.bento .card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px -22px rgba(184,92,58,.35); }
.bento .card .num { font-family: var(--serif); color: var(--accent); font-size: 1.1rem; margin-bottom: .75rem; display: block; }
.bento .card h3 { margin-bottom: .6rem; }
.bento .card p { color: var(--ink-mute); font-size: .96rem; }

/* =============================================================
   10. Gallery
   ============================================================= */
.gallery { padding: clamp(3rem, 8vw, 6rem) 0; }
.gallery-grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 3/4; }
.gallery-item:nth-child(1) { grid-row: span 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); transition: transform .7s var(--ease-out), filter .7s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.08); filter: saturate(1.2) brightness(1.05); }

/* =============================================================
   11. Testimonial band
   ============================================================= */
.testimonial-band {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--bg-2);
}
.testimonial-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.testimonial-inner .stars { color: var(--accent); font-size: 1.4rem; letter-spacing: .3rem; display: block; margin-bottom: 1.25rem; }
.testimonial-quote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.1rem); font-style: italic; color: var(--ink); }
.testimonial-author { margin-top: 1.25rem; color: var(--ink-mute); font-size: .95rem; }

/* =============================================================
   12. Demo notice
   ============================================================= */
.demo-notice {
  background: var(--ink);
  color: var(--cream);
}
.demo-notice-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem var(--gutter);
  text-align: center; font-size: .85rem;
}
.demo-notice strong { color: #e8b394; }

/* =============================================================
   13. FAQ
   ============================================================= */
.faq { padding: clamp(3rem, 8vw, 6rem) 0; }
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: .8rem; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem; text-align: left; font-weight: 600; color: var(--ink);
}
.faq-q .plus { font-size: 1.3rem; color: var(--accent); transition: transform .35s var(--ease-out); flex-shrink: 0; }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.faq-a p { padding: 0 1.5rem 1.2rem; color: var(--ink-mute); font-size: .95rem; max-width: 60ch; }

/* =============================================================
   14. CTA + Footer
   ============================================================= */
.cta {
  padding: clamp(4rem, 9vw, 7rem) 0;
  text-align: center;
}
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }

.footer { background: var(--ink); color: rgba(244,239,230,.72); padding: clamp(3rem, 6vw, 4rem) 0 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: var(--cream); margin-bottom: .75rem; }
.footer h4 { color: var(--cream); font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .6rem; font-size: .92rem; }
.footer a:hover { color: var(--cream); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(244,239,230,.14); font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }

/* =============================================================
   15. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   16. Responsive
   ============================================================= */
@media (min-width: 540px) {}
@media (min-width: 1280px) {
  .hero-inner { padding-inline: calc(var(--gutter) + 1rem); }
}
