/* ---------------------------------------------------------------
   Rupa Paul — design system
   Adapted from the Saniti reference (DESIGN-sanity.md) in its light
   polarity throughout — white ground everywhere, editorial Inter
   display type, IBM Plex Mono eyebrows, a single coral accent used
   sparingly. Still/Life alone stays on black — the artist's own
   instruction for that piece, predating this system, not a second
   "dark mode" for the site.
----------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* Saniti tokens */
  --canvas:        #0b0b0b;
  --canvas-soft:   #212121;
  --canvas-light:  #ffffff;
  --canvas-paper:  #faf9f7;
  --ink:           #0b0b0b;
  --ink-soft:      #212121;
  --on-primary:    #ffffff;
  --graphite:      #353535;
  --mute:          #797979;
  --ash:           #b9b9b9;
  --hairline:      #e9e6e0;
  --hairline-soft: #353535;
  --brand:         #f36458;
  --brand-deep:    #dd0000;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 5px;
  --radius-lg: 6px;
  --radius-marketing: 12px;
  --radius-full: 99999px;

  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: 64px;
  --sp-section-lg: 96px;

  --nav-h: 72px;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 640px;

  /* legacy aliases still referenced on project (light) pages */
  --white: var(--canvas-light);
  --paper: var(--canvas-paper);
  --ink-faint: var(--mute);
  --line: var(--hairline);
  --black-bg: var(--canvas);
  --serif: var(--sans);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--canvas-light);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

::selection{ background: var(--brand); color: var(--ink); }

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

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

/* Content column: one gutter from the screen edge on every page (header, main and
   footer share it), capped at 1280px. Uses margin rather than padding so section
   rules such as `padding: 96px 0` can't wipe the side space out. */
.wrap{
  width: min(100% - 2 * var(--gutter), 1280px - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}

.measure{ max-width: var(--measure); }

/* ---------------------------- mono eyebrow ---------------------------- */

.mono-eyebrow{
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--mute);
}
.mono-caps{
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------------------------------- nav ---------------------------------- */
/* Persistent light top bar over every page. */

.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter)));
}

.site-nav::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease;
}
.site-nav.is-scrolled::before{ border-bottom-color: var(--hairline); }

.site-nav .brand{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-nav .brand-dot{
  width: 9px; height: 9px;
  border-radius: var(--radius-full);
  background: var(--brand);
  flex: none;
}

.nav-links{
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-links a{
  color: var(--mute);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, color .3s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"]{
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.nav-toggle{
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 32px; height: 24px; position: relative;
  color: var(--ink);
}
.nav-toggle span{
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span:nth-child(1){ top: 2px; }
.nav-toggle span:nth-child(2){ top: 11px; }
.nav-toggle span:nth-child(3){ top: 20px; }

@media (max-width: 760px){
  .nav-links{
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--canvas-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    font-size: 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
  }
  .nav-links.is-open{
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
  .nav-toggle{ display: block; }
}

/* -------------------------------- reveal -------------------------------- */

.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(.2,.6,.2,1), transform 1.1s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-slow{ transition-duration: 1.6s; }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-slow{ transition: none; opacity: 1; transform: none; }
  html{ scroll-behavior: auto; }
}

/* -------------------------------- buttons -------------------------------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  padding: 0 22px;
  height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-ghost-dark{
  background: transparent;
  color: var(--ash);
  border-color: var(--hairline-soft);
}
.btn-ghost-dark:hover{ color: var(--on-primary); border-color: var(--ash); }

/* filter — plain text tabs separated by middots, active one underlined like the nav */
.filter-bar{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-xxs) var(--sp-sm);
  margin: 0;
}
.filter-tab{
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--mute);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 2px 0;
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.filter-tab:hover{ color: var(--ink); }
.filter-tab.is-active{
  color: var(--ink);
  border-bottom-color: var(--brand);
}
.filter-tab:focus-visible{ outline: 1px solid var(--ink); outline-offset: 4px; }
.filter-sep{ color: var(--ash); font-size: 0.86rem; user-select: none; }

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

.site-footer{
  background: var(--canvas-paper);
  color: var(--ink);
  padding: var(--sp-section) 0 var(--sp-xl);
  margin-top: 0;
  border-top: 1px solid var(--hairline);
}
.site-footer .footer-top{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xxl);
}
.site-footer .footer-col h3{
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 var(--sp-md);
  font-weight: 400;
}
.site-footer .footer-col ul{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.site-footer .footer-col a{
  font-size: 0.86rem;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.site-footer .footer-col a:hover{ color: var(--ink); }
.site-footer .footer-col p{
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
  max-width: 32ch;
}
.site-footer .footer-bottom{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--hairline);
  font-size: 0.78rem;
  color: var(--mute);
}

/* ================================================================
   HOME
==================================================================*/

.hero{
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: var(--nav-h);
}

.hero .mono-eyebrow{ margin: 0 0 var(--sp-lg); }

.hero h1{
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 var(--sp-lg);
  color: var(--ink);
}

.hero .tagline{
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 26ch;
  margin: 0;
  letter-spacing: -0.01em;
}

/* scroll cue — only the moving line, no label */
.scroll-cue{
  margin-top: clamp(36px, 7vh, 80px);
  width: 1px;
  height: 44px;
}
.scroll-cue::after{
  content: '';
  width: 1px; height: 100%;
  background: var(--mute);
  display: block;
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue{
  0%{ transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%{ transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%{ transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100%{ transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* intro block */
.intro-section{
  padding: var(--sp-section-lg) 0;
  border-top: 1px solid var(--hairline);
}
.intro-section .intro-grid{
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: clamp(24px, 6vw, 80px);
}
.intro-section p{
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1.2em;
  letter-spacing: -0.01em;
}
.intro-section p:last-child{ margin-bottom: 0; }
.intro-section em{
  color: var(--ink);
  font-style: italic;
}
@media (max-width: 860px){
  .intro-section .intro-grid{ grid-template-columns: 1fr; }
}

/* work section */
.work-index{
  padding: var(--sp-section-lg) 0;
  border-top: 1px solid var(--hairline);
}
.work-index .section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xxl);
}
.work-index .section-head h2{
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.work-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
}
@media (max-width: 760px){
  .work-grid{ grid-template-columns: 1fr; }
}

.work-card{
  background: var(--canvas-paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-marketing);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s ease, transform .3s ease;
}
.work-card:hover{ border-color: var(--brand); }

.work-card.is-hidden{ display: none; }

.work-card .figure{
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ece9e2;
}
.work-card .figure img{
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .figure img{ transform: scale(1.08); }

.work-card .card-body{
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.work-card .card-meta{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.work-card h3{
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--ink);
  margin: 0;
}
.work-card .card-desc{
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.work-card .card-link{
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease, gap .2s ease;
}
.work-card .card-link .arrow{ color: var(--brand); transition: transform .2s ease; }
.work-card:hover .card-link{ color: var(--ink); }
.work-card:hover .card-link .arrow{ transform: translateX(3px); }

.ongoing-block{
  margin-top: var(--sp-xxl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--hairline);
}
.ongoing-block a{
  display: flex;
  align-items: baseline;
  gap: var(--sp-md);
  flex-wrap: wrap;
}
.ongoing-block h3{
  font-family: var(--sans);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 0;
  color: var(--ink-soft);
}
.ongoing-block h3:hover{ color: var(--ink); }
.ongoing-block p{
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mute);
  margin: 0;
}

/* ================================================================
   PROJECT PAGE — light reading surface (unchanged voice: quiet,
   flush images, no frames, generous pauses). Eyebrow + captions move
   to mono per the system; running copy stays on Inter.
==================================================================*/

.project-header{
  padding: calc(var(--nav-h) + clamp(60px,14vh,150px)) 0 clamp(60px, 12vh, 130px);
  text-align: center;
}
.project-header .eyebrow{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 28px;
}
.project-header h1{
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 auto 26px;
  max-width: 20ch;
}
.project-header .colophon{
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.9;
  margin: 0 auto;
  max-width: 46ch;
}

.project-body{ padding-bottom: clamp(80px, 14vh, 160px); }

.image-block{
  margin: clamp(90px, 16vh, 200px) 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: flex;
  justify-content: center;
}
.image-block figure{ margin: 0; width: 100%; }
.image-block img{ width: 100%; height: auto; }
.image-block figcaption{
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mute);
  text-align: center;
}

.image-block.size-full{ max-width: calc(1240px + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.image-block.size-large .wrap-inner{ max-width: 980px; margin: 0 auto; }
.image-block.size-medium .wrap-inner{ max-width: 680px; margin: 0 auto; }
.image-block.align-left .wrap-inner{ margin-left: clamp(0px, 6vw, 120px); margin-right: auto; }
.image-block.align-right .wrap-inner{ margin-left: auto; margin-right: clamp(0px, 6vw, 120px); }
@media (max-width: 860px){
  /* no off-centre offsets on small screens — images sit on the same margins as the text */
  .image-block.align-left .wrap-inner,
  .image-block.align-right .wrap-inner{ margin-left: auto; margin-right: auto; }
}

.image-pair{
  max-width: calc(1240px + 2 * var(--gutter));
  margin: clamp(90px, 16vh, 200px) auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
}
@media (max-width: 760px){
  .image-pair{ grid-template-columns: 1fr; gap: clamp(60px, 12vh, 110px); }
}

.pull-line{
  max-width: 720px;
  margin: clamp(70px, 14vh, 170px) auto;
  text-align: center;
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--ink);
  padding: 0 var(--gutter);
}

.project-text{
  max-width: var(--measure);
  margin: clamp(90px, 16vh, 180px) auto 0;
  padding: 0 var(--gutter);
}
.project-text p{
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 1.5em;
}
.project-text .credit-line{
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mute);
  margin: 3em 0 0;
}

.project-nav{
  border-top: 1px solid var(--hairline);
  margin-top: clamp(100px, 16vh, 180px);
  padding: 48px var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 500;
  max-width: 1280px;
  margin-left: auto; margin-right: auto;
}
.project-nav a{ opacity: 0.7; }
.project-nav a:hover{ opacity: 1; color: var(--brand); }

/* drawing sequence — the Labyrinth drawings as one horizontal field that moves as a
   whole (drag, trackpad or arrow keys), with the next drawing showing at the edge.
   No per-image hover; the custom ← / → cursor is added by main.js on mouse devices. */
.drawing-sequence{
  position: relative;
  margin: clamp(90px, 16vh, 200px) 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}
.drawing-sequence::-webkit-scrollbar{ display: none; }
.drawing-sequence:focus-visible{ box-shadow: inset 0 0 0 1px var(--ash); }
.drawing-sequence.has-cursor{ cursor: none; }
.drawing-sequence.is-dragging{ user-select: none; }
.sequence-track{
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  width: max-content;
  padding: 0 max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter)));
}
.sequence-item{ margin: 0; flex: none; }
.sequence-item img{
  height: clamp(130px, min(58vh, 36vw), 620px);
  width: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* diffuse field — the Spine / Labyrinth drawings dissolving one into the next,
   looping for as long as the page is open.

   The artwork is never treated: no crop, tint, filter or scaling, and each drawing
   keeps its own proportions inside the stage. Opacity moves only to carry one
   drawing across into the next — 4s in, 10s held at full strength, 4s out as the
   following one arrives — so the stagger is 14s and the cycle is 14s x the number
   of drawings. The fades are eased rather than linear so the crossing is soft at
   both ends and passes quickly through the half-and-half point in the middle.
   Nothing is interactive: no pointer, drag, hover or lightbox. */
.diffuse-field{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 76vh;
  margin: clamp(90px, 16vh, 200px) 0;
  background: #fff;
  pointer-events: none;
  overflow: hidden;
}
.diffuse-field.is-wide{
  aspect-ratio: 5 / 2;
  max-height: 62vh;
}
.diffuse-field img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  will-change: opacity;
  -webkit-user-drag: none;
  user-select: none;
}

/* The delays are negative so the field is already mid-cycle when the reader reaches
   it rather than assembling itself: -42s of a 56s cycle is a 14s lag. */
.diffuse-field.is-four img{ animation: diffuse-4 56s linear infinite; }
.diffuse-field.is-four img:nth-child(1){ animation-delay:   0s; }
.diffuse-field.is-four img:nth-child(2){ animation-delay: -42s; }
.diffuse-field.is-four img:nth-child(3){ animation-delay: -28s; }
.diffuse-field.is-four img:nth-child(4){ animation-delay: -14s; }

.diffuse-field.is-three img{ animation: diffuse-3 42s linear infinite; }
.diffuse-field.is-three img:nth-child(1){ animation-delay:   0s; }
.diffuse-field.is-three img:nth-child(2){ animation-delay: -28s; }
.diffuse-field.is-three img:nth-child(3){ animation-delay: -14s; }

@keyframes diffuse-4{
  0%      { opacity: 0; animation-timing-function: ease-in-out; }
  7.143%  { opacity: 1; animation-timing-function: linear; }
  25%     { opacity: 1; animation-timing-function: ease-in-out; }
  32.143% { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes diffuse-3{
  0%      { opacity: 0; animation-timing-function: ease-in-out; }
  9.524%  { opacity: 1; animation-timing-function: linear; }
  33.333% { opacity: 1; animation-timing-function: ease-in-out; }
  42.857% { opacity: 0; }
  100%    { opacity: 0; }
}

/* Without motion the dissolve has nothing to say, so the drawings simply stack. */
@media (prefers-reduced-motion: reduce){
  .diffuse-field,
  .diffuse-field.is-wide{
    aspect-ratio: auto;
    max-height: none;
    display: grid;
    gap: clamp(28px, 5vh, 64px);
  }
  .diffuse-field img{
    position: relative;
    inset: auto;
    height: auto;
    opacity: 1;
    animation: none;
  }
}

.sequence-cursor{
  position: fixed;
  top: 0; left: 0;
  z-index: 150;
  pointer-events: none;
}
.sequence-cursor span{
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .35s ease, transform .35s ease;
}
.sequence-cursor.is-visible span{ opacity: 1; transform: scale(1); }

/* lightbox — a drawing opened near full-screen */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 7vh, 72px) clamp(16px, 6vw, 88px);
  background: rgba(250,249,247,0.98);
  opacity: 0;
  transition: opacity .6s ease;
}
.lightbox[hidden]{ display: none; }
.lightbox.is-open{ opacity: 1; }
.lightbox img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .35s ease;
}
.lightbox img.is-swapping{ opacity: 0; }
.lightbox button{
  position: absolute;
  background: none;
  border: 0;
  padding: 12px;
  cursor: pointer;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.lightbox button:hover{ color: var(--ink); }
.lightbox button:focus-visible{ outline: 1px solid var(--ash); outline-offset: 2px; }
.lightbox .lightbox-close{ top: 10px; right: 10px; }
.lightbox .lightbox-prev,
.lightbox .lightbox-next{
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.3rem;
  letter-spacing: 0;
  text-transform: none;
}
.lightbox .lightbox-prev{ left: 4px; }
.lightbox .lightbox-next{ right: 4px; }
@media (prefers-reduced-motion: reduce){
  .lightbox, .lightbox img, .sequence-cursor span{ transition: none; }
}

/* video */
.video-frame{ position: relative; background: #000; }
.video-frame video{ width: 100%; height: auto; display: block; }
.video-frame.on-white{ background: var(--canvas-light); }

/* dark project variant (Still/Life) */
.project-body.on-black{ background: var(--canvas); color: #ece9e4; }
.project-body.on-black .project-text p{ color: #d9d6d1; }
.project-body.on-black .pull-line{ color: var(--on-primary); }
.project-body.on-black .image-block figcaption{ color: var(--mute); }

/* ================================================================
   ABOUT
==================================================================*/

.about-grid{
  padding: calc(var(--nav-h) + clamp(50px,10vh,110px)) 0 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about-grid .portrait img{ width: 100%; height: auto; border-radius: var(--radius-marketing); }
.about-grid .portrait{ position: sticky; top: calc(var(--nav-h) + 40px); }

@media (max-width: 860px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-grid .portrait{ position: static; max-width: 340px; }
}

.about-copy h1{
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 34px;
}
.about-copy p{
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 1.5em;
  max-width: 62ch;
}
.about-copy a{ color: var(--ink); border-bottom: 1px solid var(--brand); }

.statement-block{
  margin-top: clamp(90px, 14vh, 160px);
  padding-top: clamp(60px, 10vh, 100px);
  border-top: 1px solid var(--hairline);
}
.statement-block .mono-eyebrow{ margin: 0 0 34px; }
.statement-block p{
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  letter-spacing: -0.01em;
  line-height: 1.6;
  color: var(--ink);
  max-width: 36ch;
  margin: 0 0 1em;
}
.statement-block p.lead{ font-style: italic; color: var(--ink); }

/* ================================================================
   CV
==================================================================*/

.cv-page{ padding: calc(var(--nav-h) + clamp(50px,10vh,110px)) 0 40px; }
.cv-page h1{
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 60px;
}
.cv-intro{
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 1.4em;
}
.cv-intro:last-of-type{ margin-bottom: var(--sp-xxl); }

.cv-section{ margin-bottom: 56px; max-width: 780px; }
.cv-section h2{
  font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute); margin: 0 0 22px; font-weight: 400;
}
.cv-entry{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cv-section .cv-entry:last-child{ border-bottom: 1px solid var(--hairline); }
.cv-entry .year{ font-family: var(--mono); color: var(--mute); font-size: 0.82rem; }
.cv-entry .detail strong{ font-weight: 500; color: var(--ink); }
.cv-note{
  font-size: 0.86rem; color: var(--mute); font-style: italic;
  margin-top: 14px;
}

/* ================================================================
   CONTACT
==================================================================*/

.contact-page{
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
}
.contact-page h1{
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 40px;
}
.contact-links{
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}
.contact-links a{
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
  display: inline-block;
  width: fit-content;
  transition: border-color .3s ease;
}
.contact-links a:hover{ border-color: var(--brand); }
.contact-meta{
  margin-top: 60px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 46ch;
}
