:root {
  --paper:    #f7f4ed;
  --paper-2:  #efebe0;
  --ink:      #211c16;
  --muted:    #7c7466;
  --faint:    #a79e8d;
  --line:     #e4ddcd;
  --accent:   #bf4f2a;
  --accent-2: #2f6a5e;
  --ok:       #2f6a5e;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }
a { color: var(--accent); text-decoration: none; }
img { display: block; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.diamond { color: var(--accent); font-style: normal; }

/* ---------- animations (no hover anywhere) ---------- */
@keyframes rise {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dots { 0% { opacity: .2; } 50% { opacity: 1; } 100% { opacity: .2; } }
@keyframes stamp-in {
  0%   { opacity: 0; transform: rotate(-14deg) scale(1.15); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-anim { animation: rise 0.85s var(--ease) both; }
.delay-1 { animation-delay: 0.14s; }
.delay-2 { animation-delay: 0.28s; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.brand .dot { color: var(--accent); }
.brand .dot { animation: blink 2.4s steps(1) infinite; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 237, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 28px;
}
.brand { font-family: var(--serif); font-size: 1.55rem; color: var(--ink); letter-spacing: -0.01em; }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.seal { font-size: 0.68rem; color: var(--faint); letter-spacing: 0.06em; }

main.container { padding-top: 64px; padding-bottom: 90px; min-height: 72vh; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 20px 0 10px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .page-head { padding-bottom: 30px; }
.lede { color: var(--muted); font-size: 1.04rem; max-width: 460px; margin: 22px 0 0; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 13px 22px;
  display: inline-block;
}
.cta.ghost { background: transparent; color: var(--ink); }

.hero-figure { position: relative; display: flex; flex-direction: column; align-items: center; }
.figure-media {
  position: relative;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  animation: drift 5.5s ease-in-out infinite;
  isolation: isolate;
}
.figure-bg {
  position: absolute;
  inset: -4% -20%;
  margin: auto;
  background: linear-gradient(165deg, #f0d7c3, #dce9e2);
  border-radius: 50%;
  z-index: 1;
}
.crop-top-half {
  width: 100%;
  aspect-ratio: 110 / 110.5;
  overflow: hidden;
}
.crop-top-half svg { width: 100%; height: auto; }
.figure-svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink);
  z-index: 2;
}
.fig-caption {
  margin-top: 18px;
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.1em;
  text-align: center;
}

/* stamp */
.stamp {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  color: var(--accent-2);
  border: 2px solid var(--accent-2);
  border-radius: 50%;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  animation: stamp-in 0.9s var(--ease) 0.5s both;
}

/* ledger strip */
.ledger {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: 40px 0 10px;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ledger i { color: var(--accent); font-style: normal; font-size: 0.6rem; }

/* ---------- sections ---------- */
.section { padding: 60px 0 8px; margin-top: 26px; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head .index { color: var(--accent); font-size: 0.8rem; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 0; letter-spacing: -0.01em; }
.section-head .head-rule { flex: 1; min-width: 60px; height: 1px; background: var(--line); align-self: center; }
.section-head .head-note { font-size: 0.68rem; color: var(--faint); letter-spacing: 0.08em; }

/* ---------- stack grid ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.stack { border-top: 2px solid var(--ink); padding-top: 16px; position: relative; z-index: 1; overflow: hidden; padding-bottom: 20px; }
.stack .mark { position: absolute; right: -15px; bottom: -15px; color: var(--accent); opacity: 0.08; z-index: -1; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.stack .mark svg { height: 7.5rem; width: auto; }
.stack h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 8px 0 8px; }
.stack p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---------- works ---------- */
.works { display: flex; flex-direction: column; }
.work {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
}
.work:first-child { border-top: 1px solid var(--line); }
.w-num { color: var(--faint); font-size: 0.78rem; }
.w-body h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; letter-spacing: -0.01em; }
.w-body h3 a { color: var(--ink); }
.w-body p { color: var(--muted); font-size: 0.94rem; margin: 0 0 10px; max-width: 620px; }
.tags { font-size: 0.72rem !important; color: var(--faint) !important; text-transform: uppercase; letter-spacing: 0.08em; }
.w-arrow { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.1em; }

/* ---------- filmstrip ---------- */
.filmstrip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 22px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.frame {
  margin: 0;
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-top: 1.5px solid var(--ink);
  padding-top: 12px;
}
.frame img, .frame-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background:
    linear-gradient(160deg, #f2d9c6, #dbe7e0);
}
.frame figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.frame .fx { font-size: 0.7rem; color: var(--accent); }
.frame .fm { font-size: 0.76rem; color: var(--muted); }

/* ---------- entries ---------- */
.entries { list-style: none; padding: 0; margin: 0; }
.entries li {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.e-date { color: var(--faint); font-size: 0.74rem; }
.e-body .e-title { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--ink); }
.e-body p { color: var(--muted); font-size: 0.9rem; margin: 8px 0 0; }
.e-arrow { color: var(--accent); font-size: 0.85rem; }

/* ---------- page head ---------- */
.page-head { padding: 30px 0 54px; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; margin: 0; letter-spacing: -0.015em; }
.page-head h1 em { font-style: italic; color: var(--accent); }
.page-head .sub { color: var(--muted); margin: 18px 0 0; max-width: 520px; }

/* ---------- detail ---------- */
.detail { max-width: 720px; }
.detail .eyebrow { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: none; }
.detail h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.015em; }
.detail .tags { color: var(--faint) !important; margin-bottom: 30px; }
.detail .body { color: #4a4337; font-size: 1.08rem; }
.detail .body p { margin: 0 0 20px; }
.detail img { max-width: 100%; margin-top: 10px; }
.detail-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.back { margin-top: 34px; font-size: 0.74rem; }
.back a { color: var(--muted); }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 60px; align-items: start; }
.contact-form p { margin: 24px 0; }
.contact-form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 2px;
  background: transparent;
  color: var(--ink);
  border: none;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  font: inherit;
  font-size: 1.05rem;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button { margin-top: 12px; }
.errorlist { color: var(--accent); margin: 8px 0 0; padding-left: 18px; font-family: var(--mono); font-size: 0.78rem; }

.alert {
  border: 1.5px solid var(--accent-2);
  color: var(--accent-2);
  background: rgba(47, 106, 94, 0.06);
  padding: 14px 18px;
  margin: 26px 0 0;
  font-size: 0.95rem;
}

.contact-side { display: flex; flex-direction: column; align-items: center; gap: 26px; position: sticky; top: 110px; }
.figure-mini { width: 100%; max-width: 160px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.figure-mini .figure-media { max-width: 160px; }
.figure-mini .figure-bg { inset: -4% -24%; }
.figure-mini .fig-caption { margin-top: 14px; }

.channels { list-style: none; padding: 0; margin: 8px 0 0; width: 100%; }
.channels li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}
.channels .label { color: var(--faint); }
.channels a { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  padding-bottom: 30px;
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.empty { color: var(--faint); font-size: 0.8rem; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 44px; }
  .hero-figure { order: -1; }
  .figure-media { max-width: 170px; }
  .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .contact-side { position: static; }
  .stack-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  main.container { padding-top: 40px; }
  .site-header .container { flex-direction: column; gap: 12px; padding: 14px 28px; }
  .site-header nav { gap: 20px; }
  .work { grid-template-columns: 1fr; gap: 8px; }
  .w-num { margin-bottom: 4px; }
  .entries li { grid-template-columns: 1fr; gap: 6px; }
  .hero h1 { font-size: 2.2rem; }
}