:root {
  --bg: #050505;
  --text: #f3f3ef;
  --muted: #94948f;
  --acid: #cfff00;
  --pad: clamp(22px, 4vw, 68px);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 300;
}

.hero {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 42%, rgba(207, 255, 0, .08), transparent 24%),
    linear-gradient(115deg, #050505 0 43%, #090a09 100%);
}

.hero.screen-exit { animation: heroScreenOut .42s cubic-bezier(.3, .78, .28, 1.04) both; }
.hero.screen-return { animation: heroScreenBack .42s cubic-bezier(.3, .78, .28, 1.04) both; }

@keyframes heroScreenOut {
  from { transform: translateX(0); }
  to { transform: translateX(-100vw); }
}

@keyframes heroScreenBack {
  from { transform: translateX(-100vw); }
  to { transform: translateX(0); }
}

.site-header {
  position: absolute;
  z-index: 5;
  top: max(22px, env(safe-area-inset-top));
  left: var(--pad);
}

.site-header,
.hero-copy,
.hero-motto,
.portrait,
.email-cta,
.availability {
  opacity: 0;
  animation: heroReveal .7s cubic-bezier(.22, .8, .24, 1) forwards;
}

.site-header { animation-delay: .05s; }
.hero-copy { animation-delay: .14s; }
.portrait { animation-delay: .22s; }
.hero-motto { animation-delay: .34s; }
.email-cta { animation-delay: .46s; }
.availability { animation-delay: .54s; }

@keyframes heroReveal {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

.site-header img {
  display: block;
  width: clamp(148px, 14vw, 206px);
  height: auto;
}

.hero-motto {
  position: absolute;
  z-index: 6;
  top: max(28px, env(safe-area-inset-top));
  right: max(24px, 2vw);
  width: min(290px, 26vw);
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, .35);
  color: #aaa9a4;
}

.hero-motto::before {
  content: "";
  display: block;
  width: 25px;
  height: 2px;
  margin-bottom: 12px;
  background: var(--acid);
}

.hero-motto p {
  margin: 0;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.45;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.hero-motto cite {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(11px, .85vw, 13px);
  font-weight: 700;
  font-style: normal;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.signature {
  display: block;
  width: min(230px, 100%);
  height: auto;
  margin-top: 7px;
  margin-left: -5px;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: var(--pad);
  width: min(58vw, 820px);
  transform: translateY(-46%);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(46px, 4.5vw, 80px);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.06;
}

h1 em {
  color: var(--acid);
  font-style: normal;
}

.lead {
  max-width: 610px;
  margin: 0;
  color: #b8b8b4;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.55;
}

.experience {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: clamp(28px, 4vh, 48px);
}

.experience strong {
  color: #a2a29d;
  font-size: clamp(44px, 4vw, 62px);
  font-weight: 300;
  line-height: 1;
}

.experience span {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.experience b {
  color: #d0d0cb;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portrait {
  position: absolute;
  z-index: 1;
  right: 2%;
  bottom: 0;
  width: min(62vw, 980px);
  height: 94%;
  transform: translate3d(var(--portrait-x, 0), var(--portrait-y, 0), 0);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #050505 0, transparent 22% 76%, #050505 100%),
    linear-gradient(0deg, #050505 0, transparent 24%);
  z-index: 2;
}

.portrait::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}

.portrait img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  filter: saturate(.75) brightness(.76) contrast(1.14);
}

.hero-ring {
  position: absolute;
  z-index: 0;
  top: -25%;
  left: 36%;
  width: min(53vw, 800px);
  aspect-ratio: 1;
  border: clamp(52px, 7vw, 108px) solid #292929;
  border-radius: 50%;
  opacity: .82;
}

.email-cta {
  position: absolute;
  z-index: 6;
  right: var(--pad);
  top: auto;
  bottom: 98px;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--acid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.arrow {
  position: relative;
  display: grid;
  width: clamp(41px, 4vw, 58px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: var(--bg);
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 300;
  transition: transform .2s ease, box-shadow .2s ease;
}

.arrow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(207, 255, 0, .72);
  border-radius: inherit;
  animation: ctaPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes ctaPulse {
  0%, 30% { opacity: .5; transform: scale(1); }
  75%, 100% { opacity: 0; transform: scale(1.55); }
}

.email-cta:hover .arrow,
.email-cta:focus-visible .arrow {
  transform: scale(1.07);
  box-shadow: 0 0 38px rgba(207, 255, 0, .25);
}

.email-cta:focus-visible { outline: 2px solid var(--acid); outline-offset: 8px; }

.availability {
  position: absolute;
  z-index: 7;
  right: var(--pad);
  bottom: max(22px, env(safe-area-inset-bottom));
  margin: 0;
  color: #777772;
  font-size: clamp(10px, .85vw, 12px);
  letter-spacing: .025em;
  line-height: 1.55;
  text-align: right;
}

.availability-status,
.availability-invite { display: block; }

.availability-status {
  color: #777772;
  font-weight: 500;
}

.availability-invite {
  margin-top: 3px;
  color: #aaa9a4;
  font-weight: 700;
}

.mini-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 5, 5, .97);
  color: var(--text);
}

.mini-dialog::backdrop { background: transparent; }
.mini-dialog[open] { animation: discoveryScreenIn .42s cubic-bezier(.3, .78, .28, 1.04) both; }
.mini-dialog[open].is-closing { animation: discoveryScreenOut .42s cubic-bezier(.3, .78, .28, 1.04) both; }

@keyframes discoveryScreenIn {
  from { transform: translateX(100vw); }
  to { transform: translateX(0); }
}

@keyframes discoveryScreenOut {
  from { transform: translateX(0); }
  to { transform: translateX(100vw); }
}

.mini-shell {
  width: min(760px, calc(100% - 44px));
  min-height: 100%;
  margin: auto;
  padding: 28px 0 48px;
}

.mini-header { display: flex; align-items: center; justify-content: space-between; }
.mini-header img { width: 142px; height: auto; }
.mini-close, .mini-back { border: 0; background: none; color: var(--muted); cursor: pointer; }
.mini-close { padding: 10px 0 10px 20px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.mini-progress { height: 2px; margin: 28px 0 clamp(42px, 8vh, 80px); background: rgba(255, 255, 255, .1); }
.mini-progress i { display: block; width: 25%; height: 100%; background: var(--acid); transition: width .25s ease; }
.mini-step { display: none; }
.mini-step.active { display: block; animation: stepIn .3s ease-out; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mini-label { margin: 0 0 14px; color: var(--acid); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.mini-step h2 { max-width: 680px; margin: 0 0 32px; font-size: clamp(34px, 5vw, 62px); font-weight: 300; line-height: 1.04; }
.mini-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-choices label { cursor: pointer; }
.mini-choices input { position: absolute; opacity: 0; pointer-events: none; }
.mini-choices span { display: block; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .14); color: #c5c5c0; transition: .18s ease; }
.mini-choices input:checked + span { border-color: var(--acid); background: rgba(207, 255, 0, .08); color: var(--acid); }
.mini-choices input:focus-visible + span { outline: 2px solid var(--acid); outline-offset: 3px; }
.mini-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; }
.mini-next, .mini-submit, .mini-done { border: 0; background: var(--acid); color: #050505; padding: 14px 19px; font-weight: 700; cursor: pointer; }
.mini-fields { display: grid; gap: 18px; }
.mini-fields.two-cols { grid-template-columns: 1fr 1fr; }
.mini-fields .wide { grid-column: 1 / -1; }
.mini-fields label { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.mini-fields small { color: #666; }
.mini-fields input, .mini-fields textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid rgba(255, 255, 255, .14); background: #0d0e0f; color: var(--text); padding: 13px 14px; resize: vertical; }
.mini-fields input:focus, .mini-fields textarea:focus { outline: 2px solid var(--acid); border-color: transparent; }
.honeypot { position: absolute; left: -9999px; }
.mini-status { min-height: 20px; margin: 16px 0 0; color: #ff8b84; font-size: 13px; }
.mini-status.is-note { color: var(--acid); }
.mini-success p:not(.mini-label) { max-width: 570px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.mini-done { margin-top: 18px; }
body:has(.mini-dialog[open]) { overflow: hidden; }

@media (max-width: 820px) {
  .hero-motto {
    top: 24px;
    right: 20px;
    width: 160px;
    padding-left: 12px;
  }

  .hero-motto::before { margin-bottom: 7px; }
  .hero-motto p { font-size: 9px; }
  .hero-motto cite { margin-top: 6px; font-size: 8px; }
  .signature { width: 135px; margin-top: 4px; }

  .hero-copy {
    top: 43%;
    width: calc(100% - 44px);
    transform: translateY(-50%);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(36px, 10vw, 52px);
    line-height: 1.04;
  }

  h1 br { display: none; }
  h1 em { display: block; font-size: .92em; }
  .lead { max-width: 92%; font-size: 14px; }
  .experience { max-width: 76%; gap: 16px; }
  .experience span { padding-left: 16px; font-size: 11px; }
  .portrait { right: -33%; width: 120%; height: 58%; opacity: .67; }
  .portrait::after { background: linear-gradient(90deg, #050505 0, transparent 30%), linear-gradient(0deg, #050505 0, transparent 24%); }
  .hero-ring { top: 6%; left: 45%; width: 78vw; }

  .email-cta {
    right: 48px;
    top: auto;
    bottom: 118px;
    transform: none;
  }

  .arrow { width: 42px; }
  .email-cta > span:last-child { white-space: nowrap; font-size: 9px; }
  .availability { left: auto; right: 22px; bottom: 20px; width: 250px; max-width: calc(100% - 44px); font-size: 9px; }

  .mini-shell { width: min(100% - 32px, 760px); padding-top: 18px; }
  .mini-progress { margin: 20px 0 38px; }
  .mini-step h2 { margin-bottom: 24px; font-size: clamp(32px, 10vw, 46px); }
  .mini-choices, .mini-fields.two-cols { grid-template-columns: 1fr; }
  .mini-fields .wide { grid-column: auto; }

}

@media (max-height: 680px) and (min-width: 821px) {
  .hero-copy { transform: translateY(-42%); }
  .eyebrow { margin-bottom: 14px; }
  h1 { margin-bottom: 16px; font-size: clamp(42px, 4vw, 64px); }
  .experience { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .hero-copy,
  .hero-motto,
  .portrait,
  .email-cta,
  .availability { opacity: 1; animation: none; translate: none; }
  .portrait { transform: none; transition: none; }
  .arrow { transition: none; }
  .arrow::after { animation: none; display: none; }
  .hero.screen-exit, .hero.screen-return, .mini-dialog[open], .mini-step.active { animation: none; }
}
