/* ==========================================================================
   VD Textile Studio — Design System
   B2B fabric discovery & sample ordering platform
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,200;0,300;0,400;0,500;1,200;1,300;1,400&family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600&display=swap');

:root {
  /* Brand palette — sampled from client brand-color reference */
  --paper: #F1EEE9;        /* primary background, matches logo backing */
  --light-sand: #E9E5E2;
  --medium-sand: #E7E0D7;
  --clay: #BDB3AA;         /* primary accent / CTA */
  --clay-deep: #A89C90;    /* hover state for clay */
  --grey: #66656B;         /* secondary text, borders */
  --grey-soft: #9A98A0;
  --ink: #28292D;          /* primary text */
  --ink-soft: #46454B;
  --white: #FFFFFF;
  --espresso: #3B3128;     /* dark section / footer background, warm brown alternative to black */
  --espresso-soft: #4C4030;

  /* Semantic */
  --bg: var(--paper);
  --bg-alt: var(--light-sand);
  --bg-dark: var(--espresso);
  --text: var(--ink);
  --text-muted: var(--grey);
  --text-on-dark: var(--paper);
  --text-on-dark-muted: #BFB2A0;
  --border: rgba(40, 41, 45, 0.12);
  --border-on-dark: rgba(241, 238, 233, 0.14);
  --accent: var(--clay);
  --success: #5C7A5E;

  /* Type */
  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing / layout */
  --container: 1280px;
  --container-wide: 1440px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Motion */
  --ease: cubic-bezier(0.65, 0, 0.15, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.3s;
  --dur-mid: 0.6s;
  --dur-slow: 1s;
}

/* ---------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------- Type ---------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow.on-dark { color: var(--text-on-dark-muted); }
.eyebrow.on-accent { color: var(--ink); }

.display-1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.55rem, 2.1vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.display-3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 1.5vw, 1.55rem);
  line-height: 1.3;
}
.italic { font-style: italic; }

.heading-elegant-serif {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
}
.heading-elegant-serif .italic { font-style: italic; }

.lede {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 46ch;
}
.body-sm { font-size: 14px; color: var(--text-muted); }
.mono-tag {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--medium-sand); color: var(--ink); border-color: var(--border); }
.btn-primary:hover { background: var(--clay); }

.btn-accent { background: var(--clay); color: var(--ink); }
.btn-accent:hover { background: var(--clay-deep); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); background: rgba(40,41,45,0.04); }

.btn-outline-light { background: transparent; color: var(--paper); border-color: var(--border-on-dark); }
.btn-outline-light:hover { border-color: var(--paper); background: rgba(241,238,233,0.08); }

.btn-ghost {
  display: inline-flex;
  padding: 4px 0;
  border-radius: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-bottom: 1px solid var(--ink);
}
.btn-ghost.on-dark { color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { opacity: 0.65; }

.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------------------------------- Nav ---------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: background var(--dur-fast) var(--ease-out), padding var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(241, 238, 233, 0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  padding: 14px 0;
  border-color: var(--border);
}
.site-header.on-dark:not(.is-scrolled) .nav-link { color: var(--paper); }
.site-header.on-dark:not(.is-scrolled) .btn-outline { border-color: var(--border-on-dark); color: var(--paper); }
.site-header.on-dark:not(.is-scrolled) .nav-toggle span { background: var(--paper); }
.site-header.on-dark:not(.is-scrolled) .logo-img { filter: invert(1) brightness(1.6); }

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

.logo { display: flex; align-items: center; }
.logo-img { height: 46px; width: auto; display: block; }
@media (max-width: 480px) { .logo-img { height: 38px; } }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right var(--dur-fast) var(--ease-out);
}
.nav-link:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; padding: 6px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: all var(--dur-fast) var(--ease-out); }
.nav-toggle.is-active span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.is-active span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 199;
  display: flex; flex-direction: column;
  padding: 100px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform var(--dur-mid) var(--ease-out);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a { font-family: var(--font-display); font-size: 24px; font-weight: 300; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 24px; }

body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-outline,
  .nav-actions .btn-primary { display: none; }
}
/* ---------------------------------- Reveal animation ---------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }
.fade-scale { transform: scale(0.96); }
.fade-scale.is-visible { transform: scale(1); }

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-texture {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-texture::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40,41,45,0.35) 0%, rgba(40,41,45,0.25) 35%, rgba(40,41,45,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 72px;
  max-width: var(--container-wide);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  max-width: 16ch;
}
.hero-sub {
  margin-top: 26px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-on-dark-muted);
  max-width: 52ch;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-scroll {
  position: absolute; bottom: 28px; right: var(--gutter);
  z-index: 2;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-on-dark-muted);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-scroll .line { width: 1px; height: 32px; background: var(--border-on-dark); position: relative; overflow: hidden; }
.hero-scroll .line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--clay); animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------------------------------- Texture / swatch generators ---------------------------------- */
.swatch {
  position: relative;
  overflow: hidden;
  background: var(--medium-sand);
}
.swatch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.swatch:hover img { transform: scale(1.06); }

.texture {
  position: relative;
  background-size: cover;
  background-position: center;
}
.texture-jacquard { background: radial-gradient(120% 120% at 20% 20%, #4a4841 0%, #28292D 55%, #1c1d20 100%); }
.texture-jacquard::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5;
  background-image: repeating-linear-gradient(45deg, rgba(241,238,233,0.06) 0 2px, transparent 2px 14px),
                     repeating-linear-gradient(-45deg, rgba(241,238,233,0.05) 0 2px, transparent 2px 14px);
}
.texture-dobby { background: radial-gradient(120% 120% at 80% 10%, #7d746a 0%, #5c554d 55%, #3a352f 100%); }
.texture-dobby::before {
  content: ''; position: absolute; inset: 0; opacity: 0.55;
  background-image: repeating-linear-gradient(90deg, rgba(241,238,233,0.08) 0 3px, transparent 3px 10px),
                     repeating-linear-gradient(0deg, rgba(40,41,45,0.12) 0 3px, transparent 3px 10px);
}
.texture-cotton { background: radial-gradient(120% 120% at 30% 80%, #e7e0d7 0%, #d7cec1 55%, #bdb3aa 100%); }
.texture-cotton::before {
  content: ''; position: absolute; inset: 0; opacity: 0.6; mix-blend-mode: multiply;
  background-image: repeating-linear-gradient(0deg, rgba(40,41,45,0.04) 0 1px, transparent 1px 5px),
                     repeating-linear-gradient(90deg, rgba(40,41,45,0.04) 0 1px, transparent 1px 5px);
}
.texture-viscose { background: radial-gradient(130% 130% at 70% 20%, #c9beb0 0%, #a89c90 60%, #857a70 100%); }
.texture-viscose::before {
  content: ''; position: absolute; inset: 0; opacity: 0.45;
  background-image: repeating-linear-gradient(30deg, rgba(241,238,233,0.1) 0 2px, transparent 2px 20px);
}
.texture-polyester { background: radial-gradient(120% 120% at 20% 10%, #b9c1c4 0%, #8d9497 55%, #66656B 100%); }
.texture-polyester::before {
  content: ''; position: absolute; inset: 0; opacity: 0.4;
  background-image: repeating-linear-gradient(60deg, rgba(241,238,233,0.09) 0 1px, transparent 1px 8px);
}
.texture-linen { background: radial-gradient(120% 120% at 60% 80%, #ece6da 0%, #d8cfc0 55%, #b7ab99 100%); }
.texture-linen::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: multiply;
  background-image: repeating-linear-gradient(2deg, rgba(40,41,45,0.05) 0 1px, transparent 1px 6px),
                     repeating-linear-gradient(92deg, rgba(40,41,45,0.05) 0 1px, transparent 1px 9px);
}
.texture-tencel { background: radial-gradient(130% 130% at 30% 30%, #eef0ee 0%, #cfd2cd 55%, #9aa39a 100%); }
.texture-tencel::before {
  content: ''; position: absolute; inset: 0; opacity: 0.35;
  background-image: repeating-linear-gradient(15deg, rgba(40,41,45,0.05) 0 2px, transparent 2px 24px);
}
.texture-hero { background: radial-gradient(140% 100% at 50% 0%, #4d4b44 0%, #28292D 45%, #17181a 100%); }
.texture-hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.45;
  background-image: repeating-linear-gradient(48deg, rgba(241,238,233,0.05) 0 2px, transparent 2px 16px),
                     repeating-linear-gradient(-42deg, rgba(241,238,233,0.04) 0 2px, transparent 2px 22px);
}

/* ---------------------------------- Sections ---------------------------------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: clamp(36px, 5vw, 64px);
  flex-wrap: wrap;
}
.section-head .display-2 { margin-top: 14px; max-width: 20ch; }

/* ---------------------------------- Category strip ---------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}
.category-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-dark);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: var(--paper);
}
.category-card .texture { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.category-card:hover .texture { transform: scale(1.08); }
.category-card-inner { position: relative; z-index: 1; width: 100%; }
.category-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 300; }
.category-card .count { font-size: 12px; color: var(--text-on-dark-muted); margin-top: 4px; }
.category-card .arrow {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-on-dark);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease-out);
}
.category-card:hover .arrow { background: var(--clay); border-color: var(--clay); transform: rotate(45deg); }
.category-card .arrow svg { width: 14px; height: 14px; }

@media (max-width: 1000px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- Fabric cards ---------------------------------- */
.fabric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
@media (max-width: 980px) { .fabric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fabric-grid { grid-template-columns: 1fr; } }

.fabric-card { display: block; }
.fabric-card .swatch { aspect-ratio: 4/5; border-radius: var(--radius-md); }
.fabric-card .texture { position: absolute; inset: 0; transition: transform 0.9s var(--ease-out); }
.fabric-card:hover .texture { transform: scale(1.06); }
.fabric-card .tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: rgba(241,238,233,0.92);
  color: var(--ink);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  padding: 6px 10px; border-radius: 999px;
}
.fabric-card-body { padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; }
.fabric-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 300; }
.fabric-card .code { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.fabric-card .price-hint { font-size: 12px; color: var(--text-muted); text-align: right; white-space: nowrap; }
.fabric-card .colors { display: flex; gap: 5px; margin-top: 10px; }
.fabric-card .dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(40,41,45,0.15); }

/* ---------------------------------- Stats / value props ---------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-grid.stat-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .stat-grid.stat-grid-5 { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-family: var(--font-display); font-size: clamp(1.7rem, 2.3vw, 2.3rem); font-style: italic; }
.stat-label { margin-top: 8px; font-size: 13px; color: var(--text-muted); max-width: 22ch; }

/* ---------------------------------- Process strip ---------------------------------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-on-dark); border-radius: var(--radius-lg); overflow: hidden; }
.process-step { background: var(--bg-dark); padding: 36px 28px; position: relative; }
.process-num { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--clay); }
.process-step h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 300; margin-top: 18px; }
.process-step p { font-size: 13px; color: var(--text-on-dark-muted); margin-top: 10px; line-height: 1.6; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- Cards / panels ---------------------------------- */
.panel { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.card-shadow { box-shadow: 0 20px 60px -20px rgba(40,41,45,0.18); }

/* ---------------------------------- Forms ---------------------------------- */
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.field .req { color: var(--clay-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(40,41,45,0.08);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.field-error { font-size: 12px; color: #A5453A; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A5453A; }
.field.has-error .field-error { display: block; }

.order-type-toggle { display: flex; gap: 10px; flex-wrap: wrap; }
.order-type-option {
  flex: 1; min-width: 160px; display: flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); font-size: 13.5px; font-weight: 500; text-transform: none;
  letter-spacing: normal; color: var(--ink); cursor: pointer; transition: all var(--dur-fast);
}
.order-type-option input { accent-color: var(--ink); margin: 0; width: auto; }
.order-type-option:hover { border-color: var(--grey-soft); }
.order-type-option.is-selected { border-color: var(--ink); background: var(--medium-sand); }

.hanger-callout {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: var(--medium-sand);
  border-radius: var(--radius-md); font-size: 13.5px; line-height: 1.55; color: var(--ink);
}
.hanger-callout svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; color: var(--clay-deep); }
.hanger-callout a { text-decoration: underline; color: var(--ink); }

.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.checkbox-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--dur-fast);
  font-size: 14px;
}
.checkbox-item:hover { border-color: var(--grey-soft); }
.checkbox-item input { width: 16px; height: 16px; accent-color: var(--ink); }
.checkbox-item.is-checked { border-color: var(--ink); background: rgba(40,41,45,0.03); }

/* ---------------------------------- Modal ---------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(40,41,45,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 620px; width: 100%;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform var(--dur-fast) var(--ease-out);
  margin: auto 0;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast);
}
.modal-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.modal-close svg { width: 15px; height: 15px; }
.modal-subject {
  background: var(--medium-sand);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 20px 0 28px;
  font-size: 13px;
}
.modal-subject strong { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 300; margin-bottom: 4px; }
.modal-success { text-align: center; padding: 20px 0; }
.modal-success .icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--success);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.modal-success .icon svg { width: 28px; height: 28px; stroke: white; }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer { background: var(--bg-dark); color: var(--text-on-dark); padding: 80px 0 32px; }
.footer-hero { margin-bottom: 56px; }
.footer-eyebrow-line {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-on-dark-muted); margin-bottom: 20px;
}
.footer-eyebrow-line .line { width: 32px; height: 1px; background: var(--text-on-dark-muted); display: inline-block; }
.footer-heading {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--paper);
}
.footer-heading .italic { font-style: italic; color: var(--clay); text-transform: none; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--border-on-dark); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-col h5 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-dark-muted); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--text-on-dark-muted); margin-bottom: 12px; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 12px 24px; }
.footer-bottom p { font-size: 12px; color: var(--text-on-dark-muted); }
.footer-bottom-left { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 12px; color: var(--text-on-dark-muted); transition: color var(--dur-fast); }
.footer-legal a:hover { color: var(--paper); }
.lang-switch { display: flex; gap: 14px; }
.lang-switch button { background: none; border: none; color: var(--text-on-dark-muted); font-size: 12px; letter-spacing: 0.06em; cursor: pointer; }
.lang-switch button.is-active { color: var(--paper); border-bottom: 1px solid var(--clay); }

/* ---------------------------------- Brand intro (homepage) ---------------------------------- */
.brand-intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, var(--medium-sand) 0%, var(--paper) 62%);
}
.brand-intro-inner { position: relative; z-index: 1; }
.brand-logo-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: min(70vw, 720px); height: min(70vw, 720px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(189,179,170,0.45) 0%, rgba(189,179,170,0) 68%);
  filter: blur(10px);
  animation: glowPulse 7s ease-in-out infinite;
  z-index: 0;
}
@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.75; }
  50% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}
.brand-logo-img {
  height: clamp(110px, 16vw, 200px);
  width: auto;
  margin: 0 auto;
  display: block;
  opacity: 0;
  transform: scale(0.82) translateY(24px);
  animation: logoEntrance 1.3s var(--ease-out) 0.15s forwards,
             logoBreathe 6s ease-in-out 1.5s infinite;
}
@keyframes logoEntrance {
  from { opacity: 0; transform: scale(0.82) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes logoBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo-glow, .brand-logo-img.is-settled { animation: none; }
  .brand-logo-img { opacity: 1; transform: none; animation: none; }
}

/* ---------------------------------- Section head — centered variant ---------------------------------- */
.section-head.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.section-head.centered .display-2,
.section-head.centered .display-1 { margin-top: 8px; }
.section-head.centered .lede { max-width: 56ch; margin-left: auto; margin-right: auto; }
.section-head.centered .btn-ghost { margin-top: 6px; }

/* ---------------------------------- CTA row (post-gallery) ---------------------------------- */
.cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 8px 0 8px; }

/* ---------------------------------- Scroll-zoom story ---------------------------------- */
.story-scroll { position: relative; height: 380vh; }
.story-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.story-media {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(25% round 32px);
  will-change: clip-path;
}
.story-media .texture { position: absolute; inset: -10%; will-change: transform; }
.story-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.story-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,22,0.55) 0%, rgba(20,20,22,0.35) 40%, rgba(20,20,22,0.7) 100%);
}
.story-text-stack { position: relative; z-index: 2; width: min(94vw, 980px); padding: 0 16px; min-height: 3.6em; display: flex; align-items: center; justify-content: center; }
.story-line {
  position: absolute; inset: 0; margin: auto; width: 100%; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  opacity: 0; transform: translateY(16px);
  font-family: var(--font-body); font-weight: 600; font-style: normal;
  text-transform: uppercase; letter-spacing: 0.07em;
  font-size: clamp(0.95rem, 2.6vw, 1.5rem); line-height: 1.6;
  color: var(--paper); text-shadow: 0 2px 20px rgba(0,0,0,0.35);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.story-line.is-active { opacity: 1; transform: translateY(0); }
@media (max-width: 560px) {
  .story-text-stack { min-height: 6.2em; }
  .story-line { font-size: 0.78rem; letter-spacing: 0.04em; line-height: 1.55; padding: 0 6px; }
}
.story-progress {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 6px;
}
.story-progress span { width: 22px; height: 2px; background: var(--border-on-dark); border-radius: 2px; overflow: hidden; position: relative; }
.story-progress span::after { content: ''; position: absolute; inset: 0; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform 0.3s linear; }
.story-progress span.is-done::after { transform: scaleX(1); }

.story-outro-logo {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
}
.story-outro-logo img {
  height: clamp(70px, 11vw, 130px);
  width: auto;
  filter: invert(1) brightness(1.7);
}

/* ---------------------------------- Overlapping gallery (Poeza-style) ---------------------------------- */
.overlap-section { padding: clamp(48px, 8vw, 100px) 0 clamp(24px, 5vw, 56px); }
.overlap-gallery { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; padding: 20px 0; }
.overlap-card {
  width: 240px; aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden;
  position: relative; box-shadow: 0 30px 70px -24px rgba(40,41,45,0.4);
  flex-shrink: 0; opacity: 0; transform: translateY(50px) rotate(var(--rot, 0deg));
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), z-index 0s;
}
.overlap-card.is-visible { opacity: 1; transform: translateY(var(--ty, 0)) rotate(var(--rot, 0deg)); }
.overlap-card:not(:first-child) { margin-left: -60px; }
.overlap-card:hover { transform: translateY(-18px) scale(1.05) rotate(0deg) !important; z-index: 20; }
.overlap-card .texture { position: absolute; inset: 0; }
.overlap-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.overlap-caption {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  color: var(--paper); font-size: 12px; font-weight: 500; max-width: 80%;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
@media (max-width: 900px) {
  .overlap-card { width: 180px; }
  .overlap-card:not(:first-child) { margin-left: -46px; }
}
@media (max-width: 560px) {
  .overlap-gallery { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 28px 28px; gap: 0; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .overlap-card { width: 200px; scroll-snap-align: start; }
}

/* ---------------------------------- Bespoke Development block ---------------------------------- */
.bespoke-block {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  max-width: 880px; margin: 0 auto; text-align: center;
}
.bespoke-media { position: relative; aspect-ratio: 21/9; overflow: hidden; }
.bespoke-media .texture { position: absolute; inset: 0; animation: bespokeShimmer 8s ease-in-out infinite; }
@keyframes bespokeShimmer {
  0%, 100% { filter: brightness(1) saturate(1); transform: scale(1); }
  50% { filter: brightness(1.08) saturate(1.15); transform: scale(1.04); }
}
.bespoke-body { padding: clamp(28px, 5vw, 52px); }
.shine-text {
  font-weight: 600;
  background: linear-gradient(90deg, var(--ink) 0%, var(--clay-deep) 25%, var(--ink) 50%, var(--clay-deep) 75%, var(--ink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }

/* ---------------------------------- Utilities ---------------------------------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; background: var(--medium-sand); color: var(--ink);
}
.badge-dark { background: rgba(241,238,233,0.1); color: var(--paper); }
.divider { height: 1px; background: var(--border); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 20px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 500;
  max-width: 620px; margin: 0 auto;
  background: var(--bg-dark); color: var(--paper);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.45);
}
.cookie-banner p { font-size: 13px; color: var(--text-on-dark-muted); margin: 0; flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--paper); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 10px 18px; font-size: 13px; }
.cookie-banner-actions .btn-outline { border-color: var(--border-on-dark); color: var(--paper); }
.cookie-banner-actions .btn-outline:hover { background: rgba(241,238,233,0.08); }
@media (max-width: 560px) { .cookie-banner { flex-direction: column; align-items: flex-start; } }

/* Page hero (non-homepage) */
.page-hero { padding: 168px 0 64px; }
.page-hero.on-dark { background: var(--ink); color: var(--text-on-dark); }

/* ---------------------------------- Stat / mock cards (dashboard + studio preview) ---------------------------------- */
.mock-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 700px) { .mock-cards { grid-template-columns: repeat(2, 1fr); } }
.mock-card { background: var(--white); border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--border); }
.mock-card .num { font-family: var(--font-display); font-size: 2rem; font-style: italic; }
.mock-card .label { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ---------------------------------- Design Studio dashboard ---------------------------------- */
.dash-app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dash-sidebar {
  background: var(--white); border-right: 1px solid var(--border);
  padding: 32px 24px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.dash-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dash-nav-link { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text-muted); transition: all var(--dur-fast); }
.dash-nav-link:hover { background: var(--paper); color: var(--ink); }
.dash-nav-link.is-active { background: var(--ink); color: var(--paper); font-weight: 500; }
.dash-account { display: flex; align-items: center; gap: 12px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--border); }
.acct-name { font-size: 14px; font-weight: 500; }
.acct-company { font-size: 12px; color: var(--text-muted); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }

.dash-main { padding: clamp(28px, 4vw, 56px); max-width: 1080px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.dash-section-head { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; margin-bottom: 4px; }

.project-list { display: flex; flex-direction: column; gap: 10px; }
.project-row {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all var(--dur-fast);
}
.project-row:hover { border-color: var(--grey-soft); transform: translateX(2px); }
.project-row-body { flex: 1; min-width: 0; }
.project-row-title { font-weight: 500; font-size: 14.5px; }
.project-row-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

.status-pill { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.status-review { background: #EAE3D8; color: #7A5C2E; }
.status-progress { background: #DDE6E0; color: #3D6650; }
.status-done { background: #E3E7DD; color: #556B45; }

.dropzone {
  border: 1.5px dashed var(--border); border-radius: var(--radius-lg);
  padding: 48px 24px; text-align: center; transition: all var(--dur-fast);
}
.dropzone.is-dragover { border-color: var(--ink); background: var(--medium-sand); }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.file-chip { font-size: 12px; background: var(--medium-sand); padding: 6px 12px; border-radius: 999px; }

.project-detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: 28px; align-items: start; }
@media (max-width: 900px) { .project-detail-grid { grid-template-columns: 1fr; } }
.status-meta { display: flex; gap: 32px; margin-top: 16px; flex-wrap: wrap; }
.status-meta .k { display: block; font-size: 12px; color: var(--text-muted); }
.status-meta strong { display: block; margin-top: 4px; font-weight: 500; }

.rec-list { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.rec-item { display: flex; gap: 14px; }
.rec-author { font-size: 13.5px; font-weight: 500; }

.preview-chain { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.preview-step { text-align: center; }
.preview-step .texture { width: 100px; height: 122px; border-radius: var(--radius-md); position: relative; overflow: hidden; }
.preview-step span { display: block; margin-top: 8px; font-size: 11px; color: var(--text-muted); }
.preview-arrow { color: var(--clay-deep); font-size: 16px; }

.messages-panel { position: sticky; top: 24px; display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.message-thread { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; flex: 1; padding-right: 4px; }
.msg { display: flex; gap: 10px; }
.msg-body { background: var(--paper); padding: 10px 14px; border-radius: var(--radius-md); font-size: 13.5px; flex: 1; }
.msg-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.msg-mine .msg-body { background: var(--ink); color: var(--paper); }
.msg-mine .msg-meta { color: var(--text-on-dark-muted); }
.reply-form { display: flex; gap: 8px; }
.reply-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.reply-form input:focus { outline: none; border-color: var(--ink); }

.sample-table { display: flex; flex-direction: column; gap: 10px; }
.sample-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); gap: 16px; }

.auth-required { max-width: 480px; margin: 140px auto; text-align: center; padding: 0 20px; }

@media (max-width: 900px) {
  .dash-app { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 18px; }
  .dash-sidebar .logo { margin-bottom: 0; margin-right: auto; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; order: 3; width: 100%; margin-top: 14px; }
  .dash-account { border-top: none; padding-top: 0; margin-top: 0; }
  .messages-panel { position: static; max-height: none; }
}

/* Toast (dashboard demo) */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 600;
  background: var(--ink); color: var(--paper);
  padding: 16px 22px; border-radius: var(--radius-md);
  font-size: 14px; display: flex; align-items: center; gap: 10px;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
