/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Editorial Light Cream, adapted: warm rose accent (skin/beauty warmth)
     + cyan #02C0F0 trust accent (clinical confidence, requested by client) */
  --bg:        #f7f2ec;
  --bg-2:      #ede2d3;
  --paper:     #ffffff;
  --ink:       #201f1d;
  --ink-soft:  #2c2a27;
  --ink-mute:  #6b6560;
  --accent:    #c98974;   /* warm rose — beauty, warmth, care */
  --accent-2:  #02c0f0;   /* brand cyan — trust, clarity, professionalism */
  --accent-ink: #ffffff;
  --line:      rgba(32,31,29,0.12);
  --cream:     #f7f2ec;

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 20px;
  --radius-sm: 12px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent-2); color: #fff; }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section-head { max-width: 640px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 0.9rem; }
.section-sub { color: var(--ink-mute); font-size: 1.05rem; max-width: 52ch; }

section { position: relative; padding-block: clamp(4rem, 8vw, 7rem); }

/* =============================================================
   4. Typography
   ============================================================= */
em { font-style: italic; color: var(--accent); }
p { color: var(--ink-soft); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(32,31,29,0.08), 0 1px 3px rgba(32,31,29,0.06);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s;
}
.btn:hover { transform: translateY(-4px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  box-shadow: 0 22px 50px rgba(32,31,29,0.22), 0 10px 22px rgba(2,192,240,0.22);
  background: #100f0e;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.btn-ghost-invert {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(247,242,236,0.4);
}
.btn-ghost-invert:hover { box-shadow: inset 0 0 0 1.5px rgba(247,242,236,0.9); }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  box-shadow: 0 1px 0 var(--line);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(2,192,240,0.12);
  color: var(--accent-2);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--ink); }
.card p { font-size: 0.96rem; color: var(--ink-mute); }

.card:hover {
  box-shadow:
    0 40px 80px -24px rgba(201,137,116,0.28),
    0 20px 44px -18px rgba(32,31,29,0.28),
    0 0 0 1px rgba(2,192,240,0.18);
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Nav --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), padding .4s var(--ease-out);
  padding-block: 1.3rem;
}
.nav.is-scrolled {
  background: rgba(247,242,236,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.85rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: 0.4rem; }
.nav-logo-mark { font-family: var(--serif); font-style: italic; font-size: 1.5rem; font-weight: 500; color: var(--ink); }
.nav-logo-sub { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.nav-logo-img { height: 42px; width: auto; display: block; }
.nav-links { display: none; gap: 2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; padding: 0.25rem 0; font-size: 0.92rem; font-weight: 500; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: grid; place-items: center; gap: 4px;
  width: 40px; height: 40px;
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span { width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile nav { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.nav-mobile-link { font-family: var(--serif); font-size: 1.6rem; font-style: italic; }

/* --- Cursor --- */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: var(--cream); border-radius: 50%; }
.cursor-ring {
  width: 32px; height: 32px; margin: -16px; border: 1px solid var(--cream); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 52px; height: 52px; margin: -26px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* --- Scroll progress --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200; background: rgba(32,31,29,0.06); pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 0; transform: scaleX(0); transition: transform .08s linear;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  padding-top: 6rem;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(32,26,20,0.62) 0%, rgba(32,26,20,0.4) 45%, rgba(247,242,236,0.96) 96%);
}
.hero-grain { position: absolute; inset: 0; z-index: -1; }
.hero-content { max-width: 760px; }
.hero-content .kicker { color: #f3d9cf; }
.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  color: #fff;
  text-wrap: balance;
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero-title em { color: #ffe9c2; }
.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 46ch;
}
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.6);
  display: grid; place-items: start center; padding-top: 8px;
}
.hero-scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: #fff; animation: scrollHint 1.8s ease-in-out infinite; }
@keyframes scrollHint { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: 0.2; } }

@keyframes ambientZoom {
  0%, 100% { transform: scale(1.05) translate3d(0, 0, 0); }
  50%      { transform: scale(1.14) translate3d(-1%, -1%, 0); }
}
.hero-bg img.ambient-on { animation: ambientZoom 32s ease-in-out infinite; }

/* --- Stats bar --- */
.stats { padding-block: clamp(2.6rem, 5vw, 3.6rem); background: var(--paper); }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { text-align: center; }
.stat-num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); font-weight: 500; }
.stat-label { margin-top: 0.4rem; font-size: 0.85rem; color: var(--ink-mute); }

/* --- Advantages / bento --- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento-1 { grid-column: span 7; }
  .bento-2 { grid-column: span 5; }
  .bento-3 { grid-column: span 4; }
  .bento-4 { grid-column: span 4; }
  .bento-5 { grid-column: span 4; }
  .bento-6 { grid-column: span 12; }
  .bento-6 { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
  .bento-6 .card-icon { margin-bottom: 0; }
}

/* --- Treatments marquee --- */
.treatments { background: var(--ink); color: var(--cream); }
.treatments .kicker { color: #f3d9cf; }
.treatments .section-title { color: var(--cream); margin-bottom: 2.4rem; }
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.marquee-track {
  display: inline-flex; gap: 1.2rem; white-space: nowrap; will-change: transform;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2rem);
  padding-block: 0.5rem;
}
.marquee-track .dot { color: var(--accent-2); font-style: normal; }

/* --- Narrative --- */
.narrative-grid { display: grid; gap: 2.6rem; }
@media (min-width: 960px) {
  .narrative-grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
}
.narrative-figure {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}
/* Mask-reveal only when JS is confirmed running (see inline script in <body>) —
   without JS the image stays fully visible, per the "no content lost" rule. */
html.has-js .narrative-figure {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-soft);
}
html.has-js .narrative-figure.is-revealed { clip-path: inset(0); }
.narrative-figure img { width: 100%; height: 100%; object-fit: cover; }
.narrative-text p { margin-bottom: 1.1rem; }
.trust-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; }
.trust-list li { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; color: var(--ink); }
.trust-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-2); color: #fff; font-size: 0.72rem; flex: none;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.4rem;
}
@media (min-width: 720px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 2.6vw, 2.2rem);
  box-shadow: 0 1px 0 var(--line);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(32,31,29,0.2);
}
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 1.2rem; }
.testimonial-quote { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink); margin-bottom: 1.2rem; }
.testimonial-name { font-weight: 600; font-size: 0.92rem; }
.testimonial-meta { font-size: 0.82rem; color: var(--ink-mute); }
.testimonial-note { margin-top: 1.6rem; font-size: 0.78rem; color: var(--ink-mute); font-style: italic; }

/* --- CTA banner (mesh gradient) --- */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

.cta-banner {
  background: var(--ink);
  color: var(--cream);
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center;
}
.section-with-mesh::before {
  content: ""; position: absolute; inset: -10%; z-index: -1;
  background:
    radial-gradient(60% 50% at var(--mesh-x) var(--mesh-y), rgba(2,192,240,.4), transparent 60%),
    conic-gradient(from var(--mesh-angle), rgba(201,137,116,.28), rgba(2,192,240,.14), rgba(201,137,116,.22), rgba(201,137,116,.28));
  filter: blur(90px) saturate(120%);
  opacity: .8;
  animation: meshShift 24s linear infinite;
  mix-blend-mode: screen;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 30%; --mesh-y: 40%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 70%; --mesh-y: 60%; }
  100% { --mesh-angle: 360deg; --mesh-x: 30%; --mesh-y: 40%; }
}
.cta-inner { max-width: 640px; margin-inline: auto; }
.cta-title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--cream); margin-bottom: 1rem; }
.cta-sub { color: rgba(247,242,236,0.78); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-actions { justify-content: center; }

/* --- Contact --- */
.contact-grid { display: grid; gap: 2.6rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; } }
.contact-list { margin: 1.8rem 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.contact-list-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.contact-list a { font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--accent-2); }

.contact-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  box-shadow: 0 1px 0 var(--line);
  display: flex; flex-direction: column; gap: 1.3rem;
  position: relative;
}
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.4rem 1rem 0.5rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent; color: inherit; font: inherit;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--accent-2); }
.field label {
  position: absolute; left: 1rem; top: 1.15rem;
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--ink-mute);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0.5rem; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.cta-submit { position: relative; align-self: flex-start; }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form-spinner, .cta-form-check { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 1.5px solid rgba(247,242,236,0.3); border-top-color: var(--cream);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form-check path {
  stroke: currentColor; stroke-width: 2; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .55s var(--ease-out);
}
.cta-form.is-sent-final .cta-form-check { opacity: 1; }
.cta-form.is-sent-final .cta-form-check path { stroke-dashoffset: 0; }

.cta-success {
  position: relative;
  text-align: center;
  opacity: 0; height: 0; overflow: hidden; pointer-events: none;
  transition: opacity .6s var(--ease-out);
}
.cta-success.is-visible { opacity: 1; height: auto; pointer-events: auto; padding-top: 1.4rem; }
.cta-success h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.cta-success p { color: var(--ink-mute); }

/* --- Footer --- */
.footer { background: var(--ink); color: rgba(247,242,236,0.82); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-inner {
  display: grid; gap: 2.4rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(247,242,236,0.12);
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .nav-logo-mark, .footer-brand .nav-logo-sub { color: var(--cream); }
.footer-logo-img { height: 52px; width: auto; display: block; filter: brightness(1.35); }
.footer-brand p { margin-top: 0.8rem; color: rgba(247,242,236,0.65); font-size: 0.92rem; max-width: 32ch; }
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-2); }
.footer-bottom { padding-block: 1.6rem; font-size: 0.8rem; color: rgba(247,242,236,0.5); }
.footer-credits-link { color: rgba(247,242,236,0.5); text-decoration: underline; text-underline-offset: 2px; }
.footer-credits-link:hover { color: var(--accent-2); }

/* --- Credits page --- */
.page-credits { background: var(--bg); }
.credits-masthead { padding: 1.6rem var(--gutter); }
.credits-masthead a { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.credits-main { max-width: 720px; margin-inline: auto; padding: 2rem var(--gutter) 6rem; }
.credits-main h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.credits-main > p { color: var(--ink-mute); margin-bottom: 2.4rem; }
.credits-main > p a { color: var(--accent-2); text-decoration: underline; }
.credits-list { display: flex; flex-direction: column; gap: 1.1rem; }
.credits-list li {
  background: var(--paper); border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem; box-shadow: 0 1px 0 var(--line);
  font-size: 0.92rem; color: var(--ink-soft);
}
.credits-list a { color: var(--accent-2); text-decoration: underline; }

/* =============================================================
   7. Effects (shared)
   ============================================================= */
/* Reveal-on-scroll only activates once JS confirms it's running (html.has-js,
   set synchronously in <body>). Without JS, [data-reveal] content is visible
   immediately — no content is ever lost, only the entrance animation. */
html.has-js [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
html.has-js [data-reveal].is-revealed { opacity: 1; transform: none; }

.has-grain { position: relative; }
.has-grain::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; opacity: 0.12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .15s; }

/* =============================================================
   8. Responsive (fine-tuning)
   ============================================================= */
@media (min-width: 540px) { .hero-title { max-width: 18ch; } }
@media (min-width: 1280px) { .container { padding-inline: var(--gutter); } }

/* =============================================================
   9. Reduced-motion — only INTRUSIVE effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint span { animation: none; }
  .hero-bg img.ambient-on { animation: none; }
  .section-with-mesh::before { animation: none; }
  /* Do NOT disable: tilts, hovers, fades, marquee, count-up */
}
