:root {
  --paper: #f8f6f0;
  --paper-soft: #efebe4;
  --ink: #151512;
  --muted: #6f6a61;
  --line: rgba(21, 21, 18, 0.16);
  --stone: #d9d2c7;
  --shadow: 0 24px 70px rgba(35, 31, 24, 0.12);
  --panel: rgba(248, 246, 240, 0.78);
  --grid-line: rgba(10, 10, 9, 0.035);
  --wash: rgba(157, 188, 169, 0.18);
  --dark-panel: #11110f;
  --dark-panel-text: #f8f6f0;
  --dark-panel-muted: rgba(248, 246, 240, 0.7);
  --anchor-offset: clamp(72px, 8vw, 104px);
  --focus-dim: 1;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hand: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", cursive;
}

:root[data-theme="dark"] {
  --paper: #12120f;
  --paper-soft: #1e1d19;
  --ink: #f4efe6;
  --muted: #b7afa2;
  --line: rgba(244, 239, 230, 0.16);
  --stone: #24221e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --panel: rgba(18, 18, 15, 0.82);
  --grid-line: rgba(244, 239, 230, 0.045);
  --wash: rgba(153, 181, 165, 0.16);
  --dark-panel: #050505;
  --dark-panel-text: #f4efe6;
  --dark-panel-muted: rgba(244, 239, 230, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: calc((100vw - 160px) / 6) 100%, auto;
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  transition: background-color 320ms ease, color 320ms ease;
}

body.menu-open {
  overflow: hidden;
}

body.focus-mode .side-rail,
body.focus-mode .top-nav,
body.focus-mode .rail-socials,
body.focus-mode .scroll-meter {
  opacity: 0.16;
}

body.focus-mode .hero-art,
body.focus-mode .hero-cards {
  opacity: 0.42;
}

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

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ink) 82%, transparent);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 18px;
  left: 188px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 0 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(-150%);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.34;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px),
    radial-gradient(circle at 82% 12%, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px);
  background-size: 32px 32px, 46px 46px;
}

.scroll-meter {
  position: fixed;
  top: 0;
  right: 10px;
  z-index: 60;
  width: 2px;
  height: 100vh;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

.scroll-meter span {
  display: block;
  width: 100%;
  height: calc(var(--scroll-progress, 0) * 100%);
  background: var(--ink);
  transform-origin: top;
}

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 168px;
  display: grid;
  grid-template-rows: 150px 1fr 150px;
  padding: 34px 46px;
  border-right: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  transition: background 320ms ease, border-color 320ms ease, opacity 240ms ease;
}

.mini-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.mini-mark svg,
.rail-socials svg,
.hero-cards svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-nav {
  align-self: center;
  display: grid;
  gap: 23px;
}

.rail-nav a {
  position: relative;
  width: max-content;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
  line-height: 1;
  color: rgba(21, 21, 18, 0.68);
  transition: color 240ms ease, transform 240ms ease;
}

:root[data-theme="dark"] .rail-nav a {
  color: rgba(244, 239, 230, 0.68);
}

.rail-nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.34);
  transform-origin: left;
  opacity: 0.45;
  transition: transform 240ms ease, opacity 240ms ease;
}

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

.rail-nav a:hover::after,
.rail-nav a.is-active::after,
.text-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.rail-socials {
  align-self: end;
  display: flex;
  gap: 20px;
}

.rail-socials a {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  transition: transform 220ms ease;
}

.rail-socials a:hover {
  transform: translateY(-3px);
}

.top-bar {
  position: fixed;
  top: 0;
  left: 168px;
  right: 0;
  z-index: 45;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(28px, 6vw, 84px);
  pointer-events: none;
  background: var(--panel);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 320ms ease, border-color 320ms ease;
}

.wordmark {
  justify-self: start;
  font-size: 1.08rem;
  letter-spacing: 0.3em;
  font-weight: 600;
  pointer-events: auto;
}

.top-nav {
  display: flex;
  gap: clamp(28px, 5vw, 78px);
  pointer-events: auto;
  transition: opacity 240ms ease;
}

.top-nav a,
.tiny-label,
.text-link,
.work-meta,
.site-footer,
.letter-form label,
.control-button,
.ghost-link,
.site-card li {
  font-size: 0.69rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.top-nav a {
  position: relative;
  padding: 10px 0;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%) scale(0);
  transition: transform 220ms ease;
}

.top-nav a:hover::after,
.top-nav a.is-active::after {
  transform: translateX(-50%) scale(1);
}

.top-nav a.is-active {
  color: var(--ink);
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.control-button {
  min-width: 54px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.control-button:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ink) 42%, transparent);
}

.theme-icon {
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: currentColor;
  box-shadow: inset -4px 0 0 var(--paper);
}

.menu-button {
  justify-self: end;
  width: 70px;
  height: 70px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 9px;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 240ms ease, background 240ms ease;
}

.menu-button:hover {
  transform: rotate(8deg);
  background: rgba(21, 21, 18, 0.04);
}

.menu-button span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ink);
  transition: transform 220ms ease;
}

body.menu-open .menu-button {
  transform: rotate(5deg);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

body.menu-open .menu-button span:first-child {
  transform: translateY(5px) rotate(18deg);
}

body.menu-open .menu-button span:last-child {
  transform: translateY(-5px) rotate(-18deg);
}

main {
  margin-left: 168px;
}

.section {
  position: relative;
  min-height: 100vh;
  padding: clamp(78px, 8vw, 126px) clamp(28px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
}

.snap-section {
  scroll-margin-top: var(--anchor-offset);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(320px, 0.94fr);
  grid-template-rows: 1fr auto;
  gap: 36px 36px;
  align-items: center;
  padding-top: clamp(96px, 9vw, 126px);
  padding-bottom: 0;
}

.script-line {
  margin: 0 0 26px;
  font-family: var(--hand);
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1;
  transform: rotate(-2deg);
}

:lang(zh-CN) .script-line,
:lang(zh-CN) .handline,
:lang(zh-CN) .art-caption,
:lang(zh-CN) .scroll-cue b {
  font-family: var(--serif);
  font-style: italic;
  transform: none;
  word-spacing: 0;
}

.script-line::after,
.handline::after,
.art-caption::after {
  content: "";
  display: block;
  width: 68px;
  height: 1px;
  margin-top: 7px;
  background: currentColor;
  opacity: 0.42;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.1rem, 8.25vw, 8.8rem);
  line-height: 0.86;
}

.handline {
  margin: 0 0 24px;
  max-width: 780px;
  font-family: var(--hand);
  font-size: clamp(1.45rem, 2.72vw, 2.62rem);
  line-height: 1.28;
  word-spacing: 0.18em;
}

.intro {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.54vw, 1.45rem);
  line-height: 1.64;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 17px;
  padding-bottom: 13px;
}

.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
}

.text-link i {
  width: 22px;
  height: 1px;
  background: currentColor;
  position: relative;
  display: inline-block;
}

.text-link i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.ghost-link {
  position: relative;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 36%, transparent);
  background: transparent;
  color: var(--muted);
  padding: 0 0 12px;
  cursor: pointer;
  transition: color 220ms ease, transform 220ms ease;
}

.ghost-link:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.hero-art {
  justify-self: center;
  width: min(80%, 470px);
  padding-top: 28px;
}

.large-eye {
  width: 100%;
  overflow: visible;
}

.large-eye path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.large-eye .wash {
  fill: var(--wash);
  stroke: none;
}

.art-caption {
  width: min(310px, 100%);
  margin: -36px 0 0 auto;
  font-family: var(--hand);
  font-size: clamp(1.14rem, 1.7vw, 1.72rem);
  line-height: 1.38;
  transform: rotate(-3deg);
}

.hero-cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.hero-cards article {
  min-height: 176px;
  padding: 30px clamp(24px, 3vw, 44px) 26px;
  border-right: 1px solid var(--line);
}

.hero-cards article:last-child {
  border-right: 0;
}

.hero-cards svg {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
}

.hero-cards h2,
.section-heading h2,
.philosophy h2,
.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
}

.hero-cards h2 {
  margin-bottom: 11px;
  font-size: clamp(1.55rem, 2.15vw, 2.18rem);
}

.hero-cards p {
  max-width: 320px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.94rem;
  line-height: 1.5;
}

.hero-cards a {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid rgba(21, 21, 18, 0.3);
  padding-bottom: 8px;
  font-family: var(--serif);
}

.scroll-cue {
  position: absolute;
  right: clamp(28px, 4.5vw, 72px);
  bottom: 38px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--ink);
}

.scroll-cue span {
  width: 1px;
  height: 62px;
  background: var(--ink);
  position: relative;
  overflow: visible;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.scroll-cue b {
  font-family: var(--hand);
  font-size: 1rem;
  writing-mode: vertical-rl;
  font-weight: 500;
}

.philosophy {
  padding: 0;
  min-height: 70vh;
}

.dark-panel {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--dark-panel);
  color: var(--dark-panel-text);
}

.object-stage {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background:
    radial-gradient(circle at 5% 35%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,0.06), transparent 44%);
}

.object-stage.is-pulsing .moon-object {
  animation: moonPulse 900ms ease;
}

@keyframes moonPulse {
  0%, 100% { filter: brightness(1); }
  44% { filter: brightness(1.28); }
}

.moon-object {
  position: absolute;
  left: clamp(-190px, -11vw, -70px);
  top: 50%;
  width: clamp(360px, 38vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.18), transparent 7%),
    radial-gradient(circle at 63% 72%, rgba(255,255,255,0.1), transparent 12%),
    linear-gradient(135deg, #050505, #20201d 46%, #050505);
  box-shadow: inset -28px 0 50px rgba(255,255,255,0.04), 36px 0 88px rgba(0,0,0,0.45);
}

.moon-object::after {
  content: "";
  position: absolute;
  inset: 52% -8% auto auto;
  width: 70%;
  height: 18%;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.4) 0 1px, transparent 1px 6px);
  transform: rotate(20deg);
  opacity: 0.55;
  filter: blur(0.4px);
}

.play-button {
  position: absolute;
  left: 80px;
  bottom: 80px;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(248, 246, 240, 0.72);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.play-button::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid var(--paper);
}

.dark-copy {
  align-self: center;
  max-width: 510px;
  padding: clamp(54px, 8vw, 110px);
}

.tiny-label {
  margin-bottom: 24px;
}

.philosophy h2 {
  margin-bottom: 32px;
  font-size: clamp(2.1rem, 4.4vw, 5.2rem);
}

.dark-copy p:not(.tiny-label) {
  color: var(--dark-panel-muted);
  font-family: var(--serif);
  line-height: 1.78;
}

.signature-row {
  display: grid;
  grid-template-columns: auto minmax(170px, 1fr);
  gap: 28px;
  align-items: end;
  margin-top: 30px;
}

.signature-row > span {
  max-width: 230px;
  color: var(--dark-panel-muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.light {
  color: var(--dark-panel-text);
}

.selected-work {
  min-height: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) 1fr auto;
  align-items: end;
  gap: 36px;
  margin-bottom: 58px;
}

.section-heading h2 {
  max-width: 510px;
  font-size: clamp(2.4rem, 5vw, 6rem);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 34px);
}

.site-grid {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
}

.work-card {
  min-width: 0;
}

.work-visual {
  position: relative;
  display: block;
  min-height: 310px;
  aspect-ratio: 1.05;
  overflow: hidden;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  transition: transform 280ms ease, box-shadow 280ms ease, filter 280ms ease;
}

.site-card:hover .work-visual {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(35, 31, 24, 0.16);
}

:root[data-theme="dark"] .site-card:hover .work-visual {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.site-preview {
  background: #11110f;
}

.site-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.26)),
    linear-gradient(90deg, rgba(248, 246, 240, 0.12), transparent 28%, transparent 72%, rgba(248, 246, 240, 0.08));
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.site-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.82) contrast(0.96);
  transform: scale(1.01);
  transition: filter 280ms ease, transform 420ms ease;
}

.site-card:hover .site-preview img {
  filter: saturate(0.98) contrast(1);
  transform: scale(1.045);
}

.site-card:hover .site-preview::after {
  opacity: 0.42;
}

.preview-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  border: 1px solid rgba(248, 246, 240, 0.5);
  background: rgba(17, 17, 15, 0.5);
  color: #f8f6f0;
  padding: 9px 11px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.work-meta {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 26px 0 0;
}

.work-meta h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.73rem;
  letter-spacing: 0.18em;
}

.work-meta a {
  font-size: 1.2rem;
}

.site-card p {
  min-height: 76px;
  margin: 18px 0 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
}

.site-card ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.site-card li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
}

.metrics {
  min-height: 94vh;
  display: grid;
  align-content: center;
  gap: 70px;
  background:
    linear-gradient(180deg, transparent, rgba(217, 210, 199, 0.2)),
    var(--paper);
}

.about-strip {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) 1.4fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-strip > div,
.about-strip dl > div {
  padding: clamp(30px, 4vw, 58px);
}

.about-strip p:not(.tiny-label) {
  max-width: 410px;
  color: var(--muted);
  font-family: var(--serif);
  line-height: 1.7;
}

.about-strip dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-left: 1px solid var(--line);
}

.about-strip dl > div {
  border-right: 1px solid var(--line);
}

.about-strip dl > div:last-child {
  border-right: 0;
}

.about-strip dt {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 6rem);
  line-height: 1;
}

.about-strip dd {
  margin: 18px 0 0;
  max-width: 110px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.55;
  text-transform: uppercase;
}

.ritual-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.ritual-board article {
  min-height: 260px;
  padding: clamp(28px, 4vw, 56px);
  background: var(--paper);
}

.ritual-board span {
  display: block;
  margin-bottom: 54px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.ritual-board h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.6rem);
  font-weight: 500;
}

.ritual-board p {
  max-width: 290px;
  color: var(--muted);
  font-family: var(--serif);
  line-height: 1.7;
}

.contact {
  min-height: 72vh;
  display: grid;
  align-items: center;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
  min-height: 360px;
  padding: clamp(34px, 6vw, 82px);
  background:
    linear-gradient(90deg, rgba(248,246,240,0.55), transparent 42%),
    var(--stone);
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .contact-panel {
  background:
    linear-gradient(90deg, rgba(18,18,15,0.4), transparent 42%),
    var(--stone);
}

.contact-panel::before {
  content: "";
  position: absolute;
  left: -4%;
  top: 10%;
  width: 28%;
  height: 70%;
  background:
    radial-gradient(ellipse at 42% 20%, rgba(20,20,18,0.12), transparent 18%),
    radial-gradient(ellipse at 64% 48%, rgba(20,20,18,0.11), transparent 26%);
  filter: blur(5px);
  opacity: 0.5;
}

.contact h2 {
  max-width: 610px;
  font-size: clamp(2.5rem, 5.2vw, 6.8rem);
}

.letter-form {
  position: relative;
  z-index: 1;
  align-self: end;
}

.letter-form label {
  display: block;
  margin-bottom: 28px;
}

.letter-form div {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 13px;
}

.letter-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
}

.letter-form input::placeholder {
  color: color-mix(in srgb, var(--muted) 74%, transparent);
}

.letter-form input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ink) 82%, transparent);
  outline-offset: 7px;
}

.letter-form button {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--ink) 34%, transparent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.letter-form button::before,
.letter-form button::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.letter-form button::before {
  left: 10px;
  top: 16px;
  width: 13px;
  height: 1px;
}

.letter-form button::after {
  right: 10px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  background: transparent;
  transform: rotate(45deg);
}

.letter-form button:hover {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  transform: translateX(2px);
}

.form-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.4;
}

.site-footer {
  margin-left: 168px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  min-height: 74px;
  padding: 0 clamp(28px, 7vw, 100px);
}

.site-footer span:nth-child(2) {
  justify-self: center;
}

.site-footer a {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 780ms ease, transform 780ms cubic-bezier(0.2, 0.72, 0.14, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 220ms;
}

[data-float] {
  transform: translate3d(0, calc(var(--float, 0) * 1px), 0);
}

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

  [data-float] {
    transform: none;
  }
}

@media (max-width: 1180px) {
  .side-rail {
    width: 128px;
    padding-inline: 31px;
  }

  .top-bar,
  main,
  .site-footer {
    margin-left: 0;
    left: 128px;
  }

  main,
  .site-footer {
    margin-left: 128px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    width: min(70%, 470px);
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 880px) {
  body {
    background-size: 25vw 100%, auto;
  }

  .skip-link {
    left: 18px;
  }

  .side-rail {
    position: fixed;
    inset: 88px 0 auto 0;
    width: auto;
    height: calc(100vh - 88px);
    grid-template-rows: auto 1fr auto;
    background: var(--panel);
    color: var(--ink);
    border-right: 0;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
    transform: translateX(-100%);
    transition: transform 300ms ease, background 320ms ease, border-color 320ms ease;
  }

  body.menu-open .side-rail {
    transform: translateX(0);
  }

  .top-bar {
    left: 0;
    grid-template-columns: 1fr auto;
    height: 88px;
  }

  .top-nav {
    display: none;
  }

  main,
  .site-footer {
    margin-left: 0;
  }

  .section {
    padding-inline: 24px;
  }

  .hero {
    padding-top: 132px;
  }

  h1 {
    font-size: clamp(4.1rem, 18vw, 7rem);
  }

  .handline {
    font-size: clamp(1.35rem, 6vw, 2.3rem);
    word-spacing: 0.08em;
  }

  .hero-cards,
  .dark-panel,
  .work-grid,
  .about-strip,
  .about-strip dl,
  .ritual-board,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .top-actions {
    gap: 7px;
  }

  .control-button {
    min-width: 42px;
    height: 34px;
    padding-inline: 10px;
  }

  .theme-toggle span:last-child {
    display: none;
  }

  .signature-row {
    grid-template-columns: 1fr;
  }

  .hero-cards article,
  .about-strip dl,
  .about-strip dl > div {
    border-right: 0;
  }

  .hero-cards article,
  .about-strip dl > div,
  .ritual-board article {
    border-bottom: 1px solid var(--line);
  }

  .hero-cards article:last-child,
  .about-strip dl > div:last-child {
    border-bottom: 0;
  }

  .hero-art {
    width: min(100%, 440px);
  }

  .scroll-cue {
    display: none;
  }

  .dark-copy {
    padding-inline: 28px;
  }

  .object-stage {
    min-height: 360px;
  }

  .play-button {
    left: 34px;
    bottom: 36px;
  }

  .work-visual {
    min-height: 240px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 24px;
  }

  .site-footer span:nth-child(2),
  .site-footer a {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .top-bar {
    padding-inline: 18px;
  }

  .wordmark {
    font-size: 0.92rem;
    letter-spacing: 0.22em;
  }

  .menu-button {
    width: 58px;
    height: 58px;
  }

  .top-actions {
    gap: 5px;
  }

  .control-button {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .section {
    padding-inline: 18px;
  }

  .hero-cards article,
  .about-strip > div,
  .about-strip dl > div,
  .ritual-board article,
  .contact-panel {
    padding-inline: 22px;
  }
}
