:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --sand: #efe5d8;
  --ink: #44362b;
  --muted: #78695b;
  --gold: #b58a43;
  --line: #ddd0be;
  --line-strong: #cdbba4;
  --serif: Georgia, "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shell: min(1160px, calc(100% - 64px));
  --focus: 0 0 0 3px rgba(181, 138, 67, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 16px;
  padding: 9px 14px;
  border: 1px solid var(--gold);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 0;
  background: transparent;
}

.nav-shell {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(108px, 13vh, 158px) 0 clamp(68px, 9vh, 104px);
}

.hero-frame {
  position: relative;
  min-height: calc(100vh - 182px);
  min-height: calc(100svh - clamp(108px, 13vh, 158px) - clamp(68px, 9vh, 104px));
}

.hero-stage {
  position: relative;
  min-height: min(720px, calc(100vh - 210px));
  min-height: min(720px, calc(100svh - 210px));
}

.section-kicker,
.contact-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
}

h1 {
  max-width: 6.5ch;
  margin: 0;
  font-size: clamp(4.6rem, 10.2vw, 10rem);
  letter-spacing: -0.11em;
  line-height: 0.87;
}

.hero-title-line {
  display: block;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: clamp(128px, 20vh, 210px);
  left: 0;
  max-width: min(64vw, 760px);
}

.hero-lead {
  max-width: 25em;
  margin: clamp(30px, 4.5vw, 54px) 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.65vw, 1.45rem);
  letter-spacing: 0.03em;
}

.hero-character {
  position: absolute;
  z-index: 1;
  right: clamp(-2%, 1vw, 5%);
  bottom: 0;
  display: flex;
  width: clamp(330px, 46vw, 640px);
  height: min(74vh, 710px);
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}

.character-mount {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
}

.character-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.character-mount.is-pending {
  align-items: center;
  justify-content: center;
}

.character-placeholder {
  max-width: 13em;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.8;
  text-align: center;
}

.character-placeholder strong,
.character-placeholder span {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.character-placeholder small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-scroll {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 180ms ease;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  color: var(--ink);
}

.hero-scroll-line {
  display: block;
  width: 76px;
  height: 34px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--gold);
  transform: skewX(-20deg) translateY(-7px);
  transform-origin: right bottom;
}

.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;
}

.section {
  padding: clamp(82px, 11vw, 148px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 620px;
}

.section-kicker {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin-bottom: 15px;
  font-size: clamp(2.55rem, 5vw, 5.2rem);
  letter-spacing: -0.07em;
  line-height: 1;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.work-section {
  background: var(--surface);
}

.project-list {
  display: grid;
  gap: 18px;
  margin-top: 62px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px 28px 6px 28px;
  background: var(--bg);
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.project-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.project-card--feature {
  background: var(--sand);
}

.project-card--notes {
  border-radius: 28px 6px 28px 6px;
  background: var(--surface);
}

.project-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr);
  align-items: center;
  gap: 36px;
  min-height: 270px;
  padding: clamp(27px, 5vw, 54px);
}

.project-card--placeholder .project-card-inner {
  min-height: 182px;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.35fr);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.72rem;
}

.project-number {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.project-status {
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.project-card h3 {
  margin-bottom: 13px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.project-card p {
  max-width: 35em;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 10px;
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  font-size: 0.78rem;
  text-decoration: none;
}

a.project-link:hover,
a.project-link:focus-visible {
  color: var(--gold);
}

.project-link.is-placeholder {
  border-bottom-style: dashed;
  color: var(--muted);
}

.project-art {
  display: grid;
  min-height: 150px;
  place-items: center;
  border-left: 1px solid rgba(181, 138, 67, 0.35);
}

.project-art svg {
  width: min(100%, 220px);
  height: auto;
  overflow: visible;
}

.project-art path,
.project-art rect,
.project-art circle,
.project-art line {
  vector-effect: non-scaling-stroke;
}

.project-art--feature {
  color: var(--ink);
}

.project-art--placeholder {
  color: var(--gold);
}

.project-art--notes {
  color: var(--muted);
}

.about-section {
  background: var(--bg);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 10vw, 150px);
  align-items: start;
}

.about-copy {
  padding-top: 7px;
}

.about-lead {
  max-width: 32em;
  margin-bottom: 43px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.about-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.about-notes p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.about-notes span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.contact-section {
  background: var(--surface);
}

.contact-list {
  border-top: 1px solid var(--ink);
}

.contact-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.contact-label {
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.1em;
}

.contact-value {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.contact-value.is-placeholder {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.contact-value a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

.contact-value a:hover {
  color: var(--gold);
}

.contact-note {
  max-width: 30em;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0 31px;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-meta {
  color: var(--muted);
}

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

body.js-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}

body.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 40px, 680px);
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 76px;
  }

  .hero-frame {
    min-height: calc(100vh - 172px);
    min-height: calc(100svh - 172px);
  }

  .hero-stage {
    min-height: min(700px, calc(100vh - 172px));
    min-height: min(700px, calc(100svh - 172px));
  }

  .hero-copy {
    top: clamp(96px, 15vh, 160px);
    max-width: 68vw;
  }

  h1 {
    font-size: clamp(4rem, 10vw, 7.2rem);
  }

  .hero-character {
    width: clamp(280px, 43vw, 500px);
    height: min(67vh, 590px);
  }

  .project-card-inner,
  .project-card--placeholder .project-card-inner {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 22px;
  }
}

@media (max-width: 650px) {
  :root {
    --shell: calc(100% - 36px);
  }

  .nav-shell {
    min-height: 65px;
  }

  .site-nav {
    gap: 17px;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 92px 0 70px;
  }

  .hero-frame {
    min-height: calc(100vh - 162px);
    min-height: calc(100svh - 162px);
  }

  .hero-stage {
    display: flex;
    min-height: calc(100vh - 178px);
    min-height: calc(100svh - 178px);
    flex-direction: column;
  }

  .hero-copy {
    position: relative;
    top: auto;
    max-width: 100%;
  }

  h1 {
    max-width: 6.3ch;
    font-size: clamp(3.75rem, 17vw, 6rem);
  }

  .hero-lead {
    margin-top: 28px;
    font-size: 1.15rem;
  }

  .hero-character {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(78vw, 370px);
    height: min(45vh, 390px);
    margin: auto 0 0 auto;
  }

  .hero-scroll {
    right: 0;
    bottom: -2px;
    left: auto;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading h2 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .project-list {
    margin-top: 42px;
  }

  .project-card-inner,
  .project-card--placeholder .project-card-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 27px 24px 24px;
  }

  .project-card--placeholder .project-card-inner {
    min-height: 0;
  }

  .project-meta {
    margin-bottom: 17px;
  }

  .project-card h3 {
    font-size: 1.85rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }

  .project-art {
    min-height: 112px;
    border-top: 1px solid rgba(181, 138, 67, 0.35);
    border-left: 0;
  }

  .project-art svg {
    width: min(100%, 190px);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 37px;
  }

  .about-lead {
    font-size: 1.4rem;
  }

  .about-notes {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .about-notes p {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .about-notes span {
    display: inline;
    margin: 0;
  }

  .contact-row {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 68px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.75rem;
  }

  .hero-character {
    width: min(82vw, 330px);
    height: min(42vh, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  body.js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
