:root {
  --background: #0f0e12;
  --surface: rgba(27, 25, 33, 0.92);
  --surface-strong: #24212a;
  --text: #f7f4ee;
  --muted: #a7a1ad;
  --line: rgba(255, 255, 255, 0.09);
  --control-border: #eddfc6;
  --control-surface: #cdbd9d;
  --control-hover: #ded0b7;
  --control-ink: #172f3c;
  --accent: #ff6b3d;
  --accent-soft: rgba(217, 191, 133, 0.15);
  --action: #C9653B;
  --button-text: #fff;
  --radius: 28px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.contact-help { margin: 10px 28px; color: #c6ced3; font-size: 13px; line-height: 1.5; }
.button { text-decoration: none; text-align: center; }
.camera-help, .video-pending { padding: 14px; color: var(--text); background: var(--accent-soft); border-radius: 14px; font-size: 13px; line-height: 1.5; }
.native-actions { display: grid; gap: 8px; margin-top: 12px; }
.camera-stage img, .camera-stage video[data-playback] { transform: none; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(102, 83, 119, 0.22), transparent 38%),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.ambient {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.14;
}

.ambient-one { top: -140px; right: -120px; background: var(--accent); }
.ambient-two { bottom: -180px; left: -160px; background: #2e6f7e; }

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 18px;
}

.card {
  width: min(100%, 560px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(20px);
}

.card-topline,
.identity,
.headline,
.primary-actions,
.quick-links,
.meet-button,
.video-section,
.services-section,
footer { margin-left: 28px; margin-right: 28px; }

.card-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 120px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.brand-logo { display: block; width: min(76%, 260px); height: auto; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #73d69d;
  box-shadow: 0 0 0 5px rgba(115, 214, 157, 0.1);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 2px solid var(--control-border);
  border-radius: 12px;
  background: var(--control-surface);
  color: var(--control-ink);
  cursor: pointer;
}

.icon-button svg { width: 21px; fill: currentColor; }
.icon-button:hover { background: var(--control-hover); border-color: var(--accent); }

.identity {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 24px;
  align-items: center;
  padding-top: 32px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 106px;
  aspect-ratio: 1;
  border-radius: 31px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), transparent 48%),
    var(--accent);
  color: var(--button-text);
  font-size: 30px;
  font-weight: 760;
  letter-spacing: -1px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 18px 45px var(--accent-soft);
}

.eyebrow,
.location,
.role,
.headline { margin-top: 0; }

.eyebrow {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(25px, 5.5vw, 34px);
  line-height: 1.14;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
}

.role { margin: 8px 0 0; color: #d6d1d9; font-size: 15px; }
.location { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.headline {
  margin-top: 28px;
  margin-bottom: 0;
  color: #e5e0e7;
  font-size: 17px;
  line-height: 1.55;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 16px;
  color: #fff;
  font-weight: 680;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, background .16s ease;
}

.button:active { transform: scale(.98); }
.button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--action); border-color: #e7a082; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.15); }
.button-primary:hover { filter: brightness(1.08); }
.button-secondary { border-color: var(--control-border); background: var(--control-surface); color: var(--control-ink); box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.button-secondary:hover { background: var(--control-hover); border-color: var(--accent); }
.save-contact { grid-column: 1 / -1; font-size: 19px; font-weight: 750; min-height: 56px; }
.save-summary { grid-column: 1 / -1; margin: -1px 0 5px; color: #c6ced3; font-size: 13px; line-height: 1.5; text-align: center; }
.contact-save-steps { margin-top: -4px; margin-bottom: 9px; color: #f0e0c2; }
.primary-actions .button-secondary { padding: 10px; font-size: 13px; }
.primary-actions svg { flex: 0 0 20px; }
.save-help { margin: 12px 28px 22px; color: #c6ced3; font-size: 13px; line-height: 1.55; }
.save-help summary { color: var(--accent); cursor: pointer; padding: 8px 0; }
.save-help p { margin: 10px 0; }
.save-help strong { color: var(--text); }
.button:focus-visible, .icon-button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.meet-button {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  width: calc(100% - 56px);
  margin-top: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 61, .28);
  border-radius: 17px;
  background: var(--accent-soft);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.meet-button:hover { border-color: rgba(255, 107, 61, .5); }
.meet-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent); }
.meet-icon svg { width: 24px; fill: none; stroke: var(--button-text); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.meet-button strong, .meet-button small { display: block; }
.meet-button strong { font-size: 14px; }
.meet-button small { margin-top: 3px; color: #bdb6c1; font-size: 11px; line-height: 1.3; }
.meet-arrow { color: var(--accent); font-size: 27px; }

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 30px;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 76px;
  border: 2px solid var(--control-border);
  border-radius: 17px;
  background: var(--control-surface);
  color: var(--control-ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  padding: 10px 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  transition: background .16s ease, transform .16s ease;
}

.quick-link:hover { background: var(--control-hover); border-color: var(--accent); transform: translateY(-2px); }
.quick-link:active { transform: scale(.98); }
.quick-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.quick-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.video-section,
.presentation-section,
.services-section {
  padding: 27px 0;
  border-top: 1px solid var(--line);
}

.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.section-kicker { display: block; margin-bottom: 6px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.play-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; }

video { display: block; width: 100%; max-height: 560px; border-radius: 20px; background: #08070a; }

#services { display: grid; gap: 13px; margin: 17px 0 0; padding: 0; list-style: none; }
#services li { position: relative; padding-left: 26px; color: #ddd8e0; line-height: 1.4; }
#services li::before { content: ""; position: absolute; top: .45em; left: 2px; width: 7px; height: 7px; border: 2px solid var(--accent); border-radius: 50%; }
#services h3 { margin: 0; color: var(--text); font-size: 17px; line-height: 1.4; }
#services p { margin: 7px 0 0; font-size: 14px; line-height: 1.55; }
#services li + li { padding-top: 17px; border-top: 1px solid var(--line); }
#services li + li::before { top: calc(17px + .45em); }
.presentation-section { margin-left: 28px; margin-right: 28px; }
.presentation-help { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.presentation-section h2 { margin: 8px 0; }
.presentation-section > .button { margin-top: 20px; }
.speaking-topics ul { margin: 20px 0; padding: 0; list-style: none; }
.speaking-topics li { border-left: 3px solid var(--action); padding-left: 14px; }
.speaking-topics li + li { margin-top: 20px; }
.speaking-topics h3 { font-size: 17px; line-height: 1.4; margin: 0 0 7px; }
.speaking-topics p { font-size: 14px; line-height: 1.55; color: #c6ced3; margin: 0; }
.presentation-help { color: #c6ced3; }
.role { line-height: 1.5; }
.identity > div { min-width: 0; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 78px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.text-button { padding: 10px 14px; min-height: 44px; border: 2px solid var(--control-border); border-radius: 12px; background: var(--control-surface); color: var(--control-ink); font-weight: 680; white-space: nowrap; cursor: pointer; }
.text-button:hover { background: var(--control-hover); }
.text-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.qr-dialog {
  width: min(calc(100% - 30px), 390px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #211e26;
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}

.meet-dialog {
  width: min(calc(100% - 24px), 520px);
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #211e26;
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}

.meet-dialog::backdrop { background: rgba(6,5,8,.8); backdrop-filter: blur(8px); }
.meet-dialog-content { position: relative; padding: 30px; }
.meet-lead { margin: 8px 36px 20px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.name-field { display: grid; gap: 7px; margin-bottom: 15px; color: #d9d3dc; font-size: 12px; }
.name-field small { color: var(--muted); }
.name-field input { width: 100%; height: 45px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; outline: none; background: rgba(255,255,255,.04); color: var(--text); font: inherit; font-size: 14px; }
.name-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.capture-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.045); }
.capture-tab { height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.capture-tab.active { background: #37323e; color: var(--text); font-weight: 680; }
.camera-stage { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 19px; background: #0a090c; }
.camera-stage video, .camera-stage img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--muted); text-align: center; }
.camera-placeholder-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: 33px; }
.camera-placeholder strong { color: #d8d2db; font-size: 13px; }
.camera-placeholder span:last-child { max-width: 240px; font-size: 11px; }
.recording-badge { position: absolute; top: 12px; left: 12px; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 99px; background: rgba(13,11,15,.72); font-size: 11px; font-variant-numeric: tabular-nums; }
.recording-badge:not([hidden]) { display: flex; }
.recording-badge i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 4px rgba(255,77,77,.13); }
.consent-note { margin: 10px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.capture-actions { display: grid; gap: 8px; }
.capture-actions .button[hidden] { display: none; }
.share-fallback { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.qr-dialog::backdrop { background: rgba(6,5,8,.76); backdrop-filter: blur(8px); }
.dialog-content { position: relative; padding: 31px; text-align: center; }
.dialog-content p { margin: 9px auto 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.dialog-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); font-size: 29px; line-height: 1; cursor: pointer; }
.qr-frame { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 18px; border-radius: 23px; background: #fff; }
#qr-code { width: 100%; height: 100%; }
#qr-code img, #qr-code canvas { width: 100% !important; height: 100% !important; image-rendering: pixelated; }
#qr-name { display: block; margin-top: 18px; }
.qr-url { display: block; max-width: 100%; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  max-width: calc(100% - 34px);
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #302c36;
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 15px 40px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 500px) {
  .page-shell { display: block; padding: 0; }
  .card { min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
  .card-topline, .identity, .headline, .primary-actions, .quick-links, .meet-button, .video-section, .presentation-section, .services-section, footer { margin-left: 20px; margin-right: 20px; }
  .meet-button { width: calc(100% - 40px); }
  .meet-dialog { width: 100%; max-height: 100svh; margin: auto 0 0; border-width: 1px 0 0; border-radius: 25px 25px 0 0; }
  .meet-dialog-content { padding: 25px 20px max(24px, env(safe-area-inset-bottom)); }
  .camera-stage { aspect-ratio: 3 / 4; max-height: 48svh; }
  .identity { grid-template-columns: 88px 1fr; gap: 18px; padding-top: 28px; }
  .avatar { width: 88px; border-radius: 27px; font-size: 26px; }
  .primary-actions { grid-template-columns: 1fr 1fr; }
  .contact-help, .save-help { margin-left: 20px; margin-right: 20px; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .quick-link { min-height: 65px; flex-direction: row; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Recipient-first exchange and distinct content sections, release 20261111a. */
.button-exchange {
  grid-column: 1 / -1;
  border-color: var(--control-border);
  background: var(--control-surface);
  color: var(--control-ink);
  min-height: 58px;
  padding: 13px 16px;
  line-height: 1.35;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
}
.button-exchange:hover { background: var(--control-hover); }
.exchange-nudge { text-align: left; }
.card-section {
  margin: 24px 28px;
  padding: 22px;
  border: 1px solid #718795;
  border-radius: 20px;
  background: #203e4e;
}
.card-section h2 { line-height: 1.25; margin: 6px 0 0; }
.card-section .section-lead { margin: 12px 0 18px; color: #d2dce2; font-size: 14px; line-height: 1.55; }
.card-section .quick-links { margin: 18px 0 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-section .quick-link { flex-direction: row; text-align: left; gap: 9px; min-height: 72px; padding: 12px 10px; font-size: 12px; }
.card-section .quick-link svg { flex: 0 0 22px; }
.card-section .quick-link span { min-width: 0; line-height: 1.4; }
.card-section .contact-help { margin: 12px 0 0; }
.utility-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.utility-actions .button { padding: 10px 8px; font-size: 12px; line-height: 1.35; }
.utility-actions svg { flex: 0 0 20px; }
.game-section { border-color: #d19579; background: #3d3735; }
.game-section > .button { margin-top: 18px; }
.exchange-dialog {
  width: min(calc(100% - 24px), 480px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #8197a3;
  border-radius: 24px;
  background: #1b3a4b;
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}
.exchange-dialog::backdrop { background: rgba(6,12,18,.8); }
.exchange-dialog .dialog-content { padding: 30px 24px; text-align: left; }
.exchange-dialog h2 { padding-right: 20px; line-height: 1.3; }
.exchange-dialog .button { width: 100%; font-size: 14px; }
.exchange-dialog .exchange-help, .exchange-dialog .exchange-privacy,
.exchange-dialog .exchange-fallback p { margin: 10px 0 20px; color: #d2dce2; font-size: 13px; line-height: 1.55; }
.exchange-dialog .exchange-privacy { margin-bottom: 0; padding-top: 18px; border-top: 1px solid #718795; }
.exchange-fallback { margin-top: 20px; font-size: 13px; line-height: 1.5; }
.exchange-fallback summary { padding: 8px 0; color: var(--accent); cursor: pointer; }
.exchange-dialog .exchange-draft { padding: 14px; border: 1px solid #718795; border-radius: 12px; background: #142634; }
.save-help a, .exchange-fallback a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 500px) {
  .card-section { margin: 22px 16px; padding: 20px 16px; }
  .card-section .quick-link { min-height: 76px; padding: 10px 8px; }
}
@media (max-width: 350px) {
  .card-section .quick-links, .utility-actions { grid-template-columns: 1fr; }
}
