/* archxwud.com. Concept: architectural sheets pinned on a pink sky. Plain CSS, no build step. */
:root {
  /* Palette: Flamingo Pink #FAC7E1, Plum Pink #A5467C, Electric Blue #004AFD, deep plum for ink */
  --paper: #fbf3f7;
  --sky: #fac7e1;
  --sky-deep: #f4b3d4;
  --sheet: #ffffff;
  --ink: #2b1024;
  --ink-2: #4d2a42;
  --muted: #5e3d53;
  --line: rgba(43, 16, 36, .22);
  --line-soft: rgba(43, 16, 36, .12);
  --plum: #a5467c;
  --balloon: #fac7e1;
  --balloon-ink: #004afd;
  --accent: #004afd;
  --accent-deep: #0036c2;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, .7);
  --line-dark: rgba(255, 255, 255, .22);
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1280px;
  --gutter: 1rem;
  --radius: 2px;
  --header-h: 4rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 700px) { :root { --gutter: 2rem; } }

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; font-style: normal; letter-spacing: -.01em; line-height: 1.05; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.mono, .eyebrow { font-family: var(--font-body); font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { color: var(--accent); margin: 0 0 1rem; }
.display { font-family: var(--font-display); font-weight: 400; }
em, .italic { font-style: italic; }

/* Sky: slow drifting balloons behind everything */
.sky { display: none; }
.sky__shape { position: absolute; width: 38vmax; height: 38vmax; border-radius: 50% 50% 46% 54% / 60% 60% 40% 40%; background: radial-gradient(closest-side, rgba(0, 74, 253, .07), rgba(0, 74, 253, 0)); will-change: transform; }
.sky__shape:nth-child(2), .sky__shape:nth-child(4) { background: radial-gradient(closest-side, rgba(250, 199, 225, .55), rgba(250, 199, 225, 0)); }
.sky__shape:nth-child(1) { left: -10vmax; top: -8vmax; animation: drift-a 70s ease-in-out infinite alternate; }
.sky__shape:nth-child(2) { right: -14vmax; top: 20vh; width: 48vmax; height: 48vmax; animation: drift-b 90s ease-in-out infinite alternate; }
.sky__shape:nth-child(3) { left: 30vw; bottom: -20vmax; width: 44vmax; height: 44vmax; animation: drift-c 80s ease-in-out infinite alternate; }
.sky__shape:nth-child(4) { left: 55vw; top: -12vmax; width: 26vmax; height: 26vmax; animation: drift-b 60s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(4vw, 6vh) rotate(8deg); } }
@keyframes drift-b { to { transform: translate(-5vw, 5vh) rotate(-6deg); } }
@keyframes drift-c { to { transform: translate(3vw, -5vh) rotate(5deg); } }
.site-header, main, .site-footer, .lightbox, .pager-bar, .progress { position: relative; z-index: 1; }

/* Skip link */
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { top: 1rem; }

/* Reading progress (project pages) */
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 60; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: transform .35s var(--ease), border-color .25s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251, 243, 247, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header.is-scrolled { border-bottom-color: var(--line-soft); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; line-height: 1; }
.brand:hover { color: var(--plum); }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.site-nav { position: relative; }
.site-nav a, .site-nav button { font-family: var(--font-body); font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 2px; padding-bottom: .2rem; transition: background-size .25s var(--ease), color .2s; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { background-size: 100% 2px; }
.site-nav sup { font-size: .6em; margin-left: .15em; color: var(--accent); }
.nav-pos { font-family: var(--font-body); font-size: .85rem; letter-spacing: .04em; color: var(--muted); }
.nav-pos a { color: inherit; text-decoration: none; }
.work-toggle { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-left: .15rem; border: 0; background: none; cursor: pointer; padding: 0; vertical-align: middle; color: var(--muted); }
.work-toggle svg { width: .7rem; height: .7rem; transition: transform .25s var(--ease); }
.work-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-toggle { display: none; align-items: center; gap: .6rem; height: 2.75rem; padding: 0 .2rem; border: 0; background: none; cursor: pointer; font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--ink); }
.nav-toggle__icon { position: relative; width: 1.4rem; height: 1rem; }
.nav-toggle__icon span { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle__icon span:nth-child(1) { top: 2px; }
.nav-toggle__icon span:nth-child(2) { top: 13px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { top: 7px; transform: rotate(-45deg); }

/* Work panel (desktop) */
.work-panel { position: absolute; right: 0; top: calc(100% + .9rem); transform: translateY(6px); width: min(880px, calc(100vw - 2 * var(--gutter))); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 1.1fr .9fr; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; box-shadow: 0 24px 60px -30px rgba(28, 26, 31, .35); }
.work-panel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) { .has-panel:hover .work-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }
.work-panel__list { list-style: none; margin: 0; padding: .75rem 0; }
.work-panel__list a { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: baseline; gap: .75rem; padding: .55rem 1.25rem; font-family: var(--font-body); font-size: .98rem; letter-spacing: 0; text-transform: none; background: none; }
.work-panel__list a:hover, .work-panel__list a:focus-visible, .work-panel__list a.is-active { background: var(--sky); color: var(--ink); }
.work-panel__list .num { font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.work-panel__list .term { font-family: var(--font-body); font-size: .8rem; color: var(--muted); }
.work-panel__preview { position: relative; border-left: 1px solid var(--line); background: var(--sheet); aspect-ratio: 4 / 3; overflow: hidden; }
.work-panel__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s var(--ease); }
.work-panel__preview img.is-active { opacity: 1; }
.work-panel__all { display: block; padding: .8rem 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; letter-spacing: 0; text-transform: none; font-weight: 500; }

/* Mobile navigation overlay */
@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); color: var(--on-dark); overflow: auto; padding: 1.5rem var(--gutter) 3rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-top: 1px solid var(--line-dark); }
  .site-nav a, .site-nav button { color: var(--on-dark); }
  .site-nav a[aria-current="page"] { background-size: 0 0; color: var(--sky); }
  .site-nav sup, .work-panel__list .num { color: var(--sky); }
  .work-panel__list .term { color: var(--on-dark-muted); }
  .work-panel__list a:hover, .work-panel__list a:focus-visible, .work-panel__list a.is-active { background: none; color: var(--sky); }
  .work-panel__list a[aria-current="page"] { color: var(--sky); }
  .site-nav > ul > li > a { display: block; padding: 1.1rem 0; font-family: var(--font-display); font-style: normal; font-size: 2.2rem; letter-spacing: -.01em; text-transform: none; background: none; }
  .work-toggle, .nav-pos { display: none; }
  .work-panel { position: static; transform: none; width: auto; opacity: 1; visibility: visible; border: 0; background: none; box-shadow: none; grid-template-columns: 1fr; transition: none; }
  .work-panel__preview, .work-panel__all { display: none; }
  .work-panel__list { padding: 0 0 1rem; }
  .work-panel__list a { padding: .5rem 0; font-size: 1.1rem; }
  .work-panel__list a:hover { background: none; }
  .nav-overlay-contact { border-top: 1px solid var(--line-dark); padding-top: 1.25rem; }
}
body.nav-open { overflow: hidden; }

/* Marquee strip (the original site's running name, brought back) */
.marquee { overflow: hidden; background: var(--plum); color: #fff; padding: .7rem 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 3rem; padding-right: 3rem; animation: marquee 60s linear infinite; }
.marquee__track span::after { content: "\00b7"; margin-left: 3rem; color: var(--sky); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Sheets */
.sheet { position: relative; background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.sheet--marks { margin: 0; }
.sheet--marks::before, .sheet--marks::after { content: none; position: absolute; width: 14px; height: 14px; pointer-events: none; background: linear-gradient(var(--line), var(--line)) no-repeat center / 100% 1px, linear-gradient(var(--line), var(--line)) no-repeat center / 1px 100%; }
.sheet--marks::before { left: -17px; top: -17px; box-shadow: none; }
.sheet--marks::after { right: -17px; bottom: -17px; }
.titleblock { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); border-top: 1px solid var(--line); margin: 0; }
.titleblock > * { display: block; padding: .85rem 1rem; border-right: 1px solid var(--line-soft); min-width: 0; }
.titleblock > *:last-child { border-right: 0; }
.titleblock dt, .titleblock .label { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .2rem; }
.titleblock dd, .titleblock .value { display: block; margin: 0; font-size: .92rem; line-height: 1.45; }
.titleblock a { text-decoration: none; border-bottom: 1px solid var(--line); }
.titleblock a:hover { border-color: var(--ink); }

/* Hero (home) */
.hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, var(--sky) 0%, var(--sky) 55%, var(--paper) 100%); }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; } .hero__media { order: 2; } }
.hero__sheet { display: block; width: 100%; animation: settle 1s var(--ease-out) both; color: var(--ink); text-decoration: none; border: 0; background: transparent; box-shadow: 0 30px 80px -40px rgba(43, 16, 36, .45); }
.hero__sheet img { border-radius: var(--radius); width: 100%; max-height: min(70vh, 720px); object-fit: cover; }
@media (max-width: 899px) { .hero__sheet img { max-height: 60vh; } }
.hero__sheet img { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
@keyframes settle { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__name { font-size: clamp(3.2rem, 7vw, 6.5rem); font-style: italic; line-height: .95; letter-spacing: -.02em; margin: 0; animation: rise 1.1s .25s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__sub { margin: 1.5rem 0 0; max-width: 34ch; color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); animation: rise 1.1s .4s var(--ease-out) both; }
.hero__caption { margin: .75rem 0 0; font-size: .85rem; color: var(--muted); }
.hero__cue { display: inline-flex; align-items: center; gap: .6rem; margin-top: 2rem; font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .15rem; animation: rise 1.1s .55s var(--ease-out) both; }
.hero__cue svg { width: .9rem; height: .9rem; animation: nod 2.2s ease-in-out infinite; }
@keyframes nod { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.hero__cue { color: var(--ink); }
.hero__cue:hover { color: var(--accent-deep); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.75rem; position: relative; padding-bottom: 1rem; }
.section__head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.section__head.is-in::after, .no-js .section__head::after { transform: scaleX(1); }
.section__title { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.section__intro { color: var(--muted); margin: 0; font-size: .95rem; }

/* Project index (home) */
.index-wrap { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .index-wrap { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index__row { border-bottom: 1px solid var(--line); }
.index__link { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) auto; grid-template-areas: "num title thumb" "num meta thumb"; column-gap: 1rem; align-items: center; padding: 1.1rem .75rem; margin: 0 -.75rem; color: var(--ink); text-decoration: none; border-radius: var(--radius); transition: background .25s var(--ease); }
.index__link:hover, .index__link:focus-visible, .index__row.is-active .index__link { background: var(--sky); }
.index__num { grid-area: num; font-family: var(--font-body); font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: var(--accent); transition: transform .3s var(--ease); }
.index__link:hover .index__num, .index__row.is-active .index__num { transform: translateX(5px); color: var(--ink); }
.index__title { grid-area: title; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.01em; }
.index__meta { grid-area: meta; font-family: var(--font-body); font-size: .85rem; color: var(--muted); margin-top: .25rem; white-space: nowrap; }
.index__thumb { grid-area: thumb; width: 4.5rem; height: 3.4rem; object-fit: cover; border: 1px solid var(--line); background: var(--sheet); }
@media (min-width: 900px) { .index__thumb { display: none; } .index__link { grid-template-columns: 2.8rem minmax(0, 1fr) auto; grid-template-areas: "num title meta"; align-items: baseline; } .index__meta { margin: 0; } }
.index-preview { display: none; position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (min-width: 900px) { .index-preview { display: block; } }
.index-preview__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.index-preview__caption { margin: 0; padding: .75rem 1rem; border-top: 1px solid var(--line-soft); font-size: .9rem; color: var(--ink-2); }
.index-preview__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1.25rem; opacity: 0; transform: scale(.985); transition: opacity .4s var(--ease), transform .6s var(--ease); }
.index-preview__stage img.is-active { opacity: 1; transform: none; }

/* Editorial sheet grid (work page) */
.sheets { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .sheets { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; } .sheet-card { grid-column: span var(--span, 6); } }
.sheet-card { position: relative; }
.sheet-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.sheet-card__media { display: block; overflow: hidden; background: var(--sheet); }
.sheet-card__media img { width: 100%; transition: transform .7s var(--ease); }
.sheet-card__link:hover img { transform: scale(1.015); }
.sheet-card__body { display: block; padding: 1rem 1.1rem 1.2rem; border-top: 1px solid var(--line-soft); }
.sheet-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; }
.sheet-card__num { font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: var(--accent); }
.sheet-card__meta { margin-left: auto; font-size: .82rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 1100px) { .sheet-card__meta { flex-basis: 100%; margin-left: 0; } }
.sheet-card .title { margin: 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }
.sheet-card .sum { display: block; font-size: .9rem; line-height: 1.5; color: var(--ink-2); margin: .5rem 0 0; }
.sheet-card__link:hover .title { color: var(--accent); }

/* Page heads */
.page-head { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head__title { font-size: clamp(2.8rem, 7vw, 5.5rem); font-style: italic; letter-spacing: -.02em; line-height: .98; margin: 0 0 .35em; max-width: 14ch; }
.page-head__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 58ch; margin: 0; }

/* Project page */
.project-head { padding: clamp(2rem, 5vw, 4rem) 0 0; }
.project-head__top { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.project-num { font-family: var(--font-body); font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: var(--accent); }
.project-title { font-size: clamp(2.8rem, 7.5vw, 6rem); font-style: italic; letter-spacing: -.02em; line-height: .98; margin: .25em 0 0; max-width: 14ch; }
.project-sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--ink-2); margin: 1rem 0 0; max-width: 50ch; }
.project-hero { margin-top: clamp(1.25rem, 3vw, 2.25rem); }
.project-hero__img { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.project-hero .titleblock { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); border-top: 1px solid var(--line-soft); }
.titleblock > * { border-right: 0; }
.project-layout { display: grid; gap: 2rem; padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4rem); }
@media (min-width: 1000px) { .project-layout { grid-template-columns: 12rem minmax(0, 1fr); gap: 3.5rem; } }
.toc { position: sticky; top: calc(var(--header-h) + 1.25rem); align-self: start; }
.toc__title { font-family: var(--font-body); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .3rem 0 .3rem .9rem; margin-left: -1px; border-left: 1px solid transparent; font-size: .86rem; color: var(--ink-2); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--accent); border-left-color: var(--accent); }
.toc summary { display: none; }
@media (max-width: 999px) {
  .toc { position: static; border: 1px solid var(--line); background: var(--sheet); border-radius: var(--radius); padding: 0; }
  .toc summary { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; cursor: pointer; font-family: var(--font-body); font-size: .85rem; font-weight: 500; list-style: none; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary::after { content: "+"; font-size: 1rem; }
  .toc[open] summary::after { content: "\2212"; }
  .toc__title { display: none; }
  .toc ol { border: 0; padding: 0 1rem .75rem; }
  .toc a { border-left: 0; padding-left: 0; }
}
.project__body { display: flex; flex-direction: column; gap: clamp(1.25rem, 3vw, 2.25rem); min-width: 0; }
.prose { max-width: 62ch; color: var(--ink-2); }
.prose p, .prose li { font-size: 1.05rem; }
.prose--lg p { font-size: 1.15rem; line-height: 1.7; }
.prose ul { margin-bottom: 1.25em; }
.prose li { margin-bottom: .35em; }
.project__text { margin: 0; }
.project__heading { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: clamp(1rem, 2vw, 1.5rem) 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.link-arrow::after { content: " \2192"; display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover { border-color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Image grids */
.grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fig--wide { grid-column: 1 / -1; }
}
.fig { margin: 0; }
.fig__link { display: block; border-radius: var(--radius); overflow: hidden; background: var(--sheet); border: 1px solid var(--line-soft); cursor: zoom-in; }
.fig__link img { width: 100%; }
.fig > img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--sheet); }
.fig__caption { margin-top: .5rem; font-size: .86rem; color: var(--muted); }

/* Video facade */
.video { max-width: 900px; }
.video__play { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16 / 9; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.2rem; background: var(--sheet); color: var(--ink); font-size: .9rem; font-weight: 500; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; }
.video__play:hover .video__label { background: var(--accent); color: #fff; border-color: var(--accent); }
.video__label { color: var(--ink); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* Pager (end of project) */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding-top: 2rem; padding-bottom: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.pager__link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.pager__link--next { text-align: right; }
.pager__label { font-size: .8rem; color: var(--muted); }
.pager__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -.01em; }
.pager__link:hover .pager__title { color: var(--accent); }
.pager__all { font-size: .85rem; font-weight: 500; text-decoration: none; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.pager__all:hover { border-color: var(--accent); color: var(--accent); }
.pager__hint { grid-column: 1 / -1; text-align: center; font-size: .8rem; color: var(--muted); margin: 0; }
.pager__hint kbd { font: inherit; padding: .05rem .35rem; border: 1px solid var(--line); border-radius: 3px; }
.lightbox__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 599px) { .pager { grid-template-columns: 1fr 1fr; } .pager__all { grid-column: 1 / -1; justify-self: center; } .pager__hint { display: none; } }

/* Sticky pager bar (project pages, appears after reading most of the page) */
.pager-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(43, 16, 36, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line-dark); transform: translateY(100%); transition: transform .35s var(--ease); }
.pager-bar.is-visible { transform: none; }
.pager-bar__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 3rem; }
.pager-bar a { font-size: .85rem; font-weight: 500; color: var(--on-dark); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager-bar a:hover { color: var(--sky); }
.pager-bar__next { text-align: right; }
.pager-bar__all { color: var(--on-dark-muted) !important; }
@media (max-width: 599px) { .pager-bar__title { display: none; } }

/* About page */
.split { display: grid; gap: 2rem; }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; } }
.about-sheet { padding: clamp(1.5rem, 4vw, 3rem); }
.facts__title { font-family: var(--font-body); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 1.75rem 0 .6rem; font-weight: 500; }
.facts__title:first-child { margin-top: 0; }
.facts__list { list-style: none; padding: 0; margin: 0; }
.facts__list li { margin-bottom: .6rem; font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { padding: .25rem .6rem; border: 1px solid var(--line); font-size: .82rem; }

/* Contact */
.contact { padding: clamp(3rem, 8vw, 7rem) 0; background: var(--sky); }
.contact__inner { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 860px) { .contact__inner { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.contact__title { font-size: clamp(2.6rem, 6vw, 4.5rem); font-style: italic; letter-spacing: -.02em; line-height: .95; margin: 0; }
.contact__text { color: var(--ink-2); margin: 0 0 1.25rem; max-width: 40ch; }
.contact__mail { display: inline-block; font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; color: var(--on-dark); background: var(--accent); text-decoration: none; padding: .9em 1.5em; border-radius: 999px; line-height: 1.2; transition: background .2s, transform .2s var(--ease); }
.contact__mail:hover { background: var(--ink); transform: translateY(-1px); }
.contact__meta { margin: 1rem 0 0; font-size: .9rem; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer__inner { display: grid; gap: 1.25rem; padding-top: 2.25rem; padding-bottom: 2.5rem; font-size: .9rem; color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); }
@media (min-width: 800px) { .site-footer__inner { grid-template-columns: 1fr auto auto; align-items: start; gap: 3rem; } }
.site-footer__name { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--sky); margin: 0 0 .2rem; }
.site-footer { background: var(--ink); }
.site-footer__nav { display: flex; flex-direction: column; gap: .35rem; }
.site-footer__nav a { color: var(--on-dark); text-decoration: none; padding-block: .4rem; }
.site-footer__nav a:hover { color: var(--sky); }
.site-footer__copy { margin: 0; font-size: .85rem; color: var(--on-dark-muted); }
.site-footer__top { display: inline-block; padding-block: .4rem; font-size: .85rem; font-weight: 500; color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.site-footer__top:hover { color: var(--sky); border-color: var(--sky); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(43, 16, 36, .94); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .22s var(--ease-out) both; }
@keyframes lb-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: .75rem; max-width: 100vw; max-height: 100vh; padding: 3.5rem 1rem 1.5rem; }
.lightbox__img { max-width: min(96vw, 1800px); max-height: calc(100vh - 7.5rem); width: auto; height: auto; object-fit: contain; background: #fff; }
.lightbox__caption { color: rgba(255, 255, 255, .8); font-size: .9rem; text-align: center; max-width: 80ch; }
.lightbox__counter { position: fixed; top: 1.5rem; left: 1.25rem; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.lightbox__close, .lightbox__nav { position: fixed; z-index: 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.2rem; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--sky); color: var(--ink); border-color: var(--sky); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
@media (max-width: 699px) { .lightbox__nav { top: auto; bottom: 1rem; transform: none; } }
.lightbox__nav[hidden] { display: none; }
body.has-dialog { overflow: hidden; }

/* Scroll reveal: only applied by JS to elements below the fold */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Reduced motion: everything readable and static */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  .marquee__track > *:nth-child(n + 7) { display: none; }
  .sky__shape, .sky__shape:nth-child(n), .hero__cue svg { animation: none !important; }
  .hero__sheet, .hero__name, .hero__sub, .hero__cue { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .section__head::after { transform: scaleX(1); }
}

@media print {
  .site-header, .site-footer, .pager, .pager-bar, .contact, .lightbox, .sky, .toc, .marquee, .progress { display: none !important; }
  body { background: #fff; }
  .fig__link { border: 0; }
  .hero, .contact { background: none; }
}
