/* AC Agency - site.css
   Direction: "The contact sheet" (tasteskill, seed 1377169884). Type: Archivo. Palette: soot and lime.
   Everything below references the tokens in :root. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  /* soot ground */
  --soot: #0f0f0f;
  --soot-surface: #1a1a1a;
  --soot-ink: #ffffff;
  --soot-muted: #9a9a9a;
  /* paper middle */
  --paper: #ffffff;
  --paper-surface: #efefef;
  --paper-ink: #0f0f0f;
  --paper-muted: #5c5c5c;
  /* the one action colour */
  --accent: #dafa9c;
  --accent-hover: #c9f079;
  --accent-ink: #0f0f0f;

  --bg: var(--soot);
  --surface: var(--soot-surface);
  --ink: var(--soot-ink);
  --muted: var(--soot-muted);
  --focus: var(--accent);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3rem, 7vw, 8rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.25rem);
  --section: clamp(6rem, 12vw, 12rem);
  --tile-gap: 8px;
  --radius: 0;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

.on-paper {
  --bg: var(--paper);
  --surface: var(--paper-surface);
  --ink: var(--paper-ink);
  --muted: var(--paper-muted);
  --focus: var(--paper-ink);
  background: var(--bg);
  color: var(--ink);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--soot); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 400; text-wrap: balance; hyphens: none; }
.display { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.035em; }
.head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; }
.lead { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.005em; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
p { max-width: 62ch; text-wrap: pretty; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: var(--step-body);
  border-radius: var(--radius); text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 2.75rem; padding: 0 1rem; font-size: var(--step-small); }
.link {
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 0.22em; text-decoration-thickness: 0.07em;
  transition: text-decoration-color var(--t-hover) ease;
}
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background-color: var(--accent-hover); }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { text-decoration-thickness: 0.12em; }
}

.only-phone { display: none; }
.only-wide-flex { display: inline-flex; }

/* ==========================================================================
   Hero: the lit strip
   ========================================================================== */
.hero {
  --ratio: 1920 / 850;
  --strip-h: clamp(220px, 48vh, 560px);
  min-height: 100vh; /* fallback for browsers without svh - taste-skill-ignore */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--soot);
  color: var(--soot-ink);
  overflow: hidden;
}
.hero:has(#fmt-reel:checked) { --ratio: 9 / 16; }
.hero:has(#fmt-post:checked) { --ratio: 4 / 5; }
.hero:has(#fmt-quad:checked) { --ratio: 1 / 1; }

.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem var(--margin) 0;
  min-height: 4rem;
}
.wordmark { font-weight: 600; font-size: var(--step-body); text-decoration: none; letter-spacing: -0.01em; }
.site-nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
.site-nav a { font-size: var(--step-body); text-decoration-color: transparent; }

.hero__text { padding: clamp(1.75rem, 6vh, 4.5rem) var(--margin) 0; }
.hero h1 { max-width: 16ch; }
.hero__lead { margin-top: clamp(1.75rem, 4vh, 2.5rem); font-size: var(--step-lead); line-height: 1.35; max-width: 46ch; }
@media (min-width: 1000px) {
  /* the name and its sentence share one band, so the strip and its controls stay on the first screen */
  .hero__text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .hero__text h1 { grid-column: 1 / 9; max-width: none; }
  .hero__lead { grid-column: 9 / 13; margin-top: 0; padding-bottom: 0.35em; }
}

.strip {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: clamp(1.75rem, 5vh, 3rem);
  padding-inline: var(--margin);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline-offset: -2px;
}
.strip::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 auto; scroll-snap-align: center; cursor: pointer; }
.frame {
  position: relative;
  height: var(--strip-h);
  aspect-ratio: var(--ratio);
  overflow: clip;
  background: var(--soot-surface);
}
.frame img, .frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--x, 50%) 50%;
}
.frame::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--soot);
  opacity: 0.45;
  transition: opacity 500ms var(--ease-out);
  pointer-events: none;
}
.shot.is-lit .frame::after { opacity: 0; }
html:not(.js) .frame::after { opacity: 0.2; }
@media (hover: hover) and (pointer: fine) {
  .shot:not(.is-lit):hover .frame::after { opacity: 0.15; }
}

.hero__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem var(--margin) clamp(1.25rem, 3vh, 2rem);
  margin-top: auto;
}
.formats { display: flex; align-items: center; gap: 1rem; }
.formats legend { float: left; margin-right: 1rem; font-size: var(--step-small); color: var(--muted); }
.formats__options { display: flex; gap: 4px; }
.formats label {
  display: inline-flex; align-items: center;
  min-height: 2.75rem; padding: 0 1rem;
  background: var(--soot-surface); color: var(--soot-ink);
  font-size: var(--step-small); font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.formats label:active { transform: scale(0.97); }
.formats input:checked + label { background: var(--accent); color: var(--accent-ink); }
.formats input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .formats input:not(:checked) + label:hover { background: #2a2a2a; }
}

/* ==========================================================================
   Services: two-ended rows in a narrow column, with a held picture
   ========================================================================== */
.services__top { align-items: end; row-gap: 1.5rem; }
.services__top h2 { grid-column: 1 / 7; }
.services__intro { grid-column: 7 / 13; max-width: 40ch; }
.services__body { margin-top: clamp(4rem, 8vw, 7rem); align-items: start; }
.services__index { grid-column: 1 / 3; position: sticky; top: 2rem; }
.services__index li + li { margin-top: 0.5rem; }
.services__index a { text-decoration: none; color: var(--muted); font-size: var(--step-small); transition: color var(--t-hover) ease; }
.services__index a[aria-current="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .services__index a:hover { color: var(--ink); } }
.services__list { grid-column: 3 / 8; }
.group + .group { margin-top: clamp(4.5rem, 8vw, 7rem); }
.group h3 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; }
.group > p { margin-top: 0.75rem; max-width: 44ch; }
.group__pic { display: none; }
.rows { margin-top: 1.75rem; }
.rows li, .about__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  min-height: 2.375rem; padding-block: 0.35rem;
}
.v {
  flex-shrink: 0;
  font-size: var(--step-small); color: var(--muted);
  font-variant-numeric: tabular-nums; text-align: right;
}
.services__pics {
  grid-column: 9 / 13;
  position: sticky; top: 2rem;
  display: grid;
}
.spic {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}
.spic.is-on { opacity: 1; }
.spic img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; background: var(--surface); }
.spic:nth-child(1) img { object-position: 50% 50%; }
.spic:nth-child(2) img { object-position: 40% 50%; }
.spic:nth-child(3) img { object-position: 45% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .spic img { transform: scale(1.06); transition: transform 1600ms var(--ease-soft); }
  .spic.is-on img { transform: none; }
}

/* ==========================================================================
   The grid: one photograph cut across tiles
   ========================================================================== */
.mosaic {
  --board: url("../img/genova-porto.jpg");
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--tile-gap);
}
.tile {
  position: relative;
  aspect-ratio: 1;
  overflow: clip;
  grid-column: calc(var(--c) + 1);
  grid-row: calc(var(--r) + 1);
}
.tile--head { grid-column: calc(var(--c) + 1) / span 2; aspect-ratio: auto; }
.tile--photo span {
  position: absolute; inset: 0;
  background-image: var(--board);
  background-size: 600% 400%;
  background-position: calc(var(--c) * 20%) calc(var(--r) * 33.3333%);
  background-color: #5a5560;
  transition: transform 700ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tile--photo:hover span { transform: scale(1.08); }
}
.tile--ink { background: var(--soot); color: var(--soot-ink); padding: clamp(1rem, 1.4vw, 1.5rem); display: flex; }
.tile--head { align-items: flex-start; }
.tile--head h2 { max-width: 12ch; }
.tile--fact p { font-size: clamp(0.875rem, 1.3vw, 1.1875rem); line-height: 1.35; align-self: flex-end; }
.tile--accent {
  background: var(--accent); color: var(--accent-ink);
  padding: clamp(1rem, 1.4vw, 1.5rem);
  display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none;
  font-size: var(--step-lead); line-height: 1.2;
  transition: background-color var(--t-hover) ease;
}
.tile--accent svg { align-self: flex-end; width: clamp(36px, 3.4vw, 56px); height: auto; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile--accent:hover { background: var(--accent-hover); }
  .tile--accent:hover svg { transform: translate(4px, -4px); }
}
.tile--accent:active svg { transform: translate(2px, -2px) scale(0.96); }

/* ==========================================================================
   Method: the drag row of moments
   ========================================================================== */
.method__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.method__head h2 { grid-column: 1 / 6; }
.method__intro { grid-column: 6 / 11; max-width: 40ch; padding-bottom: 0.2em; }
.method__buttons { grid-column: 11 / 13; justify-self: end; display: flex; gap: 8px; }
.square {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  transition: transform var(--t-press) var(--ease-out), opacity var(--t-hover) ease;
}
.square:active { transform: scale(0.94); }
.square[disabled] { opacity: 0.25; cursor: default; }
.progress { margin-top: 1.5rem; height: 6px; background: var(--surface); overflow: hidden; }
.progress span {
  display: block; height: 100%; width: var(--w, 30%);
  background: var(--ink);
  transform: translateX(var(--tx, 0%));
  transition: transform 160ms linear;
}
/* the row ends on the page margins: whole columns inside the grid, the rest a pull away */
.moments {
  --gap: clamp(1rem, 2.4vw, 2rem);
  --per-view: 4;
  display: flex;
  gap: var(--gap);
  margin: 2.5rem var(--margin) 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.moments::-webkit-scrollbar { display: none; }
.moment {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  scroll-snap-align: start;
  display: flex; flex-direction: column;
}
@media (max-width: 999px) { .moments { --per-view: 2; } }
.moment h3 { font-size: var(--step-body); font-weight: 600; line-height: 1.3; }
.moment p { margin-top: 0.5rem; }
.moment figure { margin-top: auto; padding-top: var(--drop, 96px); }
.moment img {
  width: 100%; aspect-ratio: 4 / 5; height: auto;
  object-fit: cover; object-position: var(--x, 50%) 50%;
  background: var(--surface);
}

/* ==========================================================================
   About: side facts and a wide paragraph
   ========================================================================== */
.about__row { align-items: start; row-gap: 2.5rem; }
.about__title { grid-column: 1 / 5; }
.about__main { grid-column: 5 / 13; padding-top: 0.6rem; }
.about__text { max-width: 40ch; font-size: var(--step-lead); }
.about__facts { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.about__facts dt { font-size: var(--step-small); color: var(--muted); }
.about__facts dd { margin-top: 0.15rem; }
.about__row--second { margin-top: clamp(5rem, 9vw, 7.5rem); }
.about__label { grid-column: 1 / 4; font-size: var(--step-lead); line-height: 1.2; }
.about__list { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--soot); color: var(--soot-ink); }
.contact .grid { align-items: start; row-gap: 3rem; }
.contact__side { grid-column: 1 / 6; }
.contact__text { margin-top: 1.5rem; max-width: 26ch; }
.contact__links { margin-top: 2rem; }
.contact__links .small { margin-top: 0.35rem; }
.contact__mail { font-size: var(--step-lead); }
.contact__pic { margin-top: 2.5rem; }
.contact__pic img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; object-position: 58% 50%; background: var(--surface); }
.contact__form { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field-row { display: grid; gap: 0.5rem; }
.field-row:nth-child(3), .field-row--wide, .contact__submit, .contact__status { grid-column: 1 / -1; }
.field-row label { font-size: var(--step-small); }
.field {
  width: 100%; min-height: 3rem; padding: 0.75rem 0.9rem;
  background: var(--soot-surface); color: var(--soot-ink);
  border: 0; border-bottom: 2px solid #3a3a3a; border-radius: 0;
  font-size: max(1rem, var(--step-body));
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease;
}
textarea.field { resize: vertical; min-height: 9rem; }
.field:focus { outline: none; border-bottom-color: var(--accent); background: #222; }
.field:focus-visible { outline: none; }
.field:user-invalid { border-bottom-color: #ff8a7a; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* honeypot, hidden from people - taste-skill-ignore */
.contact__submit { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.contact__submit p { max-width: 36ch; }
.contact__status { min-height: 1.5em; font-size: var(--step-body); }
.contact__status[data-state="ok"] { color: var(--accent); }
.contact__status[data-state="error"] { color: #ffb4a8; }
.button[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* ==========================================================================
   Footer: a board of tiles
   ========================================================================== */
.foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--tile-gap);
  padding: calc(var(--section) / 4) var(--margin) var(--margin);
  background: var(--soot);
  color: var(--soot-ink);
}
.ftile { background: var(--soot-surface); padding: 1.25rem; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.ftile--statement { grid-column: 1 / 5; }
.ftile--statement p:first-child { font-size: var(--step-lead); line-height: 1.25; max-width: 18ch; }
.ftile--nav { grid-column: 5 / 8; justify-content: flex-start; }
.ftile--nav li + li { margin-top: 0.35rem; }
.ftile--pic { grid-column: 8 / 10; padding: 0; overflow: clip; }
.ftile--pic img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.ftile--mail { grid-column: 10 / 13; }
.ftile--mail a { font-size: var(--step-lead); word-break: break-word; }
.ftile--mark {
  grid-column: 1 / 9; min-height: 320px;
  background: var(--paper); color: var(--paper-ink);
  align-items: center; justify-content: center;
}
.ftile--mark span { font-size: var(--step-display); line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
.ftile--cta {
  grid-column: 9 / 13; min-height: 320px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none;
  font-size: var(--step-head); line-height: 1; letter-spacing: -0.025em;
  transition: background-color var(--t-hover) ease;
}
.ftile--cta svg { align-self: flex-end; transition: transform var(--t-ui) var(--ease-out); }
.ftile--cta:active svg { transform: translate(2px, -2px) scale(0.96); }
.ftile--cta:focus-visible { outline-color: var(--soot-ink); }
@media (hover: hover) and (pointer: fine) {
  .ftile--cta:hover { background: var(--accent-hover); }
  .ftile--cta:hover svg { transform: translate(6px, -6px); }
}

/* ==========================================================================
   Privacy page
   ========================================================================== */
.page-head { background: var(--soot); color: var(--soot-ink); }
.page-head .hero__text { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
/* a contact-sheet row: fixed height, natural widths, ends inside the margins */
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-template-rows: auto;
  grid-auto-rows: 0; /* frames that do not fit on the one row are left out, not cut */
  column-gap: 8px; row-gap: 0;
  overflow: hidden;
  margin: 0 var(--margin) clamp(3rem, 6vw, 5rem);
}
.thumbs img { width: 100%; height: auto; aspect-ratio: 1920 / 850; object-fit: cover; background: var(--surface); }
.legal { grid-column: 3 / 10; }
.legal h2 { font-size: var(--step-lead); line-height: 1.25; margin-top: 3rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin-top: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.35rem; }
.legal__side { grid-column: 10 / 13; }
.legal__side img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 45% 50%; background: var(--surface); }
.legal__index { grid-column: 1 / 3; position: sticky; top: 2rem; font-size: var(--step-small); }
.legal__index li + li { margin-top: 0.5rem; }
.legal__index a { color: var(--muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .legal__index a:hover { color: var(--ink); } }

/* ==========================================================================
   Motion (content stays visible without JavaScript)
   ========================================================================== */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 300ms); }
  .js .hero .shot { opacity: 0; transform: translateY(28px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(260ms + var(--n, 0) * 60ms); }
  .js .strip.is-recut .frame img, .js .strip.is-recut .frame video { animation: recut 520ms var(--ease-out); }

  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .tile { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--k, 0) * 35ms); }
  .js .mosaic.is-in .tile { opacity: 1; transform: none; }

  .js .moment { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--k, 0) * 80ms); }
  .js .moments.is-in .moment { opacity: 1; transform: none; }

  .js .ftile { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--k, 0) * 60ms); }
  .js .foot.is-in .ftile { opacity: 1; transform: none; }

  .ftile--pic img { animation: drift 18s var(--ease-soft) infinite alternate; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes recut { from { opacity: 0.2; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.12) translateX(-3%); } }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (max-width: 999px) {
  /* the board re-cut from the portrait photograph: three columns, facts as bands below */
  .mosaic { --board: url("../img/genova-porto-verticale.jpg"); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { grid-column: calc(var(--pc) + 1); grid-row: calc(var(--pr) + 1); }
  .tile--head { grid-column: calc(var(--pc) + 1) / span 2; }
  .tile--photo span { background-size: 300% 600%; background-position: calc(var(--pc) * 50%) calc(var(--pr) * 20%); }
  .tile--wide-only { display: none; }
  .tile--fact { grid-column: 1 / -1; aspect-ratio: auto; }
  .tile--fact p { font-size: var(--step-lead); max-width: 30ch; }
}

@media (max-width: 1023px) {
  .services__index { display: none; }
  .services__list { grid-column: 1 / 8; }
  .services__pics { grid-column: 8 / 13; }
  .about__title, .about__label { grid-column: 1 / 5; }
  .about__main { grid-column: 5 / 13; }
  .about__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
  .about__list { grid-column: 5 / 13; grid-template-columns: 1fr; }
  .contact__side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .contact__side > * { grid-column: 1; }
  .contact__side .contact__pic { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .contact__form { grid-column: 1 / -1; }
  .method__head h2 { grid-column: 1 / 7; }
  .method__intro { grid-column: 7 / 11; }
  .legal__index { display: none; }
  .legal { grid-column: 1 / 9; }
  .legal__side { grid-column: 9 / 13; }
  .ftile--statement { grid-column: 1 / 7; }
  .ftile--nav { grid-column: 7 / 13; }
  .ftile--pic { grid-column: 1 / 7; }
  .ftile--mail { grid-column: 7 / 13; }
  .ftile--mark { grid-column: 1 / -1; }
  .ftile--cta { grid-column: 1 / -1; min-height: 200px; }
}

@media (max-width: 699px) {
  .only-phone { display: inline-flex; }
  .only-wide-flex { display: none; }

  .site-head { flex-wrap: wrap; row-gap: 0.75rem; padding-top: 1rem; }
  .site-nav { order: 3; width: 100%; }
  .site-nav ul { justify-content: space-between; gap: 0.75rem; }
  .site-nav a { font-size: var(--step-small); }
  .hero { --strip-h: clamp(220px, 44svh, 420px); }
  .hero__text { padding-top: 2rem; }
  .hero__lead { font-size: var(--step-body); }
  .strip { gap: 8px; }
  .hero__foot { padding-top: 1rem; }
  .formats { width: 100%; }
  .formats legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .formats__options { width: 100%; }
  .formats label { flex: 1 1 0; justify-content: center; padding: 0 0.4rem; font-size: 0.8125rem; }

  .services__top h2, .services__intro { grid-column: 1 / -1; }
  .services__body { margin-top: 3rem; }
  .services__list { grid-column: 1 / -1; }
  .services__pics { display: none; }
  .group__pic { display: block; margin-bottom: 1.5rem; }
  .group__pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; background: var(--surface); }
  .rows li, .about__list li { min-height: 2.75rem; flex-wrap: wrap; row-gap: 0; column-gap: 1rem; }
  .rows li .v, .about__list li .v { text-align: left; }

  .method__buttons { display: none; }
  .method__head h2, .method__intro { grid-column: 1 / -1; }
  .method__intro { margin-top: 1rem; }
  .moments { --per-view: 1.2; }
  .moment figure { padding-top: calc(var(--drop, 96px) * 0.45); }

  .about__title, .about__main, .about__label, .about__list { grid-column: 1 / -1; }
  .about__main { padding-top: 0; }
  .about__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
  .about__facts div:last-child { grid-column: 1 / -1; }
  .about__text { font-size: 1.1875rem; }
  .about__label { font-size: var(--step-lead); }

  .contact__side { display: block; }
  .contact__side .contact__pic { margin-top: 2rem; }
  .contact__mail { font-size: var(--step-body); }
  .contact__form { grid-template-columns: 1fr; }
  .field-row { grid-column: 1 / -1; }

  .legal, .legal__side { grid-column: 1 / -1; }
  .legal__side { order: -1; }
  .legal__side img { aspect-ratio: 3 / 2; }

  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ftile { min-height: 160px; }
  .ftile:not(.ftile--pic) { padding: 1.25rem; }
  .ftile--mark { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .ftile--cta { grid-column: 1 / -1; order: -1; min-height: 160px; }
  .ftile--nav { grid-column: 1 / 2; order: 1; }
  .ftile--mail { grid-column: 2 / 3; order: 2; }
  .ftile--mail a { font-size: var(--step-body); }
  .ftile--pic { grid-column: 1 / 2; order: 3; }
  .ftile--statement { grid-column: 2 / 3; order: 4; }
  .ftile--statement p:first-child { font-size: var(--step-body); }
  .ftile--mark span { font-size: 15vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip, .moments { scroll-behavior: auto; }
}

/* the legal page keeps its sentence at the statement size on phones too */
.page-head .hero__lead { font-size: var(--step-lead); }
