/* =========================================================
   DLG — Didi Luxury Gemstones
   ========================================================= */

/* Display font.
   The print totems use Nimbus Sans D OT Black Extended. If you buy the
   webfont licence, drop the file in /assets/fonts/ as
   nimbus-sans-extended-black.woff2 and uncomment the block below:
   the site will use it automatically, falling back to Archivo Expanded.

@font-face {
  font-family: "Nimbus Sans Extended";
  src: url("/assets/fonts/nimbus-sans-extended-black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
*/

:root {
  --paper: #ffffff;
  --stone: #f4f0ea;
  --sand: #e8dfd2;
  --ink: #111110;
  --ink-2: #3a3a38;
  --muted: #76726b;
  --line: rgba(17, 17, 16, .14);
  --red: #9a1512;

  --display: "Nimbus Sans Extended", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1560px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-stretch: 100%;
  font-weight: 400;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display, .display-s, .mat-name, .facts strong, .idx-name, .marquee span {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .92;
  margin: 0;
}
.display   { font-size: clamp(44px, 8.4vw, 150px); }
.display-s { font-size: clamp(30px, 4.2vw, 68px); line-height: .98; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: #fff; }

.lead { font-size: clamp(20px, 1.9vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 0;
  font: 600 13px/1 var(--text);
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 0; border-bottom: 1px solid var(--ink);
  background: none; cursor: pointer;
  transition: gap .4s var(--ease), color .3s;
}
.btn span { transition: transform .4s var(--ease); }
.btn:hover { gap: 22px; color: var(--red); border-color: var(--red); }
.btn--solid {
  padding: 20px 30px; border: 0;
  background: var(--ink); color: #fff;
  transition: background .3s, gap .4s var(--ease);
}
.btn--solid:hover { background: var(--red); color: #fff; }
.btn--solid[disabled] { opacity: .5; cursor: wait; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  color: #fff;
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  justify-self: start;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .5s, transform .5s var(--ease);
  pointer-events: none;
}
.site-header.is-solid .brand { opacity: 1; transform: none; pointer-events: auto; }
.brand-word { font: 900 18px/1 var(--display); font-stretch: 125%; letter-spacing: .04em; }

.nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.2vw, 36px); }
.nav a, .nav-cta {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; position: relative; padding: 6px 0; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { justify-self: end; grid-column: 3; border: 1px solid currentColor; padding: 10px 18px; transition: background .3s, color .3s; }
.nav-cta:hover { background: #fff; color: var(--ink); }
.site-header.is-solid .nav-cta:hover { background: var(--ink); color: #fff; }

.menu-btn {
  display: none; justify-self: end; grid-column: 3;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: inherit;
  position: relative;
}
.menu-btn span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease);
}
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--paper);
  padding: calc(var(--header-h) + 40px + env(safe-area-inset-top)) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity .4s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu:not(.is-open) { pointer-events: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font: 900 clamp(24px, 7vw, 40px)/1.05 var(--display); font-stretch: 125%;
  text-transform: uppercase; text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 14px; align-items: baseline;
}
.mobile-menu nav small { font: 600 11px var(--text); letter-spacing: .15em; color: var(--red); min-width: 22px; }
.mobile-menu-foot { font-size: 15px; line-height: 1.9; }
.mobile-menu-foot a { text-decoration: none; }

@media (max-width: 1180px) {
  .nav, .nav-cta { display: none; }
  .menu-btn { display: block; }
  body.menu-open .site-header { color: var(--ink); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.menu-open .brand { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  color: #fff;
  overflow: hidden;
  background: #2a241d;
  display: grid; place-items: center;
}
.hero-media, .hero-poster, .hero-poster img, .hero-video, .hero-shade {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-poster img, .hero-video { object-fit: cover; object-position: center; }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero.is-playing .hero-video { opacity: 1; }
.hero-shade {
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.05) 60%, rgba(0,0,0,.55) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,.28), rgba(0,0,0,0) 70%);
}

.hero-inner {
  position: relative; z-index: 2;
  width: min(86vw, 1100px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2.5vw, 34px);
}
.hero-logo { margin: 0; width: 100%; }
.hero-logo img {
  width: 100%; height: auto;
  filter: drop-shadow(0 2px 30px rgba(0,0,0,.25));
  animation: logoIn 1.8s var(--ease) .2s both;
}
@media (max-width: 767px) {
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.15) 65%, rgba(0,0,0,.55) 100%),
      radial-gradient(ellipse at center, rgba(0,0,0,.45), rgba(0,0,0,0) 75%);
  }
  .hero-sub { font-size: 15px; }
}
@keyframes logoIn {
  from { opacity: 0; transform: translateY(24px) scale(.98); -webkit-mask-position: 0 100%; }
  to   { opacity: 1; transform: none; }
}
.hero-kicker, .hero-sub { margin: 0; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.hero-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.hero-kicker::before, .hero-kicker::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.hero-sub { max-width: 34ch; font-size: clamp(15px, 1.25vw, 19px); opacity: .92; }

.hero-scroll {
  position: absolute; z-index: 2; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
}
.hero-scroll i { width: 1px; height: 46px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hero-scroll i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff;
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { to { top: 110%; } }

/* ---------- Intro ---------- */
.intro {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 180px) var(--gutter) clamp(70px, 9vw, 150px);
  text-align: center;
}
.intro-gem { width: clamp(150px, 16vw, 250px); height: auto; margin: 0 auto clamp(48px, 6vw, 90px); }
.intro-title { margin-bottom: clamp(48px, 6vw, 96px); }
.intro-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 110px);
  text-align: left; align-items: start;
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.intro-grid p { margin: 0; }
.intro-grid p:last-child { color: var(--ink-2); padding-top: .45em; }

.facts {
  list-style: none; padding: 0; margin: clamp(56px, 7vw, 110px) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.facts li {
  padding: 34px 20px 0; text-align: left;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { font-size: clamp(40px, 5.4vw, 90px); }
.facts span { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }

@media (max-width: 760px) {
  .intro-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts li { border-left: 0; padding: 26px 0; border-bottom: 1px solid var(--line); flex-direction: row; align-items: center; justify-content: space-between; }
  .facts span { text-align: right; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 34px) 0;
  background: var(--stone);
}
.marquee-track {
  display: flex; align-items: center; gap: clamp(24px, 3vw, 50px);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-size: clamp(34px, 6vw, 96px); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--ink);
}
.marquee span:nth-of-type(3n+2) { color: var(--ink); -webkit-text-stroke: 0; }
.marquee b { color: var(--red); font-size: clamp(14px, 1.6vw, 24px); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Section head ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.section-head .eyebrow { margin: 0; }

/* ---------- Index ---------- */
.index {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 10vw, 160px) var(--gutter);
  position: relative;
}
.index .section-head { flex-direction: row-reverse; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-list a {
  display: grid; grid-template-columns: 70px 1fr auto 50px; align-items: center; gap: 20px;
  padding: clamp(22px, 2.6vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  transition: padding .5s var(--ease), color .3s;
}
.index-list a::before {
  content: ""; position: absolute; inset: 0; background: var(--stone); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.idx { font-size: 12px; font-weight: 600; letter-spacing: .15em; color: var(--red); }
.idx-name { font-size: clamp(24px, 3.2vw, 52px); transition: transform .5s var(--ease); }
.idx-type { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.idx-arrow { display: flex; justify-self: end; transform: rotate(45deg); transition: transform .5s var(--ease), color .3s; }
.idx-arrow .arr { width: 30px; height: 30px; }
@media (hover: hover) {
  .index-list a:hover { padding-inline: 24px; }
  .index-list a:hover::before { transform: scaleY(1); }
  .index-list a:hover .idx-arrow { transform: rotate(0deg); color: var(--red); }
}
.index-preview {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: 240px; aspect-ratio: 5 / 7;
  pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.85);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  overflow: hidden;
}
.index-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 900px) { .index-preview { display: none; } }
@media (max-width: 700px) {
  .index-list a { grid-template-columns: 40px 1fr 30px; row-gap: 6px; }
  .idx-type { grid-column: 2; grid-row: 2; }
  .idx-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .idx-arrow .arr { width: 22px; height: 22px; }
}

/* ---------- Material ---------- */
.material { padding-bottom: clamp(80px, 10vw, 170px); }

.mat-hero {
  position: relative;
  height: 92vh; height: 92svh; min-height: 520px; max-height: 1100px;
  overflow: hidden; color: #fff;
  background: var(--sand);
}
.mat-hero-img, .mat-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* image taller than its frame: the parallax slides it so the whole photo is seen while scrolling */
.mat-hero-img img { object-fit: cover; height: 150%; top: -25%; will-change: transform; }
.mat-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 35%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}
.mat-hero-text {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + clamp(28px, 4vw, 60px));
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 24px; row-gap: 18px;
  align-items: start;
}
.tag {
  grid-column: 1 / -1; justify-self: start;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  padding: 9px 14px;
}
.mat-num {
  font: 300 clamp(14px, 1.2vw, 18px)/1 var(--text); letter-spacing: .2em;
  align-self: start; padding-top: .5em;
  border-top: 1px solid rgba(255,255,255,.7);
}
.mat-name { font-size: clamp(40px, 8.8vw, 160px); text-shadow: 0 2px 40px rgba(0,0,0,.2); }

.mat-body {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.mat-copy {
  grid-column: 2 / span 5; grid-row: 1;
  padding-top: clamp(64px, 8vw, 130px);
}
.mat-copy > p:not(.eyebrow) { color: var(--ink-2); max-width: 52ch; }
.mat-copy .display-s { margin-bottom: 32px; }
.mat-vertical {
  grid-column: 8 / span 5; grid-row: 1;
  margin: calc(-1 * clamp(120px, 16vw, 280px)) 0 0;
  position: relative; z-index: 3;
}
.mat-vertical img { width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; }
figcaption {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  padding-top: 14px; display: flex; gap: 10px; align-items: center;
}
figcaption::before { content: ""; width: 18px; height: 1px; background: var(--red); }

.material--flip .mat-copy { grid-column: 7 / span 5; }
.material--flip .mat-vertical { grid-column: 1 / span 5; }

.specs { margin: 38px 0 40px; border-top: 1px solid var(--ink); }
.specs div {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.specs dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.specs dd { margin: 0; font-weight: 500; }

.mat-strip {
  max-width: var(--max); margin: clamp(70px, 9vw, 150px) auto 0;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(12px, 2vw, 32px);
  align-items: start;
}
.mat-strip figure { margin: 0; }
.mat-strip img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.mat-strip figure:nth-child(2) { margin-top: clamp(40px, 7vw, 120px); }
.mat-strip figure:nth-child(3) img { aspect-ratio: 3 / 4; }
.mat-strip--two { grid-template-columns: 1fr 1.4fr; }
.mat-strip--two figure:nth-child(2) { margin-top: 0; }
.mat-strip--two figure:nth-child(1) { margin-top: clamp(40px, 7vw, 120px); }
.mat-strip--two figure:nth-child(2) img { aspect-ratio: 16 / 10; }

@media (max-width: 900px) {
  .mat-body { display: flex; flex-direction: column; }
  .mat-vertical, .material--flip .mat-vertical { margin: 48px 0 0; width: 100%; }
  .mat-vertical img { aspect-ratio: 1 / 1; }
  .mat-copy { padding-top: 56px; }
  .mat-strip, .mat-strip--two { grid-template-columns: 1fr 1fr; }
  .mat-strip figure:first-child { grid-column: 1 / -1; }
  .mat-strip figure:nth-child(2) { margin-top: 0; }
  .mat-strip figure:nth-child(3) { margin-top: 40px; }
  .mat-strip--two figure:nth-child(1) { margin-top: 0; }
  .mat-strip--two figure:nth-child(2) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .mat-hero-text { column-gap: 14px; }
}

/* ---------- Scale band ---------- */
.scale {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff;
  margin-bottom: clamp(0px, 2vw, 20px);
}
.scale-img, .scale-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scale-img img { object-fit: cover; height: 150%; top: -25%; will-change: transform; }
.scale::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,14,8,.75), rgba(20,14,8,.25)); }
.scale-text {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 120px var(--gutter);
}
.scale-text .display { font-size: clamp(40px, 7.4vw, 130px); }
.scale-text em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px #fff; display: inline-block; }
.scale-text p:last-child { max-width: 44ch; margin-top: 40px; font-size: clamp(16px, 1.3vw, 20px); opacity: .9; }

/* ---------- Contact ---------- */
.contact {
  background: var(--stone);
  padding: clamp(80px, 10vw, 170px) var(--gutter);
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(48px, 7vw, 140px);
  align-items: start;
}
.contact > * { min-width: 0; }
.contact-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.contact-intro .display { margin-bottom: 30px; }
.contact-intro > p { max-width: 42ch; color: var(--ink-2); }
.contact-list { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--ink); }
.contact-list li {
  display: grid; grid-template-columns: 100px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.contact-list span { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-list a { text-decoration: none; font-weight: 500; }
@media (max-width: 560px) {
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
.contact-list a:hover { color: var(--red); }

.form { display: flex; flex-direction: column; gap: 26px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .chips legend {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.field em, .chips em { font-style: normal; color: var(--muted); font-weight: 400; letter-spacing: .08em; text-transform: none; margin-left: 6px; }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(17,17,16,.35);
  border-radius: 0;
  padding: 10px 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.field.is-invalid > span { color: var(--red); }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { padding: 0; margin-bottom: 12px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 10px 16px;
  border: 1px solid rgba(17,17,16,.3);
  font-size: 13px; font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.consent.is-invalid { color: var(--red); }

.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 15px; font-weight: 500; }
.form-status.ok { color: #2d6a3e; }
.form-status.err { color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .field input, .field textarea { font-size: 16px; } /* avoids iOS zoom on focus */
  .btn--solid { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(70px, 9vw, 140px) var(--gutter) calc(30px + env(safe-area-inset-bottom));
  max-width: var(--max); margin: 0 auto;
}
.footer-logo { max-width: 1100px; margin: 0 auto clamp(60px, 8vw, 110px); }
.footer-logo svg { width: 100%; height: auto; display: block; }
.footer-logo .formitalia-link path, .footer-logo .formitalia-link polygon, .footer-logo .formitalia-link rect { transition: fill .3s; }
.footer-logo .formitalia-link:hover path,
.footer-logo .formitalia-link:hover polygon,
.footer-logo .formitalia-link:hover rect:not(.hit) { fill: var(--red); stroke: var(--red); }
.footer-logo .formitalia-link:focus-visible { outline: 2px solid var(--red); }

.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--ink);
  padding: 28px 0 60px;
  font-size: 15px;
}
.footer-grid div { display: flex; flex-direction: column; gap: 6px; }
.footer-grid span { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--red); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 20px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(12% 0 12% 0); transition: clip-path 1.4s var(--ease); }
.js .reveal-img img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.js .reveal-img.in { clip-path: inset(0 0 0 0); }
.js .reveal-img.in img { transform: scale(1); }
/* big images: the whole block (photo + shading + text) is revealed together; the photo itself only moves with the parallax */
.js .mat-hero.reveal-img img, .js .mat-hero.reveal-img.in img { transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-img, .js .reveal-img img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .hero-logo img { animation: none; }
}

@media (min-width: 1181px) {
  .mobile-menu { display: none !important; }
  body.menu-open { overflow: auto; }
}

/* ---------- Supply ---------- */
.supply {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(80px, 10vw, 160px);
}
.supply-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.supply-list li {
  padding: 34px clamp(16px, 2.4vw, 40px) 10px;
  border-left: 1px solid var(--line);
}
.supply-list li:first-child { border-left: 0; padding-left: 0; }
.supply-list h3 {
  font: 900 clamp(26px, 2.8vw, 44px)/.95 var(--display); font-stretch: 125%;
  text-transform: uppercase; margin: 22px 0 18px;
}
.supply-list p { margin: 0; color: var(--ink-2); max-width: 34ch; }
@media (max-width: 760px) {
  .supply-list { grid-template-columns: 1fr; }
  .supply-list li { border-left: 0; padding: 28px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Required fields ---------- */
.req { font-style: normal; color: var(--red); }
.req-note { margin: -6px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Arrows (SVG, so iOS never turns them into emoji) ---------- */
.arr { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; display: inline-block; vertical-align: -.2em; }
.btn span { display: inline-flex; }
.btn:hover span { transform: translateX(4px); }
.mobile-menu nav small .arr { width: 14px; height: 14px; vertical-align: -2px; }
.mat-strip picture, .mat-vertical picture { display: block; }

/* ---------- Finished slab ---------- */
.mat-slab {
  max-width: var(--max); margin: clamp(70px, 9vw, 150px) auto 0;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
}
.mat-slab-img { grid-column: 1 / span 6; margin: 0; }
.mat-slab-img img { width: 100%; height: auto; aspect-ratio: 990 / 1400; object-fit: cover; }
.mat-slab-text { grid-column: 8 / span 4; }
.mat-slab-text .display-s { margin-bottom: 28px; }
.mat-slab-text > p:not(.eyebrow) { color: var(--ink-2); max-width: 40ch; margin: 0 0 32px; }
.material--flip .mat-slab-img { grid-column: 7 / span 6; grid-row: 1; }
.material--flip .mat-slab-text { grid-column: 2 / span 4; grid-row: 1; }
@media (max-width: 900px) {
  .mat-slab { display: flex; flex-direction: column; align-items: stretch; }
  .mat-slab-text { padding-top: 40px; }
}
