/* ==========================================================================
   SAD Ceramics — site stylesheet
   Warm editorial system: bone paper, clay accent, soot footer.
   Fonts: Inter Tight (display + body), Old Standard TT italic (accents).
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/inter-tight.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/inter-tight-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Old Standard TT";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/old-standard.woff2") format("woff2");
}
@font-face {
  font-family: "Old Standard TT";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/old-standard-italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bone: #f4efe7;
  --bone-2: #ebe3d6;
  --sand: #d8cbb7;
  --sand-2: #c4b399;
  --clay: #a9632b;        /* brand mark colour, large text and graphics only */
  --clay-text: #8a4e20;   /* 5.7:1 on bone, safe for small text and buttons */
  --clay-deep: #6f3d17;
  --ink: #2b2117;
  --ink-2: #5f471d;       /* the brown the original site used for body copy */
  --ink-muted: #6b5840;
  --soot: #1f1b18;
  --soot-2: #2a2521;

  --font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Old Standard TT", "Times New Roman", serif;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 144px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;

  --radius: 2px;
  --header-h: 84px;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bone);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--clay); color: var(--bone); }

:focus-visible { outline: 2px solid var(--clay-text); outline-offset: 4px; border-radius: 2px; }
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--bone); border-radius: 3px;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type scale ---------- */
.display-1 { font-size: clamp(2.75rem, 7.2vw, 6.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 0.98; }
.display-2 { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 500; }
.h-2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.h-3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; letter-spacing: -0.01em; }
.statement { font-size: clamp(1.6rem, 3.6vw, 3.25rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 400; color: var(--ink); text-wrap: pretty; }
.serif-i { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); font-style: italic; font-size: 1.0625rem; color: var(--clay-text);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.num { font-family: var(--font-serif); font-variant-numeric: tabular-nums; color: var(--clay-text); }
.measure { max-width: 34em; }
.muted { color: var(--ink-muted); }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 144px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section--alt { background: var(--bone-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 5vw, 64px); }
.rule { border: 0; border-top: 1px solid var(--sand); margin: 0; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.5vw, 40px); }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--clay-text); --fg: var(--bone);
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  padding: 12px 22px 12px 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none; font-weight: 500; letter-spacing: -0.01em;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:hover { --bg: var(--clay-deep); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--sand-2); }
.btn--ghost:hover { --bg: var(--bone-2); }
.btn--light { --bg: var(--bone); --fg: var(--ink); }
.btn--light:hover { --bg: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--font-serif); font-style: italic; font-size: 1.125rem; color: var(--clay-text); text-decoration: none;
}
.link-arrow svg { width: 22px; height: 22px; flex: none; transition: transform var(--dur) var(--ease-out); }
.link-arrow span { position: relative; }
.link-arrow span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover span::after { transform: scaleX(1); transform-origin: left; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bone) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), background var(--dur);
}
.site-header.is-scrolled { border-bottom-color: var(--sand); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand img { width: auto; height: 46px; transition: transform var(--dur) var(--ease-out); }
.brand:hover img { transform: translateY(-1px); }
.nav { display: flex; align-items: center; gap: clamp(8px, 2vw, 28px); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  text-decoration: none; font-weight: 500; letter-spacing: 0.01em; color: var(--ink);
}
.nav__link::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 8px; height: 1px; background: var(--clay-text); transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease-out); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--clay-text); }
.nav .btn { margin-left: 8px; min-height: 42px; padding-block: 9px; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  /* No backdrop-filter on small screens: it would become the containing block for the
     fixed-position menu overlay and pin it inside the header bar. */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--bone) 94%, transparent); }
  .brand img { height: 40px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px;
    color: var(--ink); z-index: 61;
  }
  .nav-toggle span { position: relative; display: block; width: 24px; height: 2px; background: currentColor; transition: transform var(--dur) var(--ease-out), background var(--dur); }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out); }
  .nav-toggle span::before { top: -8px; }
  .nav-toggle span::after { top: 8px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 60; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: var(--gutter); background: var(--bone);
    opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease-out); }
  .nav__link { font-size: clamp(2.25rem, 10vw, 3.25rem); letter-spacing: -0.03em; font-weight: 500; min-height: 0; padding: 6px 0; }
  .nav__link::after { display: none; }
  .nav .btn { margin: 24px 0 0; }
  .nav > * { transform: translateY(14px); opacity: 0; transition: transform 480ms var(--ease-out), opacity 480ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .nav.is-open > * { transform: none; opacity: 1; }
  body.nav-open { overflow: hidden; }
  .nav-toggle { position: relative; }
  body.nav-open .site-header { background: var(--bone); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(32px, 6vw, 88px) clamp(40px, 6vw, 80px); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: clamp(20px, 2.5vw, 32px); }
.hero__title { color: var(--ink); }
.hero__title .serif-i { color: var(--clay-text); font-size: 1.04em; }
.hero__title .caps { font-weight: 600; letter-spacing: -0.02em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.slider { position: relative; margin-inline: auto; width: 100%; }
.slider__track { position: relative; aspect-ratio: 4 / 5; max-height: 78vh; }
.slide { position: absolute; inset: 0; pointer-events: none; }
.slide img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.02); transition: opacity var(--dur-slow) var(--ease-in-out), transform 6s linear; }
.slide.is-active img { opacity: 1; transform: scale(1.08); }
.slider__ui { position: absolute; right: 0; bottom: -6px; display: flex; align-items: center; gap: 14px; z-index: 2; }
.slider__count { font-family: var(--font-serif); font-style: italic; font-size: 1.0625rem; color: var(--ink-muted); min-width: 4.5ch; text-align: right; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--sand-2); color: var(--ink);
  transition: background var(--dur), color var(--dur), transform var(--dur) var(--ease-out);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--ink); color: var(--bone); box-shadow: none; }
.icon-btn:active { transform: scale(0.94); }
.slider__progress { position: absolute; left: 0; right: 0; bottom: -18px; height: 1px; background: var(--sand); z-index: 2; }
.slider__progress i { position: absolute; inset: 0; background: var(--clay); transform-origin: left; transform: scaleX(0); }
.slider.is-playing .slider__progress i { animation: slide-progress var(--slide-ms, 5600ms) linear forwards; }
@keyframes slide-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__grid > .hero__visual { order: -1; }
  .slider { max-width: 520px; max-height: none; }
  .slider__ui { position: static; justify-content: flex-end; margin-top: 12px; }
  .slider__progress { position: relative; margin-top: 12px; }
}

/* ---------- Works grid ---------- */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 48px) clamp(16px, 2.5vw, 40px); }
.work { display: block; text-decoration: none; color: inherit; }
.work__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: transparent; }
.work__media img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--dur-slow) var(--ease-out); }
.work:hover .work__media img { transform: scale(1.04) translateY(-1%); }
.work__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--sand); }
.work__title { font-weight: 500; color: var(--ink); letter-spacing: -0.01em; position: relative; }
.work__title::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--clay-text); transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease-out); }
.work:hover .work__title::after { transform: scaleX(1); transform-origin: left; }
.work__num { font-family: var(--font-serif); font-style: italic; color: var(--ink-muted); transition: color var(--dur); }
.work:hover .work__num { color: var(--clay-text); }
@media (min-width: 901px) {
  .works--stagger .work:nth-child(2) { transform: translateY(72px); }
  .works--stagger .work:nth-child(4) { transform: translateY(40px); }
  .works--stagger { padding-bottom: 72px; }
}
@media (max-width: 900px) { .works { grid-template-columns: repeat(2, 1fr); } }

/* Large works (works page) */
.works--large { grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 80px) clamp(24px, 4vw, 64px); }
.works--large .work__media { aspect-ratio: 4 / 5; }
.works--large .work__meta { font-size: 1.125rem; }
@media (max-width: 600px) { .works--large { grid-template-columns: 1fr; } .works { gap: 40px 16px; } }

/* ---------- Approach / statement ---------- */
.approach { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.approach__aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.approach__body { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
@media (max-width: 760px) { .approach { grid-template-columns: 1fr; } .approach__aside { position: static; } }

/* word-by-word reveal */
.words .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.words .w > span { display: inline-block; transform: translateY(110%); transition: transform 700ms var(--ease-out); transition-delay: calc(var(--i) * 28ms); }
.words.is-in .w > span { transform: none; }
.words { display: flex; flex-wrap: wrap; column-gap: 0.24em; }

/* ---------- Feature (Drift teaser) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.feature__copy { display: flex; flex-direction: column; gap: 20px; }
.feature__media img { width: 100%; }
.feature--flip .feature__media { order: -1; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature--flip .feature__media { order: 0; } }

/* ---------- Studio strip (marquee) ---------- */
.strip { --gap: 12px; overflow: hidden; padding-block: 8px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip__track { display: flex; gap: var(--gap); width: max-content; animation: marquee 70s linear infinite; }
.strip:hover .strip__track, .strip:focus-within .strip__track { animation-play-state: paused; }
.strip__item { flex: none; height: clamp(180px, 26vw, 300px); overflow: hidden; border-radius: var(--radius); }
.strip__item img { height: 100%; width: auto; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out); }
.strip__item:hover img { transform: scale(1.04); }
.strip__item:focus-visible { outline-offset: -3px; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ---------- Profile ---------- */
.profile-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.profile-hero__copy { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 36px); }
.profile-hero__photo { position: relative; }
.profile-hero__photo img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; border-radius: var(--radius); }
.profile-hero__photo figcaption { margin-top: 12px; font-family: var(--font-serif); font-style: italic; color: var(--ink-muted); }
@media (max-width: 760px) { .profile-hero { grid-template-columns: 1fr; } }

.cv { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); }
.cv details { border-top: 1px solid var(--sand-2); }
.cv summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 16px 0;
  list-style: none; cursor: pointer; font-family: var(--font-serif); font-style: italic; font-size: 1.375rem; color: var(--ink);
}
.cv summary::-webkit-details-marker { display: none; }
.cv summary svg { width: 20px; height: 20px; color: var(--clay-text); transition: transform var(--dur) var(--ease-out); flex: none; }
.cv details[open] summary svg { transform: rotate(45deg); }
.cv .cv__body { padding: 0 0 24px; color: var(--ink-muted); }
.cv .cv__body li + li { margin-top: 8px; }
@media (max-width: 760px) { .cv { grid-template-columns: 1fr; gap: 0; } .cv details:last-child { border-bottom: 1px solid var(--sand-2); } }

/* ---------- Work detail ---------- */
.detail-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.detail-hero__copy { display: flex; flex-direction: column; gap: 20px; }
.detail-hero__media { cursor: zoom-in; }
.detail-hero__media img { width: 100%; }
.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 32px); }
.detail-gallery img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: var(--radius); }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; }
.spec dt { font-family: var(--font-serif); font-style: italic; color: var(--clay-text); margin-bottom: 6px; }
.spec dd { margin: 0; color: var(--ink); }
@media (max-width: 760px) { .detail-hero { grid-template-columns: 1fr; } .detail-hero__media { order: -1; } .detail-gallery { grid-template-columns: 1fr; } }

/* Project pages: captioned gallery of button.work cards + previous/next project links */
button.work { width: 100%; text-align: left; }
.work__year { color: var(--ink-muted); font-family: var(--font-serif); font-style: italic; font-weight: 400; margin-left: 0.5em; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-block: clamp(32px, 5vw, 56px); }
.pager__link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; min-width: 0; }
.pager__link--next { text-align: right; align-items: flex-end; }
.pager__label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay-text); }
.pager__label svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.pager__link--prev:hover svg { transform: translateX(-4px); }
.pager__link--next:hover svg { transform: translateX(4px); }
.pager__title { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.pager__all { justify-self: center; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr 1fr; } .pager__all { grid-column: 1 / -1; order: 1; justify-self: start; } }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 42em; display: flex; flex-direction: column; gap: 1.1em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.2em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--clay-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--soot); color: var(--bone); overflow: clip; }
.site-footer a { color: inherit; }
.site-footer .btn { color: var(--fg); }
.footer__top { display: grid; grid-template-columns: minmax(0, 6fr) repeat(3, minmax(0, 2fr)); gap: clamp(32px, 4vw, 64px); padding-block: clamp(64px, 9vw, 128px) clamp(40px, 6vw, 80px); }
.footer__cta { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.footer__cta h2 { color: var(--bone); }
.footer__col h3 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.0625rem; color: var(--sand-2); margin-bottom: 16px; letter-spacing: 0; }
.footer__col li + li { margin-top: 6px; }
.footer__col a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; position: relative; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--clay); transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease-out); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__col a[aria-current="page"] { color: var(--sand-2); }
.social { display: inline-flex; align-items: center; gap: 10px; }
.social svg { width: 20px; height: 20px; }
.footer__mark { padding-top: 24px; }
.footer__mark img { width: min(100%, 1100px); height: auto; opacity: 0.95; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px 28px; border-top: 1px solid var(--soot-2); font-size: 0.9375rem; color: var(--sand-2); }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--bone); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__cta { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: transparent; color: var(--bone); }
.lightbox::backdrop { background: rgba(20, 16, 13, 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 14px; width: min(100vw - 32px, 1200px); height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.lightbox__figure img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lightbox__figure figcaption { text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 1.0625rem; color: var(--sand-2); min-height: 1.5em; }
.lightbox__close { position: fixed; top: 16px; right: 16px; }
.lightbox__prev, .lightbox__next { position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox .icon-btn { color: var(--bone); box-shadow: inset 0 0 0 1px rgba(244, 239, 231, 0.35); background: rgba(31, 27, 24, 0.6); }
.lightbox .icon-btn:hover { background: var(--bone); color: var(--ink); }
.lightbox[open] { animation: lb-in 260ms var(--ease-out); }
.lightbox[open]::backdrop { animation: lb-fade 260ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.98); } }
@keyframes lb-fade { from { opacity: 0; } }
@media (max-width: 760px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; } .lightbox__figure { height: calc(100dvh - 96px); } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal="rise"] { transform: translateY(40px); }
.js [data-reveal="none"] { transform: none; }

/* ---------- Hero intro (page load) ---------- */
.js .intro > * { opacity: 0; transform: translateY(22px); animation: intro 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
.js .intro-visual { opacity: 0; animation: intro-visual 1100ms var(--ease-out) forwards; animation-delay: 220ms; }
@keyframes intro { to { opacity: 1; transform: none; } }
@keyframes intro-visual { from { opacity: 0; transform: translateY(24px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: 260ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .intro > *, .js .intro-visual { opacity: 1; transform: none; animation: none; }
  .words .w > span { transform: none; }
  .slide img, .slide.is-active img { transform: none; }
  .slide img { transition: none; }
  .strip { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
  .strip__track { animation: none; width: auto; }
  .strip__track > .is-clone { display: none; }
  .works--stagger .work { transform: none !important; }
  @view-transition { navigation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .slider__ui, .slider__progress, .nav-toggle { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
