:root {
  color-scheme: dark;
  --black: #050505;
  --ink: #080a09;
  --charcoal: #0e1210;
  --charcoal-2: #141a16;
  --line: rgba(216, 229, 236, 0.1);
  --line-strong: rgba(216, 229, 236, 0.22);
  --text: #d8e5ec;
  --muted: #aaa295;
  --dim: #746f65;
  --oxidized: #7f9f8d;
  --oxidized-soft: #a7bba9;
  --matter-blue: #7fa9d6;
  --steel: #6f8798;
  --steel-soft: #9bb2bf;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(127, 159, 141, 0.08), transparent 40rem),
    radial-gradient(circle at 92% 18%, rgba(111, 135, 152, 0.055), transparent 34rem),
    linear-gradient(180deg, var(--black), var(--ink) 42%, #050605);
  color: var(--text);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(216, 229, 236, 0.035), transparent 22rem),
    radial-gradient(circle at 78% 64%, rgba(127, 159, 141, 0.028), transparent 26rem),
    repeating-linear-gradient(105deg, rgba(216, 229, 236, 0.018) 0 1px, transparent 1px 9px);
  background-size: auto, auto, 180px 180px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background:
    repeating-radial-gradient(circle at 35% 45%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--oxidized-soft);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  background: var(--black);
  color: var(--text);
  transition: transform 180ms ease;
}

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

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  color: rgba(216, 229, 236, 0.86);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    padding 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark span {
  color: var(--oxidized-soft);
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.site-nav a,
.site-footer a {
  position: relative;
  transition: color 180ms ease;
}

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

.site-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.site-nav a:hover::after,
.site-footer a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: clip;
  place-items: end start;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/cinematic-surface.png");
  background-position: center;
  background-size: cover;
  opacity: 0.82;
  filter: saturate(0.52) hue-rotate(14deg) brightness(0.74) contrast(1.04);
  transform: scale(1.03);
  animation: slow-drift 18s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 40%, rgba(127, 159, 141, 0.08), transparent 34rem),
    linear-gradient(90deg, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.66) 48%, rgba(5, 5, 5, 0.78)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.22), rgba(5, 5, 5, 0.78) 84%, var(--black));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 390px);
  gap: clamp(64px, 9vw, 132px);
  align-items: end;
  padding: 168px 0 clamp(166px, 17vw, 230px);
}

.hero-main {
  max-width: 760px;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--oxidized-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-block: 0;
}

.hero-wordmark {
  max-width: 7.4ch;
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(4.25rem, 10.8vw, 10.4rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
  font-synthesis: none;
}

.hero-wordmark span {
  display: block;
}

.hero-wordmark span:last-child {
  color: var(--oxidized-soft);
}

.hero-line {
  max-width: 620px;
  margin-top: clamp(28px, 5vw, 54px);
  color: rgba(216, 229, 236, 0.84);
  font-family:
    "Songti SC",
    "Noto Serif CJK TC",
    "Noto Serif CJK SC",
    "SimSun",
    Georgia,
    serif;
  font-size: clamp(2.2rem, 5vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0.08em;
}

.hero-index {
  display: grid;
  align-self: end;
  border-top: 1px solid rgba(216, 229, 236, 0.2);
}

.hero-index a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(216, 229, 236, 0.12);
  color: rgba(216, 229, 236, 0.82);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.hero-index a:hover {
  border-color: rgba(127, 159, 141, 0.38);
  color: var(--text);
  transform: translateX(6px);
}

.hero-index span {
  grid-row: span 2;
  color: var(--oxidized-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.hero-index strong {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-index em {
  color: rgba(170, 162, 149, 0.82);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.35;
}

.hero-quote {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 4.5vw, 58px);
  left: var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(216, 229, 236, 0.16);
  color: rgba(216, 229, 236, 0.78);
}

.hero-quote p {
  max-width: none;
  color: rgba(216, 229, 236, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.2vw, 1.32rem);
  line-height: 1.3;
  white-space: nowrap;
}

.hero-quote em {
  font-style: italic;
}

.projects {
  border-top: 1px solid rgba(216, 229, 236, 0.08);
}

.project-row {
  position: relative;
  padding: clamp(108px, 15vw, 210px) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.006);
  transition: background 260ms ease;
}

.project-row::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(127, 159, 141, 0.075), transparent 34%),
    linear-gradient(180deg, transparent, rgba(111, 135, 152, 0.025));
  transition: opacity 260ms ease;
}

.project-row:hover::before {
  opacity: 1;
}

.flagship {
  background: linear-gradient(180deg, rgba(127, 159, 141, 0.045), rgba(255, 255, 255, 0.003));
}

.research-row {
  background: rgba(5, 5, 5, 0.26);
}

.project-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(46px, 9vw, 138px);
}

.project-label {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.index {
  color: var(--dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 5.4rem);
  line-height: 0.9;
}

.status {
  display: inline-flex;
  min-height: auto;
  align-items: center;
  padding: 0;
  border: 0;
  color: var(--oxidized-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status.quiet {
  color: rgba(155, 178, 191, 0.76);
}

.project-body {
  max-width: 820px;
}

h2 {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.project-subtitle {
  margin-top: 18px;
  color: var(--oxidized-soft);
  font-size: clamp(1rem, 1.55vw, 1.34rem);
}

.project-body > p:not(.section-kicker):not(.project-subtitle) {
  max-width: 720px;
  margin-top: 42px;
  color: rgba(216, 229, 236, 0.68);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
}

.project-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 58px 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.project-notes li {
  min-height: 86px;
  padding: 20px 20px 20px 0;
  border-bottom: 1px solid rgba(216, 229, 236, 0.08);
  background: transparent;
  color: rgba(216, 229, 236, 0.62);
  font-size: 0.92rem;
  line-height: 1.45;
}

.vito-gallery {
  display: grid;
  gap: clamp(34px, 5vw, 70px);
  margin-top: 72px;
}

.vito-gallery-group {
  display: grid;
  gap: 14px;
}

.vito-gallery-label {
  color: rgba(167, 187, 169, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vito-story-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.vito-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vito-frame {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 229, 236, 0.09);
  background: #070908;
}

.vito-story-frame {
  aspect-ratio: 16 / 10;
}

.vito-story-frame:nth-child(1),
.vito-story-frame:nth-child(2) {
  grid-column: span 3;
}

.vito-story-frame:nth-child(3),
.vito-story-frame:nth-child(4) {
  grid-column: span 3;
}

.vito-reference-frame {
  aspect-ratio: 3 / 4;
}

.vito-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.28)),
    inset 0 0 0 1px rgba(127, 159, 141, 0.08);
  opacity: 0.82;
}

.vito-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04) brightness(0.82);
  transform: scale(1.01);
  transition:
    filter 240ms ease,
    transform 240ms ease;
}

.vito-frame:hover img {
  filter: saturate(0.82) contrast(1.06) brightness(0.9);
  transform: scale(1.025);
}

.vito-story-frame:nth-child(1) img {
  object-position: 62% 35%;
}

.vito-story-frame:nth-child(2) img {
  object-position: center center;
}

.vito-story-frame:nth-child(3) img {
  object-position: center 36%;
}

.vito-story-frame:nth-child(4) img {
  object-position: center center;
}

.vito-reference-frame img {
  object-position: center 16%;
}

.contact-section {
  padding: clamp(116px, 17vw, 220px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 44%, rgba(111, 135, 152, 0.035), transparent 25rem),
    linear-gradient(180deg, #070908, var(--black));
}

.contact-inner {
  padding-top: clamp(30px, 4vw, 56px);
  border-top: 1px solid rgba(216, 229, 236, 0.14);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.62fr);
  gap: clamp(42px, 8vw, 132px);
  align-items: center;
  margin-top: clamp(64px, 9vw, 112px);
}

.contact-grid h2 {
  max-width: 760px;
  margin: 0;
  color: rgba(216, 229, 236, 0.96);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: clamp(2.85rem, 5.8vw, 6.6rem);
  font-weight: 800;
  line-height: 0.96;
}

.contact-grid h2 span {
  color: var(--matter-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
}

.contact-copy {
  display: grid;
  gap: 0;
  color: rgba(216, 229, 236, 0.54);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.45;
}

.email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(216, 229, 236, 0.16);
  color: rgba(216, 229, 236, 0.9);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.email-link:hover {
  border-color: rgba(127, 159, 141, 0.58);
  color: var(--text);
  transform: translateX(6px);
}

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

.footer-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 118px;
  color: var(--muted);
  font-size: 0.85rem;
}

.year {
  margin: 0;
}

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

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

@keyframes slow-drift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.07) translate3d(-1.4%, -1%, 0);
  }
}

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

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

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    padding-top: 18px;
  }

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

  .hero {
    min-height: 100svh;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-shade {
    background:
      radial-gradient(circle at 78% 42%, rgba(127, 159, 141, 0.1), transparent 24rem),
      linear-gradient(90deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.56)),
      linear-gradient(180deg, rgba(5, 5, 5, 0.32), rgba(5, 5, 5, 0.78) 82%, var(--black));
  }

  .hero-inner,
  .contact-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-index {
    max-width: 520px;
  }

  .hero-quote p {
    white-space: normal;
  }

  .contact-grid {
    align-items: start;
    margin-top: 62px;
  }

  .contact-grid h2 {
    max-width: 620px;
  }

  .contact-copy {
    max-width: 520px;
  }

  .project-label {
    flex-direction: row;
    justify-content: space-between;
    gap: 18px;
  }

  .project-notes {
    grid-template-columns: 1fr;
  }

  .project-notes li {
    min-height: auto;
  }

  .vito-gallery {
    gap: 44px;
  }

  .vito-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vito-story-frame:nth-child(1),
  .vito-story-frame:nth-child(2),
  .vito-story-frame:nth-child(3),
  .vito-story-frame:nth-child(4) {
    grid-column: auto;
  }

  .vito-reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    justify-content: flex-start;
    padding-block: 30px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }

  .site-header {
    position: absolute;
  }

  .site-nav {
    max-width: 220px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-inner {
    padding-top: 142px;
    padding-bottom: 230px;
    gap: 42px;
  }

  .hero-wordmark {
    font-size: clamp(3.7rem, 22vw, 7.2rem);
  }

  .hero-line {
    max-width: 11.5em;
  }

  .hero-index a {
    grid-template-columns: 34px 1fr;
    padding-block: 14px;
  }

  .vito-gallery {
    gap: 36px;
    margin-top: 38px;
  }

  .vito-story-grid,
  .vito-reference-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vito-story-frame,
  .vito-reference-frame {
    aspect-ratio: 4 / 5;
  }

  .hero-quote {
    padding-top: 16px;
  }

  .hero-quote p {
    font-size: 0.95rem;
  }

  .contact-section {
    padding-block: 86px;
  }

  .contact-grid {
    margin-top: 46px;
  }

  .contact-grid h2 {
    font-size: clamp(2.65rem, 14vw, 4.25rem);
  }

  .project-label {
    align-items: center;
  }

  .status {
    min-height: auto;
    padding-inline: 0;
    font-size: 0.65rem;
  }
}
