:root {
  --ink: #101514;
  --ink-soft: #1a2220;
  --pine: #1f3b35;
  --paper: #f2efe8;
  --paper-muted: #b9b9af;
  --line: rgb(242 239 232 / 18%);
  --line-dark: rgb(16 21 20 / 16%);
  --accent: #ff7043;
  --accent-dark: #b73c1e;
  --white: #fffdf7;
  --max-width: 1380px;
  --page-pad: clamp(20px, 4vw, 64px);
  --radius: 2px;
  --font-display: "Bahnschrift", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-body: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

body.is-entering .welcome {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
}

body.is-entering .welcome__copy,
body.is-entering .welcome__meta,
body.is-entering .welcome__actions {
  transform: translateY(-12px);
  opacity: 0;
}

button,
input,
textarea,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--ink);
  background: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

.site-background {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgb(255 112 67 / 15%), transparent 34%),
    linear-gradient(135deg, #12201d 0%, #101514 52%, #171b19 100%);
}

.site-background__image,
.site-background__veil,
.site-background__grain {
  position: absolute;
  inset: 0;
}

.site-background__image {
  background-image: url("./assets/background.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.48;
  transform: scale(1.02);
}

.site-background__veil {
  background:
    linear-gradient(90deg, rgb(8 12 11 / 88%) 0%, rgb(8 12 11 / 58%) 52%, rgb(8 12 11 / 78%) 100%),
    linear-gradient(180deg, rgb(8 12 11 / 28%) 0%, rgb(8 12 11 / 35%) 44%, rgb(8 12 11 / 88%) 100%);
}

.site-background__grain {
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.welcome {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
  background: rgb(8 12 11 / 22%);
  backdrop-filter: blur(9px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 700ms;
}

.welcome.is-dismissed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
}

.welcome__frame {
  position: relative;
  display: grid;
  width: min(100%, 1160px);
  min-height: min(76vh, 760px);
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid rgb(255 253 247 / 28%);
  background:
    linear-gradient(120deg, rgb(16 21 20 / 20%), transparent 48%),
    rgb(13 18 17 / 25%);
}

.welcome__meta {
  display: flex;
  align-self: start;
  justify-content: space-between;
  color: rgb(255 253 247 / 68%);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.welcome__copy {
  align-self: center;
  max-width: 720px;
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.welcome__lead,
.section-label,
.identity__label {
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome h1,
.hero h1,
.section-heading h2,
.film__heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.welcome h1 {
  max-width: 720px;
  font-size: clamp(3rem, 8vw, 6rem);
}

.welcome h1 span,
.hero h1 span {
  display: block;
}

.welcome h1 span {
  color: var(--paper-muted);
}

.welcome__description {
  max-width: 32rem;
  margin: 28px 0 0;
  color: rgb(255 253 247 / 72%);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.9;
}

.welcome__actions {
  display: flex;
  align-self: end;
  align-items: center;
  gap: 20px;
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.welcome__hint {
  color: rgb(255 253 247 / 58%);
  font-size: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button:active {
  transform: translateY(1px);
}

.button--light {
  color: var(--ink);
  background: var(--white);
}

.button--light:hover {
  background: var(--accent);
}

.button--accent {
  color: #1a0c07;
  background: var(--accent);
}

.button--accent:hover {
  background: #ff8a64;
}

.identity {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
  visibility: hidden;
  opacity: 0;
  background: rgb(8 12 11 / 72%);
  backdrop-filter: blur(16px);
  transition:
    opacity 500ms ease,
    visibility 0s linear 500ms;
}

.identity.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.identity__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  width: min(100%, 900px);
  border: 1px solid var(--line);
  background: var(--ink-soft);
  box-shadow: 0 32px 100px rgb(0 0 0 / 35%);
  transform: translateY(18px);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.identity.is-open .identity__panel {
  transform: translateY(0);
}

.identity__preview {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 430px;
  padding: 48px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgb(255 112 67 / 18%), transparent 55%),
    var(--pine);
}

.identity__preview p {
  margin: 0;
  color: rgb(255 253 247 / 62%);
  font-size: 0.82rem;
}

.avatar {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 253 247 / 24%);
  background: var(--ink);
}

.avatar--large {
  width: 160px;
  height: 160px;
  border-radius: 50%;
}

.avatar img,
.portrait-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar:not(.has-image) img,
.portrait-card__image:not(.has-image) img {
  display: none;
}

.avatar__fallback,
.portrait-card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 2.5rem;
}

.avatar.has-image .avatar__fallback,
.portrait-card__image.has-image .portrait-card__fallback {
  display: none;
}

.identity__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 72px);
}

.identity__form h2 {
  margin: 0 0 34px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.field span {
  color: rgb(255 253 247 / 62%);
  font-size: 0.82rem;
}

.field input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  background: rgb(255 255 255 / 5%);
  caret-color: var(--accent);
  outline: none;
}

.field input::placeholder {
  color: rgb(255 253 247 / 38%);
}

.field input:focus {
  border-color: var(--accent);
  background: rgb(255 255 255 / 8%);
}

.identity__form .button {
  width: 100%;
}

.site {
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms ease;
}

.site.is-ready {
  visibility: visible;
  opacity: 1;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid transparent;
  transition:
    min-height 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    backdrop-filter 220ms ease;
}

.topbar.is-scrolled {
  min-height: 64px;
  border-color: var(--line);
  background: rgb(10 15 14 / 80%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 253 247 / 35%);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__text {
  color: rgb(255 253 247 / 64%);
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 42px);
}

.primary-nav a {
  position: relative;
  padding: 28px 0;
  color: rgb(255 253 247 / 66%);
  font-size: 0.86rem;
  transition: color 180ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--white);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.visitor-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  color: rgb(255 253 247 / 68%);
  font-size: 0.82rem;
}

.visitor-chip strong {
  color: var(--white);
  font-weight: 600;
}

.visitor-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgb(255 112 67 / 14%);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 5%);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  margin: auto;
}

main {
  overflow: hidden;
}

.section,
.hero {
  position: relative;
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
  min-height: 100svh;
  padding-top: 124px;
  padding-bottom: 90px;
}

.hero::before {
  position: absolute;
  top: 16%;
  left: -8%;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgb(255 253 247 / 9%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 7.3vw, 6rem);
}

.hero h1 span {
  color: var(--paper-muted);
}

.hero__intro {
  max-width: 42rem;
  margin: 30px 0 0;
  color: rgb(255 253 247 / 72%);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.95;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.text-link {
  padding-bottom: 4px;
  border-bottom: 1px solid rgb(255 253 247 / 42%);
  color: rgb(255 253 247 / 82%);
  font-size: 0.9rem;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.text-link:hover {
  border-color: var(--accent);
  color: var(--white);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 68px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__facts > div {
  min-width: 0;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.hero__facts > div:first-child {
  padding-left: 0;
}

.hero__facts > div:last-child {
  border-right: 0;
}

.hero__facts span {
  display: block;
  margin-bottom: 8px;
  color: rgb(255 253 247 / 48%);
  font-size: 0.72rem;
}

.hero__facts strong {
  display: block;
  overflow: hidden;
  color: rgb(255 253 247 / 86%);
  font-size: 0.84rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-email {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.copy-email:hover strong {
  color: var(--accent);
}

.copy-email__status {
  position: absolute;
  bottom: -24px;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
}

.hero__portrait {
  justify-self: end;
  width: min(100%, 430px);
}

.portrait-card {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgb(11 17 16 / 54%);
  backdrop-filter: blur(12px);
}

.portrait-card::before {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 74px;
  height: 74px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  content: "";
  pointer-events: none;
}

.portrait-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(145deg, rgb(255 112 67 / 22%), transparent 54%),
    var(--pine);
}

.portrait-card__image img {
  filter: saturate(0.9);
}

.portrait-card__fallback {
  font-size: clamp(4rem, 10vw, 7rem);
  color: rgb(255 253 247 / 18%);
}

.portrait-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 18px 4px 4px;
}

.portrait-card__footer p {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.portrait-card__footer span {
  color: rgb(255 253 247 / 52%);
  font-size: 0.75rem;
}

.portrait-card__index {
  font-family: var(--font-display);
  letter-spacing: 0.13em;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: var(--page-pad);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgb(255 253 247 / 48%);
  font-size: 0.72rem;
}

.hero__scroll svg {
  width: 15px;
  height: 15px;
}

.section {
  padding-top: clamp(104px, 12vw, 172px);
  padding-bottom: clamp(104px, 12vw, 172px);
}

.section-heading,
.film__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 48px;
  align-items: end;
  max-width: var(--max-width);
  margin: 0 auto 64px;
}

.section-heading h2,
.film__heading h2 {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
}

.section-heading > p,
.film__heading > p {
  max-width: 34rem;
  margin: 0 0 7px;
  color: rgb(255 253 247 / 56%);
  font-size: 0.9rem;
  line-height: 1.8;
}

code {
  padding: 2px 5px;
  border: 1px solid rgb(255 253 247 / 18%);
  color: var(--accent);
  background: rgb(255 255 255 / 4%);
  font-family: Consolas, monospace;
  font-size: 0.84em;
}

.profile {
  background:
    linear-gradient(180deg, rgb(242 239 232 / 98%), rgb(232 228 218 / 98%));
  color: var(--ink);
}

.profile .section-label {
  color: var(--accent-dark);
}

.profile .section-heading > p {
  color: rgb(16 21 20 / 64%);
}

.profile code {
  border-color: var(--line-dark);
  color: var(--accent-dark);
  background: rgb(16 21 20 / 4%);
}

.profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: clamp(52px, 8vw, 120px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.profile__statement {
  position: relative;
  padding-top: 34px;
  border-top: 1px solid var(--line-dark);
}

.profile__statement-mark {
  position: absolute;
  top: -20px;
  left: -8px;
  margin: 0;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 6.5rem;
  line-height: 1;
  opacity: 0.72;
}

.profile__statement blockquote {
  position: relative;
  z-index: 1;
  max-width: 17em;
  margin: 0 0 34px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.3vw, 3.8rem);
  font-weight: 600;
  line-height: 1.28;
}

.profile__statement > p:last-child {
  max-width: 65ch;
  margin: 0;
  color: rgb(16 21 20 / 66%);
  font-size: 1rem;
  line-height: 1.95;
}

.profile__list {
  margin: 0;
  border-top: 1px solid var(--line-dark);
}

.profile__list div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}

.profile__list dt {
  color: rgb(16 21 20 / 48%);
  font-size: 0.78rem;
}

.profile__list dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.works,
.stills,
.film {
  background: var(--ink);
}

.work-list {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.work {
  display: grid;
  grid-template-columns: minmax(130px, 0.24fr) minmax(0, 1fr) 48px;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition:
    padding 220ms ease,
    background-color 220ms ease;
}

.work:hover {
  padding-right: 18px;
  padding-left: 18px;
  background: rgb(255 112 67 / 6%);
}

.work__meta {
  display: grid;
  gap: 9px;
  align-self: start;
  color: rgb(255 253 247 / 44%);
  font-size: 0.72rem;
}

.work__meta span:first-child {
  color: var(--accent);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.work h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.65rem);
  font-weight: 600;
}

.work p {
  max-width: 62ch;
  margin: 0;
  color: rgb(255 253 247 / 58%);
  font-size: 0.91rem;
  line-height: 1.8;
}

.work > a {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.work > a:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent);
}

.work > a svg {
  width: 19px;
  height: 19px;
}

.stills {
  padding-top: 0;
}

.stills .section-heading {
  padding-top: clamp(104px, 12vw, 172px);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.photo {
  grid-column: span 4;
  margin: 0;
}

.photo--wide {
  grid-column: span 7;
}

.photo--standard {
  grid-column: span 5;
}

.photo--tall {
  grid-column: span 5;
}

.photo__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgb(255 112 67 / 10%), transparent 52%),
    #17201e;
}

.photo--wide .photo__frame {
  aspect-ratio: 16 / 10;
}

.photo--tall .photo__frame {
  aspect-ratio: 4 / 5;
}

.photo__frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 4%);
  content: "";
  pointer-events: none;
}

.photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 500ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photo.has-image .photo__frame img {
  opacity: 1;
}

.photo.has-image:hover .photo__frame img {
  transform: scale(1.045);
}

.photo__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgb(255 253 247 / 22%);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  transition: opacity 240ms ease;
}

.photo.has-image .photo__empty {
  opacity: 0;
}

.photo figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 2px 0;
}

.photo figcaption span {
  color: rgb(255 253 247 / 38%);
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.photo figcaption p {
  margin: 0;
  color: rgb(255 253 247 / 74%);
  font-size: 0.82rem;
  text-align: right;
}

.film {
  padding-top: 0;
}

.film__heading {
  padding-top: clamp(104px, 12vw, 172px);
}

.video-shell {
  position: relative;
  max-width: var(--max-width);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 32%, rgb(255 112 67 / 24%), transparent 27%),
    linear-gradient(135deg, #1c302c, #101514 62%, #242823);
}

.intro-video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.intro-video.has-video {
  display: block;
}

.video-shell.has-video .video-shell__fallback {
  display: none;
}

.video-shell__fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.video-shell__grain {
  position: absolute;
  inset: -22%;
  opacity: 0.28;
  background:
    repeating-linear-gradient(
      104deg,
      transparent 0,
      transparent 16px,
      rgb(255 255 255 / 6%) 17px,
      transparent 18px
    );
  transform: rotate(-3deg);
}

.video-shell__copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.video-shell__copy span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.video-shell__copy p {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
}

.video-shell__copy small {
  color: rgb(255 253 247 / 42%);
  font-size: 0.72rem;
}

.video-shell__play {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgb(255 253 247 / 20%);
  color: var(--white);
  background: rgb(255 255 255 / 8%);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.video-shell__play svg {
  width: 16px;
  height: 16px;
}

.timeline {
  background: var(--paper);
  color: var(--ink);
}

.timeline .section-label {
  color: var(--accent-dark);
}

.timeline .section-heading > p {
  color: rgb(16 21 20 / 62%);
}

.timeline__list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.timeline__list li {
  display: grid;
  grid-template-columns: minmax(160px, 0.3fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 104px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line-dark);
}

.timeline__list time {
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.timeline__list h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
}

.timeline__list p {
  max-width: 68ch;
  margin: 0;
  color: rgb(16 21 20 / 62%);
  font-size: 0.92rem;
  line-height: 1.8;
}

.journal {
  background:
    linear-gradient(180deg, var(--ink) 0%, #151c1a 100%);
}

.journal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journal-entry {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 300px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.journal-entry:last-child {
  border-right: 0;
}

.journal-entry:hover {
  background: rgb(255 112 67 / 7%);
}

.journal-entry time {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.journal-entry h3 {
  margin: 48px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
}

.journal-entry p {
  margin: 0;
  color: rgb(255 253 247 / 54%);
  font-size: 0.86rem;
  line-height: 1.8;
}

.journal-entry > span {
  align-self: end;
  color: rgb(255 253 247 / 52%);
  font-size: 0.76rem;
}

.music-dock {
  position: fixed;
  right: var(--page-pad);
  bottom: 22px;
  z-index: 25;
  display: grid;
  grid-template-columns: 48px minmax(0, 260px);
  gap: 14px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  color: var(--white);
  background: rgb(10 15 14 / 86%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 25%);
  backdrop-filter: blur(18px);
  transform: translateY(16px);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 400ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 400ms;
}

.site.is-ready .music-dock {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.music-dock__toggle {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  color: #1a0c07;
  background: var(--accent);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.music-dock__toggle:hover {
  background: #ff8a64;
}

.music-dock__toggle:active {
  transform: scale(0.96);
}

.music-dock__toggle:disabled {
  color: rgb(255 253 247 / 36%);
  background: rgb(255 255 255 / 10%);
  cursor: not-allowed;
}

.music-dock__icon {
  width: 18px;
  height: 18px;
}

.music-dock__icon--pause,
.music-dock.is-playing .music-dock__icon--play {
  display: none;
}

.music-dock.is-playing .music-dock__icon--pause {
  display: block;
}

.music-dock__body {
  min-width: 0;
}

.music-dock__title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: baseline;
}

.music-dock__title > span {
  color: var(--accent);
  font-size: 0.62rem;
}

.music-dock__title strong {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-dock__title small {
  grid-column: 2;
  overflow: hidden;
  color: rgb(255 253 247 / 42%);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-dock__timeline {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 8px;
  align-items: center;
  margin-top: 7px;
  color: rgb(255 253 247 / 38%);
  font-family: var(--font-display);
  font-size: 0.58rem;
}

.music-dock__timeline input {
  width: 100%;
  height: 2px;
  margin: 0;
  appearance: none;
  background: rgb(255 253 247 / 18%);
  cursor: pointer;
}

.music-dock__timeline input::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  appearance: none;
  border-radius: 50%;
  background: var(--accent);
}

.music-dock__timeline input::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}

.article-reader {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  justify-items: end;
  overflow: hidden;
  visibility: hidden;
  background: rgb(5 8 7 / 68%);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition:
    opacity 350ms ease,
    visibility 0s linear 350ms;
}

.article-reader.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.article-reader__panel {
  width: min(100%, 760px);
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(28px, 5vw, 64px);
  border-left: 1px solid var(--line);
  background: #111816;
  transform: translateX(48px);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.article-reader.is-open .article-reader__panel {
  transform: translateX(0);
}

.article-reader__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.article-reader__header p {
  margin: 0 0 5px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

.article-reader__header time {
  color: rgb(255 253 247 / 44%);
  font-size: 0.72rem;
}

.article-reader__header button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.article-reader__header button:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent);
}

.article-reader__header svg {
  width: 19px;
  height: 19px;
}

.article-reader__content {
  padding-top: clamp(42px, 7vw, 82px);
}

.article-reader__content h2 {
  max-width: 14em;
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.18;
}

.article-reader__lead {
  max-width: 60ch;
  margin: 0 0 42px;
  color: rgb(255 253 247 / 70%);
  font-size: 1.02rem;
  line-height: 1.9;
}

.article-reader__body {
  max-width: 68ch;
  color: rgb(255 253 247 / 66%);
  font-size: 0.94rem;
  line-height: 2;
}

.article-reader__body p {
  margin: 0 0 1.6em;
}

.article-reader__body p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 3.6em;
  font-weight: 600;
  line-height: 0.82;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding: 52px var(--page-pad);
  border-top: 1px solid var(--line);
  background: #0d1211;
}

.footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer p {
  margin: 0;
  color: rgb(255 253 247 / 58%);
  font-size: 0.82rem;
}

.footer__links {
  display: flex;
  gap: 22px;
  color: rgb(255 253 247 / 72%);
  font-size: 0.82rem;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__note {
  display: flex;
  align-items: center;
  gap: 9px;
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgb(255 253 247 / 32%) !important;
  font-family: var(--font-display);
  font-size: 0.64rem !important;
  letter-spacing: 0.1em;
}

.footer-admin-link {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgb(255 253 247 / 18%);
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
  background: var(--accent);
  transform: scale(1.45);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: var(--page-pad);
    left: var(--page-pad);
    display: grid;
    gap: 0;
    padding: 10px 22px;
    border: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    background: rgb(13 18 17 / 96%);
    backdrop-filter: blur(18px);
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 0s linear 180ms;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .primary-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .primary-nav a::after {
    display: none;
  }

  .visitor-chip {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  }

  .hero__facts > div {
    padding-right: 14px;
    padding-left: 14px;
  }

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

  .photo,
  .photo--wide,
  .photo--standard,
  .photo--tall {
    grid-column: span 6;
  }

  .journal-entry {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .journal-entry:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --page-pad: 20px;
  }

  .welcome__frame {
    min-height: min(78vh, 650px);
  }

  .welcome__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .welcome__copy {
    padding: 54px 0;
  }

  .identity__panel {
    grid-template-columns: 1fr;
    max-height: calc(100svh - 40px);
    overflow-y: auto;
  }

  .identity__preview {
    min-height: auto;
    padding: 32px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .avatar--large {
    width: 110px;
    height: 110px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 132px;
    padding-bottom: 92px;
  }

  .hero__portrait {
    justify-self: start;
    width: min(100%, 390px);
  }

  .hero__facts {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .hero__facts > div,
  .hero__facts > div:first-child {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__facts > div:last-child {
    border-bottom: 0;
  }

  .hero__scroll {
    display: none;
  }

  .section-heading,
  .film__heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 44px;
  }

  .profile__grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .work {
    grid-template-columns: 1fr 42px;
    gap: 22px;
    align-items: start;
  }

  .work__meta {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
  }

  .work:hover {
    padding-right: 0;
    padding-left: 0;
    background: transparent;
  }

  .video-shell {
    aspect-ratio: 4 / 5;
  }

  .video-shell__play {
    right: 18px;
    bottom: 18px;
  }

  .timeline__list li {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .journal-entry {
    padding: 26px 0;
  }

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

  .photo,
  .photo--wide,
  .photo--standard,
  .photo--tall {
    grid-column: auto;
  }

  .photo--tall .photo__frame {
    aspect-ratio: 4 / 3;
  }

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

  .music-dock {
    right: 16px;
    bottom: 16px;
    left: 16px;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .music-dock__toggle {
    width: 44px;
    height: 44px;
  }

  .article-reader__panel {
    width: 100%;
    border-left: 0;
  }

  .footer__note {
    grid-column: auto;
  }
}

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

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

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