/* ============================================================
   VAROMA — Brand-Compliant Stylesheet
   Source: Documentation spec (July 2026)
   Palette: Putty / Ink / Bone / Chalk / Vellum / Graphite / Ash / Paper
   Typography: Playfair Display (display) + DM Sans / Helvetica (utility)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=DM+Sans:wght@400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  /* Colour palette — exact from docs */
  --putty:    #c4c3b6;
  --ink:      #000000;
  --bone:     #e7e5e4;
  --chalk:    #ebebeb;
  --vellum:   #dfdcd5;
  --graphite: #595855;
  --ash:      #808080;
  --paper:    #ffffff;

  /* Typography */
  --font-display:  'Playfair Display', 'Davinci', Georgia, serif;
  --font-utility:  'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spacing scale — 4px base */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radii */
  --radius-card: 9px;
  --radius-link: 2px;
  --radius-pill: 28.8px;

  /* Misc */
  --max-width: 1100px;
  --transition: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-utility);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--putty);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* ── Container ─────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* ── Shared Components ─────────────────────────────────── */

/* Pill button */
.pill-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-utility);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  transition: opacity var(--transition), transform 0.15s ease;
  cursor: pointer;
  border: none;
}
.pill-btn:hover { opacity: 0.75; transform: translateY(-1px); }
.pill-btn--white { background: var(--paper); color: var(--ink); }

/* Section label */
.section-label {
  display: block;
  font-family: var(--font-utility);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
}
.section-label--light { color: var(--ash); }
.section-label--right { text-align: right; }

/* Section heading */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 94px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.009em;
  color: var(--ink);
}
.section-heading--light { color: var(--paper); }

/* Ghost link */
.ghost-link {
  font-family: var(--font-utility);
  font-size: 12px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.ghost-link:hover { border-bottom-color: var(--ink); }

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-8);
  background: transparent;
  transition: color var(--transition);
}

.logo-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color var(--transition), color var(--transition);
}
.logo-mark--sm {
  width: 28px; height: 28px;
  font-size: 12px;
}

/* Dark theme override (JS-driven) */
.site-header[data-theme="dark"] .logo-mark {
  border-color: var(--paper);
  color: var(--paper);
}
.site-header[data-theme="dark"] .ghost-link {
  color: var(--paper);
}
.site-header[data-theme="dark"] .ghost-link:hover {
  border-bottom-color: var(--paper);
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--putty);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-top-cluster {
  position: relative;
  z-index: 2;
  padding: var(--space-20) var(--space-8) var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero-label {
  font-family: var(--font-utility);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.011em;
  color: var(--ink);
  line-height: 1.3;
}

.stat-pair {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.stat-item {
  font-family: var(--font-utility);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}
.stat-divider {
  color: var(--vellum);
  font-size: 10px;
}

.hero-wordmark {
  position: absolute;
  bottom: -0.12em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
  animation: fadeIn 1.2s ease 0s both;
}
.wordmark-text {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 374px);
  font-weight: 500;
  letter-spacing: -0.009em;
  color: var(--ink);
  opacity: 0.82;
  line-height: 1;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   PAINTING SECTION
═══════════════════════════════════════════════════════ */
.painting-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.painting-image-wrap {
  position: absolute;
  inset: 0;
}
.painting-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Painting alt — dimmed for quote overlay */
.painting-section--alt .painting-img {
  filter: brightness(0.55);
}

/* Floating product card */
.floating-product-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 35vw, 400px);
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-10) var(--space-8);
  clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  animation: fadeUp 0.8s ease 0.4s both;
}

.card-scroll-label {
  font-family: var(--font-utility);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
}
.card-category {
  font-family: var(--font-utility);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}
.card-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.1;
}
.card-body {
  font-family: var(--font-utility);
  font-size: 13px;
  font-weight: 400;
  color: var(--ash);
  line-height: 1.6;
}

/* Quote overlay */
.painting-overlay-text {
  position: absolute;
  bottom: var(--space-16);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
  max-width: 700px;
  animation: fadeUp 0.8s ease both;
}
.overlay-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--paper);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.overlay-attr {
  font-family: var(--font-utility);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ═══════════════════════════════════════════════════════
   FEATURE SECTION — INK ROOM
═══════════════════════════════════════════════════════ */
.feature-section {
  background: var(--ink);
  padding: var(--space-20) 0;
}

.feature-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  max-width: 900px;
  margin: 0 auto;
}

.feature-vignette {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.feature-vignette:nth-child(2) { transition-delay: 0.15s; }
.feature-vignette:nth-child(3) { transition-delay: 0.3s; }
.feature-vignette.visible {
  opacity: 1;
  transform: translateY(0);
}

.vignette-circle {
  width: clamp(140px, 18vw, 200px);
  height: clamp(140px, 18vw, 200px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.vignette-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.feature-vignette:hover .vignette-circle img {
  transform: scale(1.06);
}

.vignette-caption {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--paper);
  line-height: 1.2;
}
.vignette-sub {
  font-family: var(--font-utility);
  font-size: 12px;
  font-weight: 400;
  color: var(--ash);
  letter-spacing: 0.02em;
}

.hex-nav {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.hex-dot {
  width: 8px; height: 8px;
  background: var(--graphite);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: background var(--transition);
}
.hex-dot--active { background: var(--paper); }

/* ═══════════════════════════════════════════════════════
   PHILOSOPHY SECTION — PUTTY CANVAS
═══════════════════════════════════════════════════════ */
.philosophy-section {
  background: var(--putty);
  border-top: 1px solid var(--vellum);
  border-bottom: 1px solid var(--vellum);
  padding: var(--space-20) 0;
}

.philosophy-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-16);
  align-items: start;
}

.philosophy-label-col {
  padding-top: var(--space-3);
}

.philosophy-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.009em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.philosophy-body {
  font-family: var(--font-utility);
  font-size: 15px;
  font-weight: 400;
  color: var(--graphite);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--space-10);
}

.philosophy-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.stat-desc {
  font-family: var(--font-utility);
  font-size: 11px;
  font-weight: 400;
  color: var(--graphite);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-divider-v {
  width: 1px;
  height: 40px;
  background: var(--vellum);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   SPECIALTY SECTION — BONE CARD
═══════════════════════════════════════════════════════ */
.specialty-section {
  background: var(--bone);
  padding: var(--space-20) 0;
}

.specialty-header {
  margin-bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: var(--max-width);
  margin: 0 auto;
}

.specialty-card {
  background: var(--paper);
  border: 1px solid var(--vellum);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.25s ease;
}
.specialty-card:hover { transform: translateY(-4px); }

.specialty-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.specialty-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.specialty-card:hover .specialty-img-wrap img { transform: scale(1.04); }

.specialty-card-body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.specialty-tag {
  font-family: var(--font-utility);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.specialty-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.2;
}

.specialty-desc {
  font-family: var(--font-utility);
  font-size: 14px;
  font-weight: 400;
  color: var(--graphite);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   CTA SECTION — INK ROOM
═══════════════════════════════════════════════════════ */
.cta-section {
  background: var(--ink);
  padding: var(--space-20) 0;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 94px);
  font-weight: 500;
  letter-spacing: -0.009em;
  color: var(--paper);
  line-height: 0.9;
}

.cta-body {
  font-family: var(--font-utility);
  font-size: 15px;
  font-weight: 400;
  color: var(--ash);
  max-width: 400px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--chalk);
  border-top: 1px solid var(--vellum);
  padding: var(--space-16) 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.footer-tagline {
  font-family: var(--font-utility);
  font-size: 13px;
  color: var(--graphite);
  max-width: 360px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-copy {
  font-family: var(--font-utility);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET (max 900px)
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .site-header { padding: var(--space-4) var(--space-6); }

  .feature-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section-label--right { text-align: center; }

  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .philosophy-label-col { padding-top: 0; }

  .specialty-grid { grid-template-columns: 1fr; max-width: 560px; }

  .floating-product-card { width: clamp(280px, 70vw, 400px); }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (max 600px)
═══════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero-section { min-height: 100svh; }

  .wordmark-text { font-size: clamp(64px, 26vw, 140px); }

  .hero-top-cluster {
    padding: var(--space-16) var(--space-6) var(--space-12);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: var(--space-10);
  }

  .vignette-circle {
    width: 160px; height: 160px;
  }

  .philosophy-stats { flex-wrap: wrap; }
  .stat-divider-v { display: none; }

  .painting-section { height: 75vh; }
  .painting-section--alt { height: 60vh; }

  .specialty-section,
  .philosophy-section,
  .feature-section,
  .cta-section { padding: var(--space-12) 0; }

  .container { padding: 0 var(--space-6); }

  .cta-heading { font-size: clamp(40px, 12vw, 64px); }
}