/* =============================================================
   Camilla Limone — Art Direction & Event Design
   Design system: black & white, editorial, minimal, immersive.
   ============================================================= */

/* -------------------------------------------------------------
   0. FONTS (served from /fonts, no request to Google)
   Inter is variable (one file, 400–800); Poppins one file per weight.
   Only latin + latin-ext: enough for English and Italian.
   ------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  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: "Poppins";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-italic-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-italic-latin.woff2") format("woff2");
  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: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/poppins-300-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/poppins-300-latin.woff2") format("woff2");
  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: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  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: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  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: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  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: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
  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;
}

/* -------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------- */
:root {
  /* Color */
  --black: #000000;
  --white: #ffffff;
  --gray-11: #111111;
  --gray-33: #333333;
  --gray-77: #777777;
  --gray-f5: #f5f5f5;

  --bg: var(--white);
  --fg: var(--black);
  --muted: var(--gray-77);
  --hairline: rgba(0, 0, 0, 0.12);

  /* Type */
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Poppins", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Fluid type scale (clamp: min, preferred, max) */
  --step--1: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --step-0:  clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1:  clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  --step-2:  clamp(1.4rem, 1.1rem + 1.4vw, 2.4rem);
  --step-3:  clamp(2rem, 1.3rem + 3vw, 4rem);
  --display: clamp(2.8rem, 1rem + 12vw, 13rem);
  --display-sm: clamp(2.4rem, 0.5rem + 9vw, 8rem);

  /* Spacing scale */
  --space-2xs: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
  --space-xs:  clamp(0.75rem, 0.6rem + 0.6vw, 1.15rem);
  --space-s:   clamp(1rem, 0.8rem + 1vw, 1.75rem);
  --space-m:   clamp(1.75rem, 1.2rem + 2vw, 3rem);
  --space-l:   clamp(3rem, 2rem + 4vw, 6rem);
  --space-xl:  clamp(4.5rem, 3rem + 7vw, 10rem);
  --space-2xl: clamp(6rem, 4rem + 10vw, 15rem);

  /* Layout */
  --gutter: clamp(1.25rem, 0.8rem + 3vw, 4rem);
  --maxw: 1680px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0.05, 0.36, 1);
  --dur: 0.7s;
}

/* Dark sections invert the palette */
.theme-dark {
  --bg: var(--black);
  --fg: var(--white);
  --muted: #9a9a9a;
  --hairline: rgba(255, 255, 255, 0.16);
  background: var(--bg);
  color: var(--fg);
}

/* -------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100svh;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul { list-style: none; padding: 0; }

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* -------------------------------------------------------------
   3. TYPOGRAPHY UTILITIES
   ------------------------------------------------------------- */
.display {
  font-size: var(--display);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.h-lg {
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.h-md {
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); }

/* Body copy (paragraphs + inline spans) runs on Poppins.
   Headings keep the display face, including the spans used for line reveals. */
p,
span {
  font-family: var(--font-body);
}

h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span,
.display span,
.h-lg span,
.h-md span,
.hero__title span,
.page-head__title span,
.project-hero__title span,
.contact-lead span,
.project__title span,
.footer__cta span {
  font-family: var(--font-sans);
}

/* -------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


.section {
  padding-block: var(--space-2xl);
}

.section--tight { padding-block: var(--space-xl); }

.divider {
  height: 1px;
  width: 100%;
  background: var(--hairline);
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------
   5. NAVIGATION
   ------------------------------------------------------------- */
.nav {
  position: fixed;
  top: clamp(0.75rem, 0.5rem + 0.9vw, 1.25rem);
  left: 50%;  
  transform: translateX(-50%);
  width: min(calc(100% - (var(--gutter) * 2)), calc(var(--maxw) - (var(--gutter) * 2)));
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: 0.8rem clamp(0.9rem, 0.6rem + 1vw, 1.5rem);
  border: 1px solid var(--nav-border, rgba(255, 255, 255, 0.22));
  border-radius: 999px;
  background: var(--nav-bg, rgba(17, 17, 17, 0.22));
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  mix-blend-mode: normal;
  color: var(--nav-fg, var(--white));
  transition: color 0.4s var(--ease-out), background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

/* When nav sits over a light section */
.nav[data-nav="dark"] {
  --nav-fg: var(--black);
  --nav-bg: rgba(255, 255, 255, 0.52);
  --nav-border: rgba(0, 0, 0, 0.12);
}
.nav[data-nav="light"] {
  --nav-fg: var(--white);
  --nav-bg: rgba(17, 17, 17, 0.24);
  --nav-border: rgba(255, 255, 255, 0.22);
}

.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav__brand span {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.7;
}
.nav__brand strong {
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 0.5rem + 2vw, 3rem);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__links a {
  position: relative;
  padding-block: 0.25rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"] { opacity: 1; }

/* EN / IT switch — sits after the links on desktop, before "Menu" on phones.
   The current language is full strength, the other one dimmed. */
.nav__links { margin-left: auto; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3rem 0 0.3rem clamp(0.9rem, 0.5rem + 1vw, 1.5rem);
  border-left: 1px solid currentColor;
  border-left-color: color-mix(in srgb, currentColor 30%, transparent);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.lang-switch [data-lang-opt] {
  font-family: var(--font-sans);
  opacity: 0.45;
  transition: opacity 0.3s var(--ease-out);
}
.lang-switch [data-lang-opt].is-active { opacity: 1; }
.lang-switch__sep { font-family: var(--font-sans); opacity: 0.35; }
@media (hover: hover) {
  .lang-switch:hover [data-lang-opt] { opacity: 0.8; }
  .lang-switch:hover [data-lang-opt].is-active { opacity: 1; }
}

/* Hamburger */
.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 250;
  position: relative;
  padding: 0.3rem 0.2rem;
}
.nav__toggle-bars {
  position: relative;
  width: 24px;
  height: 18px;
}
.nav__toggle-bars span {
  position: absolute;
  left: 0;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s, top 0.35s var(--ease-out), bottom 0.35s var(--ease-out);
}
.nav__toggle-bars span:nth-child(1) { top: 2px; }
.nav__toggle-bars span:nth-child(2) { bottom: 2px; }
.nav__toggle.is-open .nav__toggle-bars span:nth-child(1) {
  top: 50%;
  transform: rotate(45deg) translateY(-50%);
}
.nav__toggle.is-open .nav__toggle-bars span:nth-child(2) {
  bottom: auto;
  top: 50%;
  transform: rotate(-45deg) translateY(-50%);
}

/* Full-screen mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-io);
  pointer-events: none;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}
.menu__list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 0.2rem + 1vw, 1rem);
  max-width: 100%;
}
.menu__list a {
  display: block;
  max-width: 100%;
  font-size: clamp(2.9rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(40px);
  overflow-wrap: anywhere;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s;
}
.menu.is-open .menu__list a { opacity: 1; transform: translateY(0); }
.menu__list a:nth-child(1) { transition-delay: 0.12s; }
.menu__list a:nth-child(2) { transition-delay: 0.18s; }
.menu__list a:nth-child(3) { transition-delay: 0.24s; }
.menu__list a:nth-child(4) { transition-delay: 0.30s; }
.menu__list a:hover { color: var(--gray-77); }
.menu__meta {
  margin-top: var(--space-l);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-77);
}

body.menu-open { overflow: hidden; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .lang-switch { margin-left: auto; }
  .menu__meta {
    font-size: 0.68rem;
    gap: 0.8rem 1rem;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 480px) {
  /* With the EN/IT switch in the bar there is no room for the "Menu" word
     next to the name: the bars carry it (the word stays for screen readers). */
  .nav__brand { white-space: nowrap; }
  .lang-switch { padding-left: 0; border-left: 0; }
  .nav__toggle [data-menu-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .menu__list a {
    font-size: clamp(2.5rem, 11vw, 3.6rem);
    letter-spacing: -0.02em;
  }
  .menu__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

/* -------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  background: var(--black);
  
}
.hero__media,
.hero__media picture,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media { background: var(--gray-11); }
/* slow drift, desaturated for B&W cohesion */
.hero__media img { transform: scale(1.05); filter: grayscale(1) contrast(1.05) brightness(0.92); animation: heroDrift 18s ease-in-out infinite alternate; }
/* mobile: the square portrait is art-directed via <picture>; keep the subject centred */
@media (max-width: 767px) {
  .hero__media img { object-position: 50% 45%; }
}
@keyframes heroDrift {
  from { transform: scale(1.05) translateY(0); }
  to   { transform: scale(1.12) translateY(-1.5%); }
}
/* very light overlay for legibility (never heavy) */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.1) 65%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.hero__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--gutter);
  padding-bottom: clamp(2rem, 1rem + 4vw, 5rem);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.hero__title {
  font-size: var(--display);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
/* Desktop: never let the display type outgrow the available line width —
   otherwise "Events Fashion" wraps onto extra lines and, since the block is
   anchored to the bottom, it grows upward behind the header.
   Mobile keeps the original scale (wrapping there is intentional). */
@media (min-width: 768px) {
  .hero__content { container-type: inline-size; }
  /* fallback for browsers without container query units */
  .hero__title { font-size: min(var(--display), calc((100vw - (var(--gutter) * 2) - 1.5rem) / 8.8)); }
  @supports (font-size: 1cqw) {
    .hero__title { font-size: min(var(--display), 11cqw); }
  }
}
.hero__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 1rem + 4vw, 5rem);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.6);
  animation: scrollLine 2s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); }
  40% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 640px) {
  .hero__scroll { display: none; }
}

/* -------------------------------------------------------------
   7. INTRO / STATEMENT
   ------------------------------------------------------------- */
.statement {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}
@media (min-width: 900px) {
  .statement {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
    gap: var(--space-l);
  }
}

/* -------------------------------------------------------------
   8. SELECTED WORK — editorial, asymmetric
   ------------------------------------------------------------- */
.work-index { display: block; }

.project {
  display: block;
  color: inherit;
  padding-block: var(--space-l);
  border-top: 1px solid var(--hairline);
}
.project:last-of-type { border-bottom: 1px solid var(--hairline); }

.project__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-s);
}
.project__num {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.project__cat {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.project__title {
  font-size: clamp(2.2rem, 1rem + 7vw, 7rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.project__media {
  position: relative;
  overflow: hidden;
  background: var(--gray-f5);
  margin-top: var(--space-s);
}
.project__media img {
  width: 100%;
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
  transform: scale(1.01);
  filter: grayscale(1) contrast(1.02);
}
@media (hover: hover) {
  .project:hover .project__media img { filter: grayscale(0) contrast(1); }
}
.project__view {
  position: absolute;
  inset: auto var(--space-s) var(--space-s) auto;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  mix-blend-mode: difference;
}

@media (hover: hover) {
  .project:hover .project__media img { transform: scale(1.05); }
  .project:hover .project__title { transform: translateX(clamp(8px, 1vw, 20px)); }
  .project:hover .project__view { opacity: 1; transform: translateY(0); }
}

/* Aspect helpers for editorial rhythm */
.ar-wide   { aspect-ratio: 16 / 9; }
.ar-cinema { aspect-ratio: 21 / 9; }
.ar-photo  { aspect-ratio: 4 / 3; }
.ar-portrait { aspect-ratio: 3 / 4; }
.ar-square { aspect-ratio: 1 / 1; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* Crop anchors: square sources (1:1) dropped into wide or tall slots would
   otherwise be cut through the middle — these keep the subject in frame. */
.pos-y-35 { object-position: 50% 35%; }
.pos-y-42 { object-position: 50% 42%; }
.pos-y-45 { object-position: 50% 45%; }

/* Opt-in: on small screens a 21:9 band of a square photo is a sliver,
   so those slots fall back to 1:1. Desktop keeps the cinematic crop. */
@media (max-width: 720px) {
  .ar-sq-mobile, .ar-sq-mobile.ar-cinema { aspect-ratio: 1 / 1; }
}

/* Alternate alignment for asymmetry */
.project:nth-child(even) .project__media { margin-left: auto; width: min(100%, 68%); }
.project:nth-child(3n) .project__media { width: 100%; }
@media (max-width: 720px) {
  .project:nth-child(even) .project__media { width: 100%; }
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-block: var(--space-s);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.filter-bar button {
  color: var(--muted);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.35s var(--ease-out);
}
.filter-bar button::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.filter-bar button:hover { color: var(--fg); }
.filter-bar button[aria-pressed="true"] { color: var(--fg); }
.filter-bar button[aria-pressed="true"]::after { transform: scaleX(1); transform-origin: left; }
.filter-bar button[aria-selected="true"] { color: var(--fg); }
.filter-bar button[aria-selected="true"]::after { transform: scaleX(1); transform-origin: left; }

/* Wedding tabs (weddings page): the filter bar, one step larger */
.wedding-tabs { margin-top: var(--space-m); scroll-margin-top: 110px; } /* clears the floating nav */
.wedding-tabs .filter-bar { font-size: var(--step-0); gap: 0.5rem 2rem; }
.wedding-tabs__name { font-weight: 600; margin-left: 0.35em; }
.wedding-next { display: flex; justify-content: center; margin-top: var(--space-l); }

/* -------------------------------------------------------------
   9. EDITORIAL GALLERY GRID (project pages)
   ------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  row-gap: var(--space-l);
}
.gallery figure { position: relative; overflow: hidden; background: var(--gray-f5); }
.gallery figure img {
  width: 100%;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.8s var(--ease-out), transform 0.9s var(--ease-out);
}
@media (hover: hover) {
  .gallery figure:hover img { filter: grayscale(0); transform: scale(1.02); }
}

/* Opt-out: these frames show the brand's own palette, so they skip the
   monochrome treatment the other galleries use. Hover still scales them. */
.gallery--color figure img { filter: none; }
.g-full   { grid-column: 1 / -1; }
.g-half   { grid-column: span 6; }
.g-left   { grid-column: 1 / 7; }
.g-right  { grid-column: 7 / 13; align-self: end; }
.g-push   { margin-top: var(--space-xl); }

.gallery__note {
  grid-column: 4 / 10;
  padding-block: var(--space-m);
}
figcaption {
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  color: var(--muted);
}

@media (max-width: 720px) {
  .gallery { row-gap: var(--space-m); }
  .g-half, .g-left, .g-right { grid-column: 1 / -1; }
  .gallery__note { grid-column: 1 / -1; }
  .g-push { margin-top: 0; }
}

/* -------------------------------------------------------------
   9b. BEFORE / AFTER COMPARISON (project pages)
   Two vertical columns: inline video + still + note. The "before"
   column stays desaturated so the shift in direction reads at a glance.
   ------------------------------------------------------------- */
.compare__intro {
  max-width: 62ch;
  margin-bottom: var(--space-l);
}
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
.compare__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.compare__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs);
  padding-bottom: var(--space-2xs);
  border-bottom: 1px solid var(--hairline);
}
.compare__tag {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.compare__media {
  position: relative;
  overflow: hidden;
  background: var(--gray-11);
  aspect-ratio: 9 / 16;
}
.compare__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.compare__still {
  position: relative;
  overflow: hidden;
  background: var(--gray-f5);
}
.compare__still img {
  width: 100%;
  transition: filter 0.8s var(--ease-out), transform 0.9s var(--ease-out);
}
.compare__text {
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}
/* Before = archive footage: no colour. After keeps the graded palette. */
.compare__side--before .compare__media video,
.compare__side--before .compare__still img { filter: grayscale(1) contrast(1.03); }
@media (hover: hover) {
  .compare__side--before .compare__still:hover img { filter: grayscale(0); transform: scale(1.02); }
  .compare__side--after .compare__still:hover img { transform: scale(1.02); }
}
@media (min-width: 900px) {
  /* Two columns kept side by side and capped so the 9:16 media never
     towers over the viewport — the pair stays centred and comparable. */
  .compare {
    grid-template-columns: repeat(2, min(calc((100% - var(--gutter)) / 2), calc(74svh * 9 / 16)));
    justify-content: center;
    gap: var(--gutter);
  }
}

/* -------------------------------------------------------------
   9b. LOGO COMPARISON
   Same before/after reading as .compare, but the artwork is a flat
   logo rather than 9:16 footage: each plate is painted the exact
   background the PNG ships with, so the mark sits in a field
   instead of on a visible tile.
   ------------------------------------------------------------- */
.logo-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
}

.logo-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.logo-plate {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  /* Exactly the colours baked into the PNGs (#f3f3f3 light, #151515 dark),
     so no plate edge shows around the artwork. */
  background: var(--plate, #f3f3f3);
  /* A floor rather than a ratio: the artwork is bounded in absolute units
     below, so a tall mark can never stretch its plate past a wide one. */
  min-height: clamp(240px, 30vw, 360px);
}

.logo-plate--dark { --plate: #151515; }

/* The source files are small — cap them near 1:1 instead of upscaling. */
.logo-plate img {
  width: auto;
  height: auto;
  max-width: min(100%, 250px);
  max-height: clamp(180px, 22vw, 270px);
  object-fit: contain;
}

.logo-plate--wide { min-height: clamp(200px, 26vw, 320px); }
.logo-plate--wide img {
  max-width: min(100%, 520px);
  max-height: clamp(150px, 20vw, 240px);
}

.logo-system {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  margin-top: var(--space-l);
}

/* -------------------------------------------------------------
   9c. VIDEO BEFORE / AFTER
   One landscape take on the before side, a rail of vertical clips
   on the after side — the format difference is half the argument,
   so the two are stacked rather than forced into equal columns.
   ------------------------------------------------------------- */
.ba-video { margin-top: var(--space-l); }
.ba-video--after { margin-top: var(--space-xl); }

.ba-video__before {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  align-items: start;
  margin-top: var(--space-s);
}

.ba-video__wide { margin: 0; }

.ba-video__media {
  position: relative;
  overflow: hidden;
  background: var(--gray-11);
}

.ba-video__media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  /* Same reading as the other "before" media on this page: ungraded. */
  filter: grayscale(1) contrast(1.03);
}

.ba-video__note {
  margin-top: var(--space-m);
  max-width: 62ch;
}

/* -------------------------------------------------------------
   9d. RUNWAY FILM + CELEBRITY GRID
   ------------------------------------------------------------- */
.show-film {
  margin: 0;
  /* The film is a 1216x824 frame. Left unbounded it stretched past its own
     resolution on wide screens and the upscale showed; capped here it is
     always displayed at or below 1:1, which is what keeps it sharp. */
  max-width: 880px;
}

.show-film__media {
  overflow: hidden;
  background: var(--gray-11);
}

.show-film__media video {
  display: block;
  width: 100%;
  /* No object-fit: the film keeps its own 1216x824 frame rather than
     being cropped to a ratio it was never shot for. */
  height: auto;
}

.show-film__note {
  margin-top: var(--space-m);
  max-width: 62ch;
}

/* The screenshots all share one tall phone ratio, so a plain grid reads
   more evenly here than the masonry columns used for the editorial. */
/* Columns, not a grid: phone screenshots, 4:5 press pages and landscape
   spreads sit together without the empty gaps a row grid leaves. */
.celeb-grid {
  column-count: 2;
  column-gap: var(--space-s);
}
@media (min-width: 720px)  { .celeb-grid { column-count: 3; } }
@media (min-width: 1200px) { .celeb-grid { column-count: 4; } }

.celeb-grid figure {
  break-inside: avoid;
  margin: 0 0 var(--space-s);
  overflow: hidden;
  background: var(--gray-f5);
}

.celeb-grid img,
.celeb-grid video {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease-out), opacity 0.7s var(--ease-out);
}
@media (hover: hover) {
  .celeb-grid figure:hover img,
  .celeb-grid figure:hover video { transform: scale(1.03); }
}

@media (min-width: 900px) {
  .ba-video__before {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--gutter);
  }
  /* Three clips fit the row from here up — nothing to scroll to. */
  .ba-video__hint { display: none; }
  /* Same for any rail whose clips already fit the width. */
  .reels__hint--fits { display: none; }
}

@media (min-width: 900px) {
  .logo-compare,
  .logo-system {
    grid-template-columns: 1fr 1fr;
    gap: var(--gutter);
  }
  /* The closing note runs under both plates. */
  .logo-system .gallery__note { grid-column: 1 / -1; }
}

/* -------------------------------------------------------------
   9c. REEL SCROLLER (vertical 9:16 clips, swiped horizontally)
   Full-bleed rail so the clips run past the text column and the
   row reads as something to drag rather than a finished grid.
   ------------------------------------------------------------- */
.reels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, min(62vw, calc(64svh * 9 / 16)));
  gap: var(--space-s);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  padding-bottom: var(--space-xs);
  /* the rail bleeds out of .wrap on both sides */
  margin-inline: calc(var(--gutter) * -1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.reel {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.reel__media {
  position: relative;
  overflow: hidden;
  background: var(--gray-11);
  aspect-ratio: 9 / 16;
}
.reel__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Empty slot: holds the 9:16 footprint until the clip is dropped in. */
.reel__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  background: var(--gray-f5);
  border: 1px dashed var(--hairline);
  color: var(--muted);
  text-align: center;
  padding: var(--space-s);
}
.reel__placeholder span:first-child {
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.reel__placeholder span:last-child {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.reels__hint {
  margin-top: var(--space-xs);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------
   9d. MASONRY GALLERY (column flow, uneven photo heights)
   Colour is kept here: the palette of the styling is the work.
   ------------------------------------------------------------- */
.masonry {
  column-count: 2;
  column-gap: var(--space-s);
}
@media (min-width: 720px)  { .masonry { column-count: 3; } }
@media (min-width: 1200px) { .masonry { column-count: 4; } }

.masonry figure {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 var(--space-s);
  overflow: hidden;
  background: var(--gray-f5);
}
.masonry img,
.masonry video {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease-out), opacity 0.7s var(--ease-out);
}
/* Lazy photos fade in once downloaded (main.js adds .is-loaded);
   until then the figure shows its grey placeholder at the right size. */
html.js-ready .masonry img:not(.is-loaded),
html.js-ready .celeb-grid img:not(.is-loaded) { opacity: 0; }
@media (hover: hover) {
  .masonry figure:hover img,
  .masonry figure:hover video { transform: scale(1.03); }
}

/* -------------------------------------------------------------
   9d-bis. SOUND TOGGLE (added by main.js to video[data-sound])
   Sits on the clip itself, so it reads the same on light and
   dark sections: a dark glass disc with a white icon.
   ------------------------------------------------------------- */
.has-sound { position: relative; }

.sound-toggle {
  position: absolute;
  right: var(--space-2xs);
  bottom: var(--space-2xs);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.sound-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sound-toggle svg path:first-child { fill: currentColor; }
.sound-toggle:hover { background: rgba(0, 0, 0, 0.7); transform: scale(1.06); }
.sound-toggle[aria-pressed="true"] { background: var(--white); color: var(--black); }
.sound-toggle:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* -------------------------------------------------------------
   9e. PERSONAL PROJECT
   Zig-zag rows for Bottega Veneta, a horizontal rail for Acne
   Studios. Every image is a presentation slide with type baked in,
   so nothing here is ever cropped: frames follow the file's own
   ratio (width/height attributes) instead of object-fit.
   ------------------------------------------------------------- */
.personal__sub {
  margin-top: var(--space-xs);
  color: var(--muted);
}

.zigzag {
  display: grid;
  gap: var(--space-xl);
}
.zigzag__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
  align-items: center;
}
.zigzag__media {
  margin: 0;
  overflow: hidden;
  background: var(--gray-f5);
}
.zigzag__media img {
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease-out);
}
.zigzag__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
@media (hover: hover) {
  .zigzag__media:hover img { transform: scale(1.02); }
}
@media (min-width: 900px) {
  .zigzag__row {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: var(--gutter);
  }
  /* Even rows mirror: text on the left, image on the right. */
  .zigzag__row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .zigzag__row:nth-child(even) .zigzag__media { order: 2; }
}

/* Default (touch, small screens, no JS, reduced motion): a native
   swipe rail with snap. Each slide is nearly full width on a phone
   so the type inside it stays legible. */
.hscroll__track {
  display: flex;
  gap: var(--space-s);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* line the first slide up with the .wrap text column at any width */
  --rail-inset: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  padding-inline: var(--rail-inset);
  scroll-padding-inline: var(--rail-inset);
  padding-bottom: var(--space-xs);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.hscroll__item {
  flex: 0 0 min(88vw, 1100px);
  margin: 0;
  scroll-snap-align: start;
}
.hscroll__item img {
  width: 100%;
  height: auto;
  background: var(--gray-f5);
}

/* Desktop with GSAP: the rail is pinned and driven by the vertical
   scroll (JS adds .is-pinned only from 900px up). */
.hscroll.is-pinned .hscroll__pin {
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hscroll.is-pinned .hscroll__track {
  overflow: visible;
  scroll-snap-type: none;
  width: max-content;
  padding-bottom: 0;
  will-change: transform;
}
.hscroll.is-pinned .hscroll__item {
  flex: 0 0 auto;
  /* 16:9 slides sized off the viewport height so the whole frame and
     its caption fit under the nav without ever being cut. */
  width: min(72vw, calc(68svh * 16 / 9));
}
.hscroll.is-pinned .hscroll__hint { display: none; }
/* The pinned viewport already leaves air under the slides. */
.hscroll.is-pinned { padding-bottom: 0; }

/* -------------------------------------------------------------
   9f. EXPERIENCE TIMELINE (about page)
   Default: a vertical line with one node per role — this is what
   phones, no-JS and reduced motion get. From 900px up JS adds
   .is-pinned: the rail turns horizontal, one role per screen,
   and the scroll slides it sideways. JS writes the reading
   progress into --tl-progress, which fills the line.
   ------------------------------------------------------------- */
.timeline {
  --rail-inset: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  --node: 14px;
  --rail-x: 5px;
  overflow-x: clip;
}

.timeline__track {
  position: relative;
  display: grid;
  gap: var(--space-l);
  margin: 0;
  padding: 0 var(--rail-inset) 0 calc(var(--rail-inset) + 2.5rem);
  list-style: none;
}
/* the line, and its black fill on top */
.timeline__track::before,
.timeline__track::after {
  content: "";
  position: absolute;
  left: calc(var(--rail-inset) + var(--rail-x));
  top: 0.8rem;
  bottom: 0;
  width: 1px;
  background: #cfcfcf;
}
.timeline__track::after {
  width: 2px;
  margin-left: -0.5px;
  background: var(--fg);
  transform-origin: top;
  transform: scaleY(var(--tl-progress, 1));
}

.timeline__item { position: relative; }

.timeline__node {
  position: absolute;
  left: calc(-2.5rem + var(--rail-x) - var(--node) / 2);
  /* centred on the pill beside it */
  top: 0.8rem;
  z-index: 2;
  width: var(--node);
  height: var(--node);
  margin-top: calc(var(--node) / -2);
  border: 1px solid var(--fg);
  border-radius: 50%;
  background: var(--bg);
  transition: background 0.4s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.timeline__item.is-past .timeline__node { background: var(--fg); }
/* the current role: filled dot inside an open ring */
.timeline__item.is-active .timeline__node {
  background: var(--fg);
  box-shadow: 0 0 0 7px var(--bg), 0 0 0 8px var(--fg);
}

.timeline__pill {
  display: inline-block;
  position: relative;
  z-index: 1;
  padding: 0.5em 1.15em;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* the oversized year behind each role */
.timeline__year-bg {
  position: absolute;
  top: -0.15em;
  right: 0;
  z-index: 0;
  font-family: var(--font-sans);
  font-size: clamp(4.5rem, 24vw, 9rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: #efefef;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.timeline__body {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-top: var(--space-s);
  transition: opacity 0.5s var(--ease-out);
}
.timeline__company {
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.timeline__role {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--muted);
}
.timeline__list {
  display: grid;
  gap: 0.45rem;
  margin-top: var(--space-s);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}
.timeline__list li {
  position: relative;
  padding-left: 1.4em;
  break-inside: avoid;
}
.timeline__list li::before {
  content: "—";
  position: absolute;
  left: 0;
}

/* While JS drives it, roles away from the reading point step back. */
.timeline.is-live .timeline__item:not(.is-active) .timeline__body { opacity: 0.32; }

.timeline__progress { display: none; }

/* ---- Desktop: pinned horizontal rail ---- */
.timeline.is-pinned { padding-bottom: 0; }
.timeline.is-pinned .timeline__pin {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100svh;
  overflow: hidden;
}
.timeline.is-pinned .timeline__track {
  --node-y: 5.5rem;
  display: flex;
  gap: 0;
  width: max-content;
  padding: 0 var(--rail-inset);
  will-change: transform;
}
.timeline.is-pinned .timeline__track::before,
.timeline.is-pinned .timeline__track::after {
  left: var(--rail-inset);
  top: var(--node-y);
  bottom: auto;
  height: 1px;
}
.timeline.is-pinned .timeline__track::before { right: 0; width: auto; }
/* fill runs from the first node to the last (--tl-span, set by JS) */
.timeline.is-pinned .timeline__track::after {
  width: var(--tl-span, 0px);
  height: 2px;
  margin: -0.5px 0 0;
  transform-origin: left;
  transform: scaleX(var(--tl-progress, 0));
}
.timeline.is-pinned .timeline__item {
  flex: 0 0 auto;
  width: min(62rem, 72vw);
  min-height: min(74svh, 46rem);
  padding: calc(var(--node-y) + var(--space-m)) var(--space-l) 0 0;
}
.timeline.is-pinned .timeline__node {
  left: calc(var(--node) / -2);
  top: var(--node-y);
  margin-top: calc(var(--node) / -2);
}
.timeline.is-pinned .timeline__pill {
  position: absolute;
  top: calc(var(--node-y) - 3.6rem);
  left: calc(var(--node) / -2);
}
.timeline.is-pinned .timeline__year-bg {
  top: 50%;
  right: auto;
  left: 38%;
  margin-top: -0.4em;
  font-size: min(58svh, 30vw);
}
.timeline.is-pinned .timeline__body { max-width: min(32rem, 50%); margin-top: 0; }
/* the last role carries nine lines: two columns keep it on screen */
.timeline.is-pinned .timeline__item--wide .timeline__body { max-width: min(46rem, 78%); }
.timeline.is-pinned .timeline__list--2col {
  display: block;
  columns: 2;
  column-gap: var(--space-m);
}
.timeline.is-pinned .timeline__list--2col li { margin-bottom: 0.45rem; }

.timeline.is-pinned .timeline__progress {
  position: absolute;
  bottom: clamp(1.25rem, 5svh, 3rem);
  left: 50%;
  display: flex;
  gap: 0.4rem;
  transform: translateX(-50%);
}
.timeline__progress span {
  width: 2.25rem;
  height: 4px;
  background: var(--hairline);
  transition: background 0.4s var(--ease-out);
}
.timeline__progress span.is-active { background: var(--fg); }

/* -------------------------------------------------------------
   10. PROJECT HEADER (project detail page)
   ------------------------------------------------------------- */
.project-hero {
  padding-top: clamp(7rem, 5rem + 8vw, 12rem);
}
.project-hero__num {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.project-hero__title {
  font-size: var(--display-sm);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-top: var(--space-xs);
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-s);
  margin-top: var(--space-l);
  max-width: 620px;
}
@media (min-width: 720px) {
  .meta-grid { grid-template-columns: repeat(4, 1fr); }
}
.meta-grid dt {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.meta-grid dd { font-weight: 500; }
.project-hero__desc {
  margin-top: var(--space-l);
  max-width: 46ch;
  font-size: var(--step-1);
  line-height: 1.5;
}

/* -------------------------------------------------------------
   10b. EDITORIAL TEXT BLOCKS
   Copy written as "Label: text" reads as one long paragraph; split
   into a small caps label over its text, set in columns on desktop
   and stacked on phones.
   ------------------------------------------------------------- */
.kicker {
  margin-top: var(--space-l);
  margin-bottom: var(--space-2xs);
}
.kicker + .project-hero__desc,
.kicker + .lead { margin-top: 0; }

.text-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  margin-top: var(--space-l);
}
@media (min-width: 900px) {
  .text-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
}
.text-block {
  padding-top: var(--space-s);
  border-top: 1px solid var(--hairline);
}
.text-block__label { margin-bottom: var(--space-xs); }
.text-block__body {
  max-width: 46ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 1.55;
}

/* One number that sums the result up. */
.key-figure {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25em var(--space-s);
  margin-top: var(--space-l);
  padding-top: var(--space-s);
  border-top: 1px solid var(--hairline);
}
.key-figure__value {
  font-family: var(--font-sans);
  font-size: clamp(3.2rem, 2rem + 6vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.key-figure__label {
  max-width: 22ch;
  font-size: var(--step-1);
  line-height: 1.3;
  color: var(--muted);
}

/* Small boxed aside, e.g. the confidentiality note. */
.note {
  max-width: 46rem;
  margin-top: var(--space-m);
  padding: var(--space-s) var(--space-m);
  border-left: 2px solid var(--fg);
  background: var(--gray-f5);
}
.note p + p { margin-top: 0.4rem; }
.note__body { color: var(--gray-33); line-height: 1.55; }

/* Homepage statement: label on the left, the copy stacked on the right. */
.statement__copy > * + * { margin-top: var(--space-s); }

/* -------------------------------------------------------------
   11. EXPERTISE LIST (typographic)
   ------------------------------------------------------------- */
.expertise { border-top: 1px solid var(--hairline); }
.expertise__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-s);
  padding-block: clamp(1rem, 0.6rem + 1.5vw, 2rem);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: color 0.4s var(--ease-out);
}
.expertise__num {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 3ch;
}
.expertise__name {
  font-size: clamp(1.6rem, 0.8rem + 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease-out), opacity 0.4s;
}
.expertise__arrow {
  margin-left: auto;
  font-size: var(--step-1);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
@media (hover: hover) {
  .expertise__item:hover { color: var(--muted); }
  .expertise__item:hover .expertise__name { transform: translateX(clamp(8px, 1.5vw, 28px)); color: var(--fg); }
  .expertise__item:hover .expertise__arrow { opacity: 1; transform: translateX(0); }
}

/* -------------------------------------------------------------
   11b. EXPERTISE WEB (spider diagram)
   Expertise sits in the middle of a cobweb; one thread runs out to
   each project node, which is the link to that project page.
   ------------------------------------------------------------- */
.web__stage {
  position: relative;
  width: min(100%, 680px);
  margin-inline: auto;
  aspect-ratio: 1;
}
.web__stage svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* the silk: 12 radial spokes and four rings sagging between them */
.web__silk {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.18;
}
.web__silk line,
.web__silk path { vector-effect: non-scaling-stroke; }

/* the three threads that actually lead somewhere */
.web__thread {
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0.55;
  vector-effect: non-scaling-stroke;
  transition: opacity 0.45s var(--ease-out), stroke-width 0.45s var(--ease-out);
}
.web__dot {
  fill: currentColor;
  transition: r 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
}
.web__hub {
  fill: var(--bg);
  stroke: currentColor;
  stroke-opacity: 0.35;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* centre label */
.web__centre {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  text-align: center;
  pointer-events: none;
}
.web__centre-name {
  font-size: clamp(1.1rem, 0.7rem + 1.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.web__centre-sub {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* project nodes — positioned over the dot each thread ends on */
.web__node {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  text-align: center;
  max-width: 44%;
  color: var(--muted);
  transition: color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.web__node-num {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.web__node-name {
  font-size: clamp(1.05rem, 0.7rem + 1.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--fg);
}
.web__node-meta {
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* node 01 sits top-left of the web, 02 bottom-right */
.web__node--art     { left: 24%; top: 35%; transform: translate(-50%, calc(-100% - 22px)); }
.web__node--private { left: 76%; top: 65%; transform: translate(-50%, 22px); }

/* hovering a node lights up its own thread and dims the others */
@media (hover: hover) {
  .web__node:hover { color: var(--fg); }
  /* dim every thread first, then bring the hovered one back up */
  .web__stage:has(.web__node:hover) .web__thread { opacity: 0.15; }
  .web__stage:has(.web__node--art:hover) .web__thread--art,
  .web__stage:has(.web__node--private:hover) .web__thread--private {
    opacity: 1;
    stroke-width: 2.5;
  }
  .web__stage:has(.web__node--art:hover) .web__dot--art,
  .web__stage:has(.web__node--private:hover) .web__dot--private { r: 11; }
}
.web__node:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 10px;
  color: var(--fg);
}

/* small screens: the web shrinks, labels stay legible */
@media (max-width: 640px) {
  .web__stage { width: min(100%, 460px); }
  .web__node { max-width: 42%; }
  /* the discipline line would wrap to four lines at this width */
  .web__node-meta { display: none; }
  .web__node--art { transform: translate(-50%, calc(-100% - 14px)); }
  .web__node--private { transform: translate(-50%, 14px); }
}

/* -------------------------------------------------------------
   11c. EXPERTISE SPHERE
   A slowly turning point-cloud sphere (canvas 2D) with the
   disciplines pinned to fixed anchors on its surface. The labels
   stay real DOM links — selectable, focusable, crawlable — and are
   only moved by JS; without JS they fall back to a plain pill list.
   ------------------------------------------------------------- */
.sphere {
  position: relative;
  width: min(100%, 720px);
  margin-inline: auto;
  aspect-ratio: 1;
  /* Decoration: it never takes the pointer, so a swipe or a click over it
     behaves exactly as it would over the background. */
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.sphere__canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* The dots are painted in currentColor, so the sphere follows the
     section theme (black on white, white on .theme-dark). */
  color: var(--fg);
  /* A thin halo hugging the dot cloud, sized off the box rather than its
     diagonal so the ring lands in the same place at every aspect ratio. */
  background: radial-gradient(
    circle closest-side,
    transparent 74%,
    rgba(127, 127, 127, 0.16) 80%,
    transparent 81%
  );
}

.sphere__labels {
  position: absolute;
  inset: 0;
  margin: 0;
}

.sphere__label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.45em 1em;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform, opacity;
}

/* A small glowing white star ahead of each discipline. */
.sphere__label::before {
  content: "\2726";
  display: inline-block;
  margin-right: 0.55em;
  font-size: 1.2em;
  line-height: 1;
  vertical-align: -0.08em;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", sans-serif;
  color: #fff;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.95), 0 0 10px rgba(255, 255, 255, 0.7), 0 0 18px rgba(255, 255, 255, 0.4);
  animation: starTwinkle 2.4s ease-in-out infinite;
}
.sphere__label:nth-child(2n)::before { animation-delay: -0.8s; }
.sphere__label:nth-child(3n)::before { animation-delay: -1.6s; }
@keyframes starTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.8); }
}

/* Desktop: a smaller sphere. Phones keep the full-width one. */
@media (min-width: 900px) {
  .sphere { width: min(100%, 540px); }
}

/* Phones: eleven disciplines on a narrow stage. One line each, smaller,
   so a pill never doubles its height and piles onto its neighbours. */
@media (max-width: 700px) {
  .sphere__label {
    padding: 0.35em 0.7em;
    font-size: 0.56rem;
    letter-spacing: 0.05em;
  }
  .sphere__label::before { margin-right: 0.45em; }
}

/* No JS: no canvas, no absolute positioning — just the list of disciplines. */
html:not(.js-ready) .sphere { aspect-ratio: auto; }
html:not(.js-ready) .sphere__canvas { display: none; }
html:not(.js-ready) .sphere__labels {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs);
}
html:not(.js-ready) .sphere__label {
  position: static;
  max-width: none;
}


/* -------------------------------------------------------------
   12. ABOUT
   ------------------------------------------------------------- */
/* Editorial story: text and photos.
   Mobile: one linear column (photo, text, photo, text).
   Desktop: a 12-column grid where the photos overlap one another and
   the text panels, which keep a solid background so they stay readable. */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}
.about-story__fig { margin: 0; align-self: start; }
.about-story__fig img {
  display: block;
  width: 100%;
  height: auto; /* .cover sets 100%: let the ratio decide */
  aspect-ratio: 4 / 5;
  background: var(--gray-f5);
}
.about-story__text p + p { margin-top: var(--space-s); }
.about-story__lead { margin-bottom: var(--space-m); }

@media (min-width: 900px) {
  .about-story {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-s);
    row-gap: 0;
  }
  /* Row 1-2: portrait left, intro right */
  .about-story__fig--portrait { grid-column: 1 / 7; grid-row: 1 / 3; }
  .about-story__text--intro { grid-column: 8 / 13; grid-row: 1; align-self: center; }

  /* Row 2-4: the magazine cover overlaps the portrait's lower edge,
     and the text panel overlaps the cover's right edge */
  .about-story__fig--cover {
    grid-column: 6 / 10;
    grid-row: 2 / 4;
    margin-top: var(--space-xl);
    z-index: 2;
  }
  /* A frame in the page colour (padding, not a shadow: the reveal's clip-path would cut it) */
  .about-story__fig--cover { padding: var(--space-2xs); background: var(--bg); }
  .about-story__text--panel {
    grid-column: 9 / 13;
    grid-row: 3;
    align-self: end;
    z-index: 3;
    padding: var(--space-m);
    background: var(--bg);
    border: 1px solid var(--hairline);
  }

  /* Row 3-5: the feature page sits under the portrait, left of the cover;
     the closing text runs below the cover on the right */
  .about-story__fig--spread {
    grid-column: 2 / 6;
    grid-row: 3 / 6;
    margin-top: var(--space-l);
    z-index: 1;
  }
  .about-story__text--outro {
    grid-column: 7 / 12;
    grid-row: 5;
    padding-top: var(--space-l);
  }
}
/* Small desktops / tablets landscape: give the panel more width so the
   paragraph does not turn into a narrow ribbon */
@media (min-width: 900px) and (max-width: 1199px) {
  .about-story__text--panel { grid-column: 8 / 13; }
  .about-story__fig--cover { grid-column: 5 / 9; }
  .about-story__text--outro { grid-column: 6 / 13; }
}

/* -------------------------------------------------------------
   13. CONTACT
   ------------------------------------------------------------- */
.contact-lead {
  font-size: var(--display-sm);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  margin-top: var(--space-xl);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-xl); }
}
.contact-info dt {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.contact-info dd { margin-bottom: var(--space-m); font-size: var(--step-1); overflow-wrap: anywhere; }
.contact-info a { position: relative; }
.contact-info a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.contact-info a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Form */
.form { display: flex; flex-direction: column; gap: var(--space-m); }
.field { position: relative; }
.field label {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 0.75rem 0;
  font: inherit;
  color: var(--fg);
  transition: border-color 0.4s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--fg); }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: 1px solid currentColor;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.btn:hover { background: var(--fg); color: var(--bg); }
.theme-dark .btn:hover { background: var(--white); color: var(--black); }

.form__status {
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  color: var(--muted);
  min-height: 1.2em;
}
.form__status.is-error { color: #c0392b; }
.form__status.is-success { color: var(--fg); }
.form .btn[disabled] { opacity: 0.5; cursor: progress; }

/* Spam trap: out of the layout and out of reach, but still in the DOM. */
.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------------------------------------------------------
   14. PAGE HEADER (interior pages)
   ------------------------------------------------------------- */
.page-head {
  padding-top: clamp(7rem, 5rem + 8vw, 12rem);
  padding-bottom: var(--space-l);
}
.page-head__title {
  font-size: var(--display-sm);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------
   14b. LEGAL (privacy policy)
   Both languages are in the page; the one matching <html lang>
   (set by i18n.js) is shown. Without JS: English.
   ------------------------------------------------------------- */
html[lang="it"] .legal[lang="en"],
html:not([lang="it"]) .legal[lang="it"] { display: none; }

.legal {
  max-width: 72ch;
  line-height: 1.65;
}
.legal h2 {
  margin-top: var(--space-l);
  margin-bottom: var(--space-xs);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.legal h3 {
  margin-top: var(--space-m);
  margin-bottom: var(--space-2xs);
  font-size: var(--step-0);
  font-weight: 600;
}
.legal p + p,
.legal ul + p,
.legal p + ul { margin-top: var(--space-xs); }
.legal ul {
  padding-left: 1.2em;
  list-style: disc;
}
.legal li + li { margin-top: var(--space-2xs); }
.legal a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.legal__updated {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form__note {
  font-size: var(--step--1);
  color: var(--muted);
}
.form__note a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* -------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------- */
.footer {
  padding-block: var(--space-xl) var(--space-l);
}
.footer__cta {
  font-size: var(--display-sm);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  display: inline-block;
}
.footer__cta:hover { color: var(--muted); }
.footer__bottom {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-s);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Wraps on phones: four items no longer fit one line at 320px. */
.footer__socials { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); }

/* -------------------------------------------------------------
   16. CUSTOM CURSOR (desktop only)
   ------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--white);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 300;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), opacity 0.3s;
  will-change: transform;
}
.cursor--label {
  width: 76px; height: 76px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  color: var(--black);
  background: var(--white);
  mix-blend-mode: normal;
}
/* About timeline: the dot becomes a small round picture of the role. */
.cursor--image {
  width: 120px; height: 120px;
  background-color: var(--gray-11);
  background-position: center;
  background-size: cover;
  mix-blend-mode: normal;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 8px 24px rgba(0, 0, 0, 0.18);
  /* Chrome and Safari cross-fade between pictures; others swap instantly. */
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), opacity 0.3s, background-image 0.35s ease;
}
.cursor-ring.is-image .cursor-ring__shape { opacity: 0; transform: scale(1.6); }
.cursor__text { opacity: 0; transition: opacity 0.3s; }
.cursor--label .cursor__text { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* A second, wider and translucent ring trailing the dot. The position lives on
   the outer element (written by JS every frame) and the scale on the inner one,
   so the click animation can never fight the cursor tracking. */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  pointer-events: none;
  z-index: 299;
  /* Same trick as the dot: difference blending keeps it readable on the white
     sections and the black ones without needing to know which is underneath. */
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: transform;
}

.cursor-ring__shape {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

/* Click: contract inward and thin out, then ease back to rest. */
.cursor-ring__shape.is-pulsing { animation: cursorPulse 0.55s var(--ease-out); }

@keyframes cursorPulse {
  0%   { transform: scale(1);    opacity: 1; }
  30%  { transform: scale(0.55); opacity: 0.4; }
  100% { transform: scale(1);    opacity: 1; }
}

/* Out of the way while the dot is carrying a "View" / "Say hi" label. */
.cursor-ring.is-label .cursor-ring__shape { opacity: 0; transform: scale(1.5); }
.cursor-ring.is-hidden { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-ring { display: none; }
}

/* -------------------------------------------------------------
   17. SCROLL REVEAL (base states; JS adds .is-in)
   ------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: transform, opacity;
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal-img] { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-io); }
[data-reveal-img].is-in { clip-path: inset(0 0 0 0); }

/* Word-by-word "self-writing" text reveal (JS splits the copy into .word).
   Works on desktop and mobile: the cascade starts when the block scrolls in. */
[data-reveal-text] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(5px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}
[data-reveal-text].is-in .word {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Line-by-line text reveal */
.reveal-lines .line { overflow: hidden; }
.reveal-lines .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-io);
}
.reveal-lines.is-in .line > span { transform: translateY(0); }
.reveal-lines.is-in .line:nth-child(2) > span { transition-delay: 0.08s; }
.reveal-lines.is-in .line:nth-child(3) > span { transition-delay: 0.16s; }
.reveal-lines.is-in .line:nth-child(4) > span { transition-delay: 0.24s; }

/* -------------------------------------------------------------
   18. REDUCED MOTION
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__media img { animation: none; transform: scale(1.02); }
  [data-reveal],
  .reveal-lines .line > span,
  [data-reveal-text] .word,
  [data-reveal-img] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .cursor { display: none !important; }
}
