/* Halleli Fried — site styles */
:root {
  --bg: #efece5;
  --bg-2: #151513;
  --fg: #141412;
  --dim: #66625b;
  --line: rgba(20, 20, 18, .14);
  --paper: #efece5;
  --ink: #141412;
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; background: var(--bg); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.6; }
.dim { color: var(--dim); }
.serif { font-family: var(--serif); font-weight: 400; }
.it { font-style: italic; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--fg); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* grain */
body::after {
  content: ""; position: fixed; inset: -100%; z-index: 250; pointer-events: none; opacity: .075;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; will-change: transform;
}
@keyframes grain { 0% { transform: translate(0, 0) } 33% { transform: translate(-5%, 3%) } 66% { transform: translate(4%, -4%) } 100% { transform: translate(-2%, 5%) } }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 120; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); mix-blend-mode: difference; color: #f4efe5; view-transition-name: header;
}
.brand { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; padding: 10px 0; }
.brand em { font-style: italic; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 40px); align-items: center; }
.nav a { position: relative; padding: 12px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .loc { color: #9a978f; }
/* menu button (phones): a small round icon, two lines that turn into a cross */
.menu-btn { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn i:first-child { top: 18px; } .menu-btn i:last-child { top: 25px; }
.menu-open .menu-btn i:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { top: 21.5px; transform: rotate(-45deg); }

/* phone menu: a calm, scrollable sheet — main pages, then the projects (loaded from Wix), then links */
.mobile-nav {
  position: fixed; inset: 0; z-index: 110; background: var(--bg); color: var(--fg);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 96px var(--gutter) calc(36px + env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-io), visibility 0s linear .7s;
}
.mobile-nav.open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-io); }
.mnav__label { margin: 0 0 10px; }
.mnav__main, .mnav__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mnav__main a { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.mnav__main a span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--dim); }
.mnav__main a[aria-current="page"] { font-style: italic; }
.mnav__foot { margin-top: 34px; }
.mnav__list a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.mnav__list .th { width: 52px; height: 52px; background: var(--line); overflow: hidden; }
.mnav__list .th img { width: 100%; height: 100%; object-fit: cover; }
.mnav__list .go { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.mnav__all { display: inline-block; margin-top: 14px; padding: 8px 0; }
.mnav__foot { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 34px; }
.mnav__foot a { padding: 8px 0; }
.mobile-nav.open .mnav__main li, .mobile-nav.open .mnav__list li { animation: mnavIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
@keyframes mnavIn { from { opacity: 0; transform: translateY(14px); } }
.menu-open .site-header { background: var(--bg); }
@media (prefers-reduced-motion: reduce) { .mobile-nav.open li { animation: none; } }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------------------------------------------------------------- loader */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; align-items: flex-end; justify-content: space-between; padding: var(--gutter); pointer-events: none; }
.loader__name { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 4vw, 56px); }
.loader__count { font-family: var(--serif); font-size: clamp(80px, 16vw, 240px); line-height: .8; font-variant-numeric: tabular-nums; }
html:not(.js) .loader, .loader.done { display: none; }

/* ---------------------------------------------------------------- hero (home) */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform-origin: 50% 55%; }
.hero__shade { display: none; }
.hero { --ht: 19.2vw; --hb: 5vh; }
@supports (height: 1svh) { .hero { --ht: min(19.2vw, 30svh); --hb: max(5svh, 28px); } }
.hero__title {
  position: absolute; left: 0; right: 0; bottom: var(--hb); margin: 0; padding: 0 var(--gutter);
  font-family: var(--serif); font-weight: 400; font-size: var(--ht); line-height: .8; letter-spacing: -.045em;
  color: #f4efe5; mix-blend-mode: difference; display: flex; justify-content: space-between; white-space: nowrap;
}
.hero__title .w { display: inline-flex; overflow: clip; padding: .14em .02em .16em; margin: -.14em 0 -.12em; }
.hero__title .w:last-child { font-style: italic; }
.hero__title .ch { display: inline-block; }
.hero__top { position: absolute; z-index: 2; top: 96px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; color: var(--over); }
.hero__scroll { display: inline-flex; gap: 10px; align-items: center; }
.hero__scroll i { width: 1px; height: 36px; background: currentColor; transform-origin: top; animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: scaleY(0) } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }
.hero-cap { position: absolute; z-index: 2; right: var(--gutter); bottom: calc(var(--hb) + var(--ht) * 1.1); color: var(--over); text-align: right; max-width: 300px; }
.hero-cap .serif { color: var(--over); }

@media (max-width: 860px) {
  .hero { --ht: 25vw; }
  @supports (height: 1svh) { .hero { --ht: min(25vw, 15svh); } }
  .hero__title { flex-direction: column; }
  .hero__title .w:last-child { align-self: flex-end; }
  .hero-cap { bottom: auto; top: 150px; left: var(--gutter); text-align: left; }
}

/* ---------------------------------------------------------------- statement */
.statement { padding: 26vh var(--gutter) 22vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.statement .label { grid-column: 1 / span 2; padding-top: 1.4vw; }
.statement p { grid-column: 3 / span 10; margin: 0; font-family: var(--serif); font-size: clamp(30px, 4.6vw, 76px); line-height: 1.08; letter-spacing: -.02em; }
.statement p em { font-style: italic; }
.statement .wd { opacity: .16; transition: opacity .2s linear; }
html:not(.js) .statement .wd, .reduced .statement .wd { opacity: 1; }
.statement .more { grid-column: 3 / span 10; margin-top: 56px; }
@media (max-width: 860px) { .statement .label, .statement p, .statement .more { grid-column: 1 / -1; } .statement .label { margin-bottom: 24px; } }

.link-arrow { display: inline-flex; align-items: center; gap: 14px; padding: 12px 0; }
.link-arrow span:last-child { display: inline-block; transition: transform .6s var(--ease); }
.link-arrow:hover span:last-child { transform: translateX(8px); }

/* ---------------------------------------------------------------- section heads */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--gutter) 40px; }
.sec-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8.4vw, 150px); line-height: .85; letter-spacing: -.035em; }
.sec-head h2 em { font-style: italic; }

/* ---------------------------------------------------------------- horizontal gallery */
.hs { position: relative; padding-top: 16vh; }
.hs .sec-head { padding-bottom: 2vh; }
.hs .sec-head h2, .index .sec-head h2 { font-size: clamp(44px, 6vw, 104px); }
.hs__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.hs__viewport::-webkit-scrollbar { display: none; }
.hs__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hs__viewport.is-dragging .hs__item button { cursor: grabbing; }
.hs__ctrl { display: flex; align-items: center; gap: 10px; }
.hs__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--fg); font-family: var(--serif); font-size: 20px; cursor: pointer; transition: background .3s, color .3s, border-color .3s, opacity .3s; }
.hs__btn:hover:not(:disabled) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.hs__btn:disabled { opacity: .3; cursor: default; }
.hs__ctrl .link-arrow { margin-left: 14px; }
.hs__track { display: flex; gap: 5vw; align-items: flex-end; width: max-content; padding: 3vh var(--gutter) 4vh; }
.hs__item { margin: 0; display: flex; flex-direction: column; gap: 14px; scroll-snap-align: start; }
.hs__item button { all: unset; cursor: pointer; display: block; overflow: hidden; }
.hs__item img { height: min(56vh, 620px); width: auto; max-width: none; transition: transform 1.2s var(--ease); }
.hs__item button:hover img { transform: scale(1.03); }
.hs__item figcaption { display: flex; gap: 18px; max-width: 42ch; }
.hs__item figcaption .t { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.2; }
.hs__bar { margin: 0 var(--gutter); height: 1px; background: var(--line); position: relative; }
.hs__bar i { position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: left; }
@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .hs__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .hs__item { scroll-snap-align: start; }
  .hs__item img { height: 52vh; }
  .hs__bar { display: none; }
}

/* ---------------------------------------------------------------- project index */
.index { padding: 24vh 0 18vh; }
.index__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index__list li { border-bottom: 1px solid var(--line); }
.index__row {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: baseline; gap: 24px;
  padding: 3.2vh var(--gutter) 2.6vh; transition: opacity .5s var(--ease), color .5s;
}
.index__row .n { color: var(--dim); }
.index__row .t { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 72px); line-height: .95; letter-spacing: -.035em; transition: transform .8s var(--ease), font-style .2s; }
.index__row .meta { text-align: right; }
.index__row .t { transition: transform .8s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .index__row:hover .t { transform: translateX(2vw); font-style: italic; }
  .index__list:has(.index__row:hover) .index__row:not(:hover) { opacity: .22; }
}
@media (max-width: 860px) {
  .index__row { grid-template-columns: 1fr; gap: 10px; }
  .index__row .meta { text-align: left; }
  .index__row .n { display: none; }
}

.preview { position: fixed; left: 0; top: 0; z-index: 90; width: min(26vw, 380px); aspect-ratio: 4 / 5; pointer-events: none; clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease-io); will-change: transform; }
.preview.on { clip-path: inset(0); }
.preview img { width: 100%; height: 100%; object-fit: cover; }

.cursor { position: fixed; left: 0; top: 0; z-index: 220; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; mix-blend-mode: difference; display: none; will-change: transform; }
.cursor span { position: absolute; left: 30px; top: 50%; translate: 0 -50%; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s, translate .5s var(--ease); white-space: nowrap; }
.cursor .dot { position: absolute; inset: 0; border-radius: 50%; background: #fff; transition: transform .5s var(--ease); }
.has-cursor .cursor { display: block; }
.cursor.big .dot { transform: scale(2.4); }
.cursor.big span { opacity: 1; translate: 6px -50%; }
@media (hover: none), (pointer: coarse) { .cursor, .preview { display: none !important; } }

/* ---------------------------------------------------------------- studio collage */
.studio { padding: 8vh 0 20vh; }
.collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; row-gap: 12vh; padding: 0 var(--gutter); }
.collage figure { margin: 0; }
.collage button { all: unset; cursor: pointer; display: block; width: 100%; }
.collage img { width: 100%; height: auto; }
@media (max-width: 860px) {
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .collage figure { grid-column: auto !important; margin-top: 0 !important; }
}

/* ---------------------------------------------------------------- footer */
.foot { position: relative; padding: 14vh 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marq 28s linear infinite; }
.marquee a, .marquee span { font-family: var(--serif); font-size: clamp(72px, 15vw, 260px); line-height: .9; letter-spacing: -.04em; padding-right: .35em; white-space: nowrap; }
.marquee em { font-style: italic; }
.foot:hover .marquee { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%) } }
.foot__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 12vh var(--gutter) 0; align-items: end; }
.foot__row a { padding: 10px 0; display: inline-block; }
.foot__row .r { text-align: right; }
@media (max-width: 860px) { .foot__row { grid-template-columns: 1fr 1fr; } .foot__row .r { text-align: left; } }

/* ---------------------------------------------------------------- reveal helpers */
.js:not(.reduced) [data-reveal] { clip-path: inset(100% 0 0 0); }
.js:not(.reduced) [data-fade] { opacity: 0; transform: translateY(30px); }
[data-split] { font-kerning: none; }
.js:not(.reduced) [data-split] { visibility: hidden; }

/* ---------------------------------------------------------------- page intro (inner pages) */
.page-top { padding: 22vh var(--gutter) 8vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.page-top h1 { grid-column: 1 / span 8; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 13vw, 230px); line-height: .82; letter-spacing: -.045em; }
.page-top h1 em { font-style: italic; }
.page-top .aside { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; padding-bottom: 1.2vw; }
.page-top .aside p { margin: 0; font-family: var(--serif); font-size: clamp(19px, 1.6vw, 26px); line-height: 1.3; }
@media (max-width: 860px) { .page-top h1, .page-top .aside { grid-column: 1 / -1; } .page-top .aside { margin-top: 32px; } }

/* ---------------------------------------------------------------- works grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gutter) 48px; }
.filters button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; height: 44px; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); transition: color .3s, border-color .3s, background .3s; }
.filters button:hover { color: var(--fg); border-color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters sup { font-size: 9px; margin-left: 4px; }
.masonry { columns: 3; column-gap: 2.4vw; padding: 0 var(--gutter) 16vh; }
.masonry .w { break-inside: avoid; margin: 0 0 5vw; }
.masonry .w[hidden] { display: none; }
.masonry button { all: unset; cursor: pointer; display: block; width: 100%; overflow: hidden; }
.masonry img { width: 100%; transition: transform 1.4s var(--ease), filter .8s; }
.masonry button:hover img { transform: scale(1.035); }
.masonry figcaption { display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding-top: 14px; }
.masonry figcaption .t { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.masonry figcaption .t em { font-style: italic; }
.masonry figcaption .m { grid-column: 2; }
@media (max-width: 1100px) { .masonry { columns: 2; } }
@media (max-width: 600px) { .masonry { columns: 1; } }

/* ---------------------------------------------------------------- project pages */
.p-hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.p-hero img { position: absolute; inset: -8% 0 0 0; width: 100%; height: 116%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,11,.7), rgba(12,12,11,0) 55%); }
.p-hero h1 { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 6vh; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 10.5vw, 190px); line-height: .84; letter-spacing: -.04em; color: #fff; }
.p-hero h1 em { font-style: italic; }
.p-hero .top { position: absolute; z-index: 2; top: 96px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; color: #fff; }
.p-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 18vh var(--gutter) 16vh; }
.p-intro .facts { grid-column: 1 / span 4; display: flex; flex-direction: column; }
.p-intro .facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.p-intro .text { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 1.2em; }
.p-intro .text p { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.5vw, 40px); line-height: 1.2; letter-spacing: -.012em; }
.p-intro .text p:first-child::first-letter { font-style: italic; }
@media (max-width: 860px) { .p-intro .facts, .p-intro .text { grid-column: 1 / -1; } .p-intro .text { margin-top: 48px; order: -1; } }

.seq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; row-gap: 12vh; padding: 0 var(--gutter) 20vh; align-items: start; }
.seq figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.seq button { all: unset; cursor: pointer; display: block; width: 100%; overflow: hidden; }
.seq img { width: 100%; transition: transform 1.4s var(--ease); }
.seq button:hover img { transform: scale(1.03); }
.seq .full { grid-column: 1 / -1; }
.seq .l7 { grid-column: 1 / span 7; }
.seq .r5 { grid-column: 9 / span 4; margin-top: 30vh; }
.seq .c6 { grid-column: 4 / span 6; }
.seq .l5 { grid-column: 2 / span 4; margin-top: 18vh; }
.seq .r6 { grid-column: 7 / span 6; }
.seq .l6 { grid-column: 1 / span 6; }
.seq .r4 { grid-column: 8 / span 4; margin-top: 14vh; }
@media (max-width: 860px) { .seq { row-gap: 40px; } .seq figure { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

.next { display: block; position: relative; padding: 16vh var(--gutter) 18vh; border-top: 1px solid var(--line); overflow: hidden; }
.next .t { display: block; font-family: var(--serif); font-size: clamp(56px, 11vw, 200px); line-height: .85; letter-spacing: -.04em; margin-top: 24px; transition: transform 1s var(--ease); }
.next:hover .t { transform: translateX(2vw); font-style: italic; }
.next .bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .8s; }
.next .bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.35); transform: scale(1.1); transition: transform 1.6s var(--ease); }
.next:hover .bg { opacity: 1; }
.next:hover .bg img { transform: scale(1); }

/* ---------------------------------------------------------------- about */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 0 var(--gutter) 16vh; }
.about__portrait { grid-column: 1 / span 5; position: sticky; top: 90px; align-self: start; }
.about__portrait .frame { overflow: hidden; }
.about__portrait img { width: 100%; transform: scale(1.12); }
.about__body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 12vh; }
.about__bio p { margin: 0 0 1em; font-family: var(--serif); font-size: clamp(22px, 2.1vw, 34px); line-height: 1.24; letter-spacing: -.01em; }
.cv h2 { margin: 0 0 18px; }
.cv__row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.cv__row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; }
.cv__row ul em { font-family: var(--serif); font-size: 19px; }
@media (max-width: 860px) { .about__portrait, .about__body { grid-column: 1 / -1; position: static; } .about__body { margin-top: 64px; } .cv__row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 0 var(--gutter) 16vh; }
.contact form { grid-column: 1 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.wide { grid-column: 1 / -1; }
.field input, .field textarea { font: inherit; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0 14px; resize: none; transition: border-color .4s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.send { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 16px; height: 64px; padding: 0 34px; border-radius: 999px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; transition: background .4s, color .4s; }
.send:hover { background: transparent; color: var(--fg); }
.contact aside { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 40px; }
.contact aside .big { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 42px); line-height: 1.1; }
.contact aside .big em { font-style: italic; }
@media (max-width: 860px) { .contact form, .contact aside { grid-column: 1 / -1; } .contact aside { margin-top: 72px; } .contact form { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- lightbox */
.lb { max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; margin: 0; padding: 0; border: 0; background: #080808; color: #ecebe6; --fg: #ecebe6; --dim: #8f8c85; }
.lb::backdrop { background: rgba(0, 0, 0, .8); }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lbIn .6s var(--ease); }
@keyframes lbIn { from { opacity: 0 } }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 clamp(56px, 8vw, 120px); min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; animation: lbImg .7s var(--ease); }
@keyframes lbImg { from { opacity: 0; transform: scale(.97) } }
.lb__cap { padding: 16px var(--gutter) 22px; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.lb__cap .t { font-family: var(--serif); font-size: 22px; }
.lb__cap .t em { font-style: italic; }
.lb button { background: none; border: 0; cursor: pointer; min-width: 48px; min-height: 48px; }
.lb__prev, .lb__next { position: absolute; top: 50%; translate: 0 -50%; font-family: var(--serif); font-size: 34px; }
.lb__prev { left: 8px; } .lb__next { right: 8px; }
.lb__close { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.lb__stage img { cursor: zoom-in; }
.loupe { position: fixed; left: 0; top: 0; width: 240px; height: 240px; border-radius: 50%; pointer-events: none; z-index: 5; background-repeat: no-repeat; background-color: #111; box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 30px 80px rgba(0,0,0,.6); opacity: 0; transition: opacity .3s; }
.loupe.on { opacity: 1; }
.lb__hint { display: none; }
@media (hover: hover) and (pointer: fine) { .lb__hint--mouse { display: inline; } }
@media (hover: none), (pointer: coarse) {
  .lb__hint--touch { display: inline; text-align: center; padding: 0 8px; }
  .lb__stage img { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; cursor: default; }
  .loupe { width: 170px; height: 170px; }
}

/* ---------------------------------------------------------------- view transitions */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: .5s var(--ease-io) both vtOut; }
::view-transition-new(root) { animation: .9s var(--ease-io) both vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-4vh) scale(.985); } }
@keyframes vtIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }

@media (prefers-reduced-motion: reduce) {
  body::after, .marquee, .hero__scroll i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- v2 additions */
.index__row { transition: opacity .5s var(--ease); }
/* desktop: the strip is collapsed (max-height 0) and opens on hover — works the same in Chrome and Safari */
.index__row .strip { grid-column: 2 / -1; display: block; overflow: hidden; min-width: 0; max-height: 0; transition: max-height .9s var(--ease); }
.index__row .strip > span { display: flex; gap: 10px; padding-top: 0; transition: padding .9s var(--ease); }
.index__row .strip img { height: 21vh; width: auto; max-width: none; flex-shrink: 0; opacity: 0; transform: translateY(40%); transition: opacity .7s, transform 1s var(--ease); }
.index__row:hover .strip, .index__row:focus-visible .strip { max-height: 32vh; }
.index__row:hover .strip > span, .index__row:focus-visible .strip > span { padding-top: 3vh; }
.index__row:hover .strip img, .index__row:focus-visible .strip img { opacity: 1; transform: none; }
.index__row:hover .strip img:nth-child(2) { transition-delay: .04s; } .index__row:hover .strip img:nth-child(3) { transition-delay: .08s; }
.index__row:hover .strip img:nth-child(4) { transition-delay: .12s; } .index__row:hover .strip img:nth-child(5) { transition-delay: .16s; }
.index__row:hover .strip img:nth-child(6) { transition-delay: .2s; } .index__row:hover .strip img:nth-child(7) { transition-delay: .24s; }
/* phones and touch screens: the strip is always there and swipes sideways; its images slide up
   the first time the project comes into view (main.js adds .in-view). Nothing opens or closes,
   so the page never jumps while scrolling. */
@media (hover: none), (pointer: coarse), (max-width: 860px) {
  .index__row { grid-template-columns: minmax(0, 1fr); }
  .index__row .strip, .index__row:hover .strip, .index__row:focus-visible .strip { grid-column: 1 / -1; overflow: visible; max-height: none; min-width: 0; margin: 0 calc(-1 * var(--gutter)); transition: none; }
  .index__row .strip > span, .index__row:hover .strip > span, .index__row:focus-visible .strip > span {
    gap: 8px; padding: 14px var(--gutter) 4px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; transition: none;
  }
  .index__row .strip > span::-webkit-scrollbar { display: none; }
  .index__row .strip img, .index__row:hover .strip img { height: clamp(110px, 32vw, 180px); scroll-snap-align: start; opacity: 1; transform: none; transition: opacity .7s, transform 1s var(--ease); }
  .js:not(.reduced) .index__row:not(.in-view) .strip img { opacity: 0; transform: translateY(28px); }
  .index__row.in-view .strip img:nth-child(2) { transition-delay: .06s; } .index__row.in-view .strip img:nth-child(3) { transition-delay: .12s; }
  .index__row.in-view .strip img:nth-child(4) { transition-delay: .18s; } .index__row.in-view .strip img:nth-child(5) { transition-delay: .24s; }
  .index__row.in-view .strip img:nth-child(n+6) { transition-delay: .3s; }
}

.foot__cta { display: flex; flex-direction: column; gap: 3vh; padding: 0 var(--gutter); }
.foot__cta .big { font-family: var(--serif); font-size: clamp(64px, 12.5vw, 230px); line-height: .85; letter-spacing: -.045em; }
.foot__cta .big em { font-style: italic; }
.foot__cta .arr { display: inline-block; font-style: normal; transition: transform 1s var(--ease); }
.foot__cta:hover .arr { transform: translateX(3vw) rotate(-45deg); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 0 var(--gutter) 48px; }
.toolbar .filters { padding: 0; }
.order { display: flex; align-items: center; gap: 8px; }
.order .mono { margin-right: 8px; }
.order button { background: none; border: 0; border-bottom: 1px solid transparent; height: 44px; padding: 0 6px; cursor: pointer; font-family: var(--serif); font-size: 20px; color: var(--dim); transition: color .3s; }
.order button:hover { color: var(--fg); }
.order button[aria-pressed="true"] { color: var(--fg); font-style: italic; }
.masonry { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.4vw; row-gap: 6vw; align-items: start; }
.masonry .w { margin: 0; }
@media (max-width: 1100px) { .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .masonry { grid-template-columns: minmax(0, 1fr); } }

/* split-line masks: leave room for descenders */
[data-split] > div { padding-bottom: .14em; margin-bottom: -.14em; }

/* ---------------------------------------------------------------- Wix-loaded states */
.state-note { margin: 0; padding: 6vh var(--gutter); }
.index__list .state-note, .masonry .state-note, .hs__track .state-note { padding-left: 0; }
.contact__form { grid-column: 1 / span 7; }
.contact__form form { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.err { color: #f0b3a6; font-size: 11px; min-height: 1em; }
.form-err { grid-column: 1 / -1; margin: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #f0b3a6; }
.send:disabled { opacity: .5; cursor: progress; }
.thanks { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.thanks .big, .contact__form > .big { margin: 0; font-family: var(--serif); font-size: clamp(32px, 3.6vw, 56px); line-height: 1.1; }
.thanks button { background: none; border: 0; cursor: pointer; color: var(--fg); }
@media (max-width: 860px) { .contact__form { grid-column: 1 / -1; } .contact__form form { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Lenis (inlined from lenis@1.3.26/dist/lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch], .lenis [data-lenis-prevent-vertical], .lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

/* viewer on narrow screens: one tidy top bar, more room for the work */
.lb__count, .lb__close { white-space: nowrap; }
@media (max-width: 600px) {
  .lb__stage { padding: 0 40px; }
  .lb__prev, .lb__next { font-size: 26px; min-width: 40px; }
  .lb__prev { left: 0; } .lb__next { right: 0; }
}

/* ---------------------------------------------------------------- text over images */
/* --over: the colour of small text sitting on a full-screen image. Light text by default;
   dark when the opening image is light (body[data-hero-tone="light"], measured from the image). */
body { --over: #f4efe5; --scrim: rgba(12, 12, 11, .45); --halo: rgba(12, 12, 11, .35); }
body[data-hero-tone="light"] { --over: #141412; --scrim: rgba(244, 239, 229, .62); --halo: rgba(244, 239, 229, .55); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34%; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, var(--scrim), transparent); }
.hero__top, .hero-cap { text-shadow: 0 0 14px var(--halo); }
.site-header.over-image { mix-blend-mode: normal; color: var(--over); }
.site-header.over-image .loc { color: inherit; opacity: .75; }
.menu-open .site-header { mix-blend-mode: normal; color: var(--fg); }
/* project pages: a soft dark band at the top so the white line and the menu always read */
.p-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 30%; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(12, 12, 11, .5), transparent); }
body:not([data-hero-tone]) .site-header.over-image { color: #f4efe5; }
/* "Next project": the darkened photo behind it needs light text, whatever the theme */
.next:hover { color: #f4efe5; }
.next:hover .dim { color: rgba(244, 239, 229, .75); }
.next .bg { z-index: 0; }
.next > span:not(.bg) { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- phone fixes (iPhone sweep) */
/* the page can never be wider than the screen (no sideways wobble on touch) */
html { overflow-x: clip; }
/* contact image: hold it to its column */
.contact aside figure button { all: unset; display: block; width: 100%; cursor: pointer; }
.contact aside img { width: 100%; height: auto; }
@media (max-width: 860px) {
  /* "Selected works": arrows + "All works" on their own line under the title */
  .hs .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hs__ctrl { flex-wrap: wrap; }
  .hs__ctrl .link-arrow { margin-left: 6px; }
}

/* ---------------------------------------------------------------- phone spacing */
/* the large-screen section spacing (20–26% of the screen height) reads as empty gaps on a phone */
@media (max-width: 860px) {
  .statement { padding: 11vh var(--gutter) 9vh; }
  .statement .wd { opacity: .3; }
  .hs { padding-top: 8vh; }
  .index { padding: 10vh 0 8vh; }
  .studio { padding: 4vh 0 10vh; }
  .foot { padding-top: 8vh; }
  .foot__row { padding-top: 7vh; }
  .page-top { padding: 15vh var(--gutter) 6vh; }
  .p-intro { padding: 9vh var(--gutter) 8vh; }
  .seq { padding-bottom: 10vh; }
  .next { padding: 9vh var(--gutter) 10vh; }
  .about, .contact, .masonry { padding-bottom: 10vh; }
  .about__body { gap: 7vh; }
}

.mnav__all[hidden] { display: none; }
