/* =========================================================================
   Ashmal Naqi — Portfolio
   Design tokens + global styles
   See DESIGN.md for the full system rationale.
   ========================================================================= */

:root {
  /* ---- Palette (brief) ----------------------------------------------- */
  --sandstone:      #B4513A;
  --sandstone-deep: #7A2E1F;
  --bone:           #EEF3E8;
  --ink:            #1A0F0A;
  --moss:           #4A5D3A;
  --brass:          #B8893E;
  --paper-shadow:   #E8DCC4;

  /* Derived / utility */
  --bone-warm:      #EDE3D0;
  --hairline:       rgba(26, 15, 10, 0.18);
  --hairline-sand:  rgba(122, 46, 31, 0.22);
  --ink-60:         rgba(26, 15, 10, 0.60);
  --ink-45:         rgba(26, 15, 10, 0.45);
  --ink-30:         rgba(26, 15, 10, 0.30);

  /* ---- Type --------------------------------------------------------- */
  --font-display: "Fraunces", "GT Sectra", "Saol Display", "Times New Roman", serif;
  --font-body:    "Geist", "Söhne", "GT America", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --font-mono:    "Geist Mono", "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;

  /* ---- Spacing scale (8-based) -------------------------------------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 192px;

  /* ---- Layout ------------------------------------------------------- */
  --max-content: 1440px;
  --gutter-d: 64px;
  --gutter-t: 40px;
  --gutter-m: 20px;
  --measure: 60ch;

  /* ---- Motion ------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 220ms;
  --t-med:  400ms;
  --t-slow: 700ms;
}

/* ========================================================================= */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

@media (min-width: 1100px) {
  html, body { cursor: none; }
  html, body, a, button, [role="button"] { cursor: none; }
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

button { font: inherit; color: inherit; background: none; border: none; padding: 0; }

::selection { background: var(--sandstone); color: var(--bone); }

/* ----- Type primitives --------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  letter-spacing: -0.025em;
  line-height: 0.9;
  color: var(--sandstone-deep);
}

.serif {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32, "SOFT" 50;
  font-weight: 400;
}

.eyebrow,
.label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 500;
}

.label-ink { color: var(--ink); }
.label-sand { color: var(--sandstone); }

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "zero" 1;
  font-size: 13px;
  letter-spacing: 0.02em;
}

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

/* Hairlines */
.rule {
  height: 1px;
  background: var(--hairline-sand);
  width: 100%;
  border: 0;
}
.rule-ink { background: var(--hairline); }

/* Ornament — used ONCE per page max. Pulled-back, hand-set. */
.ornament {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sandstone);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  user-select: none;
  display: inline-block;
}

/* ----- Layout ------------------------------------------------------------ */

.shell {
  padding-left: var(--gutter-d);
  padding-right: var(--gutter-d);
  margin: 0 auto;
  max-width: var(--max-content);
}

@media (max-width: 900px) {
  .shell { padding-left: var(--gutter-t); padding-right: var(--gutter-t); }
}
@media (max-width: 600px) {
  .shell { padding-left: var(--gutter-m); padding-right: var(--gutter-m); }
}

/* ----- Header ------------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bone) 88%, transparent);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border-bottom: 1px solid var(--hairline);
  transition: transform var(--t-med) var(--ease-out),
              background var(--t-med) var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-atop { background: transparent; border-bottom-color: transparent; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-left: var(--gutter-d);
  padding-right: var(--gutter-d);
  max-width: var(--max-content);
  margin: 0 auto;
}
@media (max-width: 900px) { .site-header__inner { padding-left: var(--gutter-t); padding-right: var(--gutter-t); } }
@media (max-width: 600px) { .site-header__inner { padding-left: var(--gutter-m); padding-right: var(--gutter-m); } }

.wordmark {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark em {
  font-style: italic;
  color: var(--sandstone);
}

.nav {
  display: flex;
  gap: var(--s-7);
  align-items: center;
}
.nav a {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--sandstone);
  transition: right var(--t-med) var(--ease-out);
}
.nav a:hover::after,
.nav a.is-active::after { right: 0; }
.nav a.is-active { color: var(--sandstone-deep); }

@media (max-width: 600px) { .nav { gap: var(--s-5); } .nav a { font-size: 12px; } }

/* ----- Page transitions ------------------------------------------------- */

.page {
  padding-top: 64px;
}
.veil {
  position: fixed;
  inset: 0;
  background: var(--bone);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out);
  z-index: 90;
}
.veil.is-on { opacity: 1; }

/* ----- Custom cursor ---------------------------------------------------- */

.cursor {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sandstone);
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: width var(--t-fast) var(--ease-out),
              height var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              opacity var(--t-fast) var(--ease-out),
              border-radius var(--t-fast) var(--ease-out);
  /* Solid sandstone dot — no blend mode, so it stays visible against
     dark slideshow imagery (the dome at night, etc.) as well as bone. */
  opacity: 0;
  display: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
@media (min-width: 1100px) and (pointer: fine) {
  .cursor { display: block; }
}
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 36px; height: 36px; background: var(--sandstone); opacity: 0.9; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.cursor.is-row  { width: 56px; height: 56px; background: var(--sandstone); opacity: 0.92; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }

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

.reveal {
  overflow: hidden;
  background: var(--paper-shadow);
}
.reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out), transform 900ms var(--ease-out);
}
.reveal.fit-contain {
  background: var(--bone);
}
.reveal.fit-contain img {
  object-fit: contain;
}
.reveal.is-in img {
  transform: scale(1);
  opacity: 1;
}

/* Caption */
.caption {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-top: var(--s-3);
}

/* ----- Links ----------------------------------------------------------- */

.link {
  display: inline-block;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease-out);
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.link:hover { color: var(--sandstone-deep); }
.link:hover::after { opacity: 1; background: var(--sandstone); }

.link-sand { color: var(--sandstone-deep); }
.link-sand::after { background: var(--sandstone); opacity: 0.5; }

/* ========================================================================
   HOMEPAGE
   ======================================================================== */

.home-wordmark {
  padding-top: clamp(80px, 14vh, 180px);
  padding-bottom: var(--s-6);
}
.home-wordmark h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-weight: 400;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--sandstone-deep);
  margin: 0;
}
.home-wordmark h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--sandstone);
}

.home-manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: end;
  padding-bottom: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline-sand);
  margin-top: var(--s-3);
}
/* When the manifesto leads the homepage (slideshow removed), clear the fixed header
   and drop the stray top hairline. */
.home-manifesto:first-child {
  padding-top: clamp(88px, 9vh, 120px);
  border-top: 0;
  margin-top: 0;
}
.home-manifesto p {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
  max-width: 26ch;
  letter-spacing: -0.005em;
}
.home-manifesto .col-meta {
  justify-self: end;
  text-align: left;
  color: var(--ink-60);
  font-size: 13px;
  line-height: 1.7;
  max-width: 24ch;
}
@media (max-width: 800px) {
  .home-manifesto { grid-template-columns: 1fr; gap: var(--s-5); }
  .home-manifesto .col-meta { justify-self: start; }
}

/* ----- Project list ------------------------------------------------ */

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--hairline-sand);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-1);
}
.work-list { list-style: none; padding: 0; margin: 0; position: relative; }

.work-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 220px 80px;
  gap: var(--s-6);
  align-items: baseline;
  padding: clamp(20px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  cursor: pointer;
  transition: padding-left var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.work-row:hover {
  padding-left: var(--s-5);
  color: var(--sandstone-deep);
}
.work-row::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 1px;
  background: var(--sandstone);
  transition: right var(--t-slow) var(--ease-out);
}
.work-row:hover::after { right: 0; }

.work-row .row-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-45);
  letter-spacing: 0.04em;
}
.work-row .row-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
  color: var(--sandstone-deep);
  letter-spacing: -0.018em;
  transition: transform var(--t-med) var(--ease-out);
}
.work-row:hover .row-title { letter-spacing: -0.025em; }
.work-row .row-title em {
  font-style: italic;
  font-variation-settings: "opsz" 60, "SOFT" 100;
}
.work-row .row-cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.work-row .row-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-60);
  justify-self: end;
}

@media (max-width: 800px) {
  .work-row {
    grid-template-columns: 40px 1fr 60px;
    gap: var(--s-4);
  }
  .work-row .row-cat { grid-column: 2; font-size: 10px; }
  .work-row .row-title { font-size: clamp(26px, 7vw, 36px); }
}

/* Floating hover preview (desktop) */
.hover-preview {
  position: fixed;
  top: 50%;
  right: var(--gutter-d);
  transform: translate(20px, -50%) scale(0.96);
  width: 380px;
  height: 480px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
  border: 1px solid var(--hairline-sand);
  background: var(--paper-shadow);
  overflow: hidden;
}
.hover-preview.is-on {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}
.hover-preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.hover-preview .preview-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s-3) var(--s-4);
  background: linear-gradient(to top, rgba(26,15,10,0.5), transparent);
  color: var(--bone);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (max-width: 1100px) { .hover-preview { display: none; } }

/* Mobile tap-to-expand */
.work-row .row-mobile-img {
  display: none;
  grid-column: 1 / -1;
  margin-top: var(--s-4);
  height: 0;
  overflow: hidden;
  transition: height var(--t-med) var(--ease-out);
}
.work-row.is-open .row-mobile-img { height: 220px; }
@media (max-width: 800px) {
  .work-row .row-mobile-img { display: block; }
}

/* ----- Home about excerpt ----------------------------------------- */

.home-tail {
  margin-top: var(--s-10);
  padding-top: var(--s-7);
  border-top: 1px solid var(--hairline-sand);
  padding-bottom: var(--s-9);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
.home-tail h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sandstone-deep);
  margin: 0 0 var(--s-4) 0;
  font-weight: 400;
}
.home-tail p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 48ch;
}
.home-tail .meta {
  color: var(--ink-60);
  font-size: 13px;
  line-height: 1.7;
  border-left: 1px solid var(--hairline-sand);
  padding-left: var(--s-5);
}
@media (max-width: 800px) {
  .home-tail { grid-template-columns: 1fr; gap: var(--s-5); }
  .home-tail .meta { border-left: 0; padding-left: 0; padding-top: var(--s-4); border-top: 1px solid var(--hairline-sand); }
}

/* ----- Footer ---------------------------------------------------- */

.site-footer {
  padding: var(--s-8) 0 var(--s-7);
  border-top: 1px solid var(--hairline-sand);
  font-size: 13px;
  color: var(--ink-60);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
  align-items: start;
}
.footer-grid .footer-col h3 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin: 0 0 var(--s-3);
  font-weight: 500;
}
.footer-grid .footer-col p, .footer-grid .footer-col a { color: var(--ink); display: block; margin: 0 0 4px; }
.footer-mark {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: 28px;
  color: var(--sandstone-deep);
  line-height: 1;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}

/* ========================================================================
   PROJECT DETAIL
   ======================================================================== */

.proj-head {
  padding-top: clamp(60px, 10vh, 120px);
  padding-bottom: var(--s-7);
}
.proj-head .eyebrow { margin-bottom: var(--s-5); }
.proj-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(56px, 12vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--sandstone-deep);
  margin: 0;
}
.proj-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--sandstone);
}

.proj-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  padding-top: var(--s-6);
  margin-top: var(--s-6);
  border-top: 1px solid var(--hairline-sand);
}
.proj-meta .meta-cell .label { display: block; margin-bottom: var(--s-2); }
.proj-meta .meta-cell .val {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}
@media (max-width: 800px) {
  .proj-meta { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
}

/* Hero */
.proj-hero {
  margin-top: var(--s-7);
  margin-bottom: var(--s-9);
  width: 100%;
  aspect-ratio: 16 / 9;
  border-top: 1px solid var(--hairline-sand);
  border-bottom: 1px solid var(--hairline-sand);
}
.proj-hero.reveal { aspect-ratio: 16 / 9; }
.proj-hero.fit-contain {
  aspect-ratio: auto;
  width: auto;
  max-width: min(720px, 100%);
  max-height: 60vh;
  margin-left: auto;
  margin-right: auto;
}
.proj-hero.fit-contain img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  margin: 0;
  display: block;
}

/* Brief */
.proj-brief {
  display: block;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--hairline-sand);
}
.proj-brief .brief-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--s-8);
  padding-bottom: var(--s-4);
}
.proj-brief .brief-text {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 28;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 75ch;
  margin: 0;
  text-align: left;
}

/* Process: alternating image + text */
.proj-process {
  padding: var(--s-9) 0;
  display: grid;
  gap: var(--s-9);
}
.proj-process.with-aside {
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-8);
  align-items: stretch;
}
.proj-process.with-aside .process-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-7);
  min-height: 100%;
}
.proj-process .process-aside {
  position: sticky;
  top: var(--s-8);
}
.proj-process .process-aside figure {
  width: 100%;
  aspect-ratio: 9 / 16;
}
@media (max-width: 900px) {
  .proj-process.with-aside { grid-template-columns: 1fr; }
  .proj-process .process-aside { position: static; max-width: 420px; }
  .proj-process .process-aside figure { aspect-ratio: 4 / 5; }
}
.process-step {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--s-8);
  align-items: center;
}
.process-step.flip {
  grid-template-columns: 5fr 6fr;
}
.process-step.text-only {
  grid-template-columns: 1fr;
  max-width: 70ch;
}
.process-step.text-only .process-text p {
  max-width: none;
}
.process-step.flip .process-text {
  order: -1;
}
.process-step .process-img {
  aspect-ratio: 4 / 3;
}
.process-step.portrait .process-img {
  aspect-ratio: 4 / 5;
}
.process-step .process-text h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60;
  font-weight: 400;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sandstone-deep);
  margin: 0 0 var(--s-4);
}
.process-step .process-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 50ch;
  margin: 0;
}
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sandstone);
  margin-bottom: var(--s-3);
  display: block;
  letter-spacing: 0.06em;
}
@media (max-width: 800px) {
  .process-step,
  .process-step.flip { grid-template-columns: 1fr; gap: var(--s-5); }
  .process-step.flip .process-text { order: 0; }
}

/* Live products */
.proj-products {
  padding: var(--s-7) 0 var(--s-9);
  border-top: 1px solid var(--hairline-sand);
  display: grid;
  gap: var(--s-7);
}
.products-intro {
  max-width: 60ch;
}
.products-intro h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60;
  font-weight: 400;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sandstone-deep);
  margin: 0 0 var(--s-4);
}
.products-intro p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base) var(--ease-out);
}
.product-card:hover { transform: translateY(-3px); }
.product-img {
  aspect-ratio: 1 / 1;
}
.product-meta h4 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--sandstone-deep);
  margin: 0 0 var(--s-2);
}
.product-meta p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 var(--s-3);
}
.product-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sandstone);
  text-transform: uppercase;
}
@media (max-width: 800px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Editorial gallery */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-5);
  padding: var(--s-7) 0 var(--s-10);
  border-top: 1px solid var(--hairline-sand);
}
.proj-gallery .g-full   { grid-column: 1 / -1; aspect-ratio: 16/9; }
.proj-gallery .g-half   { grid-column: span 6; aspect-ratio: 4/5; }
.proj-gallery .g-two    { grid-column: span 6; aspect-ratio: 3/2; }
.proj-gallery .g-third  { grid-column: span 4; aspect-ratio: 3/4; }
.proj-gallery .g-twoThirds { grid-column: span 8; aspect-ratio: 3/2; }
.proj-gallery .g-tall   { grid-column: span 5; aspect-ratio: 3/4; }
.proj-gallery .g-wide   { grid-column: span 7; aspect-ratio: 4/3; }
.proj-gallery .g-fig figcaption { display: block; margin-top: var(--s-3); }
.proj-gallery .g-eyebrow {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 800px) {
  .proj-gallery .g-full, .proj-gallery .g-half, .proj-gallery .g-two,
  .proj-gallery .g-third, .proj-gallery .g-twoThirds,
  .proj-gallery .g-tall, .proj-gallery .g-wide {
    grid-column: 1 / -1;
  }
}

/* Outcome */
.proj-outcome {
  margin-left: auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-7);
  padding: var(--s-8) 0;
  border-top: 1px solid var(--hairline-sand);
  max-width: 80%;
}
.proj-outcome p {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  max-width: 38ch;
}
@media (max-width: 800px) {
  .proj-outcome { grid-template-columns: 1fr; max-width: 100%; gap: var(--s-3); }
}

/* Next project */
.next-project {
  position: relative;
  padding: var(--s-10) 0;
  border-top: 1px solid var(--hairline-sand);
  overflow: hidden;
  cursor: pointer;
}
.next-project .next-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  filter: saturate(0.7);
  transition: opacity var(--t-slow) var(--ease-out), filter var(--t-slow) var(--ease-out);
}
.next-project:hover .next-bg { opacity: 0.5; filter: saturate(1); }
.next-project .next-bg img { width: 100%; height: 100%; object-fit: cover; }
.next-project .next-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.next-project h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  font-size: clamp(48px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--sandstone-deep);
  margin: 0;
  transition: transform var(--t-slow) var(--ease-out);
}
.next-project h2 em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }
.next-project:hover h2 { transform: translateX(8px); }

/* ========================================================================
   WORK INDEX
   ======================================================================== */
.work-page-head {
  padding-top: clamp(60px, 10vh, 120px);
  padding-bottom: var(--s-7);
}
.work-page-head h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--sandstone-deep);
  margin: 0;
}
.work-page-head h1 em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; color: var(--sandstone); }

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

.about-head {
  padding-top: clamp(60px, 10vh, 120px);
  padding-bottom: var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-9);
  align-items: end;
}
.about-head .label { margin-bottom: var(--s-4); display: block; }
.about-head h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--sandstone-deep);
  margin: 0;
}
.about-head h1 em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; color: var(--sandstone); }

.about-section {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--hairline-sand);
}
.about-section.about-me {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-9);
  align-items: start;
}
.about-section.about-me .about-portrait { aspect-ratio: 3/4; }
.about-section.about-me .about-body { padding-top: var(--s-6); }
.about-section h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--sandstone-deep);
  margin: 0 0 var(--s-6);
}
.about-section h2 em { font-style: italic; font-variation-settings: "opsz" 60, "SOFT" 100; }
.about-section p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 56ch;
  margin: 0 0 var(--s-4);
}
.about-section .lede {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 38ch;
  margin: 0 0 var(--s-5);
}
@media (max-width: 800px) {
  .about-head { grid-template-columns: 1fr; gap: var(--s-4); }
  .about-section.about-me { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* Identity — collage triptych */
.identity-collage {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr;
  gap: var(--s-5);
  margin: var(--s-7) 0 var(--s-5);
  align-items: center;
}
.identity-collage .id-piece { aspect-ratio: 3/4; }
.identity-collage .id-piece.id-center { aspect-ratio: 4/5; transform: translateY(-12px); }
@media (max-width: 800px) {
  .identity-collage { grid-template-columns: 1fr 1fr; }
  .identity-collage .id-piece.id-center { grid-column: 1 / -1; aspect-ratio: 3/2; transform: none; }
}

/* Vision quote */
.vision-quote {
  margin: var(--s-7) 0 var(--s-5);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--hairline-sand);
  border-bottom: 1px solid var(--hairline-sand);
}
.vision-quote blockquote {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--sandstone-deep);
  margin: 0;
  max-width: 14ch;
}
.vision-quote cite {
  display: block;
  font-style: normal;
  margin-top: var(--s-5);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.vision-collage {
  margin-top: var(--s-7);
  aspect-ratio: 21/9;
}

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

.contact-head {
  padding-top: clamp(80px, 18vh, 220px);
  padding-bottom: var(--s-7);
}
.contact-head h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(96px, 24vw, 380px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--sandstone-deep);
  margin: 0;
}
.contact-head h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--sandstone);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-9);
  padding: var(--s-8) 0 var(--s-10);
  border-top: 1px solid var(--hairline-sand);
}
.contact-info { display: grid; gap: var(--s-6); align-content: start; }
.contact-info .field { display: block; }
.contact-info .field .label { display: block; margin-bottom: var(--s-2); }
.contact-info .field .val {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
  color: var(--ink);
}

.contact-form { display: grid; gap: var(--s-5); }
.contact-form .row {
  display: grid;
  gap: var(--s-2);
}
.contact-form label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-sand);
  padding: var(--s-3) 0;
  color: var(--ink);
  font-size: 18px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  outline: none;
  border-radius: 0;
  width: 100%;
  resize: vertical;
  transition: border-color var(--t-fast) var(--ease-out);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--sandstone);
}
.contact-form textarea {
  min-height: 140px;
}
.contact-form .err {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--sandstone);
  margin-top: 2px;
  min-height: 16px;
}
.contact-form .submit-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--s-3);
}
.contact-form button.submit {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  letter-spacing: -0.005em;
  transition: color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.contact-form button.submit::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--sandstone);
  transition: right var(--t-med) var(--ease-out);
}
.contact-form button.submit:hover { color: var(--sandstone-deep); transform: translateX(4px); }
.contact-form .submit-status { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss); }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

/* ========================================================================
   Utility
   ======================================================================== */

.row { display: flex; align-items: baseline; gap: var(--s-3); }
.spread { display: flex; justify-content: space-between; align-items: baseline; }
.ink-60 { color: var(--ink-60); }
.indent-1 { padding-left: 33%; }
@media (max-width: 800px) { .indent-1 { padding-left: 0; } }

/* ========================================================================
   HOMEPAGE SLIDESHOW — five editorial hero slides, 16:9, auto-advancing
   ======================================================================== */

.slideshow {
  position: relative;
  width: 100%;
  max-width: var(--max-content);
  margin: clamp(24px, 4vh, 56px) auto var(--s-7);
  padding-left: var(--gutter-d);
  padding-right: var(--gutter-d);
}
@media (max-width: 900px) { .slideshow { padding-left: var(--gutter-t); padding-right: var(--gutter-t); } }
@media (max-width: 600px) { .slideshow { padding-left: var(--gutter-m); padding-right: var(--gutter-m); } }

.slideshow-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #EFE9DC;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.slideshow-frame::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(ellipse at 8% 12%, rgba(26,15,10,0.025), transparent 60%),
    radial-gradient(ellipse at 92% 88%, rgba(122,46,31,0.035), transparent 55%);
  mix-blend-mode: multiply;
}

/* ----- Each slide is absolutely stacked; only .is-current is opaque ---- */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms cubic-bezier(0.22,0.61,0.36,1);
  font-family: var(--font-body);
  color: var(--ink);
  visibility: hidden;
}
.slide.is-current {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  visibility: visible;
}
.slide.is-exiting { z-index: 1; }

/* ----- Hero plate ------------------------------------------------ */
.slide .s-hero {
  position: absolute;
  top: 8%;
  right: 5%;
  width: 44%;
  height: 88%;
  overflow: hidden;
  background: var(--paper-shadow);
  z-index: 3;
  opacity: 1;
}
.slide.is-current .s-hero { animation: s-rise 1100ms cubic-bezier(0.22,0.61,0.36,1) 200ms both; }
.slide .s-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 60% 55%;
  filter: contrast(1.02) saturate(1.04);
}
.slide.is-current .s-hero img { animation: s-kenburns 16s ease-in-out infinite alternate; }
.slide .s-hero::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(26,15,10,0.18);
  pointer-events: none;
}

.slide .s-strap {
  position: absolute;
  left: 5%;
  bottom: 4%;
  z-index: 5;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  mix-blend-mode: multiply;
}
.slide.is-current .s-strap { animation: s-fade-up 900ms cubic-bezier(0.22,0.61,0.36,1) 900ms both; }
.slide .s-strap::before { content: ""; width: 28px; height: 1px; background: var(--sandstone); }

/* ----- Eyebrow ---------------------------------------------------- */
.slide .s-eyebrow {
  position: absolute;
  top: 7%;
  left: 5%;
  z-index: 5;
  font-family: var(--font-body);
  font-size: clamp(10px, 0.78vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
  display: flex; align-items: center; gap: 14px;
  flex-wrap: nowrap; white-space: nowrap;
}
.slide.is-current .s-eyebrow { animation: s-fade-up 800ms cubic-bezier(0.22,0.61,0.36,1) 100ms both; }
.slide .s-eyebrow > span { white-space: nowrap; }
.slide .s-eyebrow .tick { width: 36px; height: 1px; background: var(--ink-30); flex: 0 0 auto; }
.slide .s-eyebrow .sand { color: var(--sandstone); }

/* ----- Title ----------------------------------------------------- */
.slide .s-title {
  position: absolute;
  top: 19%;
  left: 5%;
  width: 50%;
  z-index: 4;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-size: clamp(40px, 6.2vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.028em;
  color: var(--sandstone-deep);
}
.slide.is-current .s-title { animation: s-title-in 1400ms cubic-bezier(0.22,0.61,0.36,1) 250ms both; }
.slide .s-title .line { display: block; }
.slide .s-title .line-2 {
  padding-left: 14%;
  color: var(--sandstone);
}
.slide .s-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--sandstone);
}
.slide .s-title .dot { color: var(--sandstone); font-style: normal; }

/* ----- Brief ----------------------------------------------------- */
.slide .s-brief {
  position: absolute;
  left: 5%;
  top: 39%;
  width: 42%;
  z-index: 4;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32, "SOFT" 50;
  font-size: clamp(14px, 1.18vw, 19px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 38ch;
  margin: 0;
}
.slide.is-current .s-brief { animation: s-fade-up 1100ms cubic-bezier(0.22,0.61,0.36,1) 1100ms both; }
.slide .s-brief em {
  font-style: italic;
  font-variation-settings: "opsz" 32, "SOFT" 100;
  color: var(--sandstone-deep);
}

/* ----- Hairline ledger ------------------------------------------ */
.slide .s-ledger {
  position: absolute;
  left: 5%; right: 5%;
  top: 50%;
  height: 1px;
  background: var(--hairline);
  z-index: 2;
  transform-origin: 0 50%;
}
.slide.is-current .s-ledger { animation: s-hairline-draw 1400ms cubic-bezier(0.22,0.61,0.36,1) 400ms both; }
.slide .s-ledger-marks {
  position: absolute;
  left: 5%; right: 5%;
  top: calc(50% - 12px);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-45);
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}
.slide.is-current .s-ledger-marks { animation: s-fade-up 900ms cubic-bezier(0.22,0.61,0.36,1) 1000ms both; }
.slide .s-ledger-marks span { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.slide .s-ledger-marks span::after { content: ""; width: 1px; height: 8px; background: var(--ink-30); }

/* ----- Spec strip ----------------------------------------------- */
.slide .s-spec {
  position: absolute;
  left: 5%;
  top: 53.5%;
  display: flex;
  gap: 28px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  pointer-events: none;
}
.slide.is-current .s-spec { animation: s-fade-up 900ms cubic-bezier(0.22,0.61,0.36,1) 800ms both; }
.slide .s-spec .cell { display: flex; flex-direction: column; gap: 4px; min-width: 80px; }
.slide .s-spec .cell b { font-family: var(--font-display); font-weight: 400; font-variation-settings: "opsz" 32; color: var(--ink); text-transform: none; font-size: 13px; letter-spacing: -0.005em; }

/* ----- Plates ---------------------------------------------------- */
.slide .s-plate-cad {
  position: absolute;
  left: 5%;
  top: 62%;
  width: 26%;
  height: 30%;
  background: #FAF5E7;
  border: 1px solid var(--hairline);
  z-index: 4;
  transform: rotate(-1.2deg);
  transform-origin: top left;
}
.slide.is-current .s-plate-cad { animation: s-plate-in-1 1100ms cubic-bezier(0.22,0.61,0.36,1) 600ms both; }
.slide .s-plate-cad .plate-img {
  position: absolute; inset: 14px 14px 28px 14px;
  overflow: hidden;
}
.slide .s-plate-cad img {
  width: 100%; height: 100%;
  filter: contrast(1.08) brightness(1.02);
}
.slide .s-plate-cap {
  position: absolute;
  left: 14px; right: 14px; bottom: 8px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.slide .s-plate-cap .num { color: var(--sandstone); }

.slide .s-plate-iso {
  position: absolute;
  left: 34%;
  top: 64%;
  width: 17%;
  height: 30%;
  background: #FAF5E7;
  border: 1px solid var(--hairline);
  z-index: 6;
  transform: rotate(2deg);
}
.slide.is-current .s-plate-iso { animation: s-plate-in-2 1100ms cubic-bezier(0.22,0.61,0.36,1) 850ms both; }
.slide .s-plate-iso .plate-img {
  position: absolute; inset: 10px 10px 24px 10px;
  overflow: hidden;
}
.slide .s-plate-iso img {
  width: 100%; height: 100%;
}

.slide .s-plate-photo {
  position: absolute;
  right: 7.5%;
  top: 5.5%;
  width: 14%;
  height: 22%;
  overflow: hidden;
  z-index: 6;
  background: var(--paper-shadow);
  border: 1px solid var(--hairline);
  transform: rotate(-1.6deg);
}
.slide.is-current .s-plate-photo { animation: s-plate-in-3 1100ms cubic-bezier(0.22,0.61,0.36,1) 1100ms both; }
.slide .s-plate-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ----- Folio (vertical right edge) ------------------------------ */
.slide .s-folio {
  position: absolute;
  right: 1.4%;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-45);
  text-transform: uppercase;
  z-index: 5;
  white-space: nowrap;
}
.slide.is-current .s-folio { animation: s-fade-up 900ms cubic-bezier(0.22,0.61,0.36,1) 1200ms both; }

/* ----- Ornament ------------------------------------------------- */
.slide .s-ornament {
  position: absolute;
  right: 6%;
  bottom: 6%;
  z-index: 5;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 1.8vw, 28px);
  color: var(--sandstone);
  line-height: 1;
}
.slide.is-current .s-ornament { animation: s-orn-in 1400ms cubic-bezier(0.22,0.61,0.36,1) 1400ms both; }

/* ----- Slide animations ---------------------------------------- */
@keyframes s-kenburns {
  0%   { transform: scale(1.00) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.2%, -1.6%); }
}
@keyframes s-rise {
  from { transform: translateY(18px); }
  to   { transform: none; }
}
@keyframes s-fade-up {
  from { transform: translateY(8px); }
  to   { transform: none; }
}
@keyframes s-title-in {
  from { transform: translateY(14px); letter-spacing: 0.005em; }
  to   { transform: none; letter-spacing: -0.028em; }
}
@keyframes s-plate-in-1 {
  from { transform: translateY(20px) rotate(-1.2deg) scale(0.985); }
  to   { transform: rotate(-1.2deg); }
}
@keyframes s-plate-in-2 {
  from { transform: translateY(20px) rotate(2deg) scale(0.985); }
  to   { transform: rotate(2deg); }
}
@keyframes s-plate-in-3 {
  from { transform: translateY(20px) rotate(-1.6deg) scale(0.985); }
  to   { transform: rotate(-1.6deg); }
}
@keyframes s-hairline-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes s-orn-in {
  from { transform: rotate(-12deg) scale(0.92); }
  to   { transform: rotate(0) scale(1); }
}

/* ----- Slideshow controls (counter + progress + dots) -------- */
.slideshow-meta {
  position: absolute;
  top: 1.2%;
  right: 1.2%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding: 8px 14px;
  background: rgba(242, 235, 220, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--hairline);
  pointer-events: none;
}
.slideshow-meta .meta-current { color: var(--sandstone); }

.slideshow-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(26, 15, 10, 0.08);
  z-index: 15;
  pointer-events: none;
}
.slideshow-progress .bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--sandstone);
  transition: width 50ms linear;
}

.slideshow-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 18;
  display: flex;
  gap: 10px;
  align-items: center;
}
.slideshow-dots .dot {
  width: 28px;
  height: 1px;
  background: rgba(26, 15, 10, 0.30);
  cursor: pointer;
  transition: background var(--t-med) var(--ease-out), height var(--t-med) var(--ease-out);
  padding: 8px 0;
  background-clip: content-box;
  border: 0;
}
.slideshow-dots .dot.is-current { background-color: var(--sandstone); height: 2px; }
.slideshow-dots .dot:hover { background-color: var(--sandstone-deep); }

.slideshow-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 19;
  background: transparent;
  border: 0;
  color: var(--ink-45);
  font-family: var(--font-display);
  font-size: 28px;
  width: 48px; height: 48px;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
  display: grid; place-items: center;
  line-height: 1;
}
.slideshow-nav:hover { color: var(--sandstone-deep); }
.slideshow-nav.prev { left: 8px; }
.slideshow-nav.next { right: 8px; }
.slideshow-nav.prev:hover { transform: translateY(-50%) translateX(-2px); }
.slideshow-nav.next:hover { transform: translateY(-50%) translateX(2px); }

/* ----- Mobile slideshow fallback ------------------------------ */
@media (max-width: 760px) {
  .slideshow-frame { aspect-ratio: 4 / 5; }
  .slide .s-hero { top: 4%; right: 4%; left: 4%; width: auto; height: 50%; }
  .slide .s-hero img { object-position: 50% 60%; }
  .slide .s-eyebrow { top: 55%; left: 5%; }
  .slide .s-title { top: 60%; left: 5%; width: 90%; font-size: clamp(34px, 9.5vw, 58px); }
  .slide .s-title .line-2 { padding-left: 10%; }
  .slide .s-brief { display: none; }
  .slide .s-ledger, .slide .s-ledger-marks { display: none; }
  .slide .s-plate-cad { left: 4%; top: 82%; width: 30%; height: 14%; }
  .slide .s-plate-iso { left: 38%; top: 80%; width: 20%; height: 17%; }
  .slide .s-plate-photo { right: 5%; top: 81%; width: 22%; height: 15%; }
  .slide .s-spec, .slide .s-folio { display: none; }
  .slide .s-ornament { right: 5%; bottom: 2%; }
  .slide .s-strap { left: 5%; bottom: auto; top: 52%; }
}
/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal img { transform: none; opacity: 1; }
}
