@font-face {
  font-family: "Graphik";
  src: url("fonts/Graphik-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Graphik";
  src: url("fonts/Graphik-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Graphik";
  src: url("fonts/Graphik-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Graphik";
  src: url("fonts/Graphik-Semibold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --canvas: #121212;
  --surface: #1c1c1c;
  --surface-alt: #252525;
  --ink: #fff;
  --ink-soft: rgb(255 255 255 / 85%);
  --muted: #989898;
  --line: rgb(255 255 255 / 14%);
  --chip: #f7f7f7;
  --chip-ink: #000;
  --gutter: 24px;
  --grid-gap: 10px;
  --radius: 16px;
  --rail-width: 328px;
  --display: "Graphik", Inter, ui-sans-serif, system-ui, sans-serif;
  --body: "Graphik", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid #d7dfac;
  outline-offset: 4px;
}

.site-shell { min-height: 100vh; }

.site-rail {
  position: fixed;
  z-index: 10;
  inset: 24px auto 24px 24px;
  width: var(--rail-width);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rail-top { display: grid; gap: 56px; }

.rail-name,
.primary-nav a {
  display: block;
  width: fit-content;
  color: var(--ink-soft);
  font: 300 28px / 1.48 var(--display);
  letter-spacing: -0.0225em;
  transition: color 180ms ease, transform 180ms ease;
}

.rail-name:hover,
.primary-nav a:hover { color: var(--ink); transform: translateX(3px); }

.primary-nav { display: grid; gap: 0; }

.project-index {
  display: grid;
  gap: 12px;
  align-content: start;
}

.project-index a {
  display: flex;
  min-height: 64px;
  flex-direction: column;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: background 180ms ease, transform 180ms ease;
}

.project-index a:hover,
.project-index a[aria-current="true"] {
  background: var(--surface-alt);
  transform: translateX(4px);
}

.index-title,
.index-descriptor,
.section-kicker,
.card-copy,
.card-tags,
.footer-meta,
.site-location {
  font: 400 12px / 1.55 var(--body);
}

.index-title { color: var(--ink); }
.index-descriptor { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rail-bottom { display: grid; gap: 2px; }

.site-clock {
  color: var(--ink);
  font: 300 28px / 1.15 var(--display);
  letter-spacing: -0.02em;
}

.site-location { color: var(--muted); }

.site-main {
  width: min(calc(100% - var(--gutter) * 2 - var(--rail-width) - 16px), 1320px);
  margin-left: calc(var(--rail-width) + 40px);
  padding: 24px 24px 80px 0;
}

.featured-section,
.work-section,
.about-section,
.contact-footer { scroll-margin-top: 24px; }

.featured-section { min-height: 0; }

.section-kicker {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.featured-card {
  position: relative;
  min-height: min(68vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 24px;
  background: #cfd7a5;
  color: #10110f;
}

.featured-card::before,
.featured-card::after { content: ""; position: absolute; pointer-events: none; }

.featured-card::before {
  width: 58%;
  aspect-ratio: 1;
  top: 11%;
  right: 8%;
  border: 1px solid rgb(18 18 18 / 42%);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgb(18 18 18 / 8%), 0 0 0 96px rgb(18 18 18 / 5%);
  transform: rotate(-18deg);
}

.featured-card::after {
  width: 78%;
  height: 1px;
  top: 55%;
  right: -6%;
  background: rgb(18 18 18 / 25%);
  transform: rotate(-28deg);
}
.featured-card:has(.image-art)::before,
.featured-card:has(.image-art)::after { display: none; }

.featured-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
  padding: clamp(24px, 4vw, 56px);
  color: #fff;
}

.eyebrow,
.card-tags span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgb(10 10 10 / 68%);
  color: #fff;
  font: 400 11px / 1.5 var(--body);
}

.featured-copy h1 {
  max-width: 720px;
  margin: 18px 0 0;
  font: 400 clamp(16px, 1.8vw, 22px) / 1.25 var(--body);
  letter-spacing: -0.0125em;
}

.featured-link { position: absolute; inset: 0; z-index: 0; }
.featured-link .project-art { width: 100%; height: 100%; opacity: .9; }
.featured-copy h1 a { color: inherit; }
.featured-card { touch-action: pan-y; }
.featured-card .featured-link,
.featured-card .featured-copy { transition: opacity 700ms cubic-bezier(.22, 1, .36, 1), transform 700ms cubic-bezier(.22, 1, .36, 1); }
.featured-card.is-changing .featured-link,
.featured-card.is-changing .featured-link { opacity: 0; transform: scale(1.015); }
.featured-card.is-changing .featured-copy { opacity: 0; transform: translateY(18px); }
.featured-controls { position: absolute; z-index: 4; top: 24px; right: 24px; display: flex; gap: 8px; }
.featured-control { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid currentColor; border-radius: 50%; background: rgb(255 255 255 / 70%); color: #10110f; font: 400 20px / 1 var(--body); cursor: pointer; transition: background 180ms ease, transform 180ms ease; }
.featured-control:hover { background: var(--ink); color: var(--canvas); transform: translateY(-2px); }
.featured-progress { position: absolute; z-index: 4; right: 24px; bottom: 20px; left: 24px; height: 2px; overflow: hidden; background: rgb(255 255 255 / 28%); }
.featured-progress span { display: block; width: 0; height: 100%; background: #fff; animation: featured-progress 8000ms linear forwards; }
.featured-theme-field .featured-progress span { background: #10110f; }
@keyframes featured-progress { from { width: 0; } to { width: 100%; } }

.featured-copy p {
  width: 350px;
  max-width: none;
  margin: 24px 0 0;
  color: inherit;
  font: 300 18px / 1.25 var(--body);
  letter-spacing: -0.0125em;
}

.work-section { padding-top: 96px; }

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading-row h2,
.section-heading-row p { margin: 0; }

.section-heading-row h2 {
  color: var(--ink);
  font: 300 28px / 1.2 var(--display);
  letter-spacing: -0.025em;
}

.section-heading-row p { color: var(--muted); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  padding-top: 10px;
}

.project-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: background 180ms ease, transform 360ms cubic-bezier(.22, 1, .36, 1);
}

.project-card:hover { background: var(--surface-alt); transform: translateY(-4px); }

.project-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--art-bg, #d4ddaa);
  color: var(--art-ink, #10110f);
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

/* Image cards use the source image's natural ratio, so there is no artificial
   color block below a cover that is shorter than the abstract-art fallback. */
.project-media:has(.image-art) {
  min-height: 0;
  aspect-ratio: auto !important;
}
.project-media:has(.image-art) > .image-art {
  min-height: 0;
}
.project-media:has(.image-art) .image-art img {
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.project-media > .project-art { min-height: inherit; }

.project-card:nth-child(3n + 1) .project-media { aspect-ratio: 1 / 1.08; }
.project-card:nth-child(3n + 2) .project-media { aspect-ratio: 1 / 1.32; }
.project-card:nth-child(3n) .project-media { aspect-ratio: 1 / 0.88; }

.project-art { position: relative; overflow: hidden; }
.image-art::before,
.image-art::after { display: none; }
.image-art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.featured-link .image-art img { object-fit: cover; border-radius: 24px; }
.featured-theme-field .featured-copy { color: #10110f; }

.project-art::before,
.project-art::after { content: ""; position: absolute; pointer-events: none; }

.art-orbit { --art-bg: #d4ddaa; --art-ink: #10110f; }
.art-orbit::before {
  width: 86%;
  aspect-ratio: 1;
  top: 5%;
  left: 7%;
  border: 1px solid rgb(16 17 15 / 55%);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgb(16 17 15 / 9%), 0 0 0 56px rgb(16 17 15 / 7%);
}
.art-orbit::after { inset: 48% -10% auto; height: 1px; background: rgb(16 17 15 / 55%); transform: rotate(-24deg); }

.art-signal { --art-bg: #190d20; --art-ink: #f4e9f4; }
.art-signal::before {
  width: 170%;
  height: 44%;
  left: -32%;
  top: 27%;
  border: 1px solid rgb(244 233 244 / 66%);
  border-radius: 50%;
  transform: rotate(-35deg);
  box-shadow: 0 0 0 22px rgb(244 233 244 / 11%), 0 0 0 44px rgb(244 233 244 / 8%);
}
.art-signal::after { width: 72%; height: 1px; top: 52%; right: -8%; background: rgb(244 233 244 / 80%); transform: rotate(35deg); }

.art-lattice { --art-bg: #e5bd9d; --art-ink: #1d1816; }
.art-lattice::before {
  inset: 9%;
  border: 1px solid rgb(29 24 22 / 80%);
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgb(29 24 22 / 50%) 39px 40px), repeating-linear-gradient(0deg, transparent 0 38px, rgb(29 24 22 / 50%) 39px 40px);
  transform: rotate(12deg) scale(1.2);
}
.art-lattice::after { width: 42%; height: 42%; top: 30%; left: 29%; border: 1px solid var(--art-ink); border-radius: 50%; background: var(--art-bg); }

.art-field { --art-bg: #b9cae1; --art-ink: #1a2735; }
.art-field::before { inset: 0; background: linear-gradient(135deg, transparent 0 46%, rgb(26 39 53 / 65%) 47% 48%, transparent 49% 100%), linear-gradient(25deg, transparent 0 62%, rgb(26 39 53 / 40%) 63% 64%, transparent 65% 100%); }
.art-field::after { width: 58%; height: 58%; left: 21%; top: 21%; border: 1px solid var(--art-ink); border-radius: 50%; box-shadow: inset 0 0 0 18px rgb(26 39 53 / 8%); }

.art-blank { --art-bg: #f0f0ea; --art-ink: #1d1d1b; }
.art-blank::before { inset: 11%; border: 1px solid rgb(29 29 27 / 65%); transform: rotate(-8deg); }
.art-blank::after { width: 46%; height: 1px; top: 50%; left: 27%; background: var(--art-ink); transform: rotate(-8deg); }

.art-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font: 400 clamp(28px, 4vw, 56px) / .9 var(--display);
  letter-spacing: -0.04em;
  transform: rotate(-18deg);
}

.card-tags {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.card-copy { display: grid; gap: 0; padding: 14px 4px 2px; }
.card-title { color: var(--ink); }
.card-description { max-width: 42ch; margin: 2px 0 0; color: var(--muted); }

.about-section { padding: 128px 0 160px; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  gap: 12%;
  padding-top: 24px;
}

.about-intro {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font: 300 clamp(30px, 4.2vw, 64px) / .98 var(--display);
  letter-spacing: -0.035em;
}

.about-details { display: grid; align-content: end; gap: 16px; color: var(--muted); }
.about-details p { margin: 0; }
.about-details p:first-child { color: var(--ink); }
.about-details a { width: fit-content; color: var(--ink); border-bottom: 1px solid var(--ink); }

.contact-footer { padding: 24px 0 0; border-top: 1px solid var(--line); }

.contact-content { padding: 96px 0 132px; }
.contact-content p { max-width: 700px; margin: 0 0 24px; color: var(--ink); font: 300 clamp(34px, 5vw, 76px) / .95 var(--display); letter-spacing: -0.0375em; }
.contact-content a { color: #d7dfac; font: 300 clamp(24px, 3vw, 44px) / 1 var(--display); letter-spacing: -0.03em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.footer-meta { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }

.loading-note { color: var(--muted); }
.loading-block { min-height: 300px; }
.no-script { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: var(--canvas); color: var(--ink); }

.project-main { width: min(100% - 48px, 1320px); margin: 0 auto; padding: 24px 0 72px; }
.project-header,
.project-footer { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }
.project-header a:first-child,
.project-header a:hover,
.project-footer a:hover { color: var(--ink); }
.project-detail { padding-top: 104px; }
.project-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8%; align-items: end; }
.project-hero-copy h1 { max-width: 760px; margin: 18px 0 0; color: var(--ink); font: 300 clamp(42px, 7vw, 106px) / .94 var(--display); letter-spacing: -0.0375em; }
.project-hero-copy > p { max-width: 450px; margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.project-hero > img { display: block; width: 100%; max-height: 70vh; object-fit: cover; border-radius: 24px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.project-meta a { color: var(--ink); margin-left: auto; text-decoration: underline; text-underline-offset: 4px; }
.project-sections { max-width: 980px; margin: 120px auto 0; }
.project-sections section { display: grid; grid-template-columns: minmax(180px, .4fr) minmax(0, 1fr); gap: 10%; padding: 32px 0; border-top: 1px solid var(--line); }
.project-sections h2 { margin: 0; color: var(--muted); font: 400 12px / 1.55 var(--body); text-transform: uppercase; letter-spacing: .09em; }
.project-sections p { max-width: 620px; margin: 0; color: var(--ink); font: 300 clamp(22px, 3vw, 42px) / 1.08 var(--display); letter-spacing: -0.025em; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 88px; }
.project-gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.project-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-gallery-item:first-child { grid-column: 1 / -1; }
.project-footer { margin-top: 120px; padding-top: 16px; border-top: 1px solid var(--line); }
.text-link { display: inline-block; margin-top: 24px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.reveal { opacity: 1; transform: none; }

@media (min-width: 760px) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  :root { --rail-width: 280px; }
  .site-main { margin-left: calc(var(--rail-width) + 32px); width: calc(100% - var(--rail-width) - 56px); }
  .site-rail { width: var(--rail-width); }
}

@media (max-width: 680px) {
  :root { --gutter: 24px; }
  html { scroll-behavior: auto; }
  .site-rail { position: relative; inset: auto; width: auto; min-height: auto; display: block; padding: 24px 24px 0; }
  .rail-top { gap: 56px; }
  .project-index { margin-top: 42px; gap: 12px; }
  .rail-bottom { display: none; }
  .site-main { width: auto; margin: 56px 24px 0; padding: 0 0 48px; }
  .featured-section { display: block; }
  .work-section { padding-top: 0; }
  .section-heading-row { align-items: flex-end; gap: 16px; }
  .section-heading-row p { max-width: 170px; text-align: right; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card { padding: 12px; }
  .project-media { min-height: 140px; }
  .card-tags { top: 20px; right: 20px; }
  .card-tags span { padding-inline: 6px; font-size: 9px; }
  .card-copy { padding-top: 10px; font-size: 10px; line-height: 1.35; }
  .card-description { display: none; }
  .about-section { padding: 96px 0; }
  .about-grid { display: block; padding-top: 18px; }
  .about-intro { font-size: 38px; }
  .about-details { margin-top: 40px; }
  .contact-content { padding: 72px 0 96px; }
  .contact-content p { font-size: 44px; }
  .project-main { width: calc(100% - 32px); padding-top: 16px; }
  .project-detail { padding-top: 72px; }
  .project-hero { display: flex; flex-direction: column; gap: 40px; align-items: stretch; }
  .project-hero-copy h1 { font-size: 52px; }
  .project-hero > img { max-height: 58vh; }
  .project-meta a { margin-left: 0; width: 100%; }
  .project-sections { margin-top: 72px; }
  .project-sections section { display: block; }
  .project-sections h2 { margin-bottom: 20px; }
  .project-gallery { grid-template-columns: 1fr; margin-top: 56px; }
  .project-gallery-item:first-child { grid-column: auto; }
  .project-footer { margin-top: 72px; }
  .footer-meta { gap: 16px; flex-wrap: wrap; }
}

/* About page */
.about-page { background: var(--canvas); }
.about-shell { min-height: 100vh; }
.about-rail { position: fixed; z-index: 10; inset: 24px auto 24px 24px; width: var(--rail-width); display: flex; flex-direction: column; justify-content: space-between; }
.about-rail-top { display: grid; gap: 56px; }
.about-rail-bottom { display: grid; grid-template-columns: 1fr; grid-auto-flow: row; gap: 2px; color: var(--muted); font-size: 12px; }
.about-main { width: min(calc(100% - var(--gutter) * 2 - var(--rail-width) - 16px), 1320px); margin-left: calc(var(--rail-width) + 40px); padding: 24px 24px 80px 0; }
.about-header { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.about-header a { color: var(--ink); }
.about-content { padding-top: 112px; }
.about-heading-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 32px; align-items: start; }
.about-label { padding-top: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.about-title-portrait { display: block; width: 128px; height: 128px; border-radius: 50%; object-fit: cover; object-position: center; }
.about-heading-row h1 { max-width: 760px; margin: 0; color: var(--ink); font: 300 48px / 1.05 var(--display); letter-spacing: -0.0375em; }
.about-portrait { display: block; width: 128px; height: 128px; margin: 48px 0 0 20%; border-radius: 50%; object-fit: cover; object-position: center 34%; }
.about-copy { max-width: 760px; margin: 56px 0 0 20%; }
.about-copy p { margin: 0; padding: 30px 0; border-top: 1px solid var(--line); color: var(--ink); font: 300 18px / 1.5 var(--display); letter-spacing: -0.0125em; }
.about-copy a { color: #d7dfac; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.about-footer { display: flex; justify-content: space-between; margin-top: 144px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.about-footer a { color: var(--ink); }

/* Homepage refinements */
.project-grid { align-items: start; }
.about-intro { font-size: 36px; line-height: 1.08; }
.primary-nav a { font-size: 22px; }
.about-intro { font-size: 48px; }
.contact-content p { font-size: 36px; }
.contact-links { display: grid; gap: 10px; }
.contact-links a { display: inline-flex; align-items: center; gap: .35em; width: fit-content; color: #d7dfac; font: 300 clamp(20px, 3vw, 36px) / 1 var(--display); letter-spacing: -0.025em; text-decoration: none; }
.contact-links a > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.link-arrow { display: inline-block; text-decoration: none; transition: transform 220ms cubic-bezier(.22, 1, .36, 1); }
.contact-links a:hover .link-arrow { transform: translate(4px, -4px); }
.about-grid .text-link { display: inline-flex; align-items: center; gap: .35em; width: fit-content; color: #d7dfac; font: 300 clamp(20px, 3vw, 36px) / 1 var(--display); letter-spacing: -0.025em; text-decoration: none; }
.about-grid .text-link > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.about-grid .text-link:hover .link-arrow { transform: translate(4px, -4px); }
.featured-card { min-height: 0; display: block; }
.featured-link { position: relative; inset: auto; display: block; height: clamp(360px, 54vh, 620px); }
.featured-link .project-art { height: 100%; }
  .featured-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 32px; }
  .featured-copy p { width: auto; max-width: 520px; }
  .featured-controls { top: 16px; right: 16px; }
  .featured-progress { right: 16px; bottom: 16px; left: 16px; }
.about-grid { grid-template-columns: 1fr; }
.about-intro { max-width: 1100px; }

/* Let cards keep their own height so the next card can fill the open space. */
.project-grid { display: block; column-count: 2; column-gap: var(--grid-gap); }
.project-card { display: flex; margin-bottom: var(--grid-gap); break-inside: avoid; }

@media (max-width: 900px) {
  .about-rail { width: var(--rail-width); }
  .about-main { margin-left: calc(var(--rail-width) + 32px); width: calc(100% - var(--rail-width) - 56px); }
}

@media (max-width: 680px) {
  .about-rail { position: relative; inset: auto; width: auto; min-height: auto; display: block; padding: 24px 24px 0; }
  .about-rail-top { gap: 56px; }
  .about-rail-bottom { display: none; }
  .about-main { width: auto; margin: 56px 24px 0; padding: 0 0 48px; }
  .about-content { padding-top: 40px; }
  .about-heading-row { display: block; }
  .about-label { display: block; margin-bottom: 20px; }
  .about-title-portrait { width: 104px; height: 104px; margin-bottom: 24px; }
  .about-heading-row h1 { max-width: none; margin-left: 0; font-size: 40px; }
  .about-portrait { width: 104px; height: 104px; margin: 32px 0 0; }
  .about-intro { font-size: 36px; }
  .about-copy { margin: 40px 0 0; }
  .about-copy p { padding: 24px 0; font-size: 18px; }
  .about-footer { margin-top: 88px; gap: 16px; flex-wrap: wrap; }
  .featured-link { height: 54vh; min-height: 320px; }
  .contact-links { display: grid; gap: 16px; }
  .project-grid { column-count: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Case-study layout: image-led, editorial, and closer to the reference project pages. */
.project-page { background: var(--canvas); }
.project-shell { min-height: 100vh; }
.project-rail { position: fixed; z-index: 10; inset: 24px auto 24px 24px; width: var(--rail-width); display: flex; flex-direction: column; justify-content: space-between; }
.project-rail-top { display: grid; gap: 56px; }
.project-rail-bottom { display: grid; grid-template-columns: 1fr; grid-auto-flow: row; gap: 2px; color: var(--muted); font-size: 12px; }
.project-main { width: min(calc(100% - var(--gutter) * 2 - var(--rail-width) - 16px), 1320px); margin-left: calc(var(--rail-width) + 40px); padding: 24px 24px 80px 0; }
.project-header { padding-bottom: 10px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .09em; }
.project-detail { padding-top: 72px; }
.project-hero { display: block; }
.project-hero-copy { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); column-gap: 5%; align-items: start; }
.project-hero-meta { display: flex; flex-direction: column; gap: 2px; padding-top: 11px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.project-hero-copy h1 { max-width: 920px; margin: 0; color: var(--ink); font: 300 64px / .98 var(--display); letter-spacing: -0.04em; }
.project-hero-copy > p { grid-column: 2; max-width: 610px; margin: 32px 0 0; color: var(--ink-soft); font: 300 clamp(21px, 2.4vw, 34px) / 1.14 var(--display); letter-spacing: -0.025em; }
.project-hero > img { display: block; width: 100%; max-height: 78vh; margin-top: 72px; object-fit: cover; border-radius: 24px; }
.project-hero-placeholder { display: grid; place-items: center; min-height: 520px; margin-top: 72px; background: var(--placeholder-bg); color: #10110f; }
.project-hero-placeholder span { font: 300 clamp(40px, 7vw, 96px) / .9 var(--display); letter-spacing: -0.04em; transform: rotate(-8deg); }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.project-gallery-item { min-height: 360px; margin: 0; overflow: hidden; background: var(--surface); }
.project-gallery-item img { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.project-gallery-item:first-child { grid-column: 1 / -1; min-height: 620px; }
.project-gallery-item:first-child img { min-height: 620px; }
.project-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .35fr); gap: 12%; margin: 144px 0 0; }
.project-sections { max-width: 760px; margin: 0; }
.project-section-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.project-writing-section { display: grid; grid-template-columns: minmax(160px, .42fr) minmax(0, 1fr); gap: 8%; padding: 32px 0; border-bottom: 1px solid var(--line); }
.project-writing-section h3 { margin: 0; color: var(--muted); font: 400 12px / 1.55 var(--body); text-transform: uppercase; letter-spacing: .08em; }
.project-writing-section p { margin: 0; color: var(--ink); font: 300 clamp(20px, 2.4vw, 32px) / 1.16 var(--display); letter-spacing: -0.0225em; }
.project-details { align-self: start; display: grid; gap: 28px; padding-top: 40px; }
.project-details div { display: grid; gap: 5px; }
.project-details span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.project-details strong,
.project-details a { color: var(--ink); font-size: 13px; font-weight: 400; }
.project-details a { text-decoration: underline; text-underline-offset: 4px; }
.project-footer { margin-top: 144px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .project-rail { width: var(--rail-width); }
  .project-main { margin-left: calc(var(--rail-width) + 32px); width: calc(100% - var(--rail-width) - 56px); }
}

@media (max-width: 680px) {
  .project-rail { position: relative; inset: auto; width: auto; min-height: auto; display: block; padding: 24px 24px 0; }
  .project-rail-top { gap: 56px; }
  .project-rail-bottom { display: none; }
  .project-main { width: auto; margin: 56px 24px 0; padding: 0 0 48px; }
  .project-detail { padding-top: 56px; }
  .project-hero-copy { display: block; }
  .project-hero-meta { flex-direction: row; justify-content: space-between; margin-bottom: 20px; }
  .project-hero-copy h1 { font-size: 54px; }
  .project-hero-copy > p { margin-top: 28px; font-size: 25px; }
  .project-hero > img { max-height: 65vh; margin-top: 48px; }
  .project-hero-placeholder { min-height: 340px; margin-top: 48px; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery-item,
  .project-gallery-item:first-child,
  .project-gallery-item img,
  .project-gallery-item:first-child img { min-height: 300px; }
  .project-content-grid { display: block; margin-top: 88px; }
  .project-writing-section { display: block; }
  .project-writing-section h3 { margin-bottom: 18px; }
  .project-details { grid-template-columns: repeat(2, 1fr); padding-top: 48px; }
  .project-footer { margin-top: 88px; }
}

/* Expanded case-study rhythm: facts, thesis, evidence, then detailed story. */
.project-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-facts div { display: grid; gap: 5px; }
.project-facts span,
.project-facts a { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.project-facts strong { color: var(--ink); font-size: 13px; font-weight: 400; }
.project-facts a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.case-toc { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 24px; }
.case-toc a { color: var(--muted); font-size: 12px; }
.case-toc a:hover { color: var(--ink); }
.project-overview { display: block; margin: 96px auto 0; max-width: 980px; padding-top: 0; }
.project-overview-copy { max-width: 620px; margin-left: 35%; }
.project-overview h2 { max-width: 650px; margin: 0 0 20px; color: var(--ink); font: 300 clamp(26px, 3vw, 46px) / 1.05 var(--display); letter-spacing: -0.03em; }
.project-overview p { max-width: 620px; margin: 0; color: var(--ink-soft); font: 300 20px / 1.4 var(--display); letter-spacing: -0.0125em; }
.project-visual { margin: 96px 0 0; overflow: hidden; background: var(--surface); border-radius: 24px; }
.project-visual img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: 24px; }
.project-visual--lead { margin-top: 72px; }
.project-visual--comparison { overflow: visible; background: transparent; }
.theme-compare { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); border-radius: 24px; }
.theme-compare-image { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover !important; }
.theme-compare-overlay { position: absolute; z-index: 1; inset: 0; overflow: hidden; clip-path: inset(0 calc(100% - var(--compare-position)) 0 0); }
.theme-compare-overlay .theme-compare-image { width: 100% !important; }
.theme-compare-divider { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--compare-position); width: 1px; background: var(--ink); transform: translateX(-50%); pointer-events: none; }
.theme-compare-divider span { position: absolute; top: 50%; left: 50%; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--canvas); color: var(--ink); font-size: 20px; transform: translate(-50%, -50%); }
.theme-compare-range { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.project-visual--comparison figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.project-visual--comparison figcaption span { color: var(--ink-soft); }
.case-story { max-width: 980px; margin: 72px auto 0; }
.case-section { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr); column-gap: 5%; padding-top: 20px; border-top: 1px solid var(--line); }
.case-section + .case-section { margin-top: 64px; }
.case-section-heading { display: block; }
.case-section-heading span { color: var(--muted); font: 400 12px / 1.55 var(--body); }
.case-section-heading h2 { margin: 14px 0 0; color: var(--ink); font: 300 36px / 1.1 var(--display); letter-spacing: -0.03em; }
.case-section-copy { max-width: 620px; margin: 0; padding-top: 29px; }
.case-section-copy h3 { margin: 0 0 20px; color: var(--ink); font: 300 24px / 1.2 var(--display); letter-spacing: -0.02em; }
.case-section-copy p { margin: 0; color: var(--ink-soft); font: 300 18px / 1.5 var(--display); letter-spacing: -0.0125em; }
.rich-copy { color: var(--ink-soft); }
.rich-copy p { margin: 0 0 24px; color: inherit; font: 300 18px / 1.5 var(--display); letter-spacing: -0.0125em; }
.case-section-copy:has(.rich-inline-image) { max-width: none; }
.rich-inline-image { display: block; width: 150.5%; max-height: 86vh; margin: 32px 0 32px -50.5%; object-fit: contain; border-radius: 24px; }
.rich-copy ul,
.rich-copy ol { margin: 0 0 24px; padding-left: 24px; color: var(--ink-soft); font: 300 18px / 1.5 var(--display); letter-spacing: -0.0125em; }
.rich-copy li + li { margin-top: 10px; }
.rich-copy strong { color: var(--ink); font-weight: 500; }
.rich-copy blockquote { margin: 32px 0; padding-left: 20px; border-left: 1px solid var(--line); color: var(--ink-soft); font: 300 18px / 1.5 var(--display); letter-spacing: -0.0125em; }
.rich-copy blockquote p { margin: 0; color: inherit; font: inherit; }
.case-section-copy blockquote { margin: 32px 0 0; padding-left: 20px; border-left: 1px solid var(--line); color: var(--ink-soft); font: 300 18px / 1.5 var(--display); letter-spacing: -0.0125em; }
.case-section .project-visual { grid-column: 1 / -1; margin-top: 48px; }
.project-visual--placeholder { min-height: 360px; display: grid; place-items: center; background: linear-gradient(135deg, #20241c, #343b28 48%, #171a16); }
.project-visual--placeholder > div { display: grid; gap: 10px; justify-items: center; color: rgb(255 255 255 / 72%); }
.project-visual--placeholder span { font: 300 clamp(28px, 4vw, 52px) / 1 var(--display); letter-spacing: -0.03em; }
.project-visual--placeholder small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.project-outcome { max-width: 980px; margin: 144px auto 0; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-outcome span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.project-outcome h2 { max-width: 760px; margin: 24px 0 0; color: var(--ink); font: 300 clamp(28px, 4vw, 60px) / 1 var(--display); letter-spacing: -0.035em; }

@media (max-width: 680px) {
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
  .case-toc { gap: 12px 18px; }
  .project-overview { display: block; margin-top: 64px; }
  .project-overview-copy { max-width: none; margin-left: 0; }
  .project-overview .project-section-label { margin-bottom: 28px; }
  .project-overview p { font-size: 18px; }
  .project-visual,
  .project-visual--lead { margin-top: 56px; }
  .case-story { margin-top: 56px; }
  .case-section + .case-section { margin-top: 56px; }
  .case-section { display: block; }
  .case-section-heading { display: block; }
  .case-section-heading span { display: block; }
  .case-section-heading h2 { font-size: 36px; }
  .case-section-copy { margin: 18px 0 0; padding-top: 0; }
  .case-section-copy h3 { font-size: 21px; }
  .case-section-copy blockquote { font-size: 18px; }
  .case-section-copy:has(.rich-inline-image) { max-width: none; }
  .rich-inline-image { width: 100%; margin-left: 0; }
  .project-outcome { margin-top: 88px; }
}
