@font-face {
  font-family: "Qirenn Display";
  src: url("assets/fonts/DMSerifDisplay-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --canvas: #07080d;
  --canvas-deep: #040509;
  --surface: #10121b;
  --surface-soft: #151824;
  --line: rgba(226, 232, 255, 0.16);
  --line-strong: rgba(226, 232, 255, 0.28);
  --ink: #f5f5f7;
  --body: #bebfca;
  --muted: #868895;
  --blue: #5e9eff;
  --violet: #a886ff;
  --olive: #bcc16d;
  --warm: #e1cfab;
  --page: min(1240px, calc(100% - 64px));
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--canvas);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(35, 82, 156, .18), transparent 26%),
    linear-gradient(302deg, rgba(107, 70, 166, .13), transparent 31%),
    var(--canvas);
  content: "";
  pointer-events: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 6px;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 700;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--page);
  min-height: 84px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .01em;
}

.brand img { width: 44px; height: 44px; object-fit: contain; }

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
}

.site-nav a, .footer-links a { transition: color .2s var(--ease); }
.site-nav a:hover, .footer-links a:hover { color: var(--ink); }

.header-cta {
  justify-self: end;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.header-cta:hover { border-color: transparent; background: var(--ink); color: var(--canvas); }

.section-shell { width: var(--page); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(400px, 1.12fr);
  align-items: center;
  min-height: min(760px, calc(100dvh - 84px));
  padding: 72px 0 80px;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1, h2 {
  margin-bottom: 22px;
  font-size: clamp(52px, 7vw, 102px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: .93;
}

h1 em, h2 em {
  color: var(--violet);
  font-family: "Qirenn Display", Georgia, serif;
  font-style: normal;
  font-weight: 400;
}

.hero-description { max-width: 440px; margin-bottom: 30px; color: var(--body); font-size: 17px; }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--canvas); }
.button-primary:hover { background: var(--violet); }
.button-secondary { border-color: var(--line-strong); color: var(--ink); }
.button-secondary:hover { border-color: var(--blue); background: rgba(94, 158, 255, .09); }
.button-light { background: var(--ink); color: #0a0b11; }
.button-light:hover { background: var(--warm); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 26px; margin: 0; }
.hero-facts div { min-width: 86px; }
.hero-facts dt { color: var(--ink); font-family: "Qirenn Display", Georgia, serif; font-size: 30px; line-height: 1; }
.hero-facts dd { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.3; }

.hero-art { position: relative; min-height: 540px; isolation: isolate; }
.hero-art::before {
  position: absolute;
  z-index: -1;
  inset: 12% -5% 8% -20%;
  background: linear-gradient(135deg, rgba(44, 97, 180, .34), rgba(123, 79, 172, .24) 49%, rgba(194, 193, 111, .11));
  filter: blur(64px);
  content: "";
}
.hero-art::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(ellipse 78% 75% at 61% 52%, transparent 46%, rgba(7, 8, 13, .14) 67%, var(--canvas) 98%);
  content: "";
  pointer-events: none;
}
.hero-art img {
  position: absolute;
  inset: -12% -12% -10% -24%;
  width: 136%;
  height: 122%;
  margin: 0;
  mix-blend-mode: screen;
  object-fit: cover;
  object-position: 58% center;
  -webkit-mask-image: radial-gradient(ellipse 83% 88% at 61% 51%, #000 35%, rgba(0, 0, 0, .96) 53%, rgba(0, 0, 0, .62) 71%, transparent 94%);
  mask-image: radial-gradient(ellipse 83% 88% at 61% 51%, #000 35%, rgba(0, 0, 0, .96) 53%, rgba(0, 0, 0, .62) 71%, transparent 94%);
}
.art-line { position: absolute; z-index: -1; width: 1px; background: linear-gradient(180deg, transparent, var(--line-strong), transparent); }
.art-line-one { top: 5%; right: 16%; height: 66%; }
.art-line-two { right: 4%; bottom: 9%; height: 46%; }
.art-caption { position: absolute; right: 8%; bottom: 8%; margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.modes { padding: 130px 0 150px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .45fr); gap: 36px; align-items: end; max-width: 1040px; margin-bottom: 50px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -2px; }
.section-heading h2 { margin: 0; font-size: clamp(44px, 5.2vw, 78px); }
.section-heading > p:last-child { max-width: 330px; margin: 0 0 8px; color: var(--body); }
.section-heading-compact { grid-template-columns: 1fr; max-width: 760px; }

.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mode-card { min-height: 290px; padding: 24px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(17, 19, 29, .58); transition: background .22s var(--ease), transform .22s var(--ease); }
.mode-card:hover { background: #171a28; transform: translateY(-4px); }
.mode-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 74px; color: var(--muted); font-size: 12px; font-weight: 700; }
.mode-card-top img { width: 24px; height: 24px; opacity: .92; filter: brightness(0) invert(1); }
.mode-card h3 { margin-bottom: 10px; font-size: 20px; line-height: 1.15; }
.mode-card p { margin: 0; color: var(--body); font-size: 14px; }

.studio-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(460px, 45vw, 600px);
  margin-bottom: 160px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070911;
}
.studio-banner::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 4, 8, .93) 0%, rgba(4, 5, 11, .76) 38%, rgba(4, 5, 11, .2) 67%, rgba(4, 5, 11, .14) 100%);
  content: "";
  pointer-events: none;
}
.studio-banner-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.studio-banner-copy { max-width: 560px; padding: clamp(30px, 5vw, 72px); }
.studio-banner-copy h2 { margin-bottom: 18px; font-size: clamp(46px, 5.3vw, 80px); }
.studio-banner-copy > p:not(.eyebrow) { max-width: 380px; margin-bottom: 28px; color: var(--body); }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--ink); font-size: 14px; font-weight: 750; }
.text-link span { color: var(--violet); font-size: 20px; line-height: .9; transition: transform .2s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

.screen-stage { margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.screen-stage img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.screen-stage:hover img { transform: scale(1.025); }
.screen-stage figcaption { padding: 12px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

.gallery { padding-bottom: 160px; }
.gallery-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .45fr); gap: 42px; align-items: end; margin-bottom: 56px; }
.gallery-head h2 { margin-bottom: 0; font-size: clamp(44px, 5.2vw, 78px); }
.gallery-head > p { max-width: 320px; margin: 0 0 10px; color: var(--body); }
.screen-grid { display: grid; grid-template-columns: 1.15fr .85fr 1fr 1fr; align-items: end; gap: 18px; }
.screen-stage-tall img { aspect-ratio: 9 / 20; object-fit: contain; background: #08090e; }
.screen-a { transform: translateY(28px); }
.screen-b { transform: translateY(-40px); }
.screen-c { transform: translateY(18px); }
.screen-d { transform: translateY(-18px); }

.editorial-band { position: relative; overflow: hidden; padding: 150px 0; background: #e9e5dc; color: #11131a; }
.editorial-band::after { position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(90deg, rgba(65, 107, 178, .24), rgba(181, 143, 205, .2), rgba(152, 158, 87, .2)); content: ""; }
.editorial-inner { position: relative; z-index: 1; max-width: 760px; }
.editorial-band .eyebrow { color: #5c5f65; }
.editorial-band h2 { font-size: clamp(52px, 7vw, 98px); }
.editorial-band h2 em { color: #4a3da6; }
.editorial-band p:not(.eyebrow) { max-width: 520px; color: #41434a; font-size: 18px; }
.editorial-band .button { margin-top: 15px; }

.policies { padding: 150px 0; }
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.policy-card { min-height: 300px; padding: 30px; border: 1px solid var(--line); background: rgba(17, 19, 29, .55); transition: border-color .2s var(--ease), background .2s var(--ease); }
.policy-card:hover { border-color: rgba(168, 134, 255, .65); background: #131622; }
.policy-index { margin-bottom: 66px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.policy-card h3 { margin-bottom: 10px; font-family: "Qirenn Display", Georgia, serif; font-size: 36px; font-weight: 400; line-height: 1; }
.policy-card > p:not(.policy-index) { max-width: 430px; color: var(--body); font-size: 14px; }

.site-footer { display: grid; grid-template-columns: 1.15fr 1.15fr auto; gap: 30px; align-items: center; width: var(--page); margin: 0 auto; padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand { color: var(--ink); font-size: 13px; }
.site-footer > p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-copy { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid rgba(226, 232, 255, .08); color: #656774; font-size: 11px; }

/* Legal document page */
.legal-layout { background: var(--canvas-deep); }
.legal-header { grid-template-columns: 1fr auto; }
.legal-header .header-cta { justify-self: end; }
.legal-main { width: min(920px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0 140px; }
.legal-intro { max-width: 720px; margin-bottom: 64px; }
.legal-intro h1 { margin-bottom: 24px; font-size: clamp(56px, 8vw, 100px); }
.legal-intro p { max-width: 600px; color: var(--body); }
.legal-document { min-height: 360px; padding: clamp(22px, 5vw, 58px); border: 1px solid var(--line); background: #0d0f17; }
.legal-document pre { margin: 0; overflow-wrap: anywhere; color: #d6d6dd; font: 400 15px/1.72 Inter, ui-sans-serif, system-ui, sans-serif; white-space: pre-wrap; }
.legal-status { color: var(--muted); }

@media (max-width: 900px) {
  :root { --page: min(100% - 40px, 680px); }
  .site-header { grid-template-columns: 1fr auto; padding: 12px 0; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; gap: 18px; padding: 12px 0 2px; }
  .header-cta { padding: 9px 13px; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-art { min-height: 500px; max-width: 660px; margin: -14px auto 0; }
  .hero-art img { inset: -9% -9% -10% -16%; width: 125%; height: 119%; }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-banner { min-height: 520px; margin-bottom: 130px; }
  .gallery-head { grid-template-columns: 1fr; gap: 10px; }
  .gallery-head > p { margin-bottom: 0; }
  .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .screen-a, .screen-b, .screen-c, .screen-d { transform: none; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > p { grid-column: 1 / -1; }
  .footer-links { justify-self: end; }
}

@media (max-width: 600px) {
  :root { --page: calc(100% - 32px); }
  .site-header { min-height: 76px; }
  .site-nav { gap: 16px; overflow-x: auto; padding-bottom: 7px; font-size: 12px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 13px; }
  .header-cta { min-height: 38px; padding: 8px 11px; font-size: 12px; }
  .hero { min-height: auto; padding: 52px 0 84px; gap: 10px; }
  h1 { font-size: clamp(50px, 15vw, 68px); }
  h2, .section-heading h2, .studio-banner-copy h2, .gallery-head h2 { font-size: clamp(43px, 12vw, 60px); }
  .hero-description { font-size: 16px; }
  .hero-facts { gap: 20px; }
  .hero-art { display: none; }
  .art-caption { right: 4%; bottom: 2%; }
  .modes, .policies { padding: 92px 0; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading .eyebrow { margin-bottom: 18px; }
  .section-heading > p:last-child { margin-top: 18px; }
  .mode-card { min-height: 240px; padding: 19px; }
  .mode-card-top { margin-bottom: 47px; }
  .mode-card h3 { font-size: 18px; }
  .mode-card p { font-size: 13px; }
  .studio-banner { min-height: 480px; margin-bottom: 100px; }
  .studio-banner::after { background: linear-gradient(90deg, rgba(3, 4, 8, .94) 0%, rgba(4, 5, 11, .7) 70%, rgba(4, 5, 11, .5) 100%); }
  .studio-banner-copy { padding: 28px 24px; }
  .gallery { padding-bottom: 100px; }
  .screen-grid { gap: 10px; }
  .screen-stage figcaption { padding: 10px; font-size: 9px; }
  .editorial-band { padding: 96px 0; }
  .editorial-band h2 { font-size: clamp(54px, 15vw, 74px); }
  .editorial-band p:not(.eyebrow) { font-size: 16px; }
  .policy-grid { grid-template-columns: 1fr; }
  .policy-card { min-height: 260px; padding: 24px; }
  .policy-index { margin-bottom: 44px; }
  .site-footer { grid-template-columns: 1fr; gap: 16px; padding-top: 28px; }
  .footer-links { justify-self: start; }
  .legal-main { width: var(--page); padding: 76px 0 90px; }
  .legal-document { padding: 20px; }
  .legal-document pre { font-size: 14px; line-height: 1.65; }
}

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