/*
 * NAMO redesign: "Il fascicolo del Game Master".
 * Loaded on the front page after namo.css. Every class is prefixed d- and every custom
 * property is declared on .d-sec / .d-foot, so nothing here reaches the OG hero, the header
 * or the manifesto, quiz and privacy pages that namo.css still drives.
 *
 * Faces (one reason each):
 * Big Shoulders Display: a condensed civic-signage face built for street banners, it reads as an instruction shouted across a square.
 * Familjen Grotesk: a grotesque with slightly eccentric terminals, it reads as case-file text typed for a person, not a machine.
 */

.d-sec {
  --night: #14123a;
  --night-2: #211d63;
  --violet: #6c4dff;
  --violet-deep: #4b2fd6;
  --gold: #ffd31a;
  --paper: #f6f4ff;
  --ink: #14123a;
  --ink-soft: #4a4577;
  --lilac: #cfc8ff;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --text: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(16px, 4vw, 40px);
  --ring: var(--gold);
}

/* ---------- surfaces: each one sets its own focus ring so it always contrasts ---------- */
.d-night { --ring: var(--gold); background: var(--night); color: #fff; }
.d-violet { --ring: var(--gold); background: var(--violet); color: #fff; }
.d-gold { --ring: var(--night); background: var(--gold); color: var(--ink); }
.d-paper { --ring: var(--night); background: var(--paper); color: var(--ink); }
.d-card { --ring: var(--night); background: var(--paper); color: var(--ink); }

.d-sec { position: relative; padding: clamp(72px, 9vw, 130px) 0 clamp(64px, 8vw, 110px); font: 400 1.125rem/1.6 var(--text); }
.d-sec, .d-sec *, .d-sec *::before, .d-sec *::after { box-sizing: border-box; }
.d-sec :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
.d-sec :where(ul, ol) { padding: 0; list-style: none; }
.d-sec :where(img, svg) { display: block; max-width: 100%; }
.d-sec a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.d-sec :focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.d-sec ::selection { background: var(--gold); color: var(--night); }

.d-wrap { width: min(1200px, 100% - 2 * var(--gut)); margin-inline: auto; position: relative; }

/* ---------- shared dossier parts ---------- */
.d-clue { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 3vw, 36px); font: 600 .8125rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.d-clue b { flex: 0 1 auto; padding: 9px 12px 7px; background: var(--gold); color: var(--night); font: 800 1.125rem/1 var(--display); letter-spacing: .08em; border-radius: 4px; }
.d-clue b span { font: 600 .9375rem/1.2 var(--text); letter-spacing: .02em; text-transform: none; }
.d-gold .d-clue b, .d-paper .d-clue b, .d-card .d-clue b { background: var(--night); color: var(--gold); }

.d-sec :is(h2, h3, h4) { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: .005em; text-wrap: balance; overflow-wrap: normal; max-width: none; }
.d-sec h2 { font-size: clamp(2.75rem, 7.2vw, 6rem); }
.d-sec :is(h2, h3) em { font-style: normal; }
.d-stamp { display: inline-block; font: 800 1rem/1 var(--display); letter-spacing: .14em; padding: 10px 14px 8px; background: var(--night); color: var(--gold); border: 2px dashed var(--gold); border-radius: 0; transform: rotate(-4deg); }

.d-stub { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; font: 700 .9375rem/1 var(--text); letter-spacing: .06em; text-decoration: none; color: inherit; border: 2px dashed currentColor; border-radius: 6px; transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.d-stub svg, .d-btn svg, .d-tgo svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.d-stub:hover { background: var(--paper); color: var(--violet-deep); border-style: solid; transform: translateY(2px); }

/* ---------- the OG hero meets the first clue ---------- */
/* Same join at every width: the hero ends flat in night, then the 12px tear strip (see perforation below) opens INDIZIO 01. */
.home .hero { position: relative; border-radius: 0; }
.home .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 0; pointer-events: none; background: linear-gradient(to bottom, transparent, #14123a); }
.d-problem { padding-bottom: clamp(72px, 9vw, 120px); overflow: hidden; }

/* The OG hero sits under the dossier strip (sticky, in flow): it fills the rest of the first viewport. Anchors clear the strip through html scroll-padding (redesign-head.css). */
.home .hero { height: calc(100svh - var(--d-head-h)); min-height: 680px; padding-top: 56px; }
@media (max-width: 800px) { .home .hero { height: auto; min-height: calc(100dvh - var(--d-head-h)); padding-top: 40px; } }

/* ---------- 01 problem ---------- */
.d-problem h2 { color: var(--ink); max-width: 11ch; }
.d-problem h2 span { display: block; }
.d-problem h2 .d-b { color: var(--violet-deep); }
.d-mistero { position: absolute; z-index: 2; right: -2%; top: 20px; width: clamp(150px, 27vw, 360px); height: auto; }
.d-problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(40px, 6vw, 80px); align-items: end; }
.d-struck { font: 900 clamp(2.5rem, 6vw, 5rem)/1 var(--display); text-transform: uppercase; }
.d-struck span { position: relative; display: inline-block; }
.d-struck span::after { content: ""; position: absolute; left: -1%; right: -1%; top: 54%; height: 3px; background: rgba(75, 47, 214, .55); }
.d-bigbody { font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.35; max-width: 28ch; }
.d-bigbody strong { font: 900 clamp(1.9rem, 3.4vw, 3rem)/1 var(--display); text-transform: uppercase; display: block; }

/* ---------- 02 moment ---------- */
.d-mcard { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(20px, 4vw, 56px); padding: clamp(14px, 2vw, 20px); border-radius: 14px; }
.d-mphoto { position: relative; min-height: clamp(320px, 44vw, 600px); border-radius: 8px; overflow: hidden; }
.d-mphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-mphoto .d-stamp { position: absolute; left: 18px; bottom: 22px; }
.d-mcopy { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(8px, 2vw, 28px) clamp(4px, 2vw, 28px) clamp(8px, 2vw, 28px) 0; }
.d-mcopy h2 em { color: var(--violet); }
.d-lead { max-width: 40ch; font-size: clamp(1.125rem, 1.6vw, 1.375rem); }
.d-mname { display: grid; gap: 10px; padding-top: 22px; }
.d-rubber { justify-self: start; transform: rotate(-3deg); padding: 8px 14px 6px; border: 3px solid var(--violet-deep); color: var(--violet-deep); border-radius: 6px; font: 900 1.75rem/1 var(--display); letter-spacing: .06em; }
.d-core { font: 700 clamp(1.25rem, 2vw, 1.625rem)/1.25 var(--text); max-width: 26ch; }
.d-needs { color: var(--ink-soft); font-weight: 600; }

/* ---------- 03 feed ---------- */
.d-fgrid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.d-fcopy h2 span { display: block; }
.d-fcopy h2 span:last-child { color: var(--gold); }
.d-fcopy p { margin-top: 22px; max-width: 34ch; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); }
.d-fcopy .d-accent { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.3; color: #fff; }
.d-fcopy .d-accent strong { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.d-slipwrap { filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .5)); transform: rotate(2.5deg); max-width: 440px; justify-self: center; width: 100%; }
.d-slip { --n: 56%; padding: 20px 20px 24px; border-radius: 8px; -webkit-mask: radial-gradient(circle 11px at 0 var(--n), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--n), #0000 97%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 11px at 0 var(--n), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--n), #0000 97%, #000) right / 51% 100% no-repeat; }
.d-slip-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.d-slip-top b { font: 900 1.75rem/1 var(--display); }
.d-slip-top span { font: 600 .875rem/1 var(--text); letter-spacing: .16em; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.d-slip-photo { position: relative; aspect-ratio: 5 / 4; border-radius: 6px; overflow: hidden; }
.d-slip-photo img { width: 100%; height: 100%; object-fit: cover; }
.d-slip-photo .d-stamp { position: absolute; left: 12px; bottom: 14px; font-size: .9375rem; }
.d-slip-caption { margin-top: 24px; padding-top: 20px; display: grid; gap: 8px; position: relative; }
.d-slip-caption span { font: 700 .8125rem/1 var(--text); letter-spacing: .16em; color: var(--violet-deep); }
.d-slip-caption p { font: 900 clamp(1.9rem, 3vw, 2.4rem)/1 var(--display); text-transform: uppercase; }
.d-slip-caption small { font-size: .9375rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- 04 steps and quiz ---------- */
.d-route { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); position: relative; }
.d-route::before { content: ""; position: absolute; left: 0; right: 0; top: clamp(32px, 4vw, 48px); border-top: 3px dashed var(--gold); opacity: .55; }
.d-route li { position: relative; }
.d-num { position: relative; display: inline-block; padding-right: 18px; margin-bottom: 18px; background: var(--night); color: var(--gold); font: 900 clamp(3.5rem, 6vw, 6rem)/.9 var(--display); font-variant-numeric: tabular-nums; }
.d-route h3 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 12px; }
.d-route p { max-width: 28ch; color: var(--lilac); font-size: 1.1875rem; }
.d-route strong { color: var(--gold); }
.d-quiz { position: relative; margin-top: clamp(120px, 14vw, 180px); }
.d-sapori { position: absolute; z-index: 0; right: clamp(8%, 14vw, 16%); bottom: calc(100% - 22px); width: clamp(110px, 14vw, 180px); height: auto; margin-bottom: -2px; pointer-events: none; }
.d-ticketfx { position: relative; z-index: 1; filter: drop-shadow(0 24px 20px rgba(0, 0, 0, .5)); }
.d-ticket { --n: 50%; --ring: var(--gold); display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: clamp(16px, 3vw, 48px); padding: clamp(22px, 3.4vw, 44px) clamp(24px, 4vw, 56px); background: var(--gold); color: var(--night); text-decoration: none; border-radius: 10px; -webkit-mask: radial-gradient(circle 14px at 0 var(--n), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% var(--n), #0000 97%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 14px at 0 var(--n), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% var(--n), #0000 97%, #000) right / 51% 100% no-repeat; transition: background-color .3s var(--ease); }
.d-tsmall { grid-column: 1; font: 700 .875rem/1 var(--text); letter-spacing: .18em; margin-bottom: 8px; }
.d-ticket strong { grid-column: 1; font: 900 clamp(2rem, 5.2vw, 4.25rem)/.92 var(--display); text-transform: uppercase; text-wrap: balance; }
.d-tgo { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; background: var(--night); color: var(--gold); font: 900 1.375rem/1 var(--display); letter-spacing: .08em; border-radius: 6px; transition: transform .4s var(--ease); }
.d-ticket:hover { background: #fff; }
.d-ticket:hover .d-tgo { transform: translateX(6px); }
/* the ticket mask clips an outside outline, so the ring is drawn inside it on the night button */
.d-ticket:focus-visible { outline: 0; }
.d-ticket:focus-visible .d-tgo { outline: 3px solid var(--gold); outline-offset: 3px; box-shadow: 0 0 0 9px var(--night); }

/* ---------- 05 world ---------- */
.d-world { overflow: hidden; }
.d-whead { display: grid; gap: clamp(20px, 3vw, 32px); }
.d-whead h2 { color: var(--ink); }
.d-startlist { max-width: 36ch; font: 700 clamp(1.25rem, 2vw, 1.625rem)/1.35 var(--text); color: var(--ink-soft); }
.d-startlist strong { color: var(--ink); }
.d-trackbar { display: flex; justify-content: flex-start; gap: 10px; margin-top: 4px; }
.d-arrow { width: 52px; height: 52px; display: grid; place-items: center; padding: 0; background: var(--night); color: var(--gold); border: 0; border-radius: 50%; cursor: pointer; transition: transform .3s var(--ease), background-color .3s var(--ease); }
.d-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.d-arrow:hover:not(:disabled) { background: var(--violet-deep); transform: scale(1.06); }
.d-arrow:disabled { background: #c9c3ea; color: var(--ink-soft); cursor: default; }
.d-wraptrack { margin-top: 18px; }
.d-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 4px 34px; scrollbar-color: var(--violet-deep) #d9d4f6; scrollbar-width: thin; }
.d-track:focus-visible { outline-offset: -3px; }
.d-spot { position: relative; flex: 0 0 min(330px, 78vw); aspect-ratio: 3 / 4.1; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--night); color: #fff; border-radius: 10px; overflow: hidden; transform: rotate(var(--r, -1.2deg)); box-shadow: 0 22px 30px -18px rgba(0, 0, 0, .45); transition: transform .5s var(--ease); }
.d-spot:nth-child(even) { --r: 1.1deg; margin-top: 20px; }
.d-spot:hover { transform: rotate(0) translateY(-6px); }
.d-spot img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.d-spot div { padding: 18px 20px 22px; }
.d-spot h3 { font-size: 1.875rem; color: var(--gold); margin-bottom: 6px; }
.d-spot p { color: var(--lilac); font-size: 1.0625rem; line-height: 1.4; }

/* ---------- 06 tube ---------- */
.d-tube { padding-bottom: clamp(72px, 9vw, 120px); overflow: hidden; }
.d-tube-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.d-tube-copy h2 { margin-bottom: 24px; }
.d-tube-copy > p { font-size: clamp(1.125rem, 1.7vw, 1.375rem); margin-bottom: 22px; }
.d-tube-copy > p.d-clue { font-size: .8125rem; margin-bottom: clamp(20px, 3vw, 36px); }
.d-tube-stage { position: relative; width: min(470px, 100%); aspect-ratio: 1; justify-self: center; }
.d-ring { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; }
.d-ring text { font: 800 25px var(--display); letter-spacing: .08em; fill: var(--gold); }
.d-disc { position: absolute; left: 12.5%; top: 16%; width: 75%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); box-shadow: 0 26px 40px -18px rgba(0, 0, 0, .45); }
.d-tube-tag { position: absolute; left: 4%; bottom: 8%; z-index: 2; }
.d-tube-img { position: absolute; left: 50%; top: 53.5%; height: 118%; width: auto; max-width: none; transform: translate(-50%, -50%); filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .45)); }

/* ---------- 07 team ---------- */
.d-tintro { display: grid; gap: 22px; max-width: 900px; }
.d-tintro h2 { color: var(--ink); font-size: clamp(2.4rem, 6vw, 5rem); }
.d-tintro p { max-width: 52ch; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-soft); }
.d-bio { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.d-statement { font: 900 clamp(2.5rem, 6vw, 5rem)/.95 var(--display); color: var(--violet-deep); }
.d-statement small { display: block; margin-top: 22px; font: 600 clamp(1.0625rem, 1.5vw, 1.25rem)/1.4 var(--text); color: var(--ink); max-width: 32ch; }
.d-pluses li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-top: 2px dashed rgba(20, 18, 58, .3); transition-delay: calc(var(--i, 0) * 90ms); }
.d-pluses li:last-child { border-bottom: 2px dashed rgba(20, 18, 58, .3); }
.d-pluses strong { width: 36px; height: 36px; display: grid; place-items: center; background: var(--night); color: var(--gold); border-radius: 50%; font: 900 1.5rem/1 var(--display); }
.d-pluses span { font-size: 1.125rem; max-width: 46ch; }
.d-close { margin-top: clamp(40px, 6vw, 72px); padding: clamp(28px, 4vw, 56px); background: var(--night); color: #fff; border-radius: 14px; font: 700 clamp(1.4rem, 2.6vw, 2.25rem)/1.3 var(--text); }
.d-close strong { color: var(--gold); font: 900 clamp(2rem, 4.2vw, 3.5rem)/1 var(--display); text-transform: uppercase; display: block; margin-top: 8px; }

/* ---------- 08 vision, 09 partner ---------- */
.d-vision h2 { max-width: 11ch; }
.d-vbody { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 80px); margin-top: clamp(28px, 4vw, 48px); color: var(--lilac); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); }
.d-vbody p:first-child { font: 700 clamp(1.5rem, 2.6vw, 2.25rem)/1.15 var(--text); color: #fff; max-width: 20ch; }
.d-vbody p:last-child { max-width: 44ch; }
.d-words { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 56px); }
.d-words li { padding: 12px 18px 10px; border: 2px dashed var(--gold); color: var(--gold); border-radius: 4px; font: 800 1.375rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; transform: rotate(var(--r, -2deg)); }
.d-words li:nth-child(even) { --r: 1.6deg; }
.d-words li:nth-child(3n) { --r: -.6deg; }
.d-partner { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(64px, 9vw, 120px); padding: clamp(24px, 4vw, 56px); border-radius: 14px; }
.d-partner h3 { font-size: clamp(2.5rem, 4.6vw, 4rem); margin-bottom: 20px; }
.d-partner h3 em { color: var(--violet); }
.d-partner-copy > p:last-child { max-width: 36ch; color: var(--ink-soft); font-size: 1.1875rem; }

/* ---------- 10 preview ---------- */
.d-preview { padding-bottom: clamp(72px, 9vw, 130px); }
.d-pgrid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.d-alert { display: inline-block; margin-bottom: 18px; padding: 10px 18px 8px; background: var(--night); color: var(--gold); font: 900 clamp(1.4rem, 2.4vw, 2rem)/1 var(--display); letter-spacing: .08em; transform: rotate(-2.5deg); border-radius: 4px; }
.d-preview h2 { color: var(--ink); margin-bottom: 22px; }
.d-plead { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.35; max-width: 28ch; }
.d-perks { margin-top: 26px; display: grid; gap: 0; max-width: 420px; }
.d-perks li { position: relative; padding: 12px 0 12px 40px; border-top: 2px dashed rgba(20, 18, 58, .4); font-weight: 600; }
.d-perks li:last-child { border-bottom: 2px dashed rgba(20, 18, 58, .4); }
.d-perks li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd31a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- scroll reveal: tear / slide, one grammar ---------- */
.motion-ready .d-sec .reveal-item { opacity: 1; clip-path: none; transform: none; transition: none; }
.js-motion .d-sec [data-reveal] { transition: clip-path 1000ms var(--ease) calc(var(--i, 0) * 110ms), transform 1000ms var(--ease) calc(var(--i, 0) * 110ms), opacity 300ms linear calc(var(--i, 0) * 110ms); }
.js-motion .d-sec [data-reveal]:not(.in) { opacity: 0; }
.js-motion .d-sec [data-reveal][data-from=l]:not(.in) { clip-path: inset(-60px calc(100% - 2px) -60px 0); transform: translateX(calc(var(--gut) * -.9)) rotate(-.8deg); }
.js-motion .d-sec [data-reveal][data-from=r]:not(.in) { clip-path: inset(-60px 0 -60px calc(100% - 2px)); transform: translateX(calc(var(--gut) * .9)) rotate(.8deg); }
.js-motion .d-sec [data-reveal][data-from=b]:not(.in) { clip-path: inset(-60px -60px calc(100% - 2px) -60px); transform: translateY(40px); }
.js-motion .d-sec [data-reveal].in { clip-path: inset(-80px); }
.js-motion .d-mistero { transition: transform 900ms var(--ease); }
.js-motion .d-sapori { transition: transform 900ms var(--ease) 500ms; }
.js-motion .d-sapori:not(.in) { transform: translateY(60%); }

@media (max-width: 1000px) {
  .d-mcard, .d-fgrid, .d-bio, .d-tube-grid, .d-pgrid, .d-partner { grid-template-columns: 1fr; }
  .d-fgrid { gap: 48px; }
  .d-mcopy { padding: 8px 8px 16px; }
  .d-problem-grid, .d-vbody { grid-template-columns: 1fr; }
  .d-problem-grid { align-items: start; }
  .d-tube-stage { margin-top: 12px; }
  .d-route { grid-template-columns: 1fr; gap: 36px; }
  .d-route::before { display: none; }
  .d-route li { padding-left: 0; border-top: 2px dashed rgba(255, 211, 26, .4); padding-top: 18px; }
}
@media (max-width: 700px) {
  .d-sec { font-size: 1.0625rem; }
  .d-mistero { top: -6px; width: 128px; right: -4px; }
  .d-problem h2 { max-width: 9ch; padding-top: 70px; }
  .d-clue { flex-wrap: wrap; gap: 8px 10px; }
  .d-mphoto { min-height: 280px; }
  .d-rubber { font-size: 1.5rem; }
  .d-ticket { grid-template-columns: 1fr; padding: 24px 26px 28px; row-gap: 14px; }
  .d-tgo { grid-column: 1; grid-row: auto; justify-self: start; }
  .d-tube-stage { width: min(420px, 100%); }
  .d-trackbar { margin-top: 20px; }
  .d-spot { flex-basis: 76vw; }
}

@media (prefers-reduced-motion: reduce) {
  .d-sec *, .d-sec *::before, .d-sec *::after { transition-duration: .01ms !important; animation: none !important; }
  .d-spot, .d-spot:hover { transform: none; }
}

/* ---------- dossier perforation ---------- */
.d-problem::before, .d-moment::before, .d-feed::before, .d-steps::before, .d-world::before, .d-tube::before, .d-team::before, .d-vision::before, .d-preview::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; z-index: 3; pointer-events: none; background: radial-gradient(circle at 50% 0, var(--prev) 6.5px, transparent 7px) 0 0 / 24px 12px repeat-x; }
.d-problem { --prev: var(--night); } .d-moment { --prev: var(--gold); } .d-feed { --prev: var(--night); } .d-steps { --prev: var(--violet); }
.d-world { --prev: var(--night); } .d-tube { --prev: var(--paper); } .d-team { --prev: var(--violet); } .d-vision { --prev: var(--paper); }
.d-preview { --prev: var(--night); }
.d-mname::before, .d-slip-caption::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 6px; background: radial-gradient(circle, currentColor 1.7px, transparent 2.2px) 0 50% / 11px 6px repeat-x; opacity: .55; }
.d-mname { position: relative; }
.d-mcopy { position: relative; }
.d-mcopy::before { content: ""; position: absolute; left: calc(clamp(20px, 4vw, 56px) / -2 - 3px); top: 8px; bottom: 8px; width: 6px; background: radial-gradient(circle, rgba(20, 18, 58, .45) 1.7px, transparent 2.2px) 50% 0 / 6px 11px repeat-y; }
/* Pulled cards: ::before is the tilted backing sheet, ::after is the flat face. Content is never rotated. */
.d-mcard, .d-partner, .d-box-dark { isolation: isolate; }
.d-mcard.d-card, .d-partner.d-card { background: none; }
.d-mcard::before, .d-partner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #d8d1ff; border-radius: 14px; rotate: 1.8deg; }
.d-mcard::after, .d-partner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); border-radius: 14px; box-shadow: 0 28px 50px -24px rgba(0, 0, 0, .6); }
@media (max-width: 1000px) { .d-mcopy::before { display: none; } }
.home main { overflow-x: clip; }

/* ---------- forms: the real namo/form block, restyled as dossier cards ---------- */
/* The tilt lives on backing sheets (::before). Controls and their text are never rotated. */
.d-box { position: relative; --ring: var(--night); color: var(--ink); }
.d-box [hidden] { display: none !important; }
.d-box form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; color: inherit; }
.d-box form::before { content: none; display: none; }
.d-box .partner-message, .d-box form button, .d-box .form-note, .d-box form small, .d-box .form-error, .d-box .form-kicker, .d-box .consent { grid-column: 1 / -1; }
.d-box form label:not(.consent) { display: grid; gap: 7px; align-content: start; margin: 0; color: inherit; font: 700 .8125rem/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; }
.d-box form :is(input:not([type=checkbox]), select, textarea) { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 11px 14px; background: #fff; color: var(--ink); border: 2px solid var(--night); border-radius: 6px; font: 400 1rem/1.4 var(--text); letter-spacing: 0; text-transform: none; transition: border-color .2s var(--ease); }
.d-box form :is(input:not([type=checkbox]), select, textarea):hover { border-color: var(--violet-deep); }
.d-box form textarea { resize: vertical; min-height: 104px; }
.d-box form :is(input, textarea)::placeholder { color: #6a6590; opacity: 1; }
.d-box form select:invalid { color: #6a6590; }
.d-box form :is(input, select, textarea, button, a):focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
.d-box form button[type=submit] { grid-column: 1 / -1; isolation: auto; position: relative; overflow: visible; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; margin: 0; padding: 0 28px; background: var(--gold); color: var(--night); border: 2px solid var(--night); border-radius: 999px; box-shadow: none; font: 900 1.5rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-align: center; cursor: pointer; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .3)); transition: transform .35s var(--ease), background-color .3s var(--ease); }
.d-box form button[type=submit]::before { content: none; display: none; }
.d-box form button[type=submit]:hover { background: #fff; color: var(--night); box-shadow: none; transform: translateY(-2px); }
.d-box form button[type=submit]:active { transform: translateY(1px) scale(.98); }
.d-box form button[type=submit]:disabled { opacity: .65; cursor: wait; transform: none; }
.d-box form button[type=submit]:focus-visible { border-radius: 999px; }
.d-box form small, .d-box .form-note { margin: 0; color: inherit; font-size: .9375rem; line-height: 1.45; opacity: .92; }
.d-box .form-note { color: var(--ink-soft); opacity: 1; }
.d-box .form-note a, .d-box .consent a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.d-box .form-error { margin: 0; padding: 12px 14px; background: #fde8e8; color: #8f0e13; border-radius: 6px; font: 700 .9375rem/1.4 var(--text); }
.d-box .form-kicker { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 0 18px; background: none; border-radius: 0; transform: none; color: var(--gold); font: 900 1.625rem/1 var(--display); letter-spacing: .08em; }
.d-box .form-kicker::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: radial-gradient(circle, currentColor 1.7px, transparent 2.2px) 0 50% / 11px 6px repeat-x; opacity: .55; }
.d-box .consent { display: grid !important; grid-template-columns: 28px 1fr; align-items: start; gap: 12px; min-height: 44px; margin: 0; color: inherit; font: 400 .9375rem/1.45 var(--text) !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }
.d-box .consent input { width: 26px !important; height: 26px; margin: 2px 0 0 !important; padding: 0 !important; accent-color: var(--gold); }

/* success states */
.d-box :is(.success, .partner-success) { display: grid; gap: 12px; justify-items: start; margin: 0; padding: clamp(16px, 3vw, 32px) 0; background: none; border: 0; border-radius: 0; color: inherit; }
.d-box :is(.success, .partner-success) span { display: block; font-size: 1rem; color: inherit; }
.d-box :is(.success, .partner-success) svg { width: 56px; height: 56px; padding: 12px; background: var(--gold); color: var(--night); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.d-box :is(.success, .partner-success) :is(h3, h4) { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.d-box :is(.success, .partner-success) p { margin: 0; color: inherit; font-size: 1.125rem; }

/* dark card (explorer preview) */
.d-box-dark { --ring: var(--gold); color: #fff; padding: clamp(24px, 3.4vw, 44px); border-radius: 14px; }
.d-box-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--violet-deep); border-radius: 14px; rotate: -1.8deg; }
.d-box-dark::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--night); border-radius: 14px; box-shadow: 0 28px 50px -22px rgba(0, 0, 0, .5); }
.d-box-dark form { grid-template-columns: 1fr; }
.d-box-dark form button[type=submit] { border-color: var(--gold); }
.d-box-dark .form-note, .d-box-dark form small { color: #fff; }
.d-box-dark .form-error { background: #ffe1e1; color: #7a0b10; }

/* partner card: dotted perforation between the copy and the form */
.d-partner .d-box::before { content: ""; position: absolute; left: calc(clamp(24px, 4vw, 64px) / -2 - 3px); top: 4px; bottom: 4px; width: 6px; background: radial-gradient(circle, rgba(20, 18, 58, .45) 1.7px, transparent 2.2px) 50% 0 / 6px 11px repeat-y; }

@media (max-width: 1000px) { .d-partner .d-box::before { display: none; } }
@media (max-width: 700px) {
  .d-box form { grid-template-columns: 1fr; }
  .d-box .partner-message, .d-box form button, .d-box .form-note, .d-box .form-error { grid-column: auto; }
}
