/* ==========================================================================
   Dr Ahmed Samman — Bespoke Cosmetic Dentistry
   Palette and type follow the "Website theme details" brief:
   black · taupe · greige · off-white / Playfair Display + Montserrat
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --black: #070707;
  --ink: #151413;
  --ink-2: #3b3732;
  --muted: #6c645c;
  --taupe: #afa499;
  --greige: #d4ccc2;
  --sand: #e8e3dc;
  --cream: #f3f2ee;
  --paper: #f9f8f6;
  --white: #fff;
  --muted-light: #aba297;
  --line: rgba(21, 20, 19, .13);
  --line-light: rgba(255, 255, 255, .15);

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 12vw, 176px);
  --nav-h: 72px;

  /* Hero entrance waits for the intro on first visit */
  --intro: 2.05s;
  --intro-media: 1.4s;
}
.no-intro { --intro: .15s; --intro-media: 0s; }
@media (min-width: 900px) { :root { --nav-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) - 1px);
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
.is-locked, .is-locked body, .is-intro body { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--cream); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 300;
  padding: 10px 18px; background: var(--ink); color: var(--white);
  font-size: .8rem; transform: translateY(-200%); transition: transform .3s;
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }

.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } .show-sm { display: none; } }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.5rem + 2.9vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.65; color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  font-size: .68rem; font-weight: 500; line-height: 1.3;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__num { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.eyebrow__num::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .45; }
.eyebrow--light { color: var(--muted-light); }
.eyebrow--light .eyebrow__num { color: var(--white); }

.section-head { display: grid; gap: 20px; }
.section-head .h2 { margin: 0; }
.section-head__text { display: grid; gap: 16px; justify-items: start; max-width: 54ch; }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .lead { max-width: 46ch; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; column-gap: clamp(40px, 6vw, 120px); }
}

/* ---------- Icons & buttons ---------- */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }

.btn {
  --bg: var(--ink); --fg: var(--white); --bd: var(--ink); --hover-bg: var(--taupe); --hover-fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 28px;
  border: 1px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: .7rem; font-weight: 600; line-height: 1; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  transition: color .45s var(--ease-out), border-color .45s, background-color .45s, translate .45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--hover-bg); transform: translateY(102%);
  transition: transform .6s var(--ease-out);
}
.btn .i { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
@media (hover: hover) {
  .btn:hover { color: var(--hover-fg); border-color: var(--hover-bg); }
  .btn:hover::before { transform: none; }
  .btn:hover .i { transform: translateX(4px); }
}
.btn--light { --bg: var(--white); --fg: var(--ink); --bd: var(--white); --hover-bg: var(--taupe); --hover-fg: var(--ink); }
.btn--ghost-light { --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, .45); --hover-bg: var(--white); --hover-fg: var(--ink); }
.btn--dark { --bg: var(--ink); --fg: var(--white); --bd: var(--ink); --hover-bg: var(--taupe); --hover-fg: var(--ink); }
.btn--outline-dark { --bg: transparent; --fg: var(--ink); --bd: rgba(21, 20, 19, .35); --hover-bg: var(--ink); --hover-fg: var(--white); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .62rem; gap: 10px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; padding-block: 6px;
  font-size: .76rem; font-weight: 500; letter-spacing: .03em; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-arrow .i { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
@media (hover: hover) {
  .link-arrow:hover { background-size: 100% 1px; }
  .link-arrow:hover .i { transform: translateX(4px); }
}

.round-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  transition: background-color .35s, color .35s, border-color .35s, opacity .3s;
}
.round-btn .i { width: 18px; height: 18px; }
.round-btn--light { border-color: rgba(255, 255, 255, .28); color: var(--white); }
@media (hover: hover) {
  .round-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .round-btn--light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
}
.round-btn:disabled { opacity: .28; pointer-events: none; }

.sig { width: auto; }
.sig--dark { filter: brightness(0); }

/* Film grain for dark, photographic sections */
.grain {
  position: absolute; inset: -60%; z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, -4%); }
  80% { transform: translate(4%, 2%); }
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--black); color: var(--white);
  animation: intro-out 1s var(--ease-in-out) 1.75s forwards;
}
.no-intro .intro { display: none; }
.intro__ink {
  width: min(70vw, 440px);
  -webkit-mask-image: linear-gradient(90deg, #000 46%, transparent 54%);
  mask-image: linear-gradient(90deg, #000 46%, transparent 54%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  animation: ink 1.45s cubic-bezier(.45, .05, .35, 1) .2s forwards;
}
.intro__ink .sig { width: 100%; height: auto; }
.intro__tag {
  font-size: .62rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--taupe);
  opacity: 0; animation: fade-up .9s var(--ease-out) .8s forwards;
}
@keyframes ink { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--taupe); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h); color: var(--white);
  transition: transform .6s var(--ease-out), color .5s;
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(243, 242, 238, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .5s;
}
.nav.is-solid { color: var(--ink); }
.nav.is-solid::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-101%); }
.nav.menu-open { color: var(--white); transform: none; }
.nav.menu-open::before { opacity: 0; }

.nav__inner { position: relative; height: 100%; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav__brand { display: flex; align-items: center; gap: 18px; margin-right: auto; }
.nav__brand .sig { height: clamp(24px, 2.4vw, 31px); transition: filter .5s; }
.nav.is-solid .nav__brand .sig { filter: brightness(0); }
.nav.menu-open .nav__brand .sig { filter: none; }
.nav__tagline {
  display: none; max-width: 112px; padding-left: 18px;
  border-left: 1px solid; border-color: color-mix(in srgb, currentColor 30%, transparent);
  font-size: .56rem; font-weight: 500; line-height: 1.55; letter-spacing: .26em; text-transform: uppercase; opacity: .85;
}
.nav__links { display: none; gap: clamp(18px, 1.9vw, 32px); }
.nav__links a { position: relative; padding-block: 8px; font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }

.btn--nav { --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, .5); --hover-bg: var(--white); --hover-fg: var(--ink); }
.nav.is-solid .btn--nav { --bg: var(--ink); --fg: var(--white); --bd: var(--ink); --hover-bg: var(--taupe); --hover-fg: var(--ink); }
.nav.menu-open .btn--nav { opacity: 0; pointer-events: none; }

.nav__toggle { display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; margin-right: -8px; }
.nav__toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 1180px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}
@media (min-width: 1380px) { .nav__tagline { display: block; } }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: calc(var(--nav-h) + 16px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--black); color: var(--white); overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s; }
.menu__links { display: grid; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 11px 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--serif); font-size: clamp(1.65rem, 6.6vw, 2.6rem); line-height: 1.15;
  opacity: 0; transform: translateY(26px);
  transition: opacity .4s, transform .7s var(--ease-out);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(.28s + var(--i, 0) * .05s); }
.menu__num { font-family: var(--sans); font-size: .6rem; font-weight: 500; letter-spacing: .2em; color: var(--taupe); }
.menu__foot { display: grid; gap: 18px; opacity: 0; transition: opacity .5s; }
.menu.is-open .menu__foot { opacity: 1; transition-delay: .6s; }
.menu__meta { text-align: center; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-light); }
.menu__contact { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu__phone { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: .9rem; font-weight: 500; letter-spacing: .06em; color: var(--white); }
.menu__phone .i { width: 18px; height: 18px; color: var(--taupe); }
.menu__social { display: flex; gap: 10px; }
@media (min-width: 1180px) { .menu { display: none; } }

/* ==========================================================================
   01 Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100vh; min-height: 100svh;
  background: var(--black); color: var(--white); overflow: hidden;
}
.hero__media { position: absolute; inset: 0 0 auto 0; z-index: -1; height: 68%; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 7, .55) 0%, rgba(7, 7, 7, 0) 24%, rgba(7, 7, 7, 0) 52%, var(--black) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 44px; }
.hero__title {
  margin-bottom: clamp(18px, 2.4vw, 30px);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.65rem, 1.35rem + 5.6vw, 6.4rem); line-height: 1.02; letter-spacing: -.015em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero__title .line > span { display: block; }
.hero__title em { color: var(--greige); }
.hero__lead { max-width: 31ch; margin-bottom: clamp(26px, 3.4vw, 40px); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, .78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta, .hero__scroll { display: none; }

@media (max-width: 479px) {
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (min-width: 900px) {
  .hero { justify-content: center; }
  .hero__media { inset: 0 0 0 auto; width: 63%; height: 100%; }
  .hero__media img { object-position: 46% 50%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--black) 0%, rgba(7, 7, 7, .72) 16%, rgba(7, 7, 7, 0) 52%),
      linear-gradient(0deg, rgba(7, 7, 7, .85) 0%, rgba(7, 7, 7, 0) 30%),
      linear-gradient(180deg, rgba(7, 7, 7, .55) 0%, rgba(7, 7, 7, 0) 22%);
  }
  .hero__inner { padding-block: calc(var(--nav-h) + 40px) 150px; }
  .hero__meta {
    position: absolute; left: 0; right: 0; bottom: 34px; z-index: 2; margin-inline: auto;
    display: flex; justify-content: space-between; align-items: flex-end;
  }
  .hero__sign strong { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--white); }
  .hero__sign span { font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted-light); }
  .hero__values { text-align: right; font-size: .58rem; line-height: 2.1; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
  .hero__scroll {
    display: block; position: absolute; left: 50%; bottom: 30px; z-index: 2;
    width: 1px; height: 56px; overflow: hidden; background: rgba(255, 255, 255, .2); transform: translateX(-50%);
  }
  .hero__scroll span { position: absolute; inset: 0; background: var(--white); animation: scroll-cue 2.2s var(--ease-in-out) infinite; }
}
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Hero entrance (CSS-driven so it never depends on the script) */
.js .hero__media img { animation: hero-zoom 2.8s var(--ease-out) var(--intro-media) both; }
.js .hero__title .line > span { animation: line-up 1.25s var(--ease-out) both; }
.js .hero__title .line:nth-child(1) > span { animation-delay: calc(var(--intro) + .05s); }
.js .hero__title .line:nth-child(2) > span { animation-delay: calc(var(--intro) + .15s); }
.js .hero__title .line:nth-child(3) > span { animation-delay: calc(var(--intro) + .25s); }
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions, .js .hero__meta { animation: fade-up 1.1s var(--ease-out) both; }
.js .hero__eyebrow { animation-delay: var(--intro); }
.js .hero__lead { animation-delay: calc(var(--intro) + .45s); }
.js .hero__actions { animation-delay: calc(var(--intro) + .6s); }
.js .hero__meta { animation-delay: calc(var(--intro) + .85s); }
@keyframes hero-zoom { from { opacity: 0; transform: scale(1.16); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translate3d(0, 106%, 0); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { position: relative; overflow: hidden; padding-block: clamp(24px, 4vw, 52px); background: var(--cream); border-bottom: 1px solid var(--line); }
.marquee__track {
  display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); width: max-content;
  font-family: var(--serif); font-size: clamp(2.5rem, 1.5rem + 4.6vw, 6.4rem); line-height: 1.1;
  color: var(--ink); white-space: nowrap; will-change: transform;
}
.marquee__track i { font-style: normal; font-size: .32em; color: var(--taupe); }
.marquee__track .is-outline { color: transparent; -webkit-text-stroke: 1px var(--ink); }

/* ==========================================================================
   02 Philosophy
   ========================================================================== */
.philosophy { background: var(--cream); }
.philosophy__grid { display: grid; gap: clamp(44px, 7vw, 120px); align-items: center; }
.frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; transform: scale(1.12); will-change: transform; }
.philosophy__media figcaption { max-width: 34ch; margin-top: 16px; font-size: .68rem; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.philosophy__body .h2 { margin-bottom: clamp(24px, 3vw, 36px); }
.philosophy__body p + p { margin-top: 18px; }
.philosophy__quote {
  margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(28px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 1.1rem + 1.25vw, 2.15rem); line-height: 1.32;
  color: var(--ink);
}
.philosophy__sign { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 30px; }
.philosophy__sign .sig { height: 32px; }
.philosophy__sign span { padding-left: 18px; border-left: 1px solid var(--line); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) {
  .philosophy__grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); }
  .frame { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   03 Smile design (digital smile design viewer)
   ========================================================================== */
.smile-design { background: var(--sand); }
.dsd { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(44px, 7vw, 96px); }
@media (min-width: 1000px) { .dsd { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); } }

.dsd__stage {
  position: relative; overflow: hidden; aspect-ratio: 1336 / 820;
  margin-inline: calc(var(--gutter) * -1);
  background: #2a1c18; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  --sw: 4.2;
}
@media (min-width: 640px) { .dsd__stage { margin-inline: 0; border-radius: 2px; --sw: 3; } }
@media (min-width: 1200px) { .dsd__stage { --sw: 2.4; } }
.dsd__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dsd__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 42%, transparent 55%, rgba(0, 0, 0, .38));
}
.dsd__scan {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, 0) 58%, transparent 100%);
}
.dsd__scan.is-run { animation: scan 1.15s var(--ease-in-out); }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.dsd__svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .45)); }
.dsd__svg path, .dsd__svg circle { fill: none; stroke: #fff; stroke-width: var(--sw); stroke-linecap: round; stroke-linejoin: round; }
.dsd__svg .is-strong { stroke-width: calc(var(--sw) * 1.25); }
.dsd__svg .guide { stroke-opacity: .45; }
.dsd__svg .pop { fill: #fff; stroke: none; }
.dsd__svg .zone { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .75); stroke-width: calc(var(--sw) * .75); }

.dsd__layer { opacity: 0; transition: opacity .35s; }
.dsd__layer.is-active { opacity: 1; }
.dsd__layer .draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.dsd__layer.is-active .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease-out) var(--d, 0s); }
.dsd__layer .pop { transform: scale(0); transform-box: fill-box; transform-origin: center; }
.dsd__layer.is-active .pop { transform: none; transition: transform .6s var(--ease-out) var(--d, 0s); }
.dsd__layer .zone { opacity: 0; }
.dsd__layer.is-active .zone { opacity: 1; transition: opacity .8s ease var(--d, 0s); }

.dsd__labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s; }
.dsd__labels.is-active { opacity: 1; transition: opacity .6s .55s; }
.dsd__labels span {
  position: absolute; left: var(--x); top: var(--y); transform: translate(var(--ax, 0%), -50%);
  font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .7), 0 0 2px rgba(0, 0, 0, .5);
}
.dsd__labels--teeth span { --ax: -50%; font-size: .62rem; letter-spacing: .06em; }
@media (max-width: 767px) {
  .dsd__labels:not(.dsd__labels--teeth) { display: none; }
  .dsd__labels--teeth span { font-size: .5rem; }
}

/* Shade guide */
.dsd__shades {
  --tw: 22px; --th: 30px; --tg: 4px; --pad: 6px; --step: calc(var(--tw) + var(--tg));
  position: absolute; left: 50%; bottom: 15%; z-index: 3;
  display: flex; gap: var(--tg); padding: var(--pad);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px;
  background: rgba(14, 10, 9, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translate(-50%, 10px); opacity: 0; transition: opacity .4s, transform .6s var(--ease-out);
}
@media (min-width: 640px) { .dsd__shades { --tw: 30px; --th: 40px; --tg: 6px; --pad: 8px; bottom: 8%; } }
.dsd__shades.is-active { opacity: 1; transform: translate(-50%, 0); transition-delay: .2s; }
.dsd__shades span {
  display: grid; place-items: end center; width: var(--tw); height: var(--th); padding-bottom: 3px;
  border-radius: 9px 9px 12px 12px / 7px 7px 14px 14px; background: var(--c);
  font-size: .46rem; font-weight: 600; letter-spacing: .04em; color: #6d6156;
  transition: transform .5s var(--ease-out);
}
@media (min-width: 640px) { .dsd__shades span { font-size: .52rem; padding-bottom: 4px; } }
.dsd__shade-cursor {
  position: absolute; left: calc(var(--pad) - 3px); top: calc(var(--pad) - 3px);
  width: calc(var(--tw) + 6px); height: calc(var(--th) + 6px);
  border: 1.5px solid #fff; border-radius: 11px 11px 14px 14px / 9px 9px 16px 16px; opacity: 0;
}
.dsd__shades.is-active .dsd__shade-cursor { animation: shade-seek 2.3s var(--ease-in-out) .5s both; }
.dsd__shades.is-active span:nth-child(2) { animation: shade-lift .6s var(--ease-out) 2.7s both; }
@keyframes shade-seek {
  0% { opacity: 0; transform: translateX(calc(var(--step) * 6)); }
  12% { opacity: 1; transform: translateX(calc(var(--step) * 6)); }
  45% { transform: translateX(0); }
  72% { transform: translateX(calc(var(--step) * 2)); }
  100% { opacity: 1; transform: translateX(var(--step)); }
}
@keyframes shade-lift { to { transform: translateY(-5px); } }

/* Texture loupe */
.dsd__loupe {
  --lx: 0px; --ly: 0px;
  position: absolute; left: 0; top: 0; z-index: 4; width: clamp(92px, 17%, 176px); aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .92); border-radius: 50%;
  background-color: #2a1c18; background-image: url("../assets/img/smile-design.webp"); background-repeat: no-repeat;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(0, 0, 0, .25);
  transform: translate3d(var(--lx), var(--ly), 0) translate(-50%, -50%) scale(0);
  opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease-out), opacity .3s;
}
.dsd__loupe.is-active { opacity: 1; transform: translate3d(var(--lx), var(--ly), 0) translate(-50%, -50%) scale(1); transition: transform .12s linear, opacity .3s; }
.dsd__loupe span {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font-size: .56rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}

/* Heads-up display */
.dsd__hud { position: absolute; inset: 0; z-index: 5; pointer-events: none; color: rgba(255, 255, 255, .9); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; }
.dsd__hud-title { position: absolute; left: 14px; top: 12px; display: flex; align-items: center; gap: 8px; }
.dsd__hud-title i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.6s infinite; }
.dsd__hud-count { position: absolute; right: 14px; top: 12px; }
.dsd__hud-count b { font-weight: 600; }
.dsd__hud-legend { position: absolute; left: 14px; right: 14px; bottom: 10px; font-size: .6rem; letter-spacing: .1em; text-transform: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
@media (min-width: 640px) {
  .dsd__hud { font-size: .6rem; }
  .dsd__hud-title { left: 20px; top: 18px; }
  .dsd__hud-count { right: 20px; top: 18px; }
  .dsd__hud-legend { left: 20px; bottom: 16px; font-size: .66rem; }
}
@keyframes blink { 50% { opacity: .2; } }

/* Detail list */
.dsd__title { margin-bottom: 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.15; color: var(--ink); }
.dsd__item { position: relative; border-top: 1px solid var(--line); }
.dsd__item:last-child { border-bottom: 1px solid var(--line); }
.dsd__btn { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 58px; padding: 14px 0; text-align: left; }
.dsd__num { width: 26px; font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--muted); }
.dsd__name { flex: 1; font-size: .74rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.dsd__item.is-active .dsd__name { color: var(--ink); }
.dsd__plus { position: relative; width: 12px; height: 12px; color: var(--ink); }
.dsd__plus::before, .dsd__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .5s var(--ease-out); }
.dsd__plus::after { transform: rotate(90deg); }
.dsd__item.is-active .dsd__plus::after { transform: rotate(0deg); }
.dsd__desc > div { overflow: hidden; }
.dsd__desc p { padding: 0 0 20px 42px; font-size: .95rem; }
.js .dsd__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.js .dsd__item.is-active .dsd__desc { grid-template-rows: 1fr; }
.dsd__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.dsd__bar span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.dsd__item.is-active .dsd__bar span { transform: none; }
.dsd.is-auto .dsd__item.is-active .dsd__bar span { animation: dsd-progress 6.5s linear both; }
.dsd.is-auto.is-paused .dsd__item.is-active .dsd__bar span { animation-play-state: paused; }
@keyframes dsd-progress { from { transform: scaleX(0); } to { transform: none; } }
@media (hover: hover) { .dsd__btn:hover .dsd__name { color: var(--ink); } }

.outro { display: grid; justify-items: center; gap: 32px; margin-top: clamp(72px, 10vw, 140px); text-align: center; }
.outro__line { max-width: 30ch; font-family: var(--serif); font-size: clamp(1.75rem, 1.25rem + 2.2vw, 3.2rem); line-height: 1.16; color: var(--ink); text-wrap: balance; }
.outro__line > span, .outro__line > em { display: block; text-wrap: balance; }
.outro__line em { color: var(--muted); }

/* ==========================================================================
   04 The Bespoke Smile
   ========================================================================== */
.bespoke { background: #0d0b0a; color: var(--muted-light); overflow: hidden; }
.bespoke .h2 { color: var(--white); }
.bespoke .lead { color: var(--muted-light); }
.bespoke__stage { position: relative; margin-top: clamp(36px, 6vw, 72px); }
.bespoke__img { position: relative; aspect-ratio: 1024 / 640; margin-inline: calc(var(--gutter) * -1); }
.bespoke__img img { width: 100%; height: 100%; object-fit: cover; }
.bespoke__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #0d0b0a 0%, rgba(13, 11, 10, 0) 9%, rgba(13, 11, 10, 0) 91%, #0d0b0a 100%),
    linear-gradient(180deg, #0d0b0a 0%, rgba(13, 11, 10, 0) 14%, rgba(13, 11, 10, 0) 84%, #0d0b0a 100%);
}
.bespoke__pt {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  display: grid; place-items: center; font-size: .66rem; font-weight: 600; font-style: normal;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  transition: transform .6s var(--ease-out) var(--d, 0s), background-color .3s;
}
.bespoke__pt::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); animation: pulse 2.6s var(--ease-out) infinite; }
.bespoke__pt.is-hot { background: var(--taupe); }
.js .bespoke__pt { transform: scale(0); }
.js .is-in .bespoke__pt { transform: none; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.bespoke__lines { display: none; }

.bespoke__labels { display: grid; gap: 22px 28px; margin-top: 32px; }
@media (min-width: 560px) { .bespoke__labels { grid-template-columns: 1fr 1fr; } }
.bespoke__label { position: relative; display: grid; gap: 4px; padding-left: 40px; transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s); }
.bespoke__label strong { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.bespoke__label > span:last-child { font-size: .88rem; line-height: 1.6; }
.bespoke__n { position: absolute; left: 0; top: -3px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; font-size: .6rem; font-weight: 600; color: var(--white); }
.js .bespoke__label { opacity: 0; transform: translateY(14px); }
.js .is-in .bespoke__label { opacity: 1; transform: none; }

@media (min-width: 640px) { .bespoke__img { margin-inline: 0; } }
@media (min-width: 1000px) {
  .bespoke__stage { aspect-ratio: 1600 / 640; }
  .bespoke__img { position: absolute; top: 0; bottom: 0; left: 18%; width: 64%; aspect-ratio: auto; }
  .bespoke__pt { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }
  .bespoke__pt b { display: none; }
  .bespoke__lines { display: block; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
  .bespoke__lines path { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.4; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  .is-in .bespoke__lines path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-out) var(--d, 0s); }
  .bespoke__labels { position: absolute; inset: 0; display: block; margin: 0; }
  .bespoke__label { position: absolute; top: var(--y); width: 16%; padding-left: 0; margin-top: -11px; }
  .bespoke__label.is-left { left: 0; text-align: right; }
  .bespoke__label.is-right { right: 0; }
  .bespoke__n { display: none; }
  .bespoke__label > span:last-child { font-size: .8rem; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .bespoke__label > span:last-child { display: none; }
}

/* ==========================================================================
   05 Journey
   ========================================================================== */
.journey { background: var(--cream); }
.journey__wrap { position: relative; margin-top: clamp(48px, 6vw, 88px); --p: 0; }
.journey__steps { display: grid; gap: 44px; padding-left: 44px; }
.journey__track { position: absolute; left: 7px; top: 8px; width: 1px; height: calc(100% - 16px); background: var(--line); }
.journey__track span { display: block; width: 100%; height: 100%; background: var(--ink); transform-origin: top; transform: scaleY(var(--p)); }
.step { position: relative; }
.step__node {
  position: absolute; left: -44px; top: 4px; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--cream);
  transition: background-color .5s, transform .5s var(--ease-out);
}
.step.is-active .step__node { background: var(--ink); transform: scale(1.1); }
.step__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; max-width: 360px; }
.step__num { font-family: var(--serif); font-size: clamp(2.2rem, 1.7rem + 1.4vw, 3rem); line-height: 1; color: var(--ink); opacity: .22; transition: opacity .6s; }
.step.is-active .step__num { opacity: 1; }
.step__icon { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.step__icon path { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js .step__icon path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out) .1s; }
.js .step.is-active .step__icon path { stroke-dashoffset: 0; }
.step__title { margin-bottom: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.step p { max-width: 36ch; font-size: .93rem; line-height: 1.7; }
@media (min-width: 1000px) {
  .journey__steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); padding-left: 0; }
  .journey__track { left: 0; right: 0; top: 7px; width: auto; height: 1px; }
  .journey__track span { transform-origin: left; transform: scaleX(var(--p)); }
  .step { padding-top: 46px; }
  .step__node { left: 0; top: 0; }
  .step p { font-size: .88rem; }
}

/* ==========================================================================
   06 Results
   ========================================================================== */
.results { background: var(--paper); }
.cases { display: grid; gap: clamp(36px, 3vw, 40px); margin-top: clamp(40px, 6vw, 80px); }
@media (min-width: 760px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); } }
.case-card__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.case-card__body { padding-top: 22px; }
.case-card__title { margin-bottom: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--ink); }
.case-card__spec { font-size: .9rem; line-height: 1.6; color: var(--ink); }
.case-card__text { font-size: .9rem; line-height: 1.6; }
.case-card .link-arrow { margin-top: 12px; }
@media (hover: hover) { .case-card__media:hover img { transform: scale(1.06); } }

.strip-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(64px, 8vw, 112px); margin-bottom: 22px; }
.strip-head__title { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.2; color: var(--ink); }
.strip-head__ctrl { display: flex; align-items: center; gap: 8px; }
.strip-head__bar { display: none; width: clamp(80px, 14vw, 200px); height: 1px; margin-right: 16px; overflow: hidden; background: var(--line); }
.strip-head__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--sp, .3)); transition: transform .3s; }
@media (min-width: 640px) { .strip-head__bar { display: block; } }

.strip {
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  display: flex; gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-inline: var(--edge); scroll-padding-inline: var(--edge);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip > li { flex: 0 0 auto; width: min(78vw, 320px); scroll-snap-align: start; }
@media (min-width: 900px) { .strip > li { width: clamp(300px, 29vw, 430px); } }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging .strip__item { pointer-events: none; }
.strip__item { display: block; width: 100%; text-align: left; cursor: inherit; }
.strip__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); -webkit-user-drag: none; transition: transform 1.2s var(--ease-out), filter .6s; }
.strip__item { overflow: hidden; }
.strip__meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.strip__meta em { font-style: normal; font-weight: 400; letter-spacing: .08em; text-transform: none; color: var(--muted); }
@media (hover: hover) { .strip__item:hover img { transform: scale(1.04); } }

/* ==========================================================================
   07 About
   ========================================================================== */
.about { background: var(--sand); }
.about__grid { display: grid; gap: clamp(44px, 6vw, 110px); align-items: center; }
@media (min-width: 1000px) { .about__grid { grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); } }
.about__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  aspect-ratio: 4 / 5; padding: clamp(24px, 3.5vw, 44px);
  background: radial-gradient(90% 70% at 30% 20%, #1d1a17 0%, var(--black) 70%);
  color: var(--white);
}
.about__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.about__mono {
  position: absolute; right: -8%; bottom: 4%; z-index: -1; pointer-events: none;
  font-family: var(--serif); font-size: clamp(13rem, 46vw, 26rem); line-height: .8; letter-spacing: -.07em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1);
}
.about__kicker { font-size: .6rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--taupe); }
.about__ink { width: 86%; }
@media (min-width: 640px) and (max-width: 999px) {
  .about__card { aspect-ratio: 16 / 10; }
  .about__ink { width: 62%; }
}
.about__ink .sig { width: 100%; height: auto; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); margin: 0; }
.about__stats dt { font-family: var(--serif); font-size: clamp(2.4rem, 2rem + 1.6vw, 3.4rem); line-height: 1; color: var(--white); }
.about__stats dd { margin-top: 8px; font-size: .6rem; line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-light); }
.about__body .h2 { margin-bottom: 26px; }
.about__name { font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem); line-height: 1.2; color: var(--ink); }
.about__role { margin-bottom: 22px; font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.about__body > p + p { margin-top: 14px; }
.about__quote { margin: 32px 0 28px; padding-left: 22px; border-left: 1px solid var(--ink); }
.about__quote p { font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
.about__quote .about__quote-big { margin-top: 6px; font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); line-height: 1.3; letter-spacing: 0; color: var(--ink); }
.about__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.about__facts li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* ==========================================================================
   08 Technology + Art
   ========================================================================== */
.tech { background: var(--black); color: var(--muted-light); }
.tech .h2 { color: var(--white); }
.tech__head { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .tech__head { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 120px); } }
.tech__lines li { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .75vw, 1.6rem); line-height: 1.5; color: var(--white); }
.tech__lines em { color: var(--taupe); }
.tech__cards { display: grid; gap: 44px; margin-top: clamp(48px, 6vw, 88px); }
@media (min-width: 640px) and (max-width: 999px) {
  .tech-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 32px; align-items: center; }
  .tech-card__art { grid-row: 1 / span 2; margin-bottom: 0; }
  .tech-card__title { align-self: end; }
  .tech-card p { align-self: start; }
}
@media (min-width: 1000px) { .tech__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); } }
.tech-card__art {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 3 / 2; margin-bottom: 22px;
  border: 1px solid var(--line-light);
  background: radial-gradient(110% 100% at 50% 0%, #1c1a18 0%, #0c0b0a 70%);
}
.tech-card__title { margin-bottom: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--white); }
.tech-card p { font-size: .92rem; }

/* Digital design art */
.art-digital svg { width: 100%; height: 100%; }
.art-grid path { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.art-teeth path, .art-guides path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.art-teeth path { stroke: var(--greige); stroke-width: 1.3; }
.art-guides path { stroke: var(--taupe); stroke-width: 1; }
.art-cross { fill: none; stroke: #fff; stroke-width: 1; opacity: 0; transform: translate(97px, 140px); }
.js .art-teeth path, .js .art-guides path { stroke-dashoffset: 1; }
.is-playing .art-teeth path, .is-playing .art-guides path { animation: art-draw 7s var(--ease-out) var(--d, 0s) infinite; }
.is-playing .art-cross { animation: art-cross 7s var(--ease-in-out) 1.2s infinite; }
@keyframes art-draw {
  0% { stroke-dashoffset: 1; opacity: 1; }
  28%, 82% { stroke-dashoffset: 0; opacity: 1; }
  92%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes art-cross {
  0% { opacity: 0; transform: translate(97px, 140px); }
  8% { opacity: 1; }
  25% { transform: translate(160px, 149px); }
  45% { transform: translate(200px, 149px); }
  65% { transform: translate(263px, 140px); }
  75% { opacity: 1; transform: translate(180px, 50px); }
  85%, 100% { opacity: 0; transform: translate(180px, 50px); }
}

/* 3D arch */
.art-arch canvas { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.art-arch canvas:active { cursor: grabbing; }
.art-hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: .56rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .35); pointer-events: none; }

/* Ceramic art: the porcelain layers build up one by one, each with its label */
.art-ceramic svg { width: 94%; height: 92%; overflow: visible; }
.art-outline { fill: none; stroke: var(--greige); stroke-width: 1.3; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.art-texture { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: .7; }
.art-labels path { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: .8; }
.art-labels circle { fill: #fff; }
.art-labels text { font-family: var(--sans); font-size: 8.5px; font-weight: 600; letter-spacing: .08em; fill: rgba(255, 255, 255, .8); }
.art-spark { fill: #fff; transform-box: fill-box; transform-origin: center; }
.js .art-outline { stroke-dashoffset: 1; }
.js .art-ceramic .layer, .js .art-ceramic .lbl { opacity: 0; }
.js .art-spark { transform: scale(0); }
.is-playing .art-outline { animation: cer-outline 9s var(--ease-out) infinite; }
.is-playing .layer--dentin, .is-playing .lbl--a { animation: cer-a 9s ease infinite; }
.is-playing .layer--mamelons, .is-playing .lbl--b { animation: cer-b 9s ease infinite; }
.is-playing .layer--incisal, .is-playing .lbl--c { animation: cer-c 9s ease infinite; }
.is-playing .layer--enamel, .is-playing .lbl--d { animation: cer-d 9s ease infinite; }
.is-playing .layer--gloss { animation: cer-e 9s ease infinite; }
.is-playing .art-spark { animation: cer-spark 9s var(--ease-out) infinite; }
@keyframes cer-outline { 0% { stroke-dashoffset: 1; opacity: 1; } 16%, 88% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes cer-a { 0%, 15% { opacity: 0; } 24%, 88% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes cer-b { 0%, 26% { opacity: 0; } 35%, 88% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes cer-c { 0%, 37% { opacity: 0; } 46%, 88% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes cer-d { 0%, 48% { opacity: 0; } 57%, 88% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes cer-e { 0%, 57% { opacity: 0; } 66%, 88% { opacity: .7; } 97%, 100% { opacity: 0; } }
@keyframes cer-spark { 0%, 64% { transform: scale(0) rotate(0); } 70% { transform: scale(1.2) rotate(45deg); } 76%, 88% { transform: scale(1) rotate(45deg); opacity: 1; } 97%, 100% { transform: scale(0) rotate(90deg); opacity: 0; } }

/* ==========================================================================
   09 Treatments
   ========================================================================== */
.treatments { background: var(--cream); }
.treatments__grid { display: grid; gap: clamp(40px, 6vw, 100px); }
.treatments__intro .h2 { margin-bottom: 22px; }
.treatments__intro p { max-width: 38ch; margin-bottom: 30px; }
@media (min-width: 1000px) {
  .treatments__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: start; }
  .treatments__intro { position: sticky; top: calc(var(--nav-h) + 48px); }
}
.treat { border-top: 1px solid var(--line); }
.treat:last-child { border-bottom: 1px solid var(--line); }
.treat__btn { position: relative; display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); width: 100%; min-height: 76px; padding: 18px 0; text-align: left; }
.treat__icon { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s var(--ease-out); }
.treat__name { flex: 1; font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .65vw, 1.55rem); line-height: 1.25; color: var(--ink); transition: transform .6s var(--ease-out); }
.treat__plus { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; transition: background-color .4s, border-color .4s, transform .6s var(--ease-out); }
.treat__plus::before, .treat__plus::after { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 1px; background: var(--ink); transition: transform .5s var(--ease-out), background-color .4s; }
.treat__plus::after { transform: rotate(90deg); }
.treat.is-open .treat__plus { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.treat.is-open .treat__plus::before, .treat.is-open .treat__plus::after { background: var(--white); }
.treat.is-open .treat__plus::after { transform: rotate(0deg); }
.treat__panel > div { overflow: hidden; padding-left: calc(40px + clamp(14px, 2vw, 22px)); }
.treat__panel p { max-width: 46ch; padding-bottom: 12px; font-size: .95rem; }
.treat__panel .link-arrow { margin-bottom: 24px; }
.js .treat__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.js .treat.is-open .treat__panel { grid-template-rows: 1fr; }
@media (hover: hover) {
  .treat__btn:hover .treat__name { transform: translateX(6px); }
  .treat__btn:hover .treat__icon { transform: rotate(-8deg) scale(1.06); }
  .treat__btn:hover .treat__plus { border-color: var(--ink); }
}

/* ==========================================================================
   10 Final CTA
   ========================================================================== */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--black); color: var(--muted-light); }
.cta__media { position: relative; z-index: -1; aspect-ratio: 5 / 4; overflow: hidden; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; transform: scale(1.12); will-change: transform; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 7, .35) 0%, rgba(7, 7, 7, 0) 30%, rgba(7, 7, 7, 0) 55%, var(--black) 100%); }
.cta__inner { position: relative; z-index: 2; display: grid; gap: 48px; margin-top: -64px; padding-bottom: clamp(72px, 10vw, 120px); }
.cta__title { margin-bottom: 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.45rem + 1.9vw, 3.1rem); line-height: 1.1; color: var(--white); text-wrap: balance; }
.cta__title em { color: var(--greige); }
.cta__lead { max-width: 40ch; margin-bottom: 32px; color: rgba(255, 255, 255, .75); }
.cta__info { display: grid; gap: 26px; padding-top: 32px; border-top: 1px solid var(--line-light); }
.cta__loc { display: flex; gap: 14px; align-items: flex-start; }
.cta__loc .i { width: 22px; height: 22px; color: var(--white); }
.cta__loc p { font-size: .7rem; font-weight: 500; line-height: 1.9; letter-spacing: .26em; text-transform: uppercase; color: var(--white); }
.cta__phone { display: inline-flex; align-items: center; gap: 14px; justify-self: start; min-height: 44px; font-size: .78rem; font-weight: 500; letter-spacing: .1em; color: var(--white); transition: color .3s; }
.cta__phone .i { width: 22px; height: 22px; }
@media (hover: hover) { .cta__phone:hover { color: var(--taupe); } }
.cta__social { display: flex; gap: 10px; }
.cta__sign strong { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--white); }
.cta__sign span { font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; }
@media (min-width: 900px) {
  .cta { min-height: min(100svh, 920px); display: flex; align-items: center; }
  .cta__media { position: absolute; inset: 0 auto 0 0; width: 56%; aspect-ratio: auto; }
  .cta__media::after {
    background:
      linear-gradient(90deg, rgba(7, 7, 7, 0) 30%, rgba(7, 7, 7, .55) 62%, var(--black) 97%),
      linear-gradient(0deg, rgba(7, 7, 7, .7) 0%, rgba(7, 7, 7, 0) 35%),
      linear-gradient(180deg, rgba(7, 7, 7, .5) 0%, rgba(7, 7, 7, 0) 25%);
  }
  .cta__inner { grid-template-columns: minmax(0, .78fr) minmax(0, 1.3fr) auto; align-items: center; margin-top: 0; padding-block: clamp(120px, 12vw, 180px); }
  .cta__content { grid-column: 2; }
  .cta__info { grid-column: 3; align-self: center; padding: 8px 0 8px clamp(28px, 3vw, 48px); border-top: 0; border-left: 1px solid var(--line-light); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .cta__inner { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
  .cta__info { grid-column: 2; padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--line-light); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding-block: 44px max(36px, env(safe-area-inset-bottom)); background: #050505; color: var(--muted-light); border-top: 1px solid var(--line-light); }
.footer__inner { display: grid; gap: 26px; justify-items: center; text-align: center; }
.footer__brand .sig { height: 32px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; }
.footer__nav a { padding: 12px 2px; font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; transition: color .3s; }
.footer__bottom { display: grid; gap: 4px; justify-items: center; }
.footer__copy { font-size: .72rem; line-height: 1.7; }
.footer__contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 10px; font-size: .74rem; }
.footer__contact a { display: inline-block; padding-block: 10px; color: var(--white); transition: color .3s; }
@media (hover: hover) { .footer__contact a:hover { color: var(--taupe); } }
@media (hover: hover) { .footer__nav a:hover { color: var(--white); } }
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
  .footer__nav { justify-self: end; }
  .footer__bottom {
    grid-column: 1 / -1; width: 100%; padding-top: 14px; border-top: 1px solid var(--line-light);
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
  }
}

/* ==========================================================================
   Floating WhatsApp, cursor badge
   ========================================================================== */
.fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--white); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(24px) scale(.7); pointer-events: none;
  transition: opacity .4s, transform .6s var(--ease-out), background-color .3s;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .fab:hover { background: var(--taupe); color: var(--ink); } }

.cursor-badge { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-badge {
    display: grid; place-items: center; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%;
    background: rgba(243, 242, 238, .92); color: var(--ink);
    font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    scale: 0; transition: scale .45s var(--ease-out);
  }
  .cursor-badge.is-active { scale: 1; }
}

/* ==========================================================================
   Booking dialog
   ========================================================================== */
.modal {
  width: min(560px, calc(100vw - 24px)); max-width: none; max-height: calc(100svh - 24px);
  padding: 0; border: 0; border-radius: 4px; overflow: auto; overscroll-behavior: contain;
  background: var(--cream); color: var(--ink-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .35);
}
.modal::backdrop { background: rgba(7, 7, 7, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .6s var(--ease-out); }
.modal[open]::backdrop { animation: fade-in .4s ease; }
.modal.is-closing { animation: modal-out .3s ease forwards; }
.modal.is-closing::backdrop { animation: fade-in .3s ease reverse forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__panel { position: relative; padding: clamp(28px, 5vw, 48px); }
.modal__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); transition: background-color .3s; }
@media (hover: hover) { .modal__close:hover { background: var(--sand); } }
.modal .eyebrow { margin-bottom: 16px; }
.modal__title { margin-bottom: 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); line-height: 1.1; color: var(--ink); }
.modal__intro { margin-bottom: 26px; font-size: .95rem; }
.modal__view[data-view="done"] .btn { margin-top: 8px; }
@media (max-width: 639px) {
  .modal { width: 100%; max-height: 94svh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .modal[open] { animation: sheet-in .6s var(--ease-out); }
  .modal.is-closing { animation: sheet-out .3s ease forwards; }
  .modal__panel { padding: 30px 20px max(24px, env(safe-area-inset-bottom)); }
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { to { transform: translateY(100%); } }

.form { display: grid; gap: 14px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 25px 16px 9px; appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); border-radius: 3px; background: var(--paper);
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 104px; resize: vertical; }
.field label {
  position: absolute; left: 17px; top: 17px; transform-origin: left top; pointer-events: none;
  font-size: .92rem; line-height: 1.4; color: var(--muted);
  transition: transform .3s var(--ease-out), color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 20, 19, .08); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-10px) scale(.74); color: var(--ink-2); }
.field--select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg);
}
.field--select select { padding-right: 44px; cursor: pointer; }
.field__error { display: none; margin-top: 6px; font-size: .76rem; color: #9b3c32; }
.field.is-invalid input { border-color: #9b3c32; }
.field.is-invalid .field__error { display: block; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0; padding: 0; border: 0; }
.choice legend { width: 100%; margin-bottom: 10px; padding: 0; font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.choice label { position: relative; flex: 1 1 0; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); transition: background-color .3s, color .3s, border-color .3s; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form .btn { margin-top: 6px; }
.form__note { font-size: .74rem; text-align: center; color: var(--muted); }
.form__note.is-error { color: #9b3c32; }

/* ==========================================================================
   Case lightbox
   ========================================================================== */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #080808; color: var(--white); overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade-in .4s ease; }
.lightbox.is-closing { animation: fade-out .3s ease forwards; }
.lightbox::backdrop { background: transparent; }
.lightbox__top { display: flex; align-items: center; gap: 16px; padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px; }
.lightbox__title { font-family: var(--serif); font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); line-height: 1.25; color: var(--white); }
.lightbox__note { margin-top: 2px; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.lightbox__count { margin-left: auto; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); white-space: nowrap; }
.lightbox__stage { --pad: var(--gutter); position: relative; min-height: 0; touch-action: pan-y; }
.lightbox__img {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto; max-width: calc(100% - var(--pad) * 2); max-height: 100%;
  user-select: none; -webkit-user-drag: none;
  transition: opacity .35s ease, transform .55s var(--ease-out);
}
.lightbox__img.is-loading { opacity: 0; transform: scale(.975); }
.lightbox__nav { position: absolute; top: 50%; margin-top: -24px; z-index: 2; }
.lightbox__nav--prev { left: max(16px, calc(var(--gutter) - 32px)); }
.lightbox__nav--next { right: max(16px, calc(var(--gutter) - 32px)); }
.lightbox__thumbs { display: flex; justify-content: center; gap: 8px; min-height: 24px; padding: 14px var(--gutter) max(18px, env(safe-area-inset-bottom)); }
.lightbox__thumbs button { width: 64px; height: 48px; overflow: hidden; border: 1px solid transparent; opacity: .4; transition: opacity .3s, border-color .3s; }
.lightbox__thumbs button.is-current { opacity: 1; border-color: var(--white); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .lightbox__nav { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); margin-top: 0; }
  .lightbox__nav--prev { left: var(--gutter); }
  .lightbox__nav--next { right: var(--gutter); }
  .lightbox__thumbs { padding-inline: 76px; min-height: 76px; align-items: center; }
  .lightbox__thumbs button { width: 56px; height: 44px; }
  .lightbox__stage { --pad: 12px; }
}

/* ==========================================================================
   Scroll reveal system (only active when JS runs)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 30px, 0);
  transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
.js .btn[data-reveal] {
  transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s),
    color .45s var(--ease-out), border-color .45s, translate .45s var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out) var(--d, 0s); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="ink"] {
  opacity: 1; transform: none;
  -webkit-mask-image: linear-gradient(90deg, #000 46%, transparent 54%); mask-image: linear-gradient(90deg, #000 46%, transparent 54%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 2.2s cubic-bezier(.45, .05, .35, 1) .5s, mask-position 2.2s cubic-bezier(.45, .05, .35, 1) .5s;
}
.js [data-reveal="ink"].is-in { -webkit-mask-position: 0 0; mask-position: 0 0; }
/* Inside a card that wipes in, the signature writes itself once the wipe is under way */
.js [data-reveal="clip"].is-in [data-reveal="ink"] { -webkit-mask-position: 0 0; mask-position: 0 0; transition-delay: 1s; }

.js [data-reveal-stagger] > * { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.js [data-reveal-stagger] > .is-in { opacity: 1; transform: none; }

/* Word-by-word heading reveal */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .12em; margin: 0 -.05em -.12em; }
.js [data-split] .w > span { display: inline-block; transform: translate3d(0, 112%, 0); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 55ms); }
.js [data-split].is-in .w > span { transform: none; }

/* Quote that lights up word by word as you scroll */
.js [data-highlight] .hw { opacity: .16; transition: opacity .35s ease; }
.js [data-highlight] .hw.is-lit { opacity: 1; }

/* Safety net if the script fails to load */
.reveal-all [data-reveal], .reveal-all [data-reveal-stagger] > *, .reveal-all [data-split] .w > span, .reveal-all .bespoke__label, .reveal-all .bespoke__pt {
  opacity: 1 !important; transform: none !important; clip-path: none !important;
  -webkit-mask-image: none !important; mask-image: none !important;
}

/* ==========================================================================
   Reduced motion (html.rm, set in <head>): keep gentle fades, remove movement
   ========================================================================== */
.rm { scroll-behavior: auto; }
.rm .grain, .rm .hero__scroll span, .rm .bespoke__pt::after, .rm .dsd__hud-title i { animation: none; }
.rm .hero__scroll span { opacity: .5; }
.rm .bespoke__pt::after { opacity: 0; }
.rm .dsd__scan { display: none; }

/* Hero: fade in place, no slide or zoom */
.rm .hero__media img,
.rm .hero__title .line > span,
.rm .hero__eyebrow, .rm .hero__lead, .rm .hero__actions, .rm .hero__meta { animation-name: fade-in; }

/* Scroll reveals become pure fades */
.rm [data-reveal], .rm [data-reveal-stagger] > *, .rm .bespoke__label { transform: none; }
.rm [data-reveal="clip"] { clip-path: none; opacity: 0; transition: opacity 1.2s ease var(--d, 0s); }
.rm [data-reveal="ink"] { -webkit-mask-image: none; mask-image: none; opacity: 0; transition: opacity 1.4s ease .2s; }
.rm [data-reveal="clip"].is-in, .rm [data-reveal="ink"].is-in, .rm [data-reveal="clip"].is-in [data-reveal="ink"] { opacity: 1; }
.rm [data-split] .w > span { transform: none; opacity: 0; transition: opacity .9s ease; transition-delay: calc(var(--d, 0s) + var(--i, 0) * 40ms); }
.rm [data-split].is-in .w > span { opacity: 1; }
.rm .bespoke__pt { transform: none; opacity: 0; transition: opacity .7s ease var(--d, 0s); }
.rm .is-in .bespoke__pt { opacity: 1; }
.rm .dsd__layer .pop { transform: none; }

/* Shade guide lands on its match without sweeping */
.rm .dsd__shades.is-active .dsd__shade-cursor { animation: none; opacity: 1; transform: translateX(var(--step)); }
.rm .dsd__shades.is-active span:nth-child(2) { animation: none; transform: translateY(-5px); }

/* Menu and dialogs fade instead of wiping or sliding */
.rm .menu { clip-path: none; opacity: 0; transition: opacity .35s ease, visibility 0s .35s; }
.rm .menu.is-open { opacity: 1; transition: opacity .35s ease, visibility 0s; }
.rm .menu__links a { transform: none; }
.rm .modal[open] { animation-name: fade-in; }
.rm .modal.is-closing { animation-name: fade-out; }
@keyframes fade-out { to { opacity: 0; } }

/* Technology illustrations show their finished state */
.rm .art-teeth path, .rm .art-guides path, .rm .art-outline { animation: none; stroke-dashoffset: 0; opacity: 1; }
.rm .art-ceramic .layer, .rm .art-ceramic .lbl { animation: none; opacity: 1; }
.rm .art-ceramic .layer--gloss { opacity: .7; }
.rm .art-spark { animation: none; transform: rotate(45deg); }
.rm .art-cross { display: none; }

/* Without JavaScript there is no .rm class, so honour the device setting directly */
@media (prefers-reduced-motion: reduce) {
  html:not(.js) { scroll-behavior: auto; }
  html:not(.js) .grain, html:not(.js) .hero__scroll span, html:not(.js) .bespoke__pt::after, html:not(.js) .dsd__hud-title i { animation: none; }
}
