/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:     #faf7f0;
  --bg-2:   #f1ece0;
  --ink:    #16140e;
  --ink-soft: #2c281f;
  --ink-mute: #5f594a;
  --accent: #960018;
  --line:   #16140e;
  --paper:  #ffffff;

  --serif: "Playfair Display", "Times New Roman", serif;
  --serif-body: "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1160px;
  --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(--serif-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
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; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; font-family: var(--serif); font-weight: 700; color: var(--ink); }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 4px; font-family: var(--sans); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.kicker {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: .9rem;
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.hairline { border: none; border-top: 1px solid var(--line); }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
em { font-style: italic; }
.section-lede { max-width: 52ch; color: var(--ink-mute); font-size: 1.08rem; }

/* =============================================================
   5. Masthead
   ============================================================= */
.masthead {
  padding: 1.4rem var(--gutter) 1rem;
  text-align: center;
}
.masthead-issue { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .6rem; }
.masthead-brand { font-size: clamp(2.2rem, 5vw, 3rem); letter-spacing: -0.01em; }
.masthead-nav {
  display: none; align-items: center; justify-content: center; gap: 2rem;
  font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  margin-top: .9rem;
}
.masthead-nav a { position: relative; padding-block: .2rem; }
.masthead-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
.masthead-nav a:hover::after { right: 0; }
@media (min-width: 720px) { .masthead-nav { display: flex; } }
.masthead-toggle {
  display: inline-flex; margin-top: .9rem; font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); padding: .5rem 1.1rem; border-radius: 2px;
}
@media (min-width: 720px) { .masthead-toggle { display: none; } }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem;
  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.6rem; }
.nav-mobile-close { position: absolute; top: 1.4rem; right: 1.4rem; font-family: var(--sans); font-weight: 700; text-transform: uppercase; font-size: .8rem; }

/* =============================================================
   6. Hero article
   ============================================================= */
.hero { padding: 1rem 0 clamp(3rem, 7vw, 5rem); }
.hero-media { position: relative; margin-top: 1.2rem; border-radius: 2px; overflow: hidden; }
.hero-media picture, .hero-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-caption { font-family: var(--sans); font-size: .8rem; color: var(--ink-mute); font-style: italic; margin-top: .6rem; text-align: center; }
.hero-deck { max-width: 62ch; margin: 1.4rem auto 0; text-align: center; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); }
.hero-byline {
  font-family: var(--sans); font-size: .82rem; color: var(--ink-mute);
  display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem;
}
.hero-byline .stars { color: var(--accent); letter-spacing: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.6rem; border-radius: 2px;
  font-family: var(--sans); font-weight: 700; font-size: .88rem; letter-spacing: .02em;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* =============================================================
   7. Manifesto (2-col editorial)
   ============================================================= */
.manifesto { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .manifesto-grid { grid-template-columns: repeat(2, 1fr); gap: 3.5rem; } }
.manifesto p + p { margin-top: 1rem; }
.dropcap:first-letter {
  font-family: var(--serif); font-size: 3.6rem; float: left; line-height: .82; padding-right: .5rem; padding-top: .3rem; color: var(--accent);
}

/* =============================================================
   8. Departments (services)
   ============================================================= */
.departments { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head .kicker { justify-content: center; display: flex; }
.dept-grid { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
.dept-item { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .dept-item:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--line); } .dept-item:nth-child(even) { padding-left: 2rem; } }
.dept-item .num { font-family: var(--sans); font-size: .8rem; color: var(--accent); font-weight: 700; }
.dept-item h3 { margin-top: .5rem; margin-bottom: .5rem; }
.dept-item p { color: var(--ink-mute); font-size: .96rem; }

/* =============================================================
   9. Gallery (mosaic)
   ============================================================= */
.gallery { padding: clamp(3rem, 7vw, 5rem) 0; }
.gallery-grid { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .7s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap { font-family: var(--sans); font-size: .72rem; color: var(--ink-mute); font-style: italic; margin-top: .4rem; }

/* =============================================================
   10. Pull quote
   ============================================================= */
.pull-quote { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
.pull-quote-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.pull-quote-mark { font-family: var(--serif); font-size: 3.5rem; color: var(--accent); line-height: .6; display: block; margin-bottom: .6rem; }
.pull-quote-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.8vw, 1.9rem); color: var(--ink); }
.pull-quote-author { font-family: var(--sans); font-size: .85rem; color: var(--ink-mute); margin-top: 1.1rem; }

/* =============================================================
   11. Demo notice
   ============================================================= */
.demo-notice { background: var(--ink); color: var(--bg); }
.demo-notice-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem;
  padding: .8rem var(--gutter); text-align: center; font-family: var(--sans); font-size: .82rem;
}
.demo-notice strong { color: #e0a0a8; }

/* =============================================================
   12. FAQ
   ============================================================= */
.faq { padding: clamp(3rem, 7vw, 5rem) 0; }
.faq-list { max-width: 720px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0; text-align: left; font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: .98rem;
}
.faq-q .plus { font-size: 1.2rem; color: var(--accent); transition: transform .35s var(--ease-out); flex-shrink: 0; font-family: var(--serif); }
.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 0 1.3rem; color: var(--ink-mute); font-size: .96rem; max-width: 60ch; }

/* =============================================================
   13. CTA + Footer
   ============================================================= */
.cta { padding: clamp(3.5rem, 8vw, 6rem) 0; text-align: center; border-top: 1px solid var(--line); }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.8rem; }

.footer { background: var(--ink); color: rgba(250,247,240,.72); padding: clamp(3rem, 6vw, 4rem) 0 2rem; font-family: var(--sans); }
.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(--bg); margin-bottom: .6rem; }
.footer h4 { color: var(--bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .55rem; font-size: .88rem; list-style: none; padding: 0; }
.footer a:hover { color: var(--bg); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(250,247,240,.14); font-size: .78rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }

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