/* 7FEM attendee intake. Alex's brand sheet (12/2/2026): Midnight Navy, Champagne Gold as a gradient, Warm Gold,
   Slate Blue, Stone. Montserrat for headlines, Lato for reading. His attendee site's darker navy (#01111E) is the
   ground, so stepping from his site into this page feels like one place. Light text is a cool white. */
:root {
  --deep: #01111E;
  --navy: #0B1F3B;
  --navy-2: #122A4F;
  --slate: #2E4A67;
  --stone: #96A3AF;
  --ink: #EEF1F5;
  --ink-2: rgba(238, 241, 245, .78);
  --ink-3: rgba(238, 241, 245, .56);
  --gold: #D4AF37;
  --gold-2: #F2D289;
  --gold-hair: rgba(212, 175, 55, .38);
  --gold-bar: linear-gradient(90deg, #B8860B 0%, #D4AF37 16%, #F2D289 50%, #D4AF37 84%, #B8860B 100%);
  --gold-fill: linear-gradient(180deg, #F9E3A6 0%, #F2D289 24%, #E9C05E 58%, #D4AF37 82%, #B8860B 100%);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--deep);
  color: var(--ink);
  font: 400 18px/1.6 Lato, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, a, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* The navy glow sits on its own fixed layer. iPhone Safari ignores a fixed body background and stretches it down a tall page. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 80% at 50% 18%, var(--navy-2) 0%, var(--navy) 38%, var(--deep) 100%); }
#dust { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.skyline {
  position: fixed; left: 0; right: 0; bottom: 0; height: 46vh; z-index: 0; pointer-events: none;
  background: url(assets/skyline.jpg) center bottom / cover no-repeat;
  opacity: .32;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%);
  transition: opacity 900ms var(--ease-out);
}
body.inside .skyline { opacity: 0; }
main { position: relative; z-index: 1; }
/* Film grain at about 5%, the same touch Alex's guest invite page uses. */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Type */
.kicker {
  margin: 0; font: 600 12px/1.4 Montserrat, sans-serif; letter-spacing: .32em; color: var(--gold);
}
h1, h2 { font-family: Montserrat, sans-serif; color: var(--ink); margin: 0; }
.small { font-size: 14px; color: var(--ink-3); margin: 14px 0 0; text-wrap: balance; }

/* Buttons. Square corners like the gold frames on Alex's site. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border: 0; border-radius: 2px;
  background: var(--gold-bar); background-size: 140% 100%; background-position: 0 0;
  color: var(--deep); font: 700 14px/1 Montserrat, sans-serif; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(212, 175, 55, .55);
  transition: transform 140ms var(--ease-out), background-position 260ms var(--ease-out), box-shadow 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold-hair); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { background: none; border: 0; padding: 8px 0; color: var(--ink-3); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(238,241,245,.25); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background-position: 100% 0; box-shadow: 0 14px 36px -12px rgba(212, 175, 55, .7); }
  .btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); }
  .link:hover { color: var(--ink); }
}
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* Screens */
.screen { min-height: 100vh; min-height: 100dvh; padding: calc(28px + var(--safe-t)) 24px calc(32px + var(--safe-b)); }
.screen.fade-in { animation: rise 280ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 1. Arrival */
.arrival { display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.arrival .kicker { padding-top: 6px; }
.arrival-foot { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: 4vh; opacity: 0; transition: opacity 600ms var(--ease-out); }
.arrival-foot.on { opacity: 1; }
.when { margin: 0; font: 500 15px/1.5 Montserrat, sans-serif; letter-spacing: .06em; color: var(--ink-2); }
.from { margin: 0; font-size: 14px; color: var(--ink-3); text-wrap: balance; }
.guest { display: grid; gap: 8px; width: min(320px, 82vw); text-align: left; }
.guest label { font: 600 11px Montserrat, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--stone); }
.guest input { background: transparent; border: 0; border-bottom: 1px solid var(--gold-hair); padding: 8px 0 10px; font-size: 22px; outline: none; border-radius: 0; }
.guest input:focus { border-bottom-color: var(--gold); }
.guest-note { margin: 2px 0 0; font: 400 14px/1.45 Lato, sans-serif; color: var(--ink-2); text-wrap: balance; }
/* Empty until it has a message, but kept in the accessibility tree so the message is announced. */
.guest-note:empty { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }

/* 2. Welcome */
.welcome { display: flex; flex-direction: column; align-items: center; text-align: center; }
.welcome-copy { margin-top: 52vh; margin-top: 52svh; max-width: 600px; opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.welcome-copy.on { opacity: 1; transform: none; }
.welcome-copy .lead { font: 600 21px/1.45 Montserrat, sans-serif; color: var(--ink); margin: 0 0 14px; }
.welcome-copy p { color: var(--ink-2); margin: 0 0 14px; }
.welcome-copy .sign { font-style: italic; color: var(--gold-2); margin-bottom: 28px; }
.start-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.start-row [hidden] { display: none; }

/* Bar */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 5; padding-top: var(--safe-t); background: linear-gradient(to bottom, rgba(1,17,30,.92), rgba(1,17,30,.6) 70%, rgba(1,17,30,0)); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px 12px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 11px Montserrat, sans-serif; letter-spacing: .26em; color: var(--ink-2); }
.bar-right { display: flex; align-items: center; gap: 16px; font: 500 13px Montserrat, sans-serif; letter-spacing: .04em; color: var(--ink-2); }
.saved { color: var(--stone); opacity: 0; transition: opacity 240ms var(--ease-out); }
.saved.on { opacity: 1; }
.progress { height: 2px; background: rgba(150,163,175,.14); max-width: 1180px; margin: 0 24px; }
@media (min-width: 1228px) { .progress { margin: 0 auto; } }
.progress i { display: block; height: 100%; width: 0; background: var(--gold-bar); transition: width 260ms var(--ease-out); }

/* 3. Intake */
.intake { padding-top: calc(108px + var(--safe-t)); display: flex; justify-content: center; }
.stage { width: 100%; max-width: 760px; position: relative; }
.step { animation: stepIn 260ms var(--ease-out) both; }
.step.out { animation: stepOut 160ms var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes stepOut { to { opacity: 0; transform: translateY(-8px); } }

.q-part { margin: 0 0 18px; font: 600 12px/1.4 Montserrat, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.q-title { font: 600 clamp(25px, 3.3vw, 36px)/1.25 Montserrat, sans-serif; letter-spacing: -.005em; text-wrap: balance; }
.q-desc { margin: 14px 0 0; color: var(--ink-2); font-size: 18px; max-width: 62ch; text-wrap: pretty; }
.q-note { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font-style: italic; color: var(--gold-2); font-size: 16px; }
.q-note::before { content: ""; width: 28px; height: 1px; background: var(--gold-bar); flex: none; }
.q-body { margin-top: 30px; }

textarea, .field input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--gold-hair); border-radius: 0;
  padding: 10px 0 12px; font-size: 20px; line-height: 1.55; color: var(--ink); outline: none; resize: none;
  transition: border-color 200ms var(--ease-out);
}
textarea { min-height: 120px; overflow: hidden; }
textarea:focus, .field input:focus { border-bottom-color: var(--gold); }
textarea:focus-visible, .field input:focus-visible, .guest input:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--gold); }
::placeholder { color: rgba(150,163,175,.55); }
.field { display: grid; gap: 6px; margin-bottom: 26px; }
.field label { font: 600 11px Montserrat, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--stone); }

.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 14px; }
.tool { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 0; color: var(--gold-2); font: 600 13px Montserrat, sans-serif; letter-spacing: .06em; }
.tool svg { width: 16px; height: 16px; flex: none; }
.tool[aria-pressed="true"] { color: var(--ink); }
.tool .dot { width: 8px; height: 8px; border-radius: 50%; background: #E35D5D; display: none; }
.tool[aria-pressed="true"] .dot { display: inline-block; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.heard { color: var(--ink-3); font-size: 15px; font-style: italic; min-height: 1.2em; margin: 6px 0 0; }
@media (hover: hover) and (pointer: fine) { .tool:hover { color: var(--ink); } }

.help { margin-top: 12px; padding: 18px 20px; border-left: 1px solid var(--gold); background: linear-gradient(90deg, rgba(212,175,55,.07), rgba(212,175,55,0)); animation: stepIn 220ms var(--ease-out) both; }
.help ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.help li { color: var(--ink-2); font-size: 16px; padding-left: 18px; position: relative; }
.help li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--gold); }
.help .ex { margin: 12px 0 0; color: var(--ink-3); font-size: 15px; font-style: italic; }

.choices { display: grid; gap: 10px; }
.choices.chips { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 12px 16px; text-align: left;
  background: rgba(238,241,245,.025); border: 1px solid rgba(150,163,175,.24); border-radius: 2px; color: var(--ink); font-size: 17px; line-height: 1.35;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.choice .box { width: 18px; height: 18px; flex: none; border: 1px solid rgba(150,163,175,.55); border-radius: 1px; display: grid; place-items: center; transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.choice.radio .box { border-radius: 50%; }
.choice .box::after { content: ""; width: 8px; height: 8px; background: var(--deep); border-radius: inherit; opacity: 0; transform: scale(.4); transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.choice[aria-checked="true"], .choice[aria-pressed="true"] { border-color: var(--gold); background: rgba(212,175,55,.09); }
.choice[aria-checked="true"] .box, .choice[aria-pressed="true"] .box { background: var(--gold-fill); border-color: var(--gold-2); }
.choice[aria-checked="true"] .box::after, .choice[aria-pressed="true"] .box::after { opacity: 1; transform: none; }
.choice:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .choice:hover { border-color: rgba(212,175,55,.6); } }
.other-in { margin-top: 14px; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; padding-bottom: 40px; }
.nav .link { white-space: nowrap; }
.nav .hint { font-size: 13px; color: var(--ink-3); }
.err { color: var(--gold-2); font-size: 15px; margin: 10px 0 0; }

/* Part opener */
.opener { padding-top: 6vh; }
.opener .count { margin: 0 0 16px; font: 600 12px Montserrat, sans-serif; letter-spacing: .3em; color: var(--stone); text-transform: uppercase; }
.opener h2 { font: 700 clamp(32px, 5vw, 56px)/1.1 Montserrat, sans-serif; text-wrap: balance; }
.opener .rule { width: 72px; height: 2px; background: var(--gold-bar); margin: 26px 0; }
.opener p { color: var(--ink-2); font-size: 19px; max-width: 56ch; margin: 0; }

/* Finish the sentence */
.sentence-lead { font: 600 clamp(22px, 2.8vw, 30px)/1.35 Montserrat, sans-serif; color: var(--ink-2); margin: 0; }
.sentence textarea { font: 600 clamp(22px, 2.8vw, 30px)/1.4 Montserrat, sans-serif; color: var(--gold-2); min-height: 110px; }

/* Live card on HAVE and WANT */
.card-live { margin-top: 30px; display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.card-live canvas { width: 180px; height: auto; display: block; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.card-live p { margin: 0; color: var(--ink-3); font-size: 15px; }
.q-body { position: relative; display: flex; flex-direction: column; }
.q-body > .card-live { order: 9; }
@media (min-width: 1220px) {
  .card-live { position: absolute; top: 0; left: calc(100% + 56px); width: 250px; margin: 0; display: block; }
  .card-live canvas { width: 250px; margin-bottom: 14px; }
}

/* Send */
.send h2 { font: 700 clamp(28px, 4vw, 44px)/1.15 Montserrat, sans-serif; }
.send p { color: var(--ink-2); max-width: 56ch; }

/* 4. Done */
.done { padding-top: calc(190px + var(--safe-t)); display: flex; justify-content: center; }
.done-in { width: 100%; max-width: 860px; text-align: center; }
.done h1 { font: 700 clamp(32px, 5vw, 54px)/1.12 Montserrat, sans-serif; margin: 16px 0 14px; text-wrap: balance; }
.done-sub { color: var(--ink-2); margin: 0 auto 44px; max-width: 52ch; }
.prep { display: grid; gap: 18px; text-align: left; }
.prep-item { position: relative; padding: 28px 30px; border: 1px solid var(--gold-hair); background: linear-gradient(180deg, rgba(18,42,79,.55), rgba(1,17,30,.55)); }
.prep-item h2 { text-wrap: balance; font: 600 13px/1.5 Montserrat, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.prep-item blockquote { margin: 0; font-size: 20px; line-height: 1.6; color: var(--ink); white-space: pre-line; }
.prep-item p { color: var(--ink-2); margin: 0 0 20px; }
/* The badge on its lanyard (lanyard.js sets --cw, the card width, and the stage height). */
.badge-stage { position: relative; margin: 4px -30px 0; overflow: hidden; user-select: none; -webkit-user-select: none; height: 560px; }
.badge-rope { position: absolute; left: 0; top: 0; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px); mask-image: linear-gradient(to bottom, transparent 0, #000 70px); }
.badge { position: absolute; left: 0; top: 0; transform-origin: 50% 0; cursor: grab; touch-action: pan-y; will-change: transform; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; outline: none; }
.badge.grabbing { cursor: grabbing; }
.badge:focus-visible .badge-face { box-shadow: 0 0 0 2px var(--gold), 0 22px 44px -14px rgba(0,0,0,.65); }
.badge-clip { position: absolute; left: 50%; top: 0; z-index: 2; width: calc(var(--cw) * .075); height: calc(var(--cw) * .15); transform: translateX(-50%); border-radius: calc(var(--cw) * .02); background: linear-gradient(90deg, #FBE7B0, #B8860B 50%, #F2D289); box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.badge-inner { position: absolute; left: 0; right: 0; pointer-events: none; /* every press lands on .badge */ transform-style: preserve-3d; -webkit-transform-style: preserve-3d; }
.badge-face { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--cw) * .05); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 22px 44px -14px rgba(0,0,0,.65), 0 2px 6px rgba(0,0,0,.3); }
/* lanyard.js also hides the face turned away from the viewer, because Safari can paint a hidden back face anyway. */
.badge-back { transform: rotateY(180deg); background: var(--deep); }
.badge-back canvas { display: block; width: 100%; height: 100%; }
.badge-slot { position: absolute; top: calc(var(--cw) * .045); left: 50%; width: calc(var(--cw) * .2); height: calc(var(--cw) * .035); transform: translateX(-50%); border-radius: 999px; background: rgba(0,0,0,.45); box-shadow: inset 0 1px 2px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.08); }
.badge-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%) var(--shine, 50%) 0 / 250% 100% no-repeat, rgba(0,0,0,var(--dim, 0)); }
/* The front is the printed 7FEM Austin name tag Alex sent on 12/4 (1024 by 1536, used as is). The name sits in
   its empty space under the gold chevron, 82% to 97% of the height, inside its gold frame. */
.badge-front { color: var(--ink); background: var(--deep); }
.bf-tag { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bf-who { position: absolute; left: 7%; right: 7%; top: 82.4%; bottom: 3.2%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.bf-who .bf-first { margin: 0; font: 700 calc(var(--cw) * .094 * var(--fit, 1))/1.02 Montserrat, sans-serif; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.bf-who .bf-last { margin: calc(var(--cw) * .004) 0 0; font: 600 calc(var(--cw) * .044 * var(--wfit, 1))/1.15 Montserrat, sans-serif; color: var(--ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bf-who .bf-co { margin: calc(var(--cw) * .01) 0 0; font: 400 calc(var(--cw) * .038 * var(--wfit, 1))/1.3 Lato, sans-serif; color: var(--gold-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
/* The name lines keep their height; app.js shrinks the type instead when a long name needs the room. */
.bf-who > * { flex-shrink: 0; } /* the .bf-who prefix above outranks the prep card's paragraph margins */
.bf-co[hidden], .bf-last[hidden] { display: none; }
.badge-hint { text-align: center; font-size: 14px; color: var(--ink-3); margin: 6px 0 18px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.walkaway { margin: 56px auto 0; max-width: 720px; }
.walk-lead { text-wrap: balance; font: 500 18px/1.5 Montserrat, sans-serif; color: var(--ink-3); margin: 0 0 10px; }
.walk-answer { font: 600 clamp(24px, 3.2vw, 34px)/1.35 Montserrat, sans-serif; color: var(--gold-2); margin: 0; text-wrap: balance; }
.next { margin: 64px auto 40px; padding-top: 40px; border-top: 1px solid rgba(150,163,175,.18); max-width: 620px; }
.next h2 { font: 600 13px Montserrat, sans-serif; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); margin-bottom: 18px; }
.next ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; color: var(--ink-2); }
.next a.tel { color: var(--gold-2); white-space: nowrap; }

@media (max-width: 699px) {
  body { font-size: 17px; }
  .screen { padding-left: 20px; padding-right: 20px; }
  .bar-in { padding: 12px 20px 10px; }
  .brand span { display: none; }
  .progress { margin: 0 20px; }
  .intake { padding-top: calc(84px + var(--safe-t)); }
  .welcome-copy { margin-top: 31vh; margin-top: 31svh; }
  .welcome-copy .lead { font-size: 18px; }
  .welcome-copy p { margin-bottom: 12px; }
  .welcome-copy .sign { margin-bottom: 20px; }
  .kicker .wide { display: none; }
  .choices.chips { grid-template-columns: 1fr; }
  .card-live { grid-template-columns: 120px 1fr; gap: 14px; }
  .card-live canvas { width: 120px; }
  .nav .hint { display: none; }
  .nav .btn { flex: 1; }
  .done { padding-top: calc(150px + var(--safe-t)); }
  .prep-item { padding: 22px 20px; }
  .badge-stage { margin-left: -20px; margin-right: -20px; }
  .prep-item blockquote { font-size: 18px; }
  .row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  /* transition: none, not a 1 ms duration: a duration alone makes every property change a 1 ms transition (font size
     included), so any measurement taken right after a change reads the old value. That shrank badge names. */
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
