/* ==========================================================================
   WAB STUDIO BY ELLE — Concept site
   Design system: black / white / soft lilac / silver — editorial, fashion, cosmopolitan
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:root {
  /* Typography */
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(3rem, 9vw, 9rem);
  --fs-h1: clamp(2.5rem, 6vw, 5.5rem);
  --fs-h2: clamp(2rem, 4.5vw, 3.75rem);
  --fs-h3: clamp(1.35rem, 2.4vw, 1.9rem);
  --fs-lead: clamp(1.125rem, 1.6vw, 1.375rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --sp-11: 160px; --sp-12: 200px;

  /* Layout */
  --container-w: 1360px;
  --gutter: clamp(24px, 5vw, 80px);
  --section-pad: clamp(64px, 12vw, 160px);

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-pill: 999px;

  /* Motion */
  --dur-fast: 0.2s;
  --dur-normal: 0.5s;
  --dur-slow: 1s;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);

  /* Palette (raw) */
  --ink: #0B0B0C;
  --paper: #F5F5F7;
  --lilac-soft: #B9A9E8;
  --lilac-strong: #D6CCF2;
  --lilac-deep: #5B4A99;
  --lilac-deep-strong: #43356E;
  --silver-soft: #C7C8D1;
  --silver-deep: #6B6B76;
}

/* Theme tokens — scoped per section */
.theme-dark {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: #9C9CA6;
  --accent: var(--lilac-soft);
  --accent-strong: var(--lilac-strong);
  --border: rgba(245, 245, 247, 0.14);
  --surface: #17171B;
}
.theme-light {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--silver-deep);
  --accent: var(--lilac-deep);
  --accent-strong: var(--lilac-deep-strong);
  --border: rgba(11, 11, 12, 0.12);
  --surface: #FFFFFF;
}

html, body { background: var(--ink); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }

::selection { background: var(--lilac-soft); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--paper); color: var(--ink); padding: var(--sp-3) var(--sp-4);
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-6); }
h3 { font-size: var(--fs-h3); margin: var(--sp-3) 0; }

.eyebrow {
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 var(--sp-4);
}
.lead {
  font-size: var(--fs-lead); color: var(--muted); max-width: 46ch;
  line-height: 1.5; margin: 0 0 var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-2);
}

.text-link { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; position: relative; }
.text-link svg { transition: transform var(--dur-fast) var(--ease-standard); }
.text-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur-normal) var(--ease-emphasized);
}
.text-link:hover::after { transform: scaleX(1); transform-origin: left; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section {
  position: relative;
  background: var(--bg); color: var(--fg);
  padding: var(--section-pad) 0;
  transition: background var(--dur-normal) var(--ease-standard);
}
.theme-dark { position: relative; }
.theme-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reveal ----------
   Hidden-before-reveal state only applies once JS has confirmed it can run
   (html.js, set synchronously in a head script) and the user allows motion.
   Without JS — or before that class lands — content is visible by default,
   so a slow/blocked script never leaves real content permanently invisible. */
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal { transition: opacity 0.8s var(--ease-emphasized), transform 0.8s var(--ease-emphasized); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6); font-size: var(--fs-small); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; border-radius: var(--radius-pill);
  border: 1px solid transparent; transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
}
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); background: var(--accent); color: var(--ink); }
.btn--ghost { border-color: var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--outline { border-color: currentColor; color: var(--fg); }
.btn--outline:hover { background: var(--fg); color: var(--bg); }
.btn--large { padding: var(--sp-5) var(--sp-8); font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* .btn's own transition shorthand (for hover) would otherwise silently replace
   .reveal's (same `transition` property, higher specificity here wins): buttons
   fade in place on reveal instead of sliding, so the fast hover-lift stays fast. */
.js .btn.reveal { transform: none; }
.btn.reveal { transition: opacity 0.8s var(--ease-emphasized), transform var(--dur-fast) var(--ease-standard), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--sp-5) 0; transition: background var(--dur-normal) var(--ease-standard), padding var(--dur-normal) var(--ease-standard), backdrop-filter var(--dur-normal);
}
.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: var(--sp-3) 0; border-bottom: 1px solid rgba(245,245,247,0.08);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); color: var(--paper); }

.wordmark { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1; display: flex; flex-direction: column; }
.wordmark span { font-family: var(--font-body); font-size: 0.55rem; font-weight: 600; letter-spacing: 0.22em; color: var(--lilac-soft); margin-top: 2px; }

.nav-desktop { display: flex; gap: var(--sp-6); }
.nav-desktop a { font-size: var(--fs-small); font-weight: 500; position: relative; padding: var(--sp-1) 0; }
.nav-desktop a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transition: transform var(--dur-normal) var(--ease-emphasized); }
.nav-desktop a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: var(--sp-5); }
.tel-inline { font-size: var(--fs-small); font-weight: 600; }
.menu-toggle { display: none; color: var(--paper); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--sp-7);
  padding: var(--sp-8) var(--gutter);
  transform: translateY(-100%); transition: transform var(--dur-slow) var(--ease-emphasized);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav nav { display: flex; flex-direction: column; gap: var(--sp-5); }
.mobile-nav nav a { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); }
.menu-close { position: absolute; top: var(--sp-5); right: var(--gutter); color: var(--paper); }

/* ---------- Cursor ---------- */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference; pointer-events: none; z-index: 999; opacity: 0;
  transform: translate3d(-50%, -50%, 0); transition: width var(--dur-fast) var(--ease-standard), height var(--dur-fast) var(--ease-standard), opacity var(--dur-fast);
}
body.has-custom-cursor { cursor: none; }
body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }
.cursor-dot.is-hover { width: 44px; height: 44px; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: var(--sp-11); overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center 30%;
  filter: grayscale(0.1) contrast(1.05);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 900px 480px at 32% 34%, rgba(11,11,12,0.6) 0%, rgba(11,11,12,0.32) 60%, transparent 100%),
    linear-gradient(180deg, rgba(11,11,12,0.72) 0%, rgba(11,11,12,0.78) 45%, rgba(11,11,12,0.95) 100%);
}
.hero-motion { position: absolute; inset: 0; z-index: 1; opacity: 0.18; }
.hero-svg { width: 100%; height: 100%; }
.strand { fill: none; stroke-width: 1.4; opacity: 0.55; }
.strand-1 { stroke: var(--lilac-soft); }
.strand-2 { stroke: var(--silver-soft); }
.strand-3 { stroke: rgba(245,245,247,0.35); }
.ring { fill: none; stroke: var(--lilac-soft); stroke-width: 1; opacity: 0.4; }
.strand, .ring { stroke-dasharray: 8 6; animation: drift 22s linear infinite; }
.strand-2 { animation-duration: 28s; animation-direction: reverse; }
.strand-3 { animation-duration: 34s; }
.ring-1 { animation: spin 40s linear infinite; }
.ring-2 { animation: spin 55s linear infinite reverse; }
@keyframes drift { to { stroke-dashoffset: -400; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .strand, .ring, .ring-1, .ring-2 { animation: none; }
}

.hero-content { position: relative; z-index: 2; }
.hero-content .eyebrow, .hero-title .line, .hero-sub { text-shadow: 0 2px 28px rgba(0,0,0,0.55); }
.hero-title { display: flex; flex-direction: column; }
.hero-title .line { font-size: var(--fs-display); font-family: var(--font-display); font-weight: 600; line-height: 0.98; letter-spacing: -0.02em; }
.hero-sub { font-size: var(--fs-lead); color: var(--muted); margin: var(--sp-6) 0 var(--sp-7); max-width: 42ch; }
.hero-actions { display: flex; gap: var(--sp-5); flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: var(--sp-6); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); z-index: 2;
}
.scroll-cue-ring { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--accent); position: relative; }
.scroll-cue-ring::after { content:""; position:absolute; inset:3px; border-radius:50%; background:var(--accent); animation: pulse 2s var(--ease-standard) infinite; }
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Pillars (Concept) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-7); margin-top: var(--sp-9); }
.pillar { border-top: 1px solid var(--border); padding-top: var(--sp-5); }
.pillar svg { color: var(--accent); margin-bottom: var(--sp-3); }
.pillar p { color: var(--muted); margin: 0 0 var(--sp-4); }

/* ---------- Media placeholder ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  display: flex; align-items: flex-end; margin: 0;
  background: linear-gradient(150deg, var(--surface) 0%, var(--bg) 60%);
}
.media::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 20%, rgba(185,169,232,0.35), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(199,200,209,0.3), transparent 55%);
  mix-blend-mode: screen;
}
.media[data-tone="lilac"]::before { background-image: radial-gradient(circle at 30% 25%, rgba(185,169,232,0.55), transparent 60%), radial-gradient(circle at 75% 80%, rgba(91,74,153,0.5), transparent 60%); }
.media[data-tone="silver"]::before { background-image: radial-gradient(circle at 25% 30%, rgba(199,200,209,0.5), transparent 60%), radial-gradient(circle at 80% 75%, rgba(107,107,118,0.4), transparent 60%); }
.media[data-tone="mono"]::before { background-image: radial-gradient(circle at 30% 30%, rgba(245,245,247,0.25), transparent 60%); }
.media::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M-10 90 C 30 60 60 110 100 70 S 160 40 190 60' fill='none' stroke='white' stroke-width='0.6' opacity='0.35'/%3E%3Cpath d='M-10 40 C 40 20 60 70 110 30' fill='none' stroke='white' stroke-width='0.6' opacity='0.25'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.media--portrait { aspect-ratio: 3 / 4; width: 260px; flex: 0 0 auto; }
.media--square { aspect-ratio: 1 / 1; }
.media--landscape { aspect-ratio: 4 / 3; width: min(70vw, 480px); flex: 0 0 auto; }
.media--wide { aspect-ratio: 5 / 4; width: 100%; }
.media-mark {
  position: absolute; top: var(--sp-4); left: var(--sp-4); z-index: 2;
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,245,247,0.75);
  background: rgba(11,11,12,0.35); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.media figcaption {
  position: relative; z-index: 2; padding: var(--sp-4); font-family: var(--font-display);
  font-size: 1.1rem; color: #fff;
}
.media:hover { transform: scale(1.015); }
.media { transition: transform var(--dur-normal) var(--ease-emphasized); }

/* Slots populated with a real (or AI-generated) photo: let it read clearly,
   dial the synthetic placeholder texture down to a faint unifying grade instead of hiding it outright. */
.media--photo { background-size: cover; background-position: center; }
.media--photo::before { opacity: 0.14; mix-blend-mode: multiply; }
.media--photo::after { opacity: 0.12; }
.media-mark--ai {
  background: rgba(11,11,12,0.55);
}

/* ---------- Hair strip ---------- */
.strip { margin-top: var(--sp-9); }
.strip-track {
  display: flex; gap: var(--sp-5); overflow-x: auto; padding: 0 var(--gutter) var(--sp-5);
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.strip-track .media { scroll-snap-align: start; }

/* ---------- Split layout ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-9); align-items: center; }
.split--reverse .split-grid { direction: rtl; }
.split--reverse .split-grid > * { direction: ltr; }
.split-text .lead svg { flex-shrink: 0; color: var(--accent); }

/* ---------- Transformations slider ---------- */
.ba-slider { position: relative; max-width: 780px; aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; margin-top: var(--sp-8); }
.ba-media { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: var(--sp-5); }
.ba-label { font-family: var(--font-display); font-size: 1.25rem; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; }
.ba-after { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba-divider::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%); box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}
.ba-divider::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border: 1.5px solid var(--ink);
  border-right: none; border-top: none; transform: translate(-70%, -50%) rotate(45deg); pointer-events: none;
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible ~ .ba-divider { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 50%; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); margin-top: var(--sp-8); }
.team-card h3 { font-size: 1.1rem; }

/* ---------- Gallery ---------- */
.gallery-pin { overflow-x: auto; overflow-y: hidden; margin-top: var(--sp-9); scrollbar-width: thin; }
.gallery-track { display: flex; gap: var(--sp-6); width: max-content; padding: 0 var(--gutter) var(--sp-5); will-change: transform; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-top: var(--sp-8); }
.contact-item {
  display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); border: 1px solid var(--border);
  border-radius: var(--radius-md); transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-standard);
  font-weight: 600;
}
.contact-item svg { color: var(--accent); }
.contact-item:hover { border-color: var(--fg); transform: translateY(-3px); }

/* ---------- Map ---------- */
.map-embed { position: relative; width: 100%; aspect-ratio: 5 / 4; border-radius: var(--radius-md); overflow: hidden; filter: grayscale(0.3) contrast(1.05); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Booking ---------- */
.booking-section { text-align: center; }
.booking-content { display: flex; flex-direction: column; align-items: center; }
.booking-actions { display: flex; gap: var(--sp-5); flex-wrap: wrap; justify-content: center; margin-top: var(--sp-6); }

/* ---------- Footer ---------- */
.site-footer { padding: var(--sp-11) 0 var(--sp-6); background: var(--bg); color: var(--fg); position: relative; }
.footer-statement { font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 6rem); line-height: 0.98; margin: 0 0 var(--sp-10); }
.footer-grid { display: flex; justify-content: space-between; gap: var(--sp-8); padding-bottom: var(--sp-8); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.footer-nav { display: flex; flex-direction: column; gap: var(--sp-3); font-size: var(--fs-small); }
.footer-contact { display: flex; flex-direction: column; gap: var(--sp-3); font-size: var(--fs-small); color: var(--muted); }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: var(--sp-2); }
.footer-contact svg { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--sp-4); padding-top: var(--sp-6); font-size: var(--fs-small); color: var(--muted); flex-wrap: wrap; }
.disclaimer { font-style: italic; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr; gap: var(--sp-8); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .split--reverse .split-grid { direction: ltr; }
  .split--reverse .media { order: -1; }
}

@media (max-width: 860px) {
  .nav-desktop, .header-cta .tel-inline { display: none; }
  .menu-toggle { display: block; }
  .header-cta .btn { padding: var(--sp-3) var(--sp-5); }
}

@media (max-width: 620px) {
  :root { --section-pad: 72px; }
  .hero { padding-top: 108px; min-height: 100svh; align-items: flex-start; }
  .hero-actions, .booking-actions { flex-direction: column; align-items: stretch; }
  .footer-grid { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .media--portrait { width: 200px; }
  .cursor-dot { display: none; }
}

@media (hover: none) and (pointer: coarse) {
  .cursor-dot { display: none; }
}
