:root {
  --paper: #f8f7fa;
  --ink: #2b223a;
  --muted: #71677d;
  --purple: #74549a;
  --deep: #443056;
  --line: rgba(88, 65, 116, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; background: var(--paper); }
body { min-width: 280px; min-height: 100svh; display: flex; flex-direction: column; color: var(--ink); font-family: Inter, system-ui, sans-serif; overflow-x: clip; }
button, input { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
::selection { background: #ded0eb; color: #30203e; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 5px; }
.skip-link { position: fixed; left: 24px; top: 16px; z-index: 200; padding: 12px 20px; background: white; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* A quiet, bounded brand introduction. It can never lock the page. */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: #f5f1f9; pointer-events: none; animation: loader-out .7s var(--ease) 1.05s forwards; }
.loader-inner { display: flex; flex-direction: column; align-items: center; position: relative; animation: loader-in .65s var(--ease) both; }
.loader-inner img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 21px; }
.loader-wordmark { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .09em; }
.loader-wordmark > span { color: var(--purple); }
.loader-line { height: 1px; width: 150px; margin-top: 28px; background: #e2d9e9; overflow: hidden; }
.loader-line::after { content: ''; display: block; width: 100%; height: 100%; background: #8a6bab; transform-origin: left; animation: loader-line 1s var(--ease) both; }
@keyframes loader-in { from { opacity: 0; transform: translateY(10px); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes loader-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* Real flowing noise is progressively enhanced with WebGL; the CSS layer
   remains a complete, animated fallback when a GPU context is unavailable. */
.atmosphere { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--paper); }
.mist { position: absolute; inset: -12%; overflow: hidden; }
.mist i { position: absolute; background: url('clouds.svg') center / 100% 100% no-repeat; width: 105%; height: 115%; filter: blur(.7px); opacity: .55; animation: cloud-drift 18s ease-in-out infinite alternate; will-change: transform; }
.mist i:nth-child(1) { right: -19%; top: -10%; }
.mist i:nth-child(2) { right: -34%; top: -20%; opacity: .32; animation-duration: 24s; animation-delay: -12s; }
.mist i:nth-child(3) { left: -58%; bottom: -43%; opacity: .16; animation-duration: 21s; animation-delay: -9s; }
@keyframes cloud-drift { from { transform: translate3d(-3%, -2%, 0) scale(1.02); } to { transform: translate3d(6%, 5%, 0) scale(1.12); } }
#watersmoke { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
#watersmoke.is-active { opacity: .94; }
.atmosphere-light { position: absolute; inset: 0; background: radial-gradient(ellipse at 44% 44%, rgba(250,249,252,.62) 0%, rgba(250,249,252,.18) 34%, transparent 67%); }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .024; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.7' filter='url(%23n)'/%3E%3C/svg%3E"); }
body { isolation: isolate; }

header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 33px clamp(24px, 5vw, 80px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand b { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .035em; }
.brand em { color: var(--purple); font-style: normal; }

main { flex: 1; width: 100%; position: relative; z-index: 1; display: grid; place-items: center; padding: clamp(64px, 9vh, 112px) 24px clamp(76px, 12vh, 145px); text-align: center; }
.main-in { width: 100%; max-width: 1060px; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; color: #836b9c; margin-bottom: 31px; }
.eyebrow::before, .eyebrow::after { content: ''; width: 24px; height: 1px; background: #bca8ce; opacity: .65; }
h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(44px, 6.3vw, 90px); font-weight: 500; line-height: 1.075; letter-spacing: -.06em; margin: 0 0 27px; }
h1 .serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -.035em; color: var(--purple); }
.sub { color: var(--muted); font-size: clamp(14px, 1.25vw, 16px); line-height: 1.85; max-width: 455px; margin: 0 auto 41px; text-wrap: pretty; }

/* A single clear action, framed by a fine border rather than a card. */
.form-wrap { width: 100%; max-width: 560px; }
form { display: flex; flex-direction: column; align-items: stretch; }
.field-label { font-size: 11px; line-height: 1.5; font-weight: 500; color: #796b86; margin-bottom: 12px; }
.pill { display: flex; align-items: center; gap: 12px; height: 66px; padding: 6px 6px 6px 19px; background: rgba(255,255,255,.78); border: 1px solid #d9cfe3; border-radius: 12px; box-shadow: 0 3px 6px #53327603, 0 12px 35px -15px #53327626; transition: border-color .25s, box-shadow .25s; }
.pill:hover { border-color: #bfa8d0; }
.pill:focus-within { border-color: #9d7db9; box-shadow: 0 0 0 4px #a385bb13, 0 12px 36px -16px #53327633; }
.mail-icon { color: #a08bb1; flex: none; }
.email { border: 0; outline: none; min-width: 0; width: 100%; flex: 1; align-self: stretch; background: transparent; color: var(--ink); font-size: 14px; }
.email::placeholder { color: #95889f; opacity: 1; }
.email:focus-visible { outline: 0; }
.email[aria-invalid="true"] { color: #a23354; }
.pill:has(.email[aria-invalid="true"]) { border-color: #b95775; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 15px; position: relative; flex: none; height: 52px; padding: 0 21px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; color: #fff; background: var(--deep); box-shadow: 0 2px 3px #38234415, inset 0 1px 0 #ffffff12; font-size: 12px; font-weight: 500; letter-spacing: .01em; cursor: pointer; transition: background .25s, box-shadow .25s, transform .25s var(--ease); }
.cta:hover { background: #573d6e; box-shadow: 0 5px 14px -5px #44305655; }
.cta:active { transform: translateY(1px); }
.cta-arrow { transition: transform .3s var(--ease); }
.cta:hover .cta-arrow { transform: translateX(3px); }
.cta:disabled { cursor: progress; opacity: .75; transform: none; }
.cta-spinner { display: none; width: 16px; height: 16px; border: 1.5px solid #ffffff45; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.cta[aria-busy="true"] .cta-spinner { display: block; }
.cta[aria-busy="true"] .cta-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.consent { display: flex; align-items: flex-start; justify-content: center; position: relative; gap: 9px; margin: 17px auto 0; max-width: 485px; font-size: 10px; line-height: 1.8; color: #7a6f84; text-align: left; cursor: pointer; }
.consent input { position: absolute; top: 0; left: 0; width: 16px; height: 16px; opacity: 0; cursor: pointer; }
.box { flex: none; width: 15px; height: 15px; margin-top: 2px; display: grid; place-items: center; border: 1px solid #b5a5c3; border-radius: 4px; background: #ffffff80; transition: background .2s, border-color .2s; }
.box svg { width: 10px; height: 10px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.consent input:checked + .box { background: var(--purple); border-color: var(--purple); }
.consent input:checked + .box svg { opacity: 1; transform: none; }
.consent input:focus-visible + .box { outline: 2px solid var(--purple); outline-offset: 3px; }
.consent input[aria-invalid="true"] + .box { border-color: #ad4163; }
.consent a { color: #665574; text-decoration-color: #b3a4bf; text-underline-offset: 3px; transition: color .2s; }
.consent a:hover { color: #3c284e; }
.msg { min-height: 23px; padding-top: 10px; font-size: 12px; line-height: 1.6; }
.msg.err { color: #a23354; }
.msg.info { color: var(--muted); }
.success { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 16px 24px; border: 1px solid #d9cfe3; background: #ffffff66; border-radius: 12px; }
.success[hidden] { display: none; }
.success .ring { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #cbb7dc; border-radius: 50%; color: var(--purple); background: #ebe2f280; animation: success-in .5s var(--ease); }
.success h2 { font-family: 'Space Grotesk', sans-serif; font-size: 25px; font-weight: 500; letter-spacing: -.04em; }
.success p { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 350px; }
@keyframes success-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
footer { position: relative; z-index: 1; padding: 0 clamp(24px, 5vw, 80px) 28px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 23px; border-top: 1px solid var(--line); color: #897c95; font-size: 10px; line-height: 1.6; }
.foot-in nav { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; }
.foot-in nav a { color: #786984; text-decoration: none; }
.foot-in nav a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 4px; }
.foot-in nav > span { color: #baacc7; }
.noscript-note { text-align: center; padding: 16px 24px; font-size: 12px; color: var(--muted); }
.js .rv { animation: reveal 1s var(--ease) both; animation-delay: calc(.75s + var(--order, 0) * .095s); }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (min-width: 1600px) { main { padding-top: 11vh; padding-bottom: 16vh; } }
/* A portrait phone uses its available height instead of desktop-sized gutters.
   No overflow:hidden lock: zoom, the keyboard and validation remain accessible. */
@media (max-width: 700px) {
  body { min-height: 100svh; }
  header { flex: none; padding: clamp(14px, 2.4svh, 24px) 22px 12px; padding-top: max(14px, env(safe-area-inset-top)); }
  .brand { gap: 9px; }
  .brand img { width: 30px; height: 30px; }
  .brand b { font-size: 13px; }
  main { min-height: 0; padding: 12px 22px 18px; }
  .main-in { max-width: 480px; }
  .eyebrow { font-size: 9px; line-height: 14px; margin-bottom: clamp(16px, 2.6svh, 25px); }
  h1 { font-size: clamp(32px, 8.5vw, 51px); line-height: 1.10; letter-spacing: -.055em; margin-bottom: clamp(15px, 2.4svh, 23px); }
  .sub { font-size: 13px; line-height: 1.65; max-width: 355px; margin-bottom: clamp(20px, 3.2svh, 30px); }
  .form-wrap { max-width: 430px; }
  .field-label { font-size: 11px; line-height: 16px; margin-bottom: 10px; }
  .pill { height: auto; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0 11px; padding: 6px; border-radius: 13px; }
  .mail-icon { margin-left: 12px; }
  .email { height: 47px; font-size: 16px; padding-left: 11px; padding-right: 11px; }
  .cta { grid-column: 1 / -1; width: 100%; margin-top: 3px; height: 47px; font-size: 12px; }
  .consent { margin-top: 13px; font-size: 10px; line-height: 1.65; gap: 9px; }
  .box { width: 16px; height: 16px; }
  .msg { min-height: 20px; padding-top: 7px; font-size: 11px; }
  footer { flex: none; padding: 0 22px max(13px, env(safe-area-inset-bottom)); }
  .foot-in { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding-top: 12px; font-size: 9px; line-height: 1.5; }
  .foot-in nav { justify-content: center; gap: 8px; }
  .success { padding: 15px; gap: 11px; }
}
@media (max-width: 700px) and (max-height: 690px) {
  header { padding-bottom: 8px; }
  main { padding-top: 6px; padding-bottom: 10px; }
  .eyebrow { margin-bottom: 13px; }
  h1 { font-size: clamp(29px, 8vw, 43px); margin-bottom: 13px; }
  .sub { font-size: 12px; line-height: 1.6; margin-bottom: 17px; }
  .field-label { margin-bottom: 8px; }
  .email { height: 44px; }
  .cta { height: 44px; }
  .consent { margin-top: 10px; }
  .foot-in { padding-top: 9px; }
}
@media (max-width: 700px) and (max-height: 570px) {
  header { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 6px; }
  .brand img { width: 25px; height: 25px; }
  main { padding-top: 4px; padding-bottom: 6px; }
  .eyebrow { margin-bottom: 9px; }
  h1 { font-size: clamp(27px, 7.8vw, 37px); margin-bottom: 10px; }
  .sub { margin-bottom: 13px; }
  .consent { margin-top: 8px; }
  footer { padding-bottom: max(9px, env(safe-area-inset-bottom)); }
}
@media (max-width: 340px) {
  header, main { padding-left: 17px; padding-right: 17px; }
  .brand b { font-size: 12px; }
  h1 { font-size: 28px; }
  .sub { font-size: 12px; }
  .foot-in nav { column-gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .loader { display: none; }
  .rv { opacity: 1; transform: none; }
  .cta:hover .cta-arrow, .cta:active { transform: none; }
}
