/* ============ Fonts ============ */
@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/anton.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}

/* Public Sans via Google Fonts (loaded in <head>) */

/* ============ Reset / base ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Public Sans", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Custom cursor: the heart emblem, sized close to a real cursor. 2x first
     for retina, then 1x, then auto. Hotspot ~ top-centre of the emblem. */
  cursor: url("../assets/logo/cursor-logo-40.png") 6 1,
    url("../assets/logo/cursor-logo-20.png") 3 1,
    auto;
}

/* Site-wide iOS safe-area: on mobile, keep page-bottom content clear of
   Safari's floating toolbar / the home indicator. Resolves to 0 elsewhere. */
@media (max-width: 820px) {
  body:not(.home) {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

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

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

/* ============ Tokens ============ */
:root {
  --orange: #ff651a;
  --white: #ffffff;
  --black: #000000;
  --bg: var(--white);
  --ink: var(--black);
  --maxw: 1366px;
  --nav-h: 68px;
  /* fixed nav rendered height (padding + logo) */
}

/* Page-level colour schemes. The NAV BAR is the opposite colour of the page;
   nav text/icons stay black always. */
.page-orange {
  --bg: var(--orange);
  --ink: var(--black);
  --nav-bar: var(--white);
  --nav-hover: var(--orange);
}

.page-white {
  --bg: var(--white);
  --ink: var(--black);
  --nav-bar: var(--orange);
  --nav-hover: var(--white);
}

h1,
h2,
h3,
.display {
  font-family: "Anton", "Public Sans", sans-serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Consistent H1 size sitewide (index hero is a separate .hero__title) */
body:not(.home) h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
}

/* Centre-align body text sitewide, except the home page */
body:not(.home) .project__text,
body:not(.home) .page-hero__body,
body:not(.home) .contact__panel {
  text-align: center;
}

/* Left-justify body paragraphs everywhere EXCEPT the About page (titles stay
   centred via the rule above; only the <p> justification changes). The 42ch
   blocks hug the left so left-aligned text doesn't float mid-column. */
body:not(.home):not(.about-page) .project__text p,
body:not(.home):not(.about-page) .page-hero__body p,
body:not(.home):not(.about-page) .contact__intro p {
  text-align: left;
}

body:not(.home):not(.about-page) .project__text p {
  margin-left: 0;
  margin-right: auto;
}

/* Left-align headings on the same pages (About stays centred). Covers the
   portfolio hero title, project detail titles, and the contact title. */
body:not(.home):not(.about-page) .project__text h1,
body:not(.home):not(.about-page) .page-hero__title,
body:not(.home):not(.about-page) .contact__panel h1 {
  text-align: left;
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--nav-bar);
  color: var(--black);
  transition: background 0.4s ease;
}

.nav__logo {
  display: flex;
  align-items: center;
  height: 44px;
}

.nav__logo img {
  height: 100%;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.25s ease;
}

/* Hover: words take the opposite of the nav bar colour
   (white bar -> orange words, orange bar -> white words). */
.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--nav-hover, var(--orange));
}

.nav__burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--black);
}

.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Burger -> X when the overlay menu is open (bar centres are 7px apart) */
body.menu-open .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .nav__burger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ MENU trigger (home page) ============ */
.home-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.menu-trigger {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--black);
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  /* Rendered WIDTH tracks the vertical title's font-size (its horizontal
     footprint) so title and MENU read the same width across screens. */
  font-size: clamp(0.95rem, min(3.5vw, calc(var(--app-vh, 100vh) * 0.0265)), 2.9rem);
  padding: 0;
}

.menu-trigger:hover {
  color: var(--white);
}

/* ============ Frosted overlay menu ============ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: rgba(255, 101, 26, 0.25);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.overlay a {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--black);
  line-height: 1;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.overlay.open a {
  opacity: 1;
  transform: none;
}

.overlay.open a:nth-child(2) {
  transition-delay: 0.06s;
}

.overlay.open a:nth-child(3) {
  transition-delay: 0.12s;
}

.overlay.open a:nth-child(4) {
  transition-delay: 0.18s;
}

.overlay a:hover {
  color: var(--white);
}

.overlay__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: "Anton", sans-serif;
  font-size: 2rem;
  color: var(--black);
  line-height: 1;
}

body.menu-open {
  overflow: hidden;
}

/* ============ Layout ============ */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 2rem;
}

/* Split: colour panel + full-bleed image, 50/50 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.split__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero (home) — locked to one viewport, no scroll */
body.home {
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  height: var(--app-vh, 100dvh);
}

.home-hero {
  min-height: 100vh;
  height: 100svh;
  height: 100dvh;
  height: var(--app-vh, 100dvh);
}

.home-title {
  max-height: 100%;
  min-height: 0;
}

.hero__title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  /* Horizontal footprint = font-size. Height-bounded (5.2vh) so the long
     vertical string never forces scroll; MENU below is sized to match this
     footprint's width. */
  font-size: clamp(2.4rem, min(9vw, calc(var(--app-vh, 100vh) * 0.068)), 7.5rem);
  color: var(--black);
}

/* Generic page hero title */
.page-hero__title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  text-align: center;
}

.page-hero__body {
  max-width: 46ch;
  margin: 2rem auto 0;
  font-size: 1.05rem;
  text-align: center;
}

.tag {
  margin-top: 1.5rem;
  font-weight: 500;
}

/* About — half/half split: full-bleed image left, centred text right, no scroll */
.about-split {
  min-height: 100vh;
  /*height: 100svh;*/
  grid-template-columns: 2fr 3fr;
}

/* Lock to one viewport on desktop (image touches nav, bottom, left; no scroll).
   Mobile stacks and scrolls naturally (handled by the base .split rules). */
/* @media (min-width: 821px) {
  body.about-page {
    overflow: hidden;
    height: 100vh;
    height: 100svh;
  }
}*/

/* Balanced padding so the flex-centred text sits at the true viewport middle
   rather than being pushed down by a heavy top pad. A small top bias offsets
   the fixed nav overlapping the top, so it reads as centred in the visible area. */
.about-split .split__panel {
  padding: calc(2rem + var(--nav-h) / 2) 2rem 2rem;
}

/* Shift the focal point right so the person (off-centre to the right) stays
   centred in the tall cover-cropped media column. */
.about-split .split__media img {
  padding-top: var(--nav-h);
  object-position: 95% center;
}

/* Mobile: raise the image focal point as well as holding the rightward shift. */
@media (max-width: 820px) {
  .about-split .split__media img {
    object-position: 64% 15%;
  }
}

.about__inner {
  justify-self: center;
  max-width: 800px;
  text-align: center;
}

.about__inner h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 2.5rem;
}

.about__inner p {
  margin-bottom: 1.4rem;
  font-size: 1.1rem;
}

/* Portfolio grid */
.port-section {
  background: var(--white);
  color: var(--black);
}

.port-section.wrap {
  max-width: none;
  padding-inline: 0;
}

.port-section .port-grid {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 2rem;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 6rem 0;
  align-content: start;
  min-height: 640px;
  /* fixed so pages with longer text don't shift the pager */
}

.port-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center center;
}

/* Tornabuoni thumbnails — crop onto JUST the bag, drop the title */
.port-card img.zoom-bag {
  object-position: center 62%;
}

/* MVM thumbnail — crop inside the polaroid border to a clean square */
.port-card img.zoom-mvm {
  object-position: center 38%;
}

/* Per-thumbnail focal tweaks */
.port-card img.focus-top {
  object-position: center 10%;
}

/* Beauty by Soppi: focal point 40% to the left (50% -> 10%) */
.port-card img.focus-soppi {
  object-position: 10% center;
}

/* Selin Mag: show top-right text */
.port-card img.focus-down {
  object-position: center 85%;
}

/* NZ Bride & Groom: centre the people */
.port-card h3 {
  font-size: 2.1rem;
  margin: 1rem 0 0.3rem;
}

.port-card .loc {
  font-size: 0.95rem;
}

.port-card.is-link:hover h3 {
  color: var(--orange);
}

/* Clickable cards: smooth zoom-OUT on hover (text colour change kept above) */
.port-card.is-link {
  overflow: hidden;
}

.port-card.is-link img {
  transition: transform 0.5s ease;
}

.port-card.is-link:hover img {
  transform: scale(0.93);
}

/* Portfolio pagination — a page IS the grid; active shows it as a grid */
.port-page {
  display: none;
}

.port-page.active {
  display: grid;
  animation: portFade 0.5s ease both;
}

@keyframes portFade {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.port-card {
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.port-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0 5rem;
}

.port-pager button {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.3rem;
  color: var(--black);
}

.port-pager button:disabled {
  opacity: 0.3;
  cursor: default;
}

.port-pager .count {
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Project detail: text left, hero image right */
.project {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 4rem;
  min-height: 100vh;
  align-items: start;
  padding: 7rem 0 6rem;
}

.project--hero {
  align-items: center;
  padding: 6rem 0;
}

.project__text h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
}

.project__text p {
  max-width: 42ch;
  margin: 0 auto 1.2rem;
}

.project__hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project__hero--tall {
  max-width: 760px;
  justify-self: center;
}

/* Tornabuoni large hero: natural aspect, ~2/3 width, resizes gracefully */
.project__hero--big {
  align-self: center;
}

.project__hero--big img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

/* Tornabuoni page 1: text left ~1/5, hero 4/5 flush to viewport right edge,
   clear of the fixed nav on top and the viewport bottom */
.torna-page1 {
  grid-template-columns: 1fr 4fr;
  align-items: center;
  min-height: 100vh;
  padding: 0;
  gap: 3rem;
}

.torna-page1 .project__hero--big {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* break out of .wrap's max-width + 2rem padding to the true right edge:
     gutter beyond wrap = max(0,(100vw-maxw)/2) + 2rem padding */
  margin-right: calc(-1 * (max(0px, (100vw - var(--maxw)) / 2) + 2rem));
  padding: calc(var(--nav-h) + 3vh) 0 3vh;
  box-sizing: border-box;
}

.torna-page1 .project__hero--big img {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: cover;
  object-position: center;
}

/* ============ Tornabuoni project page 2: art-directed asymmetric scatter ====
   Same explicit-span technique as Alpha60. 12-col track, fine auto-rows; each
   image placed by grid-column / grid-row spans so every item stays inside the
   grid (no translate/overflow). Two bands: colour+B&W editorial row on top,
   python-leather product cluster below. */
.torna-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(24, 3.6vh);
  gap: 0 2rem;
  min-height: 100vh;
  align-content: center;
  padding: 4vh 0;
  box-sizing: border-box;
}

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

/* Images that must show their true rectangle (no crop) */
.tg-1,
.tg-3,
.tg-4 {
  object-fit: contain;
}

/* --- Top band (rows 1-12): 1, 2, 3 side by side; 2 biggest; 1 ~ 3 --- */
.tg-1 {
  grid-column: 1 / 5;
  grid-row: 3 / 8;
}

/* colour booth landscape, larger */
.tg-2 {
  grid-column: 5 / 9;
  grid-row: 2 / 10;
}

/* colour booth, biggest of the row */
.tg-3 {
  grid-column: 9 / 13;
  grid-row: 3 / 8;
}

/* large B&W wide, similar to 1 */

/* --- Bottom band (rows 14-24): 5,6,7,8 uniform left group; 4 larger on the right --- */
.tg-5 {
  grid-column: 1 / 3;
  grid-row: 15 / 24;
}

/* python bag at pole + logo */
.tg-6 {
  grid-column: 3 / 5;
  grid-row: 15 / 24;
}

/* storefront python luggage + logo */
.tg-7 {
  grid-column: 5 / 7;
  grid-row: 15 / 24;
}

/* python bags closeup */
.tg-8 {
  grid-column: 7 / 9;
  grid-row: 15 / 24;
}

/* archway python luggage + logo */
.tg-4 {
  grid-column: 10 / 13;
  grid-row: 12 / 25;
  position: relative;
  right: 45px;
}

/* three olive-tree shots, larger, right; nudged 45px left */

/* --- Tornabuoni mobile: stack both pages, preserve every image's shape --- */
@media (max-width: 820px) {

  /* Page 1 hero: single column, drop the right-edge breakout, show full image */
  .torna-page1 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
    padding: calc(var(--nav-h) + 2rem) 0 2rem;
  }

  .torna-page1 .project__hero--big {
    margin-right: 0;
    padding: 0;
    justify-content: center;
  }

  .torna-page1 .project__hero--big img {
    max-height: none;
    object-fit: contain;
  }

  /* Page 2 scatter: collapse the 12-col grid to a single stacked column,
     each image at its natural aspect (no crop) */
  .torna-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    grid-template-columns: none;
    grid-template-rows: none;
    min-height: 0;
    padding: 0 0 3rem;
  }

  .torna-grid img,
  .tg-1,
  .tg-2,
  .tg-3,
  .tg-4,
  .tg-5,
  .tg-6,
  .tg-7,
  .tg-8 {
    grid-column: auto;
    grid-row: auto;
    position: static;
    right: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}


/* ============ MVM Argento project: text left, 3-column scatter right ========
   Same explicit-span technique as Alpha60. 12-col track, fine auto-rows, each
   image placed by grid-column / grid-row spans; items stay inside the grid. */
.mvm-proj {
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: 3rem;
  align-items: start;
  padding: 8rem 0 6rem;
}

.mvm-proj__text {
  align-self: start;
  margin-top: 5rem;
}

.mvm-proj__text h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
}

.mvm-proj__text p {
  max-width: 42ch;
  margin: 0 auto 1.2rem;
}

.mvm-grid {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.mvm-grid__col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mvm-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Column widths follow the mockup: large hero, tall middle pair, narrow jewellery */
.mvm-grid__col--1 {
  flex: 2.1;
  margin-top: 6rem;
}

/* laughing hero, dropped down */
.mvm-grid__col--2 {
  flex: 2.3;
}

/* two B&W portraits, starts highest */
.mvm-grid__col--3 {
  flex: 1.25;
  margin-top: 3rem;
}

/* three jewellery shots, narrow */

@media (max-width: 820px) {
  .mvm-proj {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 7rem 0 4rem;
  }

  .mvm-proj__text {
    margin-top: 0;
  }

  .mvm-proj__text p {
    max-width: 100%;
  }

  /* Mobile: stack the columns full-width and reset desktop staggers. */
  .mvm-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .mvm-grid__col {
    flex: none;
    width: 100%;
    margin-top: 0;
  }

  /* B&W campaign shots (m1, m2, m4) — prominent, full-bleed. */
  .mvm-grid__col--1,
  .mvm-grid__col--2 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .mvm-grid__col--1 img,
  .mvm-grid__col--2 img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Jewellery trio (j1, j2, j3) — compact 3-up mosaic collage row. */
  .mvm-grid__col--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    align-items: start;
  }

  .mvm-grid__col--3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* Contact / form */
.contact__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(2rem + var(--nav-h)) 4rem 2rem;
}

.contact__panel h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.contact__intro {
  margin-bottom: 2.5rem;
}

.form {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 480px;
  text-align: left;
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font: inherit;
  color: var(--black);
}

.field textarea {
  border-radius: 20px;
  resize: vertical;
  min-height: 140px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.btn-submit {
  justify-self: center;
  margin-top: 0.5rem;
  background: var(--black);
  color: var(--white);
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.3rem;
  padding: 0.9rem 2.5rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.btn-submit:hover {
  opacity: 0.85;
}

.form__status {
  font-size: 0.95rem;
  text-align: center;
}

/* ============ Contact page: hero-style (like Portfolio), scrollable,
   full image shown rather than cropped ============ */
.contact-page .split {
  min-height: 100vh;
}

.contact-page .split__media {
  padding: 0;
  background: var(--orange);
}

.contact-page .split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fill the half edge-to-edge like Portfolio */
  object-position: center 25%;
  /* bias up so the head stays in frame */
}

/* ============ Rembrandt project: 1/3 text, 2/3 image collage ============ */
.rembrandt {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  min-height: 100vh;
  align-items: center;
  padding: 6rem 0;
}

.rembrandt__text {
  align-self: start;
  margin-top: 6rem;
}

.rembrandt__text h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
}

.rembrandt__text p {
  max-width: 42ch;
  margin: 0 auto 1.2rem;
}

/* Collage: 12-col grid, staggered groups left->right matching the mockup */
.rembrandt__collage {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.rembrandt__collage .col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

/* Column widths roughly follow the mockup proportions */
.rembrandt__col-a {
  flex: 1.1;
}

.rembrandt__col-b {
  flex: 2.4;
}

.rembrandt__col-c {
  flex: 1.5;
}

.rembrandt__col-d {
  flex: 1.5;
}

/* Stagger: left pair sits lower; centre starts at top; right stacks drop to meet */
.rembrandt__col-a {
  margin-top: 5rem;
}

.rembrandt__col-c {
  margin-top: 2.5rem;
}

.rembrandt__col-d {
  margin-top: 2.5rem;
}

@media (max-width: 820px) {
  .rembrandt {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 7rem 0 4rem;
  }

  .rembrandt__text {
    margin-top: 0;
  }

  /* Mosaic / masonry stack on mobile — promote the nested column images into a
     single 2-column masonry so tiles keep their aspect ratio and interlock. */
  .rembrandt__collage {
    display: block;
    column-count: 2;
    column-gap: 0.5rem;
    orphans: 1;
    widows: 1;
  }

  .rembrandt__collage .col {
    display: contents;
    margin-top: 0 !important;
  }

  .rembrandt__collage img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0 0 0.5rem;
    break-inside: avoid;
  }
}

/* ============ Buoncore Knits collage — clean uniform grids ============ */
.buoncore__collage {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.buoncore__group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.buoncore__collage img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.buoncore__group--left {
  flex: 1.6;
}

.buoncore__group--right {
  flex: 1.2;
  align-content: start;
}

@media (max-width: 820px) {
  .buoncore__collage {
    flex-direction: column;
  }
}

/* ============ Alpha60 project: text left, art-directed photo grid right ======
   Explicit-span CSS Grid (the standard for a fixed, designed irregular layout).
   A 12-col track with fine auto-rows; each image is placed by explicit
   grid-column / grid-row spans and lifted with margin-top for the staggered
   look. Every item stays INSIDE the grid — no overflow/translate tricks. */
.alpha {
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: 3rem;
  align-items: start;
  padding: 8rem 0 6rem;
}

.alpha__text {
  align-self: start;
  margin-top: 5rem;
}

.alpha__text h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
}

.alpha__text p {
  max-width: 42ch;
  margin: 0 auto 1.2rem;
}

.alpha__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 1.5rem;
  column-gap: 1.5rem;
}

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

/* --- Top band --- */
/* Big top-left hero (socks + ALPHA60 text) */
.alpha__grid .a1 {
  grid-column: 1 / 4;
  grid-row: 1 / 15;
}

/* Trio of small stairwell portraits, centred lower against the hero */
.alpha__grid .a4 {
  grid-column: 4 / 6;
  grid-row: 6 / 15;
}

.alpha__grid .a5 {
  grid-column: 6 / 8;
  grid-row: 6 / 15;
}

.alpha__grid .a6 {
  grid-column: 8 / 10;
  grid-row: 6 / 15;
}

/* Far-right tall, nudged down */
.alpha__grid .a7 {
  grid-column: 10 / 13;
  grid-row: 4 / 20;
}

/* --- Lower band --- */
/* Two landscapes stacked, far left */
.alpha__grid .a2 {
  grid-column: 1 / 4;
  grid-row: 16 / 25;
}

.alpha__grid .a3 {
  grid-column: 1 / 4;
  grid-row: 26 / 36;
}

/* Middle column: two small portraits stacked */
.alpha__grid .a9 {
  grid-column: 4 / 6;
  grid-row: 16 / 27;
}

.alpha__grid .a8 {
  grid-column: 4 / 6;
  grid-row: 28 / 40;
}

/* Centre-right large portrait (navy cardigan on steps) */
.alpha__grid .a10 {
  grid-column: 6 / 10;
  grid-row: 16 / 38;
}

/* Far-right bottom (grey coat, fitting room) */
.alpha__grid .a11 {
  grid-column: 10 / 13;
  grid-row: 21 / 34;
}

@media (max-width: 820px) {
  .alpha {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 7rem 0 4rem;
  }

  .alpha__text {
    margin-top: 0;
  }

  .alpha__text p {
    max-width: 100%;
  }

  /* Mosaic / masonry stack on mobile — tiles keep their aspect ratio and
     flow into 2 columns, no gaps or letterboxing. */
  .alpha__grid {
    display: block;
    column-count: 2;
    column-gap: 0.5rem;
    orphans: 1;
    widows: 1;
  }

  .alpha__grid img {
    grid-column: auto !important;
    grid-row: auto !important;
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: cover;
    margin: 0 0 0.5rem;
    break-inside: avoid;
  }
}

/* ============ Riiki Reid / Warner Music ============ */
.riiki {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  gap: 2.5rem;
  min-height: 100vh;
  padding: 6rem 0;
}

.riiki__text {
  align-self: center;
}

.riiki__text .link {
  display: inline-block;
  word-break: break-word;
  transition: color 0.2s ease;
}

.riiki__text .link:hover,
.riiki__text .link:focus-visible {
  color: var(--orange);
}

/* Fully-pinned explicit grid: every item fixed on BOTH axes, so placement
   is deterministic (no auto-flow). 12 cols x fixed row unit; images cover
   their pinned cell. Mirrors the mockup's two overlapping bands. */
.riiki__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 13px;
  column-gap: 10px;
  align-items: stretch;
}

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

/* Band A — top cluster */
.riiki__grid .r1 {
  grid-column: 5 / 8;
  grid-row: 2 / 11;
}

.riiki__grid .r2 {
  grid-column: 4 / 8;
  grid-row: 12 / 24;
}

.riiki__grid .r5 {
  grid-column: 8 / 10;
  grid-row: 8 / 24;
}

.riiki__grid .r6 {
  grid-column: 10 / 13;
  grid-row: 7 / 15;
}

.riiki__grid .r8 {
  grid-column: 10 / 13;
  grid-row: 16 / 24;
}

/* Band B — lower cluster */
.riiki__grid .r3 {
  grid-column: 1 / 4;
  grid-row: 25 / 43;
}

.riiki__grid .r4 {
  grid-column: 4 / 9;
  grid-row: 25 / 40;
}

.riiki__grid .r9 {
  grid-column: 9 / 13;
  grid-row: 25 / 46;
}

.riiki__grid .r10 {
  grid-column: 4 / 7;
  grid-row: 41 / 51;
}

.riiki__grid .r7 {
  grid-column: 7 / 9;
  grid-row: 41 / 51;
}

@media (min-width: 821px) and (max-width: 1200px) {
  .riiki {
    grid-template-columns: 1fr 1.2fr;
    gap: 1.75rem;
  }
}

@media (max-width: 820px) {
  .riiki {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 7rem 0 4rem;
    gap: 2rem;
  }

  .riiki__text p {
    max-width: 100%;
  }

  /* mosaic / masonry stack on mobile */
  .riiki__grid {
    display: block;
    column-count: 2;
    column-gap: 0.5rem;
    orphans: 1;
    widows: 1;
  }

  .riiki__grid img {
    grid-column: auto !important;
    grid-row: auto !important;
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: cover;
    margin: 0 0 0.5rem;
    break-inside: avoid;
  }
}

/* ============ Sub Rosa Zine ============ */
.subrosa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 100vh;
  padding: 6rem 0;
}

.subrosa__text {
  align-self: center;
}

.subrosa__media {
  align-self: center;
}

.subrosa__media video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 820px) {
  .subrosa {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 7rem 0 6rem;
    gap: 2rem;
  }

  .subrosa__media {
    order: 2;
  }

  .subrosa__text p {
    max-width: 100%;
  }
}

/* ============ Selin Magazine ============ */
.selin {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  gap: 2.5rem;
  min-height: 100vh;
  padding: 6rem 0;
}

.selin__text {
  align-self: center;
}

/* Fully-pinned explicit grid — every item fixed on both axes (deterministic,
   no auto-flow). 12 cols x fixed row unit; images cover their pinned cell.
   Mirrors the mockup's top band (4) + lower band (6). */
.selin__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 11px;
  column-gap: 10px;
  align-items: stretch;
}

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

/* Top band */
.selin__grid .s1 {
  grid-column: 3 / 5;
  grid-row: 12 / 25;
}

/* green shrug, small */
.selin__grid .s5 {
  grid-column: 5 / 7;
  grid-row: 9 / 25;
}

/* octagon softbox, tall */
.selin__grid .s6 {
  grid-column: 7 / 10;
  grid-row: 4 / 25;
}

/* navy blazer hero, highest */
.selin__grid .s9 {
  grid-column: 10 / 13;
  grid-row: 8 / 30;
}

/* blue backdrop, tall far-right */

/* Lower band */
.selin__grid .s2 {
  grid-column: 2 / 4;
  grid-row: 26 / 36;
}

/* legs + green bag */
.selin__grid .s4 {
  grid-column: 4 / 8;
  grid-row: 26 / 56;
}

/* B&W checkerboard, centre hero */
.selin__grid .s7 {
  grid-column: 8 / 10;
  grid-row: 26 / 36;
}

/* cream bows, landscape */
.selin__grid .s3 {
  grid-column: 2 / 4;
  grid-row: 37 / 51;
}

/* orange backdrop, lower-left tall */
.selin__grid .s8 {
  grid-column: 8 / 10;
  grid-row: 37 / 52;
}

/* SELIN wordmark, green bag */
.selin__grid .s10 {
  grid-column: 10 / 12;
  grid-row: 31 / 45;
}

/* SELIN wordmark, close-up */

@media (min-width: 821px) and (max-width: 1200px) {
  .selin {
    grid-template-columns: 1fr 1.2fr;
    gap: 1.75rem;
  }
}

@media (max-width: 820px) {
  .selin {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 7rem 0 4rem;
    gap: 2rem;
  }

  .selin__text p {
    max-width: 100%;
  }

  /* 2-col mosaic on mobile — grid guarantees the top row shares one top edge */
  .selin__grid {
    display: block;
    column-count: 2;
    column-gap: 0.5rem;
    orphans: 1;
    widows: 1;
  }

  .selin__grid img {
    grid-column: auto !important;
    grid-row: auto !important;
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: cover;
    margin: 0 0 0.5rem;
    break-inside: avoid;
  }
}

/* ============ 404 ============ */
.notfound {
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

.notfound__top {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* "4 [logo-as-0] 4" — digits and logo share a height so they read as 404 */
.notfound__404 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

.notfound__digit {
  font-weight: 700;
  line-height: 1;
  color: var(--black);
  font-size: clamp(5rem, 22vh, 16rem);
}

.notfound__logo {
  display: block;
  height: clamp(5rem, 22vh, 16rem);
}

.notfound__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.notfound__logo:hover img {
  transform: scale(1.04);
}

.notfound__bottom {
  background: var(--orange);
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
}

.notfound__code {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
}

.notfound__hint {
  max-width: 32ch;
  font-size: 1rem;
  line-height: 1.6;
}

/* ============ Footer ============ */
.footer {
  background: var(--orange);
  color: var(--black);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  /* matched to the nav bar */
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social svg {
  width: 22px;
  height: 22px;
}

.footer__logo {
  justify-self: center;
  height: 36px;
}

.footer__logo img {
  height: 100%;
  width: auto;
}

.footer__email {
  justify-self: end;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
}

/* ============ Responsive ============ */
@media (max-width: 820px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: block;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split__media {
    min-height: 50vh;
    order: -1;
  }

  /* Home hero on mobile: 2/3 orange title block, 1/3 image at the BOTTOM */
  .home-hero {
    grid-template-rows: 2fr 1fr;
    height: 100svh;
  }

  .home-hero .split__panel {
    grid-row: 1;
    min-height: 0;
  }

  .home-hero .split__media {
    grid-row: 2;
    order: 0;
    min-height: 0;
  }

  .about {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 6rem 1.5rem;
  }

  .about__inner {
    grid-column: 1;
  }

  .hero__title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .port-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 7rem 0 4rem;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 7rem 0 4rem;
  }

  .project--hero {
    padding: 7rem 0 4rem;
  }

  .project__hero--tall {
    max-width: 100%;
  }

  .project__hero--big img {
    max-height: 70vh;
  }

  /* Tornabuoni page 1: stack and centre the hero on mobile */
  .torna-page1 {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 7rem 0 4rem;
    gap: 2rem;
  }

  .torna-page1 .project__hero--big {
    margin-right: 0;
    justify-content: center;
    padding: 0;
  }

  .torna-page1 .project__hero--big img {
    max-height: 70vh;
    object-fit: contain;
  }

  /* Tornabuoni scatter stacks on mobile */
  .torna-grid {
    grid-auto-rows: auto;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }

  .torna-grid .tg {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .torna-grid .tg-3 {
    grid-column: 1 / -1 !important;
  }

  .contact__panel {
    padding: 7rem 1.5rem 3rem;
  }

  .form .row {
    grid-template-columns: 1fr;
  }

  /* Contact on mobile: scroll naturally, form first, image a sensible band below */
  body.contact-page {
    overflow: auto;
    height: auto;
    display: block;
  }

  .contact-page .split {
    display: grid;
    grid-template-columns: 1fr;
    flex: none;
    height: auto;
    min-height: 0;
  }

  .contact-page .split__media {
    order: 1;
    min-height: 0;
    padding: 1.5rem;
  }

  .contact-page .split__media img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer__email,
  .footer__logo,
  .footer__social {
    justify-self: center;
  }
}

/* ===== Medium screens (laptops): between the mobile stack and roomy desktop ===== */
@media (min-width: 821px) and (max-width: 1200px) {

  /* Index: largest vertical title that still fits one viewport (no-scroll).
     Matching the full "MENU" width would make the 19-glyph vertical title
     taller than a medium viewport, so this is capped by height. */
  .hero__title {
    font-size: clamp(2.4rem, min(12vw, 6.4vh), 4.6rem);
  }

  /* Contact: scale the panel down so the form fits without internal scroll */
  .contact__panel {
    padding: calc(2rem + var(--nav-h)) 2.5rem 2rem;
    gap: 0;
  }

  .contact__panel h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 0.75rem;
  }

  .contact__intro {
    margin-bottom: 1.5rem;
  }

  .contact__intro p {
    font-size: 0.95rem;
  }

  .contact-page .form {
    gap: 0.9rem;
    max-width: 420px;
  }

  .contact-page .field input,
  .contact-page .field textarea {
    padding: 0.7rem 1.1rem;
  }

  .contact-page .field textarea {
    min-height: 100px;
  }

  .contact-page .btn-submit {
    font-size: 1.1rem;
    padding: 0.7rem 2rem;
  }
}

/* Short viewports (any width ≥ 821): the contact form is height-constrained,
   so compact it whenever the viewport is short, not just on narrow laptops.
   Threshold set to 1000px to catch all common laptop heights. */
@media (min-width: 821px) and (max-height: 1000px) {
  .contact__panel {
    padding: calc(1.5rem + var(--nav-h)) 2.5rem 1.5rem;
    gap: 0;
  }

  .contact__panel h1 {
    font-size: clamp(2rem, 4vh, 3rem);
    margin-bottom: 0.6rem;
  }

  .contact__intro {
    margin-bottom: 1.2rem;
  }

  .contact__intro p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .contact-page .form {
    gap: 0.75rem;
    max-width: 420px;
  }

  .contact-page .field label {
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
  }

  .contact-page .field input,
  .contact-page .field textarea {
    padding: 0.6rem 1.1rem;
  }

  .contact-page .field textarea {
    min-height: 80px;
  }

  .contact-page .btn-submit {
    font-size: 1.05rem;
    padding: 0.6rem 1.8rem;
  }
}

@media (max-width: 480px) {
  .port-grid {
    grid-template-columns: 1fr;
  }
}