:root {
  color-scheme: light;
  --night: #101319;
  --paper: #f4f0e7;
  --paper-edge: #ece6da;
  --ink: #201c18;
  --muted: #60574b;
  --copper: #ac4826;
  --border: #cec4b5;
  --heading: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --text: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--text);
  line-height: 1.65;
}

body.inside {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.inside main { flex: 1; }
main:focus { outline: none; }

a { color: inherit; }
img { display: block; max-width: 100%; }
figure, h1, h2, p { margin: 0; }

:where(a, button, summary, input, select, canvas[tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.shell {
  width: min(100% - clamp(2.5rem, 10vw, 10rem), 82rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 4;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 1rem;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 2;
  background: var(--night);
  color: #f9f6ef;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.home .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: rgb(16 19 25 / 40%);
}

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  font: 700 1.25rem/1 var(--heading);
  letter-spacing: -0.037em;
  white-space: nowrap;
  text-decoration: none;
}

.brand-mark {
  color: #ec9064;
  font-size: 1.2rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 2.8rem);
}

.site-nav a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: #efebe4;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #ec9064;
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.43rem;
}

.hero {
  position: relative;
  isolation: isolate;
  color: #fff9ef;
  background: var(--night);
  overflow: clip;
}

.hero-image, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: 58% 54%;
}

.hero::after {
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgb(9 12 16 / 62%), rgb(9 12 16 / 24%) 49%, transparent 72%),
    linear-gradient(0deg, rgb(9 12 16 / 38%), transparent 38%);
}

.hero-inner {
  min-height: clamp(37rem, 80svh, 55rem);
  display: flex;
  align-items: center;
  padding-block: 8rem 5rem;
}

.hero-copy { max-width: 32rem; }

.hero-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.hero-author::before {
  width: 1.7rem;
  height: 1px;
  background: #f3a37b;
  content: "";
  flex: none;
}

.hero h1 {
  margin: 0.5rem 0 1.3rem -0.053em;
  font: 650 clamp(5rem, 10vw, 10rem)/0.98 var(--heading);
  letter-spacing: -0.063em;
}

.hero-intro {
  max-width: 24em;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.85;
  text-wrap: pretty;
  color: #eee9e0;
}

.light-button {
  min-height: 3rem;
  display: inline-grid;
  place-items: center;
  margin-top: 2rem;
  padding: 0.55rem 1.35rem;
  border: 1px solid #fff5e9;
  border-radius: 0.22rem;
  background: #fff5e9;
  color: #241c17;
  font-size: 0.9375rem;
  font-weight: 620;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.light-button:hover { background: #f5cdb1; border-color: #f5cdb1; }
.light-button:focus-visible { outline-color: #fff5e9; }

.directory { padding-block: clamp(3.1rem, 6.1vw, 6.1rem); }

.directory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
}

.directory h2, .about-strip h2 {
  font-size: clamp(1.95rem, 3.6vw, 3.75rem);
  font-weight: 720;
  letter-spacing: -0.075em;
  line-height: 1.18;
}

.directory-list {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.directory-list li { border-bottom: 1px solid var(--border); }

.directory-link {
  min-height: 4.6rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.3rem;
  padding: 1.1rem 0;
  text-decoration: none;
  transition: color 160ms ease;
}

.directory-link:hover .directory-name, .directory-link:focus-visible .directory-name {
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-underline-offset: 0.32em;
}

.directory-name { font-size: 1.28rem; font-weight: 650; }
.directory-detail { color: var(--muted); font-size: 0.9375rem; text-align: right; }

.section-pad { padding-block: clamp(3.6rem, 8vw, 7.25rem); }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #88391f;
  font-size: 0.875rem;
  font-weight: 640;
  letter-spacing: 0.11em;
  line-height: 1.5;
}

.section-kicker::before {
  content: "";
  flex: none;
  width: 1.65rem;
  height: 1px;
  background: currentColor;
}

a.section-kicker {
  min-height: 2.75rem;
  text-decoration-color: rgb(239 171 129 / 62%);
  text-underline-offset: 0.26em;
}

.section-heading { margin-bottom: clamp(1.6rem, 4vw, 3rem); }

.section-heading h2, .home-feature h2 {
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.064em;
  text-wrap: balance;
}

.section-heading p:not(.section-kicker) {
  max-width: 32em;
  margin-top: 0.8rem;
  color: var(--muted);
}

.section-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: #fff9ef;
  background: #201a16;
}

.section-hero-image, .section-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.section-hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: var(--section-image-position, 64% 48%);
}

.section-hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgb(13 12 12 / 77%) 0%, rgb(13 12 12 / 48%) 37%, transparent 77%),
    linear-gradient(0deg, rgb(13 12 12 / 35%), transparent 45%);
}

.section-hero--work { --section-image-position: 67% 50%; background-color: var(--night); }
.section-hero--lab { --section-image-position: 64% 51%; }
.section-hero--notes { --section-image-position: 64% 47%; }

.section-hero-inner {
  min-height: clamp(29rem, 61svh, 43rem);
  display: flex;
  align-items: center;
  padding-block: 3.5rem 4.25rem;
}

.section-hero-copy { max-width: 29rem; }

.section-hero h1 {
  margin: 0.7rem 0 1.3rem;
  font-size: clamp(4.3rem, 9vw, 8rem);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.085em;
}

.section-hero-copy > p:not(.section-kicker) {
  max-width: 25em;
  color: #f5e9dd;
  font-size: clamp(1rem, 1.48vw, 1.23rem);
  line-height: 1.84;
  text-wrap: pretty;
}

.dark-band {
  color: #fff7e9;
  background: #17191b;
}

.section-hero .section-kicker,
.inner-banner .section-kicker,
.dark-band .section-kicker,
.home-story .section-kicker { color: #f2ad83; }

.button-outline {
  display: inline-grid;
  min-height: 2.85rem;
  place-items: center;
  padding: 0.45rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 0.2rem;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 620;
  cursor: pointer;
  text-decoration: none;
}

.editorial-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.45rem;
}

.home-feature {
  background: radial-gradient(ellipse at 94% 30%, #35291f, #17191d 66%);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.home-feature h2 { margin-block: 1rem 1.1rem; }
.home-feature-copy > p:not(.section-kicker) { max-width: 27em; color: #dfd5c8; }

.feature-still {
  position: relative;
  display: block;
  border: 1px solid rgb(237 190 158 / 34%);
  background: var(--night);
  text-decoration: none;
}

.feature-still img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.feature-play {
  position: absolute;
  right: clamp(0.7rem, 2.5vw, 1.6rem);
  bottom: clamp(0.7rem, 2.5vw, 1.6rem);
  display: grid;
  width: clamp(2.9rem, 4.3vw, 4rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #e7bca2;
  border-radius: 50%;
  background: #17191d;
  transition: background-color 160ms ease;
}

.feature-play::before {
  content: "";
  border: 0.45rem solid transparent;
  border-left: 0.72rem solid #fff4e5;
  border-right: 0;
  margin-left: 0.13rem;
}

.feature-still:hover .feature-play { background: #783e29; }

.home-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.8vw, 2.25rem);
}

.home-story {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(20rem, 36vw, 29rem);
  overflow: clip;
  padding: clamp(1.4rem, 3.5vw, 3.4rem);
  color: #fff7e9;
  background: #272019;
  text-decoration: none;
}

.home-story img, .home-story::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-story img {
  z-index: -2;
  object-fit: cover;
  object-position: right center;
  transition: transform 350ms ease-out;
}

.home-story::after {
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, rgb(17 14 12 / 96%), rgb(17 14 12 / 65%) 35%, transparent 86%);
}

.home-story:hover img { transform: scale(1.035); }
.home-story h3 { margin: 0.55rem 0; font-size: clamp(1.45rem, 2.6vw, 2.3rem); line-height: 1.28; text-wrap: balance; }
.home-story p:last-child { color: #efe1d3; text-wrap: pretty; }
.home-story:hover h3 { text-decoration: underline; text-decoration-color: #e5a67c; text-underline-offset: 0.24em; }

.star-chart {
  overflow: hidden;
  background: #46352a;
  border-radius: 0.2rem;
}

.star-chart img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.about-strip {
  padding-block: clamp(2.8rem, 6vw, 5rem);
  border-block: 1px solid var(--border);
  background: var(--paper-edge);
}

.about-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 6vw, 6.5rem);
}

.about-strip p { margin-bottom: 0.45rem; font-size: clamp(1rem, 1.8vw, 1.25rem); }

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  width: fit-content;
  color: #8d361c;
  font-weight: 620;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.text-link:hover { text-decoration-thickness: 2px; }

.site-footer {
  color: #e8e3d8;
  background: var(--night);
}

.footer-inner {
  min-height: 6.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  column-gap: 1rem;
  font-size: 0.875rem;
  color: #c3bdb3;
}

.footer-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #e8e3d8;
  text-underline-offset: 0.3em;
}

.footer-meta a:hover { color: #f2ad83; }

.footer-filing {
  display: flex;
  justify-content: center;
  border-top: 1px solid rgb(255 255 255 / 13%);
  padding-block: 0.45rem 0.7rem;
  text-align: center;
}

.footer-filing a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: #e8e3d8;
  font-size: 0.875rem;
  text-underline-offset: 0.3em;
}

.footer-filing a:hover { color: #f2ad83; }

.inner-banner {
  color: #fff9ef;
  background: radial-gradient(ellipse at 94% 130%, #533326 0%, #242022 33%, var(--night) 72%);
  padding-block: 2.15rem clamp(2.2rem, 5vw, 4.8rem);
}

.inner-banner h1 {
  margin-top: 0.5rem;
  font-size: clamp(3.6rem, 8vw, 7.15rem);
  font-weight: 680;
  letter-spacing: -0.095em;
  line-height: 1.12;
}

.inner-banner p { margin-top: 0.8rem; color: #e7ddd0; }

.inner-content { padding-block: clamp(2.7rem, 6.6vw, 6rem); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
}

.about-copy h2 {
  max-width: 16em;
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1.45;
  letter-spacing: -0.055em;
  text-wrap: pretty;
}

.about-copy p { max-width: 24em; margin-block: 0.9rem 0.6rem; color: var(--muted); }

.site-privacy {
  padding-block: clamp(1.45rem, 3vw, 2.4rem) clamp(2.7rem, 6.6vw, 6rem);
  border-top: 1px solid var(--border);
}

.site-privacy h2 { scroll-margin-top: 5rem; }
.site-privacy p { max-width: 40em; }

.portfolio {
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.7rem);
  margin-top: 1.2rem;
}

.portfolio-subtitle {
  margin-top: clamp(3.1rem, 7vw, 6rem);
  font-size: clamp(1.65rem, 3.25vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.portfolio-disclosure {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.project {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1.2rem;
  min-width: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.15rem;
}

.project--featured {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: auto;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  border-top: 0;
  padding-top: 0;
}

.project h2 {
  font-size: clamp(1.25rem, 1.85vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.32;
  text-wrap: balance;
}

.project--featured h2 {
  font-size: clamp(2rem, 4.2vw, 3.85rem);
  letter-spacing: -0.07em;
  line-height: 1.15;
}

.project-copy p {
  max-width: 31em;
  margin-block: 0.55rem 0.2rem;
  color: var(--muted);
}

.project--featured p {
  margin-block: 0.9rem 0.35rem;
}

.project--featured .section-kicker { margin-block: 0 0.65rem; color: #88391f; }

.project-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--night);
  border-radius: 0.25rem;
}

.project-player:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

@media (max-width: 67rem) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 47rem) {
  .directory-grid, .about-strip-inner, .about-grid { grid-template-columns: 1fr; }
  .portfolio-grid, .project--featured { grid-template-columns: 1fr; }
  .home-feature-grid, .home-stories { grid-template-columns: 1fr; }
  .home-feature h2 br { display: none; }
  .section-hero-inner {
    min-height: clamp(28rem, 67svh, 38rem);
    align-items: end;
    padding-block: 6rem 3rem;
  }
  .section-hero::after {
    background: linear-gradient(0deg, rgb(13 12 12 / 93%), rgb(13 12 12 / 62%) 49%, rgb(13 12 12 / 20%) 82%);
  }

  .hero-inner {
    min-height: clamp(36rem, 82svh, 46rem);
    align-items: end;
    padding-block: 7rem clamp(3.1rem, 9svh, 5.8rem);
  }

  .hero-image { object-position: 69% 50%; }

  .hero::after {
    background: linear-gradient(0deg, rgb(9 12 16 / 85%), rgb(9 12 16 / 44%) 55%, rgb(9 12 16 / 14%) 83%);
  }

  .hero h1 { font-size: clamp(4.6rem, 14vw, 7rem); }
}

@media (max-width: 27rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 4rem; gap: 0.625rem; }
  .wordmark { font-size: 1.1rem; gap: 0.3rem; }
  .brand-mark { font-size: 1rem; }
  .site-nav { gap: 0.18rem; }
  .site-nav a { font-size: 0.875rem; }
  .footer-inner { flex-wrap: wrap; align-content: center; gap: 0.2rem 1rem; }
  .footer-meta { justify-content: flex-start; }
  .hero h1 { margin-bottom: 1rem; }
  .directory-link { min-height: 4rem; padding-block: 0.85rem; }
}

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

.flight-shelf {
  padding-block: clamp(2.75rem, 6vw, 6rem);
  background: var(--paper);
  scroll-margin-top: 1rem;
}
.flight-teaser {
  --flight-ink: #101e26;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(18rem, 30vw, 27rem);
  overflow: hidden;
  color: #faf2e3;
  background: var(--flight-ink);
  text-decoration: none;
}
.desk .flight-teaser { margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.flight-teaser-photo {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 57%;
  transition: transform .6s ease-out;
}
.flight-teaser::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, var(--flight-ink) 29%, rgb(16 30 38 / 93%) 35%, rgb(16 30 38 / 48%) 46%, transparent 62%);
}
.flight-teaser-copy { padding: clamp(1.9rem, 4.6vw, 4.75rem); }
.flight-teaser-kind { color: #f1c38d; font-size: .82rem; font-weight: 600; letter-spacing: .1em; }
.flight-teaser-title {
  margin: .36em 0 .23em;
  font: 600 clamp(3rem, 5.5vw, 5.5rem)/1 var(--serif, var(--book-display, serif));
  letter-spacing: -.075em;
}
.flight-teaser-summary { color: #dfded5; font-size: clamp(.94rem, 1.15vw, 1.09rem); line-height: 1.75; }
.flight-teaser-action {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-bottom: .28rem;
  border-bottom: 1px solid #bb956d;
  font-size: .92rem;
  font-weight: 650;
}
.flight-teaser-action span { color: #f1c38d; font-family: system-ui, sans-serif; transition: transform .2s ease; }
.flight-teaser:focus-visible { outline: 3px solid #ca8c46; outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .flight-teaser:hover .flight-teaser-photo { transform: scale(1.018); }
  .flight-teaser:hover .flight-teaser-action span { transform: translateX(.22rem); }
}
@media (max-width: 48rem) {
  .flight-teaser { min-height: 0; }
  .flight-teaser-photo { position: static; width: 100%; height: auto; aspect-ratio: 16/8.8; border-bottom: 1px solid #526674; }
  .flight-teaser::before { display: none; }
  .flight-teaser-copy { padding: 1.45rem clamp(1.2rem, 4vw, 2.25rem) 1.6rem; }
  .flight-teaser-title { font-size: clamp(2.6rem, 7vw, 3.6rem); }
  .flight-teaser-action { margin-top: .85rem; }
}
