:root {
  --bg: #020304;
  --ink: #f5f2eb;
  --muted: rgba(245, 242, 235, 0.62);
  --line: rgba(245, 242, 235, 0.16);
  --panel: rgba(245, 242, 235, 0.055);
  --danger: #ff8b93;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fade-duration: 900ms;
  --hold-duration: 2000ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.home-body,
body.not-found-body {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 10;
  padding: 12px 14px;
  background: #fff;
  color: #050505;
  text-decoration: none;
}

.skip-link:focus {
  top: 18px;
}

.film {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.film-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 22%, rgba(77, 91, 105, 0.36), transparent 36%),
    radial-gradient(circle at 78% 76%, rgba(62, 34, 55, 0.42), transparent 38%),
    #020304;
  transition: filter 1600ms var(--ease), transform 1600ms var(--ease);
}

.film-background::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.film-background span {
  position: absolute;
  display: block;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.18;
  transition: transform 1600ms var(--ease), opacity 1600ms var(--ease);
}

.film-background span:first-child {
  left: -16vw;
  top: 8vh;
  background: #7896a6;
  transform: translate3d(var(--bg-a-x, 0), var(--bg-a-y, 0), 0);
}

.film-background span:last-child {
  right: -18vw;
  bottom: 0;
  background: #6d4263;
  transform: translate3d(var(--bg-b-x, 0), var(--bg-b-y, 0), 0);
}

.legal-body .film-background,
.not-found-body .film-background {
  z-index: 0;
}

.film-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.thought,
.slogan,
.brand-title {
  position: absolute;
  margin: 0;
  z-index: 2;
  opacity: 0;
  transition:
    opacity var(--fade-duration) cubic-bezier(0.16, 1, 0.3, 1),
    transform var(--fade-duration) cubic-bezier(0.16, 1, 0.3, 1),
    filter var(--fade-duration) cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(10px);
}

.thought-preparing {
  transition: none;
}

.thought-drifting {
  transition:
    opacity var(--fade-duration) linear,
    transform var(--hold-duration) linear,
    filter var(--fade-duration) linear;
}

.thought-leaving {
  transition:
    opacity var(--fade-duration) cubic-bezier(0.64, 0, 0.78, 0),
    transform var(--fade-duration) cubic-bezier(0.64, 0, 0.78, 0),
    filter var(--fade-duration) cubic-bezier(0.64, 0, 0.78, 0);
}

.thought {
  max-width: min(760px, calc(100vw - 48px));
  font-size: clamp(34px, 5.8vw, 92px);
  line-height: 0.98;
  font-weight: 780;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.thought-visible,
.slogan-visible,
.brand-visible {
  opacity: 1;
  filter: blur(0);
}

.thought-hidden,
.slogan-hidden,
.brand-hidden {
  opacity: 0;
  filter: blur(10px);
}

.pos-a.thought-hidden,
.pos-c.thought-hidden,
.pos-g.thought-hidden {
  transform: translate3d(44px, 0, 0);
}

.pos-a.thought-visible,
.pos-c.thought-visible,
.pos-g.thought-visible {
  transform: translate3d(-10px, 0, 0);
}

.pos-a.thought-visible.thought-drifting,
.pos-c.thought-visible.thought-drifting,
.pos-g.thought-visible.thought-drifting {
  transform: translate3d(-30px, 0, 0);
}

.pos-a.thought-hidden.thought-leaving,
.pos-c.thought-hidden.thought-leaving,
.pos-g.thought-hidden.thought-leaving {
  transform: translate3d(-86px, 0, 0);
}

.pos-b.thought-hidden,
.pos-e.thought-hidden {
  transform: translate3d(-44px, 0, 0);
}

.pos-b.thought-visible,
.pos-e.thought-visible {
  transform: translate3d(10px, 0, 0);
}

.pos-b.thought-visible.thought-drifting,
.pos-e.thought-visible.thought-drifting {
  transform: translate3d(30px, 0, 0);
}

.pos-b.thought-hidden.thought-leaving,
.pos-e.thought-hidden.thought-leaving {
  transform: translate3d(86px, 0, 0);
}

.pos-a {
  left: clamp(24px, 7vw, 104px);
  top: 50%;
}

.pos-a.thought-hidden {
  transform: translate3d(44px, -50%, 0);
}

.pos-a.thought-visible {
  transform: translate3d(-10px, -50%, 0);
}

.pos-a.thought-visible.thought-drifting {
  transform: translate3d(-30px, -50%, 0);
}

.pos-a.thought-hidden.thought-leaving {
  transform: translate3d(-86px, -50%, 0);
}

.pos-b {
  right: clamp(24px, 8vw, 124px);
  top: 34vh;
  text-align: right;
}

.pos-c {
  left: clamp(24px, 14vw, 210px);
  bottom: 22vh;
}

.pos-d {
  left: 50%;
  top: 62%;
  width: min(760px, calc(100vw - 48px));
  text-align: center;
  transform: translate3d(-50%, calc(-50% - 44px), 0);
}

.pos-d.thought-visible {
  transform: translate3d(-50%, calc(-50% + 10px), 0);
}

.pos-d.thought-visible.thought-drifting {
  transform: translate3d(-50%, calc(-50% + 30px), 0);
}

.pos-d.thought-hidden {
  transform: translate3d(-50%, calc(-50% - 44px), 0);
}

.pos-d.thought-hidden.thought-leaving {
  transform: translate3d(-50%, calc(-50% + 86px), 0);
}

.pos-e {
  right: clamp(24px, 12vw, 180px);
  bottom: 20vh;
  text-align: right;
}

.pos-f {
  left: 50%;
  top: 42%;
  width: min(620px, calc(100vw - 48px));
  text-align: center;
  transform: translate3d(calc(-50% - 44px), -50%, 0);
}

.pos-f.thought-visible {
  transition:
    opacity var(--fade-duration) cubic-bezier(0.16, 1, 0.3, 1),
    transform calc(var(--fade-duration) * 5) linear,
    filter var(--fade-duration) cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate3d(calc(-50% + 10px), -50%, 0);
}

.pos-f.thought-visible.thought-drifting {
  transform: translate3d(calc(-50% + 30px), -50%, 0);
}

.pos-f.thought-hidden {
  transform: translate3d(calc(-50% - 44px), -50%, 0);
}

.pos-f.thought-hidden.thought-leaving {
  transform: translate3d(calc(-50% + 86px), -50%, 0);
}

.pos-g {
  left: clamp(24px, 8vw, 120px);
  top: 58vh;
}

.pos-center {
  left: 50%;
  top: 50%;
  width: min(860px, calc(100vw - 48px));
  text-align: center;
  transform: translate3d(-50%, -50%, 0);
}

.pos-center.thought-hidden,
.pos-center.thought-visible,
.pos-center.thought-visible.thought-drifting,
.pos-center.thought-hidden.thought-leaving {
  transform: translate3d(-50%, -50%, 0);
}

.slogan {
  left: 50%;
  top: 50%;
  width: min(900px, calc(100vw - 48px));
  text-align: center;
  font-size: clamp(30px, 5.2vw, 88px);
  line-height: 1;
  font-weight: 760;
  transform: translate3d(-50%, -50%, 0);
  text-wrap: balance;
}

.slogan-visible {
  transform: translate3d(-50%, -50%, 0);
}

.slogan-hidden {
  transform: translate3d(-50%, -50%, 0);
}

.brand-title {
  left: 50%;
  top: 50%;
  width: 70vw;
  text-align: center;
  font-size: clamp(64px, 13vw, 210px);
  line-height: 0.82;
  font-weight: 820;
  transform: translate3d(-50%, -50%, 0);
}

.brand-visible {
  transform: translate3d(-50%, -50%, 0);
}

.brand-hidden {
  transform: translate3d(-50%, -50%, 0);
}

.skip-kinematics {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 34px);
  z-index: 4;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(245, 242, 235, 0.56);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: lowercase;
  transform: translateX(-50%);
  cursor: pointer;
  transition: color 180ms ease, opacity 300ms ease, visibility 0ms linear 300ms;
}

.skip-kinematics:hover,
.skip-kinematics:focus-visible {
  color: var(--ink);
}

.home-ready .skip-kinematics {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.contact-panel {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.7fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  padding: clamp(22px, 7vw, 108px);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 900ms var(--ease),
    visibility 0ms linear 900ms;
}

.panel-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0ms;
}

.contact-copy p {
  margin: 0 0 22px;
  color: rgba(216, 246, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 112px);
  line-height: 0.94;
  font-weight: 790;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 13px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 22px;
  border: 1px solid rgba(245, 242, 235, 0.24);
  background: rgba(8, 9, 11, 0.58);
  backdrop-filter: blur(16px);
}

.form-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1;
  font-weight: 820;
  letter-spacing: 0;
}

.field {
  display: grid;
  gap: 6px;
}

.field.pair {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field.pair > div {
  min-width: 0;
}

.field.pair > div {
  display: grid;
  gap: 6px;
}

.field label,
.honeypot {
  color: rgba(245, 242, 235, 0.78);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.field label span {
  color: #d8f6ff;
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(245, 242, 235, 0.24);
  background: rgba(0, 0, 0, 0.38);
  color: var(--ink);
  padding: 12px 13px;
  outline: 0;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: currentColor;
}

.field small {
  min-height: 15px;
  color: var(--danger);
  font-size: 12px;
}

.field.has-error input,
.field.has-error textarea,
.field.pair > div.has-error input {
  border-color: var(--danger);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.submit {
  min-height: 48px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #050505;
  font-weight: 800;
  cursor: pointer;
  opacity: 1;
}

.submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 21px;
  margin: 0;
  font-weight: 760;
}

.form-status.success {
  color: #aaf4bd;
}

.form-status.error {
  color: var(--danger);
}

.site-footer {
  position: fixed;
  left: clamp(22px, 7vw, 108px);
  right: clamp(22px, 7vw, 108px);
  bottom: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(245, 242, 235, 0.48);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: opacity 900ms var(--ease), filter 900ms var(--ease);
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

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

.footer-hidden {
  opacity: 0;
  pointer-events: none;
  filter: blur(8px);
}

.footer-visible {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
}

.legal-body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.legal-page {
  position: relative;
  min-height: 100svh;
  padding: clamp(28px, 6vw, 92px) 24px;
  overflow: hidden;
}

.container {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.legal-card {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 5vw, 72px);
  border: 1px solid rgba(245, 242, 235, 0.16);
  background: rgba(8, 9, 11, 0.54);
  backdrop-filter: blur(16px);
}

.back {
  display: inline-block;
  margin-bottom: clamp(42px, 7vw, 96px);
  color: rgba(245, 242, 235, 0.6);
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
  text-transform: uppercase;
}

.back:hover {
  color: var(--ink);
}

.legal-page h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(52px, 9vw, 132px);
  line-height: 0.88;
  font-weight: 820;
  letter-spacing: 0;
}

.legal-lead {
  max-width: 760px;
  margin: 28px 0 64px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.35;
}

.legal-section {
  max-width: 820px;
  padding: 30px 0;
  border-top: 1px solid rgba(245, 242, 235, 0.14);
}

.legal-section h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1;
}

.legal-section p,
.legal-section li {
  color: rgba(245, 242, 235, 0.68);
  font-size: 16px;
  line-height: 1.7;
}

.legal-section a,
.legal-footer a {
  color: var(--ink);
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 242, 235, 0.14);
  color: rgba(245, 242, 235, 0.52);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.legal-footer nav {
  display: flex;
  gap: 18px;
}

.not-found-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.not-found {
  position: relative;
  z-index: 1;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(112px, 24vw, 360px);
  line-height: 0.8;
  font-weight: 820;
  letter-spacing: 0;
  opacity: 0;
  filter: blur(12px);
  animation: fadeOnly 900ms var(--ease) forwards;
}

.not-found p {
  max-width: 620px;
  margin: 32px auto 0;
  color: rgba(245, 242, 235, 0.64);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.35;
}

.not-found-actions {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.quiet-link {
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
  text-transform: uppercase;
}

@keyframes fadeOnly {
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@media (max-width: 820px) {
  .thought {
    font-size: clamp(32px, 12vw, 62px);
  }

  .pos-a,
  .pos-b,
  .pos-c,
  .pos-d,
  .pos-e,
  .pos-f,
  .pos-g {
    left: 24px;
    right: 24px;
    width: auto;
    max-width: none;
    text-align: left;
  }

  .pos-a {
    top: 50%;
  }

  .pos-a.thought-hidden {
    transform: translate3d(44px, -50%, 0);
  }

  .pos-a.thought-visible {
    transform: translate3d(-10px, -50%, 0);
  }

  .pos-a.thought-visible.thought-drifting {
    transform: translate3d(-30px, -50%, 0);
  }

  .pos-a.thought-hidden.thought-leaving {
    transform: translate3d(-86px, -50%, 0);
  }

  .pos-b {
    top: 38vh;
  }

  .pos-c {
    bottom: 22vh;
  }

  .pos-d {
    top: 62%;
    transform: translate3d(0, calc(-50% - 44px), 0);
  }

  .pos-d.thought-visible {
    transform: translate3d(0, calc(-50% + 10px), 0);
  }

  .pos-d.thought-visible.thought-drifting {
    transform: translate3d(0, calc(-50% + 30px), 0);
  }

  .pos-d.thought-hidden {
    transform: translate3d(0, calc(-50% - 44px), 0);
  }

  .pos-d.thought-hidden.thought-leaving {
    transform: translate3d(0, calc(-50% + 86px), 0);
  }

  .pos-e {
    bottom: 18vh;
  }

  .pos-f {
    top: 42%;
    transform: translate3d(-44px, -50%, 0);
  }

  .pos-f.thought-visible {
    transition:
      opacity var(--fade-duration) cubic-bezier(0.16, 1, 0.3, 1),
      transform calc(var(--fade-duration) * 5) linear,
      filter var(--fade-duration) cubic-bezier(0.16, 1, 0.3, 1);
    transform: translate3d(10px, -50%, 0);
  }

  .pos-f.thought-visible.thought-drifting {
    transform: translate3d(30px, -50%, 0);
  }

  .pos-f.thought-hidden {
    transform: translate3d(-44px, -50%, 0);
  }

  .pos-f.thought-hidden.thought-leaving {
    transform: translate3d(86px, -50%, 0);
  }

  .pos-g {
    top: 56vh;
  }

  .pos-center {
    left: 50%;
    right: auto;
    top: 50%;
    width: min(90vw, 860px);
    max-width: none;
    text-align: center;
    transform: translate3d(-50%, -50%, 0);
  }

  .pos-center.thought-hidden,
  .pos-center.thought-visible,
  .pos-center.thought-visible.thought-drifting,
  .pos-center.thought-hidden.thought-leaving {
    transform: translate3d(-50%, -50%, 0);
  }

  .slogan {
    width: 90vw;
    font-size: clamp(34px, 11vw, 72px);
  }

  .brand-title {
    width: 90vw;
    font-size: clamp(62px, 20vw, 118px);
  }

  .contact-panel {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: start;
    gap: 24px;
    padding: 22px;
    overflow-y: auto;
  }

  .contact-copy h2 {
    font-size: clamp(32px, 10vw, 56px);
  }

  .field.pair {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 17px;
    width: calc(100vw - 44px);
  }

  .site-footer {
    left: 22px;
    right: 22px;
    bottom: 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

@media (max-width: 820px) {
  html {
    scroll-snap-type: none;
  }

  body.home-body {
    overflow: hidden;
  }

  body.home-body:not(.home-ready) {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svh;
  }

  body.home-body.home-ready {
    position: static;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .film,
  .film-stage {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .film-background {
    position: fixed;
  }

  .brand-title {
    width: calc(100vw - 44px);
    max-width: 100%;
    font-size: clamp(58px, 18vw, 92px);
    line-height: 0.9;
    text-align: center;
    white-space: nowrap;
   }

  .skip-kinematics {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 20;
    display: block;
    width: max-content;
  }

  body.home-body.home-ready .skip-kinematics {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
  }

  .contact-panel {
    position: static;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: auto;
    padding: 0 22px;
    gap: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
  }

  .contact-panel.panel-hidden {
    display: none;
  }

  .contact-panel.panel-visible {
    display: flex;
  }

  .contact-copy,
  .contact-form,
  .scan-cue {
    width: 100%;
    min-height: 100svh;
  }

  .contact-copy {
    display: flex;
    align-items: center;
  }

  .contact-copy h2 {
    width: min(100%, 9ch);
    margin: 0;
    font-size: clamp(52px, 14vw, 78px);
    line-height: 0.98;
    overflow-wrap: normal;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 0;
    border: 0;
    background: transparent;
  }

  .form-title {
    font-size: clamp(32px, 9vw, 44px);
  }

  .contact-form input,
  .contact-form textarea {
    min-height: 54px;
  }

  .contact-form textarea {
    min-height: 132px;
  }

  .contact-form .submit {
    min-height: 70px;
  }

  .scan-cue {
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    color: rgba(245, 242, 235, 0.78);
  }

  .scan-cue span {
    max-width: 10ch;
    color: var(--ink);
    font-size: clamp(32px, 9vw, 46px);
    line-height: 1.02;
    text-align: center;
  }

  .scan-cue small {
    color: rgba(245, 242, 235, 0.58);
    font-size: 16px;
  }

  .site-footer {
    position: static;
    padding: 24px 22px 28px;
    opacity: 1;
    visibility: visible;
    transform: none;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .site-footer nav {
    order: 1;
    display: flex;
    justify-content: center;
    gap: 34px;
    width: 100%;
  }

  .site-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
  }

  .site-footer > span {
    order: 2;
    width: 100%;
  }
}

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