/* ============================================================
   DISTEFANINI — studio di web design & identità visiva
   Japandi soft-minimal · warm neutrals · architectural language
   ============================================================ */

:root {
  --ivory: #F4EFE6;
  --paper: #FAF7F0;
  --sand: #E9E0CF;
  --sand-deep: #DDD2BC;
  --ink: #221E18;
  --ink-soft: #6B6255;
  --oak: #9A936A;
  --terra: #9A936A;   /* accent: desaturated olive khaki */
  --forest: #9A936A;  /* section background: same olive, charcoal text */
  --line: rgba(34, 30, 24, 0.16);
  --line-soft: rgba(34, 30, 24, 0.08);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;

  --w-max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-arch: 999px 999px 0 0;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- fonts ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-v38-latin-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-v38-latin-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-v38-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-v38-latin-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-v25-latin-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-v25-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-v25-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--terra); color: var(--paper); }

/* body text is justified site-wide */
main p:not(.anno), .project__meta li, .tavola li {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 400; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--terra); }

.wrap { max-width: var(--w-max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- annotation (architectural label) ---------- */
.anno {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft);
}
.anno::before { content: ""; width: 34px; height: 1px; background: var(--ink-soft); flex: none; }
.anno--plain::before { display: none; }

/* dimension rule: thin line with end ticks */
.dim-rule { position: relative; height: 1px; background: var(--line); margin-block: clamp(40px, 7vw, 84px); }
.dim-rule::before, .dim-rule::after {
  content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--line);
}
.dim-rule::before { left: 0; } .dim-rule::after { right: 0; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-head.scrolled { border-bottom-color: var(--line-soft); }
.site-head__in {
  max-width: var(--w-max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 42px; width: auto; display: block; }
.brand__name { font-family: var(--font-display); font-weight: 400; font-size: 1.22rem; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-soft); padding-block: 4px; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.lang-switch { display: inline-flex; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.lang-switch a { text-decoration: none; color: var(--ink-soft); }
.lang-switch .on { color: var(--ink); border-bottom: 1px solid var(--ink); }
.nav-burger { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; z-index: 70; }
.nav-burger span, .nav-burger::before, .nav-burger::after {
  content: ""; display: block; height: 1.5px; background: var(--ink); margin: 6px auto; width: 24px;
  transition: transform 0.3s, opacity 0.3s;
}
body.menu-open .nav-burger::before { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .nav-burger::after { transform: translateY(-7.5px) rotate(-45deg); }
body.menu-open .nav-burger span { opacity: 0; }

/* mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 65; background: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; display: grid; gap: 8px; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 300;
  text-decoration: none; line-height: 1.3; display: inline-block;
  transform: translateY(16px); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
body.menu-open .mobile-menu a { transform: none; opacity: 1; }
.mobile-menu li:nth-child(2) a { transition-delay: 0.05s; }
.mobile-menu li:nth-child(3) a { transition-delay: 0.1s; }
.mobile-menu li:nth-child(4) a { transition-delay: 0.15s; }
.mobile-menu li:nth-child(5) a { transition-delay: 0.2s; }
.mobile-menu li:nth-child(6) a { transition-delay: 0.25s; }
.mobile-menu .lang-switch { margin-top: 32px; font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.05em;
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
  border: 1px solid var(--ink);
}
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: #767050; border-color: #767050; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); transform: translateY(-2px); }
.btn--solid .arr { transition: transform 0.3s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 110px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
}
.hero__in {
  max-width: var(--w-max); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(24px, 5vw, 72px); align-items: center; width: 100%;
}
.hero h1 { margin: 22px 0 24px; max-width: 14ch; }
.hero__sub { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* the figure, presented as an architect's drawing sheet */
.figure-plate {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 24px 60px -30px rgba(34,30,24,0.3);
  padding: 26px 28px 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  max-width: 400px;
  margin-inline: auto;
  width: 100%;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.figure-plate:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: 0 34px 70px -30px rgba(34,30,24,0.38);
}
.figure-plate__head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line-soft); padding-bottom: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.figure-plate__head .n { font-family: var(--font-display); font-style: italic; font-size: 13px; letter-spacing: 0.08em; text-transform: none; color: var(--ink); }
.figure-plate__body { display: flex; justify-content: center; align-items: center; padding-block: 10px; }
.figure-plate__fig { height: clamp(300px, 46vh, 470px); color: var(--ink); }
.figure-plate__fig svg { height: 100%; width: auto; display: block; }
.figure-plate__dim {
  position: absolute; top: 84px; bottom: 74px; right: 30px;
  display: flex; align-items: center; gap: 8px;
}
.figure-plate__dim .dimline { width: 1px; height: 100%; background: var(--line); position: relative; }
.figure-plate__dim .dimline::before, .figure-plate__dim .dimline::after {
  content: ""; position: absolute; left: -5px; width: 11px; height: 1px; background: var(--line);
}
.figure-plate__dim .dimline::before { top: 0; } .figure-plate__dim .dimline::after { bottom: 0; }
.figure-plate__dim .dimlabel {
  writing-mode: vertical-rl; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.figure-plate__caption {
  border-top: 1px solid var(--line-soft); padding-top: 14px;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
  display: block; text-align: left;
}

.hero__scrollcue {
  position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scrollcue::after {
  content: ""; width: 1px; height: 36px; background: var(--ink-soft);
  animation: cue 2s var(--ease-out) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }


/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 11vw, 150px); }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest); color: var(--ink); }
.section--forest .anno { color: var(--ink); }
.section--forest .anno::before { background: var(--ink); }
.section--forest .step__n { color: var(--ink); }
.section--forest .step p { color: rgba(34, 30, 24, 0.78); }
.section--forest .step { border-top-color: rgba(34, 30, 24, 0.3); }
.section--forest .step::before { background: rgba(34, 30, 24, 0.3); }
.section-head { margin-bottom: clamp(36px, 6vw, 72px); max-width: 720px; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 18px; color: var(--ink-soft); max-width: 56ch; }
.section--forest .section-head p { color: rgba(34, 30, 24, 0.78); }

/* ---------- method steps (home teaser + come funziona) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(183px, 1fr)); gap: clamp(18px, 2vw, 28px); counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 1px; height: 11px; background: var(--line);
}
.step__n {
  font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--terra);
  letter-spacing: 0.06em; display: block; margin-bottom: 10px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* align phase body paragraphs across cards (titles may span 1-2 lines) */
.steps-stage .step h3 { min-height: 2.3em; }

/* ---------- portfolio card grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.pcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 24px 60px -34px rgba(34,30,24,0.3);
  padding: 20px 22px 26px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.pcard:hover { transform: translateY(-5px); box-shadow: 0 32px 70px -32px rgba(34,30,24,0.38); }
.pcard__head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line-soft); padding-bottom: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}
.pcard__head .n { font-family: var(--font-display); font-style: italic; font-size: 13px; letter-spacing: 0.06em; text-transform: none; color: var(--ink); }
.pcard__img { border-radius: 8px; overflow: hidden; border: 1px solid var(--line-soft); aspect-ratio: 4 / 3; background: #fff; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard h2 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.pcard p { font-size: 14.5px; color: var(--ink-soft); }
.pcard .btn { margin-top: auto; align-self: flex-start; padding: 12px 24px; font-size: 13px; }

/* before/after static pair (for mismatched aspect ratios) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair figure { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; position: relative; }
.pair img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 4 / 3; }
.pair figcaption {
  position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 78%, transparent); color: var(--ivory);
}
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; } }

/* walking figure travels the steps line (come funziona) */
.steps-stage { position: relative; }
.steps-stage .walk-track {
  position: absolute; top: -1px; left: 0; right: 0; height: 0; pointer-events: none;
}
.steps-stage .walk-track .mini-walker {
  position: absolute; top: -42px; left: 0; height: 42px;
  transition: left 0.1s linear;
}
.mini-walker img { height: 100%; width: auto; display: block; }

/* ---------- case study: before/after ---------- */
.case-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.case-grid__txt h2 { margin-top: 18px; margin-bottom: 20px; }
.case-grid__txt p { color: var(--ink-soft); margin-bottom: 16px; }
.case-grid__txt .btn { margin-top: 12px; }

.ba {
  position: relative; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line); background: var(--paper);
  box-shadow: 0 30px 70px -30px rgba(34,30,24,0.35);
  touch-action: pan-y;
}
.ba img { width: 100%; height: auto; display: block; pointer-events: none; user-select: none; }
.ba__after { position: absolute; inset: 0; }
.ba__after img { height: 100%; object-fit: cover; object-position: left top; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ivory);
  box-shadow: 0 0 0 1px rgba(34,30,24,0.25); cursor: ew-resize;
}
.ba__handle::after {
  content: "⇤⇥"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--ivory); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 15px; letter-spacing: -2px;
  box-shadow: 0 6px 18px rgba(34,30,24,0.28);
}
.ba__tag {
  position: absolute; top: 14px; font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 78%, transparent); color: var(--ivory);
  pointer-events: none;
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}

/* ---------- portfolio ---------- */
.project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.project + .project { margin-top: clamp(80px, 12vw, 160px); }
.project__meta { position: sticky; top: 110px; }
.project__meta .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
}
.tag--terra { border-color: var(--terra); color: var(--terra); }
.tag--forest { border-color: var(--terra); color: var(--terra); }
.project__meta h2 { margin-top: 14px; }
.project__meta p { color: var(--ink-soft); margin-top: 16px; }
.project__meta ul { margin: 18px 0 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.project__meta li { padding-left: 22px; position: relative; font-size: 15px; color: var(--ink-soft); }
.project__meta li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 1px; background: var(--terra); }
.project__links { display: flex; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.project__links a { font-size: 13.5px; font-weight: 600; letter-spacing: 0.03em; }

/* arch-top image mask (Mediterranean arch) */
.arch-img { border-radius: var(--radius-arch); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.arch-img img { width: 100%; height: 100%; object-fit: cover; }

/* plan → render reveal */
.plan-reveal { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: crosshair; }
.plan-reveal img { width: 100%; display: block; }
.plan-reveal__render { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease-out); }
.plan-reveal__render img { height: 100%; object-fit: cover; }
.plan-reveal:hover .plan-reveal__render, .plan-reveal.revealed .plan-reveal__render { opacity: 1; }
.plan-reveal__hint {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  background: color-mix(in srgb, var(--ivory) 88%, transparent); padding: 7px 13px; border-radius: 999px;
  color: var(--ink-soft); pointer-events: none; transition: opacity 0.4s;
}
.plan-reveal:hover .plan-reveal__hint { opacity: 0; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.gallery figure { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.8s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.045); }

/* text-only project card (mansarda) */
.card-quiet {
  border: 1px solid var(--line); border-radius: 14px; padding: clamp(28px, 4vw, 48px);
  background: var(--paper); position: relative; overflow: hidden;
}
.card-quiet::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px; opacity: 0.5; pointer-events: none;
}
.card-quiet > * { position: relative; }
.card-quiet .anno { margin-bottom: 14px; }
.card-quiet p { color: var(--ink-soft); max-width: 58ch; }

/* ---------- servizi: tavole ---------- */
.tavole { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tavola {
  display: grid; grid-template-columns: 130px minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(16px, 3vw, 44px); padding-block: clamp(30px, 4.5vw, 54px);
  border-bottom: 1px solid var(--line); align-items: baseline;
  transition: background 0.4s;
}
.tavola:hover { background: color-mix(in srgb, var(--paper) 65%, transparent); }
.tavola__n { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--terra); }
.tavola h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.tavola p { color: var(--ink-soft); font-size: 15.5px; }
.tavola ul { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.tavola li { font-size: 14px; color: var(--ink-soft); padding-left: 20px; position: relative; }
.tavola li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 1px; background: var(--oak); }

/* ---------- chi sono ---------- */
.portrait-wrap { position: relative; max-width: 440px; margin-inline: auto; }
.portrait-wrap .sig-mini {
  position: absolute; right: -9%; bottom: -5%;
  width: 58%; height: auto; pointer-events: none;
}
.sig-under {
  display: block; width: min(500px, 88vw); margin: clamp(40px, 6vw, 64px) auto 0;
  color: var(--ink);
}
.bio-copy { max-width: 740px; margin: clamp(48px, 7vw, 72px) auto 0; }
.bio-copy p { color: var(--ink-soft); margin-bottom: 18px; }
.bio-copy p strong { color: var(--ink); font-weight: 600; }

/* timeline: horizontal dimension line */
.timeline { position: relative; margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: -28px; width: 1px; height: 11px; background: var(--ink-soft);
}
.tl-item .yrs { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--terra); text-transform: uppercase; }
main .timeline .tl-item p { text-align: left; hyphens: none; }
.tl-item h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; margin: 3px 0 2px; }
.tl-item p { font-size: 14.5px; color: var(--ink-soft); }

/* tavola subtitle */
.tavola__sub { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--terra); margin-top: 6px; }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact-cards { display: grid; gap: 14px; margin-top: 34px; }
.contact-card {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px;
  text-decoration: none; transition: background 0.35s, transform 0.35s var(--ease-out);
  flex-wrap: wrap;
}
.contact-card:hover { background: var(--paper); transform: translateY(-2px); }
.contact-card .k { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.contact-card .v { font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.4rem); }

.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 2px;
  border-radius: 0; transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--terra); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; margin-top: 8px; }
.form-note { font-size: 13px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-foot { background: var(--sand); color: var(--ink); padding-block: clamp(56px, 8vw, 100px) 34px; position: relative; overflow: hidden; }
.site-foot a { color: inherit; }
.foot-cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: clamp(48px, 7vw, 80px); }
.foot-cta h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); max-width: 13ch; }
.foot-cta .btn { border-color: var(--ink); color: var(--ink); }
.foot-cta .btn:hover { background: var(--ink); color: var(--ivory); }
.foot-meta {
  display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 26px;
  font-size: 13px; color: var(--ink-soft);
}
.foot-meta .cols { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- the walking progress line (fixed, bottom) ---------- */
.ground {
  position: fixed; left: 0; right: 0; bottom: 0; height: 46px; z-index: 55;
  pointer-events: none;
}
.ground__line {
  position: absolute; bottom: 18px; left: 0; height: 1.5px; width: 100%;
  background: var(--ink); transform-origin: left center; transform: scaleX(0);
  opacity: 0.55;
}
.ground__ticks { position: absolute; bottom: 18px; left: 0; right: 0; height: 8px; }
.ground__ticks i { position: absolute; bottom: 0; width: 1px; height: 7px; background: var(--ink); opacity: 0.25; }
.ground__walker {
  position: absolute; bottom: 19.5px; left: 0; height: 44px;
  transform: translateX(-50%);
  will-change: left;
}
.ground__walker.flip { transform: translateX(-50%) scaleX(-1); }
.ground__walker img {
  height: 100%; width: auto; display: block;
  filter: drop-shadow(0 0 5px var(--ivory)) drop-shadow(0 0 1px var(--ivory));
}
.ground__walker.walking img { animation: walkbob 0.4s ease-in-out infinite alternate; }
@keyframes walkbob {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-2.5px) rotate(3.5deg); }
}

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; } .reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; } .reveal[data-d="4"] { transition-delay: 0.32s; }

/* ---------- page hero (interior pages) ---------- */
.page-hero { padding-top: clamp(140px, 20vh, 200px); padding-bottom: clamp(40px, 7vw, 90px); }
.page-hero h1 { margin-top: 20px; max-width: 16ch; }
.page-hero .lede { margin-top: 24px; color: var(--ink-soft); max-width: 54ch; font-size: clamp(1rem, 1.4vw, 1.15rem); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
  .figure-plate { margin-top: 34px; }
  .figure-plate__fig { height: clamp(220px, 32vh, 330px); }
  .steps { grid-template-columns: 1fr 1fr; }
  .case-grid, .project, .contact-grid { grid-template-columns: 1fr; }
  .project__meta { position: static; }
  .tavola { grid-template-columns: 64px 1fr; }
  .tavola > div:last-child { grid-column: 2; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 34px; }
}
@media (max-width: 720px) {
  .nav-links, .site-head .lang-switch { display: none; }
  .nav-burger { display: block; }
  .steps { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .portrait-wrap .sig-mini { right: 0; }
  .form .row { grid-template-columns: 1fr; }
  .hero { padding-bottom: 90px; }
  .hero__scrollcue { display: none; }
  .ground { height: 36px; }
  .ground__walker { height: 26px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ground__walker.walking .poseA, .ground__walker.walking .poseB { animation: none; }
  .ground__walker .poseB { visibility: hidden; }
  .hero__scrollcue::after { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
