:root {
  --black: #000000;
  --surface: #020203;
  --surface-raised: #050506;
  --white: #ffffff;
  --off-white: #f3f2ee;
  --muted: #8d8c95;
  --border: #17171b;
  --border-light: #2a2930;
  --violet: #7866ad;
  --violet-bright: #a08ade;
  --space-xl: 4rem;
  --space-2xl: 7rem;
  --border-subtle: 1px solid var(--border);
  --transition-fast: 200ms ease;
  --transition-base: 420ms cubic-bezier(0.22, 1, 0.36, 1);
  --intro-transition: 800ms cubic-bezier(0.65, 0, 0.35, 1);
  --page-transition: 680ms cubic-bezier(0.22, 0.72, 0.18, 1);
  --header-height: 72px;
  --shell: min(1220px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  background: #000000;
  color-scheme: dark;
}

body {
  background: #000000;
  color: var(--off-white);
  font-family: "Manrope", Arial, sans-serif;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  letter-spacing: -0.008em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html.intro-active,
body.intro-active {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

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

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

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(120, 102, 173, 0.28);
}

::selection {
  background: var(--violet);
  color: var(--white);
}

#introScreen {
  background: #000000;
  display: grid;
  inset: 0;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  position: fixed;
  transition: opacity var(--intro-transition), visibility var(--intro-transition);
  z-index: 1000;
}

#introScreen::after {
  background: rgba(174, 153, 236, 0.12);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 260ms ease;
  z-index: 5;
}

#introScreen.is-leaving {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#introScreen.is-leaving::after {
  animation: signal-flash 520ms ease-out both;
}

#introParticles,
.particle-layer {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.particle-layer {
  transition: transform 280ms ease-out;
  will-change: transform;
}

.particle-layer--far {
  z-index: 2;
}

.particle-layer--mid {
  z-index: 3;
}

.particle-layer--near {
  z-index: 4;
}

.particle {
  animation: particle-fall var(--duration) linear var(--delay) infinite;
  background: var(--particle-color);
  border-radius: 50%;
  height: var(--size);
  left: var(--left);
  opacity: var(--opacity);
  position: absolute;
  top: -8vh;
  transform: translate3d(var(--drift-x), -10vh, 0);
  width: var(--size);
  will-change: transform, opacity;
}

.particle.is-signal {
  animation: particle-fall var(--duration) linear var(--delay) infinite, particle-brighten 420ms ease-out both;
}

.intro-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
  text-align: center;
  transform: none;
  z-index: 6;
}

.intro-wordmark {
  color: var(--off-white);
  font-family: "Goudy Bookletter 1911", Georgia, serif;
  font-size: clamp(5.4rem, 14vw, 10.5rem);
  font-weight: 400;
  letter-spacing: 0.075em;
  line-height: 0.8;
  margin: 0 0 1.8rem 0.075em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
}

.intro-tagline {
  color: rgba(242, 240, 235, 0.78);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.58em;
  margin: 0 0 3.25rem 0.58em;
}

.intro-continue {
  background: #000000;
  border: 1px solid var(--border-light);
  border-radius: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  min-height: 44px;
  min-width: 154px;
  padding: 0.85rem 1.35rem 0.85rem 1.65rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.intro-continue:hover {
  background: #000000;
  border-color: var(--violet);
  color: var(--white);
  box-shadow: 0 0 20px rgba(136, 112, 201, 0.23);
}

.intro-continue:active,
.intro-continue.is-pressed {
  background: #000000;
  border-color: var(--violet-bright);
  color: var(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.12), 0 0 24px rgba(164, 138, 232, 0.34);
  transform: scale(0.98);
}

.intro-continue:focus-visible {
  background: #000000;
  border-color: var(--violet-bright);
  color: var(--white);
  outline: 1px solid var(--white);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px rgba(136, 112, 201, 0.55), 0 0 20px rgba(136, 112, 201, 0.2);
}

.intro-continue:disabled {
  cursor: default;
}

#mainContent {
  background: var(--black);
  height: 100svh;
  opacity: 0;
  overflow: hidden;
  transition: opacity 600ms ease;
}

#mainContent.is-visible {
  opacity: 1;
}

.shell,
.section-shell {
  margin-inline: auto;
  width: var(--shell);
}

.site-header {
  background: var(--black);
  border-bottom: 1px solid #141417;
  height: var(--header-height);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

.site-nav {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-between;
}

.nav-brand,
.footer-brand {
  font-family: "Goudy Bookletter 1911", Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
}

.nav-brand {
  transition: color var(--transition-fast);
}

.nav-brand:hover {
  color: var(--white);
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(1.15rem, 2.4vw, 2.3rem);
}

.nav-links a {
  color: #85848d;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding-block: 0.5rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  background: var(--violet-bright);
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
  width: 100%;
}

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

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

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--border-light);
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  position: relative;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  width: 44px;
}

.menu-toggle:hover {
  background: var(--surface);
  border-color: rgba(160, 138, 222, 0.58);
}

.menu-toggle span {
  background: var(--off-white);
  height: 1px;
  left: 12px;
  position: absolute;
  transition: transform var(--transition-base), top var(--transition-base);
  width: 19px;
}

.menu-toggle span:first-child {
  top: 17px;
}

.menu-toggle span:last-child {
  top: 25px;
}

.menu-toggle.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

.page-stage {
  background: var(--black);
  height: calc(100svh - var(--header-height));
  margin-top: var(--header-height);
  overflow: hidden;
  perspective: 1400px;
  position: relative;
  width: 100%;
}

.page-panel {
  background: var(--black);
  inset: 0;
  opacity: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
  position: absolute;
  scrollbar-color: #29282e var(--black);
  scrollbar-width: thin;
  transform: translate3d(0, 0, 0) rotateY(0deg);
  transform-style: preserve-3d;
  transition: opacity var(--page-transition), transform var(--page-transition), box-shadow var(--page-transition);
  visibility: hidden;
  width: 100%;
  will-change: transform, opacity;
  z-index: 1;
}

.page-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateY(0deg);
  visibility: visible;
  z-index: 2;
}

.page-panel.is-entering-from-right {
  box-shadow: -24px 0 44px rgba(0, 0, 0, 0.82), inset 1px 0 0 rgba(160, 138, 222, 0.07);
  opacity: 0;
  transform: translate3d(9%, 0, 0) rotateY(8deg);
  transform-origin: right center;
  visibility: visible;
  z-index: 3;
}

.page-panel.is-entering-from-left {
  box-shadow: 24px 0 44px rgba(0, 0, 0, 0.82), inset -1px 0 0 rgba(160, 138, 222, 0.07);
  opacity: 0;
  transform: translate3d(-9%, 0, 0) rotateY(-8deg);
  transform-origin: left center;
  visibility: visible;
  z-index: 3;
}

.page-panel.is-leaving-to-left {
  box-shadow: 24px 0 44px rgba(0, 0, 0, 0.82), inset -1px 0 0 rgba(160, 138, 222, 0.055);
  opacity: 0;
  transform: translate3d(-9%, 0, 0) rotateY(-8deg);
  transform-origin: left center;
  visibility: visible;
  z-index: 2;
}

.page-panel.is-leaving-to-right {
  box-shadow: -24px 0 44px rgba(0, 0, 0, 0.82), inset 1px 0 0 rgba(160, 138, 222, 0.055);
  opacity: 0;
  transform: translate3d(9%, 0, 0) rotateY(8deg);
  transform-origin: right center;
  visibility: visible;
  z-index: 2;
}

.page-stage.is-transitioning .page-panel {
  pointer-events: none;
}

.page-panel__content {
  min-height: 100%;
}

.about-page .page-panel__content {
  min-height: calc(100% - 85px);
}

.hero {
  align-items: center;
  display: flex;
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(7rem, 15vh, 10rem) clamp(5rem, 10vh, 7rem);
}

.hero-content {
  margin-inline: auto;
  max-width: 850px;
  width: 100%;
}

.eyebrow {
  color: #9a87ce;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  margin: 0 0 1.5rem;
}

.hero h1 {
  color: var(--off-white);
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--white);
  font-family: "Goudy Bookletter 1911", Georgia, serif;
  font-weight: 400;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
  margin: 2rem 0 0;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 2px;
  display: inline-flex;
  font-size: 0.64rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.16em;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active,
.button.is-pressed {
  transform: translateY(0) scale(0.98);
}

.button--primary {
  background: var(--off-white);
  border-color: var(--off-white);
  color: var(--black);
}

.button--primary:hover {
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.08);
}

.button--quiet {
  background: var(--black);
  border-color: var(--border-light);
  color: var(--off-white);
}

.button--quiet:hover {
  background: var(--surface);
  border-color: rgba(160, 138, 222, 0.7);
  box-shadow: 0 0 0 1px rgba(120, 102, 173, 0.12);
}

.content-section,
.statement-section,
.about-section {
  border-top: 1px solid #111114;
  padding-block: var(--space-2xl);
}

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

.section-heading h2 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

.section-heading > p:last-child {
  color: var(--muted);
  line-height: 1.75;
  margin: 1.5rem 0 0;
  max-width: 570px;
}

.featured-project {
  background: var(--surface);
  border: 1px solid #1a191e;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.018), 0 18px 48px rgba(0, 0, 0, 0.3);
  display: block;
  margin-top: var(--space-xl);
  overflow: hidden;
  transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.featured-project:hover {
  background: var(--surface-raised);
  border-color: rgba(160, 138, 222, 0.72);
  box-shadow: 0 0 0 1px rgba(120, 102, 173, 0.16), 0 20px 48px rgba(0, 0, 0, 0.46);
}

.featured-project:focus-visible {
  border-color: var(--violet-bright);
  box-shadow: 0 0 0 2px rgba(120, 102, 173, 0.48), 0 20px 48px rgba(0, 0, 0, 0.46);
  outline: 2px solid var(--white);
  outline-offset: 5px;
}

.featured-project__media {
  aspect-ratio: 3 / 1;
  background: var(--black);
  border-bottom: 1px solid #151519;
  overflow: hidden;
}

.featured-project__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  filter: brightness(0.84) contrast(1.06) saturate(0.84);
  transform: scale(1.006);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.featured-project.visible .featured-project__media img {
  opacity: 0.88;
  transform: scale(1);
}

.featured-project:hover .featured-project__media img,
.featured-project:focus-visible .featured-project__media img {
  opacity: 1;
  transform: scale(1);
}

.featured-project__content {
  align-items: end;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(1.65rem, 4vw, 3.4rem);
}

.featured-project__meta {
  align-items: center;
  color: #85848d;
  display: flex;
  font-size: 0.57rem;
  font-weight: 600;
  gap: 1.4rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}

.featured-project__status {
  align-items: center;
  color: var(--violet-bright);
  display: inline-flex;
  gap: 0.5rem;
}

.featured-project__status::before {
  background: var(--violet-bright);
  border-radius: 50%;
  content: "";
  height: 5px;
  width: 5px;
}

.featured-project h3 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 0.8rem;
}

.featured-project__copy > p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.featured-project__action {
  align-items: center;
  background: var(--black);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.18em;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.featured-project:hover .featured-project__action,
.featured-project:focus-visible .featured-project__action {
  border-color: rgba(160, 138, 222, 0.72);
  box-shadow: 0 0 0 1px rgba(120, 102, 173, 0.12);
}

.statement-section {
  display: grid;
  gap: clamp(3rem, 10vw, 9rem);
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
}

.statement-copy {
  color: var(--off-white);
  font-family: "Goudy Bookletter 1911", Georgia, serif;
  font-size: clamp(1.7rem, 3.4vw, 3.15rem);
  line-height: 1.35;
  margin: 0;
}

.about-section {
  display: grid;
  gap: clamp(3rem, 10vw, 9rem);
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  padding-bottom: 9rem;
}

.about-section > p {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.9;
  margin: 0;
  max-width: 690px;
}

.site-footer {
  border-top: 1px solid #141417;
  padding-block: 2rem;
}

.footer-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.footer-inner p {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  margin: 0;
}

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

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

.featured-project.scroll-reveal {
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1), background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

@keyframes particle-fall {
  0% {
    opacity: 0;
    transform: translate3d(var(--drift-x), -10vh, 0);
  }
  8% {
    opacity: var(--opacity);
  }
  88% {
    opacity: var(--opacity);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift-x), 118vh, 0);
  }
}

@keyframes particle-brighten {
  45% {
    opacity: 1;
    transform: scale(1.65);
  }
}

@keyframes signal-flash {
  0%, 100% {
    opacity: 0;
  }
  38% {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 32px, 680px);
    --space-2xl: 5.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    align-items: stretch;
    background: var(--black);
    border-bottom: 1px solid #17171b;
    display: flex;
    flex-direction: column;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 1rem 1.5rem 1.5rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(var(--header-height) - 1px);
    transform: translateY(-12px);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    visibility: hidden;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links a {
    border-bottom: 1px solid #17171b;
    font-size: 0.68rem;
    padding: 1rem 0;
  }

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

  .hero {
    padding-top: 10rem;
  }

  .statement-section,
  .about-section {
    gap: 3.5rem;
    grid-template-columns: 1fr;
  }

  .page-panel.is-entering-from-right {
    transform: translate3d(7%, 0, 0) rotateY(2deg);
  }

  .page-panel.is-entering-from-left {
    transform: translate3d(-7%, 0, 0) rotateY(-2deg);
  }

  .page-panel.is-leaving-to-left {
    transform: translate3d(-7%, 0, 0) rotateY(-2deg);
  }

  .page-panel.is-leaving-to-right {
    transform: translate3d(7%, 0, 0) rotateY(2deg);
  }
}

@media (max-width: 580px) {
  .intro-wordmark {
    font-size: clamp(4.4rem, 26vw, 7rem);
  }

  .intro-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.45em;
    margin-left: 0.45em;
  }

  .hero {
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .featured-project__content {
    align-items: stretch;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .featured-project__action {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}

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

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

  .particle {
    animation: none !important;
    opacity: var(--opacity);
    transform: translate3d(0, var(--static-top), 0);
  }

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

  .page-panel,
  .page-panel.is-active,
  .page-panel.is-entering-from-right,
  .page-panel.is-entering-from-left,
  .page-panel.is-leaving-to-left,
  .page-panel.is-leaving-to-right {
    box-shadow: none;
    transform: none;
    transition-duration: 120ms !important;
    transition-property: opacity !important;
  }
}
