:root {
  color-scheme: dark;
  --bg: #080706;
  --paper: #f2eee5;
  --muted: #9e988e;
  --muted-2: #6f6a63;
  --line: rgba(242, 238, 229, 0.16);
  --line-strong: rgba(242, 238, 229, 0.38);
  --red: #e84b38;
  --red-dark: #8f2218;
  --blue: #9fe8ff;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(242, 238, 229, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 72% 8%, rgba(232, 75, 56, 0.13), transparent 25rem),
    radial-gradient(circle at 12% 28%, rgba(159, 232, 255, 0.08), transparent 30rem),
    var(--bg);
  background-size: 72px 100%, auto, auto, auto;
  color: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url("/assets/studio-room.webp");
  background-position: center;
  background-size: cover;
  opacity: 0.1;
  filter: grayscale(1) contrast(1.1);
}

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

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

a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 5px;
}

section[id] {
  scroll-margin-top: 96px;
}

.nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 24px 42px;
  color: var(--paper);
  mix-blend-mode: difference;
}

.brand {
  display: inline-grid;
  gap: 2px;
  justify-self: start;
  letter-spacing: 0;
}

.brand span {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.brand strong {
  font-size: 0.94rem;
}

.nav nav {
  display: flex;
  gap: 26px;
  color: rgba(242, 238, 229, 0.82);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.nav a {
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav a:hover {
  color: #fff;
}

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

.nav-tool {
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid currentColor;
  font-size: 0.8rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  gap: 56px;
  align-items: center;
  width: min(100% - 84px, var(--max));
  margin: 0 auto;
  padding: 118px 0 78px;
}

.hero-noise {
  position: absolute;
  inset: 44px -42px 0;
  z-index: -1;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(242, 238, 229, 0.12) 48% 48.2%, transparent 48.2%),
    linear-gradient(rgba(255, 255, 255, 0.025), transparent 34%);
}

.kicker {
  margin: 0 0 22px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family:
    "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, ui-serif, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 30px;
  font-size: 5.9rem;
  font-weight: 900;
  line-height: 0.95;
}

h1 span {
  display: block;
  color: var(--paper);
}

.lead {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(242, 238, 229, 0.82);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button.solid {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--bg);
}

.button.solid:hover {
  background: #fff;
}

.button.ghost:hover {
  border-color: var(--paper);
  background: rgba(242, 238, 229, 0.08);
}

.hero-stage {
  position: relative;
  min-height: 690px;
}

.stage-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #030303;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.stage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease, filter 800ms ease;
}

.stage-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.main-card {
  inset: 58px 0 0 48px;
}

.main-card figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 238, 229, 0.44);
}

.main-card span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.poster-card {
  top: 0;
  left: 0;
  width: 210px;
  height: 286px;
}

.portrait-card {
  right: -18px;
  bottom: 38px;
  width: 188px;
  height: 250px;
}

.hero-rail {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  display: flex;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.studio-statement,
.section,
.contact,
.site-footer {
  width: min(100% - 84px, var(--max));
  margin: 0 auto;
}

.studio-statement {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 86px;
  padding: 92px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement-label {
  align-self: start;
  position: sticky;
  top: 110px;
}

.statement-label > p:last-child {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.studio-statement h2 {
  max-width: 910px;
  margin-bottom: 24px;
  font-size: 2.9rem;
  line-height: 1.16;
}

.statement-body > p {
  max-width: 760px;
  margin-bottom: 44px;
  color: rgba(242, 238, 229, 0.72);
  font-size: 1.05rem;
}

.studio-statement dl {
  display: block;
  margin: 0;
  border-top: 1px solid var(--line-strong);
  background: transparent;
}

.studio-statement dl div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 34px;
  min-height: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

dt {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

dd {
  margin: 0;
  color: rgba(242, 238, 229, 0.82);
}

.section {
  padding: 126px 0;
}

.section-head {
  margin-bottom: 54px;
}

.section-head > p:not(.kicker) {
  max-width: 780px;
  color: rgba(242, 238, 229, 0.7);
}

.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: 80px;
  align-items: end;
}

.section h2,
.contact h2 {
  margin-bottom: 0;
  font-size: 3.65rem;
  line-height: 1.08;
}

.section-head p:last-child {
  color: rgba(242, 238, 229, 0.72);
  font-size: 1.02rem;
}

.work-list {
  border-top: 1px solid var(--line-strong);
}

.work-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 46px;
  align-items: start;
}

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(300px, 0.72fr) minmax(250px, 1fr) 104px;
  gap: 28px;
  align-items: center;
  min-height: 154px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  color: inherit;
}

.work-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(100%);
  transition: transform 360ms ease;
}

.work-row span {
  position: relative;
  z-index: 1;
  transition: color 260ms ease;
}

.work-index,
.work-type {
  color: var(--muted);
}

.work-name {
  font-family:
    "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, ui-serif, serif;
  font-size: 3.25rem;
  font-weight: 900;
  white-space: nowrap;
}

.work-row:hover::before {
  transform: translateY(0);
}

.work-row:hover span,
.work-row:focus-visible span,
.work-row.is-active span {
  color: var(--bg);
}

.work-row:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: -2px;
}

.work-row:focus-visible::before,
.work-row.is-active::before {
  transform: translateY(0);
}

.work-action {
  justify-self: end;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.work-preview {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(8, 7, 6, 0.84);
}

.work-preview img {
  width: 100%;
  aspect-ratio: 1 / 1.16;
  object-fit: cover;
  background: #030303;
}

.work-preview div {
  padding: 22px;
}

.work-preview p:first-child {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.work-preview h3 {
  margin: 0 0 12px;
  font-family:
    "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, ui-serif, serif;
  font-size: 2.2rem;
  line-height: 1.08;
}

.work-preview p:last-child {
  margin: 0;
  color: rgba(242, 238, 229, 0.72);
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  justify-content: flex-end;
}

.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(260px, 0.7fr);
  gap: 22px;
  align-items: stretch;
}

.craft-grid figure {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
}

.craft-grid .landscape {
  grid-row: span 2;
  min-height: 744px;
}

.craft-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94);
  transition: transform 900ms ease, filter 900ms ease;
}

.craft-grid figure:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.craft-grid figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(242, 238, 229, 0.38);
  color: rgba(242, 238, 229, 0.86);
  font-weight: 800;
}

.process-board {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 42px;
  align-items: start;
}

.process-board > img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #000;
}

.process-board ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.process-board li {
  display: grid;
  grid-template-columns: 70px minmax(120px, 0.45fr) 1fr;
  gap: 26px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.process-board span {
  color: var(--red);
  font-weight: 900;
}

.process-board strong {
  font-size: 1.16rem;
}

.process-board p {
  margin: 0;
  color: rgba(242, 238, 229, 0.72);
}

.price-lines {
  border-top: 1px solid var(--line-strong);
}

.price-lines div {
  display: grid;
  grid-template-columns: 190px minmax(300px, 1fr) 180px;
  gap: 34px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.price-lines span,
.price-lines strong {
  font-weight: 900;
}

.price-lines span {
  color: var(--red);
}

.price-lines p {
  margin: 0;
  color: rgba(242, 238, 229, 0.72);
}

.price-lines strong {
  justify-self: end;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 70px;
  align-items: end;
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 900px;
}

.contact dl {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.contact dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contact dd {
  color: var(--paper);
  font-size: 1.4rem;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--paper);
}

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

.icp-link {
  color: var(--muted) !important;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1050px) {
  .nav {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .nav nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .section-head.split,
  .process-board,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 120px;
  }

  h1 {
    font-size: 4.7rem;
  }

  .hero-stage {
    min-height: 570px;
  }

  .main-card {
    inset: 46px 0 0 34px;
  }

  .studio-statement {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .statement-label {
    position: static;
  }

  .studio-statement h2,
  .section h2,
  .contact h2 {
    font-size: 2.85rem;
  }

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

  .craft-grid .landscape {
    min-height: 560px;
  }

  .work-row {
    grid-template-columns: 54px minmax(260px, 1fr) auto;
  }

  .work-type {
    grid-column: 2;
  }

  .work-action {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .work-showcase {
    grid-template-columns: 1fr;
  }

  .work-preview {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: 260px 1fr;
  }

  .work-preview img {
    height: 100%;
    aspect-ratio: auto;
  }

  .price-lines div {
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    padding: 20px 18px;
  }

  .nav nav {
    gap: 14px;
    font-size: 0.78rem;
  }

  .nav-tool {
    padding: 8px 10px;
  }

  .hero,
  .studio-statement,
  .section,
  .contact,
  .site-footer {
    width: min(100% - 36px, var(--max));
  }

  .hero {
    min-height: auto;
    gap: 40px;
    padding: 104px 0 54px;
  }

  .hero-noise {
    inset: 74px -18px 20px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .button {
    width: 100%;
  }

  .hero-stage {
    min-height: 490px;
  }

  .poster-card {
    width: 150px;
    height: 205px;
  }

  .portrait-card {
    right: -8px;
    width: 140px;
    height: 190px;
  }

  .main-card {
    inset: 68px 20px 0 24px;
  }

  .hero-rail {
    position: static;
    flex-wrap: wrap;
    margin-top: 20px;
  }

  .studio-statement,
  .section,
  .contact {
    padding: 76px 0;
  }

  .studio-statement h2,
  .section h2,
  .contact h2 {
    font-size: 2.15rem;
  }

  .studio-statement dl {
    display: block;
  }

  .studio-statement dl div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .work-row {
    min-height: 138px;
    grid-template-columns: 44px 1fr;
  }

  .work-name {
    font-size: 2.2rem;
  }

  .work-action {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
    color: var(--red);
  }

  .work-preview {
    display: block;
  }

  .work-preview img {
    height: auto;
    aspect-ratio: 1 / 1.05;
  }

  .craft-grid figure,
  .craft-grid .landscape {
    min-height: 360px;
  }

  .process-board > img {
    min-height: 240px;
  }

  .process-board li,
  .price-lines div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .price-lines strong {
    justify-self: start;
  }

  .contact dl div {
    grid-template-columns: 78px 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-footer a:last-child {
    justify-self: start;
  }

  .section-cta {
    justify-content: stretch;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.72rem;
  }

  .hero-stage {
    min-height: 430px;
  }

  .main-card figcaption {
    display: block;
  }
}

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