/* Francesco Coppo, portfolio v2 "Console": neumorfismo scuro + bento brutalista.
   Regole: solo colori pieni (nessuna sfumatura), ombre solo come rilievo/incasso o ombra piena brutalista. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --base: #2B2D31;
  --hi: #383B40;
  --lo: #1B1C1F;
  --ink: #F1F0EA;
  --mute: #B3B7BD;
  --line: #45484F;
  --ctrl: #808590;
  --black: #141518;
  --acid: #E8F03A;
  --on-acid: #16171A;
  --teal: #45D6B4;

  --raise: -7px -7px 16px var(--hi), 9px 9px 20px var(--lo);
  --raise-sm: -4px -4px 9px var(--hi), 5px 5px 11px var(--lo);
  --sink: inset 6px 6px 14px var(--lo), inset -6px -6px 14px var(--hi);
  --sink-sm: inset 3px 3px 7px var(--lo), inset -3px -3px 7px var(--hi);
  --hard: 8px 8px 0 var(--black);

  --r: 22px;
  --r-sm: 14px;
  --gap: 18px;
  --pad: clamp(20px, 2.2vw, 34px);
  --font: "Archivo", "Arial Narrow", Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 420;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* Focus sempre visibile */
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; border-radius: 6px; }
.tile--acid :focus-visible { outline-color: var(--black); }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  background: var(--acid); color: var(--on-acid); padding: 12px 18px; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; vertical-align: -2px; }
.icon--lg { width: 34px; height: 34px; }

/* ---------- Barra ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1640px; margin: 0 auto; padding: 16px 20px 14px;
}
.bar__name { font-weight: 800; font-stretch: 112%; text-decoration: none; font-size: 17px; }
.bar__nav ul { display: flex; gap: 6px; }
.bar__nav a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 560;
  color: var(--mute); transition: color .2s, box-shadow .2s;
}
.bar__nav a:hover { color: var(--ink); box-shadow: var(--sink-sm); }

/* ---------- Griglia bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 20px var(--gap);
}
.bento + .bento { padding-top: calc(var(--gap) * 2); }

.tile {
  position: relative;
  border-radius: var(--r);
  padding: var(--pad);
  min-width: 0;
}
.tile--raised { background: var(--base); border: 2px solid var(--line); box-shadow: var(--raise); }
.tile--acid { background: var(--acid); color: var(--on-acid); border: 2px solid var(--black); box-shadow: var(--hard); }
.tile--black { background: var(--black); color: var(--ink); border: 2px solid var(--black); box-shadow: var(--hard); }

/* Tessere-link: si premono (rilievo -> incasso) */
:where(a.tile) { text-decoration: none; display: block; }
.tile--press { transition: box-shadow .22s ease, transform .22s ease, border-color .22s; }
.tile--press:active, .tile--press.is-pressed { box-shadow: var(--sink); transform: scale(.992); }
.tile--press-hard { transition: box-shadow .16s ease, transform .16s ease; }
.tile--press-hard:active { box-shadow: 0 0 0 var(--black); transform: translate(8px, 8px); }
@media (hover: hover) and (pointer: fine) {
  .tile--press:hover { box-shadow: var(--sink); border-color: var(--ctrl); }
  .tile--press-hard:hover { box-shadow: 3px 3px 0 var(--black); transform: translate(5px, 5px); }
}

/* ---------- Schermata 1 ---------- */
.bento--hero { min-height: calc(100svh - 70px); }
.bento--hero { grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr); }
.t-hero { grid-column: 1 / 7; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.t-strip { grid-column: 1 / 7; grid-row: 2; }
.t-work { grid-column: 7 / 10; grid-row: 1 / 3; }
.t-mark { grid-column: 10 / 13; grid-row: 1; }
.t-cta  { grid-column: 10 / 13; grid-row: 2; }

/* Striscia del metodo (tessera nera) */
.t-strip { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; color: var(--ink); }
.strip__title { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--acid); }
.strip__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.strip__step { display: flex; flex-direction: column; gap: 10px; }
.strip__step .digits {
  font-stretch: 125%; font-weight: 300; font-size: clamp(40px, 4.4vw, 76px); letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; padding-bottom: 8px; border-bottom: 3px solid #4A4D54; height: auto;
}
.strip__step:first-child .digits { border-bottom-color: var(--acid); }
.strip__step .digit { height: 1em; }
.strip__name { font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--mute); }
.strip__step:first-child .strip__name { color: var(--ink); }
.strip__list { display: none; }

h1 { display: flex; flex-direction: column; gap: 22px; }
.h1-big {
  font-weight: 900; font-stretch: 88%;
  font-size: clamp(54px, 8.4vw, 150px);
  line-height: .86; letter-spacing: -0.035em;
  max-width: 7.2em;
}
.h1-sub {
  font-weight: 640; font-stretch: 105%;
  font-size: clamp(21px, 1.9vw, 30px); line-height: 1.15; letter-spacing: -0.01em;
  max-width: 22em; color: var(--ink);
}
.hero__bio { font-size: clamp(16px, 1.15vw, 19px); color: var(--mute); max-width: 38em; }

/* C in rilievo: l'oggetto monocromatico della pagina (stesso segno della foto profilo) */
.t-mark { display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.mark {
  display: block;
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(150px, 15vw, 260px); line-height: .8;
  color: #2F3237;
  -webkit-text-stroke: 2px #4A4E55;
  text-shadow: -6px -6px 10px #3E4147, 9px 9px 16px #141517;
  margin: 0 0 0 -4px;
  transition: text-shadow .22s ease;
}
.mark__dot { color: var(--acid); -webkit-text-stroke: 0; text-shadow: none; }
.t-mark:active .mark, .t-mark.is-pressed .mark { text-shadow: 3px 3px 4px var(--lo), -2px -2px 3px var(--hi); }
@media (hover: hover) and (pointer: fine) {
  .t-mark:hover .mark { text-shadow: 3px 3px 4px var(--lo), -2px -2px 3px var(--hi); }
}
.mark__caption { display: flex; flex-direction: column; gap: 2px; }
.mark__name { font-weight: 800; font-size: 19px; }
.mark__handle { color: var(--mute); font-size: 15px; }

/* CTA gialla */
.t-cta { display: flex; flex-direction: column; gap: 14px; }
.cta__big { font-weight: 900; font-stretch: 86%; font-size: clamp(30px, 2.6vw, 46px); line-height: .92; letter-spacing: -0.03em; padding-right: 44px; margin-bottom: auto; }
.cta__text { font-size: clamp(16px, 1.1vw, 18px); font-weight: 540; line-height: 1.3; max-width: 22em; }
.cta__alt { font-size: 15px; font-weight: 600; text-underline-offset: 3px; align-self: flex-start; }

.ast { color: currentColor; }
.ast--corner { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; }
.ast--note { width: 13px; height: 13px; vertical-align: 6px; margin-left: 1px; color: var(--acid); }
.ast--inline { width: 14px; height: 14px; vertical-align: -1px; color: var(--acid); }
.ast--big { position: absolute; right: var(--pad); top: var(--pad); width: clamp(48px, 6vw, 92px); height: clamp(48px, 6vw, 92px); }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: var(--r-sm);
  font-family: inherit; font-size: 17px; font-weight: 700; text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease;
}
.btn--ink { background: var(--black); color: var(--ink); border: 2px solid var(--black); box-shadow: 5px 5px 0 #6B6F12; }
.btn--ink:active { transform: translate(5px, 5px); box-shadow: 0 0 0 #6B6F12; }
.btn--acid { background: var(--acid); color: var(--on-acid); border: 2px solid var(--black); box-shadow: 4px 4px 0 var(--black); }
.btn--acid:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--black); }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #6B6F12; }
}

/* Lavoro nella prima schermata */
.t-work { display: flex; flex-direction: column; gap: 22px; padding: 16px; }
.well {
  display: block; overflow: hidden; border-radius: var(--r-sm);
  background: var(--base); box-shadow: var(--sink); padding: 12px;
}
.well img { border-radius: 8px; }
.well--phone { flex: 1 1 auto; min-height: 0; padding: 14px 14px 0; }
.well--phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 8px 8px 0 0; }
.work__text { display: flex; flex-direction: column; gap: 4px; padding: 0 8px 6px; }
.work__title { font-weight: 900; font-stretch: 92%; font-size: clamp(28px, 2.4vw, 40px); line-height: 1; letter-spacing: -0.02em; }
.work__meta { color: var(--mute); font-size: 15px; }
.work__go { margin-top: 6px; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Schermata 2: percorso ---------- */
.h2 {
  font-weight: 900; font-stretch: 90%;
  font-size: clamp(34px, 3.6vw, 60px); line-height: .94; letter-spacing: -0.03em;
}
.t-path { grid-column: 1 / 8; display: flex; flex-direction: column; gap: 28px; }
.t-incl { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 22px; }

.path__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; }
.path__head .h2 { max-width: 9em; }

.switch-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px; box-shadow: var(--sink-sm); border: 2px solid var(--line); }
.switch__label { font-weight: 700; font-size: 16px; color: var(--mute); cursor: pointer; user-select: none; transition: color .2s; }
.switch__label.is-on { color: var(--ink); }
.switch {
  position: relative; width: 66px; height: 36px; flex: none; padding: 0; cursor: pointer;
  border-radius: 999px; border: 2px solid var(--ctrl); background: var(--base);
  box-shadow: var(--sink-sm);
  transition: background-color .25s ease, border-color .25s ease;
}
.switch__knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); box-shadow: 2px 2px 5px var(--lo);
  transition: transform .28s cubic-bezier(.3, 1.4, .5, 1);
}
.switch[aria-checked="true"] { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 14px #2F8F7A; }
.switch[aria-checked="true"] .switch__knob { transform: translateX(30px); background: var(--black); }
.switch:focus-visible { outline-offset: 4px; border-radius: 999px; }

.flows { display: grid; gap: 28px; }
.flow__title { font-size: 15px; font-weight: 640; color: var(--mute); margin-bottom: 14px; }
.flow__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.flow__steps li { position: relative; display: flex; }
.flow__steps li + li::before {
  content: ""; position: absolute; left: -27px; top: 50%; width: 20px; height: 3px; background: var(--ctrl);
}
.node {
  flex: 1; display: flex; align-items: flex-end; min-height: 150px;
  padding: 16px; border-radius: var(--r-sm); border: 2px solid var(--line);
  box-shadow: var(--raise-sm); font-weight: 760; font-stretch: 95%; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.12;
  transition: transform .35s ease, opacity .35s ease;
}
.node--weak { box-shadow: var(--sink-sm); color: var(--mute); border-style: dashed; border-color: var(--ctrl); }
.node--goal { background: var(--teal); color: var(--black); border-color: var(--teal); box-shadow: 5px 5px 0 var(--black); }
.t-path .flows { flex: 1; align-content: center; }
.flow__note { margin-top: 18px; max-width: 46em; color: var(--mute); }

/* Con JavaScript si vede un percorso alla volta; senza, entrambi */
.js .flows { grid-template-areas: "f"; }
.js .flow { grid-area: f; transition: opacity .3s ease, visibility .3s; }
.js .flows[data-state="profilo"] .flow--landing,
.js .flows[data-state="landing"] .flow--profilo { opacity: 0; visibility: hidden; }
.js .flows[data-state="profilo"] .flow--landing .node,
.js .flows[data-state="landing"] .flow--profilo .node { transform: translateY(14px); }
.js .flow .flow__steps li:nth-child(2) .node { transition-delay: .06s; }
.js .flow .flow__steps li:nth-child(3) .node { transition-delay: .12s; }

/* Cosa comprende (tessera nera) */
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.incl div { padding: 12px 0; border-top: 2px solid #3A3C42; }
.incl dt { font-weight: 760; }
.incl dd { color: var(--mute); font-size: 15px; line-height: 1.35; }
.incl__extra { color: var(--mute); font-size: 15px; margin-top: auto; }

/* ---------- Schermata 3: Studio Riva ---------- */
.t-shot { grid-column: 1 / 9; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .3fr); grid-template-rows: auto 1fr; gap: 16px 18px; padding: 16px; }
.t-shot .well--desk { grid-column: 1; grid-row: 1; }
.t-shot .case__brief { grid-column: 1; grid-row: 2; align-self: end; padding: 6px 8px 8px; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.4; max-width: 40em; }
.t-shot .case__brief strong { color: var(--acid); }
.t-shot .well--mob { grid-column: 2; grid-row: 1 / 3; }
.t-shot .well--mob { padding-bottom: 0; align-self: start; }
.t-shot .well--mob img { width: 100%; border-radius: 8px 8px 0 0; }
.well--desk { padding: 12px; }
.well--mob { padding: 10px; }
.t-case { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 14px; }
.h-case { font-weight: 900; font-stretch: 88%; font-size: clamp(44px, 4.6vw, 78px); line-height: .88; letter-spacing: -0.035em; }
.case__tag { display: inline-flex; align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--acid); color: var(--on-acid); font-weight: 700; font-size: 15px; }
.case__tag .ast--note { color: var(--on-acid); }
.case__note { font-size: 15px; color: var(--mute); }
.case__list { display: grid; gap: 10px; }
.case__list li { padding-left: 18px; position: relative; font-size: 15px; color: var(--mute); line-height: 1.4; }
.case__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--acid); }
.case__list strong { color: var(--ink); font-weight: 700; }

/* ---------- Schermata 4: metodo ---------- */
.t-method { grid-column: 1 / 8; display: flex; flex-direction: column; gap: 26px; }
.t-faq { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 22px; }
.method__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.method__head .h2 { max-width: 10em; }
.method__counter {
  display: flex; align-items: baseline; font-stretch: 125%; font-weight: 300;
  font-size: clamp(64px, 7vw, 120px); line-height: .85; letter-spacing: -0.04em;
  border-bottom: 4px solid var(--acid); padding-bottom: 6px; font-variant-numeric: tabular-nums;
}
.method__of { font-size: .32em; color: var(--mute); letter-spacing: 0; margin-left: 6px; }

/* Cifre che si compongono */
.digits { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; }
.digit { display: block; height: 1em; overflow: hidden; }
.digit__strip { display: flex; flex-direction: column; transition: transform .7s cubic-bezier(.2, .9, .2, 1); }
.digit__strip span { display: block; height: 1em; line-height: 1; }

/* Cursore neumorfico */
.slider { display: flex; align-items: center; gap: 18px; }
.slider[hidden] { display: none; }
.slider__label { font-weight: 700; font-size: 15px; color: var(--mute); }
.slider__track {
  position: relative; flex: 1; height: 16px; border-radius: 999px;
  box-shadow: var(--sink-sm); border: 2px solid var(--ctrl);
}
.slider__fill {
  position: absolute; left: 3px; top: 3px; bottom: 3px; border-radius: 999px; background: var(--teal);
  width: calc((100% - 6px) * var(--p, 0)); min-width: 6px; transition: width .25s ease;
}
.slider input {
  position: absolute; inset: -12px -14px; width: calc(100% + 28px); height: 40px; margin: 0;
  background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.slider input::-webkit-slider-runnable-track { height: 40px; background: transparent; }
.slider input::-moz-range-track { height: 40px; background: transparent; }
.slider input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin-top: 4px; border-radius: 50%;
  background: var(--base); border: 2px solid var(--ink); box-shadow: var(--raise-sm), inset 0 0 0 7px var(--base), inset 0 0 0 16px var(--teal);
}
.slider input::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--base); border: 2px solid var(--ink); box-shadow: var(--raise-sm), inset 0 0 0 7px var(--base), inset 0 0 0 16px var(--teal);
}
.slider input:focus-visible { outline: none; }
.slider__track:focus-within { outline: 3px solid var(--acid); outline-offset: 6px; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.step {
  border-radius: var(--r-sm); border: 2px solid var(--line); padding: 14px; box-shadow: var(--raise-sm);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.step__title { font-size: 17px; font-weight: 760; line-height: 1.15; display: flex; flex-direction: column; gap: 10px; }
.step__n { font-stretch: 125%; font-weight: 300; font-size: 34px; line-height: 1; letter-spacing: -0.03em; border-bottom: 3px solid var(--line); padding-bottom: 6px; align-self: flex-start; }
.step__text { margin-top: 10px; font-size: 15px; color: var(--mute); line-height: 1.4; }
.method__foot { color: var(--mute); font-size: 15px; }

/* Con JavaScript: il passaggio corrente si incassa e mostra la descrizione in grande */
.js .steps { position: relative; }
.js .step { cursor: pointer; }
.js .step .step__text { display: none; }
.js .step.is-current { box-shadow: var(--sink-sm); border-color: var(--teal); }
.js .step.is-current .step__n { border-bottom-color: var(--teal); }
.js .step:hover { border-color: var(--ctrl); }
.step-detail { font-size: clamp(19px, 1.55vw, 24px); line-height: 1.35; font-weight: 500; max-width: 34em; min-height: 3.2em; }
.step-detail strong { font-weight: 800; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-sm); border: 2px solid var(--line); box-shadow: var(--raise-sm); transition: box-shadow .22s ease; }
.faq details[open] { box-shadow: var(--sink-sm); border-color: var(--ctrl); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 16px; font-weight: 700; font-size: 17px; border-radius: var(--r-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s ease; color: var(--acid); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 16px 16px; color: var(--mute); font-size: 15px; line-height: 1.45; }

/* ---------- Schermata 5: contatti ---------- */
.bento--end { padding-bottom: 28px; }
.t-contact { grid-column: 1 / 9; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: calc(var(--pad) * 1.6); padding-bottom: calc(var(--pad) * 1.4); }
.h-contact { font-weight: 900; font-stretch: 86%; font-size: clamp(46px, 6.6vw, 118px); line-height: .86; letter-spacing: -0.035em; max-width: 8em; padding-right: 1.2em; }
.contact__text { font-size: clamp(17px, 1.3vw, 21px); font-weight: 520; max-width: 32em; }
.t-mail { grid-column: 9 / 13; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.t-mail .icon--lg { color: var(--acid); margin-bottom: auto; }
.mail__lead { font-weight: 900; font-stretch: 88%; font-size: clamp(32px, 3.4vw, 58px); line-height: .92; letter-spacing: -0.03em; }
.mail__addr { color: var(--ink); font-size: clamp(15px, 1.1vw, 18px); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }

.foot {
  max-width: 1640px; margin: 0 auto; padding: 18px 20px 40px;
  display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--mute); font-size: 15px;
}
.foot ul { display: flex; gap: 20px; }
.foot a { color: var(--ink); text-underline-offset: 3px; }
.foot__small { flex-basis: 100%; font-size: 14px; }

/* Barra fissa mobile */
.dock { display: none; }

/* ---------- Movimento ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .bento--hero > .tile { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .bento--hero > .t-work { animation-delay: .08s; }
  .bento--hero > .t-mark { animation-delay: .16s; }
  .bento--hero > .t-cta { animation-delay: .24s; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento--hero { min-height: 0; grid-template-rows: auto; }
  .t-hero { grid-column: 1 / 7; grid-row: auto; min-height: 0; }
  .h1-big { font-size: clamp(56px, 11.5vw, 124px); }
  .t-strip { grid-column: 1 / 7; grid-row: auto; order: 3; }
  .t-cta  { grid-column: 1 / 4; grid-row: auto; }
  .t-mark { grid-column: 4 / 7; grid-row: auto; }
  .t-work { grid-column: 1 / 7; grid-row: auto; flex-direction: row; align-items: stretch; }
  .t-work .well--phone { flex: 0 0 44%; height: 360px; }
  .t-work .work__text { justify-content: flex-end; padding: 8px; }
  .t-path, .t-incl, .t-shot, .t-case, .t-method, .t-faq, .t-contact, .t-mail { grid-column: 1 / -1; }
  .t-contact { grid-column: 1 / 5; }
  .t-mail { grid-column: 5 / 7; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bar__nav a { padding: 8px 10px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --gap: 14px; --r: 20px; }
  body { font-size: 16px; }
  .bar { padding: 12px 16px 10px; }
  .bar__nav { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); padding-left: 16px; padding-right: 16px; }
  .bento + .bento { padding-top: var(--gap); }
  .bento > .tile { grid-column: 1 / -1; }
  .t-hero { min-height: 0; gap: 18px; padding-bottom: 22px; }
  h1 { gap: 14px; }
  .h1-big { font-size: clamp(46px, 14.5vw, 64px); }
  .h1-sub { font-size: 19px; }
  .hero__bio { font-size: 15px; }
  .t-cta { gap: 12px; }
  .cta__text { font-size: 16px; padding-right: 40px; }
  .btn { width: 100%; }
  .t-mark { flex-direction: row; align-items: flex-end; gap: 16px; padding-block: 14px; }
  .mark { font-size: 112px; }
  .t-work { flex-direction: column; }
  .t-strip { order: 3; }
  .t-mark { order: 4; }
  .strip__name { display: none; }
  .strip__list { display: block; color: var(--mute); font-size: 15px; }
  .strip__step .digits { font-size: 34px; }
  .strip__steps { gap: 8px; }
  .t-work .well--phone { flex: none; height: 300px; }
  .switch-row { width: 100%; justify-content: center; }
  .flow__steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .flow__steps li + li::before { left: 26px; top: -18px; width: 3px; height: 14px; }
  .node { min-height: 64px; align-items: center; }
  .incl { grid-template-columns: minmax(0, 1fr); }
  .t-shot { grid-template-columns: minmax(0, 1fr); }
  .t-shot .well--mob { display: none; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .step { padding: 10px 6px; text-align: center; }
  .step__title { font-size: 0; gap: 0; }
  .step__n { font-size: 24px; align-self: center; border: 0; padding: 0; }
  .js .step.is-current .step__n { color: var(--teal); }
  html:not(.js) .steps { grid-template-columns: minmax(0, 1fr); }
  html:not(.js) .step { text-align: left; padding: 14px; }
  html:not(.js) .step__title { font-size: 17px; gap: 8px; }
  html:not(.js) .step__n { align-self: flex-start; }
  .method__head { flex-direction: column-reverse; }
  .method__counter { font-size: 72px; }
  .t-contact, .t-mail { grid-column: 1 / -1; }
  .h-contact { font-size: clamp(42px, 13vw, 60px); }
  .dock {
    display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    visibility: hidden; opacity: 0; transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .dock.is-on { visibility: visible; opacity: 1; transform: none; }
  .foot { padding-bottom: 96px; }
  html { scroll-padding-bottom: 96px; }
}

/* ---------- Privacy ---------- */
.tile--acid:focus-visible { outline-color: var(--ink); }
.bar__nav--always { display: block !important; }
.bento--doc { align-items: start; padding-bottom: 28px; }
.t-doc { grid-column: 1 / 9; max-width: 860px; }
.t-doc h2 { font-weight: 800; font-size: 22px; margin: 30px 0 8px; letter-spacing: -0.01em; }
.t-doc p { color: var(--mute); max-width: 66ch; }
.t-doc p + p { margin-top: 12px; }
.t-doc a { color: var(--ink); text-underline-offset: 3px; }
.h-doc { font-weight: 900; font-stretch: 88%; font-size: clamp(56px, 8vw, 132px); line-height: .86; letter-spacing: -0.035em; }
.doc__date { margin-top: 14px; font-size: 15px; }
.t-back { grid-column: 9 / 13; display: flex; align-items: flex-end; min-height: 260px; position: sticky; top: 20px; }
.back__big { font-weight: 900; font-stretch: 88%; font-size: clamp(30px, 2.8vw, 46px); line-height: .95; letter-spacing: -0.03em; }
@media (max-width: 1100px) {
  .t-doc, .t-back { grid-column: 1 / -1; }
  .t-back { min-height: 140px; }
}
@media (max-width: 760px) {
  .bar__nav--always ul { gap: 0; }
  .bar__nav--always a { padding: 8px; font-size: 14px; }
  .bar__nav--always li:first-child { display: none; }
}
