/* =====================================================
   MODICUM BESPOKE — Global Stylesheet
   Palette: Cream #F5F0E8 · Ink #1C1C1A · Oxblood #6B1F1F
   ===================================================== */

/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #F5F0E8;
  --ink:      #1C1C1A;
  --ink-mid:  #3A3835;
  --ink-soft: #6B6660;
  --oxblood:  #6B1F1F;
  --rule:     rgba(28,28,26,0.12);

  --serif:    'Cormorant Garamond', 'Georgia', serif;
  --sans:     'Inter', 'Helvetica Neue', sans-serif;

  --max-w:    1280px;
  --narrow:   640px;
  --gutter:   clamp(24px, 5vw, 80px);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Loader ────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }

/* Loader mark — fully transparent PNG on cream, no white box */
.loader-mark {
  width: 104px;
  height: 104px;
  background: transparent;
  animation: monogram-fade 1.8s ease forwards;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-mark img {
  width: 104px;
  height: 104px;
  display: block;
  object-fit: contain;
  background: transparent;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@keyframes monogram-fade {
  0%   { opacity: 0; transform: scale(0.97); }
  40%  { opacity: 1; transform: scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ─── Navigation ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--gutter);
  transition: background 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
  background: rgba(245,240,232,0.96);
  backdrop-filter: blur(8px);
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.nav-wordmark {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  list-style: none;
  display: flex; gap: 36px; align-items: center;
}
.nav-link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.nav-cta {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.nav-link.nav-cta:hover { color: var(--oxblood); border-color: var(--oxblood); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--ink);
  padding: 4px 8px;
}

/* ─── Scroll Reveal ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Ensure everything is visible if JS is disabled or slow */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Typography ────────────────────────────────────── */
.display-headline {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 40px;
}
.section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-variant: small-caps;
}
.body-prose p {
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 24px;
  max-width: 580px;
}
.body-prose p:last-child { margin-bottom: 0; }

/* Pull Quote */
.pull-quote-container {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 48px var(--gutter);
}
.pull-quote-mark {
  font-family: var(--serif);
  font-size: 120px;
  line-height: 0.5;
  color: var(--oxblood);
  opacity: 0.35;
  display: block;
  margin-bottom: 24px;
}
.pull-quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
  border: none;
  padding: 0;
}

/* ─── Layout Utilities ──────────────────────────────── */
.narrow-column {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.editorial-section {
  padding: clamp(80px, 10vw, 140px) 0;
}
.editorial-section.first-section {
  padding-top: clamp(140px, 16vw, 220px);
}
hr.oxblood-rule {
  border: none;
  border-top: 1px solid var(--oxblood);
  opacity: 0.4;
  margin: 48px 0;
  max-width: 60px;
}

/* ─── Two Column Layout ─────────────────────────────── */
.two-col-section {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.two-col-image {
  position: relative;
  overflow: hidden;
}
.two-col-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(15%);
}
.two-col-content { padding-top: 20px; }
.two-col-content .section-label { margin-bottom: 32px; }

/* ─── Belief Section (dark) ──────────────────────────── */
.belief-section {
  background: var(--ink);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.belief-section .pull-quote-text { color: var(--cream); }
.belief-section .pull-quote-mark { color: var(--oxblood); opacity: 0.6; }

/* ─── Lineage Section ───────────────────────────────── */
.lineage-section {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.lineage-section .body-prose p { max-width: 100%; }

/* ─── Closing Section ───────────────────────────────── */
.closing-section {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  text-align: center;
}
.closing-section .narrow-column {
  max-width: 520px;
}
.closing-section p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-bottom: 0;
}

/* ─── Buttons / CTAs ────────────────────────────────── */
.cta-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  margin-top: 40px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.cta-link:hover { color: var(--oxblood); border-color: var(--oxblood); }

/* ─── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-image.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28,28,26,0.08) 0%, rgba(28,28,26,0.35) 100%);
}
.hero-content {
  position: absolute;
  bottom: clamp(60px, 10vh, 120px);
  left: var(--gutter);
  right: var(--gutter);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s ease 1.4s, transform 1.2s ease 1.4s;
}
.hero-content.visible { opacity: 1; transform: translateY(0); }
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 110px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 16px;
  max-width: 900px;
  /* Each line is wrapped in a nowrap span — headline
     breaks only at the explicit <br>, never mid-phrase */
  overflow: visible;
}
.hero-subhead {
  font-family: var(--sans);
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(245,240,232,0.75);
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid rgba(245,240,232,0.5);
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.hero-cta:hover { border-color: var(--cream); }

/* ─── Split Section ─────────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 42fr 58fr;
  min-height: 80vh;
}
.split-image {
  position: relative;
  overflow: hidden;
}
.split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.split-content {
  padding: clamp(60px, 8vw, 120px) clamp(40px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-content .body-prose p { max-width: 460px; }

/* ─── Full Bleed Image Section ──────────────────────── */
.full-bleed-section {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
}
.full-bleed-section img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.full-bleed-caption {
  position: absolute;
  bottom: clamp(32px, 5vw, 60px);
  left: var(--gutter);
  max-width: 380px;
}
.full-bleed-caption p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--cream);
  margin-bottom: 16px;
}
.full-bleed-link {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(245,240,232,0.7);
  border-bottom: 1px solid rgba(245,240,232,0.35);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.full-bleed-link:hover { color: var(--cream); border-color: var(--cream); }

/* ─── Craft Section (collage + text below) ──────────── */
.craft-section {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: var(--cream);
}

.craft-img-wrap {
  max-width: var(--max-w);
  margin: 0 auto clamp(52px, 7vw, 88px);
  overflow: hidden;
}

.craft-img-wrap img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

.craft-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.craft-body {
  font-family: var(--sans);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.craft-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 36px;
}

/* ─── Invitation Section ────────────────────────────── */
.invitation-section {
  padding: clamp(100px, 12vw, 180px) var(--gutter);
  text-align: center;
}
.invitation-section .lead-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  max-width: 680px;
  margin: 0 auto 32px;
}
.invitation-section .body-text {
  font-family: var(--sans);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Hero (interior pages) ─────────────────────────── */
.page-hero {
  padding: clamp(160px, 18vw, 240px) var(--gutter) clamp(60px, 8vw, 100px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero .display-headline { margin-bottom: 24px; }
.page-hero .lead-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 560px;
}

/* ─── Mill Grid ─────────────────────────────────────── */
.mill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.mill-name {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  padding: 28px 40px 28px 0;
  width: 25%;
  border-bottom: 1px solid var(--rule);
  transition: color 0.25s ease;
}
.mill-name:hover { color: var(--ink); }

/* ─── Showroom Cards ────────────────────────────────── */
.showrooms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.showroom-card { display: flex; flex-direction: column; }
.showroom-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  margin-bottom: 32px;
  filter: grayscale(10%);
}
.showroom-card .showroom-name {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 8px;
}
.showroom-card .showroom-address {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.showroom-card .body-prose p { max-width: 100%; }

/* ─── Form (Begin page) ─────────────────────────────── */
.form-section {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  max-width: 640px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 32px;
}
.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--ink);
}
.form-group textarea { resize: none; min-height: 80px; line-height: 1.7; }
.form-group select { background: transparent; cursor: pointer; color: var(--ink-mid); }
.form-submit {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 16px 40px;
  cursor: pointer;
  transition: background 0.25s ease;
  margin-top: 16px;
}
.form-submit:hover { background: var(--oxblood); }
.form-note {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

/* ─── Footer ────────────────────────────────────────── */
.site-footer {
  padding: clamp(60px, 8vw, 100px) var(--gutter) clamp(40px, 5vw, 60px);
  text-align: center;
  border-top: 1px solid var(--rule);
}
.footer-wordmark {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 28px;
}
.footer-addresses {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-address { text-align: left; line-height: 1.7; }
.footer-address strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 4px;
}
.footer-latin {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.footer-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.6;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-meta a { color: inherit; text-decoration: none; }
.footer-meta a:hover { color: var(--ink); }

/* ─── Act sections (Experience page) ───────────────── */
.act-section {
  padding: clamp(60px, 8vw, 120px) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.act-section.reverse { direction: rtl; }
.act-section.reverse > * { direction: ltr; }
.act-section img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  filter: grayscale(10%);
}
.act-number {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--oxblood);
  opacity: 0.7;
  margin-bottom: 16px;
  display: block;
}
.act-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 28px;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; }
  .split-image { height: 55vw; min-height: 280px; }
  .split-image img { height: 100%; }
  .two-col-section { grid-template-columns: 1fr; }
  .two-col-image img { height: auto; }
  .lineage-section { grid-template-columns: 1fr; }
  .showrooms-grid { grid-template-columns: 1fr; }
  .mill-name { width: 50%; }
  .act-section { grid-template-columns: 1fr; }
  .act-section.reverse { direction: ltr; }
}
@media (max-width: 640px) {
  .nav-links { 
    display: none; flex-direction: column; gap: 0;
    position: fixed; inset: 0; background: var(--cream);
    padding: 100px var(--gutter) 60px;
    justify-content: flex-start;
    z-index: 998;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--rule); }
  .nav-link {
    display: block;
    padding: 20px 0;
    font-size: 13px;
    letter-spacing: 0.18em;
  }
  .nav-toggle { display: block; position: relative; z-index: 999; }
  .mill-name { width: 50%; padding: 20px 20px 20px 0; }
  .footer-addresses { flex-direction: column; align-items: center; gap: 24px; }
  .footer-address { text-align: center; }
  .two-col-section, .lineage-section, .act-section { padding-left: var(--gutter); padding-right: var(--gutter); }
}
