/* ============================================================
   DENNY GAROFANO — CONSULENTE FINANZIARIO
   style.css — mobile-first, token-driven, no frameworks
   ============================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Palette */
  --bg-primary:    #FAFAF7;
  --bg-alt:        #F3EFE6;
  --bg-white:      #FFFFFF;
  --bg-dark:       #0C0C0B;
  --text-primary:  #111110;
  --text-secondary:#4B4845;
  --text-muted:    #9A9590;
  --text-light:    #F8F6F1;

  /* Gold spectrum */
  --gold:          #B08D57;
  --gold-light:    #C9A96E;
  --gold-deep:     #8A6A3B;
  --gold-subtle:   rgba(176,141,87,0.12);

  /* Supporting */
  --ink:           #1A2030;
  --border:        #E8E3D8;
  --border-dark:   #252420;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --size-micro:    0.5625rem;
  --size-overline: 0.625rem;
  --size-caption:  0.75rem;
  --size-body-sm:  0.875rem;
  --size-body:     1rem;
  --size-body-lg:  1.125rem;
  --size-h3:       clamp(1.25rem, 1rem + 1vw, 1.5rem);
  --size-h2:       clamp(2rem, 1.4rem + 3vw, 3.5rem);
  --size-h1:       clamp(3.5rem, 1.5rem + 7vw, 7.5rem);
  --size-display:  clamp(4rem, 2rem + 9vw, 10rem);
  --size-quote:    clamp(1.625rem, 1.2rem + 2vw, 2.5rem);
  --size-monogram: clamp(3rem, 2rem + 3vw, 5rem);

  --weight-light:  300;
  --weight-regular:400;
  --weight-medium: 500;
  --weight-semi:   600;

  --leading-tight: 1.08;
  --leading-snug:  1.30;
  --leading-base:  1.65;
  --leading-loose: 1.80;

  --tracking-tight:  -0.03em;
  --tracking-hero:   -0.02em;
  --tracking-label:  0.22em;
  --tracking-serial: 0.30em;

  /* Spacing */
  --space-2:   0.125rem;
  --space-4:   0.25rem;
  --space-6:   0.375rem;
  --space-8:   0.5rem;
  --space-12:  0.75rem;
  --space-16:  1rem;
  --space-24:  1.5rem;
  --space-32:  2rem;
  --space-48:  3rem;
  --space-64:  4rem;
  --space-96:  6rem;
  --space-128: 8rem;
  --space-160: 10rem;
  --space-200: 12.5rem;

  --section-padding: clamp(4rem, 3rem + 4vw, 9.6rem);

  /* Motion */
  --ease-out-expo:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-in-expo:      cubic-bezier(0.7, 0, 0.84, 0);
  --ease-spring:       cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Legacy aliases so existing rules that use --ease-out / --ease-in-out still resolve */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:cubic-bezier(0.76, 0, 0.24, 1);

  --dur-instant:    50ms;
  --dur-fast:       200ms;
  --dur-normal:     400ms;
  --dur-slow:       700ms;
  --dur-deliberate: 1200ms;
  --dur-cinematic:  2200ms;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --gutter:        clamp(1rem, 2vw, 2rem);
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Shadows */
  --shadow-card: 0 2px 16px rgba(14, 14, 14, 0.06);
  --shadow-portrait: 12px 16px 40px rgba(14, 14, 14, 0.14);
  --shadow-wa: 0 4px 20px rgba(14, 14, 14, 0.25);
}

/* ── 1b. AMBIENT PARTICLE CANVAS ──────────────────────────── */
.particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .particles-canvas {
    display: none;
  }
}

/* ── 1b-ii. PRELOADER ──────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  pointer-events: none;
}

.preloader__panel {
  flex: 1;
  will-change: transform;
  transition: transform 900ms var(--ease-in-out-quart);
}

.preloader__panel--left  { background: var(--bg-primary); transform: translateY(0); }
.preloader__panel--right { background: var(--bg-dark);    transform: translateY(0); }

.preloader__brand {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  z-index: 1;
  transition: opacity 300ms var(--ease-out-expo);
}

.preloader__monogram {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: var(--weight-semi);
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1;
}

.preloader__counter {
  font-family: var(--font-mono);
  font-size: var(--size-micro);
  letter-spacing: var(--tracking-serial);
  color: var(--text-muted);
  text-transform: uppercase;
}

.preloader.is-exiting .preloader__panel--left,
.preloader.is-exiting .preloader__panel--right {
  transform: translateY(-100%);
}

.preloader.is-exiting .preloader__brand {
  opacity: 0;
  transition-duration: 200ms;
}

.preloader.is-gone {
  display: none;
}

/* ── 1c. SKIP LINK ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-16);
  background: var(--text-primary);
  color: var(--text-light);
  padding: var(--space-8) var(--space-16);
  font-size: var(--size-body-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: 200;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-16);
}

/* ── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* ── 3. UTILITIES ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.overline {
  display: block;
  font-family: var(--font-body);
  font-size: var(--size-overline);
  font-weight: var(--weight-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-16);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: var(--weight-semi);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-32);
}

.section-title--centered {
  text-align: center;
}

/* ── 4. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--font-body);
  font-size: var(--size-body-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  padding: var(--space-16) var(--space-32);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: background-color var(--dur-normal) var(--ease-out),
              color var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn:active {
  transform: translateY(0);
}

/* Solid button: keep black bg, gold underline sweeps left-to-right */
.btn--solid {
  background-color: var(--text-primary);
  color: var(--text-light);
  border: 1.5px solid var(--text-primary);
}

.btn--solid::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease-out);
}

.btn--solid:hover::after {
  transform: scaleX(1);
}

/* Ghost button: border fills gold from bottom via pseudo-element scaleY */
.btn--ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}

.btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 280ms var(--ease-out);
  z-index: -1;
}

.btn--ghost:hover {
  color: var(--text-light);
  border-color: var(--gold);
}

.btn--ghost:hover::before {
  transform: scaleY(1);
}

.btn--full {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .btn--solid::after,
  .btn--ghost::before {
    transition: none;
  }
}

/* ── 5. REVEAL ANIMATIONS ──────────────────────────────────── */

/* Generic section element: overline, headings */
.reveal-el {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out),
              transform 600ms var(--ease-out);
}

.reveal-el.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Child stagger: applied to paragraphs, list items, form col, info col */
.reveal-child {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms var(--ease-out),
              transform 560ms var(--ease-out);
}

.reveal-child.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Values list: slide in from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 520ms var(--ease-out),
              transform 520ms var(--ease-out);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Service cards */
.service-card--stagger {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 540ms var(--ease-out),
              transform 540ms var(--ease-out);
}

.service-card--stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Quote content: blur-to-sharp reveal */
.quote__content-anim {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(12px);
  transition: opacity 700ms var(--ease-out),
              filter 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}

.quote__content-anim.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Hero word stagger — opacity/translateY rules removed; clip-mask mechanic
   in section 18 (.hero__line-mask / .hero__word) is the active implementation */

.hero__overline-anim,
.hero__sub-anim,
.hero__cta-anim {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms var(--ease-out),
              transform 560ms var(--ease-out);
}

.hero__overline-anim.is-visible,
.hero__sub-anim.is-visible,
.hero__cta-anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy .fade-in kept for noscript fallback */
@media (prefers-reduced-motion: reduce) {
  .reveal-el,
  .reveal-child,
  .reveal-left,
  .service-card--stagger,
  .quote__content-anim,
  .hero__overline-anim,
  .hero__sub-anim,
  .hero__cta-anim,
  .about__visual-anim,
  .char-unit,
  .about__line-word {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  /* Preloader: skip entirely under reduced motion */
  .preloader {
    display: none !important;
  }
}

/* ── 6. NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color var(--dur-normal) var(--ease-in-out),
              box-shadow var(--dur-normal) var(--ease-in-out);
}

.navbar.is-scrolled {
  background-color: rgba(250, 250, 247, 0.96);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  text-decoration: none;
}

.navbar__monogram {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  letter-spacing: 0.05em;
  line-height: 1;
}

.navbar__name {
  font-size: var(--size-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  display: none;
}

@media (min-width: 480px) {
  .navbar__name {
    display: block;
  }
}

.navbar__links {
  display: none;
  gap: var(--space-32);
}

.navbar__link {
  font-size: var(--size-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out),
              letter-spacing 200ms var(--ease-out);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-normal) var(--ease-out);
}

/* Active section indicator: gold dot above the underline */
.navbar__link::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--gold);
  transition: transform 200ms var(--ease-out);
}

.navbar__link:hover {
  color: var(--text-primary);
  letter-spacing: 0;
}

.navbar__link:hover::after {
  transform: scaleX(1);
}

.navbar__link.is-active {
  color: var(--text-primary);
}

.navbar__link.is-active::before {
  transform: translateX(-50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .navbar {
    transition: none;
  }
  .navbar__link {
    transition: color var(--dur-fast) var(--ease-out);
  }
  .navbar__link::before {
    transition: none;
  }
}

/* Hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: var(--space-4);
}

.navbar__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: transform var(--dur-normal) var(--ease-out),
              opacity var(--dur-normal) var(--ease-out);
}

.navbar__hamburger[aria-expanded="true"] .navbar__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.navbar__hamburger[aria-expanded="true"] .navbar__bar:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger[aria-expanded="true"] .navbar__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile {
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background-color: rgba(250, 250, 247, 0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--space-24) var(--container-pad);
}

.navbar__mobile[hidden] {
  display: none;
}

.navbar__mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.navbar__mobile-link {
  font-size: 1.125rem;
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border);
  display: block;
}

@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }

  .navbar__hamburger {
    display: none;
  }

  .navbar__mobile[hidden] {
    display: none !important;
  }
}

/* ── 7. HERO ───────────────────────────────────────────────── */
.hero {
  min-height: clamp(34rem, 72vh, 46rem);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-48);
  align-items: start;
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

.hero__text {
  max-width: 36rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--size-h1);
  font-weight: var(--weight-semi);
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--space-16);
  letter-spacing: -0.025em;
}

.hero__sub {
  font-size: var(--size-body-lg);
  font-weight: var(--weight-light);
  color: var(--text-secondary);
  line-height: var(--leading-base);
  margin-bottom: calc(var(--space-16) + var(--space-12));
  max-width: 30rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}

.hero__portrait {
  position: relative;
  justify-self: center;
  perspective: 1200px;
}

.hero__portrait-frame {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  transform: translateY(40px) rotateX(8deg);
  opacity: 0;
  transition:
    transform 1400ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 200ms;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

body.is-loaded .hero__portrait-frame {
  transform:
    translateY(0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  opacity: 1;
  transition:
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__portrait-mask {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-portrait);
  background-color: var(--bg-alt);
  /* Reveal: clip from bottom-up on load */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1600ms cubic-bezier(0.7, 0, 0.2, 1);
  transition-delay: 350ms;
}

body.is-loaded .hero__portrait-mask {
  clip-path: inset(0 0 0 0);
}

.hero__portrait-img {
  --scroll-scale: 1;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  /* Initial entrance: scaled up, settles to scroll-driven scale on load */
  transform: scale(1.12);
  transition: transform 2200ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 350ms;
  will-change: transform;
}

body.is-loaded .hero__portrait-img {
  transform: scale(var(--scroll-scale));
  transition: transform 200ms linear;
}

.hero__portrait-frame {
  /* allow scroll-driven opacity fade once loaded */
}

body.is-loaded .hero__portrait-frame {
  opacity: var(--scroll-opacity, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hero__portrait-frame,
  body.is-loaded .hero__portrait-frame {
    transform: none;
    opacity: 1;
    transition: none;
  }
  .hero__portrait-mask,
  body.is-loaded .hero__portrait-mask {
    clip-path: none;
    transition: none;
  }
  .hero__portrait-img,
  body.is-loaded .hero__portrait-img {
    transform: none;
    animation: none;
    transition: none;
  }
}

/* Decorative vertical gold line left of hero text (desktop only) */
.hero__deco-line {
  display: none;
}

@media (min-width: 1024px) {
  .hero__deco-line {
    display: block;
    position: absolute;
    left: calc(var(--container-pad) - 24px);
    top: 20%;
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
    opacity: 0.55;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 1200ms var(--ease-out-expo);
  }

  .hero__deco-line.is-extended {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__deco-line {
    transform: scaleY(1) !important;
    transition: none;
  }
}

/* Gold accent line on portrait — entrance animation via is-loaded on body */
.hero__portrait::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 60%;
  height: 60%;
  border-top: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 400ms var(--ease-out-expo) 400ms,
              transform 400ms var(--ease-out-expo) 400ms;
}

body.is-loaded .hero__portrait::before {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero__portrait::before {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Scroll indicator */
.hero__scroll-indicator {
  display: none;
  justify-content: center;
  padding-bottom: var(--space-32);
}

@media (min-height: 700px) {
  .hero__scroll-indicator {
    display: flex;
  }
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 2s var(--ease-in-out) infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line {
    animation: none;
    opacity: 0.4;
  }
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-48);
  }

  .hero__portrait {
    justify-self: stretch;
    width: 100%;
  }

  .hero__portrait-frame {
    max-width: none;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 420px;
    gap: var(--space-64);
    padding-top: var(--space-48);
  }
}

/* ── 8. ABOUT / CHI SONO ───────────────────────────────────── */
.about {
  background-color: var(--bg-white);
  padding-block: var(--section-padding);
  overflow: hidden;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-64);
  align-items: center;
  /* Remove side padding on large screens — ink panel bleeds to edge */
  padding-inline: 0;
}

.about__body {
  font-size: var(--size-body-lg);
  font-weight: var(--weight-light);
  color: var(--text-secondary);
  line-height: var(--leading-base);
  margin-bottom: var(--space-48);
  max-width: 38rem;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about__value {
  font-size: var(--size-body-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
}

.about__value:first-child {
  border-top: 1px solid var(--border);
}

.about__value::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background-color: var(--gold);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-normal) var(--ease-out);
}

.about__value:hover {
  background-color: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  transform: translateX(var(--space-24));
}

.about__value:hover::before {
  transform: translateY(-50%) scaleX(1);
}

.about__visual {
  position: relative;
}

/* Light-panel about__img treatment (not inside ink panel) */
.about__visual:not(.about__visual--ink) .about__img {
  filter: contrast(1.05) brightness(0.96);
  mix-blend-mode: multiply;
}

/* Gold border overlay on the visual frame — light panel variant only */
.about__visual:not(.about__visual--ink)::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(176, 141, 87, 0.25);
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 1;
}

/* Ink panel: right half goes dark, image gets contrast inversion */
.about__visual--ink {
  background-color: var(--bg-dark);
  padding: var(--space-64) var(--space-32);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.about__visual--ink .about__img {
  border-radius: var(--radius-sm);
  box-shadow: 16px 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 320px;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.92);
}

/* On mobile the ink panel does not bleed edge, just fills naturally */
.about__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-portrait);
}

.about__visual-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out) 200ms,
              transform 600ms var(--ease-out) 200ms;
}

.about__visual-anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .about__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .about__text {
    order: 1;
    padding-inline: var(--container-pad);
    padding-right: var(--space-64);
  }

  .about__visual {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr 420px;
  }

  .about__text {
    padding-left: calc((100vw - var(--container-max)) / 2 + var(--container-pad));
    padding-right: var(--space-96);
  }
}

/* ── 9. SERVICES ───────────────────────────────────────────── */
.services {
  background-color: var(--bg-primary);
  padding-block: var(--section-padding);
}

.services__header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: var(--space-48);
}

.services__header .section-title {
  margin-bottom: 0;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

.service-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-32);
  padding-left: calc(var(--space-32) - 2px);
  position: relative;
  overflow: hidden;
  transition: transform 280ms var(--ease-out-expo),
              box-shadow 280ms var(--ease-out-expo),
              border-color 280ms var(--ease-out-expo),
              border-left-color 280ms var(--ease-out-expo),
              background-color 280ms var(--ease-out-expo);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(176, 141, 87, 0.10);
  border-color: var(--border);
  border-left-color: var(--gold);
  background-color: var(--bg-alt);
}

/* Ordinal number: decorative large numeral top-right */
.service-card__num {
  position: absolute;
  top: var(--space-16);
  right: var(--space-24);
  font-family: var(--font-mono);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: var(--weight-regular);
  color: var(--gold-subtle);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.service-card__icon {
  margin-bottom: var(--space-24);
  width: 32px;
  height: 32px;
  transition: transform 280ms var(--ease-out);
}

.service-card:hover .service-card__icon {
  transform: rotate(2deg) scale(1.05);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: var(--weight-semi);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-12);
  position: relative;
  display: inline-block;
}

/* Gold underline grows from center on card hover */
.service-card__title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 280ms var(--ease-out);
}

.service-card:hover .service-card__title::after {
  transform: scaleX(1);
}

@media (max-width: 639px) {
  .service-card {
    border-left-color: var(--gold);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card:hover {
    transform: none;
  }
  .service-card__icon {
    transition: none;
  }
  .service-card__title::after {
    transition: none;
  }
}

.service-card__desc {
  font-size: var(--size-body-sm);
  font-weight: var(--weight-light);
  color: var(--text-secondary);
  line-height: var(--leading-base);
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: var(--space-16);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-16);
  }
  .service-card:nth-child(1) { grid-column: 1 / 6; min-height: 280px; }
  .service-card:nth-child(2) { grid-column: 6 / 9; }
  .service-card:nth-child(3) { grid-column: 9 / 13; }
  .service-card:nth-child(4) { grid-column: 1 / 5; }
  .service-card:nth-child(5) { grid-column: 5 / 10; }
  .service-card:nth-child(6) { grid-column: 10 / 13; }
}

/* ── 10. QUOTE / DIVIDER ───────────────────────────────────── */
.quote {
  background-color: var(--bg-dark);
  padding-block: var(--section-padding);
  position: relative;
  overflow: hidden;
}

/* Subtle noise grain overlay — low opacity, compositor-friendly */
.quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* Ensure glow and content sit above the grain layer */
.quote__glow,
.quote__content {
  position: relative;
  z-index: 1;
}

/* Gold glow that drifts on scroll — transforms on a positioned element */
.quote__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  margin-top: -300px;
  margin-left: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.12) 0%, transparent 70%);
  pointer-events: none;
  will-change: transform;
  transform: translateX(0) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .quote__glow {
    will-change: auto;
  }
}

.quote__content {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

.quote__text {
  font-family: var(--font-display);
  font-size: var(--size-quote);
  font-weight: var(--weight-regular);
  font-style: italic;
  line-height: var(--leading-snug);
  color: var(--text-light);
  letter-spacing: 0.01em;
  quotes: none;
  margin-bottom: var(--space-32);
}

.quote__rule {
  width: 60px;
  height: 1.5px;
  background-color: var(--gold);
  margin-inline: auto;
}

/* ── 11. CONTACT ───────────────────────────────────────────── */
.contact {
  background-color: var(--bg-white);
  padding-block: var(--section-padding);
}

.contact__header {
  margin-bottom: var(--space-48);
}

.contact__header .section-title {
  margin-bottom: 0;
}

.contact__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-64);
  align-items: start;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.form-label {
  font-size: var(--size-body-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Underline-only inputs */
.form-input {
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-light);
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: var(--space-12) 0;
  width: 100%;
  outline: none;
  transition: border-color var(--dur-normal) var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: transparent;
}

.form-input:focus {
  border-bottom-color: var(--gold);
}

.form-input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4A4A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: var(--space-24);
}

.form-textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-field--check {
  flex-direction: row;
  align-items: flex-start;
}

.form-check-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  font-size: var(--size-body-sm);
  font-weight: var(--weight-light);
  color: var(--text-secondary);
  line-height: var(--leading-base);
  cursor: pointer;
}

.form-check-input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact info column */
.contact__info-col {
  display: flex;
  flex-direction: column;
}

.contact__info-block {
  padding-block: var(--space-24);
}

.contact__info-label {
  font-size: var(--size-overline);
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-8);
}

.contact__info-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  transition: color var(--dur-fast) var(--ease-out);
}

a.contact__info-value {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: color var(--dur-fast) var(--ease-out),
              background-size 280ms var(--ease-out);
}

a.contact__info-value:hover {
  color: var(--gold-deep);
  background-size: 100% 1px;
}

.contact__info-divider {
  width: 40px;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.4;
}

@media (min-width: 768px) {
  .contact__cols {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-96);
  }
}

/* ── 11b. FLOATING LABELS ──────────────────────────────────── */
.form-field--float {
  position: relative;
  /* Remove the column gap since label is now absolutely positioned */
  gap: 0;
  padding-top: var(--space-16);
}

.form-label--float {
  position: absolute;
  left: 0;
  top: calc(var(--space-16) + var(--space-12));
  font-size: var(--size-body);
  font-weight: var(--weight-light);
  color: var(--text-muted);
  pointer-events: none;
  transform-origin: left top;
  transition:
    transform 200ms var(--ease-out-expo),
    color 200ms var(--ease-out-expo);
}

/* Textarea variant — sits at top of field */
.form-label--textarea {
  top: calc(var(--space-16) + var(--space-12));
}

/* Float up when focused or filled (placeholder= " " is the CSS trigger) */
.form-input:focus + .form-label--float,
.form-input:not(:placeholder-shown) + .form-label--float {
  transform: translateY(-1.4rem) scale(0.72);
  color: var(--gold-deep);
}

@media (prefers-reduced-motion: reduce) {
  .form-label--float {
    transition: none;
  }
}

/* ── 12. FOOTER ────────────────────────────────────────────── */
.footer {
  background-color: var(--bg-dark);
  padding-block: var(--space-96) var(--space-64);
  position: relative;
}

.footer__rule {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1.5px;
  background: var(--gold);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-64);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: left;
    align-items: start;
  }
  .footer__signature { text-align: left; }
  .footer__legal     { text-align: right; }
}

.footer__monogram {
  font-family: var(--font-display);
  font-size: var(--size-monogram);
  font-weight: var(--weight-semi);
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 32px rgba(176, 141, 87, 0.45), 0 2px 8px rgba(176, 141, 87, 0.20);
}

.footer__signature {
  border-left: 2px solid var(--gold);
  padding-left: var(--space-24);
}

@media (max-width: 767px) {
  .footer__signature {
    border-left: none;
    padding-left: 0;
  }
}

.footer__wordmark {
  font-size: var(--size-body-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: var(--space-8);
}

.footer__tagline {
  font-size: var(--size-caption);
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--space-4);
  letter-spacing: 0.05em;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  align-items: center;
}

@media (min-width: 768px) {
  .footer__contact { align-items: flex-start; }
}

.footer__contact-link {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--weight-regular);
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.footer__contact-link:hover { color: var(--gold); }

.footer__cta {
  margin-top: var(--space-8);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--size-caption);
}

.footer__cta:hover {
  border-color: var(--gold);
  color: var(--text-light);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer__copy {
  font-size: var(--size-body-sm);
  color: rgba(255, 255, 255, 0.55);
}

.footer__privacy {
  font-size: var(--size-body-sm);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.footer__privacy:hover {
  color: var(--gold);
}

/* ── 13. WHATSAPP FLOATING BUTTON ──────────────────────────── */
.wa-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

/* Idle tooltip — desktop only, appears after 6s of inactivity */
.wa-tooltip {
  display: none;
}

@media (min-width: 1024px) {
  .wa-tooltip {
    display: block;
    background-color: var(--bg-dark);
    color: var(--gold);
    font-size: var(--size-body-sm);
    font-weight: var(--weight-medium);
    letter-spacing: 0.03em;
    padding: var(--space-8) var(--space-16);
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 280ms var(--ease-out),
                transform 280ms var(--ease-out);
  }

  .wa-tooltip.is-visible {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-tooltip {
    transition: opacity 150ms linear;
    transform: none !important;
  }
}

.wa-btn {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-wa);
  transition: background-color var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out),
              opacity var(--dur-normal) var(--ease-out);
  animation: wa-pulse 4s ease-in-out infinite;
}

/* Hidden state lives on wrapper now */
.wa-wrapper.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
}

.wa-btn:hover {
  background-color: var(--gold);
  transform: scale(1.08);
}

.wa-btn:active {
  transform: scale(0.96);
}

.wa-btn__icon {
  flex-shrink: 0;
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 4px 20px rgba(14, 14, 14, 0.25), 0 0 0 0 rgba(176, 141, 87, 0); }
  60%  { box-shadow: 0 4px 20px rgba(14, 14, 14, 0.25), 0 0 0 0 rgba(176, 141, 87, 0); }
  70%  { box-shadow: 0 4px 20px rgba(14, 14, 14, 0.25), 0 0 0 8px rgba(176, 141, 87, 0.25); }
  100% { box-shadow: 0 4px 20px rgba(14, 14, 14, 0.25), 0 0 0 14px rgba(176, 141, 87, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-btn {
    animation: none;
  }
}

/* ── 14. SECTION HAIRLINE DIVIDERS ─────────────────────────── */
.section-divider {
  display: block;
  width: 120px;
  height: 1px;
  background-color: var(--ink);
  opacity: 0.2;
  margin-inline: auto;
  margin-top: 0;
  margin-bottom: var(--space-48);
  border: none;
}

/* ── 16. METHODOLOGY DIAGRAM ────────────────────────────────── */
.method {
  background-color: var(--bg-white);
  padding-block: var(--section-padding);
}

.method__inner {
  text-align: center;
}

.method__label {
  font-family: var(--font-display);
  font-size: var(--size-body-lg);
  font-style: italic;
  font-weight: var(--weight-regular);
  color: var(--text-secondary);
  margin-bottom: var(--space-32);
}

.method__flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 720px;
  margin-inline: auto;
}

.method__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  flex: 1;
  position: relative;
}

.method__circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background-color: transparent;
  position: relative;
  z-index: 1;
  transition: background-color 300ms var(--ease-out),
              border-color 300ms var(--ease-out);
}

.method__step.is-filled .method__circle {
  background-color: var(--gold);
  border-color: var(--gold);
}

.method__step-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  white-space: nowrap;
}

/* SVG connector layer — replaces .method__connector divs */
.method__svg {
  position: absolute;
  top: 11px;
  left: 0;
  width: 100%;
  height: 24px;
  pointer-events: none;
  overflow: visible;
}

.method__path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  stroke-dashoffset: var(--path-length, 1000);
  stroke-linecap: round;
  transition: stroke-dashoffset 1400ms var(--ease-out-expo);
}

.method__path.is-drawn {
  stroke-dashoffset: 0;
}

/* Legacy connector rules kept for fallback — overridden by SVG approach */
.method__connector {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .method__circle {
    background-color: var(--gold);
    transition: none;
  }
  .method__path {
    stroke-dashoffset: 0;
    transition: none;
  }
}

@media (max-width: 639px) {
  .method__flow {
    gap: 0;
  }

  .method__step-label {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }
}

/* ── 17. EDITORIAL PULL-QUOTE ───────────────────────────────── */
.pullquote {
  background-color: var(--bg-white);
  padding-block: var(--space-96);
}

.pullquote__inner {
  display: flex;
  align-items: center;
  gap: var(--space-48);
  max-width: 680px;
}

.pullquote__text-wrap {
  flex: 1;
  position: relative;
}

.pullquote__text-wrap::before {
  content: '\201C';
  position: absolute;
  top: -0.25em;
  left: -0.1em;
  font-family: var(--font-display);
  font-size: 12rem;
  font-weight: var(--weight-semi);
  font-style: normal;
  line-height: 1;
  color: var(--gold);
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
  user-select: none;
}

.pullquote__sentence {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: var(--weight-regular);
  font-style: italic;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-16);
}

.pullquote__micro {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
}

.pullquote__rule {
  flex-shrink: 0;
  width: 1px;
  height: 100px;
  background-color: var(--gold);
}

@media (max-width: 767px) {
  .pullquote__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-24);
  }

  .pullquote__rule {
    width: 80px;
    height: 1px;
    order: -1;
  }
}

/* ── 18. HERO LINE-MASK CLIP REVEAL ─────────────────────────── */
/*
   Each headline line is wrapped in .hero__line-mask (overflow: hidden, clip-path).
   The inner .hero__word slides up from below the mask.
   This replaces the old simple translateY fade — same class, different mechanics.
*/
.hero__line-mask {
  display: block;
  overflow: hidden;
  /* Vertical padding gives room for descenders */
  padding-bottom: 0.08em;
  line-height: 1.08;
}

/* hero__word now starts below the clip boundary and rises into view */
.hero__word {
  display: block;
  opacity: 1; /* opacity handled by clip — keep visible once in place */
  transform: translateY(110%);
  transition: transform 800ms var(--ease-out);
}

.hero__word.is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero__word {
    transform: none;
    transition: none;
  }
  .hero__line-mask {
    overflow: visible;
  }
}

/* ── 19. SECTION SERIAL NUMBERS ─────────────────────────────── */
/*
   Masthead serials: right-aligned micro type, navy 50%, tracking 0.3em.
   Matches the existing hero serial visual language.
   .section-serial is centered-section use (metodo, servizi, contatti).
   .about__section-serial is left-aligned within the about text column.
*/
.section-serial {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
  margin-bottom: var(--space-24);
  pointer-events: none;
}

.about__section-serial {
  display: none; /* desktop only */
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
  margin-bottom: var(--space-16);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .about__section-serial {
    display: block;
  }

  /* Services serial: right-aligned within the header block */
  .services__header .section-serial {
    text-align: right;
  }

  /* Method serial: left-aligned (section starts left) */
  .method__inner .section-serial {
    text-align: left;
  }

  /* Contact serial: left-aligned */
  .contact__header .section-serial {
    text-align: left;
  }
}

/* ── 20. ABOUT TEXT COLUMN MOBILE PADDING ────────────────────── */
/* On mobile the inner container has no side padding, so add it back */
.about__text {
  padding-inline: var(--container-pad);
}

/* ── 21b. ABOUT SPLIT-LINE REVEAL ────────────────────────────── */
/*
   Each line of the about body paragraph is wrapped in .about__line-mask
   (overflow: hidden). The inner .about__line-word slides up from below the mask.
   Mirrors the .hero__line-mask / .hero__word mechanic.
*/
.about__line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  line-height: var(--leading-base);
}

.about__line-word {
  display: block;
  transform: translateY(110%);
  transition: transform 700ms var(--ease-out-expo);
}

.about__line-word.is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .about__line-word {
    transform: none;
    transition: none;
  }
  .about__line-mask {
    overflow: visible;
  }
}

/* ── 21c. CHARACTER STAGGER REVEAL ───────────────────────────── */
/*
   Shared by pullquote and quote dark section.
   Each character span injected by JS — starts invisible, rises on stagger.
*/
.char-unit {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease-out-expo),
              transform 400ms var(--ease-out-expo);
}

.char-unit.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .char-unit {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 22. MAGNETIC CURSOR DOT ────────────────────────────────── */
/*
   Magnetic cursor system. pointer:fine desktops only.
   8px gold dot normally; expands to 40px ring when near magnetic targets.
*/
.cursor-dot {
  display: none;
}

@media (pointer: fine) {
  .cursor-dot {
    display: block;
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gold);
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    transition:
      opacity 200ms var(--ease-out-expo),
      transform 300ms var(--ease-spring),
      background-color 200ms var(--ease-out-expo),
      border-color 200ms var(--ease-out-expo),
      border-width 200ms var(--ease-out-expo);
    will-change: transform;
  }

  .cursor-dot.is-active {
    opacity: 1;
  }

  .cursor-dot.is-magnetic {
    transform: translate(-50%, -50%) scale(5);
    background-color: transparent;
    border: 1.5px solid var(--gold);
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot {
    display: none !important;
  }
}

/* ── 22b. SECTION MARKER ────────────────────────────────────── */
/*
   Fixed right-edge section indicator. Visible only on wide viewports.
   JS updates #sm-num and #sm-label as user scrolls between sections.
*/
.section-marker {
  display: none;
}

@media (min-width: 1280px) {
  .section-marker {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-6);
    position: fixed;
    right: var(--space-32);
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    pointer-events: none;
    font-family: var(--font-mono);
    font-size: var(--size-micro);
    letter-spacing: var(--tracking-serial);
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 300ms var(--ease-out-expo);
  }

  .section-marker.is-visible {
    opacity: 0.55;
  }

  .section-marker__num {
    font-weight: var(--weight-medium);
    color: var(--gold);
    transition: opacity 200ms var(--ease-out-expo);
  }

  .section-marker__sep {
    opacity: 0.4;
  }

  .section-marker__label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 0.2em;
  }

  /* A.2 — Section marker text dissolve on content change */
  .section-marker__num,
  .section-marker__label {
    transition: opacity 220ms var(--ease-out-expo);
  }

  .section-marker.is-changing .section-marker__num,
  .section-marker.is-changing .section-marker__label {
    opacity: 0;
  }

  /* Hide in-flow serials at wide viewport — section marker supersedes them */
  .section-serial,
  .about__section-serial {
    display: none;
  }
}

/* ── 23. DECO LINE SCROLL-DRAW UPGRADE ───────────────────────── */
/*
   The existing .hero__deco-line already animates height on .is-extended.
   This adds a subtle glow as it draws, making it feel drawn rather than revealed.
*/
@media (min-width: 1024px) {
  .hero__deco-line.is-extended {
    filter: drop-shadow(0 0 4px rgba(176, 141, 87, 0.3));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__deco-line.is-extended {
    filter: none;
  }
}

/* ── 23b. FORM FIELD FOCUS ESCAPE HATCH ───────────────────────
   C2 fix: a keyboard user may Tab into a .form-field whose
   scroll-driven opacity:0 fill-mode has not yet been reached.
   :focus-within overrides the animation-held state so the field
   is always visible when focused. Must live outside the
   @supports + @media guard so it applies in all browsers.
─────────────────────────────────────────────────────────────── */
.contact-form .form-field:focus-within {
  opacity: 1 !important;
  translate: 0 0 !important;
}

/* Baseline: JS-driven fallback for browsers without scroll-driven animations.
   width is updated via inline style by script.js. The @supports block below
   overrides this with a CSS-native scaleX implementation where supported. */
.dm-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  z-index: 1000;
  transform-origin: left center;
  transition: width 0.1s linear;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .dm-progress {
    display: none;
  }
}

/* ── 24. SCROLL-DRIVEN ANIMATIONS (CSS-native, 2026) ──────────
   Guard: all new scroll-driven motion lives inside this double block.
   Fallback (IntersectionObserver + is-visible) remains active outside.
   Properties animated: translate, scale, opacity only — compositor thread.
   will-change scoped to 3 elements: .dm-progress, .about__img, .quote__glow.
   svh used for any height-tied calc — never vh or dvh.
─────────────────────────────────────────────────────────────── */

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {

    /* ── A.1 — Page progress bar ──────────────────────────────── */
    .dm-progress {
      position: fixed;
      inset: 0 0 auto 0;
      height: 2px;
      background: var(--gold);
      transform-origin: 0 50%;
      z-index: 101;
      pointer-events: none;
      will-change: transform;
      animation: dm-progress-grow linear both;
      animation-duration: auto;
      animation-timeline: scroll(root block);
    }

    @keyframes dm-progress-grow {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }

    /* ── B.1 — Hero scroll-out parallax via view-timeline ──────── */
    .hero {
      view-timeline-name: --dm-hero;
      view-timeline-axis: block;
    }

    /* Portrait mask lifts faster than text (no conflict with JS transform on heroPortrait) */
    .hero__portrait-mask {
      animation: dm-hero-img-lift linear both;
      animation-duration: auto;
      animation-timeline: --dm-hero;
      animation-range: contain 60% exit 100%;
    }

    @keyframes dm-hero-img-lift {
      from { translate: 0 0; }
      to   { translate: 0 -32px; }
    }

    /* Text column lags behind portrait */
    .hero__text {
      animation: dm-hero-text-lag linear both;
      animation-duration: auto;
      animation-timeline: --dm-hero;
      animation-range: contain 60% exit 100%;
    }

    @keyframes dm-hero-text-lag {
      from { translate: 0 0; }
      to   { translate: 0 -12px; }
    }

    /* ── B.2a — About visual scale-in via CSS view-timeline ───── */
    /* Override IO-based initial state — CSS animation takes over */
    .about__visual-anim {
      opacity: 1;
      transform: none;
      transition: none;
      animation: dm-about-visual-enter linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    @keyframes dm-about-visual-enter {
      from {
        opacity: 0;
        scale: 0.96;
        translate: 0 24px;
      }
      to {
        opacity: 1;
        scale: 1;
        translate: 0 0;
      }
    }

    /* ── B.2b — About portrait img scale-in ─────────────────── */
    .about__img {
      will-change: transform;
      animation: dm-about-img-scale linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    @keyframes dm-about-img-scale {
      from {
        scale: 1.06;
        opacity: 0.7;
      }
      to {
        scale: 1;
        opacity: 1;
      }
    }

    /* ── B.3 — Method step circle scale-in + label rise ─────── */
    .method__step {
      animation: dm-method-step-enter linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    .method__step:nth-child(2) { animation-range: entry 10% entry 90%; }
    .method__step:nth-child(3) { animation-range: entry 20% entry 100%; }
    .method__step:nth-child(4) { animation-range: entry 30% entry 110%; }

    @keyframes dm-method-step-enter {
      from {
        opacity: 0;
        scale: 0.6;
        translate: 0 8px;
      }
      to {
        opacity: 1;
        scale: 1;
        translate: 0 0;
      }
    }

    /* Label rise — slightly later offset per step */
    .method__step-label {
      display: inline-block;
      animation: dm-method-label-rise linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 15% entry 90%;
    }

    .method__step:nth-child(2) .method__step-label { animation-range: entry 25% entry 100%; }
    .method__step:nth-child(3) .method__step-label { animation-range: entry 35% entry 110%; }
    .method__step:nth-child(4) .method__step-label { animation-range: entry 45% entry 120%; }

    @keyframes dm-method-label-rise {
      from {
        opacity: 0;
        translate: 0 16px;
      }
      to {
        opacity: 1;
        translate: 0 0;
      }
    }

    /* ── B.4 — Bento card scroll-reveal stagger ─────────────── */
    /* CSS animation drives the reveal; hover transition stays on .service-card (separate class) */
    .service-card--stagger {
      animation: dm-card-enter linear both;
      animation-duration: auto;
      animation-timeline: view();
    }

    .service-card--stagger:nth-child(1) { animation-range: entry 0%  entry 80%; }
    .service-card--stagger:nth-child(2) { animation-range: entry 10% entry 90%; }
    .service-card--stagger:nth-child(3) { animation-range: entry 15% entry 95%; }
    .service-card--stagger:nth-child(4) { animation-range: entry 20% entry 100%; }
    .service-card--stagger:nth-child(5) { animation-range: entry 25% entry 105%; }
    .service-card--stagger:nth-child(6) { animation-range: entry 30% entry 110%; }

    @keyframes dm-card-enter {
      from {
        opacity: 0;
        translate: 0 24px;
      }
      to {
        opacity: 1;
        translate: 0 0;
      }
    }

    /* ── B.5 — Pullquote rule scale-in ──────────────────────── */
    .pullquote__rule {
      transform-origin: top center;
      animation: dm-pullquote-rule linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    @media (max-width: 767px) {
      .pullquote__rule {
        transform-origin: left center;
      }
    }

    @keyframes dm-pullquote-rule {
      from {
        opacity: 0;
        scale: 1 0;
      }
      to {
        opacity: 1;
        scale: 1 1;
      }
    }

    @media (max-width: 767px) {
      @keyframes dm-pullquote-rule {
        from {
          opacity: 0;
          scale: 0 1;
        }
        to {
          opacity: 1;
          scale: 1 1;
        }
      }
    }

    /* B.5b — Pullquote text-wrap fade-in primer */
    .pullquote__text-wrap {
      animation: dm-fade-rise linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }

    @keyframes dm-fade-rise {
      from { opacity: 0; translate: 0 16px; }
      to   { opacity: 1; translate: 0 0; }
    }

    /* ── B.6 — Quote glow drift via view-timeline ───────────── */
    /* Replaces JS quoteGlow.style.transform on supporting browsers */
    .quote {
      view-timeline-name: --dm-quote;
      view-timeline-axis: block;
    }

    .quote__glow {
      will-change: transform;
      animation: dm-glow-drift linear both;
      animation-duration: auto;
      animation-timeline: --dm-quote;
      animation-range: cover;
    }

    @keyframes dm-glow-drift {
      from { transform: translateX(-30px) translateY(0); }
      to   { transform: translateX(30px)  translateY(0); }
    }

    /* B.6b — Quote grain intensifies as dark section covers viewport */
    .quote::before {
      animation: dm-grain-intensify linear both;
      animation-duration: auto;
      animation-timeline: --dm-quote;
      animation-range: entry 50% contain 50%;
    }

    @keyframes dm-grain-intensify {
      from { opacity: 0.3; }
      to   { opacity: 0.7; }
    }

    /* ── B.7a — Contact heading line-mask rise ──────────────── */
    .cm-line-mask {
      display: block;
      overflow: hidden;
      padding-bottom: 0.06em;
      line-height: var(--leading-tight);
    }

    .cm-line-word {
      display: block;
      translate: 0 110%;
      animation: dm-line-rise linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    /* nth-child(3) because the h2 children are: mask1, <br aria-hidden>, mask2.
       The <br> sibling is child 2, making the second mask child 3.
       If the <br> is ever removed this selector must change to :nth-child(2). */
    .cm-line-mask:nth-child(3) .cm-line-word {
      animation-range: entry 10% entry 80%;
    }

    @keyframes dm-line-rise {
      from { translate: 0 110%; }
      to   { translate: 0 0; }
    }

    /* B.7b — Contact columns stagger */
    .contact__form-anim {
      opacity: 1;
      transform: none;
      transition: none;
      animation: dm-fade-rise linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    .contact__info-anim {
      opacity: 1;
      transform: none;
      transition: none;
      animation: dm-fade-rise linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 20% entry 100%;
    }

    /* B.7c — Form field stagger */
    .form-field {
      animation: dm-fade-rise linear both;
      animation-duration: auto;
      animation-timeline: view();
    }

    .contact-form .form-field:nth-child(1) { animation-range: entry 0%  entry 70%; }
    .contact-form .form-field:nth-child(2) { animation-range: entry 8%  entry 78%; }
    .contact-form .form-field:nth-child(3) { animation-range: entry 14% entry 84%; }
    .contact-form .form-field:nth-child(4) { animation-range: entry 20% entry 90%; }
    .contact-form .form-field:nth-child(5) { animation-range: entry 26% entry 96%; }
    .contact-form .form-field:nth-child(6) { animation-range: entry 32% entry 100%; }

    /* ── B.8 — Footer signature entrance ───────────────────── */
    .footer__monogram {
      animation: dm-monogram-enter linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    @keyframes dm-monogram-enter {
      from {
        opacity: 0;
        scale: 0.92;
        translate: 0 12px;
      }
      to {
        opacity: 1;
        scale: 1;
        translate: 0 0;
      }
    }

    .footer__tagline {
      animation: dm-tagline-enter linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 20% entry 80%;
    }

    @keyframes dm-tagline-enter {
      from {
        opacity: 0;
        translate: 0 8px;
      }
      to {
        opacity: 1;
        translate: 0 0;
      }
    }

    .footer__wordmark {
      animation: dm-fade-rise linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 10% entry 75%;
    }

    /* ── C.1 — Subtle horizontal drift on quote text ─────────── */
    /* --dm-quote timeline set on .quote ancestor (B.6) — no timeline-scope needed */
    .quote__content {
      animation: dm-quote-text-drift linear both;
      animation-duration: auto;
      animation-timeline: --dm-quote;
      animation-range: entry 0% exit 100%;
    }

    @keyframes dm-quote-text-drift {
      from { translate: -6px 0; }
      50%  { translate:  0   0; }
      to   { translate:  6px 0; }
    }

    /* ── C.2 — Grain overlay on about ink panel ──────────────── */
    .about__visual--ink::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
      background-size: 256px 256px;
      opacity: 0;
      pointer-events: none;
      z-index: 1;
      animation: dm-ink-grain linear both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry 30% contain 50%;
    }

    @keyframes dm-ink-grain {
      from { opacity: 0; }
      to   { opacity: 0.45; }
    }

  } /* end prefers-reduced-motion: no-preference */
} /* end @supports (animation-timeline: scroll()) */

/* ── 25. STICKY PORTRAIT ZONE ───────────────────────────────
   The .sticky-portrait-zone wraps <section.hero> and <section.about>
   so the portrait (#hero-portrait) can sticky across both sections.

   Mobile (default): portrait is removed from normal flow at desktop
   only. At mobile, portrait remains in hero flow (see original hero
   grid rules above, which still apply below 1024px).

   Desktop (>=1024px): portrait becomes a sticky float anchored to
   the right edge of the zone; hero and about text columns each
   reserve a 420px right gutter matching the original portrait column.
   The about__visual is hidden at desktop — the sticky portrait
   visually fills that role.
─────────────────────────────────────────────────────────────── */

/* Zone: establishes a containing block for the portrait on all sizes.
   Block display only — no visual styles. */
.sticky-portrait-zone {
  position: relative;
}

/* At mobile the portrait lives in the sticky-portrait-zone but we
   need to push it back into the hero visual flow. Use the hero
   section's grid gap to position it below the text column as before.
   Below 1024px: portrait is hidden here and will be shown via the
   hero section grid fallback (see next rule). */
@media (max-width: 1023px) {
  /* Hide the zone-level portrait; a matching fallback below restores
     it inside the hero grid for the mobile layout. */
  .sticky-portrait-zone > .hero__portrait {
    display: none;
  }

  /* Restore hero grid to original two-column at 768px as before. */
  /* The original hero__inner grid rules at 768px/1024px still
     apply (1fr 1fr then 1fr 420px), so we just need the portrait
     present in that grid. Inject a visual copy via CSS is not
     possible; instead, we duplicate the portrait back into hero
     by reverting the display only when inside hero__inner. */
}

/* Mobile: re-insert portrait into the hero inner grid by keeping the
   original portrait rules. Below 1024px the zone portrait is hidden
   (above), so we add a mobile-only portrait placeholder inside
   hero__inner at 768px. But since we moved the portrait OUT of
   hero__inner, we must compensate: the hero inner grid at 768px
   had two columns (text + portrait). Without the portrait in the
   grid, hero__inner collapses to one column. We restore the grid
   column count and use an ::after placeholder or simply rely on the
   1fr single-column mobile layout (which is how it looked at <768px).
   At 768-1023px we accept one-column hero text (the portrait is not
   shown at those sizes since sticky only kicks in at 1024px). */
@media (min-width: 768px) and (max-width: 1023px) {
  /* At tablet range, restore a visual portrait by un-hiding zone
     portrait and positioning it back in a two-column flex row inside
     the hero section, since it is no longer in hero__inner. */
  .sticky-portrait-zone > .hero__portrait {
    display: block;
    position: relative;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
    margin-bottom: var(--space-64);
    order: 2;
  }

  /* Wrap hero into a flex column so the zone portrait can appear
     below the hero text. We target .hero itself to become flex. */
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero__inner {
    /* Override the two-column grid since portrait is now outside. */
    grid-template-columns: 1fr;
  }
}

/* Desktop: sticky portrait */
@media (min-width: 1024px) {
  /* Zone: flex row — left content column + right portrait column */
  .sticky-portrait-zone {
    display: grid;
    grid-template-columns: 1fr 420px;
    grid-template-rows: auto auto;
    column-gap: var(--space-96);
    align-items: start;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
  }

  /* Portrait: spans both hero and about rows, sticks to top */
  .sticky-portrait-zone > .hero__portrait {
    display: block;
    grid-column: 2;
    grid-row: 1 / 3;
    position: sticky;
    /* Navbar is 4rem (64px), add 32px breathing room = 96px */
    top: 96px;
    /* Constrain height so it does not exceed viewport */
    max-height: calc(100svh - 96px);
    /* perspective for mouse tilt still works on this element */
    perspective: 1200px;
    align-self: start;
  }

  /* Hero section: occupies left column only */
  .hero {
    grid-column: 1;
    grid-row: 1;
    /* Remove the inline max-width from container since zone now
       provides the outer grid. The hero itself still has overflow:hidden
       and flex-direction: column from section 7 — keep those. */
    max-width: none;
  }

  /* hero__inner: override the max-width container centering since
     the zone now controls the outer layout. Remove side padding to
     avoid double-padding (zone already has container-pad). */
  .hero__inner.container {
    max-width: none;
    padding-inline: 0;
    /* Single text column: grid collapses to 1fr since portrait
       is no longer a grid child of hero__inner */
    grid-template-columns: 1fr;
  }

  /* About section: occupies left column only */
  .about {
    grid-column: 1;
    grid-row: 2;
    /* about has overflow:hidden from section 8 — keep it */
  }

  /* About inner: already has its own container padding logic.
     Remove the explicit right padding that was sized for its
     own portrait column since the sticky portrait now handles it. */
  .about__inner.container {
    max-width: none;
    padding-inline: 0;
    /* Single text column */
    grid-template-columns: 1fr;
  }

  /* About text: restore left padding that about__inner used to provide
     via its own container. The zone's container-pad is the outer gutter. */
  .about__text {
    padding-inline: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* Hide the about visual — the sticky portrait fills that role */
  .about__visual {
    display: none;
  }

  /* Portrait frame: fill the column width */
  .sticky-portrait-zone > .hero__portrait .hero__portrait-frame {
    max-width: none;
    width: 100%;
  }
}

/* Entrance animation: the portrait frame is still
   governed by body.is-loaded (section 7). Those rules target
   .hero__portrait-frame globally so they continue to work
   wherever .hero__portrait lives in the DOM. No change needed. */

/* Reduced motion: sticky is a layout property, not motion,
   so it stays under prefers-reduced-motion. No override needed. */

/* ── 26. STICKY PORTRAIT — SMOOTH SECONDARY EASING ────────────
   The sticky position itself provides the primary smoothness:
   the portrait holds at top:96px through hero+about, then releases
   naturally as the zone ends. To soften the transition into the
   sticky state (when the user starts scrolling), add a subtle
   scale-down on the inner mask element keyed to scroll velocity
   via existing JS-driven --scroll-opacity (which already declines
   linearly during hero scroll). No state class, no IO, no surprise
   transitions — pure layout + the existing ambient parallax. */

@media (min-width: 1024px) {
  .sticky-portrait-zone > #hero-portrait {
    /* Transform-origin nudges the perceived center toward the right edge,
       which makes the sticky landing read as "the portrait gently anchored
       in its column" instead of "centered then offset". */
    transform-origin: 75% 30%;
  }
}

/* ── 21. FIX HERO TITOLO — interlinea + overlap foto ────────── */
/* I <br> tra i .hero__line-mask (gia` display:block) creavano un
   "doppio a capo" che lasciava enormi vuoti tra "Pianificazione",
   "patrimoniale" e "su misura.". Inoltre a 1024–1280px la parola
   "Pianificazione" sforava la colonna 1fr e finiva sotto la foto. */
.hero__headline br {
  display: none;
}
.hero__line-mask {
  line-height: 1.0;
  padding-bottom: 0.02em;
}
.hero__headline {
  font-size: clamp(2.75rem, 0.5rem + 5vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-24);
}
.hero__text {
  min-width: 0;
  max-width: none;
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) 380px;
  }
}

/* ── 22. FIX NAVBAR STICKY — sfondo opaco su scroll ──────────
   Bug: scrollando sopra sezioni chiare (es. form contatti con
   input bianchi), il testo della navbar ("DN Denny Garofano",
   link "Chi sono / Servizi / Contatti") risultava praticamente
   sovrapposto al contenuto perche` lo sfondo `is-scrolled`
   precedente (0.96 + blur 8px) non offriva abbastanza separazione
   ottica contro elementi quasi dello stesso colore.

   Strategia:
   - Navbar in cima alla pagina: completamente trasparente.
   - Navbar con .is-scrolled: --bg-primary all'~85% di opacita`,
     backdrop-filter blur(12px) per il vero "glass effect",
     border-bottom hairline + box-shadow molto leggera per
     definire il piano della navbar senza appesantirla.
   - Transizione morbida 250ms su background + backdrop-filter
     in modo che l'attivazione dello stato non sia uno "scatto".

   Queste regole sovrascrivono la sezione 6 perche` arrivano dopo
   nell'ordine del file (stessa specificita`, cascata vince). */

.navbar {
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 250ms var(--ease-in-out),
              -webkit-backdrop-filter 250ms var(--ease-in-out),
              backdrop-filter 250ms var(--ease-in-out),
              box-shadow 250ms var(--ease-in-out),
              border-color 250ms var(--ease-in-out);
  border-bottom: 0.5px solid transparent;
}

.navbar.is-scrolled {
  background-color: rgba(250, 250, 247, 0.85); /* var(--bg-primary) @ 85% */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  box-shadow: 0 1px 24px rgba(14, 14, 14, 0.04);
}

/* ── 23. WCAG: oro su avorio (#B08D57 vs #FAFAF7 = 2.90:1, AA fail)
       Per testi piccoli/eyebrow usare --gold-deep (#8A6A3B = 4.52:1, AA ok). */
.overline,
.about__overline,
.services__overline,
.contact__overline,
.contact__info-label,
.section-serial,
.about__section-serial,
.method__step-label,
.hero__overline,
.preloader__counter {
  color: var(--gold-deep);
}
.overline {
  font-weight: 500;
}

/* ── 24. MOBILE HERO: H1 più contenuto, CTA sopra la piega
       L'H1 a 56px su 390px occupava tre righe enormi spingendo i CTA
       a oltre 800px di scroll. Riduco font, leading, padding hero. */
@media (max-width: 600px) {
  .hero {
    min-height: 92vh;
    padding-top: 3.5rem;
  }
  .hero__inner {
    padding-top: var(--space-16);
    gap: var(--space-24);
  }
  .hero__headline {
    font-size: clamp(2.5rem, 9vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
  }
  .hero__line-mask {
    padding-bottom: 0.04em;
    line-height: 1.02;
  }
  .hero__sub {
    font-size: 1rem;
    margin-bottom: var(--space-24);
  }
  .overline,
  .hero__overline {
    margin-bottom: var(--space-8);
  }
}

/* ── 25. METODO: descrizione sotto ogni step
       I 4 pallini + label da soli sembravano una sezione incompleta. */
.method__step-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 14ch;
  text-align: center;
  margin: var(--space-8) auto 0;
  display: block;
}
@media (max-width: 639px) {
  .method__step-desc {
    font-size: 0.75rem;
    max-width: 18ch;
  }
}

/* ── 26. FOOTER: blocco compliance per consulente finanziario */
.footer__regulatory {
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--text-muted, var(--text-secondary));
  line-height: 1.55;
  margin-block: var(--space-12);
  max-width: 30rem;
  opacity: 0.85;
}
.footer__social {
  display: inline-block;
  margin-top: var(--space-16);
  font-size: var(--size-body-sm);
  font-family: var(--font-body);
  color: var(--gold-deep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.footer__social:hover {
  border-bottom-color: var(--gold-deep);
}

/* ──────────────────────────────────────────────────────────────
   27. MOBILE OPTIMIZATION — touch target, menu, layout
   ────────────────────────────────────────────────────────────── */

/* 27.1 — Menu mobile fullscreen e completamente opaco
   Prima era 0.98 opaco con dropdown corto; il contenuto sotto si
   intravvedeva. Ora full viewport + bg solido. */
@media (max-width: 767px) {
  .navbar__mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height su iOS Safari */
    background-color: var(--bg-primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 6rem var(--container-pad) var(--space-32);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .navbar__mobile-links {
    gap: var(--space-8);
  }

  .navbar__mobile-link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    padding: var(--space-16) 0;
    letter-spacing: -0.01em;
  }
}

/* 27.2 — Hamburger button: 44×44 (Apple HIG / WCAG 2.5.5) */
.navbar__hamburger {
  width: 2.75rem;   /* 44px */
  height: 2.75rem;  /* 44px */
  padding: 0.6rem;
  cursor: pointer;
  /* Mantieni il layout interno delle 3 barre */
  position: relative;
  z-index: 30; /* sopra al menu mobile per rimanere cliccabile da chiuso */
}

/* 27.3 — Touch target sui link contatti (tel / mail) */
.contact__info-value,
a.contact__info-value {
  display: inline-block;
  padding-block: 0.5rem;
  min-height: 2.75rem;
  line-height: 1.5;
}

/* 27.4 — Footer link più cliccabili a touch */
.footer__privacy,
.footer__social,
a.footer__contact-link {
  display: inline-block;
  padding-block: 0.625rem;
  min-height: 2.75rem;
  line-height: 1.5;
}

/* 27.5 — Sezione METODO: griglia 2×2 sotto i 600px
   I 4 step in fila orizzontale a 390px sono troppo stretti
   ("ACCOMPAGNAMENTO" debordava). 2×2 dà spazio e ritmo. */
@media (max-width: 600px) {
  .method__flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-32) var(--space-16);
    max-width: 28rem;
    margin-inline: auto;
  }
  .method__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .method__step-desc {
    max-width: 16ch;
  }
}

/* 27.6 — Padding container e respiro mobile */
@media (max-width: 600px) {
  .services__header {
    padding-inline: var(--container-pad);
  }
  .service-card {
    padding: var(--space-24) var(--space-20);
  }
  .service-card__num {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }
  /* Hero overline: spazio sotto */
  .hero__overline {
    font-size: 0.625rem;
  }
  /* Form contatti più compatto */
  .form-input {
    font-size: 1rem; /* prevent iOS zoom on focus quando font < 16px */
    min-height: 2.75rem;
  }
  .form-textarea {
    min-height: 5rem;
  }
}

/* 27.7 — Sticky portrait zone disattivato a mobile
   A volte la versione mobile del .sticky-portrait-zone mostrava
   un'immagine di paesaggio fuori contesto sotto i valori di "Chi sono".
   La foto del portrait è già nel flow del hero a mobile. */
@media (max-width: 1023px) {
  .sticky-portrait-zone > #hero-portrait {
    position: static;
    transform: none;
  }
}

/* 27.8 — Citazione sezione (dark) a mobile: meno padding extra */
@media (max-width: 600px) {
  .quote__text {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    line-height: 1.35;
  }
  .quote {
    padding-block: var(--space-64);
  }
}

/* ════════════════════════════════════════════════════════════════
   28. HOME SENZA FOTO — HERO E ABOUT EDITORIALI
   Rimossi sia il ritratto hero sia il placeholder ambientale.
   La .sticky-portrait-zone (che serviva solo a rendere sticky il
   ritratto) torna un wrapper a blocco; hero e about diventano
   sezioni a colonna singola, a tutta larghezza container.
   Blocco in fondo al file: vince per cascata su 7 / 8 / 21 / 25 / 26.
   ════════════════════════════════════════════════════════════════ */

.sticky-portrait-zone {
  display: block;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  column-gap: normal;
}

/* HERO — colonna singola, headline a tutta larghezza, centrata in verticale */
.hero__inner,
.hero__inner.container {
  grid-template-columns: 1fr;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.hero__text {
  max-width: none;
}

.hero__headline {
  font-size: clamp(2.75rem, 1rem + 6vw, 7.5rem);
}

.hero__sub {
  max-width: 40rem;
}

/* ABOUT — colonna singola su tutti i breakpoint (niente colonna foto) */
.about__inner,
.about__inner.container {
  grid-template-columns: 1fr;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  gap: var(--space-32);
}

.about__text {
  padding-inline: 0;
  max-width: 52rem;
}

@media (min-width: 768px) {
  /* Hero respira in verticale senza il ritratto a riempire la colonna */
  .hero {
    min-height: 84svh;
    justify-content: center;
  }
  .hero__inner {
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .sticky-portrait-zone {
    grid-template-columns: 1fr;
  }
  .hero__inner,
  .hero__inner.container {
    grid-template-columns: 1fr;
    padding-inline: var(--container-pad);
  }
  .about__inner,
  .about__inner.container {
    grid-template-columns: 1fr;
    padding-inline: var(--container-pad);
  }
  .about__text {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── 29. WHATSAPP CANALE PRIMARIO — icona nei bottoni + CTA contatti ── */
.btn {
  gap: var(--space-8);
}

.btn__ico {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* CTA WhatsApp primario in cima ai contatti */
.contact__primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
  margin-bottom: var(--space-48);
}

.contact__wa-btn {
  font-size: var(--size-body);
  padding-block: var(--space-16);
}

.contact__primary-note,
.contact__form-intro {
  font-size: var(--size-body-sm);
  font-weight: var(--weight-light);
  color: var(--text-secondary);
}

.contact__form-intro {
  margin-bottom: var(--space-24);
}

/* ── 31. CONTATTI SENZA MODULO — solo WhatsApp + elenco info ──────
   Rimosso il form (canale primario = WhatsApp). La griglia contatti
   torna a colonna singola: CTA WhatsApp (sopra) + elenco recapiti. */
.contact__cols {
  grid-template-columns: 1fr;
  max-width: 34rem;
  gap: 0;
}

/* ── 32. PULL-QUOTE CENTRATA ──────────────────────────────────────
   "L'ascolto precede ogni strumento." era allineata a sinistra:
   la centro come colonna (filetto oro orizzontale + testo centrato). */
.pullquote__inner {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-inline: auto;
  gap: var(--space-24);
  max-width: 46rem;
}

.pullquote__rule {
  width: 80px;
  height: 1px;
  order: -1;
  transform-origin: center;
}
