/* Shared colors/fonts/ease/mx come from /tokens.css. Only this page's
   own overrides live here.

   The topnav capsule, back link and heading scale are the project detail
   page's, copied rather than shared: a designer page and a project page
   should feel like the same site, but /project.css belongs to a
   CSV-driven page and must stay free to change with it. */
:root {
  --sp: clamp(64px, 12vw, 160px);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ombra);
  color: var(--luce);
  font-family: var(--text);
  padding-top: 116px;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 900px) {
  body {
    padding-top: 96px;
  }
}
.wrap {
  max-width: 2200px;
  margin: 0 auto;
  padding: 0 var(--mx);
  width: 100%;
}

/* ── TOP NAV ── */
/* The switcher and Home are one capsule, not two controls that happen to
   sit near each other: they are a single "leave this page" cluster. The
   back link gets its own matching surface on the far side. */
.designer-topnav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px var(--mx) 20px;
}
.topnav-actions,
.back-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 9999px;
  font-family: var(--text);
  font-size: 16px;
  font-weight: 500;
  color: var(--luce);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px) saturate(150%) brightness(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(150%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  will-change: backdrop-filter;
}
.topnav-actions {
  gap: 4px;
  padding: 0 6px;
}
.back-link {
  padding: 0 28px;
  white-space: nowrap;
  transition: border-color 200ms var(--ease);
}
.topnav-actions::before,
.back-link::before {
  content: "";
  position: absolute;
  inset: 0 14px auto 14px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(255, 255, 255, 0.5) 55%,
    transparent
  );
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topnav-actions,
  .back-link {
    background: rgba(32, 32, 36, 0.9);
  }
}
@media (hover: hover) {
  .back-link:hover {
    border-color: rgba(255, 255, 255, 0.32);
  }
}
/* Inside the capsule both controls are flat: the glass belongs to the
   capsule, and a surface of their own would draw a pill inside a pill. */
.topnav-actions .lang-btn {
  height: 40px;
  padding: 0 16px;
  border-color: transparent;
  border-radius: 9999px;
  transition: background 200ms var(--ease);
}
@media (hover: hover) {
  .topnav-actions .lang-btn:hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.08);
  }
}
.home-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 9999px;
  font-family: var(--text);
  font-size: 16px;
  font-weight: 500;
  color: var(--luce);
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 200ms var(--ease);
}
@media (hover: hover) {
  .home-pill:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}
.home-pill::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px -3px;
  width: 1px;
  height: auto;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
@media (hover: none) {
  .back-link:hover {
    border-color: rgba(255, 255, 255, 0.16);
  }
  .topnav-actions .lang-btn:hover,
  .home-pill:hover {
    background: none;
  }
}

/* ── HEAD ── */
.designer-head {
  text-align: center;
}
.designer-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oro);
  margin-top: 16px;
}
.designer-title {
  font-family: var(--display-xl);
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-size: clamp(22.8px, 3.6vw, 43.2px);
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(32px, 4vw, 64px);
  border-top: 1px solid var(--grafite);
  border-bottom: 1px solid var(--grafite);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
}
.meta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cenere);
}
.meta-val {
  font-size: 15px;
  margin-top: 6px;
}
.meta-val a {
  color: var(--luce);
  text-decoration: none;
  border-bottom: 1px solid var(--grafite);
  transition: border-color 200ms var(--ease);
}
@media (hover: hover) {
  .meta-val a:hover {
    border-color: var(--luce);
  }
}

/* ── HERO: the person on the left, the piece they made on the right ── */
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  border: 1px solid var(--grafite);
  border-radius: 2px;
  overflow: hidden;
  margin-top: clamp(32px, 5vw, 56px);
}
.hero-portrait,
.hero-product {
  background-size: cover;
  background-position: center;
  background-color: var(--notte);
}
.hero-portrait {
  aspect-ratio: 4 / 5;
}
.hero-product {
  border-left: 1px solid var(--grafite);
}
.frame-placeholder {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grafite);
}
@media (max-width: 900px) {
  .hero-row {
    grid-template-columns: 1fr;
  }
  .hero-product {
    border-left: none;
    border-top: 1px solid var(--grafite);
    aspect-ratio: 4 / 3;
  }
}

.designer-bio {
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.7;
  color: var(--nebbia);
  max-width: 720px;
  margin-top: clamp(32px, 5vw, 56px);
}
.designer-bio p + p {
  margin-top: 1.1em;
}
/* a studio page gives each partner a short section of their own */
.designer-bio h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro);
  margin: clamp(32px, 4vw, 48px) 0 12px;
}

/* ── WORK: a named product with its photos ── */
.designer-work {
  margin-top: clamp(56px, 9vw, 120px);
}
.designer-work-title {
  font-family: var(--display-xl);
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-size: clamp(19.2px, 2.4vw, 33.6px);
  margin-top: 10px;
}
.designer-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 1200px;
}
.designer-work-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
}
@media (max-width: 700px) {
  .designer-work-grid {
    grid-template-columns: 1fr;
  }
}
/* Text beside an image, alternating sides down the page. */
.work-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(32px, 5vw, 72px);
}
.work-row--flip .work-text {
  order: 2;
}
.work-text p {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--nebbia);
}
.work-figure {
  margin: 0;
}
.work-figure img,
.work-pair img,
.work-trio img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.work-pair,
.work-trio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(32px, 5vw, 72px);
}
.work-trio {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .work-row {
    grid-template-columns: 1fr;
  }
  .work-row--flip .work-text {
    order: 0;
  }
}
@media (max-width: 700px) {
  .work-pair,
  .work-trio {
    grid-template-columns: 1fr;
  }
}

/* ── STORY: the bio split across the photos, zig-zagging down the page.
   Same rows as the process section below, but it follows the meta row
   directly, so no rule above it. ── */
.designer-story {
  margin-top: clamp(32px, 5vw, 56px);
}
.designer-story + .designer-bio {
  margin-top: clamp(48px, 8vw, 104px);
}

/* ── PROCESS: how the piece was developed ── */
.designer-process {
  margin-top: clamp(56px, 9vw, 120px);
  border-top: 1px solid var(--grafite);
  padding-top: clamp(48px, 8vw, 104px);
}
.process-photo {
  background-size: cover;
  background-position: center;
  background-color: var(--notte);
  border: 1px solid var(--grafite);
  border-radius: 2px;
}
.process-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-bottom: clamp(48px, 8vw, 104px);
}
.process-row:last-child {
  margin-bottom: 0;
}
.process-row .process-photo {
  aspect-ratio: 3 / 2;
}
/* Portraits and product shots are upright, so they get an upright frame
   in a narrower column; at full width a 4:5 frame is taller than a laptop
   screen. The column order flips with .reverse, so the widths do too. */
.process-row.portrait {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
}
.process-row.portrait.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
}
.process-row.portrait .process-photo {
  aspect-ratio: 4 / 5;
}
/* Alternating sides, so the eye zig-zags down the page instead of
   running one straight column of photos. */
.process-row.reverse .process-photo {
  order: 2;
}
.process-text p {
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.75;
  color: var(--nebbia);
}
.process-text p + p {
  margin-top: 16px;
}
@media (max-width: 900px) {
  .process-row,
  .process-row.reverse,
  .process-row.portrait,
  .process-row.portrait.reverse {
    grid-template-columns: 1fr;
  }
  .process-row.reverse .process-photo {
    order: 0;
  }
}

main.wrap {
  padding-bottom: var(--sp);
}

/* ── MOBILE ──
   The fixed bar measures 104px on a phone while body only reserves 96,
   so it clips the name. Shrinking the pills to a 44px touch target brings
   the bar to 72 and the two numbers back in step. Same correction, same
   values as the project detail page. */
@media (max-width: 900px) {
  body {
    padding-top: 76px;
  }
  .designer-topnav {
    padding: 12px var(--mx);
    gap: 12px;
  }
  .topnav-actions,
  .back-link {
    height: 48px;
    font-size: 15px;
  }
  .back-link {
    padding: 0 20px;
  }
  .topnav-actions {
    gap: 2px;
    padding: 0 2px;
  }
  .topnav-actions .lang-btn {
    height: 44px;
    padding: 0 12px;
  }
  .home-pill {
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
  }
  .home-pill::before {
    inset: 12px auto 12px -2px;
  }
  .meta-row {
    gap: 20px 28px;
    padding: 18px 0;
    margin-top: 28px;
  }
  .designer-bio,
  .process-text p {
    font-size: 17px;
  }
  main.wrap {
    padding-bottom: calc(var(--sp) + env(safe-area-inset-bottom, 0px));
  }
}

@media (hover: none) {
  a,
  button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .back-link:active {
    color: var(--luce);
  }
}

/*
 * Legibility floor: nothing below 12px on a small screen.
 *
 * These labels are set at 10-11px mono, which reads as a quiet register on a
 * desktop and as unreadable on a phone. 12px is the smallest mono size the
 * site already uses elsewhere, so this borrows a value rather than inventing
 * one. Gated on width rather than pointer: it is a typographic scale, and
 * above 900px a tablet shows the desktop composition and keeps its type.
 */
@media (max-width: 900px) {
  .meta-label {
    font-size: 12px;
  }
  .frame-placeholder {
    font-size: 12px;
  }
}

/* Big titles are wide capitals: on phones keep them to ~8% of the
   screen width so long words (MONTERIGGIONI, COLLABORAZIONI) still fit. */
@media (max-width: 600px) {
  .designer-title {
    font-size: min(22.8px, 4.8vw);
  }
  .designer-work-title {
    font-size: min(19.2px, 4.8vw);
  }
}

/* layouts used by pages built from /admin blocks */
.work-row--solo {
  grid-template-columns: 1fr;
}
.work-row--solo .work-text {
  max-width: 760px;
}
.work-figure--wide {
  margin: clamp(32px, 5vw, 72px) 0 0;
}
.work-figure--wide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* 2026-10-29: the main site header sits on top; this page's own row (tabs,
   back link, filters) is a normal row under it */
body {
  padding-top: 80px !important;
}
.designer-topnav {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  z-index: 2;
}

/* 2026-11-09: rows of photos line up. Every photo in a row has the same
   height and is never cropped; widths follow each photo's own shape
   (entry-render.js sets flex-grow to width / height). */
.work-pair,
.work-trio {
  display: flex;
  align-items: flex-start;
}
.work-pair img,
.work-trio img {
  flex: 1 1 0%;
  min-width: 0;
  width: auto;
  height: auto;
}
@media (max-width: 900px) {
  .work-pair,
  .work-trio {
    flex-direction: column;
  }
  .work-pair img,
  .work-trio img {
    flex: none !important;
    width: 100%;
  }
}
