:root {
  --paper: #f4efe6;
  --paper-2: #e7e0d4;
  --ink: #1c1917;
  --muted: #5c564e;
  --line: rgba(28, 25, 23, 0.14);
  --wash: rgba(28, 25, 23, 0.045);
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4.5vw, 3.25rem);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(80, 74, 66, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(60, 56, 50, 0.05), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a, input { font: inherit; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 0.85rem;
  z-index: 50;
}
.skip:focus { top: 1rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem var(--pad);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}
.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0 0.95rem;
  cursor: pointer;
}

.hero, .chapter, .story, .footer, .page-hero {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.hero {
  position: relative;
  padding: clamp(4.5rem, 12vw, 8.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  isolation: isolate;
}
.hero-wash, .leaf, .tanzaku { pointer-events: none; }
.hero-wash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 32%;
  z-index: -1;
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to top, transparent, #000 24%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to top, transparent, #000 24%);
  mask-composite: intersect;
}
.hero-wash svg { width: 100%; height: 100%; }
.leaf {
  position: absolute;
  z-index: -1;
  opacity: 0.45;
  animation: drift 16s var(--ease) infinite;
}
.leaf-a { width: 78px; top: 8%; right: 16%; animation-duration: 18s; }
.leaf-b { width: 36px; top: 38%; right: 8%; animation-duration: 13s; animation-delay: -4s; opacity: 0.32; }
.leaf-c { width: 28px; top: 62%; left: 4%; animation-duration: 20s; animation-delay: -7s; opacity: 0.28; }
.tanzaku {
  position: absolute;
  z-index: 0;
  top: 6%;
  right: 0;
  display: flex;
  gap: 0.55rem;
}
.tanzaku span {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  padding: 1.1rem 0.35rem 1.3rem;
  background: rgba(255, 252, 247, 0.42);
  border: 1px solid rgba(28, 25, 23, 0.12);
}

.role {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.hero h1, .page-hero h1 {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(4.6rem, 13vw, 9rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
}
.page-hero { padding: clamp(3.2rem, 8vw, 6rem) 0 0.5rem; position: relative; }
.page-hero h1 { font-size: clamp(3.4rem, 8vw, 6.2rem); max-width: 14ch; }
.statement {
  margin: 1.5rem 0 0;
  max-width: 14ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lede, .section-lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}
.lede { margin: 1.25rem 0 0; }
.hero-actions { margin: 1.8rem 0 0; }
.button, .button:visited {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.button:hover { background: #000; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2.6rem 0 0;
  padding: 0;
  list-style: none;
}
.chips a, .tags li, .filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  background: rgba(255, 252, 247, 0.45);
}
.chips a:hover { background: #fffdf8; }

.chapter { padding: clamp(4.5rem, 11vw, 8rem) 0; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
h2 {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 6.4vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.chapter-head { margin-bottom: 2.4rem; max-width: 36rem; }
.section-lede { margin: 1rem 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.4rem; }
.filters button {
  background: transparent;
  color: var(--ink);
  min-height: 44px;
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.piece {
  padding: clamp(2.4rem, 5vw, 3.6rem) 0;
  border-top: 1px solid var(--line);
}
.piece[hidden] { display: none !important; }
.plate {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: #ddd6c8;
  margin-bottom: 1.25rem;
  outline: 1px solid rgba(28, 25, 23, 0.08);
  box-shadow: 0 22px 50px rgba(28, 25, 23, 0.06);
}
.plate img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  transition: transform 0.9s var(--ease);
}
.plate-portrait img { object-position: 50% 18%; }
.plate-top img { object-position: top center; }
.plate:hover img, .plate:focus-visible img { transform: scale(1.035); }
.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.piece h3, .story h1 {
  margin: 0.35rem 0 0.7rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.piece h3 a { text-decoration: none; }
.piece h3 a:hover { text-decoration: underline; text-underline-offset: 0.12em; }
.piece > p, .story > p { margin: 0; max-width: 38rem; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}
.tags li { background: rgba(255, 252, 247, 0.7); }
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  min-height: 44px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  line-height: 1;
}
.piece .story-link, .more-work .story-link { justify-self: start; width: fit-content; }
.story-link::after { content: "→"; font-style: normal; transition: transform 0.4s var(--ease); }
.story-link:hover::after { transform: translateX(5px); }

.more-work { margin: 0.5rem 0 0; }

.approach {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.approach li {
  background: rgba(255, 252, 247, 0.55);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: 2px;
  padding: 1.5rem 1.35rem 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(255, 252, 247, 0.4);
}
.approach span {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}
.approach h3 {
  margin: 0.4rem 0 0.35rem;
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.approach p { margin: 0; color: var(--muted); }

.about-grid {
  display: grid;
  gap: 1.6rem;
  align-items: start;
}
.about-grid img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  outline: 1px solid rgba(28, 25, 23, 0.08);
}
.about-grid p { margin: 0 0 1rem; max-width: 40rem; }
.quiet { color: var(--muted); }
.facts {
  display: grid;
  gap: 1rem;
  margin: 1.4rem 0 0;
}
.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.facts dd { margin: 0.2rem 0 0; }

.contact { position: relative; }
.contact h2, .page-hero.contact-title h1 { max-width: 11ch; }
.email-placeholder {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 1.8rem 0 0;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.email-placeholder span {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.horizon {
  margin-top: 3.5rem;
  height: 88px;
  background: radial-gradient(ellipse 48% 80% at 50% 130%, rgba(28, 25, 23, 0.18), transparent 68%);
}
.footnote {
  margin-top: 2rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.footnote a { color: var(--ink); }

.story {
  padding-top: clamp(1.6rem, 4vw, 2.6rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}
.page-hero + .chapter { padding-top: clamp(1.4rem, 3vw, 2.2rem); }
.story-hero {
  margin: 0.4rem 0 1.4rem;
  border-radius: 2px;
  overflow: hidden;
  background: #ddd6c8;
  outline: 1px solid rgba(28, 25, 23, 0.08);
}
.story-hero img { width: 100%; max-height: 78vh; object-fit: cover; object-position: center; }
.story-hero-portrait img { object-position: 50% 16%; max-height: 82vh; }
.story-hero-top img { object-position: top center; object-fit: contain; background: #10141c; max-height: none; }
.story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.5rem;
  margin-top: 1.4rem;
}
.back {
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.back:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.frame-row {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}
.frame img { width: 100%; border-radius: 2px; }
.frame figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding: 1.5rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer nav { display: flex; gap: 1.15rem; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.missing { padding: clamp(4rem, 10vw, 7rem) 0; }
.missing h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -0.03em; margin: 0.3rem 0 0; }

.js .reveal.is-in { animation: rise 0.9s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(-8deg); }
  50% { transform: translate3d(10px, 22px, 0) rotate(12deg); }
  100% { transform: translate3d(-6px, 6px, 0) rotate(-4deg); }
}

@media (min-width: 900px) {
  .piece {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.8fr);
    column-gap: clamp(2rem, 4vw, 4.2rem);
    align-items: center;
  }
  .piece .plate {
    grid-column: 1;
    grid-row: 1 / span 5;
    margin: 0;
  }
  .piece .meta,
  .piece h3,
  .piece > p,
  .piece .tags,
  .piece .story-link { grid-column: 2; }
  .piece:nth-of-type(even) .plate { grid-column: 2; }
  .piece:nth-of-type(even) .meta,
  .piece:nth-of-type(even) h3,
  .piece:nth-of-type(even) > p,
  .piece:nth-of-type(even) .tags,
  .piece:nth-of-type(even) .story-link { grid-column: 1; }
  .approach { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: minmax(280px, 1.12fr) 1fr; gap: 3rem; align-items: center; }
  .facts { grid-template-columns: 1fr 1fr; }
  .frame-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 981px) {
  .hero { padding-right: 5.5rem; }
}
@media (max-width: 980px) {
  .tanzaku { display: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.35rem var(--pad) 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links a { padding: 0.85rem 0; min-height: 44px; }
  .nav.is-open .nav-links { display: flex; }
  .leaf { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body.is-locked { overflow: hidden; }
