/* ==========================================================================
   Isaac Tychicas, photographer
   Ground: a deep teal-black, the "teal" of a teal-and-orange grade, so the
   warm tones in the photographs do the talking.
   Accent: not fixed. Scripts set --accent from the photograph on screen.
   Type: Poppins throughout (a geometric sans close to the lettering in the logo), bundled.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-300.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ground: #0f1716;
  --ground-2: #162321;
  --ground-3: #1f2f2d;
  --paper: #ece6d8;
  --paper-2: #c9c3b5;
  --muted: #8c9a96;
  --line: rgba(236, 230, 216, .14);
  --line-strong: rgba(236, 230, 216, .36);
  --accent: #ece6d8;

  --display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.4vw, 48px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--ground); color: var(--paper);
  scrollbar-color: #33433f var(--ground);
  scrollbar-gutter: stable;
  overflow-x: clip;
}
body {
  margin: 0; min-height: 100vh;
  font: 400 .95rem/1.75 var(--sans);
  background: var(--ground); color: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--paper); color: var(--ground); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -70px; z-index: 400;
  background: var(--paper); color: var(--ground); padding: 10px 16px; border-radius: 4px; font-weight: 500;
}
.skip:focus { top: 12px; }
html.lb-open, html.menu-open, html.intro { overflow: hidden; }

#scene { position: relative; }

/* page arrival and intro start closed; scripts open the aperture. The failsafe
   animation reveals the page if scripts never run. */
html.arrive #scene, html.intro:not(.intro-run) #scene {
  clip-path: circle(0px at 50% 50%);
  animation: failsafe .01s linear 6s forwards;
}
@keyframes failsafe { to { clip-path: none; } }
html.intro .bar { opacity: 0; }
html.intro-done .bar { transition: opacity .8s ease, background-color .4s ease; }

/* ---------- header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background-color .4s ease;
}
.bar::before {
  content: ""; position: absolute; inset: 0 0 -64px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(4, 9, 9, .72) 0, rgba(4, 9, 9, .55) 28%, rgba(4, 9, 9, .3) 56%, rgba(4, 9, 9, .1) 80%, rgba(4, 9, 9, 0) 100%);
  transition: opacity .4s ease;
}
.bar:not(.is-solid) .nav a, .bar:not(.is-solid) .menu-btn, .bar:not(.is-solid) .brand { text-shadow: 0 1px 16px rgba(4, 9, 9, .6); }
.bar.is-solid {
  background: rgba(15, 23, 22, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.bar.is-solid::before { opacity: 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 700 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; transition: opacity .4s ease; }
.brand .mark { height: 22px; }
body[data-page="home"] .bar:not(.is-solid) .brand { opacity: 0; pointer-events: none; }

.nav { display: flex; gap: clamp(18px, 2.6vw, 38px); font-size: .97rem; }
.nav a, .link {
  position: relative; padding: 6px 0;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"], .link:hover { background-size: 100% 1px; }
.menu-btn { display: none; font-weight: 500; font-size: .95rem; padding: 10px 0 10px 16px; }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ground);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--header-h) var(--gutter) 40px;
}
.menu a { display: block; font: 300 clamp(1.8rem, 8.5vw, 3rem)/1.2 var(--display); letter-spacing: 0; padding: 4px 0; }
.menu a[aria-current="page"] { color: var(--accent); }
.menu p { margin-top: 28px; color: var(--muted); font-size: .95rem; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-weight: 500; font-size: .98rem; line-height: 1.1;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover { background: var(--paper); color: var(--ground); border-color: var(--paper); }
.btn--solid { background: var(--paper); color: var(--ground); border-color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--paper); border-color: var(--line-strong); }

/* ---------- home: hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 540px;
  overflow: hidden; background: #050a0a;
}
.hero-slides { position: absolute; inset: 0; cursor: pointer; }
.slide { position: absolute; inset: 0; visibility: hidden; }
.slide.is-current, .slide.is-next { visibility: visible; }
.slide.is-current { z-index: 1; }
.slide.is-next { z-index: 2; }
.slide .zoom { position: absolute; inset: 0; }
.slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 56%;
}
.slide.is-current img { animation: drift 18s linear forwards; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(4, 9, 9, .74) 0, rgba(4, 9, 9, .2) 32%, rgba(4, 9, 9, 0) 56%);
}
.hero-copy {
  position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter);
  bottom: clamp(24px, 5.5vh, 60px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.hero h1 { font: 700 clamp(1.4rem, 3vw, 3rem)/1.1 var(--display); letter-spacing: .09em; text-transform: uppercase; }
.tagline { margin-top: 14px; font-size: clamp(.82rem, 1vw, .95rem); letter-spacing: .04em; color: var(--paper-2); max-width: 40ch; }
.hero-meta { text-align: right; max-width: 36ch; flex: none; }
.hero-meta .t { font: 400 1rem/1.25 var(--display); }
.hero-meta .x {
  margin-top: 8px; font-size: .82rem; color: var(--paper-2); font-variant-numeric: tabular-nums;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 16px;
}
.dots { margin-top: 18px; display: flex; justify-content: flex-end; gap: 6px; }
.dots button { position: relative; width: 38px; height: 24px; }
.dots button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(236, 230, 216, .3);
}
.dots i { position: absolute; left: 0; top: 11px; height: 2px; width: 0; background: var(--accent); }
.dots button[aria-current="true"] i { animation: dwell var(--dwell, 7s) linear forwards; }
.dots.is-paused button[aria-current="true"] i { animation-play-state: paused; }
.dots.is-static button[aria-current="true"] i { animation: none; width: 100%; }
@keyframes dwell { to { width: 100%; } }

@media (max-width: 719px) {
  .hero-copy { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-meta { text-align: left; max-width: none; }
  .hero-meta .x { justify-content: flex-start; }
  .dots { justify-content: flex-start; margin-top: 12px; }
}

/* ---------- home: collections ---------- */
.collections { padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(56px, 9vw, 130px); }
.coll { display: block; border-top: 1px solid var(--line); padding: clamp(8px, 1.4vw, 20px) 0; }
.coll:last-child { border-bottom: 1px solid var(--line); }
.coll-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.word {
  position: relative; display: inline-block; flex: 0 1 auto;
  font: 700 clamp(1.3rem, 2.9vw, 2.8rem)/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 230, 216, .3);
  transition: transform .8s var(--ease);
}
.word .fill {
  position: absolute; inset: 0;
  -webkit-text-fill-color: transparent; color: transparent; -webkit-text-stroke: 0;
  background-size: cover; background-position: 50% 42%;
  /* a floor under dark photographs so the word stays readable on the dark ground */
  background-color: rgba(236, 230, 216, .34); background-blend-mode: screen;
  -webkit-background-clip: text; background-clip: text;
  opacity: 0; transition: opacity .8s ease;
}
.word .fill.on { opacity: 1; }
.coll-meta { flex: none; text-align: right; max-width: 24ch; font-size: .82rem; color: var(--paper-2); line-height: 1.45; }
.coll-meta b { display: block; margin-bottom: 2px; color: var(--paper); font-weight: 500; }
@media (hover: hover) {
  .coll:hover .word, .coll:focus-visible .word { transform: translateX(1.2vw); }
  .coll:hover .fill.on { animation: pan 9s linear infinite alternate; }
}
@keyframes pan { from { background-position: 50% 22%; } to { background-position: 50% 78%; } }
@media (max-width: 759px) {
  .coll-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .coll-meta { text-align: left; max-width: none; }
  .word { white-space: normal; font-size: clamp(1.3rem, 6vw, 2rem); }
}

/* ---------- home: selected work ---------- */
.selected { padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 9vw, 130px); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter); margin-bottom: clamp(18px, 2.4vw, 32px);
}
.sec-head h2 { font: 700 clamp(.95rem, 1.25vw, 1.2rem)/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.arrivals { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(24px, 4vw, 56px); }
.arrivals[hidden] { display: none; }
.sec-sub { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.tile .new-tag {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--paper); color: var(--ground); font: 500 .68rem/1 var(--sans, inherit); letter-spacing: .01em;
  pointer-events: none;
}
.strip-ctl { display: flex; gap: 8px; }
.strip-ctl button {
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.strip-ctl button:hover { background: var(--paper); color: var(--ground); border-color: var(--paper); }
.strip-ctl svg, .lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.strip {
  display: flex; gap: clamp(10px, 1.3vw, 20px); overflow-x: auto; padding: 0 var(--gutter) 10px;
  scroll-snap-type: x proximity; scroll-padding-left: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; }
.strip.is-dragging, .strip.is-free { scroll-snap-type: none; }
.frame { flex: none; scroll-snap-align: start; display: block; -webkit-user-drag: none; user-select: none; }
.frame .im {
  position: relative; display: block; overflow: hidden; background: var(--c, var(--ground-2));
  height: clamp(250px, 52vh, 520px); aspect-ratio: var(--ar, 1.5);
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; transition: transform 1.2s var(--ease); }
.frame:hover img { transform: scale(1.03); }
.frame .cap { display: block; margin-top: 12px; }
.frame .cap b { display: block; font: 400 .95rem/1.3 var(--display); }
.frame .cap span { font-size: .84rem; color: var(--muted); }

/* ---------- home: about teaser + CTA ---------- */
.teaser {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px);
  align-items: center; padding: clamp(40px, 7vw, 110px) var(--gutter);
  border-top: 1px solid var(--line);
}
.teaser .pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c, var(--ground-2)); }
.teaser .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teaser h2 { font: 300 clamp(1.4rem, 2.2vw, 2rem)/1.25 var(--display); letter-spacing: 0; }
.teaser p { margin-top: 20px; max-width: 46ch; color: var(--paper-2); }
.teaser .btn { margin-top: 30px; }
.teaser figcaption { margin-top: 12px; font-size: .85rem; color: var(--muted); }
@media (max-width: 759px) { .teaser { grid-template-columns: 1fr; } .teaser .pic { aspect-ratio: 5 / 4; } }

.cta { padding: clamp(56px, 10vw, 150px) var(--gutter); border-top: 1px solid var(--line); }
.cta p { font: 300 clamp(1.4rem, 2.6vw, 2.4rem)/1.3 var(--display); letter-spacing: 0; max-width: 14em; text-wrap: balance; }
.cta .btn { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line); padding: clamp(32px, 5vw, 64px) var(--gutter) 28px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px 40px; font-size: .95rem; color: var(--paper-2);
}
.foot .mark { height: 52px; margin-bottom: 20px; color: var(--paper); }
.foot .name { font: 700 .95rem/1.2 var(--sans); color: var(--paper); letter-spacing: .16em; text-transform: uppercase; }
.foot .sub { margin-top: 10px; font-size: .62rem; font-weight: 300; letter-spacing: .8em; text-transform: uppercase; color: var(--muted); }
.foot .name + p { margin-top: 10px; max-width: 32ch; }
.foot ul { display: grid; gap: 4px; justify-items: start; }
.foot h2 { font-size: .85rem; font-weight: 500; color: var(--paper); margin-bottom: 8px; }
.foot small { grid-column: 1 / -1; margin-top: 8px; color: var(--muted); font-size: .8rem; }
@media (max-width: 719px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }

/* ---------- gallery ---------- */
.g-head { padding: calc(var(--header-h) + clamp(28px, 6vw, 84px)) var(--gutter) clamp(20px, 3vw, 36px); }
.g-head h1 { font: 300 clamp(2rem, 3.8vw, 3.6rem)/1.1 var(--display); letter-spacing: -.01em; }
.g-head p { margin-top: 14px; color: var(--paper-2); max-width: 52ch; }
.filters {
  position: sticky; top: var(--header-h); z-index: 30;
  padding: 12px var(--gutter); border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 22, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
}
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-label { font-size: .85rem; color: var(--muted); margin-right: 2px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 15px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: .92rem; line-height: 1.2;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.chip .n { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ground); border-color: var(--paper); }
.chip[aria-pressed="true"] .n { color: rgba(15, 23, 22, .62); }
.clear { font-size: .9rem; color: var(--paper-2); text-decoration: underline; text-underline-offset: 3px; }
.clear:hover { color: var(--paper); }
.g-status {
  display: flex; align-items: baseline; gap: 6px 18px; flex-wrap: wrap;
  margin: 0; padding: 16px var(--gutter) 0; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
/* on a phone the filters become one row that scrolls sideways, so the sticky bar stays slim */
@media (max-width: 719px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; gap: 8px 22px; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chips { flex-wrap: nowrap; flex: none; }
  .chip, .chips-label { white-space: nowrap; flex: none; }
}

.grid { position: relative; margin: clamp(14px, 2vw, 26px) var(--gutter) clamp(56px, 9vw, 130px); min-height: 40vh; }
.tile {
  position: absolute; display: block; overflow: hidden; background: var(--c, var(--ground-2)); border-radius: 2px;
  transition: left .85s var(--ease), top .85s var(--ease), width .85s var(--ease), height .85s var(--ease), opacity .45s ease;
  -webkit-tap-highlight-color: transparent;
}
.tile.no-anim { transition: none; }
.tile.is-out { opacity: 0; pointer-events: none; }
.tile .ph { position: absolute; inset: -14%; background-size: cover; background-position: center; filter: blur(14px) saturate(1.1); }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .7s ease, transform 1.2s var(--ease);
}
.tile img.is-loaded { opacity: 1; }
@media (hover: hover) { .tile:hover img { transform: scale(1.04); } }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  background: linear-gradient(to top, rgba(4, 9, 9, .76), rgba(4, 9, 9, 0));
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .5s var(--ease);
}
.tile:focus-visible .cap { opacity: 1; transform: none; }
@media (hover: hover) { .tile:hover .cap { opacity: 1; transform: none; } }
.tile .cap b { font: 400 .95rem/1.3 var(--display); }
.tile .cap span { font-size: .78rem; color: var(--paper-2); text-align: right; }
.tile { container-type: inline-size; }
@container (max-width: 200px) {
  .tile .cap { padding: 28px 10px 9px; }
  .tile .cap b { font-size: .92rem; }
  .tile .cap span { display: none; }
}
@keyframes develop {
  from { opacity: 0; filter: brightness(.3) saturate(0) blur(8px); }
  to { opacity: 1; filter: none; }
}
.tile.develop { animation: develop 1.5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }

.g-empty { padding: 14vh var(--gutter); text-align: center; color: var(--paper-2); }
.g-empty p { font: 300 1.3rem/1.3 var(--display); color: var(--paper); margin-bottom: 18px; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; background: #090e0d;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overscroll-behavior: contain; touch-action: pan-y;
}
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); min-height: 64px; }
.lb-count { font-size: .9rem; color: var(--paper-2); font-variant-numeric: tabular-nums; }
.lb-close { font-weight: 500; padding: 10px 2px; }
.lb-close:hover { color: var(--accent); }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 clamp(10px, 5.4vw, 92px); }
.lb-fig { display: grid; place-items: center; transition: opacity .3s ease, transform .55s var(--ease); }
.lb-fig.is-out { opacity: 0; transition-duration: .16s; }
.lb-fig.pre-in { opacity: 0; transform: translateX(var(--dx, 0)); transition: none; }
.lb-fig img { display: block; background: var(--c, var(--ground-2)); max-width: none; }
.lb-nav {
  position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center; z-index: 2;
  background: rgba(15, 23, 22, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .25s ease, color .25s ease;
}
.lb-nav:hover { background: var(--paper); color: var(--ground); }
.lb-prev { left: clamp(6px, 1.4vw, 22px); }
.lb-next { right: clamp(6px, 1.4vw, 22px); }
.lb-cap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: end;
  padding: 16px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px));
}
.lb-title { font: 400 clamp(1.15rem, 1.7vw, 1.5rem)/1.25 var(--display); }
.lb-sub { margin-top: 6px; font-size: .9rem; color: var(--paper-2); }
.lb-right { text-align: right; font-size: .84rem; color: var(--paper-2); line-height: 1.5; font-variant-numeric: tabular-nums; }
.lb-right .set { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 16px; }
.ai-tag {
  display: inline-block; margin-top: 6px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .76rem; color: var(--paper);
}
@media (max-width: 719px) {
  .lb-nav { width: 44px; height: 44px; margin-top: -22px; }
  .lb-cap { grid-template-columns: 1fr; }
  .lb-right { text-align: left; }
  .lb-right .set { justify-content: flex-start; }
}

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 110px);
  padding: calc(var(--header-h) + clamp(28px, 6vw, 84px)) var(--gutter) clamp(56px, 9vw, 130px);
}
.about-fig { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
/* the picture keeps its own proportions, but never grows taller than the screen it sticks to */
.about-fig .pic {
  position: relative; overflow: hidden; background: var(--c, var(--ground-2)); aspect-ratio: var(--ar, .8);
  width: min(100%, calc((100vh - var(--header-h) - 120px) * var(--ar, .8)));
  width: min(100%, calc((100svh - var(--header-h) - 120px) * var(--ar, .8)));
}
.about-fig .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
img.fade { opacity: 0; transition: opacity .9s ease; }
img.fade.is-loaded { opacity: 1; }
.about-fig figcaption { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.about-body h1 { font: 300 clamp(2rem, 3.8vw, 3.6rem)/1.1 var(--display); letter-spacing: -.01em; }
.about-body .prose { margin-top: clamp(24px, 3vw, 40px); display: grid; gap: 18px; max-width: 56ch; color: var(--paper-2); font-size: 1.1rem; line-height: 1.65; }
.about-body .prose p:first-child { color: var(--paper); }
.about-body h2 { margin-top: clamp(40px, 6vw, 80px); font: 300 clamp(1.3rem, 1.9vw, 1.7rem)/1.2 var(--display); }
.rows { margin-top: 16px; max-width: 56ch; border-top: 1px solid var(--line); }
.rows li, .rows a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.rows a { transition: padding .35s var(--ease), color .25s ease; }
.rows a:hover { padding-left: 8px; color: var(--accent); }
.rows .what { font-weight: 500; }
.rows .note { color: var(--muted); font-size: .9rem; text-align: right; }
.about-body .btn { margin-top: clamp(32px, 4vw, 52px); }
@media (max-width: 859px) { .about { grid-template-columns: 1fr; } .about-fig { position: static; } .about-fig .pic { width: 100%; aspect-ratio: 4 / 3; } }

/* ---------- contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 120px);
  padding: calc(var(--header-h) + clamp(28px, 6vw, 84px)) var(--gutter) clamp(56px, 9vw, 130px);
}
.contact h1 { font: 300 clamp(2rem, 3.8vw, 3.6rem)/1.1 var(--display); letter-spacing: -.01em; }
.contact .intro-p { margin-top: clamp(18px, 2.4vw, 30px); max-width: 38ch; color: var(--paper-2); font-size: 1.1rem; }
.reach { margin-top: clamp(28px, 4vw, 52px); display: grid; gap: 10px; justify-items: start; }
.reach .mail { font: 300 clamp(1.15rem, 1.9vw, 1.6rem)/1.3 var(--display); word-break: break-word; }
.reach .soft { color: var(--paper-2); font-size: .95rem; }
.reach .socials { display: flex; flex-wrap: wrap; gap: 2px 24px; font-size: .98rem; }
.reach .todo { color: var(--paper-2); font-size: .95rem; max-width: 36ch; border-left: 2px solid var(--line-strong); padding-left: 14px; }
.form { display: grid; gap: 24px; align-content: start; }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--paper); background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--line-strong); padding: 10px 0 12px; transition: border-color .25s ease;
}
.field textarea { resize: vertical; min-height: 9.5rem; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--paper); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field .err { color: #f2b8a2; font-size: .88rem; min-height: 1.2em; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { min-height: 1.5em; color: var(--paper-2); }
.form-note.ok { color: var(--paper); }
.form-note.bad { color: #f2b8a2; }
.form .btn { justify-self: start; }
@media (max-width: 859px) { .contact { grid-template-columns: 1fr; } }

/* ---------- shown only when scripts are switched off ---------- */
.noscript-note { padding: calc(var(--header-h) + 14vh) var(--gutter) 14vh; font-size: 1.1rem; color: var(--paper-2); display: grid; gap: 16px; justify-items: start; }
.noscript-note p:first-child { font: 300 clamp(1.3rem, 2.4vw, 1.9rem)/1.3 var(--display); color: var(--paper); max-width: 22em; }
.noscript-note .link { margin-right: 22px; }
.about > noscript, .contact > noscript { grid-column: 1 / -1; }

/* ---------- aperture intro ---------- */
html.intro-run #scene { will-change: clip-path; }
.intro-layer { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: grid; place-items: center; }
.intro-layer > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-layer polygon { fill: none; stroke: rgba(236, 230, 216, .6); stroke-width: 1; vector-effect: non-scaling-stroke; }
.intro-core {
  position: relative; display: grid; place-items: center;
  color: #fff; mix-blend-mode: difference; opacity: 0; animation: coreIn .9s .1s ease forwards;
}
.intro-core .intro-f {
  font: 700 clamp(1.05rem, 1.7vw, 1.5rem)/1 var(--sans); letter-spacing: .18em; margin-right: -.18em;
  font-variant-numeric: tabular-nums;
}
.intro-core.is-gone { animation: none; opacity: 0; transition: opacity .6s ease; }
@keyframes coreIn { to { opacity: 1; } }
.intro-layer .skip-intro {
  position: absolute; right: var(--gutter); bottom: 24px; pointer-events: auto;
  font-size: .9rem; color: var(--paper-2); padding: 8px 4px;
}
.intro-layer .skip-intro:hover { color: var(--paper); }

/* ---------- camera cursor (mouse only) ---------- */
.mark { display: block; fill: currentColor; height: 1em; width: auto; aspect-ratio: 1091 / 900; flex: none; }
.cur {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  width: 26px; margin: -12px 0 0 -13px; color: var(--paper); opacity: 0; transition: opacity .2s ease;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0);
}
.cur.shown { opacity: 1; }
.cur.shown.field { opacity: 0; }
.cur .cur-cam {
  width: 100%; height: auto; transform-origin: 50% 55%; transition: transform .25s var(--ease), color .2s ease;
  fill: currentColor; stroke: #0f1716; stroke-width: 26; stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
}
.cur.link .cur-cam { transform: scale(1.15); }
.cur.on .cur-cam { transform: scale(1.4); }
.cur.press .cur-cam { transform: scale(.82); transition-duration: .08s; }
.cur-tag {
  position: absolute; left: calc(100% + 12px); top: 50%; translate: 0 -50%; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--ground);
  font: 500 .68rem/1 var(--sans); opacity: 0; transition: opacity .2s ease;
}
.cur.on .cur-tag { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cur { display: none; } }
body.has-cur, body.has-cur * { cursor: none; }
body.has-cur input, body.has-cur textarea { cursor: text; }
body.has-cur select { cursor: default; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .slide.is-current img { animation: none; }
}

/* ---------- about: role line and quote ---------- */
.about-role { margin-top: 12px; color: var(--muted); font-size: 1.1rem; }
.quote { margin: clamp(32px, 4.5vw, 56px) 0 clamp(8px, 2vw, 24px); padding-left: clamp(16px, 2vw, 24px); border-left: 2px solid var(--accent); max-width: 34em; }
.quote p { font: 300 clamp(1.15rem, 1.7vw, 1.45rem)/1.5 var(--display); letter-spacing: 0; color: var(--paper); letter-spacing: -.005em; }
.quote footer { margin-top: 12px; color: var(--muted); font-size: .95rem; }

/* a portrait of the photographer keeps its upright shape on phones instead of being cropped wide */
@media (max-width: 859px) { .about-fig.is-portrait .pic { aspect-ratio: var(--ar, .8); width: min(100%, 360px); } }

/* ==========================================================================
   Phones: a quieter, finer scale so the pages feel composed rather than enlarged
   ========================================================================== */
@media (max-width: 719px) {
  body { font-size: .88rem; line-height: 1.7; }
  .bar { --header-h: 58px; }
  :root { --header-h: 58px; --gutter: 20px; }
  body[data-page="home"] .bar:not(.is-solid) .brand { opacity: 1; pointer-events: auto; }
  .brand { gap: 9px; font-size: .7rem; letter-spacing: .15em; }
  .brand .mark { height: 19px; }
  .menu-btn { font-size: .85rem; font-weight: 500; letter-spacing: .04em; }
  .menu a { font-size: clamp(1.5rem, 7.4vw, 2.2rem); }
  .btn { padding: 12px 22px; font-size: .85rem; }

  /* home */
  .hero { min-height: 480px; }
  .hero-copy { gap: 16px; bottom: max(26px, env(safe-area-inset-bottom, 0px) + 18px); }
  .hero h1 { font-size: 1.3rem; letter-spacing: .12em; }
  .tagline { margin-top: 10px; font-size: .78rem; }
  .hero-meta .t { font-size: .88rem; }
  .hero-meta .x { margin-top: 6px; font-size: .7rem; color: var(--muted); gap: 1px 12px; }
  .hero-meta .x .lens { flex-basis: 100%; }
  .dots { margin-top: 12px; }
  .dots button { width: 30px; }

  .collections { padding: 18px var(--gutter) 40px; }
  .coll { padding: 14px 0; }
  .word { font-size: clamp(1.1rem, 5.2vw, 1.5rem); line-height: 1.3; letter-spacing: .08em; }
  .coll-meta { font-size: .76rem; }
  .coll-meta b { font-size: .76rem; }

  .selected { padding: 8px 0 44px; }
  .arrivals { padding-top: 36px; padding-bottom: 16px; }
  .sec-head { margin-bottom: 16px; align-items: center; }
  .sec-head h2 { font-size: .8rem; letter-spacing: .16em; }
  .strip-ctl button { width: 36px; height: 36px; }
  .strip-ctl svg { width: 16px; height: 16px; }
  .frame .im { height: clamp(220px, 44svh, 400px); }
  .frame .cap { margin-top: 10px; }
  .frame .cap b { font-size: .86rem; }
  .frame .cap span { font-size: .74rem; }

  .teaser { padding: 40px var(--gutter); gap: 24px; }
  .teaser h2 { font-size: 1.2rem; }
  .teaser p { margin-top: 14px; font-size: .88rem; }
  .teaser .btn { margin-top: 22px; }
  .cta { padding: 48px var(--gutter); }
  .cta p { font-size: 1.25rem; }

  /* footer */
  .foot { padding: 36px var(--gutter) 24px; gap: 26px 24px; font-size: .86rem; }
  .foot .mark { height: 34px; margin-bottom: 14px; }
  .foot .name { font-size: .78rem; }
  .foot .sub { font-size: .55rem; letter-spacing: .7em; margin-top: 8px; }
  .foot h2 { font-size: .78rem; }
  .foot ul { gap: 2px; }
  .foot { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
  .foot li, .foot a { overflow-wrap: normal; }
  .foot small { font-size: .72rem; }

  /* gallery */
  .g-head { padding-top: calc(var(--header-h) + 22px); }
  .g-head h1, .about-body h1, .contact h1 { font-size: 1.6rem; }
  .g-head p { margin-top: 10px; font-size: .84rem; }
  .chip { padding: 7px 13px; font-size: .82rem; }
  .g-status { font-size: .8rem; }

  /* about */
  .about, .contact { padding-top: calc(var(--header-h) + 22px); gap: 26px; }
  .about-fig figcaption { font-size: .78rem; }
  .about-role { font-size: .9rem; margin-top: 8px; }
  .about-body .prose { font-size: .94rem; line-height: 1.7; gap: 14px; margin-top: 20px; }
  .quote { margin-top: 28px; }
  .quote p { font-size: 1.05rem; }
  .quote footer { font-size: .84rem; }
  .about-body h2 { font-size: 1.1rem; margin-top: 36px; }
  .rows li, .rows a { flex-direction: column; gap: 2px; padding: 12px 0; }
  .rows .what { font-size: .9rem; }
  .rows .note { text-align: left; font-size: .8rem; }

  /* contact */
  .contact .intro-p { font-size: .94rem; margin-top: 14px; }
  .reach { margin-top: 24px; }
  .reach .mail { font-size: 1.05rem; }
  .reach .socials { font-size: .9rem; }
  .form { gap: 20px; }
  .field label { font-size: .8rem; }
  .field input, .field textarea { font-size: 1rem; }  /* 16px stops iOS zooming in on focus */

  /* viewer */
  .lb-title { font-size: 1.05rem; }
  .lb-sub { font-size: .82rem; }
  .lb-right { font-size: .76rem; }
}
