/* ==========================================================================
   Isola Studio — Puglia Balloon Cup (mobile project page)
   ========================================================================== */

/* The brand uses exactly two cuts of PP Neue Machina 2.0, both Inktrap:
   Regular (upright) and Ultrabold Italic. Every weight from 100 to 500 is
   the Regular; every bold, 600 to 900, is the Ultrabold Italic, whether the
   rule asks for italic or not, so no bold can ever come out upright. There
   is no regular italic: a regular-weight italic request gets the Regular. */
@font-face {
  font-family: "PP Neue Machina";
  src: url("assets/fonts/PPNeueMachina-InktrapRegular.otf") format("opentype");
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Machina";
  src: url("assets/fonts/PPNeueMachina-InktrapRegular.otf") format("opentype");
  font-weight: 100 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Machina";
  src: url("assets/fonts/PPNeueMachina-InktrapUltraboldItalic.otf") format("opentype");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Machina";
  src: url("assets/fonts/PPNeueMachina-InktrapUltraboldItalic.otf") format("opentype");
  font-weight: 600 900;
  font-style: italic;
  font-display: swap;
}

/* Inktrap Light, for the review quotes only. A family of its own, so it can
   never stand in for Regular anywhere else. */
@font-face {
  font-family: "PP Neue Machina Light";
  src: url("assets/fonts/PPNeueMachina-InktrapLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Mono is self-hosted from the studio's own full TTFs. The earlier
   woff2 files were Latin-basic subsets, so accented letters (è, é, à…) fell
   through to another monospace and some "e" looked different. */
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  /* The studio's two neutrals, everywhere on the site: black is always
     #333333 and white is always #F3F3F3. Softer greys come from opacity. */
  --bg: #f3f3f3;
  --ink: #333333;
  --ink-soft: #333333;
  --dark: #333333;
  --dark-2: #333333;
  --purple: #8e11fd;
  --green: #90fd11;
  /* Errors only (the user, 2026-11-12): the same red as the dream form. */
  --red: #f0262b;
  --white: #f3f3f3;
  --pad: 12px;
  --radius: 22px;
  /* Header geometry from "Frame 92": the panel is 342 wide at 390, 24px in
     from each side, with a 48px bar; the cross sits 24px in from the right. */
  --header-radius: 16px;
  --bar-height: 48px;
  --header-inset: 16px;
  --header-side: 24px;
  --bar-pad-right: 15.5px;
  --icon-size: 34px;
  --icon-bar: 15px;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-display: "PP Neue Machina", var(--font-mono);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  /* Motion vocabulary. Entrances leave fast and settle slowly, so they feel
     arrived-at rather than slid-in; exits do the opposite. The pen curve is
     deliberately close to linear — a hand drawing a line does not ease into
     it, it only lifts off at the end. */
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-pen: cubic-bezier(0.28, 0.12, 0.3, 1);
  --ease-settle: cubic-bezier(0.22, 1.1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Never fake a cut the brand does not have: no synthetic italic or bold. */
  font-synthesis: none;
  /* No CSS snap on the page: the pull into the projects reel starts at the
     "Ready for design" fog and is done in script.js, where it can tell which
     way the visitor was going. */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Form controls default to the system's pure black; they take the page's
   ink instead, so #333333 stays the only black. */
button,
input,
select,
textarea,
hr {
  color: inherit;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  /* Section 03's construction lines are drawn wider than the page on
     purpose. `clip` trims them without turning the page into a scroll
     container, which `hidden` would do. */
  overflow-x: clip;
}

/* ------------------------------ Load-in reveal ---------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-up 0.7s var(--ease) forwards;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ----------------------------- Home: video reel --------------------------- */

/* The reel fills the whole screen, pinned, and is the first thing seen: nothing
   of section 01 shows under it. Scrolling slides the page up over it.
   Sized to the large viewport (browser bars hidden), so on a phone it still
   reaches the bottom edge when the toolbar is showing; plain vh is the
   fallback. */
.home-reel {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  /* The visible screen with Safari's bars showing. 100lvh counted the space
     under the bottom bar too, so on iPhone the picture was centred lower than
     the screen and looked pushed down. */
  height: 100svh;
  background: var(--dark);
  overflow: hidden;
}

.home-reel-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The page that follows rides over the pinned reel. */
.page-home .home-main {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* Belongs to the reel, so it scrolls away with it rather than staying pinned
   over the footer. Same horizontal geometry as the header bar, so its right
   edge stays lined up with the "+" glyph. */
.audio-toggle {
  position: absolute;
  left: var(--header-side);
  right: var(--header-side);
  /* The reel is as tall as the small viewport (bars showing), so the label
     sits just above the header bar with nothing to add. */
  bottom: calc(var(--header-inset) + var(--bar-height) + 14px);
  z-index: 60;
  max-width: 528px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  padding-right: calc(var(--bar-pad-right) + (var(--icon-size) - var(--icon-bar)) / 2);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  animation: word-in 0.4s var(--ease) 0.55s forwards;
}

/* Same entrance as a rotating word in the header bar. */
@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The label floats over both the reel and the dark footer, and the reel's own
   brightness changes frame by frame, so it inverts against whatever is behind
   it instead of committing to one colour. */
.audio-toggle button {
  pointer-events: auto;
  border: none;
  background: none;
  padding: 6px 0;
  color: var(--white);
  mix-blend-mode: difference;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  opacity: 0.85;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.25s ease;
}

.audio-toggle button:hover,
.audio-toggle button[aria-pressed="true"] {
  opacity: 1;
}

/* A wave of weight travels through the label, one letter at a time. The two
   stacked layers crossfade because static font files can't tween weight. */
.audio-label {
  display: inline-flex;
  justify-content: flex-end;
  /* Width of the longer wording, so swapping it never shifts the label. */
  width: 9ch;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.audio-label.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
}

.audio-label.is-entering {
  opacity: 0;
  transform: translateY(10px);
}

.audio-letter {
  position: relative;
  display: inline-block;
  white-space: pre;
}

.audio-letter .bold {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  opacity: 0;
  animation: letter-weight 3.6s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.08s);
}

@keyframes letter-weight {
  0%,
  100% {
    opacity: 0;
  }
  9%,
  20% {
    opacity: 1;
  }
  32% {
    opacity: 0;
  }
}

.audio-swap {
  position: relative;
  display: block;
  height: 20px;
  min-width: 66px;
}

.audio-swap span {
  position: absolute;
  right: 0;
  top: 0;
  line-height: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.audio-swap span.is-current {
  opacity: 1;
  transform: translateY(0);
}

.audio-swap span.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
}

/* ------------------------------ Projects page -----------------------------
   Set from "Pag 3 - Portfolio progetti" (390px frame): the photograph alone
   in the hero, then intro, the project list, the archive and a closing
   note. Every block keeps 32px off the page edges. */

.page-projects {
  --pad: clamp(16px, 8.2vw, 32px);
}

/* A trial, 2026-11-13 (the user: "vogliamo provare a spostare i margini a 24px
   soltanto in una pagina?"): on the phone this page alone keeps 24px off the
   edges instead of 32px, to be looked at before deciding for the whole site.
   Narrower phones still give a little back (6.2vw: 24px from 387px up, 22.3px
   at 360px). The desktop is untouched: from 900px up desktop.css sets this
   page's --pad to --d-side. Undo by deleting this one block. */
@media (max-width: 899px) {
  .page-projects {
    --pad: clamp(16px, 6.2vw, 24px);
  }
}

.projects-hero {
  position: relative;
  width: 100%;
  /* 736 of the mockup's 844: the intro shows below the fold. */
  height: min(736px, 87.2svh);
  min-height: 520px;
  background: var(--dark);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

.projects-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The welcome kit sits where the mockup crops it on a phone. */
  object-position: 41% 54%;
}

.projects-intro {
  padding: 61px var(--pad) 0;
}

/* Titles on this page: 32px, lines 33px apart. */
.projects-intro-title,
.projects-work-title,
.archive-title,
.outro-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 8.2vw, 32px);
  line-height: 33px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.projects-intro-title em,
.projects-work-title em,
.archive-title em,
.outro-title em {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
}

/* The rule stops 32px short of the right margin, as drawn. */
.projects-intro-rule {
  height: 0;
  border: 0;
  border-top: 1px solid rgba(51, 51, 51, 0.75);
  margin: 24px 32px 0 0;
}

/* Body copy may stop short of the right margin; what it must not do is
   leave one word alone on its last line. Browsers that know `pretty`
   rebalance the paragraph; the &nbsp; before each paragraph's last word
   covers the rest. */
.hs-copy,
.projects-intro-copy,
.outro-copy,
.about-intro p,
.join-lead,
.review blockquote {
  text-wrap: pretty;
}

/* The intro paragraph runs 32px in on the left and 88px on the right (the
   section's own 32 plus 56), as in the reference: at 12px mono that is 37
   characters a line, which breaks the copy into the mockup's eight lines. */
.projects-intro-copy {
  padding-right: 56px;
}

.projects-intro-copy,
.outro-copy {
  margin: 28px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
}

/* ---- Project cards ---- */

.projects-work {
  padding: 74px var(--pad) 0;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 24px;
}

.project-card img {
  width: 100%;
  /* The intrinsic height attribute would otherwise pin the box and the ratio
     below would be ignored. */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.5s var(--ease);
}

.project-card--square img {
  aspect-ratio: 1 / 1;
}

.project-card--wide img {
  aspect-ratio: 326 / 192;
}

/* Only cards that open a case page react to the tap. */
a.project-card:active img {
  transform: scale(0.98);
}

.project-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
}

.project-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.01em;
}

/* Captions arrive as the card comes into view (script.js) with the navbar's
   own entrance: each line rises 10px out of a clipped band while it comes
   up from transparent, in 0.4s; the services follow the name a beat later.
   Hidden only once the script has taken over, so without it the captions
   are simply there. */
.js-captions .project-card-title,
.js-captions .project-card-desc {
  display: block;
  overflow: hidden;
}

.js-captions .cap-in {
  display: block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.js-captions .project-card-desc .cap-in {
  transition-delay: 0.12s;
}

.js-captions .project-card.is-captioned .cap-in {
  opacity: 1;
  transform: translateY(0);
}

.project-card-desc {
  display: block;
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
}

/* ---- Archive table ---- */

.archive {
  padding: 74px var(--pad) 0;
}

.archive-title {
  margin-bottom: 24px;
}

/* Hairlines at a quarter of the ink: one above the list, one under each row. */
.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(51, 51, 51, 0.25);
}

/* Rows cascade in as the list is scrolled into view. The hidden state is only
   applied once script.js has marked the list, so the archive stays readable
   if the script never runs. */
.archive-list.is-staggered li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.55, 0, 1, 0.45),
    transform 0.55s cubic-bezier(0.55, 0, 1, 0.45);
}

.archive-list.is-staggered li.is-revealed {
  opacity: 1;
  transform: none;
}

/* Two fixed columns, so every name starts at the page margin and every
   service list starts on the same vertical — a row is as tall as its own
   services, which is how the mockup sets the long ones apart. */
.archive-list li {
  display: grid;
  grid-template-columns: 1fr 40.5%;
  align-items: center;
  gap: 6px;
  min-height: 56px;
  padding: 8.5px 0;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(51, 51, 51, 0.25);
}

.archive-name {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--purple);
}

.archive-services {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 13px;
  color: var(--ink);
}

/* ---- Closing note ---- */

.projects-outro {
  padding: 78px var(--pad) 80px;
}

.outro-copy {
  margin-top: 20px;
}

.outro-copy + .outro-copy {
  margin-top: 16px;
}

.outro-copy a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The four stamps, 48px, 77px apart, 11px in from the text margin. */
.outro-marks {
  display: flex;
  gap: 29.3px;
  margin: 60px 0 0 11px;
}

.outro-marks img {
  display: block;
  width: 48px;
  height: 48px;
}

/* ---- Projects: opening (stamps → paper) ---- */

/* Only on html.opener-pending (set in progetti.html's head when the visitor
   came from the navbar's Projects link): a full screen of purple over
   everything, the stamps in the middle in #F3F3F3, the page held still. */
.projects-opener { display: none; }
html.opener-pending,
html.opener-pending body { overflow: hidden; }
html.opener-pending .projects-opener {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 2000;              /* above the header and the bottom pill */
  background: #8f12fe;
}
.opener-ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.opener-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 282px;
  height: 50px;
  transform: translate(-50%, -50%);
}
/* The stamps' artwork is #333333: shown here as #F3F3F3. */
.opener-slot img {
  position: absolute;
  top: 0;
  width: 50px;
  height: 50px;
  opacity: 0;
  filter: brightness(0) invert(0.953);
}
.opener-row-1 img { width: 48px; height: 48px; top: 1px; margin-left: 1px; }
.opener-slot img:nth-child(1) { left: 0; }
.opener-slot img:nth-child(2) { left: 77.3px; }
.opener-slot img:nth-child(3) { left: 154.6px; }
.opener-slot img:nth-child(4) { left: 231.9px; }

/* A rubber stamp coming down hard; the second row a little quicker. */
.opener-slot img.is-in { animation: opener-press 0.34s cubic-bezier(0.3, 0, 0.2, 1) forwards; }
@keyframes opener-press {
  0%   { opacity: 0; transform: translateY(-10px) scale(1.25); }
  45%  { opacity: 1; transform: translateY(0) scale(0.9, 0.86); }
  70%  { transform: scale(1.04, 1.02); }
  100% { opacity: 1; transform: scale(1); }
}

/* The ink is the page's own ground (#F3F3F3): when it has covered the screen
   the overlay goes and the content fades in on it. */
html.opener-reveal body { animation: opener-reveal 0.5s ease both; }
@keyframes opener-reveal { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------- Hero --------------------------------- */

.project-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  animation: fade-in 0.9s ease both;
}

.project-hero img {
  width: 100%;
  height: auto;
}

/* ------------------------------- Intro block ------------------------------ */

.project-intro {
  padding: 40px var(--pad) 0;
}

.project-title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(22px, 7.6vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.project-title em {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  color: var(--ink);
}

.meta-row {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.meta-row .n {
  white-space: nowrap;
  color: var(--ink-soft);
}

.meta-row ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.divider {
  border: none;
  border-top: 1px solid rgba(51, 51, 51, 0.35);
  margin: 28px 0 0;
}

.project-intro .divider {
  margin-left: var(--pad);
  margin-right: var(--pad);
  margin-top: 0;
}

.lede,
.project-copy p {
  font-size: 21px;
  line-height: 1.42;
  font-weight: 400;
  margin: 28px 0 0;
  letter-spacing: -0.005em;
}

.accent {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  color: var(--purple);
}

strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  color: var(--ink);
}

.project-copy {
  padding: 0 var(--pad);
}

/* -------------------------------- Media cards ------------------------------ */

.project-media {
  margin: 24px var(--pad) 0;
}

.project-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* --------------------------------- See more -------------------------------- */

.see-more {
  padding: 56px var(--pad) 64px;
}

.see-more-title {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 32px;
}

.see-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.see-more-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s var(--ease);
}

.see-more-item:active img {
  transform: scale(0.97);
}

.see-more-item span {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.4;
}

/* ------------------------------ Project page ------------------------------
   Set from "Pag 5 - PROGETTO" (390 wide): a full-bleed cover, the name and
   its data, then short statements at 20/21 between runs of pictures 326
   wide (192, 342 or 428 tall) with 12px between them, all 32px in. */

.page-case {
  --case-pad: clamp(20px, 8.2vw, 32px);
}

/* The cover is 4:5, so the project's name already shows at the foot of the
   first screen. It stays pinned and the white page slides up over it. */
.case-hero {
  position: sticky;
  top: 0;
  z-index: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--dark);
}

/* The white page comes up over the cover with 8px corners: it starts 8px
   into the cover, so the corners show the picture even at rest. */
.page-case main {
  position: relative;
  z-index: 1;
  margin-top: -8px;
  border-radius: 8px 8px 0 0;
  background: var(--bg);
}

.case-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The name's baseline 95px under the cover (main starts 8px into it). */
.case-intro {
  padding: 78px var(--case-pad) 0;
}

.case-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 33px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.case-title em,
.case-outro-title em {
  font-weight: 800;
  font-style: italic;
}

/* The date and the services start 84px and 150px in, on the same baseline. */
.case-meta {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-top: 19px;
  padding-left: 84px;
  font-family: var(--font-mono);
  color: var(--ink);
}

.case-date {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 16px;
}

.case-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 16px;
}

.case-rule {
  height: 0;
  margin: 29px 0 0;
  border: 0;
  border-top: 1px solid rgba(51, 51, 51, 0.5);
}

.case-copy {
  margin: 0;
  padding: 0 var(--case-pad);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 21px;
  color: var(--ink);
}

.case-copy b {
  font-weight: 800;
  font-style: italic;
}

.case-intro + .case-copy {
  margin-top: 38px;
}

.case-media + .case-copy {
  margin-top: 63px;
}

.case-media {
  display: grid;
  gap: 12px;
  margin-top: 58px;
  padding: 0 var(--case-pad);
}

.case-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.case-img--s { aspect-ratio: 326 / 192; }
.case-img--m { aspect-ratio: 326 / 342; }
.case-img--l { aspect-ratio: 326 / 428; }
.case-img--q { aspect-ratio: 1; }
.case-img--w { aspect-ratio: 16 / 9; }
.case-img--v { aspect-ratio: 4 / 5; }
.case-copy + .case-copy { margin-top: 38px; }

/* The pictogram sheet is shown whole in its box: cropped, the top and
   bottom rows would be cut. Its own paper fills the sides. */
.case-img--fit {
  object-fit: contain;
  background: #eaebe5;
}

.about-marks.case-marks {
  --about-pad: var(--case-pad);
  /* 64px from the last baseline of the copy to the marks. */
  padding-top: 58.6px;
}

.case-outro {
  padding: 61px var(--case-pad) 76px;
}

.case-outro-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 33px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.case-outro p {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
}

.case-outro-title + p {
  margin-top: 20px;
}

.case-outro a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}



/* Phone case pages: the way on (script.js), 2026-11-12 the user: above the
   stamps, between two of the page's usual rules — "Our Designs" plain on
   the left, the "Keep going" pill on the right. */
.case-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 48px var(--case-pad) 0;
  padding: 16px 0;
  border-top: 1px solid rgba(51, 51, 51, 0.5);
  border-bottom: 1px solid rgba(51, 51, 51, 0.5);
}

/* The stamps keep their distance from the lower rule. */
.case-next + .case-marks {
  padding-top: 40px;
}

.case-next-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 39px;
  box-sizing: border-box;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.case-next-btn:active {
  background: var(--ink);
  color: var(--bg);
}

/* "Our Designs" reads like the "Isola Studio" link in the closing words just
   below it (the user, 2026-11-13: "lo vorrei bold con la sottolineatura, un po'
   come isola studio un po' più in basso, stesso stile"): the same weight, the
   same 1px underline at the same distance, the same ink. Set once, so all 14
   project pages change together. */
.case-next-back {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ---------------------------------- Footer ---------------------------------
   Set from "Frame 1" (390 x 923): 32px in from both edges, 16px top corners,
   and every line on the baseline the frame gives it. The margins below are
   those baselines turned into gaps between line boxes (measured, not
   guessed): change a font size or line height and they need redoing. */

.site-footer {
  position: relative;
  overflow: hidden;
  min-height: 923px;
  padding: 0 32px;
  background: var(--dark);
  color: var(--white);
  border-radius: 16px 16px 0 0;
}

.site-footer-inner {
  position: relative;
  z-index: 1;
}

.site-footer p,
.site-footer h2 {
  margin: 0;
}

/* Impressed? — Machina 20, baseline at 70 */
.site-footer .footer-kicker {
  margin-top: 53px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
}

/* Let's talk! — Machina ultrabold italic 32, baseline at 109 */
.site-footer .footer-shout {
  margin-top: 7px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 32px;
  line-height: 33px;
}

.footer-shout em {
  font-style: italic;
  color: var(--green);
}

/* Labels: mono 10, green. 32px from one label's baseline to the next. */
.site-footer .footer-label {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  line-height: 13px;
  color: var(--green);
}

.site-footer .footer-label--first {
  margin-top: 0;
}

/* Values: mono 12, 20px under their label's baseline. */
.site-footer .footer-value {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
}

/* info@ sits straight under Let's talk!, baseline at 149. */
.site-footer .footer-value--lead {
  margin-top: 20px;
}

/* Get in touch: a green pill, 144 x 40, top at 173 — the same as Send. */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 40px;
  margin-top: 20px;
  border-radius: 20px;
  background: var(--green);
  color: var(--dark);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  transition: background 0.25s ease;
}

.footer-cta:hover,
.footer-cta:active {
  background: var(--white);
}

/* The rule, at 252.6, edge to edge of the 32px margins (the button is 8px
   taller than in the first footer frame, so the gap above is 8px less and
   everything below stays where it was). */
.footer-rule {
  height: 0;
  margin: 39.6px 0 0;
  border: 0;
  border-top: 0.8px solid var(--white);
}

/* Bold stories, Bold design — Machina 32/33, first baseline at 327 */
.site-footer .footer-title {
  margin-top: 48.4px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 33px;
}

.footer-title em {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  color: var(--green);
}

.footer-contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: 37px;
}

.footer-contact .fields {
  min-width: 0;
}

/* Instagram / Facebook / Linkedin: mono 10 on 32 (baselines 491, 523,
   555), right-aligned, the last one on the same baseline as the last line
   of the address. */
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  margin-bottom: -9px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 32px;
  white-space: nowrap;
}

.footer-social a,
.footer-nav a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.25s ease;
}

.footer-social a:hover,
.footer-nav a:hover {
  opacity: 0.7;
}

/* Site map, baseline at 618, spread across the measure. */
.footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 49px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 13px;
}

/* Copyright, baseline at 649. */
.site-footer .footer-copyright {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 13px;
  /* White at 20%, as in the frame. */
  color: rgb(243 243 243 / 0.2);
}

/* The "is" runs off the bottom of the footer, as in the frame, always
   centred on the footer whatever the width. */
.footer-mark {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  /* 330 at 390, as in the frame (it runs 4px past the right margin there);
     narrower screens scale it down rather than cut it. */
  width: min(330px, calc(100% - 60px));
  height: auto;
  max-width: none;
  pointer-events: none;
}

/* ------------------------------- Header shell -------------------------------
   One element does the whole job: closed, it IS the pill; open, it IS the
   panel. It never gets swapped for a different node — it only grows/shrinks
   in height (set as an exact pixel value from script.js so the transition is
   smooth regardless of how much content the panel holds), so the toggle
   button and its icon never move or get re-created. */

.header-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(51, 51, 51, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.header-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.header-shell {
  position: fixed;
  left: var(--header-side);
  right: var(--header-side);
  bottom: var(--header-inset);
  z-index: 70;
  max-width: 528px;
  margin: 0 auto;
  max-height: var(--bar-height);
  overflow: hidden;
  border-radius: var(--header-radius);
  background: var(--dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: pill-in 0.6s var(--ease) 0.35s forwards;
  transition: max-height 0.6s var(--ease), background 0.35s ease, color 0.35s ease;
  /* Its own layer, and its layout kept to itself: Safari otherwise repaints
     the pill with the page on every scroll step and re-lays the page out on
     every frame of the opening, which is what read as stutter on iOS. */
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  contain: layout style;
}

.header-shell.is-light {
  background: var(--white);
  color: var(--ink);
}

@keyframes pill-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.header-expand {
  display: flex;
  flex-direction: column;
  flex-shrink: 1;
  min-height: 0;
  order: -1;
}

.header-bar {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--bar-height);
  height: var(--bar-height);
  width: 100%;
  border: none;
  /* Opaque, so the links slide behind the bar as the panel closes. */
  background: inherit;
  color: inherit;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--bar-pad-right) 0 24px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.header-bar-content {
  position: relative;
  flex: 1;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.header-bar-face {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-bar-closed {
  gap: 14px;
}

/* 20px tall, like the "is" of the closed pill: both are drawn at 1:1 from
   the same glyphs, so the mark keeps its size when the menu opens. */
.header-bar-open .wordmark {
  display: block;
  height: 20px;
  width: auto;
  overflow: visible;
}

/* The wordmark's "is" never leaves. "olastudio" steps in after it, one letter
   after another, and steps out in the reverse order. */
.wordmark .wm-l {
  opacity: 0;
  transform: translateY(5px);
  transform-box: fill-box;
  transition: opacity 0.2s ease, transform 0.28s ease;
  transition-delay: calc((9 - var(--i)) * 0.025s);
}

.header-shell.is-open .wordmark .wm-l {
  opacity: 1;
  transform: none;
  transition: opacity 0.28s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(0.12s + var(--i) * 0.035s);
}

/* Holds the rotating line's place: the "is" on show is always the wordmark's. */
.nav-pill-logo {
  display: flex;
  align-items: center;
  height: 20px;
  flex-shrink: 0;
  visibility: hidden;
}

.nav-pill-logo svg {
  height: 100%;
  width: auto;
  display: block;
}

/* Takes turns with the letters: gone at once on opening, back once they have
   stepped out. */
.nav-pill-rotator {
  position: relative;
  height: 20px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease 0.36s;
}

.header-shell.is-open .nav-pill-rotator {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.nav-pill-rotator span {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: rgba(243, 243, 243, 0.78);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.35s ease;
}

.nav-pill-rotator span .heart {
  position: relative;
  top: 1px;
  width: 14px;
  height: 14px;
  margin: 0 1px;
}

.header-shell.is-light .nav-pill-rotator span {
  color: rgba(51, 51, 51, 0.68);
}

.nav-pill-rotator span.is-current {
  opacity: 1;
  transform: translateY(0);
}

.nav-pill-rotator span.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
}

/* ---- Shared plus/cross icon: one rigid shape that rotates as a whole ----
   The "x" is never built from two independently-angled bars — it is
   literally the same "+" rotated 45° in one piece, so the two strokes
   always stay perfectly perpendicular. */

.icon-plus {
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-plus .bars {
  position: relative;
  width: var(--icon-bar);
  height: var(--icon-bar);
  transition: transform 0.4s var(--ease);
}

.icon-plus .bars span,
.icon-plus .bars span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--icon-bar);
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.icon-plus .bars span::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

.icon-plus.is-x .bars {
  transform: rotate(45deg);
}

.header-bar[aria-expanded="true"] .nav-pill-icon .bars {
  transform: rotate(45deg);
}

/* The navbar's plus: 16 x 16 with two identical 2px bars, on whole pixels. The
   cross is that same element turned 45deg: same size, same thickness. */
.nav-pill-icon {
  --icon-bar: 16px;
  margin-right: 0.5px;
}

.nav-pill-icon .bars span {
  display: none;
}

.nav-pill-icon .bars::before,
.nav-pill-icon .bars::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.nav-pill-icon .bars::before {
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;
}

.nav-pill-icon .bars::after {
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
}

/* -------------------------------- Header panel ------------------------------
   Nav list + social row that the shell reveals as it grows taller. */

.menu-nav {
  display: flex;
  flex-direction: column;
}

/* Rules run edge to edge of the panel, so the horizontal padding lives on
   the rows themselves rather than on their container. Frame 92: 40px type,
   rows 92px apart, each baseline 32px above its 0.5px rule. */
.menu-nav a {
  position: relative;
  padding: 30px 22px 21.5px;
  font-size: clamp(30px, 10.26vw, 40px);
  line-height: 40px;
  font-family: var(--font-display);
  font-weight: 400;
  border-bottom: 0.5px solid currentColor;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

/* A 1x screen draws the 0.5px rule as a whole pixel: 21px keeps the rows at 92
   and the open panel on a whole pixel. */
@media (max-resolution: 1.5dppx) {
  .menu-nav a {
    padding-bottom: 21px;
  }
}

/* ---- Action row: language switch over the CTA on the left, social stack on
   the right (Frame 92, second version). Mono 12 on 31px lines: the switch
   and Instagram share the first baseline, 28px from the last rule to the
   capitals; 23px from that baseline to the CTA; the bar 26px under it. ---- */

.menu-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 25px 16px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 31px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease) 0.26s, transform 0.5s var(--ease) 0.26s;
}

.header-shell.is-open .menu-actions {
  opacity: 1;
  transform: translateY(0);
}

.menu-start {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ITA, a 44px line, ENG, 8px apart. The 8px dot sits at the end of the line
   next to the language in use and runs to the other end when it changes. */
.lang-switch {
  display: flex;
  align-items: center;
  height: 31px;
  margin-left: 16.4px;
}

.lang-opt {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* A finger-sized target without moving the letters. */
.lang-opt::before {
  content: "";
  position: absolute;
  inset: -8px -10px;
}

.lang-opt[aria-checked="true"] {
  font-weight: 600;
}

/* Nudged so the line runs through the middle of the capitals. */
.lang-track {
  position: relative;
  top: 0.5px;
  width: 44px;
  height: 0.5px;
  margin: 0 8.4px 0 8px;
  background: currentColor;
  cursor: pointer;
}

.lang-track::before {
  content: "";
  position: absolute;
  inset: -12px 0;
}

.lang-dot {
  position: absolute;
  left: 0;
  top: -3.75px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}

.lang-switch[data-lang="en"] .lang-dot {
  transform: translateX(36px);
}

.menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 40px;
  margin-top: 12px;
  padding: 0 23.25px;
  border: 0.75px solid currentColor;
  border-radius: 20px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.menu-cta:hover,
.menu-cta:active {
  border-color: var(--green);
  background: var(--green);
  color: var(--dark);
}

.header-shell.is-open .menu-nav a {
  opacity: 1;
  transform: translateY(0);
}

.header-shell.is-open .menu-nav a:nth-child(1) { transition-delay: 0.08s; }
.header-shell.is-open .menu-nav a:nth-child(2) { transition-delay: 0.14s; }
.header-shell.is-open .menu-nav a:nth-child(3) { transition-delay: 0.2s; }

/* Closing plays the same cascade in reverse (last item in, first item out) */
.header-shell.closing .menu-nav a:nth-child(1) { transition-delay: 0.18s; }
.header-shell.closing .menu-nav a:nth-child(2) { transition-delay: 0.12s; }
.header-shell.closing .menu-nav a:nth-child(3) { transition-delay: 0.06s; }
.header-shell.closing .menu-actions { transition-delay: 0s; }

.menu-nav a .w {
  position: relative;
  display: inline-block;
}

/* Selecting a page tints it green; the weight stays put. */
.menu-nav a .w .bold {
  display: none;
}

.menu-nav a .w .regular {
  transition: color 0.25s ease;
}

.menu-nav a:hover .w .regular,
.menu-nav a:active .w .regular,
.menu-nav a:focus-visible .w .regular {
  color: var(--green);
}

.menu-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.menu-social a {
  transition: opacity 0.25s ease;
}

.menu-social a:hover,
.menu-social a:active {
  opacity: 0.6;
}

@media (min-width: 560px) {
  /* Centred on a whole pixel at any window width, even an odd one: on half a
     pixel everything in the bar, the plus first of all, is drawn off centre. */
  .header-shell {
    left: calc(50% - 264px);
    left: round(calc(50% - 264px), 1px);
    right: auto;
    margin: 0;
    width: calc(560px - 32px);
  }

  @keyframes pill-in {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-shell,
  .header-backdrop,
  .nav-pill-rotator,
  .menu-nav a,
  .menu-actions {
    transition: none !important;
  }

  .reveal,
  .project-hero,
  .header-shell {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .menu-nav a,
  .menu-actions,
  .wordmark .wm-l {
    transform: none !important;
  }

  .wordmark .wm-l {
    transition: none !important;
  }
}

/* ----------------------------- Intro loader -------------------------------
   Covers the home page for its first two seconds while the reel loads. The
   stamps cut from one to the next — a shuffle, not a dissolve — and the two
   lines rise into place exactly the way the header messages do.
   Geometry is taken from the 390px mockup: stamp 48px at an inset of 48px,
   type at 20px/1.05, the block sitting 35px above the optical centre. */

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

/* Already seen in this visit: not even a frame of it. */
html.intro-seen .site-loader {
  display: none;
}

.site-loader {
  --loader-inset: clamp(28px, 12.31vw, 48px);
  --loader-stamp: clamp(40px, 12.31vw, 48px);
  --loader-size: clamp(16px, 5.13vw, 20px);

  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ink);
  display: flex;
  align-items: center;
  /* The extra bottom padding is what lifts the block above dead centre. */
  padding: 0 var(--loader-inset) 70px;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}

.site-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* Every stamp is stacked in the same box, so swapping them can't nudge the
   type below: the box is fixed and each mark is centred inside it. */
.loader-stamps {
  position: relative;
  width: var(--loader-stamp);
  height: var(--loader-stamp);
  margin-bottom: 20px;
}

.loader-stamp {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
}

.loader-stamp.is-current {
  opacity: 1;
}

.loader-copy {
  position: relative;
  font-size: var(--loader-size);
  height: 2.1em;
}

.loader-message {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
}

.loader-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1em;
  line-height: 1.05;
  color: var(--white);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.62em);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.loader-line em {
  font-style: italic;
  font-weight: 800;
}

.loader-message.is-current .loader-line {
  opacity: 1;
  transform: translateY(0);
}

.loader-message.is-leaving .loader-line {
  opacity: 0;
  transform: translateY(-0.62em);
}

/* The first message is already .is-current in the markup, so a transition
   would never fire for it: it would simply be there. This gives it the same
   rise as every later swap. No forwards fill — the .is-current rule above
   supplies the end state, so the animation leaves nothing behind once the
   message rotates away. */
@keyframes loader-rise {
  from {
    opacity: 0;
    transform: translateY(0.62em);
  }
}

.loader-message:first-child .loader-line {
  animation: loader-rise 0.4s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  .loader-line {
    transition: none;
  }

  .loader-message:first-child .loader-line {
    animation: none;
  }
}

/* ------------------------------- About page -------------------------------
   Geometry is taken from the 390px mockup: a 32px content inset, body copy at
   20px/21.3, section titles at 32px. Everything scales below 390 so the long
   measured lines never overflow a small phone. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.about-hero,
.about-intro,
.about-team,
.about-method,
.about-space,
.reviews,
.about-marks,
.about-join,
.about-work {
  /* 32px in from both edges at 390, as in the mockup. */
  --about-pad: clamp(20px, 8.2vw, 32px);
}

.about-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 120px var(--about-pad);
  background: var(--green);
  border-radius: 0 0 16px 16px;
  /* The hero changes colour with the phrase it is holding. */
  transition: background-color 0.75s var(--ease-enter);
}

.about-hero.is-alt {
  background: var(--purple);
}

.about-type {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 8.72vw, 34px);
  line-height: 1.18;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
  transition: color 0.75s var(--ease-enter);
}

.about-hero.is-alt .about-type {
  color: var(--green);
}

.type-phrase {
  display: none;
}

.type-out b {
  font-weight: 800;
  font-style: normal;
}

.type-out em {
  font-weight: 800;
  font-style: italic;
}

.type-ghost {
  visibility: hidden;
}

/* The live text is centred inside the reserved block, so a half-typed line
   still sits in the middle of the hero instead of hugging its top. */
.type-live {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.type-line {
  width: 100%;
}

/* A caret that sits on the text while it types and keeps blinking after. */
.type-caret {
  display: inline-block;
  width: 0.06em;
  height: 0.92em;
  margin-left: 0.04em;
  vertical-align: -0.12em;
  background: currentColor;
}

/* A caret is solid while someone is typing and only blinks once they stop. */
.about-type.is-done .type-caret {
  animation: caret-blink 1.1s steps(1, end) 0.5s infinite;
}

@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.about-intro {
  padding: 79px var(--about-pad) 0;
}

.about-intro p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 5.13vw, 20px);
  line-height: 21px;
  color: var(--ink);
}

/* The second statement: 54px from the last baseline of the first to its
   first baseline, as in the mockup. */
.about-intro p + p {
  margin-top: 33px;
}

.about-intro em,
.about-type em {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 8.2vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-title em {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
}

/* ---- Team ---- */

.about-team {
  padding: 53px var(--about-pad) 0;   /* 64 from the last baseline above to the caps */
}

.team-list {
  list-style: none;
  margin: 29px 0 0;
  padding: 0;
}

.team-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 7px 0 9px;
  border-top: 1px solid rgba(51, 51, 51, 0.25);
}

.team-list li:last-child {
  border-bottom: 1px solid rgba(51, 51, 51, 0.25);
}

.team-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--purple);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-soft);
  text-align: right;
}

/* Names with a photograph open it beside the list, exactly as the home's
   "Other events" do (.events-body / .event-photo); the portraits are
   framed on the face. The paper polaroids are for the desktop only. */
.team-photo {
  object-position: 50% 35%;
}

/* ---- Method: the snake ---- */

/* 64px from the team list to the letters of "Our method" (its line box adds
   4px above them), 64px from the letters to the ribbon (11px below them).
   On phones the ribbon runs edge to edge, as in the Figma frame. */
.about-method {
  margin-top: 60px;
  padding: 0;
}
.about-method .section-title { padding: 0 var(--about-pad); }
/* 80px to the letters of "Our Creative Space": its line box carries 5px
   above the caps on a phone (2px on desktop, set below). */
.about-method + .about-space { padding-top: 75px; }

.snake {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 53px;
}

/* snake.js sets each label's text colour itself. */
.snake-phrase {
  font-family: var(--font-display);
  font-size: 32px;            /* in frame units: "We feel with empaty" = 349 wide, as in Figma */
  fill: var(--snake-text);
  white-space: pre;
  transition: fill 250ms ease;
}
/* Centred on the label's midline. Safari ignores dominant-baseline: central
   on text set along a path and left it sitting on its baseline, so the text
   is lowered by hand instead: 0.2656em is how far Machina's centre lies
   below its baseline, the same place "central" gives in Chrome. */
.snake-phrase textPath { baseline-shift: -0.265625em; }
.snake-phrase .r { font-weight: 400; font-style: normal; }
.snake-phrase .b { font-weight: 800; font-style: italic; }

/* ---- Drawn-on sketches (home) ---- */

.draw,
.draw svg,
.draw img {
  display: block;
  width: 100%;
  height: auto;
}

.draw text {
  font-family: var(--font-display);
  font-size: 20px;
  fill: var(--ink);
}

.draw text .r { font-weight: 400; }
.draw text .b { font-weight: 800; font-style: italic; }

/* Nothing is on screen until the section is reached; then each outline is
   revealed by a thick stroke travelling along it, which reads as a pen. */
.draw .dash { stroke-dashoffset: 1; }
.draw .draw-cap { opacity: 0; }

/* Clusters of small detail marks are wiped in as one block. Revealed
   individually they read as stray dots appearing out of nowhere; swept, they
   read as ink being filled in. */
.draw .ink-fill { clip-path: inset(0 100% 0 0); }

.draw.is-drawing .dash {
  animation: draw-on var(--dur, 560ms) var(--d, 0ms) var(--ease-pen) forwards;
}

.draw.is-drawing .ink-fill {
  animation: ink-fill var(--dur, 420ms) var(--d, 0ms) var(--ease-pen) forwards;
}

.draw.is-drawing .draw-cap {
  animation: draw-cap 460ms var(--d, 0ms) var(--ease-enter) forwards;
}

@keyframes draw-on  { to { stroke-dashoffset: 0; } }
@keyframes ink-fill { to { clip-path: inset(0 -3% 0 0); } }
@keyframes draw-cap { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Carousels ---- */

.about-space {
  padding: 104px var(--about-pad) 0;
}

/* The track scrolls past the page inset on both sides so the next card peeks
   in, the way it does in the mockup. */
.carousel {
  position: relative;
  margin: 28px calc(-1 * var(--about-pad)) 0;
}

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0 var(--about-pad);
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--about-pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

[data-carousel="space"] .carousel-track > li {
  width: min(264px, 72vw);
}

[data-carousel="space"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 264 / 330;
  object-fit: cover;
  border-radius: 8px;
}

.space-caption {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---- Reviews ---- */

.reviews {
  padding: 100px var(--about-pad) 0;   /* logos 110 below the caption's letters */
}

/* No visible heading: the logos open the section. */
.reviews-carousel {
  margin-top: 0;
}

/* One review per screen: each slide is the page width less its two insets
   and the next one waits a full inset pair away (64px), as in the mockup.
   Slides share a height, so the author line sits at the same depth on all. */
.reviews-carousel .carousel-track {
  gap: calc(2 * var(--about-pad));
}

.reviews-carousel .carousel-track > li {
  width: 100%;
}

.review {
  display: flex;
  flex-direction: column;
}

.review blockquote {
  margin: 41px 0 0;
  font-family: "PP Neue Machina Light", var(--font-display);
  font-weight: 300;
  font-size: clamp(17px, 5.13vw, 20px);
  line-height: 21px;
  color: var(--ink);
}

/* The logos hang from one line and each quote starts 40px below its own
   logo's ink. Pieno Cantiere's file carries 2px of air above its ink and
   4px below, so its box is pulled in to the ink. */
.review-logo {
  display: block;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  height: 24px;
  color: var(--ink);
}

.review-logo[height="46"] { height: 46.4px; margin: -2.1px 0 -4.3px; }
.review-logo--tall { height: 36px; }

.review-author {
  margin: auto 0 0;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* Four bars across the text measure: the one showing is a 4px bar in ink,
   the others a 2px hairline at 40%. */
.carousel-bars {
  display: flex;
  gap: 17px;
  margin: 32px var(--about-pad) 0;
}

.carousel-bars button {
  flex: 1;
  display: flex;
  align-items: center;
  height: 4px;
  padding: 10px 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: content-box;
}

.carousel-bars button::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: rgba(51, 51, 51, 0.4);
  transition: height 0.18s ease, background 0.18s ease;
}

.carousel-bars button[aria-current="true"]::before {
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
}

/* ---- Marks ---- */

/* The four marks share the text measure in equal quarters, each centred.
   (Pieno Cantiere's page uses this; the About page sets its own below.) */
.about-marks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  padding: 69px var(--about-pad) 0;
}

.about-marks img {
  display: block;
  width: 51px;
  height: 51px;
}

/* About: the stamps from Frame 2, 48px, 77px from centre to centre, the
   row centred on the page. (The ink animation that used to run here,
   ink-melt.js, is kept aside for another section.) */
.page-about .about-marks {
  display: flex;
  justify-content: center;
  padding-top: 111px;     /* 104px from the review bars' hairlines to the stamps */
}

.marks-row-1 {
  display: flex;
  gap: 29px;
}

.marks-row-1 img {
  display: block;
  width: 48px;
  height: 48px;
}
/* ---- Join us: on the page, above the footer ---- */

/* The work cards come first, then "Join our team": 64px seen from the
   cards' labels to the heading's capitals, 80px from Send to the footer
   (the status line under Send is part of that space). */
.about-join {
  padding: 56px var(--about-pad) 56px;
}

.about-join-title {
  margin: 0;
  color: var(--ink);
}

.about-join-form {
  margin-top: 25px;
}

/* A rule the visitor writes on, rather than a box: the address sits on the
   line, 3px above it. */
.about-join-field {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.about-join-field label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
}

.about-join-field input {
  flex: 1 1 auto;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background: linear-gradient(var(--rule), var(--rule)) no-repeat 0 100% / 100% 1px;
  --rule: rgba(51, 51, 51, 0.75);
  /* The line 8px under the text box, so what is typed never sits on it
     (the user, 2026-11-12: always keep text and line apart). */
  box-sizing: content-box;
  padding: 0 0 8px;
  height: 16px;
  font-family: var(--font-mono);
  /* 16px: anything smaller makes iOS zoom the page on focus. */
  font-size: 16px;
  line-height: 16px;
  color: var(--ink);
}

.about-join-field input:focus {
  outline: none;
  --rule: var(--purple);
}

/* A box for a few lines about the visitor: 326 x 72, a hairline at 75%. */
.about-join-message {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 72px;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(51, 51, 51, 0.75);
  border-radius: 8px;
  background: none;
  resize: none;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 18px;
  color: var(--ink);
}

.about-join-message::placeholder {
  color: rgba(51, 51, 51, 0.65);
}

/* Phone: the hint is 12px like the rest of the form. What people type stays
   at 16px, so iOS does not zoom the page when the box is tapped. */
@media (max-width: 899px) {
  .about-join-message::placeholder {
    font-size: 12px;
  }
}

.about-join-message:focus {
  outline: none;
  border-color: var(--purple);
}

/* The note, and beside it a small pill with a paperclip that opens the
   device's file picker. */
.about-join-attach {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.about-join-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
}

.about-join-clip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 56px;
  height: 32px;
  border: 1px solid rgba(51, 51, 51, 0.75);
  border-radius: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.about-join-clip img {
  display: block;
  width: 10.8px;
  height: 16.8px;
}

.about-join-clip.is-set {
  border-color: var(--purple);
}

.about-join-clip:focus-within {
  outline: 1px solid var(--purple);
  outline-offset: 2px;
}

/* Send: a purple pill, 144 x 40, on the left. */
.about-join-send {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 144px;
  height: 40px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--purple);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.about-join .join-status {
  margin: 8px 0 0;
  min-height: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
  opacity: 0.75;
}
/* ---- Selected work ---- */

.about-work {
  padding: 56px var(--about-pad) 77px;
}

.work-kicker {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 5.13vw, 20px);
  line-height: 21px;
  color: var(--ink);
}

/* 104px seen from the stamps to the kicker's capitals, the cards 32px under
   its baseline. */
.page-about .about-work {
  padding: 104px var(--about-pad) 0;
}

.page-about .work-kicker {
  margin-bottom: 26.6px;
}

.work-kicker em {
  font-weight: 800;
  font-style: italic;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 157 / 192;
  object-fit: cover;
  border-radius: 8px;
}

.work-card span {
  display: block;
  margin-top: 13px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink);
}

.page-about .work-card span {
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .draw .dash { stroke-dashoffset: 0; }
  .draw .ink-fill { clip-path: none; }
  .draw .draw-cap { opacity: 1; }
  .type-caret { animation: none; }
}

/* -------------------------------- Home page -------------------------------
   Geometry from the 390px mockup: 32px inset, section titles 32px, body copy
   20px/21.3 — the same scale the About page uses. */

.home-main {
  /* 32px from the page edges at 390, as in the mockup; it gives way on
     narrower phones so the measure doesn't collapse. */
  --hs-pad: clamp(16px, 8.2vw, 32px);
  background: var(--bg);
}

.hs {
  padding: 0 var(--hs-pad);
}

.hs-rule {
  border: 0;
  border-top: 1px solid rgba(51, 51, 51, 0.45);
  margin: 26px 0 0;
}

.hs-copy {
  margin: 38px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  /* The 21px leading this replaced put more air above the first line and
     below the last (6 and 4px); padding gives it back, so every gap measured from
     the letters (32 to the rule, 48 to the picture, 80 to the next chapter)
     stays where it was. */
  padding-block: 3px 2px;
  color: var(--ink-soft);
}

.hs-01 {
  padding-top: 64px;
}

/* The export is a 16:9 frame holding a grid of 8 columns by 5 rows, pitch
   166.5px, starting at x=300 y=138 of 1920x1080. Only the leftmost five
   columns are wanted, which happens to be a square block: 832.5 x 816. The
   window below is cut to that block and the picture is blown up by
   1920/832.5 behind it, so those five columns fill exactly the same measure
   as the paragraph above and the other three are simply outside the frame.
   The extra 24 units of height are breathing room, so the outermost marks
   are not shaved by the edge. */
.pittogrammi-frame {
  position: relative;
  /* 48px from the text to the first row of marks. The frame carries 12 of
     its 840 units of air above the marks (see below), and a percentage
     margin resolves against the width, as the frame does. */
  margin: calc(48px - 12 / 832.5 * 100%) 0 0;
  aspect-ratio: 832.5 / 840;
  overflow: hidden;
}

/* The footage is white marks on black and the file carries no alpha, so the
   ground is dropped here: inverted to black marks on white, then multiplied
   into the page, where white leaves the backdrop untouched. An SVG filter
   did this before, but Safari on iOS does not apply filter: url() to a video
   and showed the raw black frame instead. The blend lives on the wrapper so
   nothing between it and the page can isolate it, and the two plain CSS
   operations are far cheaper per frame than the SVG one was. */
.pittogrammi-ink {
  position: absolute;
  inset: 0;
  display: block;
  mix-blend-mode: multiply;
}

.pittogrammi {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 230.63%;         /* 1920 / 832.5 */
  height: auto;
  /* The middle of the wanted block sits at 37.30% across the frame and
     50.56% down, not at the centre, so the picture is shifted by exactly
     that difference — in its own percentages, so it holds at any width. */
  transform: translate(calc(-50% + 12.7%), calc(-50% - 0.56%));
  filter: invert(1);
}

/* ---- 02: what we do ---- */

.hs-02 {
  padding-top: 110px;
}

.services {
  margin: 44px 0 0;
}

.service {
  display: flex;
  gap: 16px;
  /* Tighter 10/14 copy ends closer to its box; this keeps 45px seen
     between one service's last line and the next title. */
  margin-top: 38.4px;
}

.service dt {
  flex: 0 0 38%;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  /* 1px here and 2px on the dd keep both first lines' letters level and
     where the old 1.55/1.7 leading put them, 32px under the rule. */
  padding-top: 1px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.service dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  line-height: 14px;
  padding-top: 2px;
  color: rgb(51 51 51 / 0.7);
}

/* The burger menu's entrance (script.js), made bigger so it reads: title,
   then list, rise 32px while they fade up, 0.7s each. Services that arrive
   together follow one another (--sd, set by the script). Hidden only once
   the script has taken over. */
.js-services .service dt,
.js-services .service dd {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js-services .service.is-in dt,
.js-services .service.is-in dd {
  opacity: 1;
  transform: translateY(0);
}

.js-services .service.is-in dt { transition-delay: calc(var(--sd, 0ms) + 0.08s); }
.js-services .service.is-in dd { transition-delay: calc(var(--sd, 0ms) + 0.22s); }

/* ---- 03: the drawn mark ---- */

/* Everything here is a percentage of the page width, because the sketch is a
   fixed-ratio drawing: that way the copy keeps landing in the same place on
   it at any screen size. The numbers come straight off the 390px mockup. */
.hs-03 {
  position: relative;
  padding-top: 39.5%;
  padding-bottom: 92.3%;
}

/* The sketch is a layer the copy sits on top of, exactly as in the mockup,
   where the construction lines run behind and past the text — hence the
   negative inset: the drawing is wider than the page. */
.sketch-03 {
  position: absolute;
  left: -5.13%;
  width: 110.26%;
  /* A percentage `top` would resolve against the section's height; a
     percentage margin resolves against its width, which is what has to
     drive this, since the drawing scales with the width. */
  top: 0;
  margin-top: 19%;
  pointer-events: none;
}

.hs-03-text {
  position: relative;
}

/* The three English lines ("Where authentic / dreams leave / timeless
   marks"). The Italian title is two lines and keeps its own height, so no
   empty band opens before the rule. */
html[lang="en"] .chapter-head .title-marked {
  min-height: 118px;
}

/* ---- Showcase ---- */

/* The reel is a one-screen window that never scrolls: the three projects
   are stepped through it by script.js, one per gesture, sliding on --idx.
   Native scrolling (snap, momentum, chaining) is what used to skip a frame
   or tear the hand-off with the page, so there is none of it here. */
.showcase {
  position: relative;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  touch-action: none;
}

/* While the reel holds the screen the page under it cannot move. */
html.reel-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Docked, the reel is pinned to the whole screen, so what shows is only
   ever the project — never a sliver of the page above or below it, even
   when a phone's momentum leaves the page a few pixels off the mark. The
   spacer keeps its place in the page meanwhile. Under the menu (65/70),
   over everything else. */
.showcase.is-held {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
}

.showcase-spacer {
  display: none;
  height: 100svh;
  height: 100dvh;
}

.showcase-spacer.is-on {
  display: block;
}

/* ---- Ready for design: the fog before the reel ----
   Page ground at the top, the first project's colours drifting in below,
   and at the very bottom the colours of its photograph's top edge, so the
   fog runs straight into the picture. The colours are read off that
   picture by script.js when the first card is a picture. These are Pieno
   Cantiere's, whose first card is a video: its first frame is white, so the
   edge is the page ground, and the clouds take the tapes' colours. */
.show-intro {
  --edge: linear-gradient(90deg, #f3f3f3, #f3f3f3);
  --fog-1: #1f4b5e;
  --fog-2: #d98a62;
  --fog-3: #caa27c;
  --fog-4: #ece6dc;
  --fog-ink: #333333;
  position: relative;
  height: 50svh;
  /* Reaches up into the 96px under the notebook, so the colour starts
     about a hundred pixels below the drawing rather than two hundred. */
  margin-top: -60px;
  overflow: hidden;
  isolation: isolate;
}

.show-intro-fog {
  position: absolute;
  inset: 0;
  background: var(--edge);
  /* A veil more than a fog: the colour stays thin and airy for most of the
     band and only gathers to full strength in the last stretch, where it
     has to meet the photograph. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.18) 24%, rgba(0, 0, 0, 0.45) 58%, rgba(0, 0, 0, 0.8) 82%, #000 96%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.18) 24%, rgba(0, 0, 0, 0.45) 58%, rgba(0, 0, 0, 0.8) 82%, #000 96%);
}

/* The tide: two waves of page ground drifting opposite ways at different
   speeds, blurred so the edge is felt rather than seen. */
.show-intro-tide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 62%;
  overflow: hidden;
  pointer-events: none;
}

.show-intro-tide svg {
  position: absolute;
  top: -12%;
  left: 0;
  width: 200%;
  height: 100%;
  fill: var(--bg);
  filter: blur(16px);
  will-change: transform;
  animation: tide 16s linear infinite;
}

.show-intro-tide svg + svg {
  opacity: 0.7;
  top: 0;
  animation: tide-back 24s linear infinite, tide-swell 7s ease-in-out infinite alternate;
}

/* The waves repeat every half-width, so sliding by half loops cleanly. */
@keyframes tide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes tide-back {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

@keyframes tide-swell {
  from { top: -8%; }
  to   { top: 10%; }
}

.show-intro-fog span {
  position: absolute;
  width: 90vw;
  height: 90vw;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.45;
  will-change: transform;
}

/* Four slow, out-of-step drifts: no two ever line up the same way twice
   in a minute, which is what keeps it from reading as a loop. */
.show-intro-fog span:nth-child(1) { background: var(--fog-1); left: -30vw; top: 30%; animation: fog-a 19s ease-in-out infinite alternate; }
.show-intro-fog span:nth-child(2) { background: var(--fog-2); right: -35vw; top: 42%; opacity: 0.35; animation: fog-b 23s ease-in-out infinite alternate; }
.show-intro-fog span:nth-child(3) { background: var(--fog-3); left: 10vw; top: 58%; opacity: 0.4; animation: fog-c 17s ease-in-out infinite alternate; }
/* The darkest cloud keeps to the bottom, where the photograph begins. */
.show-intro-fog span:nth-child(4) { background: var(--fog-4); left: -10vw; top: 86%; width: 120vw; opacity: 0.7; animation: fog-b 29s ease-in-out -7s infinite alternate-reverse; }

@keyframes fog-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(28vw, -6%, 0) scale(1.15); }
  100% { transform: translate3d(12vw, 8%, 0) scale(0.9); }
}

@keyframes fog-b {
  0%   { transform: translate3d(0, 0, 0) scale(1.05); }
  50%  { transform: translate3d(-24vw, 10%, 0) scale(0.85); }
  100% { transform: translate3d(-8vw, -8%, 0) scale(1.2); }
}

@keyframes fog-c {
  0%   { transform: translate3d(0, 0, 0) scale(0.9); }
  100% { transform: translate3d(-22vw, -12%, 0) scale(1.18); }
}

.show-intro-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--fog-ink);
}

/* Phantom: each letter surfaces out of a blur and sinks back, a step
   behind the one before it, so the words come and go like breath on glass. */
.phantom .ch {
  display: inline-block;
  white-space: pre;
  animation: phantom 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s);
}

@keyframes phantom {
  0%, 100% { opacity: 0.18; filter: blur(5px); transform: translateY(2px); }
  45%, 70% { opacity: 1; filter: blur(0); transform: none; }
}

.show-intro-arrow {
  width: 18px;
  height: 9px;
  opacity: 0.8;
  animation: intro-arrow 2.1s ease-in-out infinite;
}

@keyframes intro-arrow {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50%      { transform: translateY(6px); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .show-intro-fog span,
  .show-intro-tide svg,
  .phantom .ch,
  .show-intro-arrow {
    animation: none;
  }

  .phantom .ch {
    opacity: 1;
    filter: none;
  }
}

.show-card {
  position: relative;
  display: block;
  height: 100%;
  transform: translate3d(0, calc(var(--idx, 0) * -100%), 0);
  /* 720ms: keep equal to STEP_MS in script.js. */
  transition: transform 720ms cubic-bezier(0.65, 0, 0.35, 1);
}

.showcase.is-instant .show-card {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .show-card { transition-duration: 1ms; }
}

.show-card img,
.show-card .show-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-card-last img,
.show-card-last .show-video {
  border-radius: 0 0 16px 16px;
}

/* The plate is not pinned to the photo: it drifts, slowly and by a few
   pixels, so it reads as sitting above the image rather than printed on it. */
/* Liquid glass. The panel bends the frame behind it instead of covering it:
   a wide blur with the colour pushed back up, because blurring washes it
   out; a bright rim where the light catches the edge, strongest along the
   top; and a sheen that drifts across the surface. The fill stays very
   light so the photograph still reads through it, and the tint deepens
   towards the bottom, which is what keeps white type legible when the frame
   behind it is bright. */
.show-plate {
  animation: plate-float 9s ease-in-out infinite;
  position: absolute;
  top: var(--at, 56%);
  left: var(--hs-pad, 32px);
  right: var(--hs-pad, 32px);
  /* One height for all three, whatever the name and the list of services
     run to, and shorter than the copy would make it: the plate is a label,
     not a paragraph. The services are held to two lines. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 132px;
  padding: 14px 18px;
  border-radius: 18px;
  overflow: hidden;
  /* Two layers. Underneath, a fill so light the picture reads straight
     through it. Over that, a soft pool of shade that sits only behind the
     words and has faded to nothing well before the rim — so the panel keeps
     clear glass at its edges and corners, and the few percent of tint that
     white type needs over a near-white frame is spent where it is read. */
  background:
    radial-gradient(
      70% 78% at 50% 56%,
      rgba(51, 51, 51, 0.2) 0%,
      rgba(51, 51, 51, 0.1) 44%,
      rgba(51, 51, 51, 0) 74%
    ),
    linear-gradient(
      to bottom,
      rgba(243, 243, 243, 0.09) 0%,
      rgba(51, 51, 51, 0.02) 45%,
      rgba(51, 51, 51, 0.05) 100%
    );
  backdrop-filter: blur(34px) saturate(195%);
  -webkit-backdrop-filter: blur(34px) saturate(195%);
  box-shadow:
    inset 0 1px 0 rgba(243, 243, 243, 0.4),
    inset 0 0 0 1px rgba(243, 243, 243, 0.12),
    inset 0 -1px 0 rgba(243, 243, 243, 0.09),
    0 6px 20px rgba(51, 51, 51, 0.12);
  text-align: center;
  color: var(--white);
  /* With the panel this thin, nearly all the contrast is carried here: a
     tight shadow for the edge of each letter and a wide soft one that
     stands the word off whatever is behind it. */
  text-shadow: 0 1px 2px rgba(51, 51, 51, 0.55), 0 2px 14px rgba(51, 51, 51, 0.45);
}

/* The moving highlight. It is a transform on a child, so the blur underneath
   is not recomputed as it travels — only this layer is moved. */
.show-plate::before {
  content: "";
  position: absolute;
  inset: -50% -65%;
  pointer-events: none;
  background: linear-gradient(
    76deg,
    transparent 36%,
    rgba(243, 243, 243, 0.22) 47%,
    rgba(243, 243, 243, 0.06) 55%,
    transparent 63%
  );
  animation: plate-sheen 8s ease-in-out infinite;
}

/* Where the backdrop cannot be filtered, the panel goes back to being a
   plain scrim: the type has to stay readable before it looks like glass. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .show-plate {
    background: rgba(51, 51, 51, 0.46);
  }

  .show-plate::before { display: none; }
}

.show-title,
.show-services {
  position: relative;
  z-index: 1;
}

.show-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 8.2vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.show-title em {
  font-weight: 800;
  font-style: italic;
}

.show-services {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(243, 243, 243, 0.96);
}

/* ---- We enjoy meeting people ---- */

/* The deck is 592px of absolutely-positioned cards: the section has to
   reserve that height itself or the hand spills into the next one. */
.meet {
  position: relative;
  padding-top: 96px;
  padding-bottom: 345px;
}

/* The wordmark is a cut-out PNG: its ground was keyed out into real alpha,
   so it needs no blend mode to sit on the page — and nothing can bring the
   grey box back if a transform ever lands on an ancestor. */
.dsign {
  position: relative;
  width: 158px;
  aspect-ratio: 1301 / 394;   /* the MAIN's footprint: same size as the logo before */
  margin: 28px 0 0;
}

/* Every frame is larger than the MAIN: it is scaled and shifted so the MAIN
   lands exactly in the box, while the wider variations spill over a little.
   No transition on opacity: each change is a cut. */
.dsign img {
  position: absolute;
  left: -3.81%;
  top: -10.91%;
  width: 107.61%;
  height: 121.83%;
  max-width: none;
  opacity: 0;
}

.dsign img.is-on {
  opacity: 1;
}

/* The deck is laid out inside a fixed-ratio box, so the nine landing spots
   stay exactly where the mockup puts them at any width. */
.deck {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 122px;
  width: min(328px, calc(100% - 2 * var(--hs-pad) + 64px));
  aspect-ratio: 328 / 592;
  pointer-events: none;
}

.deck-card {
  --s: 1;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 58.54%;
  height: auto;
  aspect-ratio: 192 / 240;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0;
}

.deck.is-dealing .deck-card {
  /* 12s: ~2.5s to deal the hand, ~2.5s holding it complete, then the deck
     clears and stays clear for three full seconds so the copy underneath can
     actually be read before it starts again. */
  animation: deck-deal 12s var(--ease-enter) calc(var(--i) * 250ms) infinite;
}

/* One card's whole life: waits its turn, is thrown down with a little
   rotation so it reads as a hand dealing rather than a crossfade, holds
   while the rest of the hand lands, then the deck is swept and it repeats.
   The tilt alternates via --s so no two neighbours land the same way. */
@keyframes deck-deal {
  0% {
    opacity: 0;
    transform: translate3d(calc(var(--s) * -14px), 34px, 0) rotate(calc(var(--s) * -4deg)) scale(0.93);
  }
  3% { opacity: 1; }
  7.5% {
    transform: translate3d(0, 0, 0) rotate(calc(var(--s) * 0.5deg)) scale(1.012);
  }
  11%, 48% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  55%, 100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) rotate(0deg) scale(0.985);
  }
}

/* ---- Guests ---- */

.guests {
  padding-top: 40px;
}

.guests-title,
.events-title {
  font-size: clamp(20px, 6.2vw, 24px);
}

/* The carousel runs out to both screen edges: the chapter gutter becomes the
   track's own padding, so the next guest's photo shows past the right edge. */
.guests-carousel {
  --about-pad: var(--hs-pad);
  margin-top: 36px;
}

.guests-carousel .carousel-track > li {
  width: min(264px, 72vw);
}

.guests-carousel img {
  width: 100%;
  height: auto;
  aspect-ratio: 264 / 330;
  object-fit: cover;
  border-radius: 8px;
}

.guest-name {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
}

.guest-role {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-soft);
}

.guests-more {
  margin: 34px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.guests-more a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Other events ---- */

/* 96px seen from the letters, "Instagram Profile" to "Other events": the
   text boxes add 3px of their own. */
.events {
  padding-top: 93px;
}

.events-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.events-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 8px 0;
  border-top: 1px solid rgba(51, 51, 51, 0.3);
}

.events-list li:last-child {
  border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}

/* The names are buttons now — they open a photograph — but they keep the
   look of the list: no box, no fill, just the purple name. */
.event-name {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--purple);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.event-name:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* ---- Event photographs ----
   211 x 264, 8px corners, set 32px in from the right edge and centred on
   the three rows. No backdrop: the page stays as it is around it. Only one
   is ever up; script.js lets the last one fade out before the next comes. */
.events-body {
  position: relative;
  z-index: 2;
}

.event-photo {
  position: absolute;
  top: 50%;
  right: 0;
  width: 211px;
  height: 264px;
  margin-top: -132px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-enter), visibility 0s linear 0.3s;
}

.event-photo.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s var(--ease-enter), visibility 0s;
}

.event-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---- Clients marquee ---- */

/* 96px from the last event rule to the letters of "Selected client" (they
   start 3px into their line), 72px from the logos to the footer. */
.clients {
  padding: 93px 0 72px;
  overflow: hidden;
}

.clients-kicker {
  margin: 0 0 42px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(51, 51, 51, 0.5);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee-run 34s linear infinite;
}

/* The row is duplicated in script.js, so sliding exactly one row's width
   lands back on an identical frame and the loop never shows a seam. */
.marquee-row {
  display: flex;
  align-items: center;
  /* 42.67 between logos, as in "Group 275". */
  gap: 42.67px;
  padding-right: 42.67px;
  flex: 0 0 auto;
}

/* The width/height on each <img> is the size the logo is drawn at in the
   mockup, and it has to stand: these SVGs carry only a viewBox, so a CSS
   `width:auto` makes the browser fall back to its default replaced-element
   size and blow them up until they collide. */
.marquee-row img {
  display: block;
  flex: 0 0 auto;
  color: var(--ink);
}

@keyframes marquee-run {
  to { transform: translateX(-50%); }
}

/* Two uneven periods and a hair of rotation: a single sine on one axis
   reads as a machine, this reads as something resting on air. */
@keyframes plate-sheen {
  0%, 100% { transform: translate3d(-20%, 0, 0); }
  50%      { transform: translate3d(20%, 0, 0); }
}

@keyframes plate-float {
  0%   { transform: translate3d(0, -5px, 0) rotate(-0.25deg); }
  33%  { transform: translate3d(1.5px, 3px, 0) rotate(0.2deg); }
  66%  { transform: translate3d(-1.5px, 5px, 0) rotate(0.3deg); }
  100% { transform: translate3d(0, -5px, 0) rotate(-0.25deg); }
}

.show-card:nth-child(2) .show-plate { animation-delay: -2.2s; }
.show-card:nth-child(3) .show-plate { animation-delay: -4.4s; }

@media (prefers-reduced-motion: reduce) {
  .marquee,
  .show-plate,
  .show-plate::before { animation: none; }
  .deck.is-dealing .deck-card { animation: none; opacity: 1; }
}


/* ------------------------------ Scroll reveal -----------------------------
   One shared entrance so the page reads as directed rather than as a series
   of unrelated set-pieces: content lifts in as it is reached, staggered
   within each group by script.js. Nothing is hidden until the script has
   confirmed it can animate, so a failed script leaves the page readable. */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}

.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-enter), transform 0.9s var(--ease-enter);
  transition-delay: var(--rd, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------ Desktop: home ----------------------------
   The site is drawn mobile-first at 390px. This is the home's desktop pass:
   the reel goes full-bleed in 16:9, the measure opens up to something a
   desktop eye can read, and the pieces that want width — the project reel,
   the client marquee — break out of the column. The other pages still want
   their own pass; they keep the narrow column until then. */


/* ---- The header opens up a little on a big screen, and only a little ----
   Above 560px the pill is given an explicit width, not a maximum, so that is
   the figure that has to change here — a larger max-width alone would do
   nothing. 660 rather than full width: it is a pill, not a bar. */



/* ------------------------------- Chapters --------------------------------
   01, 02 and 03 behave like chapter headings: full size while you are in
   them, then shrunk and pinned at the top of the screen, stacking in order.
   The nesting in index.html is what keeps an earlier chapter pinned while a
   later one is being read. */

.chapter {
  position: relative;
}

/* The bar keeps one height whether pinned or not: changing it would make the
   numeral jump. The numeral itself (<isola-morph-num>, morph-num.js) is
   driven by scroll alone — ultrabold italic outline at 56px mid-screen,
   regular solid at 20px once pinned — and grows up out of the bar from its
   bottom-left corner, so it sits the same distance above the rule. */
.chapter-bar {
  position: sticky;
  top: calc(var(--ch) * var(--chapter-h, 46px));
  z-index: calc(10 + var(--ch));
  display: flex;
  align-items: flex-end;
  height: var(--chapter-h, 46px);
  box-sizing: border-box;
  padding: 0 var(--hs-pad, 32px) 12px;
  margin-top: 40px;
  background: var(--bg);
  transition: none;
}

.chapter-bar isola-morph-num {
  color: var(--ink);
}

/* The one rule of each chapter is the layout's own, under the heading. It
   scrolls up with the page and stops one row below its pinned numeral, where
   it becomes that row's rule in the stack — above the bars, so it is never
   covered by the next one. */
.chapter-rule {
  position: sticky;
  top: calc((var(--ch) + 1) * var(--chapter-h, 46px));
  z-index: calc(20 + var(--ch));
  height: 0;
  border: 0;
  border-top: 1px solid rgba(51, 51, 51, 0.45);
  margin: 32px var(--hs-pad, 16px) 0;
  transition: margin 0.45s var(--ease-enter);
}

/* Pinned: full width, as the stack's rule. */
.chapter-rule.is-pinned {
  margin-left: 0;
  margin-right: 0;
}

.chapter-head {
  padding-top: 24px;
}

/* One rhythm for every chapter: heading, 32px, rule, 32px, content. The
   content's own top margin is dropped so the 32 is the whole gap. */
.hs-01,
.hs-02,
.hs-03 {
  padding-top: 32px;
}

.chapter .hs-copy:first-child,
.chapter .services,
.hs-02 .service:first-child {
  margin-top: 0;
}

/* 80px seen between one chapter's last line and the top of the next
   numeral at full size. The bar's own 40px margin, less the 9px the big
   numeral rises above it, gives 31; what is left is added here. 01 ends on
   the pictograms (whose frame carries ~4px of air under the marks), 02 on
   a line of text (whose line box carries ~2px under the letters). */
.hs-01 {
  padding-bottom: 44px;
}

/* 02 now ends on 10/14 service copy, which sits closer to the bottom of
   its box than the old 12px lines did. */
.hs-02 {
  padding-bottom: 49.4px;
}

/* Air between the reel and the first chapter. */
.home-main > .chapter {
  padding-top: 24px;
}

/* ---- 03: the marks are drawn on the heading itself ---- */

.title-marked {
  position: relative;
}

.title-sketch {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.title-sketch svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hs-03 {
  padding-bottom: 96px;
}

/* Text to picture: 48px, the same step as text to pictograms in 01. */
.hs-figure {
  margin: 48px 0 0;
}

.hs-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

/* The notebook is a cut-out: its own edges, a soft shadow under the pages,
   as in Sezione 3. The image carries 14 of its 1176 units of clear air
   above the pages, taken back out of the 48px. */
.hs-notebook {
  margin-top: calc(48px - 14 / 1176 * 100%);
}

.hs-notebook img {
  aspect-ratio: 1176 / 944;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 0 5px rgba(51, 51, 51, 0.3));
}

/* ---- 03: purple marks on the numeral ----
   Laid over the numeral exactly where Sezione 3 draws them: the sketch's
   box is placed against the numeral's own box at full size, 1px a unit. */
.num-mark {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.draw.num-sketch {
  position: absolute;
  left: -5.87px;
  top: -4.72px;
  width: 110.61px;
  height: 55.85px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease-enter);
}

.draw.num-sketch.is-on {
  opacity: 1;
}

/* ---- Drawn marks that loop: drawn, held, wiped off, drawn again ----
   The wipe follows the pen's direction, quicker than the drawing. */
.draw.is-erasing .dash {
  stroke-dashoffset: 0;
  animation: draw-off calc(var(--dur, 560ms) * 0.55) calc(var(--d, 0ms) * 0.55) var(--ease-pen) forwards;
}

.draw.is-erasing .ink-fill {
  clip-path: inset(0 -3% 0 0);
  animation: ink-off calc(var(--dur, 420ms) * 0.55) calc(var(--d, 0ms) * 0.55) var(--ease-pen) forwards;
}

.draw.is-erasing .draw-cap {
  opacity: 1;
  animation: draw-cap-off 300ms calc(var(--d, 0ms) * 0.55) var(--ease-exit) forwards;
}

@keyframes draw-off { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
@keyframes ink-off { to { clip-path: inset(0 -3% 0 100%); } }
@keyframes draw-cap-off { to { opacity: 0; } }

/* ========================================================================
   Desktop — laid out the way burocratik.com is
   ------------------------------------------------------------------------
   Measured off that site at 1440: the page is not a centred column but a
   four-column grid running edge to edge behind a small gutter (18px there),
   columns of 339 with 16px gaps. Headings are set very large and run the
   full width; body text is small, around 17px, and is kept to one or two
   columns on the left rather than centred. Media goes full bleed.

   So the tokens below are the grid, and everything is placed against it.
   The header is untouched: same pill, same hamburger, a little wider — the
   one thing this site already took from there.
   ===================================================================== */



/* ------------------------------- Tablet ---------------------------------
   Between a phone and a laptop the page used to stay a 560px ribbon with
   wide margins and then jump to the full grid. This widens it gradually. */

@media (min-width: 600px) and (max-width: 899px) {
  .page {
    max-width: 680px;
  }

  .header-shell {
    width: calc(680px - 32px);
  }

  .page-about .about-type,
  .page-projects .projects-intro-title,
  .page-projects .archive-title {
    font-size: clamp(32px, 5.6vw, 44px);
  }

  .page-projects .project-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
}

/* ------------------------------ Join our team ----------------------------
   Set as the mockup draws it: a wide statement, then the invitation, then a
   single ruled field and the note beside its button, a rule, the open roles
   in two columns, and the marks along the foot. */

.join {
  --about-pad: clamp(10px, 4.1vw, 16px);
  padding: 96px var(--about-pad) 104px;
}

.join-lead {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 8.2vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.join-lead em {
  font-weight: 800;
  font-style: italic;
}

.join-title {
  margin: 72px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 8.2vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.join-title em {
  font-weight: 800;
  font-style: italic;
}

.join-form {
  margin-top: 36px;
}

.join-field {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.join-field label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
}

/* A rule the visitor writes on, rather than a box: the line is the field. */
.join-field input {
  flex: 1 1 auto;
  min-width: 0;
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: none;
  padding: 2px 0 6px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
}

.join-field input:focus {
  outline: none;
  border-bottom-color: var(--purple);
}

.join-note {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.join-note u {
  text-underline-offset: 3px;
}

.join-send {
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.join-send:hover {
  color: var(--purple);
}

.join-status {
  margin: 12px 0 0;
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.join-roles {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}

.join-roles-label,
.join-roles li {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.join-roles ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.join-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 64px;
}

.join-marks img {
  width: clamp(44px, 14vw, 62px);
  height: auto;
}

/* Consent for the application (the user, 2026-11-12): the same tick and
   type as the contact form's, with the link to the privacy policy. */
.about-join-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}
.about-join-consent input {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  margin: 2px 0 0;
  border: 0.75px solid var(--ink);
  border-radius: 3px;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.about-join-consent input:checked {
  border-color: var(--purple);
  background: var(--purple);
}
.about-join-consent input:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 2px;
  height: 5px;
  border: solid var(--bg);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.about-join-consent input:focus-visible {
  outline: 1px solid var(--purple);
  outline-offset: 2px;
}
.about-join-consent label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 14px;
  color: var(--ink);
  cursor: pointer;
}
.about-join-consent a,
.cf-consent label a {
  color: inherit;
  text-decoration: underline;
}

/* Line breaks that hold only on the phone, or only on the desktop: the
   Italian titles need different ones to keep each bold part whole. */
@media (max-width: 899px) {
  br.br-wide { display: none; }
}
@media (min-width: 900px) {
  br.br-phone { display: none; }
}

/* ---- Privacy policy (privacy.html), phone ---- */
.privacy {
  padding: 120px var(--about-pad, 24px) 96px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--ink);
}
.privacy h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 38px;
}
.privacy h2 {
  margin: 32px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
}
.privacy p,
.privacy ul {
  margin: 0 0 12px;
}
.privacy ul {
  padding-left: 16px;
}
.privacy strong {
  font-weight: 600;
}
.privacy a {
  color: inherit;
  text-decoration: underline;
}
.privacy mark {
  background: none;
  color: var(--purple);
}

/* Join form, phone (the user, 2026-11-12): no note; the consent right under
   the box; the paperclip pill beside Send on one row. On the desktop,
   desktop.js moves both into its own .join-actions and this row is left
   empty, so it is hidden. */
.about-join-actions:empty { display: none; }

@media (max-width: 899px) {
  /* Right-aligned with the box's edge; the paperclip as tall as Send. */
  .about-join-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
  }
  .about-join-actions .about-join-clip {
    height: 40px;
    border-radius: 20px;
  }
  .about-join-actions .about-join-attach,
  .about-join-actions .about-join-send {
    margin-top: 0;
  }
  .about-join-actions .about-join-attach {
    display: block;
  }
}
/* "Attraverso il design / vediamo il mondo" (two lines, the user 2026-11-12):
   the first line is 5% wider than the measure at the chapters' size, so on
   the phone this one heading is set 6% smaller to keep it on two lines. */
@media (max-width: 899px) {
  html[lang="it"] .chapter[style*="--ch:1"] > .chapter-head .section-title {
    font-size: clamp(24px, 7.7vw, 30px);
  }
}
/* Phone menu (the user, 2026-11-12): the ITA/ENG switch centred over the
   Contact pill, whatever the language makes either of them measure. */
@media (max-width: 899px) {
  .menu-start { align-items: stretch; }
  .lang-switch { justify-content: center; margin-left: 0; }
}
/* Form errors are red, in every form (the user, 2026-11-12). */
.join-status.is-wrong,
.dream-status.is-wrong {
  color: var(--red, #f0262b);
  opacity: 1;
}
.dream-status.is-wrong:not(.is-on) { opacity: 0; }

/* ------------------------- Phone: tighter vertical air ---------------------
   2026-11-12, the user: the phone wasted room in its widest gaps, costing
   scroll. Each of those gaps loses 24px (16 or 8 where the gap was small);
   order and layout stay as they were. Phone only: the desktop is untouched. */
@media (max-width: 899px) {
  /* Home chapters: section edge to "01.", numeral to heading, heading to
     rule, rule to content. */
  /* flow-root: with no padding left, the bar's 40px top margin would
     otherwise collapse out through the sheet and open above it, leaving
     "01." standing over the reel. */
  .home-main > .chapter { padding-top: 0; display: flow-root; }
  .chapter-head { padding-top: 16px; }
  .chapter-rule { margin-top: 24px; }
  /* 28px of ink on both sides of the rule, in all three chapters. His
     words: "unifichiamo le distanze facendo Titolo > Linea e Linea > Body
     28px". The number is a measurement of the letters, not a padding, and
     the boxes carry different slack: measured at 390 with the rule out of
     its sticky position and the reveals settled, 24px here read 26 / 24 /
     26 under the rule. */
  .hs-01 { padding-top: 26px; }
  .hs-02 { padding-top: 28px; }
  .hs-03 { padding-top: 26px; }

  /* Above the rule the 24px margin already reads 28 in 01 and 02. 03 read
     29 because the English title is held three lines tall, so no empty
     band opens before the rule, with a flat 118px: right at 390 and wrong
     anywhere else, since the type scales with the viewport (at 360 the
     three lines are 108 and 10px of slack opened). Three lines of the real
     scale instead: 3.66 = 3 x the 1.22 line-height. */
  html[lang="en"] .chapter-head .title-marked {
    min-height: calc(3.66 * clamp(26px, 8.2vw, 32px));
  }
  .meet { padding-top: 48px; }   /* 96 -> 72 -> 48 (the user asked twice) */
  .events { padding-top: 69px; }
  .clients { padding-top: 69px; padding-bottom: 48px; }

  /* About */
  .about-hero { padding-top: 96px; padding-bottom: 96px; }
  .about-intro { padding-top: 55px; }
  .about-method { margin-top: 36px; }
  /* 2026-11-16, lui: "Tra our method e lo snake e fra lo snake e creative
     space c'è troppo spazio, ti chiedo di ridurlo di almeno 16px". Sedici
     esatti via da tutti e due: 53 -> 37 sopra il disegno, 51 -> 35 sotto.
     Il disegno porta dentro la sua aria, quindi il vuoto che si vede resta
     più largo del numero, ma il taglio sullo schermo è di 16px pieni. */
  .snake { margin-top: 37px; }
  .about-method + .about-space { padding-top: 35px; }
  .reviews { padding-top: 76px; }
  .page-about .about-marks { padding-top: 87px; }
  .page-about .about-work { padding-top: 80px; }

  /* Our Designs */
  .projects-work,
  .archive { padding-top: 50px; }
  .projects-outro { padding-top: 54px; padding-bottom: 56px; }

  /* Project pages */
  .case-intro { padding-top: 54px; }
  .case-media { margin-top: 42px; }
  .case-media + .case-copy { margin-top: 47px; }
  .case-outro { padding-top: 45px; padding-bottom: 52px; }

  /* Privacy */
  .privacy { padding-top: 96px; padding-bottom: 72px; }
}

/* The four closing stamps on Our Designs (the user, 2026-11-13, phone only:
   "i timbri si sono scostati dal centro e vorrei che tra il testo e i timbri
   ci fossero 40px e tra i timbri e il footer ci siano 64px"; then, once seen:
   "farei 64px anche sopra i timbri", so the row has the same air on both sides).
   The row used to begin 11px in from the text margin, which left it sitting
   left of centre once the page's margins came in to 24px. It is centred now,
   so it stays in the middle whatever the width. The stamps keep their 48px. */
@media (max-width: 899px) {
  .page-projects .outro-marks {
    justify-content: center;
    margin: 64px 0 0;
  }

  .page-projects .projects-outro {
    padding-bottom: 64px;
  }

  /* The dark footer on this page too (the user, 2026-11-13: "prova a portare
     prima il footer di Our Designs a 24px nei bordi"). It takes the page's own
     --pad rather than a flat 24px, so its edges line up with the copy above it
     exactly, at every width, and keep doing so if --pad changes again.
     Everywhere else the footer keeps its 32px. */
  .page-projects .site-footer {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  /* The 14 project pages, the same way (the user, 2026-11-13, once Our Designs
     was approved: "Possiamo proseguire con le pagine progetto allo stesso modo:
     24px dai bordi sia nella pagina che nel footer"). One variable carries the
     whole page, and the footer takes it too, so its edges line up with the copy
     at every width. Narrow phones keep a little back, as before (6.2vw: a full
     24px from 387px up, 22.3px at 360). */
  .page-case {
    --case-pad: clamp(20px, 6.2vw, 24px);
  }

  .page-case .site-footer {
    padding-left: var(--case-pad);
    padding-right: var(--case-pad);
  }
}

/* The end of a project page, now the end of Our Designs (the user, 2026-11-13:
   "rimuovere la linea orizzontale sopra i tasti e lo spazio fra il testo e i
   tasti deve essere di 80px", "invertire la disposizione testo/timbri proprio
   come nella pagina our designs ... cosi abbiamo una sola matrice per tutto").
   The order is swapped in script.js, on the phone only; here the stamps take
   the shape they have on Our Designs — one centred row of 48px stamps with
   64px of air above and below — and the rule over the buttons goes. The rule
   under them stays: he crossed out only the one above.
   Phone only. The desktop keeps its own ending (desktop.css, .cs-end), where
   the stamps are still the grid that its inking animation is built on. */
@media (max-width: 899px) {
  .case-next {
    margin-top: 80px;
    padding-top: 0;
    border-top: 0;
  }

  /* The air under the words belongs to the stamps now, so it is counted once. */
  .page-case .case-outro {
    padding-bottom: 0;
  }

  .about-marks.case-marks {
    display: flex;
    justify-content: center;
    gap: 29.3px;
    padding: 64px var(--case-pad);
  }

  .about-marks.case-marks img {
    width: 48px;
    height: 48px;
  }
}

/* IBM Plex Mono one pixel larger on the PHONE only (the user, 2026-11-12:
   10 -> 11, 12 -> 13; the desktop stays as it was). */
@media (max-width: 899px) {
  .projects-intro-copy, .outro-copy { font-size: 13px; }
  .project-card-desc { font-size: 13px; }
  .archive-name { font-size: 13px; }
  .archive-services { font-size: 11px; }
  .case-date { font-size: 11px; }
  .case-meta ul { font-size: 13px; }
  .case-outro p { font-size: 13px; }
  .case-next-btn { font-size: 13px; }
  .case-next-back { font-size: 13px; }
  .site-footer .footer-label { font-size: 11px; }
  .site-footer .footer-value { font-size: 13px; }
  .footer-cta { font-size: 13px; }
  .footer-social { font-size: 11px; }
  .footer-nav { font-size: 11px; }
  .site-footer .footer-copyright { font-size: 11px; }
  .menu-actions { font-size: 13px; }
  .team-name { font-size: 13px; }
  .team-role { font-size: 11px; }
  .space-caption { font-size: 11px; }
  .review-author { font-size: 13px; }
  .about-join-field label { font-size: 13px; }
  .about-join-message::placeholder { font-size: 13px; }
  .about-join-note { font-size: 13px; }
  .about-join-send { font-size: 13px; }
  .about-join .join-status { font-size: 13px; }
  .work-card span { font-size: 11px; }
  .hs-copy { font-size: 13px; }
  .service dt { font-size: 13px; }
  .service dd { font-size: 11px; }
  .show-intro-text { font-size: 13px; }
  .show-services { font-size: 13px; }
  .guest-name { font-size: 13px; }
  .guest-role { font-size: 11px; }
  .guests-more { font-size: 13px; }
  .event-name { font-size: 13px; }
  .event-date { font-size: 13px; }
  .clients-kicker { font-size: 11px; }
  .join-status { font-size: 13px; }
  .about-join-consent label { font-size: 10px; line-height: 13px; }
  .privacy { font-size: 13px; }
}

/* Phone consent (the user, 2026-11-12): 1pt smaller (above), the text
   justified so every line runs to the box's right edge, the tick centred
   on the text block. */
@media (max-width: 899px) {
  .about-join-consent { align-items: center; }
  .about-join-consent input { margin: 0; }
  .about-join-consent label,
  .cf-consent label,
  .dream-gdpr-lines {
    text-align: justify;
    text-align-last: left;
  }
}

/* Phone chapter rules (the user, 2026-11-12: the 02 rule went missing after
   scrolling on Android Chrome). A zero-height box with a hairline border
   could be culled with its sticky layer; drawn as a real 1px box, on a
   layer of its own, it has nothing to lose. */
@media (max-width: 899px) {
  .chapter-rule {
    height: 1px;
    border-top: 0;
    background: var(--chapter-rule-c, rgba(51, 51, 51, 0.45));
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}
/* Join form, phone (the user, 2026-11-12): the message box 24px taller
   (72 -> 96), which takes the consent, paperclip and Send down with it.
   About and Contatti alike. */
@media (max-width: 899px) {
  .about-join-message { height: 96px; }
}
/* Phone round, 2026-11-12 (the user, from his Android):
   - Home d-sign: 16px less in each of the two gaps, title -> rule -> logo
     (26+28 -> 18+20) and logo -> paragraph (38 -> 22).
   - Our Designs: the text 24px closer to the next picture (60 -> 36).
   - Join message box: what is typed at the form's 13px body, not 16. The
     box is set at 16px (anything smaller makes iOS zoom on focus) and
     scaled by 13/16, everything in it sized up by 16/13 to compensate; a
     negative margin hands back the room the unscaled box would take. */
@media (max-width: 899px) {
  .meet .hs-rule { margin-top: 18px; }
  .meet .dsign { margin-top: 20px; }
  .meet .hs-copy { margin-top: 22px; }

  .project-list { gap: 36px; }

  .about-join-message,
  .page-contact .about-join-message {
    width: calc(100% / 0.8125);
    height: calc(96px / 0.8125);
    margin-bottom: calc(96px - 96px / 0.8125);
    padding: calc(8px / 0.8125) calc(12px / 0.8125);
    border-width: calc(1px / 0.8125);
    border-radius: calc(8px / 0.8125);
    line-height: calc(16px / 0.8125);
    transform: scale(0.8125);
    transform-origin: 0 0;
  }
  .page-contact .about-join-message {
    padding: calc(8.25px / 0.8125) calc(11.25px / 0.8125);
    border-width: calc(0.75px / 0.8125);
  }
  .about-join-message::placeholder { font-size: 16px; }
}
/* Home d-sign, phone (the user, 2026-11-12): the photo hand is dealt over
   the "We enjoy meeting people" title, from its top, instead of 74px lower
   where it ran down over "Guests and speakers". */
@media (max-width: 899px) {
  .meet .deck { top: 48px; }
}
/* Phone steadiness (the user and the developer, 2026-11-12: judders and
   things flashing up while scrolling).
   - About's opening screen is the small viewport's height (svh), not the
     dynamic one: dvh changes whenever the browser bar slides in or out,
     and every change shifted the whole page under the reader's eyes.
   - The live blur over the top of the projects' first picture is dropped
     on the phone; the veil of page colour still dissolves it. A backdrop
     blur repainted on every scroll frame is the heaviest thing on the page
     for a phone's GPU and the likeliest source of flashed frames. */
@media (max-width: 899px) {
  .about-hero { min-height: 100svh; }
  .showcase::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
/* Join our team: every field is required (the user, 2026-11-12), and the
   missing one turns red itself, as on the contact and dream forms
   (script.js sets .is-wrong). Phone and desktop alike. */
.about-join-form .about-join-field.is-wrong label,
.page-contact .about-join-form .about-join-field.is-wrong:focus-within label { color: var(--red, #f0262b); }
.about-join-form .about-join-field.is-wrong input { --rule: var(--red, #f0262b); }
.about-join-form .about-join-message.is-wrong,
.about-join-form .about-join-message.is-wrong:focus { border-color: var(--red, #f0262b); }
.about-join-form .about-join-message.is-wrong::placeholder { color: var(--red, #f0262b); }
.about-join-form .about-join-consent.is-wrong label { color: var(--red, #f0262b); }
.about-join-form .about-join-consent.is-wrong input,
.page-about .about-join-form .about-join-consent.is-wrong input,
.page-contact .about-join-form .about-join-consent.is-wrong input { border-color: var(--red, #f0262b); }
.about-join-form .about-join-clip.is-wrong,
.page-about .about-join-form .about-join-clip.is-wrong { border-color: var(--red, #f0262b); color: var(--red, #f0262b); }

/* The Name row above the e-mail one, phone (the user, 2026-11-12): the
   same 20px between rows as between the e-mail line and the box, and the
   two labels the same width so both lines start together. */
@media (max-width: 899px) {
  .about-join-field + .about-join-field { margin-top: 20px; }
  .about-join-field label { min-width: 7ch; }
}
/* Phone home, the project plates (the user, 2026-11-12):
   - "this liquid glass gives me nothing": on Southway's lime frame the
     clear glass vanished. A steady tint of ink behind the words and a light
     rim now make it read on any picture, light or dark.
   - "why are Gaudino's services cut?": the titles 8px smaller, so every
     name fits on one or two lines with all its services, Southway with its
     payoff "Sail into the clouds". */
.show-plate {
  background:
    radial-gradient(
      70% 78% at 50% 56%,
      rgba(51, 51, 51, 0.30) 0%,
      rgba(51, 51, 51, 0.18) 60%,
      rgba(51, 51, 51, 0.10) 100%
    ),
    rgba(51, 51, 51, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(243, 243, 243, 0.45),
    inset 0 0 0 1px rgba(243, 243, 243, 0.32),
    0 6px 20px rgba(51, 51, 51, 0.18);
}
.show-title { font-size: clamp(16px, calc(8.2vw - 8px), 24px); }
.show-services { -webkit-line-clamp: 3; line-clamp: 3; }
/* ---- Phone: Mind our own business (TEST 2026-11-13) ----
   The desktop's pill, on the phone About under the studio photos: tapped,
   the outlined button slides aside, the dark pill under it shows the eye
   opening, and after a second the adventure opens (about-spy.js). Remove
   this block, the .space-spy markup in about.html and about-spy.js to undo. */
.space-spy { display: none; }
@media (max-width: 899px) {
  .space-spy {
    display: block;
    padding: 24px var(--about-pad, 32px) 0;
  }
  .space-spy-btn {
    position: relative;
    display: block;
    width: 200px;
    height: 40px;
    -webkit-tap-highlight-color: transparent;
  }
  .space-spy-eye {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: var(--ink);
  }
  .space-spy-eye img {
    position: absolute;
    left: 12px;
    top: 10px;
    width: 39px;
    height: 20px;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.18s ease-in;
  }
  .space-spy-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid var(--ink);
    border-radius: 20px;
    background: var(--bg);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 16px;
    color: var(--ink);
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .space-spy-btn.is-open .space-spy-label { transform: translateX(59px); }
  .space-spy-btn.is-open .space-spy-eye img {
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) 0.22s;
  }

  /* The dive, as on the desktop (desktop.css, "The dive"): the eye shuts,
     the button leaves to the right, the page drifts into the dark pill and
     a black veil thickens over it. Transform and opacity only. */
  .space-spy-btn.is-diving .space-spy-eye img {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.16s ease-in;
  }
  .space-spy-btn.is-diving .space-spy-label {
    transform: translateX(320px);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.55, 0, 0.75, 0.2) 0.1s, opacity 0.3s ease-in 0.3s;
  }
  main.spy-ready { will-change: transform; }
  main.spy-diving { transition: transform 1.9s cubic-bezier(0.5, 0, 0.75, 0.35) 0.12s; }
  main.spy-surfacing { transition: transform 1.3s cubic-bezier(0.2, 0.6, 0.35, 1); }
  .spy-veil {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #333333;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
  }
  .spy-veil.is-on {
    opacity: 1;
    transition: opacity 1.5s cubic-bezier(0.5, 0, 0.7, 0.45) 0.45s;
  }
  .spy-veil.is-off {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.3, 0, 0.3, 1);
  }
  /* Back from the adventure (2026-11-13: smoother): the page settles under
     the black, which then fades slowly. Restored page: the veil; reloaded
     page: a cover on the root, set in about.html's head. */
  .spy-veil.is-return {
    opacity: 0;
    transition: opacity 1.2s ease 0.15s;
  }
  html.spy-return::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: #333333;
    opacity: 1;
    pointer-events: none;
    transition: opacity 1.2s ease;
  }
  html.spy-return.spy-return-out::after { opacity: 0; }

  /* The line before the button, as on the desktop (desktop.css, .space-cta),
     in the phone's own measure (the user, 2026-11-13). */
  /* The section already holds the page margin: no second one. */
  .space-spy { padding: 48px 0 0; }
  .space-spy-text {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-weight: 400;
    /* Each of the three lines whole on a 375 phone (at 24px the first two
       wrapped). */
    font-size: clamp(18px, 5.3vw, 21px);
    line-height: 1.15;
    color: var(--ink);
  }
  .space-spy-text em { font-weight: 800; font-style: italic; }
}
/* ------- 24px side margins on the phone, and the bar lifted (2026-11-13) ----
   The user, after approving 24px on Our Designs and the project pages: roll
   it to the rest of the phone, "lasciando il serpente e il carosello degli
   ospiti esattamente come stanno", and "alza la navbar di 24px e portala a
   16px dai bordi".
   The snake is drawn to a 390-wide frame and the carousels are set to run
   their photos out to the old gutter, so those three keep the measure they
   had: the snake by giving back the difference as a margin, the carousels by
   holding the old value of the variable they read.
   Phone only: the desktop sets its own --d-side from 900px up. */
@media (max-width: 899px) {
  .home-main { --hs-pad: clamp(16px, 6.2vw, 24px); }

  .about-intro,
  .about-team,
  .about-method,
  .about-space,
  .reviews,
  .about-marks,
  .about-join,
  .about-work { --about-pad: clamp(20px, 6.2vw, 24px); }

  /* contatti.css sets --cf-pad on .cf itself and loads after this file, so
     the override has to be more specific, not merely later. */
  .page-contact .cf { --cf-pad: 24px; }

  /* The guests block keeps the old measure whole — its carousel cancels the
     section's padding and re-applies it, so moving one without the other
     would push the cards off the edge. Holding the variable for the whole
     section leaves the whole thing exactly as it was.
     The snake needs nothing: .about-method has no side padding and the
     drawing is full-bleed, so the margins never touched it. */
  .hs.guests { --hs-pad: clamp(16px, 8.2vw, 32px); }

  /* The bar: 16 from the sides, and 24 higher than it sat (16 -> 40). */
  :root {
    --header-side: 16px;
    --header-inset: 40px;
  }

}

/* The address is a link to Google Maps (script.js). Il colore resta quello
   del posto in cui sta; il resto dipende dalla versione, qui sotto.
   Sul desktop non porta niente addosso: da lì vale la regola generale che
   lui ha dato nel pomeriggio — a riposo normale, in hover grassetto e
   sottolineato — e quella la scrive desktop.css. */
.maps-link {
  color: inherit;
  text-decoration: none;
}

/* L'indirizzo, sul telefono. Un dito non può passare sopra una parola per
   scoprire che è un tasto, quindi dove la via sta da sola — la didascalia
   dello spazio su About, lo studio su Contatti — resta sottolineata e in
   grassetto, come ha chiesto stamattina ("per far capire che è un tasto"),
   con il filetto del link "Isola Studio" delle pagine progetto.
   Nel footer no: 2026-11-16, lui, "togli il grassetto e la sottolineatura
   all'indirizzo nel footer ma lascialo interagibile". Lì sta in mezzo ad
   altri link che non portano niente addosso, e pesava. Il link resta.
   Dopo la regola base, non dentro il blocco telefono più in alto: lì veniva
   scavalcata da questa, che nel file viene dopo e pesa uguale. */
@media (max-width: 899px) {
  .maps-link {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
  }

  .site-footer .maps-link {
    font-weight: inherit;
    text-decoration: none;
  }
}
