/* Bernard Figueroa — site styles */

:root {
  --ink: #111;
  --muted: #6e6e6e;
  --line: #e4e4e4;
  --paper: #fff;
  --plate: #f3f3f3;       /* the soft grey behind product photos */
  --display: "Archivo", "Arial Black", sans-serif;   /* expanded 800/900 — closest free match to the live site's Lulo Clean */
  --text: "Nunito Sans", "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 3.1vw, 64px);   /* Wix keeps ~3.1% side margins at every width */
  --max: 1920px;                         /* column keeps widening like Wix; only stops on very large screens */
}

*, *::before, *::after { box-sizing: border-box; }
/* Always reserve the scrollbar's space, so full-width elements never shift when it appears */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------ header */

/* header sits at the top of the page and scrolls away with it, like the live site (not sticky) */
.site-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 124px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);   /* same column as the imagery; height + centring match the Wix proportions */
  background: var(--paper);
}
.brand {
  display: flex; align-items: center; gap: 6px; height: 100%;
  text-decoration: none;
}
/* monogram as on Wix: F tip just past the photos' left edge; white background blended away */
.brand img {
  height: 118px; width: auto; aspect-ratio: 259 / 320; object-fit: contain;
  margin-left: -30px; mix-blend-mode: multiply;
}
.brand span {
  font: 900 clamp(16px, 1.95vw, 25px)/1 var(--display);
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}

.site-nav > ul { display: flex; gap: clamp(16px, 2vw, 26px); align-items: center; }
.site-nav a, .sub-toggle {
  font: 800 clamp(12px, 1.15vw, 15px)/1 var(--display);
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 8px 0; display: inline-block;
  text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.site-nav a:hover, .sub-toggle:hover,
.site-nav > ul > li > a[aria-current], .sub-toggle.is-current { text-decoration: underline; }

.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: -18px; min-width: 170px;
  padding: 10px 18px; background: var(--paper);
  box-shadow: 0 10px 30px rgb(0 0 0 / .08);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.sub a { display: block; padding: 9px 0; font-size: 10px; }
.sub a[aria-current] { text-decoration: underline; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub {
  opacity: 1; visibility: visible; transform: none;
}

.menu-toggle {
  display: none;
  font: 700 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 0;
}
.menu-close { display: none; }

@media (max-width: 860px) {
  /* backdrop-filter would trap the fixed overlay inside the header */
  .site-header { height: 76px; }
  .brand img { height: 74px; margin-left: -17px; }

  .menu-toggle { display: block; position: relative; z-index: 2; flex-shrink: 0; }
  .brand { gap: 12px; position: relative; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    background: var(--paper);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .site-nav > ul { flex-direction: column; gap: 22px; text-align: center; }
  .site-nav a, .sub-toggle { font-size: 15px; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding: 8px 0 0; min-width: 0;
    display: none;
  }
  .has-sub .sub { display: block; }
  .sub a { font-size: 11px; color: var(--muted); }
  body.menu-is-open { overflow: hidden; }
  @media (max-width: 440px) {
    .brand { gap: 6px; }
    .brand span { font-size: 14px; letter-spacing: .05em; }
  }
  @media (max-width: 340px) {
    .brand img { display: none; }
    .brand span { font-size: 13px; letter-spacing: .04em; }
  }
  body.menu-is-open .site-nav { opacity: 1; visibility: visible; }
  body.menu-is-open .menu-open { display: none; }
  body.menu-is-open .menu-close { display: inline; }
}

/* ------------------------------------------------------------ layout */

main {
  max-width: var(--max); margin: 0 auto;
  padding: 6px var(--gutter) clamp(48px, 8vw, 96px);
}

.page-title {
  font: 700 clamp(30px, 6vw, 64px)/1.05 var(--display);
  letter-spacing: .16em; text-transform: uppercase;
  margin: clamp(16px, 4vw, 48px) 0 clamp(32px, 6vw, 72px);
}

/* ------------------------------------------------------------ home mosaic */

/* Masonry: CSS columns without JS; with JS a left-to-right grid (site.js sets row spans) */
[data-masonry] { --cols: 4; --gap: 24px; columns: var(--cols); column-gap: var(--gap); }
[data-masonry] > * { break-inside: avoid; margin: 0 0 var(--gap); }
[data-masonry].is-masonry {
  columns: auto; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 4px; column-gap: var(--gap); grid-auto-flow: row dense; align-items: start;
}
[data-masonry].is-masonry > * { margin: 0; }
[data-masonry].is-masonry > .tile--feature { grid-column: span 2; }
.sculpture-grid { --cols: 3; }
@media (max-width: 960px) { .mosaic { --cols: 3; } }
@media (max-width: 700px) {
  [data-masonry], .sculpture-grid { --cols: 2; --gap: 12px; }
}
.tile {
  position: relative; display: block; background: var(--plate); overflow: hidden;
  text-decoration: none;
}
.tile img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.tile-label {
  position: absolute; left: 14px; bottom: 12px;
  font: 700 10px/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  background: var(--paper); padding: 7px 9px;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s;
}
a.tile:hover img { transform: scale(1.03); }
a.tile:hover .tile-label, a.tile:focus-visible .tile-label { opacity: 1; transform: none; }
.tile-label, .li-label { display: none !important; }   /* white labels removed at Bernard's request */
@media (hover: none) { .tile-label { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .tile-label { left: 8px; bottom: 8px; font-size: 8px; padding: 5px 6px; }
}

/* ------------------------------------------------------------ lights (product pages) */
/* Live-site layout kept: collection name top right over the photo column; rows alternate
   text-left/photo-right, then photo-left/text-right. Photos larger, specs labelled. */

.lp-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.lp-title {
  grid-column: 2; justify-self: center; margin: clamp(8px, 2vw, 24px) 0 clamp(28px, 4vw, 56px);
  font: 700 clamp(34px, 5.6vw, 76px)/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
}

.item {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(36px, 6vw, 88px) 0;
}
.item:first-of-type { padding-top: 0; }
.item--flip .item-text { order: 2; }
.item-text { padding-inline: clamp(0px, 3vw, 48px); }

.item h2 {
  font: 700 clamp(26px, 3.6vw, 46px)/1.05 var(--display);
  letter-spacing: .16em; text-transform: uppercase; margin: 0 0 clamp(24px, 3vw, 40px);
}
.specs { margin: 0; display: grid; gap: 14px; }
.spec { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; align-items: baseline; }
.spec dt {
  font: 700 9.5px/1.4 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  padding-top: 2px;
}
.spec dd { margin: 0; font-size: 15px; line-height: 1.55; }
.spec dd b { font-weight: 400; color: var(--ink); display: inline-block; min-width: 4.6em; }
.inquire {
  display: inline-block; margin-top: clamp(24px, 3vw, 36px);
  font: 700 10px/1 var(--display); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 6px;
}
.inquire:hover { color: var(--muted); }

/* gallery: big square plate, round arrows on the photo, a row of four thumbnails underneath */
.gallery { min-width: 0; }
.gallery-frame { position: relative; }
.gallery-stage { background: var(--plate); cursor: zoom-in; overflow: hidden; }
.gallery-main {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  transition: opacity .3s, transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.gallery-stage:hover .gallery-main { transform: scale(1.025); }
.gallery-main.is-swapping { opacity: 0; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / .92);
  display: grid; place-items: center; font: 300 28px/1 var(--text); color: var(--ink);
  box-shadow: 0 2px 14px rgb(0 0 0 / .08);
  opacity: 0; transition: opacity .25s, background .2s;
}
.gallery-prev { left: 14px; } .gallery-next { right: 14px; }
.gallery-frame:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; }
.gallery-arrow:hover { background: #fff; }
@media (hover: none) { .gallery-arrow { opacity: 1; width: 40px; height: 40px; } }
.gallery-thumbs {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4);
  gap: 10px; margin-top: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button {
  aspect-ratio: 1; background: var(--plate); scroll-snap-align: start;
  opacity: .5; outline-offset: 2px; transition: opacity .2s; position: relative;
}
.gallery-thumbs button:hover, .gallery-thumbs button[aria-current] { opacity: 1; }
.gallery-thumbs button[aria-current]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink);
}
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Lights landing page: two rows sized to the photos by site.js (shared with Home / Sculptures) */
.lights-rows { --g: clamp(10px, 1.7vw, 20px); }
.collage--lights { aspect-ratio: 2 / 1; }
/* Lights landing page: seven collections, flush 4×4 square grid — three big tiles, four small */
.lights-grid {
  --g: clamp(10px, 1.7vw, 20px);
  display: grid; gap: var(--g); aspect-ratio: 1 / 1;
  grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-template-areas: "a a b b" "a a b b" "c d d e" "f d d g";
}
.li-tile { display: block; min-height: 0; height: 100%; }
.li-tile img { width: 100%; height: 100%; object-fit: cover; }
.li-tile.tile--fit img { object-fit: contain; }
.li-label {
  position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start; pointer-events: none;
}
.li-label b, .li-label span {
  background: var(--paper); padding: 7px 10px 6px;
}
.li-label b { font: 700 clamp(12px, 1.3vw, 16px)/1 var(--display); letter-spacing: .18em; text-transform: uppercase; }
.li-label span { font-size: 12px; line-height: 1.3; color: var(--muted); padding-top: 5px; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.li-tile:hover .li-label span, .li-tile:focus-visible .li-label span { opacity: 1; transform: none; }
@media (hover: none) { .li-label span { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .lights-grid {
    aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none;
    grid-template-areas: "a a" "b b" "c e" "d d" "f g";
  }
  .li-tile { aspect-ratio: 1; }
  .li-label { left: 8px; bottom: 8px; }
}

/* previous / next collection */
.lp-nav {
  display: flex; justify-content: space-between; gap: 24px;
  margin-top: clamp(40px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--line);
}
.lp-nav a {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  font: 700 clamp(16px, 2vw, 24px)/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
}
.lp-nav a span { font-size: 9.5px; letter-spacing: .22em; color: var(--muted); }
.lp-nav .lp-prev::before { content: "\2190"; font: 300 22px/1 var(--text); order: -1; }
.lp-nav .lp-next { text-align: right; align-items: flex-end; }
.lp-nav .lp-next::before { content: "\2192"; font: 300 22px/1 var(--text); order: -1; }
.lp-nav a:hover { color: var(--muted); }
.lp-nav .lp-all {
  align-self: flex-end; font-size: 10px; letter-spacing: .22em; color: var(--muted);
  border-bottom: 1.5px solid currentColor; padding-bottom: 5px;
}
.lp-nav .lp-all:hover { color: var(--ink); }
@media (max-width: 600px) { .lp-nav { flex-wrap: wrap; } .lp-nav .lp-all { order: 3; width: 100%; text-align: center; align-items: center; border: 0; } }

@media (max-width: 640px) {
  .lp-head { display: block; }
  .lp-title { margin-bottom: 24px; }
  .item { grid-template-columns: 1fr; gap: 24px; }
  .item .gallery { order: -1; }
  .item--flip .item-text { order: 0; }
  .item-text { padding-inline: 0; }
}

/* ------------------------------------------------------------ sculptures */

/* ---- Selected work: the live site's layout. Tight 20px gaps, 1:2:1:2 collage rows, then the
        big image + title + text block in the lower right. */
.sc-selected { --g: clamp(10px, 1.7vw, 20px); }
.sc-label {
  display: flex; justify-content: space-between; margin: clamp(4px, 1vw, 12px) 0 14px;
  font: 700 10px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.collage {
  display: grid; grid-template-columns: 1fr 2fr 1fr 2fr; gap: var(--g);
  aspect-ratio: 2.08 / 1; margin-bottom: var(--g);
}
.collage .col--stack { display: flex; flex-direction: column; gap: var(--g); min-height: 0; }
.collage figure, .new-grid figure { background: var(--plate); overflow: hidden; cursor: zoom-in; min-height: 0; }
.collage .col--stack figure { flex: 1; }
[data-justify].is-justified { aspect-ratio: auto; }
/* phones: flexible rows of full-width photos and level pairs (sizes set by site.js) */
.collage.is-phone { display: flex; flex-wrap: wrap; aspect-ratio: auto; }
.collage.is-phone .col--stack { display: contents; }
.collage.is-phone figure, .collage.is-phone .tile { flex: none !important; aspect-ratio: auto !important; grid-column: auto; }
.collage--square.is-phone .tile { flex: none !important; aspect-ratio: auto !important; grid-column: auto; }
.collage--square.is-phone .tile img { object-fit: cover; }   /* boxes match the photos exactly, so nothing is cut */
[data-justify].is-justified .col--stack figure, [data-justify].is-justified .col--stack .tile { flex: none; }
[data-justify].is-justified .tile img { object-fit: cover; }   /* tiles match their photos exactly */
.collage img, .new-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.collage figure:hover img, .new-grid figure:hover img { transform: scale(1.03); }
/* Home: same collage, square slots (big = 2×2, stacks = two 1×1), alternate rows mirrored */
.home-collage { --g: clamp(10px, 1.7vw, 20px); }
.collage--square { aspect-ratio: 3 / 1; }
.collage--home { aspect-ratio: 4 / 1; }   /* fallback before site.js sizes the row to its photos */
.collage--mirror { grid-template-columns: 2fr 1fr 2fr 1fr; }
.collage .tile { display: block; height: 100%; min-height: 0; }
.collage .col--stack .tile { flex: 1; }
.collage .tile img { width: 100%; height: 100%; object-fit: cover; }
.collage .tile--fit img { object-fit: contain; }
.collage .tile--fit:hover img { transform: scale(1.03); }
@media (max-width: 700px) {
  .collage--square .tile { aspect-ratio: 1; }
  .collage--square .col--big { grid-column: span 2; }
}
@media (max-width: 700px) {
  .collage { grid-template-columns: 1fr 1fr; aspect-ratio: auto; }
  .collage .col--stack { display: contents; }
  .collage figure { aspect-ratio: var(--ar, 2 / 3); }
  .collage .col--big { grid-column: span 2; aspect-ratio: var(--ar, 4 / 5); }
}

.sc-hero {
  --g: clamp(10px, 1.7vw, 20px);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); align-items: stretch;
}

body { overflow-x: clip; }
.sc-hero figure { background: var(--plate); overflow: hidden; cursor: zoom-in; }
.sc-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.sc-hero figure:hover img { transform: scale(1.025); }
/* Big image stretches to the full height of the right column, so its bottom lines up with
   the end of the text block (the image is absolutely placed so it doesn't push the row taller). */
/* big image at its true shape; site.js balances the two columns so its bottom meets the end of the text */
.sc-hero-main { aspect-ratio: var(--ar); align-self: start; }
.sc-hero-main img { width: 100%; height: 100%; object-fit: cover; }
.sc-hero-side { display: flex; flex-direction: column; min-width: 0; }
/* Small images: fixed square block so the tall one and the stacked pair end on the same line */
.sc-hero-pics { display: grid; grid-template-columns: 2fr 1fr; gap: var(--g); }
.sc-hero-pics .col--stack { display: flex; flex-direction: column; gap: var(--g); min-height: 0; }
.sc-hero-pics figure { min-height: 0; }
.sc-hero-pics:not(.is-justified) figure { aspect-ratio: var(--ar); }
.sc-hero-pics img { width: 100%; height: 100%; object-fit: cover; }
.sc-title {
  font: 700 clamp(30px, 4.6vw, 62px)/1 var(--display);
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  margin: calc(var(--g) * 1.1) 0 calc(var(--g) * .6);
}
.sc-essay {
  columns: 2; column-gap: var(--g);
  font-size: 14px; line-height: 1.62; text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}
.sc-essay p { margin: 0 0 1em; }

/* FR / EN switch: both versions share one spot (no jump); the incoming one appears word by word */
.sc-lang {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; margin: 0 0 10px;
  font: 700 10px/1 var(--display); letter-spacing: .22em; color: var(--muted);
}
.sc-lang button { padding: 4px 0 5px; color: var(--muted); letter-spacing: .22em; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.sc-lang button:hover { color: var(--ink); }
.sc-lang button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.sc-essays { display: grid; }
.sc-essays > .sc-essay { grid-area: 1 / 1; }
.sc-essay.is-off { visibility: hidden; pointer-events: none; transition: visibility 0s .4s; }
.sc-essay .w { transition: opacity .7s ease, filter .7s ease; transition-delay: var(--d, 0ms); }
.sc-essay.is-off .w { opacity: 0; filter: blur(6px); transition-duration: .35s; transition-delay: 0ms; }
.sc-note { color: var(--muted); font-size: .85em; }
@media (prefers-reduced-motion: reduce) { .sc-essay .w { filter: none !important; transition: opacity .2s !important; } }
.sc-sign { text-align: left; margin-top: 1.4em !important; }
/* Tablet (641–980): desktop composition kept — big image left; small images + title right, balanced by
   site.js so the image ends at the title's baseline — then the text as a full-width two-column block. */
@media (min-width: 641px) and (max-width: 980px) {
  .sc-hero { align-items: start; row-gap: 0; }
  .sc-hero-side { display: contents; }
  .sc-hero-main { grid-column: 1; grid-row: 1 / 3; }
  .sc-hero-pics { grid-column: 2; grid-row: 1; }
  .sc-title { grid-column: 2; grid-row: 2; align-self: end; margin: var(--g) 0 0; line-height: .8; }
  .sc-text { grid-column: 1 / -1; grid-row: 3; margin-top: calc(var(--g) * 1.4); }
  .sc-essay { columns: 2; column-gap: clamp(24px, 4vw, 40px); font-size: 15px; line-height: 1.65; }
}
/* Phone (<=640): every image at full size and true shape; text in one left-aligned, easy-to-read column. */
@media (max-width: 640px) {
  .sc-hero { grid-template-columns: 1fr; align-items: start; row-gap: 12px; }
  .sc-hero-side { display: contents; }
  .sc-hero-main { order: 0; }
  .sc-title { order: 1; font-size: clamp(26px, 9.4vw, 48px); margin: 18px 0 6px; }
  .sc-text { order: 2; }
  .sc-lang { justify-content: flex-start; margin-top: 4px; }
  .sc-essay {
    columns: 1; font-size: 16px; line-height: 1.72;
    text-align: left; hyphens: manual; -webkit-hyphens: manual;
  }
  .sc-essay p { margin-bottom: 1.15em; }
  .sc-hero-pics { order: 3; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
  .sc-hero-pics .sc-hero-a { grid-column: 1 / -1; }
  .sc-hero-pics .col--stack { display: contents; }
  .sc-hero-pics figure { aspect-ratio: var(--ar) !important; height: auto !important; }
}

.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font: 700 clamp(15px, 2vw, 22px)/1 var(--display); letter-spacing: .18em; text-transform: uppercase;
  margin: clamp(64px, 9vw, 120px) 0 clamp(20px, 3vw, 36px);
  padding-top: 18px; border-top: 1px solid var(--ink);
}
.section-title span { font-size: .62em; color: var(--muted); letter-spacing: .2em; }

/* ------------------------------------------------------------ about */

.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px);
  font-size: 17px; line-height: 1.75; max-width: 1240px;   /* comfortable line length on wide screens */
}
.about p { margin: 0 0 1.2em; }
/* 404 page */
.nf { max-width: 640px; padding: clamp(24px, 6vw, 80px) 0 clamp(40px, 8vw, 120px); }
.nf p { font-size: 17px; line-height: 1.7; margin: 0 0 32px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.nf-links a {
  font: 700 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 6px;
}
.nf-links a:hover { color: var(--muted); }

/* Full-width looping video banner, as on the live About page */
/* sized to the video's own shape (1236×514 crop), so the whole frame shows at every width */
.banner {
  margin: 0 calc(50% - 50vw); background: #111; overflow: hidden;
  aspect-ratio: 1236 / 514;
}
.banner video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.page-about main > .banner:first-child { margin-top: -12px; }
.page-about main > .banner:last-child { margin-top: clamp(48px, 7vw, 96px); margin-bottom: calc(-1 * clamp(48px, 8vw, 96px)); }
.about-portrait { max-width: 420px; margin: 0 0 clamp(32px, 5vw, 56px); }
.about-portrait img { width: 100%; }
.about h2 {
  font: 700 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  margin: 0 0 24px;
}
@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ footer */

.site-footer {
  background: #f0f0f0;
  padding: 36px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(24px, 5vw, 64px);
}
.site-footer > * { margin: 0; }
.site-footer h2 { font: 700 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 4vw, 48px); font-size: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copyright { margin-left: auto !important; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer ul { flex-direction: column; }
  .copyright { margin-left: 0 !important; }
}

/* ------------------------------------------------------------ lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 16px 16px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.lightbox-close, .lightbox-count {
  position: absolute; top: 18px;
  font: 700 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 0;
}
.lightbox-close { right: var(--gutter); }
.lightbox-count { left: var(--gutter); color: var(--muted); }
.lightbox img { transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1); touch-action: pan-y; }
.lightbox img.is-swapping { opacity: 0; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; display: grid; place-items: center; cursor: pointer;
  font: 300 30px/1 var(--text); color: var(--ink); opacity: .55; transition: opacity .2s;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 4px; } .lightbox-next { right: 4px; }
.lightbox.single .lightbox-prev, .lightbox.single .lightbox-next, .lightbox.single .lightbox-count { display: none; }
@media (hover: none) { .lightbox-prev, .lightbox-next { display: none; } }

/* ------------------------------------------------------------ motion */

html.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
