/* ---------- Reset & base ---------- */
:root {
  --cream: #F4EBD9;
  --cream-soft: #FAF3E3;
  --cream-deep: #EADFC7;
  --cream-warm: #F0E4CC;
  --ink: #1B1815;
  --ink-soft: #2C2822;
  --muted: #6B5F4E;
  --muted-soft: #8A7D6A;
  --forest: #1F3A2F;
  --forest-deep: #142621;
  --terracotta: #B4623A;
  --terracotta-soft: #D08858;
  --gold: #C9A961;
  --gold-soft: #E0C68A;
  --wine: #5A2A2A;
  --line: rgba(27, 24, 21, 0.12);
  --line-soft: rgba(27, 24, 21, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11", "kern";
  min-height: 100vh;
  overflow-x: hidden;
}

/* Paper texture background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0.055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.55;
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
.serif {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-variation-settings: "opsz" 40, "SOFT" 30;
  letter-spacing: -0.015em;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-variation-settings: "opsz" 60, "SOFT" 40;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

h1 { font-size: clamp(48px, 6.8vw, 88px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); font-variation-settings: "opsz" 30, "SOFT" 30; }
h4 { font-size: 22px; font-variation-settings: "opsz" 24; }

.italic { font-style: italic; }

p { max-width: 65ch; }

/* ---------- Layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

section { padding: 100px 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
}

.lede {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 60ch;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 20px 0;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(244, 235, 217, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, padding 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--line); padding: 14px 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 30, "SOFT" 30;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .mark { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  gap: 4px;
  font-size: 15px;
  color: var(--ink-soft);
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  padding: 10px 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 160ms ease, color 160ms ease;
}
.nav-links > li > a:hover { background: rgba(27, 24, 21, 0.06); color: var(--ink); }
.nav-links .chev { width: 10px; height: 10px; opacity: 0.55; transition: transform 200ms ease; }
.nav-links li:hover .chev { transform: rotate(180deg); }

/* Dropdowns */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 30px 80px -30px rgba(27, 24, 21, 0.25), 0 6px 20px -8px rgba(27, 24, 21, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 60;
}
.nav-links li:hover .dropdown,
.nav-links li:focus-within .dropdown,
.nav-links > li.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-links > li.open .chev { transform: rotate(180deg); }
.dropdown a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 140ms ease;
}
.dropdown a:hover { background: var(--cream-deep); }
.dropdown a .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  margin-top: 8px; flex: none;
}
.dropdown a strong { font-weight: 500; color: var(--ink); display: block; font-size: 15px; }
.dropdown a span { font-size: 13px; color: var(--muted); }

.nav-cta {
  padding: 10px 20px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 160ms ease, transform 160ms ease;
}
.nav-cta:hover { background: var(--forest); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--forest); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(31, 58, 47, 0.6); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ghost { padding: 15px 4px; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Cards ---------- */
.card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -30px rgba(27, 24, 21, 0.25);
  border-color: rgba(27, 24, 21, 0.22);
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 100px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.hero-title {
  font-size: clamp(52px, 7vw, 92px);
  line-height: 1.02;
  margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--forest); font-variation-settings: "opsz" 96, "SOFT" 100; }
.hero-sub {
  font-size: 20px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1; }

/* ---------- Section header ---------- */
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Marquee logos ---------- */
.marquee {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 80px;
  animation: scroll 32s linear infinite;
  align-items: center;
  width: max-content;
}
.marquee-track span {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 30, "SOFT" 40;
  font-size: 24px;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.marquee-track span::after {
  content: '✦';
  color: var(--gold);
  font-size: 14px;
  margin-left: 40px;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Grid patterns ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Feature tiles ---------- */
.feature {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  inset: -40% -40% auto auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at center, var(--gold-soft), transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.feature:hover::before { opacity: 0.4; }
.feature:hover { transform: translateY(-4px); border-color: rgba(27,24,21,0.22); box-shadow: 0 28px 60px -30px rgba(27,24,21,0.25); }
.feature .icon { width: 56px; height: 56px; }
.feature h3 { margin-top: 4px; }
.feature p { color: var(--muted); }
.feature ul { list-style: none; margin-top: 8px; font-size: 14px; }
.feature ul li {
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.feature ul li:first-child { border-top: none; padding-top: 0; }
.feature ul li span { color: var(--muted); font-size: 13px; text-align: right; }

/* ---------- Deep band ---------- */
.deep {
  background: var(--forest);
  color: var(--cream-soft);
  border-radius: 32px;
  padding: 80px;
  position: relative;
  overflow: hidden;
}
.deep h2, .deep h3 { color: var(--cream-soft); }
.deep .eyebrow { color: var(--gold); }
.deep .lede { color: rgba(250, 243, 227, 0.72); }
.deep::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.9 0 0 0 0 0.7 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.deep > * { position: relative; }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  counter-reset: step;
}
.step {
  padding: 32px 24px 32px 0;
  counter-increment: step;
  position: relative;
  border-top: 1px solid var(--line);
}
.step::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  background: var(--terracotta);
  width: 0;
  transition: width 800ms ease 200ms;
}
.step.reveal::after { width: 40px; }
.step .num {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 96, "SOFT" 100;
  font-style: italic;
  font-size: 44px;
  color: var(--terracotta);
  display: block;
  margin-bottom: 20px;
  line-height: 1;
}
.step h4 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Quote ---------- */
.quote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 32px;
  position: relative;
}
.quote::before, .quote::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--gold);
  display: block;
  margin: 0 auto 32px;
}
.quote::after { margin: 32px auto 0; }
.quote p {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 96, "SOFT" 100;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.24;
  color: var(--ink);
  margin-bottom: 28px;
}
.quote .attr {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- CTA panel ---------- */
.cta-panel {
  background: var(--cream-deep);
  border-radius: 32px;
  padding: 96px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-panel h2 { margin-bottom: 20px; }
.cta-panel .lede { margin: 0 auto 40px; text-align: center; }
.cta-flourish { position: absolute; opacity: 0.35; pointer-events: none; }
.cta-flourish.left { left: -80px; top: -80px; width: 260px; }
.cta-flourish.right { right: -80px; bottom: -80px; width: 260px; transform: rotate(180deg); }

/* ---------- Footer ---------- */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 32ch; }
.foot-col h5 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 600;
}
.foot-col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0;
  transition: color 140ms ease;
}
.foot-col a:hover { color: var(--ink); }
.foot-base {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Reveal animation ---------- */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.3, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal-init.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero orbit animation ---------- */
@keyframes orbit-slow { to { transform: rotate(360deg); } }
@keyframes orbit-rev { to { transform: rotate(-360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse-soft { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes sheen { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

.orbit-slow { transform-origin: center; animation: orbit-slow 60s linear infinite; }
.orbit-rev { transform-origin: center; animation: orbit-rev 40s linear infinite; }
.float { animation: float 6s ease-in-out infinite; transform-origin: center; }
.pulse-soft { animation: pulse-soft 4s ease-in-out infinite; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.page-hero.center {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 40px;
}
.page-hero h1 { font-size: clamp(44px, 5.6vw, 74px); margin-bottom: 24px; }
.crumb {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.page-hero.center .crumb { justify-content: center; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { opacity: 0.4; }

/* ---------- Info list ---------- */
.info-list { display: grid; gap: 16px; margin: 32px 0; }
.info-list .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.info-list .row:first-child { border-top: none; padding-top: 0; }
.info-list .row .label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Form ---------- */
.form { display: grid; gap: 20px; }
.form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 14px 18px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  transition: border-color 140ms ease, background 140ms ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--forest);
  background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Product hero ---------- */
.product-hero {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.product-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--forest-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.product-mock {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: var(--forest-deep);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(31, 58, 47, 0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 80px; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .page-hero, .product-hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .deep { padding: 56px 32px; }
  .cta-panel { padding: 60px 32px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4, .process { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .info-list .row { grid-template-columns: 1fr; gap: 4px; }
  .form .row-2 { grid-template-columns: 1fr; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 90;
  padding: 100px 32px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: var(--ink);
}
.mobile-menu a.sub { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--muted); padding: 10px 0 10px 20px; border-bottom: none; }
