/* ============================================================
   MAISON VELOUR — design tokens
   ============================================================ */
:root {
  /* palette */
  --ink: #0a0a0b;                 /* midnight black */
  --ink-soft: #131315;
  --paper: #f3ede4;               /* warm cream for lower sections */
  --paper-deep: #eae2d5;
  --white: #f6f4f0;
  --accent: #ff5c1a;              /* electric tangerine */
  --accent-soft: #ff8a4d;
  --line-dark: rgba(246, 244, 240, 0.14);
  --line-warm: rgba(10, 10, 11, 0.16);

  /* type */
  --font-sans: "Archivo", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --text-base: clamp(1rem, 0.94rem + 0.35vw, 1.15rem);
  --text-hero: clamp(3.4rem, 1rem + 11vw, 11rem);
  --text-title: clamp(2rem, 1.2rem + 3.4vw, 4.4rem);

  /* rhythm */
  --space-section: clamp(5rem, 4rem + 8vw, 12rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);

  /* motion */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 600ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  background: var(--ink);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================
   Grain / atmosphere
   ============================================================ */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Loader
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--ink);
}
.loader-word {
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: 0.14em;
  overflow: hidden;
}

/* ============================================================
   Nav
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem var(--gutter);
  mix-blend-mode: difference;
}
.nav-logo { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.1em; }
.site-nav nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); align-items: center; }
.site-nav nav a {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em;
  position: relative;
}
.site-nav nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-expo);
}
.site-nav nav a:hover::after,
.site-nav nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  border: 1px solid currentColor; border-radius: 999px;
  padding: 0.5em 1.1em;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: #fff; color: #000; transition: background 200ms, color 200ms; }

/* ============================================================
   Shared section furniture
   ============================================================ */
section, .site-footer { padding: var(--space-section) var(--gutter); position: relative; }

.section-eyebrow {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 2.2rem;
}
.section-title {
  font-size: var(--text-title);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.warm .section-title { color: var(--ink); }

/* warm sections */
.warm { background: var(--paper); color: var(--ink); }
.warm .section-eyebrow { color: var(--accent); }

/* ============================================================
   Placeholders (until real photos land in assets/img/)
   ============================================================ */
.ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, #2a2320 0%, transparent 55%),
    radial-gradient(90% 120% at 85% 90%, rgba(255, 92, 26, 0.55) 0%, transparent 55%),
    linear-gradient(160deg, #1a1a1d 0%, #0d0d0f 60%, #241109 100%);
}
.ph::before {
  content: attr(data-label);
  position: absolute; left: 1rem; bottom: 0.8rem; z-index: 1;
  font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(246, 244, 240, 0.5);
}
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: 0.5;
}
.ph img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
}
.ph-show-2 { background:
  radial-gradient(100% 100% at 80% 15%, rgba(255, 138, 77, 0.5) 0%, transparent 50%),
  linear-gradient(200deg, #201a16 0%, #0c0c0e 55%, #1c0d06 100%); }
.ph-show-3 { background:
  radial-gradient(130% 80% at 15% 85%, rgba(255, 92, 26, 0.4) 0%, transparent 55%),
  linear-gradient(140deg, #141417 0%, #26160c 100%); }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding-top: clamp(6rem, 12vh, 9rem);
}
.hero-orbit { position: absolute; inset: 0; z-index: 0; }
#orbit-canvas { width: 100%; height: 100%; display: block; }

.hero-title {
  position: relative; z-index: 3;
  font-size: var(--text-hero);
  font-weight: 800; line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero-line { display: block; overflow: hidden; }
.hero-word { display: inline-block; }
.hero-line-slash { margin-left: clamp(1rem, 8vw, 8rem); }

.hero-figure {
  position: relative; z-index: 2;
  width: min(46vw, 340px);
  aspect-ratio: 3 / 4;
  margin: calc(var(--text-hero) * -0.42) auto 0;
}
.ph-hero { width: 100%; height: 100%; }

.hero-tagline {
  position: relative; z-index: 3;
  margin-top: 2.4rem;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  line-height: 1.3;
}
.tagline-line { display: block; overflow: hidden; }
.tagline-serif { font-family: var(--font-serif); font-style: italic; font-weight: 300; color: var(--accent-soft); }

.hero-meta {
  position: absolute; bottom: 1.6rem; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(246, 244, 240, 0.55);
  z-index: 3;
}
.scroll-hint { animation: hint 2.2s var(--ease-expo) infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================================================
   2. INTRO — word-by-word cover reveal
   ============================================================ */
.intro { max-width: 1100px; }
.intro-reveal {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 1rem + 3.2vw, 3.4rem);
  line-height: 1.35;
}
.intro-reveal .w,
.section-title .w,
.footer-title .w {
  display: inline-block;
  opacity: 0.13;
  will-change: opacity, transform;
}
.warm .intro-reveal .w { opacity: 0.15; }

/* ============================================================
   3. SHOWCASE
   ============================================================ */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.show-item h3 {
  margin-top: 1.1rem;
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em;
}
.show-index { color: var(--accent); font-size: 0.8rem; margin-right: 0.6rem; }
.show-item p { color: rgba(246, 244, 240, 0.6); font-size: 0.92rem; }
.show-item .ph { aspect-ratio: 4 / 5; }

.show-item-a { grid-column: 1 / 6; }
.show-item-b { grid-column: 7 / 13; margin-top: clamp(3rem, 10vw, 9rem); }
.show-item-b .ph { aspect-ratio: 16 / 11; }
.show-item-c { grid-column: 3 / 9; margin-top: clamp(1rem, 4vw, 3rem); }
.show-item-c .ph { aspect-ratio: 16 / 10; }

[data-reveal] { opacity: 0; transform: translateY(60px); }

/* ============================================================
   4. PINNED / STICKY
   ============================================================ */
.pinned { padding: 0 var(--gutter); }
.pinned-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.pinned-visual {
  position: sticky; top: 0;
  height: 100svh;
  display: grid; place-items: center;
}
.coin-scene {
  position: relative;
  width: min(82%, 470px);
  aspect-ratio: 1;
  perspective: 950px;
  display: grid; place-items: center;
}
.coin-glow {
  position: absolute; inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 26, 0.24) 0%, transparent 65%);
  filter: blur(22px);
}
.coin-tilt {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(56deg);
}
.orbit-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.coin-ring-counter { transform: translateZ(-34px); }
.ring-stroke { fill: none; stroke: var(--line-dark); stroke-width: 1; }
.ring-dashed { stroke-dasharray: 3 7; stroke: rgba(255, 92, 26, 0.5); }
.ring-text { fill: var(--white); font-size: 11.5px; letter-spacing: 0.34em; }
.ring-planet { fill: var(--accent); }
.coin-letter {
  position: relative;
  font-family: var(--font-serif);
  font-style: italic; font-weight: 300;
  font-size: clamp(4rem, 9vw, 7.5rem);
  color: var(--accent);
  text-shadow: 0 0 46px rgba(255, 92, 26, 0.4);
}

.pinned-copy { padding: 22svh 0 30svh; }
.pinned-step { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; }
.step-no {
  font-family: var(--font-serif); font-style: italic;
  color: var(--accent); font-size: 1.4rem;
}
.pinned-step h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 700; margin: 0.4rem 0 1rem; }
.pinned-step p { color: rgba(246, 244, 240, 0.66); }

/* ============================================================
   5. SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--line-warm);
  border-left: 1px solid var(--line-warm);
}
.service {
  border-right: 1px solid var(--line-warm);
  border-bottom: 1px solid var(--line-warm);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  min-height: 300px;
  display: flex; flex-direction: column;
  transition: background var(--dur) var(--ease-expo), color var(--dur) var(--ease-expo);
}
.service-no { font-size: 0.78rem; color: var(--accent); letter-spacing: 0.2em; }
.service h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700;
  margin: auto 0 0.8rem; padding-top: 3rem;
}
.service p { font-size: 0.94rem; color: rgba(10, 10, 11, 0.62); transition: color var(--dur); }
.service:hover { background: var(--ink); color: var(--white); }
.service:hover p { color: rgba(246, 244, 240, 0.66); }

/* ============================================================
   6. PRICING — draggable card stack
   ============================================================ */
.pricing { padding-bottom: calc(var(--space-section) * 1.2); }
.pricing-hint {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: rgba(10, 10, 11, 0.5);
  margin: -2rem 0 3.4rem;
}
.card-stack {
  position: relative;
  height: clamp(430px, 60vw, 520px);
  max-width: 420px;
  margin: 0 auto;
  touch-action: pan-y;
}
.price-card {
  position: absolute; inset: 0;
  background: var(--paper-deep);
  border: 1px solid var(--line-warm);
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: flex; flex-direction: column;
  cursor: grab;
  box-shadow: 0 24px 60px -30px rgba(10, 10, 11, 0.45);
  will-change: transform;
}
.price-card:active { cursor: grabbing; }
.price-card header {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line-warm);
  padding-bottom: 1.2rem; margin-bottom: 1.4rem;
}
.price-card h3 { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.price { font-family: var(--font-serif); font-size: 1.7rem; }
.price sup { font-size: 0.85rem; color: var(--accent); }
.price span { font-size: 0.8rem; font-family: var(--font-sans); color: rgba(10,10,11,0.5); }
.price-card ul { list-style: none; display: grid; gap: 0.75rem; }
.price-card li { padding-left: 1.4rem; position: relative; font-size: 0.98rem; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.price-card footer {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.4rem;
}
.card-tag {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(10, 10, 11, 0.5);
}
.card-cta {
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 0.55em 1.2em;
  transition: background 200ms, color 200ms;
}
.card-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ============================================================
   7. FAQ
   ============================================================ */
.faq-list { max-width: 860px; border-top: 1px solid var(--line-warm); }
.faq-item { border-bottom: 1px solid var(--line-warm); transition: background 300ms; }
.faq-item.open, .faq-item:hover { background: rgba(255, 92, 26, 0.05); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0.7rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600;
}
.faq-icon { position: relative; flex: 0 0 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--accent);
  transition: transform 420ms var(--ease-expo);
}
.faq-icon::before { width: 18px; height: 2px; }
.faq-icon::after { width: 2px; height: 18px; }
.faq-item.open .faq-icon::before { transform: rotate(45deg); }
.faq-item.open .faq-icon::after { transform: rotate(135deg); }
.faq-a { overflow: hidden; height: 0; }
.faq-a p {
  padding: 0 0.7rem 1.5rem;
  max-width: 60ch;
  color: rgba(10, 10, 11, 0.65);
}

/* ============================================================
   8. TESTIMONIALS — hover image takeover
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}
.testi-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  min-height: 380px;
  display: flex; flex-direction: column;
  isolation: isolate;
}
.testi-bg {
  position: absolute; z-index: -1;
  left: 1.4rem; bottom: 1.4rem;
  width: 74px; height: 74px;
  border-radius: 12px;
  transition:
    width 700ms var(--ease-expo), height 700ms var(--ease-expo),
    left 700ms var(--ease-expo), bottom 700ms var(--ease-expo),
    border-radius 700ms var(--ease-expo);
}
.testi-bg::before { display: none; }
.ph-person-1 { background: radial-gradient(100% 100% at 30% 20%, #3a2a20 0%, #17130f 70%); }
.ph-person-2 { background: radial-gradient(100% 100% at 70% 25%, #33221c 0%, #121014 70%); }
.ph-person-3 { background: radial-gradient(100% 100% at 45% 30%, #402517 0%, #100e12 70%); }

.testi-card:hover .testi-bg,
.testi-card:focus-within .testi-bg {
  left: 0; bottom: 0;
  width: 100%; height: 100%;
  border-radius: 0;
}
.testi-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(200deg, rgba(10,10,11,0) 0%, rgba(10,10,11,0.82) 78%);
  opacity: 0; transition: opacity 700ms var(--ease-expo);
}
.testi-card:hover::after, .testi-card:focus-within::after { opacity: 1; }

.testi-card blockquote p {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.4;
}
.testi-card footer {
  margin-top: auto; padding-top: 2rem;
  padding-left: calc(74px + 1.1rem);
  min-height: 74px;
  display: flex; flex-direction: column; justify-content: center;
  transition: padding-left 700ms var(--ease-expo);
}
.testi-card:hover footer, .testi-card:focus-within footer { padding-left: 0; }
.testi-card footer strong { font-size: 0.95rem; }
.testi-card footer span { font-size: 0.8rem; color: rgba(246, 244, 240, 0.6); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  text-align: center;
  padding-top: calc(var(--space-section) * 1.1);
}
.footer-title {
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 800; letter-spacing: -0.02em;
  max-width: 14ch; margin: 0 auto 2.4rem;
  line-height: 1.05;
}
.footer-mail {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms;
}
.footer-mail:hover { border-color: var(--accent); }
.footer-meta {
  margin-top: clamp(3rem, 8vw, 6rem);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(246, 244, 240, 0.5);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .pinned-stage { grid-template-columns: 1fr; }
  .pinned-visual { position: relative; height: auto; padding: 4rem 0 0; }
  .pinned-copy { padding: 2rem 0 4rem; }
  .pinned-step { min-height: 0; padding: 2.4rem 0; }
  .show-item-a, .show-item-b, .show-item-c { grid-column: 1 / -1; margin-top: 0; }
  .hero-figure { width: min(64vw, 320px); }
}
@media (max-width: 600px) {
  .site-nav nav a:not(.nav-cta) { display: none; }
  .hero-meta span:nth-child(2) { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .intro-reveal .w, .section-title .w, .footer-title .w { opacity: 1; }
}
