:root {
  --bg: #f2ebe1;              /* same cream as the Fina studio page */
  --fg: #141414;
  --muted: #8d7a6e;
  --line: #ddd1c3;
  --tile: #e7ddcf;
  --accent: #9f2b22;          /* the red of the FINA logo */
  --gutter: clamp(16px, 2.2vw, 32px);
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --hand: 'Caveat', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.u-link { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .2s; }
.u-link:hover { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .brand { font-weight: 500; letter-spacing: -.01em; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a, .site-header .side a { color: var(--fg); opacity: .85; transition: opacity .2s, color .2s; }
.site-header nav a:hover, .site-header .side a:hover { opacity: 1; color: var(--accent); }
.site-header .side { justify-self: end; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- filter ---------- */
.filters {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 18px var(--gutter) 6px;
}
/* Phones: filters become one swipeable row instead of three lines. */
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: 0 0 auto; }
}
.filters button {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px;
  transition: color .2s, border-color .2s, background .2s;
}
.filters button:hover { color: var(--fg); border-color: #444; }
.filters button[aria-pressed="true"] { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.filters .count { opacity: .6; margin-left: 4px; }

/* ---------- contact sheet ---------- */
.sheet {
  display: grid;
  grid-template-columns: repeat(var(--cols, 10), minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px) clamp(10px, 1.1vw, 16px);
  padding: 24px var(--gutter) 24px;
}
/* The grid is the whole first screen: the name below only comes into view on scroll. */
/* First screen: the filters sit right under the main menu, the grid below them; both centred,
   at the grid's own width (home.js sizes it). The name follows straight after. */
#work { display: flex; flex-direction: column; justify-content: flex-start; }
#work .filters, #work .sheet { width: 100%; margin-left: auto; margin-right: auto; }
@media (max-width: 1000px) { .sheet { --cols: 6; } }
@media (max-width: 720px)  { .sheet { --cols: 4; } }
@media (max-width: 480px)  { .sheet { --cols: 3; gap: 22px 12px; } }

.frame { position: relative; display: block; }
.frame[hidden] { display: none; }
.frame .media {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile);
}
.frame .media img, .frame .media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0; transition: opacity .6s ease, filter .45s ease, transform .6s ease;
}
.frame .media .is-loaded { opacity: 1; }
.frame:hover .media img, .frame:hover .media video,
.frame:focus-visible .media img, .frame:focus-visible .media video { filter: none; transform: scale(1.04); }

.frame .cap {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.frame .cap .tag { opacity: 0; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame:hover .cap .tag { opacity: 1; }
.frame .play {
  position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(0,0,0,.35);
}

/* hand-drawn mark on hover */
.frame .mark {
  position: absolute; inset: -14% -12% auto -12%; height: 128%;
  width: 124%; pointer-events: none; overflow: visible; z-index: 2;
}
.frame .mark path {
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 340; opacity: 0;
  transition: stroke-dashoffset .55s cubic-bezier(.6,.1,.3,1), opacity 0s .55s;
}
.frame .note {
  position: absolute; left: 22%; top: calc(100% - 8px); z-index: 3;
  font: 600 24px/1 var(--hand); color: var(--accent);
  text-shadow: 0 1px 8px rgba(242,235,225,.95);
  white-space: nowrap; transform: rotate(-4deg);
  opacity: 0; transition: opacity .25s .2s; pointer-events: none;
}
.frame.edge .note { left: auto; right: 6%; transform: rotate(-4deg); }
@media (max-width: 520px) { .frame .note { font-size: 20px; left: 8%; } .frame.edge .note { left: auto; right: 4%; } }
#work { overflow-x: clip; }

/* Touch screens: one frame at a time is "on" (colour, circle, name), like hover on a computer.
   Tapping another frame moves it there; tapping the "on" frame opens the project (home.js). */
.frame.on .media img, .frame.on .media video { filter: none; transform: scale(1.04); }
.frame.on .mark path { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset .55s cubic-bezier(.6,.1,.3,1); }
.frame.on .note { opacity: 1; }

/* Phones: 3 x 3 = 9 projects on screen; swipe sideways for the rest. */
#work .swipe-hint { display: none; }
@media (max-width: 719px) {
  #work .sheet {
    grid-auto-flow: column; grid-template-rows: repeat(3, auto);
    grid-template-columns: none; grid-auto-columns: calc((100% - 24px) / 3);
    gap: 22px 12px; padding-top: 28px; padding-bottom: 30px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  #work .sheet::-webkit-scrollbar { display: none; }
  #work .frame { scroll-snap-align: start; }
  #work .swipe-hint { display: flex; margin: 0 var(--gutter) 18px; }
  #work .swipe-hint[hidden] { display: none; }
}
@media (hover: hover) {
  .frame:hover .mark path { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset .55s cubic-bezier(.6,.1,.3,1); }
  .frame:hover .note { opacity: 1; }
}

/* ---------- name block ---------- */
.name-block { padding: 6vh var(--gutter) 28px; border-bottom: 1px solid var(--line); }
.name-block h1 {
  font-weight: 500; letter-spacing: -.055em; line-height: .86;
  font-size: clamp(44px, 9vw, 150px);
  margin-left: -.05em; white-space: nowrap;
}
.name-block .row {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 26px; font-size: 15px;
}
.name-block .row span:last-child { color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 11vh, 140px) var(--gutter); }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px; gap: 16px;
}
.section-head h2 { font-weight: 500; font-size: clamp(32px, 4.6vw, 64px); letter-spacing: -.035em; line-height: 1; }
.label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* About: portrait on the left, the text and facts on the right; stacked on phones. */
.about { display: grid; grid-template-columns: clamp(200px, 18vw, 260px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-portrait { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tile); margin-bottom: 10px; }
.about-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(1); }
.about-portrait .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.about-main > .label { margin-bottom: 18px; }
/* About fits one screen: your text on the left, facts / what I do / contact on the right. */
#about { padding-top: clamp(40px, 7vh, 72px); padding-bottom: clamp(40px, 7vh, 72px); }
.about-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.about-side { padding-top: 34px; }
.about-side .about-facts { margin-top: 0; padding-top: 0; border-top: 0; gap: 20px 32px; }
.about-side .about-services { margin-top: 26px; padding-top: 24px; }
.about-side .links { margin-top: 28px; }
@media (max-width: 1000px) { .about-body { grid-template-columns: 1fr; } .about-side { padding-top: 0; border-top: 1px solid var(--line); padding-top: 28px; } }
.about-lead { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.22; letter-spacing: -.02em; max-width: 26ch; }
.about-text { margin-top: 22px; max-width: 62ch; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; }
.about-text p + p { margin-top: 14px; }
.about-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px);
  margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 860px;
}
.about-facts dt { margin-bottom: 8px; }
.about-facts dd { font-size: 17px; }
.about-services { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 860px; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pills li { font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; }
.about .links { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 60%; }
  .about-text { margin-top: 26px; max-width: 58ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; }
.about-text p + p { margin-top: 14px; }
.about-facts { grid-template-columns: 1fr; }
}

/* project index */
.index { list-style: none; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 56px 1.4fr 1fr 1fr 70px; gap: 16px; align-items: baseline;
  padding: 22px 0; transition: color .2s, padding .3s;
}
.index .n, .index .meta, .index .yr { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.index .client { font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.025em; line-height: 1.05; }
.index .what { color: var(--muted); }
.index .yr { text-align: right; }
.index a:hover { color: var(--accent); padding-left: 10px; }
@media (max-width: 1000px) {
  .index a { grid-template-columns: 48px 1.3fr 1fr 60px; }
  .index .meta { display: none; }
}
@media (max-width: 760px) {
  .index a { grid-template-columns: 36px 1fr auto; padding: 18px 0; }
  .index .what, .index .meta { display: none; }
}
/* Projects: 3 rows of cards that scroll sideways */
#projects { padding-right: 0; }
#projects .section-head { padding-right: var(--gutter); }
.cards-nav { display: flex; align-items: center; gap: 10px; }
.cards-nav .label { margin-right: 10px; }
.cards-nav button {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  font-size: 16px; transition: background .2s, color .2s, opacity .2s;
}
.cards-nav button:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.cards-nav button:disabled { opacity: .25; cursor: default; }
.cards {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto);
  grid-auto-columns: clamp(260px, 24vw, 340px);
  gap: 14px clamp(14px, 1.6vw, 24px);
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 0;
  padding: 0 var(--gutter) 18px 0;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
/* Same look as the old list: number, client, description, hairline above, red on hover. */
.card {
  display: grid; grid-template-columns: 1fr; gap: 10px; align-items: baseline;
  padding: 22px 16px 22px 0; border-top: 1px solid var(--line);
  scroll-snap-align: start; transition: color .2s, padding .3s;
}
.card:hover { color: var(--accent); padding-left: 8px; padding-right: 8px; }
.card-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card .client { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.025em; line-height: 1.05; }
.card .what { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview .is-loaded, .preview img { opacity: 1; }
@media (max-width: 640px) {
  .cards { grid-auto-columns: 78vw; }
  .cards-nav button { display: none; }
}

/* "slide for more" under the Clients list: a hand-drawn arrow that keeps nudging right.
   It fades away once the list is scrolled to its end (home.js). */
.slide-hint {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 0;
  font: 600 24px/1 var(--hand); color: var(--accent);
  transition: opacity .4s;
}
.slide-hint svg { width: 110px; height: 24px; overflow: visible; animation: nudge 1.6s ease-in-out infinite; }
.slide-hint path {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 130; stroke-dashoffset: 130; animation: draw 1s .2s cubic-bezier(.6,.1,.3,1) forwards;
}
.slide-hint path + path { animation-delay: .9s; }
.slide-hint.done { opacity: 0; pointer-events: none; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(14px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Gallery: the old homepage's "clean masonry" — 3 columns, every photo up to 400px tall and centred
   in its cell, a 0 / 30 / 60px staircase across each row, rounded corners and a hairline border. */
.old-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.og-item { display: flex; justify-content: center; align-items: center; cursor: zoom-in; }
.og-item:nth-child(3n + 2) { margin-top: 30px; }
.og-item:nth-child(3n) { margin-top: 60px; }
.og-item img {
  width: auto; height: auto; max-width: 100%; max-height: 400px;
  border-radius: 10px; border: 0.8px solid #cccccc;
  opacity: 0; transition: opacity .7s ease, transform .5s ease;
}
.og-item img.is-loaded { opacity: 1; }
.og-item:hover img { transform: scale(1.02); }
/* Project pages use the same gallery, with videos in it. */
.p-gallery { padding: 0 var(--gutter); }
.og-vid {
  position: relative; display: block; max-height: 400px; overflow: hidden;
  border-radius: 10px; border: 0.8px solid #cccccc; background: var(--tile);
}
.og-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-vid .play-btn {
  position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 11px;
  background: var(--bg); color: var(--fg); padding: 6px 11px; border-radius: 99px; transition: background .2s, color .2s;
}
.og-item.vid:hover .play-btn { background: var(--accent); color: #fff; }
@media (max-width: 760px) {
  .old-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .og-item:nth-child(n) { margin-top: 0; }
  .og-item:nth-child(2n) { margin-top: 30px; }
  .og-item img { max-height: 260px; }
  .og-vid { max-height: 260px; }
  .og-vid .play-btn { left: 6px; bottom: 6px; font-size: 0; padding: 5px 8px; }
  .og-vid .play-btn::first-letter { font-size: 11px; }
}

.preview {
  position: fixed; z-index: 30; width: 240px; aspect-ratio: 4 / 5; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.94);
  transition: opacity .2s, transform .25s; background: var(--tile); overflow: hidden;
}
.preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preview img, .preview video { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .preview { display: none; } }

/* footer */
.site-footer { padding: 72px var(--gutter) 28px; border-top: 1px solid var(--line); }
.site-footer .mail {
  display: inline-block; font-size: clamp(30px, 6vw, 88px); letter-spacing: -.045em; line-height: 1;
  transition: color .2s;
}
.site-footer .mail:hover { color: var(--accent); }
.site-footer .bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 72px; font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.site-footer .bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .bottom a:hover { color: var(--fg); }

/* ---------- project page (white) ---------- */
body.light {
  --gutter: clamp(20px, 5vw, 88px);
}
body.light .site-header { border-bottom-color: transparent; }

.p-head { padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(56px, 10vh, 120px); }
.p-head .back { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.p-head .back:hover { color: var(--accent); }
.p-head h1 {
  margin-top: clamp(40px, 9vh, 110px); font-weight: 500; letter-spacing: -.045em; line-height: .95;
  font-size: clamp(44px, 7vw, 112px);
}
.p-head .sub { font-size: clamp(17px, 1.6vw, 22px); color: var(--muted); margin-top: 14px; letter-spacing: -.01em; }
.p-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 2fr; gap: 32px;
  margin-top: clamp(48px, 8vh, 96px);
}
.p-meta dt { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.p-meta dd { font-size: 15px; }
.p-meta .text dd { font-size: 16px; line-height: 1.55; max-width: 48ch; }
.p-meta .credit { display: block; margin-top: 12px; color: var(--muted); }
@media (max-width: 860px) { .p-meta { grid-template-columns: 1fr 1fr; } .p-meta .text { grid-column: 1 / -1; } }

.masonry { padding: 0 var(--gutter); --mgap: clamp(16px, 3vw, 48px); }
.masonry .cols { display: flex; gap: var(--mgap); }
/* Videos shown as their own block above the photos (videosFirst in data.js). */
.lead-videos { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: var(--mgap); margin-bottom: var(--mgap); }
@media (max-width: 640px) { .lead-videos { grid-template-columns: 1fr; } }
.masonry .col { flex: 1; display: flex; flex-direction: column; gap: var(--mgap); min-width: 0; }
.masonry .item { position: relative; background: var(--tile); overflow: hidden; cursor: zoom-in; }
.masonry .item img, .masonry .item video {
  width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease;
}
.masonry .item .is-loaded { opacity: 1; }
.masonry .item.vid { cursor: pointer; }
.play-btn {
  position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: 11px;
  background: var(--bg); color: var(--fg); padding: 6px 11px; border-radius: 99px;
  opacity: .9; transition: opacity .2s;
}
.item.vid:hover .play-btn { opacity: 1; background: var(--accent); color: #fff; }

.films { padding: clamp(64px, 10vh, 120px) var(--gutter) 0; }
.films .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 48px); }
@media (max-width: 760px) { .films .grid { grid-template-columns: 1fr; } }
.films.lead { padding-top: 0; padding-bottom: clamp(16px, 3vw, 48px); }
.films.lead .grid { grid-template-columns: 1fr; row-gap: clamp(40px, 6vw, 80px); }
.film figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 14px; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -.01em;
}
.yt { display: block; width: 100%; }

/* A film with its description: player on the left, text on the right (stacked on small screens). */
.film.with-text { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: start; }
.film-video { background: var(--tile); }
.film-video video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }
.film .film-text { display: block; margin: 0; font-size: 15px; line-height: 1.6; letter-spacing: 0; }
.film-text h3 { font-weight: 500; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.15; margin: 8px 0 16px; }
.film-text p { color: var(--muted); max-width: 52ch; }
.film-text p + p { margin-top: 12px; }
.film-text .featured { color: var(--fg); }
.bts-head { padding: clamp(56px, 8vh, 96px) var(--gutter) 28px; margin: 0; }
@media (max-width: 860px) { .film.with-text { grid-template-columns: 1fr; } }
.yt { position: relative; aspect-ratio: 16 / 9; background: var(--tile); overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.yt:hover img { opacity: 1; }
.yt .btn {
  position: absolute; left: 16px; bottom: 14px; font-family: var(--mono); font-size: 12px;
  background: var(--fg); color: var(--bg); padding: 7px 12px; border-radius: 99px;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.next { display: block; margin-top: clamp(80px, 14vh, 160px); padding: 40px var(--gutter) 56px; border-top: 1px solid var(--line); }
.next .label { display: block; margin-bottom: 14px; }
.next .client { font-size: clamp(40px, 8vw, 128px); letter-spacing: -.05em; line-height: .95; transition: color .2s; }
.next:hover .client { color: var(--accent); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 98%, transparent);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-stage { position: relative; z-index: 1; }
.lb-stage img, .lb-stage video {
  display: block; max-width: calc(100vw - 2 * var(--gutter) - 120px); max-height: calc(100vh - 120px); object-fit: contain;
}
.lightbox .bar {
  position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between;
  padding: 18px var(--gutter); font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.lightbox .bar button:hover { color: var(--fg); }
.lightbox .nav { position: absolute; top: 60px; bottom: 0; width: 50%; z-index: 0; }
.lightbox .nav.prev { left: 0; cursor: w-resize; }
.lightbox .nav.next-btn { right: 0; cursor: e-resize; }

.empty { padding: 20vh var(--gutter); }

/* ---------- studio page (cream + FINA red) ---------- */
body.studio {
  --bg: #f2ebe1;
  --fg: #2a1c18;
  --muted: #8d7a6e;
  --line: #ddd1c3;
  --tile: #e7ddcf;
  --accent: #9f2b22;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --gutter: clamp(20px, 5vw, 88px);
}
body.studio .site-header { border-bottom-color: transparent; }
body.studio h1, body.studio h2, body.studio h3, body.studio .s-lead,
body.studio .index .client, body.studio .mail { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
body.studio h2 em, body.studio h1 em { color: var(--accent); }
body.studio .section-head h2 { font-size: clamp(36px, 5vw, 72px); }
body.studio .hand { font-family: var(--hand); font-size: 22px; color: var(--accent); }
body.studio img { opacity: 0; transition: opacity .7s ease; }
body.studio img.is-loaded { opacity: 1; }

/* First section: a full-screen photo with small text scattered over it in a loose grid,
   and FINA as one huge word across the bottom (studio.js sizes it to fill the width). */
.s-hero {
  position: relative; min-height: calc(100svh - 64px); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  padding: 22px var(--gutter) 0; color: var(--accent);
  font: 500 14px/1.25 var(--sans);
  background: var(--bg);
}
.s-hero > * { position: relative; }
.s-hero a { color: inherit; transition: opacity .2s; }
.s-hero a:hover { opacity: .65; }
.s-hero-row { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr .5fr; gap: 16px; }
.s-hero-row.top > :last-child, .s-hero-row.low > :last-child { justify-self: end; }
.s-hero-row .stack { display: flex; flex-direction: column; }
.s-hero-row.top.soon { grid-template-columns: 1fr auto; }
.s-hero-row.mid { align-self: center; grid-template-columns: 1fr .9fr .55fr 1.6fr; row-gap: 40px; }
.s-hero-row.mid > span:nth-child(2) { max-width: 18ch; }
.s-hero-row.mid .bio { grid-column: 1 / 3; max-width: 40ch; }
.s-hero-row.low { grid-template-columns: 1fr auto; padding-bottom: 22px; }
.s-hero-row.low > :first-child { justify-self: end; margin-right: clamp(40px, 8vw, 140px); }
body.studio h1.s-hero-word {
  font: 800 100px/.78 var(--sans); letter-spacing: -.045em; color: var(--accent);
  white-space: nowrap; margin: 0 0 -.02em; padding-top: 6px;
}
.s-hero-word span { display: inline-block; }
/* The FINA logo in the middle of the first section. */
.s-hero-logo { display: grid; place-items: center; padding: 24px 0; min-height: 0; }
.s-hero-logo img { width: min(78vw, 980px, calc((100svh - 220px) * 1.75)); height: auto; }
body.studio .s-hero-logo img { opacity: 1; }   /* the logo shows straight away, no fade */
@media (max-width: 760px) { .s-hero-logo img { width: 100%; } }
@media (max-width: 760px) {
  .s-hero { min-height: calc(100svh - 56px); font-size: 13px; background-position: 42% center; }
  .s-hero-row.top { grid-template-columns: 1fr auto; }
  .s-hero-row.top .stack, .s-hero-row.top > a:nth-of-type(1) { display: none; }
  .s-hero-row.mid { grid-template-columns: 1fr; row-gap: 4px; align-self: end; padding-bottom: 28px; }
  .s-hero-row.mid > span:nth-child(3) { display: none; }
  .s-hero-row.mid .bio { grid-column: 1; margin-top: 18px; }
}

.s-section { padding: clamp(56px, 10vh, 128px) var(--gutter); border-top: 1px solid var(--line); }
/* Shared: the bold red uppercase headings from the moodboard. */
.s-red { font: 800 clamp(22px, 2.4vw, 36px)/1 var(--sans); color: var(--accent); text-transform: uppercase; letter-spacing: -.01em; }

/* About the studio: name + red heading, services, description; then a small photo (01) and a big one. */
.s-about { padding: clamp(56px, 9vh, 112px) var(--gutter); }
.s-about-head { display: grid; grid-template-columns: 1.4fr .8fr 1.3fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.s-about-title .arrow { display: block; font-size: 22px; margin-bottom: 18px; }
body.studio .s-about-title .s-name { font: 500 clamp(34px, 3.6vw, 56px)/1 var(--sans); letter-spacing: -.03em; }
.s-about-title .s-red { margin-top: 10px; }
.s-about-col { font-size: 13px; line-height: 1.45; }
.s-about-col .label { margin-bottom: 10px; font-size: 11px; }
.s-about-col ul { list-style: none; }
.s-about-col .where { margin-top: 14px; color: var(--muted); }
.s-about-col.text p + p { margin-top: 12px; }
.s-about-col.text p:not(.label) { max-width: 52ch; }
.s-about-photos { display: grid; grid-template-columns: 1fr 1.9fr; gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(32px, 6vh, 64px); align-items: start; }
.s-about-photos figure { overflow: hidden; background: var(--tile); }
.s-about-photos figure:first-child { background: none; }
.s-about-photos figure:first-child img { aspect-ratio: 4 / 5; }
.s-about-photos figure.big { aspect-ratio: 3 / 2; }
.s-about-photos img { width: 100%; height: 100%; object-fit: cover; }
.s-about-photos figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) {
  .s-about-head { grid-template-columns: 1fr 1fr; }
  .s-about-title { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .s-about-head, .s-about-photos { grid-template-columns: 1fr; }
  .s-about-photos figure:first-child { max-width: 70%; }
}

/* About us: a pale panel with the heading, a small photo and centred text; a big photo beside it. */
.s-us { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; }
.s-us-panel { background: var(--tile); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.s-us-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 0 8px; }
.s-us-small { width: min(46%, 240px); aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 32px; }
.s-us-small img, .s-us-big img { width: 100%; height: 100%; object-fit: cover; }
body.studio .s-us-text { font: 400 clamp(15px, 1.25vw, 19px)/1.35 var(--serif); text-transform: uppercase; letter-spacing: .04em; max-width: 34ch; color: #6e5f55; }
.s-us-names { list-style: none; margin-top: 36px; display: grid; gap: 14px; }
.s-us-names li { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.s-us-names .label { font-size: 10px; }
.s-us-big { overflow: hidden; background: var(--tile); min-height: 60vh; }
.s-us-big img { object-position: 50% 30%; }
@media (max-width: 760px) { .s-us { grid-template-columns: 1fr; min-height: 0; } .s-us-big { aspect-ratio: 4 / 5; min-height: 0; } }

/* The scenes: a cream card on a dark ground, photos scattered around its edge, the title in the middle. */
.s-scenes { background: #2a1c18; padding: clamp(28px, 5vw, 72px) var(--gutter); }
.s-scenes-card {
  background: #f2ebe1; padding: clamp(16px, 2.2vw, 32px);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, auto);
  gap: clamp(10px, 1.6vw, 24px); align-items: start;
}
.s-scenes-title { grid-column: 2 / 6; grid-row: 2 / 4; align-self: center; text-align: center; padding: 24px 0; }
body.studio .s-scenes-line { font: 400 clamp(30px, 3.8vw, 58px)/1 var(--serif); color: #3a2a24; margin-top: 6px; letter-spacing: -.01em; }
.s-scenes-line em { font-style: italic; }
.s-scenes .g-item { aspect-ratio: auto; background: none; overflow: hidden; }
.s-scenes .g-item img { aspect-ratio: 4 / 3; }
/* Where each photo sits around the edge, and how big it is, so the card looks hand-laid. */
.s-scenes .g-item:nth-of-type(1)  { grid-area: 1 / 1 / 2 / 2; width: 92%; }
.s-scenes .g-item:nth-of-type(2)  { grid-area: 1 / 2 / 2 / 3; width: 80%; margin-top: 18%; justify-self: center; }
.s-scenes .g-item:nth-of-type(3)  { grid-area: 1 / 4 / 2 / 5; width: 86%; }
.s-scenes .g-item:nth-of-type(4)  { grid-area: 1 / 6 / 3 / 7; width: 78%; justify-self: end; }
.s-scenes .g-item:nth-of-type(4) img { aspect-ratio: 3 / 4; }
.s-scenes .g-item:nth-of-type(5)  { grid-area: 2 / 1 / 4 / 2; width: 84%; align-self: center; }
.s-scenes .g-item:nth-of-type(5) img { aspect-ratio: 3 / 4; }
.s-scenes .g-item:nth-of-type(6)  { grid-area: 3 / 6 / 4 / 7; width: 100%; align-self: end; }
.s-scenes .g-item:nth-of-type(7)  { grid-area: 4 / 1 / 5 / 3; width: 46%; justify-self: center; }
.s-scenes .g-item:nth-of-type(8)  { grid-area: 4 / 3 / 5 / 4; width: 82%; margin-top: 8%; }
.s-scenes .g-item:nth-of-type(8) img { aspect-ratio: 3 / 4; }
.s-scenes .g-item:nth-of-type(9)  { grid-area: 4 / 4 / 5 / 5; width: 90%; justify-self: end; }
.s-scenes .g-item:nth-of-type(9) img { aspect-ratio: 3 / 4; }
.s-scenes .g-item:nth-of-type(10) { grid-area: 4 / 5 / 5 / 7; width: 62%; justify-self: end; }
.s-scenes .g-item:nth-of-type(n + 11) { display: none; }
@media (max-width: 760px) {
  .s-scenes-card { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .s-scenes-title { grid-column: 1 / -1; grid-row: 1; padding: 20px 0 12px; }
  .s-scenes .g-item:nth-of-type(n) { grid-area: auto; width: 100%; margin: 0; justify-self: stretch; align-self: start; }
  .s-scenes .g-item:nth-of-type(n) img { aspect-ratio: 4 / 5; }
  .s-scenes .g-item:nth-of-type(n + 11) { display: block; }
}

/* Behind the scenes: a huge word, then a photo cut into strips with one word on each. */
.s-behind { background: #1f2a1e; color: #e9e3d3; padding: clamp(16px, 2vw, 28px) var(--gutter) 22px; overflow: hidden; }
.s-big-word { font: 800 100px/.8 var(--sans); letter-spacing: -.045em; white-space: nowrap; margin-bottom: clamp(10px, 1.4vw, 20px); padding-top: .06em; }
.s-big-word span { display: inline-block; }
.s-behind-photo { position: relative; aspect-ratio: 21 / 9; overflow: hidden; }
.s-behind-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); }
.s-behind-photo .strips {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr);
  background: linear-gradient(rgba(20,30,20,.18), rgba(20,30,20,.35));
}
.s-behind-photo .strips span {
  border-right: 1px solid rgba(233,227,211,.35); padding: 10px 0 0; text-align: center;
  font-size: 12px; color: rgba(233,227,211,.85);
}
.s-behind-photo .strips span:last-child { border-right: 0; }
body.studio .s-behind-title {
  position: absolute; right: clamp(16px, 4vw, 56px); top: 50%; transform: translateY(-50%);
  font: 800 clamp(22px, 2.6vw, 40px)/1 var(--sans); text-transform: uppercase; letter-spacing: -.01em; color: #f2ebe1;
}
.s-behind-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; font-size: 12px; }
.s-behind-facts dt { color: rgba(233,227,211,.55); text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); font-size: 10px; margin-bottom: 4px; }
@media (max-width: 760px) {
  .s-behind-photo { aspect-ratio: 4 / 5; }
  .s-behind-photo .strips { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .s-behind-photo .strips span:nth-child(3n) { border-right: 0; }
  .s-behind-photo .strips span:nth-child(n + 4) { border-top: 1px solid rgba(233,227,211,.35); }
  body.studio .s-behind-title { right: auto; left: 16px; top: auto; bottom: 18px; transform: none; }
  .s-behind-facts { grid-template-columns: 1fr 1fr; }
}

.s-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.s-contact .mail { font-size: clamp(34px, 6vw, 92px); line-height: 1; color: var(--accent); }
.s-contact .mail:hover { color: var(--fg); }

/* ---------- phones: menu button + full-screen menu ---------- */
.menu-btn { display: none; }
@media (max-width: 640px) {
  .site-header { grid-template-columns: 1fr auto; padding-top: 16px; padding-bottom: 16px; }
  .site-header .side, .site-header nav { display: none; }
  .menu-btn {
    display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase;
    letter-spacing: .06em; padding: 8px 0 8px 16px;
  }
  .site-header.menu-open {
    position: fixed; inset: 0; height: 100dvh; align-content: start;
    background: var(--bg); backdrop-filter: none; z-index: 60;
  }
  .site-header.menu-open nav {
    display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; margin-top: 12vh;
    font-size: clamp(40px, 13vw, 60px); letter-spacing: -.035em; line-height: 1.1;
  }
  .site-header.menu-open .side { display: block; grid-column: 1 / -1; justify-self: start; margin-top: 48px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .slide-hint svg, .slide-hint path { animation: none; stroke-dashoffset: 0; }
}
#lb-count { visibility: hidden; }   /* no "03 / 15" counter in the photo viewer */
