/* Cantarelli — homepage prototype v3. Palette from the brief (Avorio, Pietra, Tortora, Grafite, Bianco); Jost for text, Bodoni Moda only for the name. */
:root {
  --avorio: #F5F3EF;
  --pietra: #EAE6DF;
  --tortora: #80766A;
  --grafite: #242723;
  --bianco: #FFFFFF;
  --tortora-scuro: #635B51; /* tortora darkened for small text on light grounds */
  --muted-dark: #CFC8BD;    /* secondary text on grafite */
  --tbc: #EFE2BC;

  --font: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", Didot, Georgia, serif;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-title: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);

  --m: clamp(20px, 4vw, 64px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(88px, 10vw, 160px);
  --r: 18px;          /* photos and panels: same corner as the wheel */
  --r-sm: 10px;
  --lift: 0 30px 60px -28px rgba(36, 39, 35, .45), 0 10px 20px -12px rgba(36, 39, 35, .18);
  --lift-hi: 0 44px 80px -30px rgba(36, 39, 35, .55), 0 16px 28px -14px rgba(36, 39, 35, .22);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --util-h: 38px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--avorio);
  color: var(--grafite);
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--tortora); outline-offset: 3px; }
::selection { background: var(--grafite); color: var(--avorio); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--grafite); color: var(--bianco); padding: 10px 16px; z-index: 60; border-radius: 999px; }
.skip:focus { top: 12px; }

mark.tbc { background: var(--tbc); color: var(--grafite); font-size: var(--step-small); font-weight: 400; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }

.label { font-size: var(--step-small); color: var(--tortora-scuro); letter-spacing: .04em; margin-bottom: 14px; }

/* buttons: pills that answer the press */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grafite);
  color: var(--bianco);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .16s var(--ease-out);
}
.btn::after { content: "→"; display: inline-block; transition: transform .3s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--light { background: var(--bianco); color: var(--grafite); }
.btn--ghost { background: rgba(255,255,255,.06); color: var(--bianco); border-color: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--plain::after { content: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--tortora); }
  .btn--light:hover { background: var(--pietra); }
  .btn--ghost:hover { background: var(--bianco); color: var(--grafite); border-color: var(--bianco); }
  .btn:hover::after { transform: translateX(4px); }
}
.link { text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: color .2s, text-decoration-color .2s; }
.link:hover { color: var(--tortora); text-decoration-color: currentColor; }

/* shared section head: title left, sentence right */
.head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; margin-bottom: clamp(44px, 5vw, 80px); }
.head h2 { grid-column: 1 / span 7; font-size: var(--step-title); line-height: 1.04; letter-spacing: -0.02em; }
.head p { grid-column: 8 / span 5; color: var(--tortora-scuro); max-width: 44ch; }
.head--light p { color: var(--muted-dark); }

/* ============ UTILITY BAR ============ */
.util {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  height: var(--util-h);
  background: var(--grafite); color: #D9D3C9;
  font-size: 13px; letter-spacing: .02em;
  padding: 0 var(--m);
}
.util a { text-decoration: none; margin-left: 24px; transition: color .2s; }
.util a:hover { color: var(--bianco); }

/* ============ NAV (fixed, turns solid after the hero, hides while reading down) ============ */
.nav {
  position: fixed; left: 0; right: 0; top: var(--util-h); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--m);
  color: var(--bianco);
  transition: transform .5s var(--ease-expo), background-color .4s ease, padding .4s var(--ease-expo), box-shadow .4s ease;
}
.nav.is-solid {
  transform: translateY(calc(var(--util-h) * -1));
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(36, 39, 35, .78);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav.is-solid.is-away { transform: translateY(calc(-100% - var(--util-h))); }
.nav__logo { text-decoration: none; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; font-size: 15px; }
.nav__logo span { display: block; font-weight: 300; letter-spacing: .12em; font-size: 12px; opacity: .8; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 15px; }
.nav__links a { text-decoration: none; position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-expo); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 11px 20px; font-size: 14px; }
.nav__menu { display: none; align-items: center; gap: 10px; background: none; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: 14px; letter-spacing: .04em; transition: transform .16s var(--ease-out); }
.nav__menu:active { transform: scale(.97); }
.nav__menu i { display: grid; gap: 4px; }
.nav__menu i::before, .nav__menu i::after { content: ""; width: 16px; height: 1px; background: currentColor; transition: transform .35s var(--ease-expo); }
.menu-open .nav__menu i::before { transform: translateY(2.5px) rotate(45deg); }
.menu-open .nav__menu i::after { transform: translateY(-2.5px) rotate(-45deg); }

/* full-screen menu on tablet and phone */
.menu {
  position: fixed; inset: 0; z-index: 35;
  background: var(--grafite); color: var(--avorio);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 32px;
  padding: 120px var(--m) 48px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-expo);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .nav { transform: none; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font-size: clamp(2.25rem, 8vw, 3.5rem); font-weight: 300; line-height: 1.15; text-decoration: none; letter-spacing: -.02em; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease-expo); }
.menu-open .menu nav a { opacity: 1; transform: none; }
.menu-open .menu nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .menu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu nav a:nth-child(4) { transition-delay: .15s; }
.menu-open .menu nav a:nth-child(5) { transition-delay: .2s; }
.menu p { color: var(--muted-dark); font-size: 15px; }
.menu p a { color: var(--avorio); }
.menu-open { overflow: hidden; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--util-h));
  color: var(--bianco);
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  animation: slowzoom 26s var(--ease-out) both;
}
.hero__video { /* youtube loop sized to cover the screen */
  position: absolute; top: 50%; left: 50%;
  width: max(100%, 177.78svh); height: max(100%, 56.25vw);
  transform: translate(-50%, -50%) scale(1.15);
  border: 0; pointer-events: none;
  opacity: 0; transition: opacity 1s;
}
.hero__video.is-playing { opacity: 1; }
.hero::after { /* scrim: darker at the foot, where the name sits */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,21,19,.55) 0%, rgba(20,21,19,.18) 26%, rgba(20,21,19,.25) 55%, rgba(20,21,19,.72) 100%);
}
@keyframes slowzoom { from { transform: scale(1.1); } to { transform: scale(1); } }

.hero__body { align-self: end; padding: 0 var(--m); }
.hero__lead { max-width: 36ch; font-size: var(--step-lead); font-weight: 300; line-height: 1.45; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.wordmark { margin: clamp(32px, 4.5vw, 64px) 0 0; font-weight: 300; overflow: hidden; padding-top: .06em; }
/* the name keeps the first version's face: Bodoni Moda, heavy, in capitals */
.wordmark__word {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: var(--fit, 14vw);
  line-height: .86;
  letter-spacing: -0.02em;
}
.wordmark__word .ch { display: inline-block; }
.js .wordmark__word .ch { transform: translateY(105%); }
.js .is-shown .wordmark__word .ch { transform: none; transition: transform 1.2s var(--ease-expo); transition-delay: calc(var(--k) * 45ms + 150ms); }
.wordmark, .foot__mark { min-width: 0; max-width: 100%; }
.hero__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--m) 22px; font-size: 13px; color: rgba(255,255,255,.78); }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: .06em; }
.hero__scroll i { position: relative; width: 1px; height: 34px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--bianco); animation: drip 2.2s var(--ease-expo) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
/* lead and buttons arrive after the name */
.js .hero__lead, .js .hero__btns, .js .hero__foot { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform 1s var(--ease-expo); }
.js .hero.is-shown .hero__lead { opacity: 1; transform: none; transition-delay: .55s; }
.js .hero.is-shown .hero__btns { opacity: 1; transform: none; transition-delay: .68s; }
.js .hero.is-shown .hero__foot { opacity: 1; transform: none; transition-delay: .9s; }

/* ============ TRUST ============ */
.trust { background: var(--pietra); padding: clamp(32px, 4vw, 52px) var(--m); }
.trust__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__list li { padding: 4px clamp(16px, 2vw, 32px); border-left: 1px solid rgba(36,39,35,.12); }
.trust__list li:first-child { padding-left: 0; border-left: 0; }
.trust__list strong { display: block; font-weight: 400; font-size: var(--step-lead); line-height: 1.25; margin-bottom: 4px; }
.trust__list span { color: var(--tortora-scuro); font-size: 15px; }

/* ============ PATHS: three photo doors ============ */
.paths { padding: var(--section) var(--m); }
.paths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.tile {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(420px, 40vw, 600px);
  padding: clamp(22px, 2.2vw, 32px);
  color: var(--bianco); text-decoration: none;
  border-radius: var(--r); overflow: hidden;
  box-shadow: var(--lift);
  transition: transform .6s var(--ease-expo), box-shadow .6s var(--ease-expo);
}
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,21,19,0) 30%, rgba(20,21,19,.78) 100%); transition: opacity .5s; }
.tile__n { position: absolute; top: clamp(22px, 2.2vw, 32px); left: clamp(22px, 2.2vw, 32px); font-size: 13px; letter-spacing: .1em; opacity: .85; }
.tile h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.tile p { margin-top: 10px; color: rgba(255,255,255,.82); font-size: 15px; max-width: 34ch; }
.tile__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 500; font-size: 15px; }
.tile__go::after { content: "→"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); transition: background-color .3s, color .3s, transform .4s var(--ease-expo); }
.tile:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-6px); box-shadow: var(--lift-hi); }
  .tile:hover img { transform: scale(1.06); }
  .tile:hover .tile__go::after { background: var(--bianco); color: var(--grafite); transform: translateX(4px); }
}

/* ============ WORK: the wheel ============ */
.work { padding: var(--section) 0 clamp(72px, 8vw, 120px); background: var(--grafite); color: var(--avorio); overflow: clip; }
.work .head { padding: 0 var(--m); margin-bottom: 12px; }
.work .head p { color: var(--muted-dark); }
.work__ctrl { grid-column: 8 / span 5; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.arrows { display: flex; align-items: center; gap: 10px; flex: none; }
.arrows span { font-size: 14px; color: var(--muted-dark); min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(245,243,239,.35); background: none; cursor: pointer; display: grid; place-items: center; transition: background-color .25s, border-color .25s, color .25s, transform .16s var(--ease-out); }
.arrow:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .arrow:hover { background: var(--avorio); color: var(--grafite); border-color: var(--avorio); } }
.arrow svg { width: 18px; height: 18px; }

.stage {
  --w: clamp(200px, min(18vw, 30svh), 290px);
  position: relative;
  height: calc(var(--w) * 1.333 * 1.34 + 96px);
  perspective: 2200px;
  perspective-origin: 50% 45%;
  overflow: hidden;
  overflow: clip visible;   /* cut the sides, let the shadow fall below */
  cursor: grab;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  outline-offset: -6px;
}
.stage.is-dragging { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: calc(var(--w) * 0.24 + 24px); width: var(--w); height: calc(var(--w) * 1.333); margin-left: calc(var(--w) / -2); transform-style: preserve-3d; }
.card {
  --f: 0;                       /* 0 at the side, 1 in front: set per frame by the wheel */
  position: absolute; inset: 0;
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: var(--r);
  backface-visibility: hidden;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.55);
  will-change: transform;
}
.card::before { /* the deep shadow under the card in front */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  box-shadow: 0 50px 90px -24px rgba(0,0,0,.85), 0 18px 36px -12px rgba(0,0,0,.5);
  opacity: var(--f);
}
.card img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; pointer-events: none; -webkit-user-drag: none; }
.card::after { /* a thin light edge, like polished stone catching the light */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,calc(.04 + var(--f) * .1));
}
@media (hover: hover) and (pointer: fine) { .card.is-front:hover img { filter: brightness(1.05); } }

.wcap { position: relative; text-align: center; padding: 0 var(--m); margin-top: -40px; min-height: 104px; }
.wcap strong { display: block; font-weight: 300; font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); letter-spacing: -.01em; }
.wcap span { color: var(--muted-dark); }
.wcap span b { font-weight: 400; color: var(--avorio); }
.wcap__open { margin-top: 12px; background: none; border: 0; padding: 0; color: var(--avorio); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(245,243,239,.4); cursor: pointer; font-size: 15px; }
.wcap__open:hover { text-decoration-color: currentColor; }
.wcap.is-changing > * { opacity: 0; transform: translateY(6px); filter: blur(3px); }
.wcap > * { transition: opacity .25s, transform .3s var(--ease-out), filter .25s; }

.work__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin: clamp(40px, 5vw, 64px) var(--m) 0; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(245,243,239,.12); text-align: center; }
.work__cta p { flex: 1 1 100%; font-size: var(--step-lead); font-weight: 300; }
.work__cta .link { color: var(--muted-dark); }
.work__cta .link:hover { color: var(--avorio); }

/* detail: the photo zooms out of the wheel */
.detail { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: clamp(24px, 3vw, 56px); padding: clamp(20px, 4vw, 56px) var(--m); align-items: center; visibility: hidden; color: var(--avorio); }
.detail::before { content: ""; position: absolute; inset: 0; background: rgba(20,21,19,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .45s; }
.detail.is-open { visibility: visible; }
.detail.is-open::before { opacity: 1; }
.detail__pic { position: relative; height: min(84svh, 860px); justify-self: end; aspect-ratio: 3 / 4; max-width: 100%; }
.detail__pic img { width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; border-radius: var(--r); box-shadow: 0 40px 90px -20px rgba(0,0,0,.8); }
.detail__pic img.is-fading { opacity: 0; transition: opacity .2s; }
.detail__info { position: relative; opacity: 0; transform: translateY(16px); transition: opacity .4s .25s, transform .5s .25s var(--ease); max-height: 84svh; overflow: auto; }
.detail.is-open .detail__info { opacity: 1; transform: none; }
.detail__place { color: var(--muted-dark); font-size: 14px; letter-spacing: .04em; margin: 0 0 10px; }
.detail__info h2 { margin: 0 0 18px; font-weight: 300; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.01em; }
.detail__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 32px; margin: 0 0 22px; padding: 16px 0; border-top: 1px solid rgba(245,243,239,.15); border-bottom: 1px solid rgba(245,243,239,.15); }
.detail__facts dt { font-size: 13px; color: var(--muted-dark); }
.detail__desc { margin: 0 0 16px; }
.detail__role { margin: 0 0 24px; color: var(--muted-dark); font-size: 15px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.thumbs button { width: 76px; height: 76px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r-sm); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s, transform .2s var(--ease-out); }
.thumbs button:hover { transform: translateY(-2px); }
.thumbs button[aria-pressed="true"] { outline-color: var(--avorio); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); }
.close { position: absolute; top: clamp(16px, 2.4vw, 32px); right: clamp(16px, 2.4vw, 32px); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(245,243,239,.35); background: none; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .3s .2s, background-color .25s, transform .16s var(--ease-out); }
.close:active { transform: scale(.94); }
.detail.is-open .close { opacity: 1; }
.close:hover { background: rgba(245,243,239,.12); }
.close svg { width: 18px; height: 18px; }

/* ============ METHOD ============ */
.method { padding: var(--section) var(--m); background: var(--bianco); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); counter-reset: step; }
.steps li { position: relative; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-size: 13px; letter-spacing: .12em; color: var(--tortora); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--pietra); }
.steps .pic { border-radius: var(--r); overflow: hidden; }
.steps img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: saturate(.9); transition: transform 1.2s var(--ease-expo); }
.steps li:hover img { transform: scale(1.04); }
.steps h3 { font-size: var(--step-lead); font-weight: 400; margin-top: 20px; }
.steps mark.tbc { white-space: normal; }
.steps p { margin-top: 8px; color: var(--tortora-scuro); font-size: 15px; line-height: 1.55; }

/* ============ SHOP ============ */
.shop { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--pietra); }
.shop__plate { padding: var(--section) 0 var(--section) var(--m); }
.shop__plate .pic { border-radius: var(--r); overflow: hidden; box-shadow: var(--lift); }
.shop__plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .3s, filter .3s, transform .5s var(--ease-out); }
.shop__plate img.is-swapping { opacity: 0; filter: blur(6px); transform: scale(1.02); }
.shop__side { padding: var(--section) var(--m); align-self: center; }
.shop__side h2 { font-size: var(--step-title); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 18px; }
.shop__side > p { max-width: 46ch; }
.shop__pick { margin-top: 32px; font-size: var(--step-small); color: var(--tortora-scuro); }
.shop__tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.shop__tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 84px; padding: 0; background: none; border: 0; cursor: pointer;
  font: 400 13px/1.3 var(--font); color: var(--tortora-scuro);
  transition: color .2s, transform .16s var(--ease-out);
}
.shop__tabs button:active { transform: scale(.96); }
.shop__tabs img { width: 84px; height: 64px; object-fit: cover; border-radius: var(--r-sm); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s, transform .3s var(--ease-out), box-shadow .3s; }
.shop__tabs button:hover img { transform: translateY(-2px); box-shadow: 0 10px 18px -10px rgba(36,39,35,.5); }
.shop__tabs button[aria-selected="true"] img { outline-color: var(--grafite); }
.shop__tabs button[aria-selected="true"] { font-weight: 500; color: var(--grafite); }
.shop__model { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; max-width: 460px; margin-top: 28px; padding: 18px 0; border-top: 1px solid rgba(36,39,35,.15); border-bottom: 1px solid rgba(36,39,35,.15); font-size: var(--step-lead); font-weight: 300; }
.shop__model strong { font-weight: 500; white-space: nowrap; }
.shop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.shop__note { margin-top: 24px; font-size: 15px; color: var(--tortora-scuro); max-width: 52ch; }

/* ============ MATERIALS ============ */
.mat { padding: var(--section) var(--m); }
.mat__intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.mat__intro h2 { grid-column: 1 / span 7; font-size: var(--step-title); line-height: 1.04; letter-spacing: -.02em; }
.mat__intro p { grid-column: 8 / span 5; color: var(--tortora-scuro); }
.mat__btns { grid-column: 8 / span 5; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 24px; }
.mat__families { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(48px, 6vw, 88px); }
.fam { background: var(--bianco); padding: 30px; border-radius: var(--r); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 0 rgba(36,39,35,.04); transition: transform .5s var(--ease-expo), box-shadow .5s var(--ease-expo); }
@media (hover: hover) and (pointer: fine) { .fam:hover { transform: translateY(-4px); box-shadow: var(--lift); } }
.fam h3 { font-size: clamp(1.4rem, 1.1rem + .8vw, 1.85rem); font-weight: 300; letter-spacing: -.01em; padding-bottom: 14px; border-bottom: 1px solid var(--pietra); margin-bottom: 4px; }
.fam p { font-size: 15px; }
.fam__use { color: var(--tortora-scuro); margin-top: auto; padding-top: 12px; }
.mat__pro { margin-top: 28px; color: var(--tortora-scuro); }

/* ============ VIDEOS ============ */
.videos { padding: var(--section) var(--m); background: var(--grafite); color: var(--avorio); }
.videos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.video { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.video__pic { position: relative; display: block; overflow: hidden; margin-bottom: 18px; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.video__pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.video__pic i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--bianco); display: grid; place-items: center; font-style: normal; font-size: 20px; padding-left: 4px; transition: transform .5s var(--ease-expo), background-color .3s, color .3s; }
@media (hover: hover) and (pointer: fine) {
  .video:hover .video__pic img { transform: scale(1.04); }
  .video:hover .video__pic i { transform: translate(-50%, -50%) scale(1.1); background: var(--bianco); color: var(--grafite); }
}
.video strong { font-size: var(--step-lead); font-weight: 300; }
.video span:last-child { color: var(--muted-dark); font-size: 15px; }

/* ============ ABOUT ============ */
.about { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; padding: var(--section) var(--m); }
.about__pic { grid-column: 1 / span 6; }
.about__pic .pic { border-radius: var(--r); overflow: hidden; box-shadow: var(--lift); }
.about__pic img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about__pic figcaption { margin-top: 12px; font-size: 13px; color: var(--tortora-scuro); }
.about__text { grid-column: 8 / span 5; }
.about__text h2 { font-size: var(--step-title); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 22px; }
.about__text p + p { margin-top: 14px; }
.about__text .btn { margin-top: 30px; }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: var(--section) var(--m); background: var(--pietra); }
.contact__info { grid-column: 1 / span 5; }
.contact__info h2 { font-size: var(--step-title); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 36px; }
.contact__info dl { display: grid; gap: 22px; }
.contact__info dt { font-size: 13px; color: var(--tortora-scuro); }
.contact__info dd a { text-decoration: none; }
.contact__info dd a:hover { color: var(--tortora); }
.contact__ask { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 12px; }
.ask { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bianco); padding: 28px 30px; border-radius: var(--r); text-decoration: none; transition: background-color .35s ease, color .35s ease, transform .5s var(--ease-expo), box-shadow .5s var(--ease-expo); }
.ask strong { display: block; font-size: var(--step-lead); font-weight: 400; }
.ask span { color: var(--tortora-scuro); font-size: 15px; transition: color .35s; }
.ask i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(36,39,35,.18); font-style: normal; font-size: 18px; transition: transform .45s var(--ease-expo), border-color .35s, background-color .35s, color .35s; }
.ask:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .ask:hover { background: var(--grafite); color: var(--bianco); transform: translateY(-3px); box-shadow: var(--lift); }
  .ask:hover span { color: var(--muted-dark); }
  .ask:hover i { transform: translateX(4px); background: var(--bianco); color: var(--grafite); border-color: var(--bianco); }
}
.contact__note { margin-top: 8px; font-size: 15px; color: var(--tortora-scuro); }

/* ============ FOOTER ============ */
.foot { background: var(--grafite); color: var(--avorio); padding: 72px var(--m) 28px; display: grid; grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--gap); font-size: 15px; color: var(--muted-dark); }
.foot__first { color: var(--bianco); font-weight: 500; margin-bottom: 8px; }
.foot__cols a { text-decoration: none; transition: color .2s; }
.foot__cols a:hover { color: var(--bianco); }
.foot__mark { margin: clamp(72px, 10vw, 140px) 0 0; color: var(--bianco); overflow: hidden; padding-top: .06em; }
.foot__legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(245,243,239,.1); font-size: 13px; color: #B8B0A4; display: grid; gap: 6px; }

/* ============ MOTION ============ */
/* parts of each section rise in turn; photos open from the bottom edge */
.js [data-rise] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s var(--ease-expo); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-rise].in { opacity: 1; transform: none; }
.js [data-reveal] { clip-path: inset(100% 0 0 0 round var(--r)); transition: clip-path 1.3s var(--ease-expo); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal] img { transform: scale(1.12); transition: transform 1.6s var(--ease-expo); transition-delay: inherit; }
.js [data-reveal].in { clip-path: inset(0 0 0 0 round var(--r)); }
.js [data-reveal].in img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise], .js [data-reveal], .js [data-reveal] img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .js .wordmark__word .ch, .js .hero__lead, .js .hero__btns, .js .hero__foot { opacity: 1; transform: none; transition: none; }
  .hero__bg, .hero__scroll i::after { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ============ TABLET ============ */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
  .trust__list { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .trust__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .paths__grid { grid-template-columns: 1fr 1fr; }
  .paths__grid .tile:last-child { grid-column: 1 / -1; min-height: 380px; }
  .work__ctrl { grid-column: 1 / -1; margin-top: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .mat__families { grid-template-columns: repeat(2, 1fr); }
  .about__pic, .about__text { grid-column: 1 / -1; }
  .about__text { margin-top: 40px; }
  .contact__info, .contact__ask { grid-column: 1 / -1; }
  .contact__ask { margin-top: 48px; }
  .detail { grid-template-columns: 1fr; align-content: start; overflow: auto; padding-top: 72px; }
  .detail::before { position: fixed; background: #141513; }
  .detail__pic { justify-self: stretch; height: auto; width: 100%; max-height: 70svh; }
  .detail__info { max-height: none; overflow: visible; }
}
@media (min-width: 1025px) { .menu { display: none; } }

/* ============ PHONE ============ */
@media (max-width: 720px) {
  .util p:first-child { display: none; }
  .util { justify-content: flex-end; }
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .hero { padding-top: 80px; }
  .hero__btns .btn { flex: 1 1 100%; justify-content: center; }
  .hero__scroll { display: none; }
  .hero__foot { justify-content: flex-end; text-align: right; }
  .head h2, .head p, .mat__intro h2, .mat__intro p, .mat__btns { grid-column: 1 / -1; }
  .head p, .mat__intro p { margin-top: 14px; }
  .trust__list { grid-template-columns: 1fr 1fr; }
  .trust__list li { padding: 0 0 0 14px; }
  .trust__list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .paths__grid { grid-template-columns: 1fr; }
  .paths__grid .tile:last-child { grid-column: auto; }
  .tile { min-height: 440px; }
  .stage { --w: 58vw; }
  .arrows { display: none; }
  .work__ctrl p { margin-top: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .shop { grid-template-columns: 1fr; }
  .shop__plate { padding: 56px var(--m) 0; }
  .shop__side { padding-top: 40px; }
  .shop__tabs button, .shop__tabs img { width: 60px; }
  .shop__tabs img { height: 48px; }
  .mat__families { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .videos__grid { grid-template-columns: 1fr; }
  .detail__facts { grid-template-columns: 1fr 1fr; }
}
