/* ==========================================================================
   Portfolio — live event production
   Colori e font si cambiano qui sotto, in :root.
   ========================================================================== */

:root {
  --bg: #0b0b0a;
  --bg-2: #121210;
  --surface: #1a1916;
  --line: #262522;
  --line-2: #3a3934;
  --text: #eeece5;
  --muted: #9a978d;
  --dim: #6b6962;
  --accent: #2f62ff;
  --accent-text: #5c84ff;
  --accent-ink: #ffffff;
  --map-land: #161614;
  --map-line: #3e3d39;
  --map-grid: #22211e;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 92.5rem;
  --radius: 0.375rem;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: dark;

  /* Three sizes for the small capitals all over the site: labels (menu, top line, kickers,
     footer, show window labels), small (tags, badges, the labels of the numbers
     and of Contact, map names) and tiny (photo credit, coordinates). A bit larger on computers */
  --fs-label: 0.8125rem;
  --fs-small: 0.75rem;
  --fs-tiny: 0.6875rem;

  /* the mouse pointer: system ones until the thin arrow below takes over */
  --cursor: auto;
  --cursor-link: pointer;
}

/* --------------------------------------------------------------------------
   Pointer
   -------------------------------------------------------------------------- */

/* On computers with a mouse: a thin arrow, white outline and dark inside, everywhere; on links and
   buttons the same arrow inverted, white inside with a dark outline, instead of the hand
   (drawn by tools/make_cursor.py, 2x for Retina) */
@media (hover: hover) and (pointer: fine) {
  :root {
    --cursor: url("assets/cursor.png") 2 2, auto;
    --cursor-link: url("assets/cursor-link.png") 2 2, pointer;
  }
}
@supports (cursor: image-set(url("assets/cursor.png") 1x) 2 2, auto) {
  @media (hover: hover) and (pointer: fine) {
    :root {
      --cursor: image-set(url("assets/cursor.png") 1x, url("assets/cursor@2x.png") 2x) 2 2, auto;
      --cursor-link: image-set(url("assets/cursor-link.png") 1x, url("assets/cursor-link@2x.png") 2x) 2 2, pointer;
    }
  }
}
html { cursor: var(--cursor); }
a[href], button, summary, label[for], [role="button"] { cursor: var(--cursor-link); }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

/* Every size is in rem, so this one value scales the whole site: 80% on computers, where the
   full size felt too big, and the full 16px on phones */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem; /* about the header height */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (min-width: 901px) {
  html { font-size: 80%; }
  :root { --fs-label: 0.875rem; --fs-small: 0.8125rem; --fs-tiny: 0.75rem; }
}
/* Phones: the whole site scaled to the screen, so every phone shows what Gabriele's iPhone shows (402 x 754 in
   Safari, where it is 16px): smaller on a smaller phone, larger on a larger one (Gabriele, 2026-11-01). It follows the
   width, or the height on a screen shorter for its width, so the sections still fit; never under 13px or over 18px */
@media (max-width: 500px) {
  html { font-size: clamp(13px, min(3.98vw, 2.122lvh), 18px); }
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Haze behind the whole page (assets/ambient.js): a small canvas stretched over the screen */
.ambient { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.ambient.is-pixelated { image-rendering: pixelated; }

/* Film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 0.1875rem; }
::selection { background: var(--accent); color: var(--accent-ink); }

.label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.display {
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.skip {
  position: absolute;
  left: -624.9375rem;
  top: 0.75rem;
  z-index: 200;
  padding: 0.625rem 0.875rem;
  background: var(--accent);
  color: var(--accent-ink);
}
.skip:focus { left: 0.75rem; }

/* --------------------------------------------------------------------------
   Buttons & tags
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.375rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 0.875rem/1 var(--font-sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: var(--cursor-link);
  transition: translate .25s var(--ease), box-shadow .25s, color .25s, background-color .25s;
}
.btn:hover { translate: 0 -2px; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn--sm { padding: 0.625rem 0.9375rem; font-size: 0.8125rem; }
/* Contact in the header: small, white edge, filled white on hover */
/* Contact looks and behaves like Instagram and LinkedIn (.btn--ghost): a soft grey edge (--line-2) that turns white
   on the mouse while the button rises 2px, no white fill (Gabriele 2026-11-14; it used to have a white edge and to
   fill white with dark letters on the mouse) */
.header-cta { padding: 0.5rem 0.875rem; font-size: var(--fs-label); }

/* Headline number for long engagements, e.g. "19 weeks" */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5625rem;
  border-radius: 62.4375rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 0.3125rem 0.5625rem;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 62.4375rem;
  font-weight: 500;
  font-size: var(--fs-small);
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Stage-light placeholder (used when an event has no photo yet)
   -------------------------------------------------------------------------- */

.ph {
  --h: 18;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 45% at 50% 108%, hsl(var(--h) 95% 55% / .55), transparent 70%),
    conic-gradient(from 160deg at 20% -8%, transparent, hsl(var(--h) 100% 72% / .30) 7deg, hsl(var(--h) 100% 80% / .42) 10deg, transparent 17deg),
    conic-gradient(from 173deg at 50% -12%, transparent, hsl(calc(var(--h) + 25) 100% 80% / .32) 5deg, hsl(calc(var(--h) + 25) 100% 85% / .45) 7deg, transparent 13deg),
    conic-gradient(from 183deg at 80% -8%, transparent, hsl(var(--h) 100% 72% / .30) 7deg, hsl(var(--h) 100% 80% / .42) 10deg, transparent 17deg),
    linear-gradient(180deg, #0c0c0b 0%, #141311 55%, hsl(var(--h) 35% 11%) 100%);
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 45%, rgb(0 0 0 / .6));
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0.875rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(0.875rem) saturate(150%);
  backdrop-filter: blur(0.875rem) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.brand {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* Pointing at the name: its letters scramble and settle one by one, like a display (script.js);
   a letter still moving is blue, and it keeps the space of the real one so nothing shifts */
.brand .w { white-space: nowrap; }
.brand .c { position: relative; display: inline-block; }
.brand .c.s { color: transparent; }
.brand .c.s::after { content: attr(data-g); position: absolute; left: 50%; top: 0; translate: -50% 0; color: var(--accent-text); }

/* The GG logo in place of the name (Gabriele 2026-11-14: white letters on the header's black), as tall as the
   Contact button (its padding plus one line of --fs-label), so the header keeps its height */
.brand--logo { position: relative; display: block; flex: none; line-height: 0; transition: translate .25s var(--ease); }
.brand--logo img { display: block; width: auto; height: calc(1rem + var(--fs-label)); transition: opacity .25s; }
/* on the mouse (or the keyboard) it shows it is a link, like the buttons: the letters turn the grey of the header's
   links, --muted (the same logo as a mask over the grey, fading in over the white one; Gabriele 2026-11-14 chose the
   grey over the electric blue) and it rises 2px */
.brand--logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--muted);
  -webkit-mask: url("assets/gg-logo.png") center / contain no-repeat;
  mask: url("assets/gg-logo.png") center / contain no-repeat;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.brand--logo:hover, .brand--logo:focus-visible { translate: 0 -2px; }
.brand--logo:hover::after, .brand--logo:focus-visible::after { opacity: 1; }
.brand--logo:hover img, .brand--logo:focus-visible img { opacity: 0; }

/* the line under the name exists only on phones (below) */
.header-base { display: none; }

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }

.menu-btn {
  display: none;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: var(--cursor-link);
}

/* Phones and upright tablets: the page shows through the strip with the clock and battery on iOS 26 unless
   something solid sits there (Gabriele, 2026-10-30). With viewport-fit=cover (index.html) the page starts at the
   very top of the screen, so the header, solid and without the blur, runs up behind the clock and its padding keeps
   the name and buttons below it; the film grain, a see-through layer over the whole page that Safari took for
   the top bar, is left out (it does not show on a phone anyway) */
@media (max-width: 900px) {
  html { scroll-padding-top: var(--header-h, 4.5rem); }
  /* no rubber band at the ends of the page: pulling past the footer showed empty haze under it (Gabriele,
     2026-10-31; Safari supports it since iOS 16) */
  html,
  body { overscroll-behavior-y: none; }
  body::after { display: none; }
  .site-header { padding-top: calc(0.875rem + env(safe-area-inset-top, 0px)); background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Phones held sideways: keep text clear of the notch and the rounded corners (0 everywhere else) */
@media (hover: none) and (pointer: coarse) {
  :root { --gutter: max(clamp(1rem, 4vw, 3.5rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
}

@media (max-width: 760px) {
  /* At the top only the name, and Contact on the right, the one jump left: the page moves a section at a time, so
     no Menu (Gabriele, 2026-10-31; before, Portfolio / year there and Menu floating at the bottom right, opening
     the full-screen menu below: .menu-btn display inline-flex brings it back) */
  .site-header { gap: 0.625rem; }
  .header-cta { margin-left: auto; }
  .hero-meta .status { display: none; }
  /* Based in Turin, available worldwide: small under the name, the top of the name's letters level with the top of
     Contact and the line's foot level with its bottom (text-box trims the space above the capitals and below the
     letters); it was the top line of the first screen, gone from there (Gabriele, 2026-11-01) */
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 0.625rem; }
  .brand { grid-area: 1 / 1; align-self: start; justify-self: start; text-box: trim-both cap alphabetic; }
  .header-base {
    display: block;
    grid-area: 2 / 1;
    align-self: end;
    min-width: 0;
    color: var(--muted);
    /* 11px, less only on phones narrower than about 360 px, so it stays on one line beside Contact */
    font-size: min(var(--fs-tiny), calc((100vw - 8.75rem) / 20));
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    text-box: trim-both cap alphabetic; /* nothing hides what hangs below the line (the comma, the y): the box ends at its foot */
  }
  .header-cta { grid-area: 1 / 2 / 3 / 3; margin-left: 0; }
  /* With the GG logo in place of the name (2026-11-14): the logo on the left as tall as Contact, Based in Turin
     beside it in the middle of the row, Contact on the right; the line gives up the logo's room too, so it stays on
     one line (11px from about 400 px wide) */
  .site-header:has(.brand--logo) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .site-header:has(.brand--logo) .brand { grid-area: 1 / 1 / 3 / 2; align-self: center; text-box: none; }
  .site-header:has(.brand--logo) .header-base { grid-area: 1 / 2 / 3 / 3; align-self: center; font-size: min(var(--fs-tiny), calc((100vw - 11.125rem) / 20)); }
  .site-header:has(.brand--logo) .header-cta { grid-area: 1 / 3 / 3 / 4; }
  .hero > .hero-meta { display: none; } /* (the base rule comes later in the file) */
  /* white edge on the page colour, with a shadow that lifts it off the photos; Menu and the cross the same size.
     On the last screen it fades away (quick: slow was too slow, Gabriele), so it never covers the logo band (.is-away, script.js; Gabriele
     2026-10-31: before, it rode up on the footer and sat on the logos) */
  .menu-btn {
    position: fixed;
    right: var(--gutter);
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    display: none; /* off since 2026-10-31 (see above); inline-flex brings it back */
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    height: 2.75rem;
    padding: 0 1.125rem;
    border: 0;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--text), 0 0.5rem 1.5rem rgb(0 0 0 / .5);
    font: 600 var(--fs-label)/1 var(--font-sans);
    letter-spacing: .05em;
    transition: opacity .35s ease-out, visibility 0s;
  }
  .menu-btn.is-away { visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .35s ease-out, visibility 0s .35s; }
  /* The menu takes the whole screen under the header and rises from the bottom: the five sections big and numbered
     like their top lines, the one on screen in blue, then the mail and the socials, all down near the thumb, the
     socials level with the cross (option A of the mockups at https://claude.ai/artifact/5MBAoABsqBSLCVFcLE8Qas,
     Gabriele 2026-10-31; before, a small drop-down). A tap on the empty part closes it (script.js) */
  .nav {
    position: fixed;
    top: var(--header-h, 4.5rem);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 1.5rem var(--gutter) calc(1rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background: var(--bg);
    counter-reset: nav;
    visibility: hidden;
    translate: 0 100%;
    transition: translate .45s var(--ease), visibility 0s .45s;
  }
  .nav.is-open { visibility: visible; translate: none; transition: translate .45s var(--ease); }
  /* the room goes above the list (an auto margin, not justify-content, so a short screen still scrolls to the top) */
  .nav > a:first-child { margin-top: auto; }
  html:has(.nav.is-open) { overflow: hidden; }
  .nav > a { counter-increment: nav; display: flex; align-items: baseline; gap: 0.875rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 2.375rem; font-weight: 800; line-height: 1; letter-spacing: -.035em; }
  .nav > a::before { content: "0" counter(nav); flex: none; width: 1.5rem; color: var(--dim); font-size: var(--fs-small); font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
  .nav > a[aria-current="true"],
  .nav > a[aria-current="true"]::before { color: var(--accent); }
  .nav-foot.nav-phone { display: grid; gap: 0.75rem; padding-top: 1.75rem; }
  .nav-foot .label { color: var(--dim); }
  .nav .nav-mail { color: var(--text); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
  .nav-social { display: flex; gap: 0.5rem; }
  .nav .nav-social a { height: 2.75rem; padding-block: 0; color: var(--text); }
}
/* Contact and the mail in the menu exist only on phones */
.nav-phone { display: none; }
@media (max-width: 760px) {
  .nav > a.nav-phone { display: flex; }
}

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

.hero-wrap { position: relative; isolation: isolate; overflow: hidden; }

/* Scroll hint at the bottom of the screen, on any device: script.js shows it after 5 s without activity */
.scroll-cue {
  position: fixed;
  bottom: calc(1.125rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  translate: -50% 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s;
}
.scroll-cue.is-on { opacity: 1; pointer-events: auto; animation: cue 1.6s ease-in-out infinite; }
.scroll-cue:hover { background: var(--text); color: var(--bg); }
@keyframes cue { 50% { translate: -50% 0.375rem; } }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.625rem 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.status { color: var(--text); }
/* the Portfolio / year and Based in Turin line at the top of the photo is off everywhere: computers lost it on
   2026-11-05, tablets of 761-900 px kept it by mistake until 2026-11-16 (Gabriele) */
.hero > .hero-meta { display: none; }

/* the name, small and on one line, above the description */
.hero-title { margin: 0 0 1.125rem; font-size: clamp(1.5rem, 2.1vw, 2.5rem); line-height: 1; white-space: nowrap; }

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.75rem 3rem;
}
.lead { margin: 0; max-width: 46ch; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; }
/* tablets and computers: the description on three lines (Gabriele 2026-11-16) */
@media (min-width: 761px) { .hero .lead { max-width: 66ch; text-wrap: balance; } } /* three lines of about the same length, never one word alone on the last (Gabriele 2026-11-16) */
.lead strong { font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(2rem, 4.5vw, 4rem) 0 0;
  border-top: 1px solid var(--line);
}
.stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.25rem 1.25rem 0;
  border-left: 1px solid var(--line);
}
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats dt {
  font-weight: 500;
  font-size: var(--fs-small);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

/* Phones: the four numbers small, on one row under a line (Gabriele found them huge, 2026-10-30) */
@media (max-width: 760px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0.75rem; margin-top: 1.75rem; }
  .stats > div,
  .stats > div:first-child { gap: 0.375rem; padding: 0.875rem 0 0; border-left: 0; }
  .stats dd { font-size: 1.5rem; letter-spacing: -.03em; }
  .stats dt { font-size: var(--fs-tiny); line-height: 1.3; }
}

/* The first screen: a carousel of show photos edge to edge (script.js, the photos from
   window.HERO_PHOTOS), darker towards the text at the bottom left. Each photo fades into the next while
   it slowly zooms in, and the zoom carries on through the fade (the same animation on .is-on and .was),
   so the outgoing photo never jumps back to its normal size. The photo coming in sits on top, the one going
   out just under it, and any older one still fading out stays below both: without that, after the last photo
   the last one (later in the page) showed up again over the first */
.hero-slides { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg-2); }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.was { z-index: 1; opacity: 1; }
.hero-slide.is-on { z-index: 2; opacity: 1; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-on img,
.hero-slide.was img { animation: hero-zoom 7.5s linear both; }
@keyframes hero-zoom { from { scale: 1; } to { scale: 1.07; } }
/* phones: the crop Gabriele placed for the photos of the first screen and of the Highlights cards (script.js cropStyle);
   it wins over the crop for computers, and its zoom adds to the slow zoom of the first screen */
@media (max-width: 900px) {
  .hero-slide img[style*="--pp"],
  .card-media > img[style*="--pp"] { object-position: var(--pp) !important; transform-origin: var(--pp); transform: scale(var(--pz, 1)); }
  /* Photo at the top: a wide photo Gabriele kept in the top part of the phone box instead of zooming it to lift the
     stage over the text ("x% y% zoom 60%" on the Site Photos page, script.js photoTop; 2026-11-06): only --ph % of
     the box high, fading into black over the last 27% of the box, black under it. The mask is drawn on the photo
     before its zoom (about x% y%), so its stops undo that zoom; the page draws the same */
  .hero-slide img[style*="--ph"],
  .card-media > img[style*="--ph"],
  .svc-photos img[style*="--ph"],
  .story-shots > img[style*="--ph"] {
    height: calc(var(--ph) * 1%) !important;
    bottom: auto;
    --fade-from: calc((var(--py) + (1 - var(--py) - 27 / var(--ph)) / var(--pz, 1)) * 100%);
    --fade-to: calc((var(--py) + (1 - var(--py)) / var(--pz, 1)) * 100%);
    -webkit-mask-image: linear-gradient(#000 var(--fade-from), transparent var(--fade-to));
    mask-image: linear-gradient(#000 var(--fade-from), transparent var(--fade-to));
  }
  /* black under it, also over the photo before it (the first screen and the role cards keep the outgoing photo
     under the incoming one) */
  .hero-slide:has(> img[style*="--ph"]),
  .card-media:has(> img[style*="--ph"]),
  .svc-photos:has(> img.is-on[style*="--ph"]) { background: var(--bg); }
  .svc-photos:has(> img.is-on[style*="--ph"]) > img.was { opacity: 0; }
}
/* computers: a zoom Gabriele gave a photo on the photo page ("x% y% 1.3", script.js cropStyle), around its point;
   it adds to the slow zoom of the first screen and to the zoom of a card under the mouse (both use scale) */
@media (min-width: 901px) {
  img[style*="--dz"] { transform-origin: var(--dp); transform: scale(var(--dz)); }
}
/* No shade over the whole photo (Gabriele 2026-11-05: on computers it looked dark, like under a black film):
   only a thin one under the header (the Portfolio / year line it was for is gone from computers too, 2026-11-05),
   and a light one behind the text and the numbers (.hero-bottom::before, the same eased curve on computers and
   phones, --hero-shade; the What I do cards use it too) */
.hero-wrap, .svc-panel { --hero-shade: linear-gradient(180deg, transparent, rgb(11 11 10 / .025) 1.24rem, rgb(11 11 10 / .087) 2.32rem, rgb(11 11 10 / .176) 3.3rem, rgb(11 11 10 / .275) 4.23rem, rgb(11 11 10 / .37) 5.18rem, rgb(11 11 10 / .448) 6.2rem, rgb(11 11 10 / .493) 7.35rem, rgb(11 11 10 / .5) 8.0rem, rgb(11 11 10 / .62) 20rem); }
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgb(11 11 10 / .35), transparent 4rem);
}

/* The show of the photo on screen (a link to it) and one segment per photo, filling up blue */
.hero-now { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hero-now[hidden] { display: none; }
.hero-cap { display: flex; flex-direction: column; gap: 0.25rem; color: var(--text); font-size: var(--fs-label); font-weight: 600; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; animation: cap-in .7s var(--ease) both; }
.hero-cap small { color: var(--muted); font-size: var(--fs-small); font-weight: 500; }
.hero-cap .hero-where { color: var(--accent-text); font-size: var(--fs-small); }
.hero-cap:hover { color: var(--accent-text); }
@keyframes cap-in { from { opacity: 0; translate: 0 0.5rem; } }
.hero-segs { display: flex; gap: 0.375rem; width: 16rem; margin-top: 0.75rem; }
.hero-segs button { position: relative; flex: 1; height: 1rem; padding: 0; border: 0; background: none; }
.hero-segs button::before,
.hero-segs button::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; }
.hero-segs button::before { background: rgb(238 236 229 / .25); transition: background-color .3s; }
.hero-segs button:hover::before { background: rgb(238 236 229 / .55); }
.hero-segs button.is-done::before { background: var(--text); }
.hero-segs button::after { background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero-segs button.is-on::after { animation: seg-fill var(--hero-step, 4.5s) linear both; }
@keyframes seg-fill { to { transform: scaleX(1); } }
/* under an open show window the photo stops zooming and its segment stops filling (script.js pauses the round) */
html:has(dialog[open]) .hero-slide img,
html:has(dialog[open]) .hero-segs button::after { animation-play-state: paused; }

/* On computer screens the hero and the logo band under it fill the first screen under the header, the band at the
   bottom of the screen (Gabriele 2026-11-05; between 2026-10-30 and then the band was only above the footer). The
   scroll arrow, shown only while the top of the page is on screen, sits just above the band */
.clients.clients--top { display: none; } /* (.clients comes later in the file) */
@media (min-width: 901px) {
  .clients--top:not([hidden]) { display: flex; }
  .scroll-cue { bottom: calc(var(--top-band-h, 0px) + 1.125rem); }
  .intro { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h, 3.875rem)); }
  .hero-wrap { display: flex; flex: 1; }
  .hero { position: relative; display: flex; flex: 1; flex-direction: column; width: 100%; padding-block: clamp(1rem, 3svh, 2.5rem) clamp(4rem, 9svh, 5.5rem); } /* room at the bottom for the scroll arrow */
  .hero-bottom { margin-top: auto; gap: 1.5rem 4rem; }
  .stats { margin-top: clamp(1.5rem, 3svh, 3rem); }
  /* the four numbers without lines: none above them, none between them (Gabriele 2026-11-05) */
  .stats { border-top: 0; }
  .stats > div { border-left: 0; }
  /* the shade behind the text as on phones: it starts 6rem above the name (on phones the 6rem are the padding of
     .hero-bottom), the photo above it clear; a soft shadow round the letters for bright photos */
  .hero-bottom { position: relative; }
  .hero-bottom::before { content: ""; position: absolute; z-index: -1; inset: -6rem -100vw -100vh; background: var(--hero-shade); pointer-events: none; }
  .hero-title, .hero .lead, .hero .stats, .hero-cap { text-shadow: 0 0 1rem rgb(11 11 10 / .6), 0 1px 2px rgb(11 11 10 / .5); }
  /* no Portfolio / year and Based in Turin line at the top of the photo: Based in Turin is in Contact now
     (Gabriele 2026-11-05; phones have it under the name in the header) */
  .hero > .hero-meta { display: none; }
}
/* Phones: the photos fill a screen-tall hero, the text at the bottom over a darker shade */
@media (max-width: 900px) {
  /* the whole first screen under the header (the 4.25rem kept for the logo band under it went with the band) */
  .hero { display: flex; flex-direction: column; min-height: min(46rem, calc(100svh - var(--header-h, 4.375rem))); }
  .hero-bottom { margin-top: auto; padding-top: 6rem; }
  /* only the photos change on the first screen: no show name and no segments (too much on a phone, Gabriele 2026-10-30) */
  .hero-now { display: none; }
  /* a light shade only behind the text and the numbers, starting at the top of the name wherever it falls on the
     screen, so the photo above the name stays clear: it comes in on an eased curve (no line where it starts),
     next to nothing behind the name, .5 in the middle of the text, .62 at most; a soft shadow round the letters
     keeps them readable on bright photos (Gabriele, 2026-11-01: the shade over the whole photo looked like a black
     film, then four times: lower, lighter, its edge showed, it must start at the name); only a thin shade under
     the header. .hero-wrap clips the oversized box */
  .hero-slides::after { background: linear-gradient(180deg, rgb(11 11 10 / .35), transparent 4rem); }
  .hero-bottom { position: relative; }
  .hero-bottom::before { content: ""; position: absolute; z-index: -1; inset: 0 -50vw -100vh; background: var(--hero-shade); pointer-events: none; }
  .hero-title, .hero .lead, .hero .stats { text-shadow: 0 0 1rem rgb(11 11 10 / .6), 0 1px 2px rgb(11 11 10 / .5); }
}
/* --------------------------------------------------------------------------
   Clients marquee
   -------------------------------------------------------------------------- */

.clients {
  position: relative;
  display: flex;
  align-items: center;
  border-block: 1px solid var(--line);
  background: #0e0e0c; /* a little darker than --bg-2 (Gabriele, 2026-10-30) */
}
.clients[hidden] { display: none; }

.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: clamp(0.75rem, 1.6vw, 1.375rem) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* Keeps scrolling under the mouse too, so every logo can be seen */
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 40s) linear infinite; }
.marquee-group { display: flex; flex: none; align-items: center; margin: 0; padding: 0; list-style: none; }

.client { display: flex; flex: none; align-items: center; }
.client::after {
  content: "/";
  padding: 0 clamp(1.125rem, 2.4vw, 2.25rem);
  color: var(--dim);
  font-size: clamp(1.125rem, 2vw, 1.75rem);
  font-weight: 300;
}
.client span {
  font-size: clamp(1.25rem, 2.4vw, 2.125rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Logos turn white so any colour logo sits well on the dark band */
.client img {
  width: auto;
  height: calc(clamp(1.625rem, 3vw, 2.5rem) * var(--s, 1));
  max-width: 15rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.client img.keep-colors { filter: none; opacity: 1; }
@keyframes marquee { to { translate: -50% 0; } }

@media (max-width: 760px) {
  .clients { flex-direction: column; align-items: stretch; }
  .clients-label { padding: 1rem var(--gutter) 0; }
}
/* Phones: smaller logos and gaps, twice as fast, and each logo moves on its own, all by the width of one group
   (--set-w from script.js). A whole group as one moving strip (over 2000 px, three times that on an iPhone's
   screen) was still too wide for Safari to paint every time: the band went empty grey now and then
   (Gabriele, 2026-10-30 and 31) */
@media (max-width: 900px) {
  .marquee-track { animation: none; }
  .client { animation: marquee-item calc(var(--marquee-duration, 40s) * .4) linear infinite; will-change: translate; }
  .client::after { padding: 0 0.875rem; font-size: 1rem; }
  .client img { height: calc(1.375rem * var(--s, 1)); max-width: 9rem; }
}
@keyframes marquee-item { to { translate: calc(-1 * var(--set-w, 2000px)) 0; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  --section-pad: clamp(3.5rem, 7vw, 6.5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter) 0;
  /* Menu links land with the section title just under the header, not after the gap above it */
  scroll-margin-top: calc(1rem - var(--section-pad));
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.kicker { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.125rem; color: var(--accent-text); }
/* Phones: the count of a swiped row (01 / 05) sits on the section's top line, on the right, the same in every
   section; under a long title it took a line of its own (Gabriele, 2026-10-31) */
@media (max-width: 900px) {
  .section-head { position: relative; }
  .section-head > .feat-ctrls { position: absolute; top: 0; right: 0; margin: 0; }
  #work > .section-head > .feat-ctrls { right: var(--gutter); }
  .section-head .feat-count { margin-right: 0; line-height: 1.2; }
}
.kicker::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
/* Computers: no top line (01 / Highlights …) over the sections and no count over the Highlights, only the title
   and the arrows, as phones held upright already were (Gabriele 2026-11-05; the kickers stay in index.html, hidden) */
@media (min-width: 901px) {
  .section .kicker,
  #feat-count { display: none; }
}
.section-title { margin: 0; font-size: clamp(2.125rem, 5.6vw, 5.375rem); }
.section-note { margin: 0; max-width: 40ch; color: var(--muted); }

.js .reveal {
  opacity: 0;
  translate: 0 1.75rem;
  transition: opacity .9s var(--ease), translate .9s var(--ease);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }
/* Phones: titles and blocks are simply there. Fading and sliding in once they were already on screen made them
   come in late and jumpy while scrolling with a thumb (Gabriele, 2026-10-31) */
@media (max-width: 900px) {
  .js .reveal { opacity: 1; translate: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Selected work
   -------------------------------------------------------------------------- */

/* One row of 16:9 cards that fills the screen: it starts at the page margin and runs off the right edge.
   script.js sets --card-w from the row's height */
#work {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: flex;
  flex-direction: column;
  max-width: none;
  height: calc(100svh - var(--header-h, 4.5rem));
  min-height: 34rem;
  padding: clamp(2rem, 8svh, 6rem) 0 clamp(1.75rem, 7svh, 5rem);
  scroll-margin-top: calc(var(--header-h, 4.5rem) - 4.5rem);
}
#work > .section-head { width: 100%; max-width: var(--max); margin: 0 auto clamp(1rem, 2.5svh, 2rem); padding-inline: var(--gutter); }
.feat-ctrls { display: flex; align-items: center; gap: 0.5rem; }
.feat-count { margin-right: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.feat-arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  cursor: var(--cursor-link);
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.feat-arrow:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.feat-arrow[disabled] { opacity: .3; pointer-events: none; }

.featured {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: clamp(0.75rem, 1.2vw, 1.25rem);
  padding-inline: var(--edge);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  cursor: var(--cursor-link);
}
.featured::-webkit-scrollbar { display: none; }
.featured.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.featured img { -webkit-user-drag: none; }


.card {
  position: relative;
  isolation: isolate;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  width: var(--card-w, 70vw);
  height: 100%;
  padding: clamp(1.125rem, 2vw, 1.75rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  scroll-snap-align: start;
  container-type: inline-size;
}

.card-media { position: absolute; inset: 0; z-index: -2; }
.card-media > img,
.card-media > .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease);
}
/* the card the mouse points at (.is-pointed, script.js: only after the mouse moves on it, off as soon as the row
   moves; with :hover the card that slid under a still mouse zoomed in by itself after every move, and the
   loop's jump to the same card in the middle set made the photo snap back and zoom in again, Gabriele 2026-11-14) */
.card.is-pointed .card-media > *, .card:focus-visible .card-media > * { scale: 1.04; }
/* dark only where the text sits: a soft band at the top for the date, and a shade that is deep in the
   bottom left corner, under the title, and fades out the further it gets from it, so words printed on a
   video still (a show's logo) do not show through the title while the rest keeps its own light */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 44% at 0% 100%, rgb(11 11 10 / .98) 0%, rgb(11 11 10 / .95) 55%, rgb(11 11 10 / .75) 75%, rgb(11 11 10 / .3) 90%, transparent 100%),
    linear-gradient(180deg, rgb(11 11 10 / .5) 0%, transparent 26%);
}

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  transition: rotate .45s var(--ease), background-color .3s;
}
.card.is-pointed .arrow, .card:focus-visible .arrow { rotate: 45deg; background: var(--accent); color: var(--accent-ink); }

.card-client { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 0.625rem; font-size: 0.875rem; font-weight: 600; letter-spacing: .04em; }
.card-title { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 6cqi, 5rem); text-wrap: balance; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem 1rem;
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--text) 82%, transparent);
}
.card-meta .label { color: var(--muted); }

/* Phones: the cards are tall and narrow, so the corner shade under the title is helped by a soft one along the
   bottom, enough to read the place line over a bright photo (Gabriele, 2026-10-31) */
@media (max-width: 760px) {
  .card::after {
    background:
      radial-gradient(46% 44% at 0% 100%, rgb(11 11 10 / .98) 0%, rgb(11 11 10 / .95) 55%, rgb(11 11 10 / .75) 75%, rgb(11 11 10 / .3) 90%, transparent 100%),
      linear-gradient(0deg, rgb(11 11 10 / .7) 0%, rgb(11 11 10 / .45) 28%, transparent 52%),
      linear-gradient(180deg, rgb(11 11 10 / .5) 0%, transparent 26%);
  }
}
@media (max-width: 760px) {
  #work { height: auto; min-height: 0; }
  .featured { flex: none; }
  .card { width: 84vw; height: min(68svh, 32rem); }
  .card-title { font-size: clamp(1.75rem, 10cqi, 2.75rem); }
  .feat-arrow { display: none; }
}

/* --------------------------------------------------------------------------
   Show log
   -------------------------------------------------------------------------- */

.log { margin: 0; padding: 0; list-style: none; }
.log-rows > li,
.log-more { animation: row-in .6s var(--ease) both; animation-delay: calc(min(var(--i, 0), 14) * 40ms); }
@keyframes row-in { from { opacity: 0; translate: 0 0.75rem; } }

/* All the shows in one list (no years: Gabriele doesn't want to say when he worked for whom); a line opens it */
.log-group { margin-top: 1.5rem; border-top: 1px solid var(--line-2); }

/* Columns read down the left one first, so the shows stay in order of date (the dates are not shown) */
.log-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows, 1), auto);
  grid-auto-flow: column;
  column-gap: clamp(2rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* On computers one long list in columns as tall as the screen: two in view, the others to the right up to
   the window's edge, scrolled sideways like the Highlights (script.js sets --rows, --col-w and --log-bleed) */
@media (min-width: 901px) {
  .log-wide {
    grid-template-columns: none;
    grid-auto-columns: var(--col-w, calc((100% - clamp(2rem, 4vw, 3.5rem)) / 2));
    margin: 0 calc(-1 * var(--log-bleed, 0px)) 0 -0.75rem;
    padding: 0 var(--log-bleed, 0px) 0 0.75rem;
    scroll-padding-inline-start: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .log-wide::-webkit-scrollbar { display: none; }
  .log-wide > li { scroll-snap-align: start; }
}
/* the arrows sit top right as in the Highlights; hidden when every column is in view, and on phones */
.log-ctrls[hidden] { display: none; }
@media (max-width: 900px) { .log-ctrls { display: none; } }
/* rows side by side share a height, so their lines stay level even when a title takes two lines */
.log-rows > li { display: flex; min-width: 0; }
.log-rows > li > .log-row { flex: 1; min-width: 0; }

.log-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.25rem;
  align-items: center;
  gap: 1.25rem;
  padding: 1.0625rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.log-row::before {
  content: "";
  position: absolute;
  inset: 0 -0.75rem;
  z-index: -1;
  background: var(--bg-2);
  opacity: 0;
  transition: opacity .25s;
}
.log-row:hover::before,
.log-row:focus-visible::before { opacity: 1; }
.log-row:focus-visible { outline-offset: -2px; }

.log-main { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.log-title {
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
  transition: color .25s, translate .35s var(--ease);
}
.log-row:hover .log-title { color: var(--accent); translate: 0.375rem 0; }
.log-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.625rem; }
.log-client { color: var(--muted); font-size: 1rem; }
.log-city { color: var(--muted); font-size: 1rem; text-align: right; white-space: nowrap; }
.log-arrow { justify-self: end; color: var(--dim); transition: color .25s, translate .3s var(--ease); }
.log-row:hover .log-arrow { color: var(--accent); translate: 0.1875rem -0.1875rem; }

/* Phones and upright tablets: a small photo at the start of each row, artist / city on one line (Gabriele chose it
   from the mockups, 2026-10-30), the shows in columns as tall as the screen allows, swiped sideways like the
   Highlights with the count top right (script.js sets --rows; Gabriele 2026-10-31) */
.log-thumb,
.log-where,
.log-count,
.log-phone-ctrls { display: none; }
@media (max-width: 900px) {
  .log-phone-ctrls { display: flex; margin-left: auto; }
  .log-rows {
    grid-template-columns: none;
    grid-template-rows: repeat(var(--rows, 6), auto);
    grid-auto-flow: column;
    grid-auto-columns: 84vw;
    column-gap: 1.25rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .log-rows::-webkit-scrollbar { display: none; }
  .log-rows > li { scroll-snap-align: start; }
  .log-row {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    gap: 0.875rem;
    padding: 0.75rem 0;
  }
  .log-thumb { position: relative; display: block; width: 3.5rem; height: 3.5rem; overflow: hidden; border-radius: 0.25rem; background: var(--surface); }
  .log-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
  /* a show without photos: the blue dot of the map */
  .log-thumb:empty::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.5rem; height: 0.5rem; margin: -0.25rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0.3125rem rgb(47 98 255 / .18); }
  .log-main { gap: 0.3125rem; }
  /* at most two lines: side by side the columns share their row heights, and one long title made every row taller */
  .log-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 1rem; line-height: 1.1; }
  .log-more .log-title { display: block; }
  .log-row:hover .log-title { translate: none; }
  .log-sub { gap: 0.25rem 0.5rem; }
  .log-client,
  .log-where { font-size: 0.875rem; color: var(--muted); }
  .log-where { display: inline; }
  /* the slash stays at the end of the artist's line when a long artist pushes the city to the next one */
  .log-client:has(+ .log-where)::after { content: "/"; margin-left: 0.5rem; color: var(--dim); }
  .log-city { display: none; }
  /* the number of shows on the right in place of the arrow, big, the word small under it: the blue badge stood out
     too much in the row (option C of the mockups at https://claude.ai/artifact/2EXNDwhcrWcmtgy2jVTesq, Gabriele 2026-11-01) */
  .has-count .log-sub .badge,
  .has-count .log-arrow { display: none; }
  .log-count { display: flex; flex-direction: column; align-items: center; gap: 0.125rem; min-width: 1.25rem; }
  .log-count b { font-size: 1.375rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .log-count small { color: var(--muted); font-size: var(--fs-tiny); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
}

/* "And many more…", the last row of the list: the shows that are not on the site (not a link) */
.log-rows > .log-more { align-items: center; justify-content: flex-end; margin: 0; padding: 1.0625rem 0; border-bottom: 1px solid var(--line); }
.log-more .log-title { display: block; color: var(--muted); text-align: right; }

/* Cover behind the row on hover, darkened so the text stays readable */
.log-bg {
  position: absolute;
  inset: 0 -0.75rem;
  z-index: -1;
  overflow: hidden;
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.log-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.06;
  transition: scale 1.4s var(--ease);
}
.log-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bg) 88%, transparent) 0%,
    color-mix(in srgb, var(--bg) 58%, transparent) 50%,
    color-mix(in srgb, var(--bg) 80%, transparent) 100%);
}
@media (hover: hover) {
  .log-row:hover .log-bg { opacity: 1; }
  .log-row:hover .log-bg img { scale: 1; }
}
.log-row:focus-visible .log-bg { opacity: 1; }

/* --------------------------------------------------------------------------
   Map behind the shows
   -------------------------------------------------------------------------- */

/* The map that moves by itself among the cities of the shows in view (script.js). On phones it is a band
   above the list; on computers it lies under the whole section, edge to edge,
   dark under the list, and the city it shows sits up top, right of the title */
.log-map {
  position: relative;
  aspect-ratio: 2 / 1;
  max-height: 16rem;
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  pointer-events: none;
}
/* phones and upright tablets: no map, the list comes straight under the title (Gabriele, 2026-10-30) */
@media (max-width: 900px) { .log-map { display: none; } }
.log-map-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.log-map .land { fill: #151513; stroke: #44433e; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.log-map .borders { fill: none; stroke: #262522; stroke-width: .7; vector-effect: non-scaling-stroke; }
.log-map .pin { fill: var(--accent); opacity: .25; transition: opacity .4s; }
.log-map .pin.is-on { opacity: 1; }
.log-map .halo { fill: none; stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .4s; }
.log-map .halo.is-on { opacity: .85; }
.log-map-label {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  padding: 0.4375rem 0.6875rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius); /* the corners of the site's buttons and boxes (Gabriele 2026-11-14; it was 0.25rem) */
  background: rgb(11 11 10 / .85);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .4s;
}
.log-map-label small { display: block; margin-top: 0.125rem; color: var(--muted); font-size: var(--fs-tiny); font-weight: 500; }
.log-map-label.is-on { opacity: 1; }
.log-map-tc {
  position: absolute;
  left: 0.75rem;
  bottom: 0.5rem;
  z-index: 1;
  color: var(--dim);
  font-size: var(--fs-tiny);
  font-weight: 500;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.log-map-tc b { color: var(--muted); font-weight: 600; }
@media (min-width: 901px) and (min-height: 700px) and (orientation: landscape) {
  #log { position: relative; isolation: isolate; }
  #log > .log-map {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    max-height: none;
    margin: 0;
    translate: -50% 0;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    background: none;
  }
  /* clear up top right, where the city shows; dark under the list and the title; soft at the edges */
  #log > .log-map::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, var(--bg) 0, transparent 8%, transparent 20%, rgb(11 11 10 / .72) 36%, rgb(11 11 10 / .86) 90%, var(--bg) 100%),
      linear-gradient(90deg, rgb(11 11 10 / .75), rgb(11 11 10 / .2) 35%, transparent 55%);
  }
  #log > .log-map .log-map-tc { left: auto; right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); top: calc(var(--fs-pad) + 0.25rem); bottom: auto; }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

/* The roles on the left, the chosen one on the right over one of the photos. script.js moves to the next
   role every 6 seconds while the section is on screen (the line under the role fills up meanwhile) and
   stops on the role under the mouse. Without script there are no tabs: every role shows its own card */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
}
.svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); container-type: inline-size; }
.svc-tab {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.125rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--dim);
  /* the longest role and the meter always fit on one line, so the list never jumps */
  font-size: clamp(1.25rem, (100cqi - 6rem) / 13.5, 2.375rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-align: left;
  cursor: var(--cursor-link);
  transition: color .3s;
}
/* with a mouse, pointing at a role already opens it: the plain arrow, nothing more to click */
@media (hover: hover) { .svc-tab { cursor: var(--cursor); } }
.svc-tab:hover { color: var(--muted); }
.svc-tab[aria-selected="true"] { color: var(--text); }
/* The line under the chosen role fills up blue until the next one (--prog, 0 to 1, from script.js) */
.svc-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--prog, 0));
  transform-origin: left;
}

/* The meter slides in next to the chosen role and loads up: six blue bars, then two white ones */
.meter { display: flex; flex: none; gap: 0.1875rem; }
.meter i { flex: none; width: 0.4375rem; height: 0.75rem; background: var(--line-2); transition: background-color .15s; }
.svc-tab .meter { width: 0; margin-right: 0; overflow: hidden; opacity: 0; transition: width .45s var(--ease), margin .45s var(--ease), opacity .3s; }
.svc-tab[aria-selected="true"] .meter { width: 4.8125rem; margin-right: 1.125rem; opacity: 1; }
/* It keeps loading: bar after bar with the 6 seconds of the role, and over and over while the mouse holds
   a role (--load, 0 to 1, from script.js) */
.meter i:nth-child(-n+6) { --c: var(--accent); }
.meter i:nth-child(n+7) { --c: var(--text); }
.meter i:nth-child(2) { --k: 1; }
.meter i:nth-child(3) { --k: 2; }
.meter i:nth-child(4) { --k: 3; }
.meter i:nth-child(5) { --k: 4; }
.meter i:nth-child(6) { --k: 5; }
.meter i:nth-child(7) { --k: 6; }
.meter i:nth-child(8) { --k: 7; }
.svc-tab[aria-selected="true"] .meter i {
  background: color-mix(in srgb, var(--c) calc(clamp(0, var(--load, 1) * 8 - var(--k, 0), 1) * 100%), var(--line-2));
  transition: none;
}

/* The card of a role: its photo behind, darker towards the bottom where the text sits.
   All cards share one grid cell, so the stage keeps the height of the list and never jumps */
.svc-stage { display: grid; gap: 1rem; }
.svc-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 24rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
/* the role's photos (window.SERVICE_PHOTOS) stacked behind the card: they fade one into the next while the card
   is on. The one coming in sits on top, the one going out just under it (as in the first screen) */
.svc-photos { position: absolute; inset: 0; z-index: -2; overflow: hidden; transition: scale 1.6s var(--ease); }
.svc-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.svc-photos img.was { z-index: 1; opacity: 1; }
.svc-photos img.is-on { z-index: 2; opacity: 1; }
/* the place Gabriele gave each photo on the photo page (script.js cropStyle): on computers zoomed around its point
   (--dz, the rule next to the first screen's); phones and tablets up to 900 px have their own place and zoom
   (--pp, --pz), or else the computer's point without the zoom (Gabriele 2026-11-05) */
@media (max-width: 900px) {
  .svc-photos img[style*="--pp"] { object-position: var(--pp) !important; transform-origin: var(--pp); transform: scale(var(--pz, 1)); }
}
/* No shade over the whole photo (Gabriele 2026-11-06: the photos looked dark, as under a black film; it was .2 at
   the top, .35 in the middle, .9 at the bottom): the first screen's light shade (--hero-shade) only behind the text,
   from 6rem above the title down to the bottom of the card, the photo above it clear, and a soft shadow round the
   letters for bright photos, on computers and phones */
.svc-copy { position: relative; }
.svc-copy::before { content: ""; position: absolute; z-index: -1; inset: -6rem -100vw -100vh; background: var(--hero-shade); pointer-events: none; }
.svc-copy h3, .svc-copy p, .svc-copy .tags { text-shadow: 0 0 1rem rgb(11 11 10 / .6), 0 1px 2px rgb(11 11 10 / .5); }
.svc-copy h3 { margin: 0 0 1.25rem; font-size: clamp(2.25rem, 4.4vw, 4.75rem); }
.svc-copy p { margin: 0 0 1.5rem; max-width: 38ch; font-size: clamp(1.125rem, 1.5vw, 1.5rem); line-height: 1.4; }

.no-js .svc { grid-template-columns: minmax(0, 1fr); }
.no-js .svc-list { display: none; }
.js .svc-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.js .svc-panel.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.js .svc-panel .svc-photos { scale: 1.06; }
.js .svc-panel.is-on .svc-photos { scale: 1; }
.js .svc-panel.is-on .svc-copy > * { animation: svc-in .7s var(--ease) both; }
.js .svc-panel.is-on .svc-copy > :nth-child(2) { animation-delay: 70ms; }
.js .svc-panel.is-on .svc-copy > :nth-child(3) { animation-delay: 140ms; }
@keyframes svc-in { from { opacity: 0; transform: translateY(1rem); } }

/* Phones: no list of roles; the cards themselves sit side by side and are swiped like the Highlights, with the
   count top right; the card in view shows its photos one after another (script.js; Gabriele 2026-10-30) */
.svc-ctrls { display: none; }
@media (max-width: 900px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-list { display: none; }
  .svc-ctrls { display: flex; margin-left: auto; } /* on the right, under the long title when it wraps */
  .svc-stage {
    grid-auto-flow: column;
    grid-auto-columns: 84vw;
    gap: 0.75rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .svc-stage::-webkit-scrollbar { display: none; }
  .svc-panel { min-height: 27rem; padding: 1.5rem 1.25rem; scroll-snap-align: start; }
  .js .svc-panel { grid-area: auto; opacity: 1; visibility: visible; transition: none; }
  .js .svc-panel .svc-photos { scale: 1; }
  .js .svc-panel.is-on .svc-copy > * { animation: none; }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}
/* The photo melts into the page at the top and, most of all, at the bottom; its sides stay straight (Gabriele, 2026-10-31).
   Behind it a wider patch of the page colour, soft at the edges, hides the haze of Contact,
   so the blobs pass behind the photo and never show through it */
.portrait {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  margin: 0;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: -12% -18%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--bg) 72%, transparent);
  pointer-events: none;
}
/* phones: nothing in About may run past the screen's edges; the portrait's patch made the page scroll sideways
   on the iPhone (Safari ignores overflow-x on body there) (Gabriele, 2026-10-30) */
@media (max-width: 900px) {
  #about { overflow-x: clip; }
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 84%;
  /* it fades only at the top and the bottom, no fade on the sides (Gabriele, 2026-10-31) */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 52%, transparent 97%);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 52%, transparent 97%);
}
/* Photographer credit, small, just under the photo */
.portrait-credit {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  color: var(--dim);
  font-size: var(--fs-tiny);
  font-weight: 500;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.about-text > p { margin: 0 0 1em; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.45; }
.about-text > p.muted { font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); line-height: 1.55; }
.about-text > p.muted { color: var(--muted); }
.toolkit-title { margin: 3rem 0 0.875rem; color: var(--accent-text); }
.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.skills li { padding: 0.875rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
/* Phones: About is three cards side by side, swiped like the Highlights with the count top right: the portrait
   with the name and the first sentence, how he works, the toolkit (index.html .about-cards, script.js; option B of
   the mockups at https://claude.ai/artifact/AkqRKrZi7mmTfzCEM3EBtx, Gabriele 2026-10-31). Before that the portrait
   and the first paragraph, the rest behind "Read more" */
.about-cards,
.about-ctrls { display: none; }
@media (max-width: 900px) {
  .about { display: none; }
  .about-ctrls { display: flex; margin-left: auto; }
  .about-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84vw;
    gap: 0.75rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .about-cards::-webkit-scrollbar { display: none; }
  .about-card { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 0.875rem; min-height: 26rem; padding: 1.25rem 1.125rem; overflow: hidden; border-radius: var(--radius); background: var(--surface); scroll-snap-align: start; }
  .about-card.is-photo { justify-content: flex-end; }
  /* placed by Gabriele on https://claude.ai/artifact/4vHGFtNhQmfaWqbWqH2Ppr (2026-11-01): the point x / y of the photo on the same point of the card, zoomed */
  .about-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 48% 100%; transform-origin: 48% 100%; transform: scale(1.09); }
  .about-card.is-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(11 11 10 / .95) 0%, rgb(11 11 10 / .7) 32%, transparent 62%); }
  /* the photo credit under the text, very small (half the size it had at the top; Gabriele, 2026-11-01) */
  .about-credit { order: 1; margin-top: -0.375rem; color: var(--dim); font-size: 0.34375rem; font-weight: 500; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; }
  .about-card h3 { margin: 0; font-size: 1.625rem; }
  .about-card p { margin: 0; color: var(--muted); font-size: 0.90625rem; line-height: 1.5; }
  .about-card.is-photo p { color: var(--text); font-size: 1rem; line-height: 1.45; }
  .about-card strong { color: var(--text); font-weight: 600; }
  .about-card .skills { grid-template-columns: 1fr; }
  .about-card .skills li { padding: 0.6875rem 0; font-size: 0.9375rem; }
}
@media (max-width: 560px) {
  .skills { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Contact & footer
   -------------------------------------------------------------------------- */

.contact { padding-bottom: clamp(3.5rem, 7vw, 6.5rem); }
.contact-title { margin: 0 0 clamp(1.75rem, 4vw, 3rem); font-size: clamp(2.5rem, 9vw, 9.375rem); }
.contact-title em { font-style: normal; color: var(--accent); }
.contact-lead { margin: 0 0 1.25rem; color: var(--muted); font-size: 1.1875rem; }

.mail {
  display: inline-block;
  padding-bottom: .08em;
  border-bottom: 2px solid var(--accent);
  color: var(--text);
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.mail:hover { color: var(--accent-text); }

/* Phone on the left, local time on the right under the countdown; Instagram and LinkedIn are under the mail on
   computers (Gabriele 2026-11-05, set below), phones have their own layout */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  border-top: 1px solid var(--line-2);
}
.contact-grid > div { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem 1.25rem 0 0; }
.contact-grid > .contact-time { align-items: center; text-align: center; padding-right: 0; }
.contact-grid > .contact-links { justify-content: flex-start; padding-right: 0; }
.contact-links dd { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem; }
.contact-grid dt { color: var(--muted); font-size: var(--fs-small); }
.contact-grid dd { margin: 0; font-size: 1.0625rem; }
.contact-grid a:not(.btn) { text-decoration: none; transition: color .2s; }
.contact-grid a:not(.btn):hover { color: var(--accent-text); }
#clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the frames of the clock in blue, the rest white (phones since 2026-11-01, computers since 2026-11-05, Gabriele) */
.clock-ff { color: var(--accent-text); }
/* Show clock: the line above the row fills up blue over each minute (--minute, 0 to 1) and the
   countdown to the full line (-00:59 to -00:00) sits over its right end in white, blue on every other half second at the end */
.contact-grid[data-left]::after {
  content: attr(data-left);
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.625rem);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.contact-grid.is-flash::after { color: var(--accent-text); }
.contact-grid { position: relative; }
.contact-grid::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(var(--minute, 0));
  transform-origin: left;
  pointer-events: none;
}

/* On computers no sentence under the title (Gabriele 2026-11-05): Based in Turin, Italy. Available Worldwide in its
   place, close to the title and further from the mail (it was the top line of the first screen; phones have it
   under the name in the header) */
.contact-base,
.contact-social { display: none; }
@media (min-width: 901px) {
  .contact-lead { display: none; }
  .contact-title { margin-bottom: 0.75rem; }
  .contact-base { display: block; margin: 0 0 clamp(2.5rem, 7svh, 5rem); color: var(--muted); font-size: 1.1875rem; }
  /* Instagram and LinkedIn under the mail; the row under them: phone on the left, local time on the right */
  .contact-social { display: flex; gap: 0.75rem; margin: clamp(1.5rem, 3.5svh, 2.5rem) 0 0; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid > .contact-links { display: none; }
  .contact-grid > .contact-time { align-items: flex-end; text-align: right; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0.5rem; }
  /* phone and time on the first row, the two buttons under them, all centred; the mail centred and smaller;
     no minute line and no countdown on phones (Gabriele, 2026-10-31) */
  .contact-grid { border-top: 0; text-align: center; }
  .contact-grid::before,
  .contact-grid::after { display: none; }
  .contact-grid > div,
  .contact-grid > .contact-time { align-items: center; padding-right: 0; text-align: center; }
  .contact-grid > .contact-links { grid-column: 1 / -1; }
  .contact-links dd { justify-content: center; }
  .mail { display: table; margin-inline: auto; font-size: 1.25rem; }
  /* and the top line, the title and the sentence centred too, so the whole section lines up (Gabriele, 2026-10-31) */
  #contact > .kicker { justify-content: center; }
  .contact-title,
  .contact-lead { text-align: center; }
}

/* Copyright in the middle, back to top on the right. Solid from edge to edge (the haze stops above it);
   the side padding lines the text up with the page */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 2rem;
  background: var(--bg);
  color: var(--dim);
}
.footer-copy { grid-column: 2; text-align: center; }
.footer-top { justify-self: end; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
/* phones: the last line stays above the home bar (viewport-fit=cover in index.html) */
@media (max-width: 900px) {
  /* close to Safari's bar: only the room of the home bar under Back to top (Gabriele, 2026-10-31) */
  .site-footer { padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px)); }
  /* the copyright tiny, on one line (Gabriele, 2026-10-30 and 31) */
  .footer-copy { font-size: 0.46875rem; letter-spacing: .06em; white-space: nowrap; }
}
@media (max-width: 560px) {
  .site-footer { grid-template-columns: 1fr; justify-items: center; }
  .footer-copy { grid-column: auto; }
  .footer-top { justify-self: center; }
}

/* --------------------------------------------------------------------------
   Event modal
   -------------------------------------------------------------------------- */

/* On computers the show window takes most of the screen, up to the width of the page, and it is the
   same size for every show, so the close and the arrows never move. Its height is just what the
   photo, its thumbnails and the bars need at that width (no empty band under the thumbnails) */
.modal {
  --modal-w: min(120rem, calc(100vw - 4rem));
  width: var(--modal-w);
  height: min(calc(100dvh - 3rem), var(--modal-w) * .46 + 13.5rem);
  max-height: none;
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 0.625rem;
  background: var(--bg-2);
  color: var(--text);
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .4s var(--ease); }
.modal::backdrop {
  background: rgb(6 6 5 / .82);
  -webkit-backdrop-filter: blur(0.375rem);
  backdrop-filter: blur(0.375rem);
}
@keyframes story-up { from { translate: 0 100%; } }
@keyframes story-from-next { from { translate: 40% 0; opacity: 0; } }
@keyframes story-from-prev { from { translate: -40% 0; opacity: 0; } }
@keyframes modal-in { from { opacity: 0; translate: 0 1rem; scale: .985; } }

.modal-bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end; /* only the close button since the show count went (Gabriele 2026-11-14) */
  gap: 1rem;
  padding: 0.625rem 0.75rem 0.625rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: var(--cursor-link);
  transition: background-color .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

.modal-body {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 2fr) minmax(24rem, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}

.viewer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  padding: 1rem;
  border-right: 1px solid var(--line);
}
/* 16:9 like the videos; on short screens it gets lower so the thumbnails stay in view */
.stage-wrap {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 25rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: #050505;
}
.stage { position: absolute; inset: 0; }
.stage > img,
.stage > video,
.stage > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}
/* Photos fill the whole frame, whatever their shape; the crop keeps more of the bottom (stage, desk, crowd) */
.stage > img { object-fit: cover; object-position: 50% 72%; background: none; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; } }
.stage-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  margin: 0;
  color: color-mix(in srgb, var(--text) 75%, transparent);
  text-align: center;
  white-space: nowrap;
}

.stage-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  translate: 0 -50%;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgb(11 11 10 / .6);
  -webkit-backdrop-filter: blur(0.375rem);
  backdrop-filter: blur(0.375rem);
  color: var(--text);
  cursor: var(--cursor-link);
  transition: background-color .2s, color .2s;
}
.stage-btn:hover { background: var(--text); color: var(--bg); }
.stage-btn.prev { left: 0.75rem; }
.stage-btn.next { right: 0.75rem; }
.stage-btn[hidden] { display: none; }

.viewer-bar { display: flex; justify-content: space-between; gap: 1rem; min-height: 1.2em; color: var(--muted); }
/* the line under the photo keeps its room in a show with several photos or videos even when the one on screen has
   no caption (it used to hold their count, 01 / 02, gone 2026-11-14), so the thumbnails never move; a show with
   one photo and no caption has no line */
.viewer:has(.thumbs:empty) .viewer-bar:has(> #m-caption:empty) { display: none; }
#m-caption:empty::before { content: "\200b"; } /* an empty caption keeps the height of a line of text */
.viewer-bar a { color: var(--text); text-decoration: none; transition: color .2s; }
.viewer-bar a:hover { color: var(--accent-text); }
.m-credit { font-size: 8px; letter-spacing: .1em; opacity: .7; }

/* Thumbnail strip: four at a time (two and a bit on phones), scrolled by swipe or the side arrows */
.thumbs-wrap { position: relative; flex: none; }
.thumbs-wrap:has(.thumbs:empty) { display: none; }
.thumbs {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  position: relative;
  flex: none;
  width: calc((100% - 1.875rem) / 4);
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.375rem;
  scroll-snap-align: start;
  background: var(--surface);
  cursor: var(--cursor-link);
  opacity: .5;
  transition: opacity .2s;
}
.thumb:hover { opacity: .85; }
.thumb[aria-current="true"] { opacity: 1; }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px transparent; }
.thumb[aria-current="true"]::after { box-shadow: inset 0 0 0 2px var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / .35); color: #fff; }
.thumbs-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  translate: 0 -50%;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgb(11 11 10 / .75);
  -webkit-backdrop-filter: blur(0.375rem);
  backdrop-filter: blur(0.375rem);
  color: var(--text);
  cursor: var(--cursor-link);
  transition: background-color .2s, color .2s;
}
.thumbs-btn:hover { background: var(--text); color: var(--bg); }
.thumbs-btn.prev { left: 0.5rem; }
.thumbs-btn.next { right: 0.5rem; }
.thumbs-btn[hidden] { display: none; }

.m-story { display: none; } /* the story: phones only (below) */
.m-info { display: flex; flex-direction: column; min-height: 0; padding: clamp(1.125rem, 2vw, 1.875rem); overflow-y: auto; container-type: inline-size; }
.m-kicker { margin: 0 0 0.625rem; color: var(--accent-text); }
/* sized on the info column, so long single words like TOMORROWLAND stay inside */
.m-title { margin: 0 0 0.75rem; font-size: clamp(1.375rem, 9cqi, 3.75rem); overflow-wrap: break-word; }
.m-client { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 1.25rem; color: var(--muted); font-size: 1.125rem; }
.m-client:empty { display: none; }
.m-desc { margin: 0 0 1.5rem; font-size: clamp(1rem, 4.2cqi, 1.3125rem); line-height: 1.55; }
.m-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}
.m-facts > div { padding: 0.875rem 0.75rem 0.875rem 0; border-bottom: 1px solid var(--line); }
.m-facts dt { margin-bottom: 0.3125rem; color: var(--muted); font-size: var(--fs-label); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.m-facts dd { margin: 0; font-size: 1.0625rem; }
.m-links { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.25rem; }
.m-links:empty { display: none; }

/* Where the show was: the whole world at the bottom of the column, the city in blue */
.m-where { margin-top: auto; padding-top: 1.5rem; }
.m-where[hidden] { display: none; }
.m-map { position: relative; aspect-ratio: 2.1 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.m-map svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.m-map .land { fill: #151513; stroke: #44433e; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-map .borders { fill: none; stroke: #2a2926; stroke-width: .7; vector-effect: non-scaling-stroke; }
.m-pins > span { position: absolute; width: 0.5rem; height: 0.5rem; margin: -0.25rem 0 0 -0.25rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0.25rem rgb(47 98 255 / .25); }
.m-pins > b { position: absolute; margin: -0.6875rem 0 0 0.875rem; padding: 0.3125rem 0.5625rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgb(11 11 10 / .85); font-size: var(--fs-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.m-pins > b.is-left { margin-left: 0; translate: calc(-100% - 0.875rem) 0; }
.m-tc { position: absolute; left: 0.625rem; bottom: 0.4375rem; color: var(--dim); font-size: var(--fs-tiny); font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.m-places { margin: 0 0 0.625rem; color: var(--muted); }
.m-places:empty { display: none; }

.modal-foot {
  display: flex;
  flex: none;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.375rem 0.5rem;
  border-top: 1px solid var(--line);
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  max-width: 48%;
  padding: 0.75rem;
  border: 0;
  border-radius: 0.25rem;
  background: none;
  color: var(--muted);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: var(--cursor-link);
  transition: color .2s, background-color .2s;
}
.nav-btn:hover { background: var(--surface); color: var(--text); }
.nav-btn span:not([aria-hidden]) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  /* Full screen, down to the very bottom of the screen past Safari's window (--below, script.js) */
  .modal { inset: 0 auto auto 0; width: 100vw; height: calc(100dvh + var(--below, 0px)); margin: 0; padding: 0; border: 0; border-radius: 0; background: #050505; }
  /* it rises from the bottom when a show opens and slides back down when it closes (closeShow in script.js), the
     page under it darkening and clearing with it (Gabriele, 2026-10-31) */
  .modal[open] { display: block; animation: story-up .5s cubic-bezier(.32, .72, 0, 1); }
  .modal.is-closing { translate: 0 100%; transition: translate .4s cubic-bezier(.4, 0, .6, 1); }
  .modal[open]::backdrop { animation: fade .5s ease; }
  .modal.is-closing::backdrop { opacity: 0; transition: opacity .4s ease; }
  /* To try (Gabriele, 2026-10-31, option C of the mockups at https://claude.ai/artifact/BnWAW48Y6uQEpTZWs6ite1): the
     show opens like a story, its photos and videos one at a time on the whole screen, a tap on the right for the
     next one and on the left for the one before, the segments at the top; the title, the text and the roles over
     the bottom; no venue, map or other shows on phones (script.js, "Story").
     Before: the close button alone at the top, the photos in a strip of squares, the text under them */
  .m-story { position: absolute; inset: 0; display: block; overflow: hidden; background: #050505; touch-action: none; overscroll-behavior: none; } /* swipes move the story, never the page under it (script.js) */
  /* the next show comes in from the right, the previous one from the left, like the next profile on Instagram */
  .m-story.is-from-next { animation: story-from-next .45s cubic-bezier(.32, .72, 0, 1); }
  .m-story.is-from-prev { animation: story-from-prev .45s cubic-bezier(.32, .72, 0, 1); }
  /* the next show (or the one before) beside the story while a finger drags it sideways (script.js) */
  .m-story-peek { pointer-events: none; }
  .story-shots > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
  .story-shots > .is-on { opacity: 1; }
  /* a video: its still, blurred and dark, behind the screen; the still itself and the player in a 16:9 box at the top */
  .story-video { overflow: hidden; background: #050505; }
  .story-video > img { width: 100%; height: 100%; object-fit: cover; filter: blur(1.5rem) brightness(.45); scale: 1.2; }
  .story-player { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 4.5rem); right: 0; left: 0; aspect-ratio: 16 / 9; background: #050505; }
  .story-player[hidden] { display: none; }
  /* the video's title right under its box */
  .story-vcap { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 4.5rem + 100vw * 9 / 16 + 0.75rem); right: var(--gutter); left: var(--gutter); margin: 0; color: #b9b6ad; font-size: var(--fs-small); line-height: 1.4; pointer-events: none; }
  .story-vcap[hidden] { display: none; }
  .story-player > iframe,
  .story-player > video,
  .m-play,
  .m-play > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .m-play { display: grid; place-items: center; padding: 0; background: none; color: #fff; }
  .m-play > img { object-fit: cover; }
  .m-play .play { position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--accent); }
  .story-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 11 10 / .7), transparent 9rem), linear-gradient(0deg, rgb(11 11 10 / .96) calc(var(--below, 0px) + 6rem), rgb(11 11 10 / .8) calc(var(--below, 0px) + 16rem), transparent 70%); pointer-events: none; }
  .story-tap { position: absolute; top: 0; bottom: 0; padding: 0; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
  .story-tap.prev { left: 0; width: 35%; }
  .story-tap.next { right: 0; width: 65%; }
  .story-top { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 0.5rem); right: 0.75rem; left: 0.75rem; pointer-events: none; }
  .story-segs { display: flex; gap: 0.25rem; margin-bottom: 0.5rem; }
  /* the segment of the photo on screen fills with its 5 seconds (--p, script.js) */
  .story-segs > span { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: rgb(238 236 229 / .32); }
  .story-segs > span::after { content: ""; position: absolute; inset: 0; background: var(--text); transform: scaleX(var(--p, 0)); transform-origin: left; }
  .story-artist { display: flex; align-items: center; gap: 0.5rem; height: 2.75rem; margin: 0 0 0 0.25rem; color: var(--text); }
  .story-info { position: absolute; right: var(--gutter); bottom: calc(var(--below, 0px) + env(safe-area-inset-bottom, 0px) + 1.25rem); left: var(--gutter); display: flex; flex-direction: column; gap: 0.875rem; pointer-events: none; }
  .story-info > * { margin: 0; }
  .story-info button { pointer-events: auto; }
  .story-kicker { color: var(--accent-text); }
  .story-title { font-size: clamp(2.125rem, 10vw, 2.75rem); line-height: .93; overflow-wrap: break-word; }
  .story-desc { color: #d6d4cc; font-size: 0.9375rem; line-height: 1.45; }
  /* short phones (an iPhone SE): a little smaller, so the text stays clear of a video at the top */
  @media (max-height: 700px) { .story-title { font-size: 1.875rem; } .story-desc { font-size: 0.875rem; } }
  .story-credit { margin: 0; color: #8f8c83; font-size: var(--fs-tiny); }
  .story-credit:empty { display: none; }
  /* the close button on the artist's line, a little dark so it reads over a bright photo */
  .modal-bar { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 0.5rem + 3px + 0.5rem); right: 0; left: 0; z-index: 5; justify-content: flex-end; padding: 0 0.75rem; border: 0; pointer-events: none; transition: opacity .3s; }
  .modal:not(:has(.story-segs)) .modal-bar { top: calc(env(safe-area-inset-top, 0px) + 0.5rem); }
  .modal-bar .icon-btn { pointer-events: auto; background: rgb(11 11 10 / .45); }
  .modal-bar .icon-btn:focus-visible { outline: none; } /* the window puts the focus there when it opens: no blue ring on a phone */

  /* no info column and no other shows under the story */
  .modal-body,
  .modal-foot { display: none; }
  .nav-btn { font-size: var(--fs-small); }
}

/* --------------------------------------------------------------------------
   One section per screen (computers)
   -------------------------------------------------------------------------- */

/* On screens wide and tall enough (not phones, not tablets held upright) the page gets wider and every
   section is at least one screen tall, so a menu link shows that section alone, with nothing of the ones
   around it; the scroll stays free. Services and About grow to fill their screen (and shrink on
   short ones); Contact shares the last screen with the logo band and the footer.
   8rem is about a section title with the space under it */
@media (min-width: 901px) and (min-height: 700px) and (orientation: landscape) {
  :root { --max: 120rem; }
  html { scroll-padding-top: var(--header-h, 4.5rem); }

  .section:not(#work) {
    --fs-pad: clamp(1.25rem, 4.5svh, 4rem);
    --fs-room: calc(100svh - var(--header-h, 4.5rem) - 2 * var(--fs-pad) - 8rem); /* 10.5rem with the top line */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - var(--header-h, 4.5rem));
    padding-block: var(--fs-pad);
    scroll-margin-top: 0;
  }
  #work { scroll-margin-top: 0; }

  /* Selected shows keeps its title in place, and its rows get tighter on shorter screens */
  .section#log { justify-content: flex-start; }
  /* the list runs down to the bottom of the screen: script.js picks how many rows fit in a column and
     shares the height left among them (--row-grow, at most 2rem each) */
  .log-row,
  .log-rows > .log-more { padding-block: calc(clamp(0.5rem, 1svh, 1.0625rem) + var(--row-grow, 0px) / 2); }

  /* Services takes the whole height: the roles share it and the card fills it */
  .svc { flex: 1; }
  .svc-tab { flex: 1; font-size: clamp(1.25rem, (100cqi - 6rem) / 13.5, 3.25rem); }
  .svc-copy h3 { font-size: clamp(2.25rem, 4.4vw, 5.5rem); }
  .svc-copy p { font-size: clamp(1.125rem, 1.5vw, 1.75rem); }

  /* About: the portrait as tall as the screen allows (1.5rem more for the credit), the text next to it
     a little larger, in the middle of the photo's height */
  .about { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .portrait { width: calc((var(--fs-room) - 1.5rem) * .8); max-width: 42vw; }
  .about-text { max-width: 50rem; }
  .about-text > p { font-size: clamp(1.125rem, min(1.5vw, 2.6svh), 2rem); }
  .about-text > p.muted { font-size: clamp(1.0625rem, min(1.2vw, 1.9svh), 1.375rem); }

  /* Contact fills what the logo band and the footer leave of the last screen (--end-h from script.js):
     the title and the mail in the middle, the minute line with phone, time and links at the bottom,
     just above the logo band */
  .section#contact { min-height: calc(100svh - var(--header-h, 4.5rem) - var(--end-h, 9.25rem)); padding-bottom: clamp(1.5rem, 3.5svh, 3rem); }
  #contact > .contact-title { margin-top: auto; }
  #contact > .mail { align-self: flex-start; }
  #contact > .contact-grid { margin-top: auto; }
}

/* --------------------------------------------------------------------------
   One section per screen (phones)
   -------------------------------------------------------------------------- */

/* Phones held upright: as on computers, each section fits one screen (Gabriele, 2026-10-30). --screen is the
   height under the header down to the bottom of the phone (lvh): while scrolling Safari shrinks its bottom bar,
   and with the smaller height (svh) the next section showed under each one; when the bar is out it floats over
   the bottom of the section. Sections are that tall plus the gap a menu link leaves above the title, so a link
   shows one section alone. The first screen keeps its text above Safari's bar, which is out when the page opens */
@media (max-width: 900px) and (orientation: portrait) {
  :root { --screen: calc(100lvh - var(--header-h, 4.5rem)); }
  /* One section at a time: a swipe up or down goes to the next or the previous section and stops there, where a
     menu link puts it, never past it (Gabriele, 2026-10-31, to try; on 2026-10-30 he dropped a softer snap that
     only settled a scroll ending near a section). A section taller than the screen still scrolls inside */
  html { scroll-snap-type: y mandatory; }
  /* the empty strip at their bottom (--below) is left out of what the snap holds on to: taller than the window, a
     section let a swipe stop anywhere in it */
  .intro,
  .section { scroll-snap-align: start; scroll-snap-stop: always; scroll-margin-bottom: calc(-1 * var(--below, 0px)); }
  #work { scroll-margin-top: 0; }
  .scroll-cue { display: none; } /* it sat on the numbers */
  /* The first screen runs to the bottom of the screen (--below, script.js), and its name, text and numbers sit low
     over the photo, just above Safari's bar when it is out (Gabriele, 2026-10-31: lower, more of the photo) */
  .hero { min-height: calc(100lvh - var(--header-h, 4.5rem) + var(--below, 0px)); padding-bottom: calc(var(--below, 0px) + max(100lvh - 100svh, env(safe-area-inset-bottom, 0px)) + 0.75rem); }

  /* Every section is exactly one screen, with only its title on top, at the same height under the header in each
     one: no top line (01 / Highlights …) and no count of the swiped rows, the next card at the edge shows there is
     more (Gabriele, 2026-10-31). Under its content each section keeps the strip Safari shows past the window empty
     (--below, script.js), so the next title never shows at the bottom */
  .section { padding-top: 1.5rem; scroll-margin-top: 0; }
  .section .kicker,
  .section-head > .feat-ctrls { display: none; }
  .section-head,
  #work > .section-head { margin-bottom: 1.25rem; }
  .section:not(#work) {
    display: flex;
    flex-direction: column;
    min-height: calc(var(--screen) + var(--below, 0px));
    padding-bottom: calc(1.5rem + var(--below, 0px));
  }

  /* Highlights: the cards as tall as the screen leaves them */
  #work { height: calc(var(--screen) + var(--below, 0px)); min-height: 30rem; padding-top: 1.5rem; padding-bottom: calc(1.5rem + var(--below, 0px)); } /* the cards run close to the bottom: no empty band under them */
  .log-group { margin-top: 0; } /* the list starts right under the title */
  .featured { flex: 1; min-height: 0; }
  .card { height: 100%; }

  /* Selected shows: columns of as many rows as fit in the screen, swiped sideways (script.js, phoneRows) */

  /* Services: the cards fill the screen under the title */
  .svc { flex: 1; grid-template-rows: minmax(0, 1fr); }
  .svc-stage { min-height: 0; }
  .svc-panel { min-height: 22rem; }

  /* About: the three cards fill the screen under the title */
  .about-cards { flex: 1; min-height: 0; }

  /* Contact, the logo band and the footer take the last screen together, like the other sections (--end-h from
     script.js). The title sits where the other titles do; the mail sits in the middle of the room left between the
     sentence and the phone row (Gabriele, 2026-10-31: under it the room was too empty), and Instagram and LinkedIn
     stay close to the logo band */
  .section#contact { min-height: calc(var(--screen) - var(--end-h, 9.25rem)); padding-bottom: 1.75rem; }
  #contact > .mail { margin-block: auto; }
  #contact > .contact-grid { margin-top: 1rem; } /* as much as the sentence leaves above, so the mail sits right in the middle */
  .contact-title { margin-bottom: 1.25rem; }
  .contact-lead { margin-bottom: 1rem; font-size: 1.0625rem; }
  .site-footer { padding-top: 1.25rem; row-gap: 0.5rem; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; translate: none; }
  /* The band is a slow, steady scroll: it keeps moving so every name stays reachable */
  .marquee-track,
  .client { animation-duration: var(--marquee-duration, 40s) !important; animation-iteration-count: infinite !important; }
}
