:root {
  --ink: #10130f;
  --panel: #151914;
  --cream: #f2eee5;
  --sand: #c9bdaa;
  --gold: #c7a977;
  --muted: rgba(242, 238, 229, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --danger: #e7a29b;
  --success: #a9c4a9;
  color: var(--cream);
  background: var(--ink);
  font-family: "Inter", sans-serif;
  font-synthesis: none;
}

.splash__voice {
  position: absolute;
  z-index: 2;
  top: 58%;
  width: min(calc(100% - 40px), 430px);
  text-align: center;
}

.splash__voice p {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(23px, 4vw, 32px);
}

.splash__voice > div {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.splash__voice button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}

.splash__voice-primary {
  border-color: var(--gold) !important;
  background: var(--gold);
  color: var(--ink);
}

.splash__voice-silent {
  background: rgba(16, 19, 15, 0.52);
  color: var(--cream);
}

.splash__voice small {
  display: block;
  min-height: 18px;
  margin-top: 12px;
  color: var(--muted);
}

.narration-player {
  position: fixed;
  z-index: 40;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(calc(100% - 36px), 520px);
  display: grid;
  grid-template-columns: minmax(100px, 0.55fr) minmax(180px, 1fr) 34px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(199, 169, 119, 0.32);
  border-radius: 14px;
  padding: 12px;
  background: rgba(18, 23, 18, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.narration-player[hidden] {
  display: none;
}

.narration-player > div {
  display: grid;
  gap: 4px;
}

.narration-player small {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.narration-player strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.narration-player audio {
  width: 100%;
  height: 38px;
}

.narration-player > button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 25px;
}

@media (max-width: 640px) {
  .narration-player {
    right: 12px;
    bottom: max(90px, calc(76px + env(safe-area-inset-bottom)));
    width: calc(100% - 24px);
    grid-template-columns: 1fr 34px;
  }

  .narration-player audio {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .narration-player > button {
    grid-column: 2;
    grid-row: 1;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.auth-view--top::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(199, 169, 119, 0.12), transparent 30rem),
    var(--ink);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

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

.app-shell {
  width: 100%;
  min-height: 100dvh;
  position: relative;
  overflow-x: clip;
  background: var(--ink);
}

.splash,
.auth-shell {
  min-height: inherit;
}

.splash {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 20;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 16, 13, 0.28), rgba(11, 16, 13, 0.94)),
    url("../public/assets/auth-coast.jpeg") center / cover;
  transition:
    opacity 700ms ease,
    visibility 700ms ease;
}

.splash.is-leaving {
  visibility: hidden;
  opacity: 0;
}

.splash__wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 38%, rgba(199, 169, 119, 0.12), transparent 42%);
}

.splash__caption {
  position: absolute;
  bottom: max(34px, env(safe-area-inset-bottom));
  margin: 0;
  color: rgba(242, 238, 229, 0.44);
  font-size: 9px;
  letter-spacing: 0.28em;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.identity--splash {
  position: relative;
  transform: translateY(-2vh);
  animation: identity-in 900ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.identity__mark {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.15;
  opacity: 0.84;
}

.identity span {
  display: grid;
  gap: 3px;
  line-height: 1;
  letter-spacing: 0.22em;
}

.identity b {
  font-size: 10px;
  font-weight: 500;
}

.identity small {
  color: rgba(242, 238, 229, 0.56);
  font-size: 8px;
  font-weight: 300;
}

.auth-shell {
  display: flex;
  flex-direction: column;
  position: relative;
  padding:
    max(24px, env(safe-area-inset-top))
    clamp(20px, 5vw, 64px)
    max(104px, calc(24px + env(safe-area-inset-bottom)));
  isolation: isolate;
}

.auth-shell__image,
.auth-shell__veil {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.auth-shell__image {
  height: 54%;
  background: url("../public/assets/auth-coast.jpeg") 42% center / cover;
  filter: saturate(0.72) contrast(1.02);
}

.auth-shell__veil {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 14, 11, 0.2) 0%, rgba(10, 14, 11, 0.56) 30%, var(--ink) 56%, var(--ink) 100%),
    linear-gradient(90deg, rgba(10, 14, 11, 0.18), transparent);
}

.auth-header {
  width: min(100%, 1280px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-inline: auto;
}

.language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 7px 4px;
  background: transparent;
  color: rgba(242, 238, 229, 0.5);
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.language i {
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.2);
}

.language [aria-current="true"] {
  color: var(--cream);
  font-weight: 500;
}

.auth-view {
  width: min(100%, 560px);
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  margin-inline: auto;
  padding-top: clamp(74px, 13vh, 132px);
}

.auth-view--top {
  justify-content: flex-start;
  overflow-y: auto;
  scrollbar-width: none;
}

.auth-view--top::-webkit-scrollbar {
  display: none;
}

.view-head {
  margin-bottom: 26px;
}

.view-head__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  margin: 0 0 20px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.view-head__back svg {
  width: 15px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 10vw, 46px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.42);
}

.view-head p {
  max-width: 310px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.025em;
}

.auth-form {
  display: grid;
  gap: 12px;
}

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

.field > span,
.consent span {
  color: rgba(242, 238, 229, 0.68);
  font-size: 10px;
}

.field__control {
  min-height: 49px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.field__control:focus-within {
  border-color: rgba(199, 169, 119, 0.6);
  background: rgba(255, 255, 255, 0.035);
}

.field__control svg {
  width: 16px;
  margin-left: 15px;
  fill: none;
  stroke: rgba(242, 238, 229, 0.38);
  stroke-width: 1.3;
}

.field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 13px;
  background: transparent;
  color: var(--cream);
  font-size: 12px;
}

.field input::placeholder {
  color: rgba(242, 238, 229, 0.26);
}

.reveal {
  display: grid;
  place-items: center;
  border: 0;
  padding: 12px 14px;
  background: transparent;
  color: rgba(242, 238, 229, 0.42);
  cursor: pointer;
}

.reveal svg {
  width: 17px;
  margin: 0;
  stroke: currentColor;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 10.5px;
  text-decoration: none;
}

.consent {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 9px;
  align-items: start;
  cursor: pointer;
}

.consent input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--gold);
}

.consent a {
  color: var(--gold);
}

.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 11.5px;
  transition:
    transform 150ms ease,
    background 150ms ease,
    opacity 150ms ease;
}

.button:active {
  transform: scale(0.988);
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.button--primary {
  margin-top: 5px;
  background: var(--sand);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
}

.button--secondary,
.button--social {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.012);
  color: rgba(242, 238, 229, 0.9);
}

.button--social svg {
  width: 17px;
  height: 17px;
}

.button--danger {
  border-color: rgba(231, 162, 155, 0.3);
  background: rgba(231, 162, 155, 0.06);
  color: var(--danger);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 13px;
  align-items: center;
  margin: 5px 0;
  color: rgba(242, 238, 229, 0.3);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.11);
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-shell[data-route="signup"] .auth-shell__image {
  height: 70%;
  background-position: 42% center;
  filter: saturate(0.82) contrast(1.06) brightness(0.78);
}

.auth-shell[data-route="signup"] .auth-shell__veil {
  background:
    linear-gradient(
      180deg,
      rgba(7, 9, 7, 0.56) 0%,
      rgba(7, 9, 7, 0.25) 19%,
      rgba(16, 19, 15, 0.2) 38%,
      rgba(16, 19, 15, 0.62) 62%,
      rgba(16, 19, 15, 0.94) 78%,
      var(--ink) 91%
    );
}

.auth-view[data-route="signup"] {
  padding-top: clamp(46px, 7vh, 70px);
}

.signup-intro .view-head {
  margin-bottom: 20px;
}

.signup-intro h1 {
  margin-bottom: 8px;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.signup-intro .view-head p {
  max-width: 260px;
  font-size: 11.5px;
  line-height: 1.5;
}

.auth-form--signup {
  gap: 10px;
}

.auth-form--signup .field {
  gap: 6px;
}

.auth-form--signup .field > span {
  margin-left: 2px;
  color: rgba(242, 238, 229, 0.48);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-form--signup .field__control {
  min-height: 47px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 8, 0.46);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-form--signup .field__control:focus-within {
  border-color: rgba(199, 169, 119, 0.58);
  background: rgba(12, 12, 12, 0.7);
  box-shadow:
    0 0 0 3px rgba(199, 169, 119, 0.09),
    0 15px 30px rgba(0, 0, 0, 0.32);
}

.auth-form--signup .field__control:focus-within svg {
  stroke: var(--gold);
}

.signup-consents {
  display: grid;
  gap: 8px;
  margin: 3px 0 1px;
}

.signup-consents .consent span {
  color: rgba(242, 238, 229, 0.55);
  font-size: 9.5px;
  line-height: 1.45;
}

.auth-form--signup .button--primary {
  min-height: 50px;
  margin-top: 3px;
  background-color: #c6b79f;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.16) 0.8px, transparent 0.8px),
    radial-gradient(rgba(16, 19, 15, 0.11) 0.8px, transparent 0.8px);
  background-position: 0 0, 2px 2px;
  background-size: 4px 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.signup-social {
  display: grid;
  gap: 9px;
}

.signup-social .divider {
  margin: 18px 0 3px;
}

.signup-social .button--social {
  width: 100%;
  min-height: 45px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(8, 8, 8, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.signup-guest {
  justify-self: center;
  margin-top: 5px;
  padding: 5px 8px;
  font-weight: 500;
}

.signup-switch {
  margin-top: 8px;
  padding-bottom: 3px;
}

.auth-shell[data-route^="verify-"] .auth-shell__image {
  height: 74%;
  background-position: 42% center;
  filter: saturate(0.7) contrast(1.08) brightness(0.62);
}

.auth-shell[data-route^="verify-"] .auth-shell__veil {
  background:
    radial-gradient(circle at 50% 24%, rgba(199, 169, 119, 0.1), transparent 35%),
    linear-gradient(
      180deg,
      rgba(7, 9, 7, 0.42) 0%,
      rgba(16, 19, 15, 0.48) 31%,
      rgba(16, 19, 15, 0.92) 67%,
      var(--ink) 88%
    );
}

.auth-view[data-route^="verify-"] {
  justify-content: center;
  padding-top: clamp(54px, 9vh, 92px);
}

.verify-view {
  display: grid;
  justify-items: center;
  text-align: center;
}

.verify-orbit {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(199, 169, 119, 0.24);
  border-radius: 50%;
  margin-bottom: 18px;
  background: rgba(8, 10, 8, 0.36);
  box-shadow:
    0 0 0 9px rgba(199, 169, 119, 0.035),
    0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.verify-orbit::after {
  width: 7px;
  height: 7px;
  position: absolute;
  top: 4px;
  right: 15px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 14px rgba(199, 169, 119, 0.62);
}

.verify-orbit__icon {
  width: 31px;
  height: 31px;
}

.verify-orbit__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
}

.verify-view--success .verify-orbit {
  border-color: rgba(169, 196, 169, 0.3);
}

.verify-view--success .verify-orbit::after {
  background: var(--success);
}

.verify-view--success .verify-orbit__icon svg {
  stroke: var(--success);
}

.verify-view--invalid .verify-orbit,
.verify-view--expired .verify-orbit {
  border-color: rgba(231, 162, 155, 0.25);
}

.verify-view--invalid .verify-orbit::after,
.verify-view--expired .verify-orbit::after {
  background: var(--danger);
  box-shadow: 0 0 14px rgba(231, 162, 155, 0.48);
}

.verify-eyebrow {
  margin-bottom: 11px;
  color: rgba(199, 169, 119, 0.76);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.25em;
}

.verify-view h1 {
  max-width: 330px;
  margin-bottom: 12px;
  font-size: clamp(38px, 10vw, 44px);
  line-height: 0.98;
}

.verify-copy {
  max-width: 300px;
  margin-bottom: 21px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.65;
}

.verify-recipient {
  width: 100%;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  margin-bottom: 10px;
  padding: 13px 15px;
  background: rgba(8, 8, 8, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.verify-recipient span {
  color: rgba(242, 238, 229, 0.42);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verify-recipient strong {
  overflow-wrap: anywhere;
  color: rgba(242, 238, 229, 0.9);
  font-size: 11.5px;
  font-weight: 400;
}

.verify-view > .button,
.verify-resend-form {
  width: 100%;
}

.verify-view > .button--primary,
.verify-resend-form .button--primary {
  min-height: 50px;
  background-color: #c6b79f;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.16) 0.8px, transparent 0.8px),
    radial-gradient(rgba(16, 19, 15, 0.11) 0.8px, transparent 0.8px);
  background-position: 0 0, 2px 2px;
  background-size: 4px 4px;
}

.verify-hint {
  max-width: 285px;
  margin: 15px 0 13px;
  color: rgba(242, 238, 229, 0.38);
  font-size: 9px;
  line-height: 1.55;
}

.verify-back {
  padding: 6px 9px;
}

.verify-view--success .button,
.verify-view--expired .button,
.verify-view--invalid .button {
  margin-top: 2px;
}

.verify-view--success .verify-copy,
.verify-view--expired .verify-copy,
.verify-view--invalid .verify-copy {
  margin-bottom: 17px;
}

.verify-view--expired .verify-back,
.verify-view--invalid .verify-back {
  margin-top: 13px;
}

.switch-view {
  margin: 17px 0 0;
  color: rgba(242, 238, 229, 0.46);
  text-align: center;
  font-size: 10.5px;
}

.form-error,
.form-note {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 10.5px;
  line-height: 1.45;
}

.form-error {
  border: 1px solid rgba(231, 162, 155, 0.25);
  background: rgba(231, 162, 155, 0.06);
  color: var(--danger);
}

.form-note {
  border: 1px solid rgba(169, 196, 169, 0.22);
  background: rgba(169, 196, 169, 0.06);
  color: var(--success);
}

.status-view {
  display: grid;
  align-content: center;
  flex: 1;
  text-align: center;
}

.status-view__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(199, 169, 119, 0.36);
  border-radius: 50%;
  color: var(--gold);
}

.status-view__icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.status-view h1 {
  font-size: 38px;
}

.status-view p {
  max-width: 310px;
  margin: 0 auto 25px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.security-list {
  display: grid;
  gap: 10px;
}

.security-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.security-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 500;
}

.security-card small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.security-card button {
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 10px;
}

.security-card--danger {
  border-color: rgba(231, 162, 155, 0.23);
  background: rgba(231, 162, 155, 0.035);
}

.provider-list,
.privacy-actions {
  display: grid;
  gap: 11px;
}

.provider-card {
  display: grid;
  grid-template-columns: 1fr minmax(108px, auto);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  background: rgba(8, 8, 8, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.provider-card strong,
.provider-card small {
  display: block;
}

.provider-card strong {
  margin-bottom: 4px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 500;
}

.provider-card small {
  color: var(--muted);
  font-size: 10.5px;
}

.provider-card .button {
  min-height: 42px;
  margin: 0;
}

.privacy-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  background: rgba(8, 8, 8, 0.34);
}

.privacy-card strong,
.privacy-card small {
  display: block;
}

.privacy-card strong {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 500;
}

.privacy-card small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.privacy-card .button {
  width: 100%;
  margin: 0;
}

.privacy-card--danger {
  border-color: rgba(231, 162, 155, 0.24);
  background: rgba(231, 162, 155, 0.035);
}

.delete-account-form {
  border: 1px solid rgba(231, 162, 155, 0.18);
  border-radius: 14px;
  padding: 15px;
  background: rgba(231, 162, 155, 0.035);
}

.delete-account-form .button--danger {
  min-height: 49px;
  margin-top: 3px;
}

.home-view,
.workflow-placeholder {
  display: grid;
  gap: 18px;
  padding-bottom: 80px;
}

.auth-shell[data-route="home"] .auth-shell__image,
.auth-shell[data-route="explore"] .auth-shell__image,
.auth-shell[data-route="ar-onboarding"] .auth-shell__image,
.auth-shell[data-route="film"] .auth-shell__image,
.auth-shell[data-route="tour"] .auth-shell__image {
  height: min(760px, 72dvh);
  background-image: var(--experience-image, url("../public/assets/hero-vineyard.jpeg"));
  background-position: center;
  filter: saturate(0.76) contrast(1.08) brightness(0.72);
}

.auth-shell[data-route="home"] .auth-shell__veil,
.auth-shell[data-route="explore"] .auth-shell__veil,
.auth-shell[data-route="ar-onboarding"] .auth-shell__veil,
.auth-shell[data-route="film"] .auth-shell__veil,
.auth-shell[data-route="tour"] .auth-shell__veil {
  background:
    radial-gradient(circle at 24% 18%, rgba(199, 169, 119, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(8, 11, 8, 0.18) 0%, rgba(8, 11, 8, 0.52) 32%, rgba(16, 19, 15, 0.88) 62%, var(--ink) 100%);
}

.auth-view[data-route="home"],
.auth-view[data-route="explore"],
.auth-view[data-route="ar-onboarding"],
.auth-view[data-route="film"],
.auth-view[data-route="tour"] {
  width: min(100%, 1280px);
  padding-top: clamp(44px, 7vh, 72px);
}

.home-hero {
  min-height: 258px;
  display: grid;
  align-content: end;
}

.home-kicker,
.section-label {
  margin-bottom: 10px;
  color: rgba(199, 169, 119, 0.82);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 350px;
  margin-bottom: 12px;
  font-size: clamp(43px, 11vw, 52px);
  line-height: 0.94;
}

.home-hero > p {
  max-width: 330px;
  margin-bottom: 16px;
  color: rgba(242, 238, 229, 0.76);
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.65;
}

.home-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 9px 11px 9px 14px;
  background: rgba(7, 9, 7, 0.34);
  color: rgba(242, 238, 229, 0.74);
  font-size: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-actions {
  display: grid;
  gap: 10px;
}

.home-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-action {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 15px;
  background: rgba(8, 8, 8, 0.38);
  color: var(--cream);
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-action--featured {
  min-height: 92px;
  border-color: rgba(199, 169, 119, 0.38);
  background:
    linear-gradient(135deg, rgba(199, 169, 119, 0.2), rgba(8, 8, 8, 0.42)),
    rgba(8, 8, 8, 0.38);
}

.home-action strong,
.home-action small {
  display: block;
}

.home-action strong {
  margin-bottom: 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.05;
}

.home-action small {
  color: rgba(242, 238, 229, 0.62);
  font-size: 10.2px;
  font-weight: 300;
  line-height: 1.45;
}

.home-action i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 169, 119, 0.34);
  border-radius: 50%;
  color: var(--gold);
  font-style: normal;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.home-stats span,
.journey-grid article,
.placeholder-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.home-stats span {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.home-stats strong {
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.home-stats small {
  color: rgba(242, 238, 229, 0.5);
  font-size: 9px;
}

.journey-preview {
  display: grid;
  gap: 10px;
}

.journey-grid {
  display: grid;
  gap: 9px;
}

.journey-grid article {
  padding: 14px;
}

.journey-grid strong {
  display: block;
  margin-bottom: 6px;
  color: rgba(242, 238, 229, 0.92);
  font-size: 12px;
  font-weight: 500;
}

.journey-grid p,
.placeholder-card p {
  margin-bottom: 0;
  color: rgba(242, 238, 229, 0.62);
  font-size: 10.5px;
  font-weight: 300;
  line-height: 1.55;
}

.placeholder-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(8, 8, 8, 0.38);
}

.placeholder-card .button {
  width: 100%;
}

.bottom-nav {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 9px 8px max(10px, env(safe-area-inset-bottom));
  background: rgba(9, 12, 10, 0.9);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.bottom-nav__item {
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 0;
  border-radius: 16px;
  padding: 3px 2px;
  background: transparent;
  color: rgba(242, 238, 229, 0.52);
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.bottom-nav__icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.bottom-nav__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.bottom-nav__label {
  max-width: 100%;
  overflow: hidden;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav__item:hover {
  color: rgba(242, 238, 229, 0.82);
}

.bottom-nav__item[aria-current="page"] {
  color: var(--cream);
}

.bottom-nav__item[aria-current="page"]:not(.bottom-nav__item--primary) {
  background: rgba(199, 169, 119, 0.1);
}

.bottom-nav__item--primary {
  color: var(--gold);
  transform: translateY(-9px);
}

.bottom-nav__item--primary .bottom-nav__icon {
  width: 46px;
  height: 46px;
  margin-bottom: -2px;
  border: 1.5px solid rgba(199, 169, 119, 0.78);
  border-radius: 50%;
  padding: 12px;
  background: rgba(199, 169, 119, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
}

.bottom-nav__item--primary[aria-current="page"] .bottom-nav__icon {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 34px rgba(199, 169, 119, 0.2);
}

.auth-shell[data-route="gallery"] .auth-shell__image,
.auth-shell[data-route="legal"] .auth-shell__image,
.auth-shell[data-route="new-user-onboarding"] .auth-shell__image,
.auth-shell[data-route="ar-help"] .auth-shell__image,
.auth-shell[data-route^="story-"] .auth-shell__image,
.auth-shell[data-route^="video-"] .auth-shell__image {
  height: min(760px, 72dvh);
  background-image: var(--experience-image, url("../public/assets/hero-vineyard.jpeg"));
  background-position: center;
  filter: saturate(0.76) contrast(1.08) brightness(0.72);
}

.auth-shell[data-route="gallery"] .auth-shell__veil,
.auth-shell[data-route="legal"] .auth-shell__veil,
.auth-shell[data-route="new-user-onboarding"] .auth-shell__veil,
.auth-shell[data-route="ar-help"] .auth-shell__veil,
.auth-shell[data-route^="story-"] .auth-shell__veil,
.auth-shell[data-route^="video-"] .auth-shell__veil {
  background:
    radial-gradient(circle at 24% 18%, rgba(199, 169, 119, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(8, 11, 8, 0.18) 0%, rgba(8, 11, 8, 0.52) 32%, rgba(16, 19, 15, 0.88) 62%, var(--ink) 100%);
}

.auth-view[data-route="gallery"],
.auth-view[data-route="legal"],
.auth-view[data-route="new-user-onboarding"],
.auth-view[data-route="ar-help"],
.auth-view[data-route^="story-"],
.auth-view[data-route^="video-"] {
  width: min(100%, 1280px);
  padding-top: clamp(44px, 7vh, 72px);
}

.experience-view {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding-bottom: 86px;
}

.home-actions--experience {
  gap: 11px;
}

.home-action-grid--quiet .home-action {
  min-height: 64px;
  background: rgba(8, 8, 8, 0.22);
}

.home-actions,
.home-action,
.content-card {
  min-width: 0;
}

.home-action {
  overflow: hidden;
}

.content-grid,
.gallery-grid,
.journey-grid--cards {
  display: grid;
  gap: 12px;
}

.content-card {
  min-height: 124px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 19px;
  background: rgba(8, 8, 8, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.content-card button {
  width: 100%;
  min-height: inherit;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 13px;
  align-items: stretch;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.content-card__image {
  min-height: 124px;
  background:
    linear-gradient(180deg, rgba(7, 9, 7, 0.05), rgba(7, 9, 7, 0.48)),
    var(--card-image) center / cover;
}

.content-card__body {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 13px 13px 13px 0;
}

.content-card small {
  color: rgba(199, 169, 119, 0.8);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.content-card strong {
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.content-card em {
  color: rgba(242, 238, 229, 0.58);
  font-size: 10px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.content-card--compact button {
  grid-template-columns: 84px 1fr;
}

.content-card--compact .content-card__image {
  min-height: 96px;
}

.explore-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.explore-search .button {
  width: 100%;
}

.explore-search input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(8, 8, 8, 0.32);
  color: var(--cream);
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chips button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(242, 238, 229, 0.68);
  cursor: pointer;
  font-size: 9.5px;
}

.filter-chips button[aria-current="true"] {
  border-color: rgba(199, 169, 119, 0.42);
  background: rgba(199, 169, 119, 0.15);
  color: var(--cream);
}

.empty-state,
.legal-card,
.transcript-panel,
.marker-guide,
.qr-landing-card,
.scanner-panel,
.video-shell,
.tour-frame,
.hotspot-list article,
.onboarding-steps article,
.story-body {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 8, 8, 0.36);
}

.empty-state,
.legal-card,
.story-body {
  padding: 16px;
  color: rgba(242, 238, 229, 0.68);
  font-size: 10.8px;
  font-weight: 300;
  line-height: 1.65;
}

.story-hero {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(8, 8, 8, 0.36);
}

.story-hero img {
  width: 100%;
  height: 168px;
  display: block;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.88);
}

.story-hero figcaption {
  padding: 10px 13px;
  color: rgba(199, 169, 119, 0.82);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-body section {
  margin-top: 18px;
}

.story-body h2 {
  margin-bottom: 6px;
  color: var(--cream);
  font-size: 17px;
}

.fact-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.fact-list span {
  border: 1px solid rgba(199, 169, 119, 0.18);
  border-radius: 13px;
  padding: 9px 11px;
  background: rgba(199, 169, 119, 0.055);
  color: rgba(242, 238, 229, 0.68);
  font-size: 10px;
  line-height: 1.45;
}

.branch-actions {
  display: grid;
  gap: 10px;
}

.utility-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.utility-actions .button {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.utility-actions .button[aria-pressed="true"] {
  border-color: rgba(199, 169, 119, 0.46);
  background: rgba(199, 169, 119, 0.16);
  color: var(--cream);
}

.related-strip {
  display: grid;
  gap: 10px;
}

.video-shell,
.tour-frame {
  min-height: 220px;
  overflow: hidden;
}

.video-shell video {
  width: 100%;
  min-height: 220px;
  display: block;
  background: #000;
}

.video-poster,
.tour-frame {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 7, 0.1), rgba(7, 9, 7, 0.74)),
    var(--card-image) center / cover;
  color: var(--cream);
  text-align: center;
}

.video-poster span,
.tour-frame span {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(199, 169, 119, 0.45);
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
}

.video-poster strong,
.video-poster small {
  display: block;
}

.transcript-panel {
  padding: 14px;
  color: rgba(242, 238, 229, 0.66);
  font-size: 10.5px;
  line-height: 1.6;
}

.transcript-panel summary {
  margin-bottom: 8px;
  color: var(--cream);
  cursor: pointer;
  font-weight: 600;
}

.hotspot-list {
  display: grid;
  gap: 10px;
}

.hotspot-list article,
.onboarding-steps article {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.hotspot-list strong,
.onboarding-steps span {
  color: rgba(199, 169, 119, 0.86);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.hotspot-list p,
.onboarding-steps p,
.marker-guide p,
.qr-landing-card p,
.scanner-panel p,
.legal-card p {
  margin: 0;
  color: rgba(242, 238, 229, 0.66);
  font-size: 10.5px;
  line-height: 1.6;
}

.marker-guide {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.qr-landing-card,
.scanner-panel {
  display: grid;
  gap: 15px;
  padding: 16px;
}

.ar-roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border: 1px solid rgba(199, 169, 119, 0.12);
  border-radius: 18px;
  padding: 14px 12px;
  background: rgba(8, 8, 8, 0.28);
}

.ar-roadmap__line {
  position: absolute;
  top: 28px;
  left: 18%;
  right: 18%;
  border-top: 1px dashed rgba(199, 169, 119, 0.25);
}

.ar-roadmap__step {
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: rgba(242, 238, 229, 0.5);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.ar-roadmap__step i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 169, 119, 0.22);
  border-radius: 999px;
  background: rgba(13, 14, 12, 0.88);
  color: rgba(199, 169, 119, 0.64);
  font-style: normal;
}

.ar-roadmap__step.is-active,
.ar-roadmap__step.is-complete {
  color: rgba(242, 238, 229, 0.82);
}

.ar-roadmap__step.is-active i {
  border-color: rgba(199, 169, 119, 0.78);
  background: rgba(199, 169, 119, 0.18);
  color: var(--cream);
  box-shadow: 0 0 24px rgba(199, 169, 119, 0.14);
}

.ar-roadmap__step.is-complete i {
  border-color: rgba(199, 169, 119, 0.44);
  color: rgba(199, 169, 119, 0.9);
}

.qr-landing-card h2 {
  margin: 0;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 500;
  line-height: 0.98;
}

.qr-target {
  min-height: 174px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(199, 169, 119, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 35% 20%, rgba(199, 169, 119, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(43, 67, 46, 0.54), rgba(14, 15, 12, 0.82));
}

.qr-target span {
  width: 28px;
  height: 28px;
  position: absolute;
  border-color: rgba(242, 238, 229, 0.72);
  border-style: solid;
}

.qr-target span:nth-child(1) {
  top: 18px;
  left: 18px;
  border-width: 2px 0 0 2px;
}

.qr-target span:nth-child(2) {
  top: 18px;
  right: 18px;
  border-width: 2px 2px 0 0;
}

.qr-target span:nth-child(3) {
  right: 18px;
  bottom: 18px;
  border-width: 0 2px 2px 0;
}

.qr-target span:nth-child(4) {
  bottom: 18px;
  left: 18px;
  border-width: 0 0 2px 2px;
}

.qr-target strong,
.scanner-frame strong {
  color: rgba(242, 238, 229, 0.8);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.marker-guide__frame {
  min-height: 168px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(199, 169, 119, 0.54);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(199, 169, 119, 0.08), transparent),
    rgba(8, 8, 8, 0.28);
}

.marker-guide__frame span {
  color: rgba(242, 238, 229, 0.54);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scanner-frame {
  min-height: 286px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8, 11, 8, 0.2), rgba(8, 11, 8, 0.74)),
    radial-gradient(circle at center, rgba(199, 169, 119, 0.14), transparent 42%),
    rgba(5, 6, 5, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.scanner-status-pill {
  width: fit-content;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(0, 0, 0, 0.36);
  color: rgba(242, 238, 229, 0.82);
  font-size: 10px;
}

.scanner-status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(199, 169, 119, 0.58);
}

.scanner-frame::after {
  content: "";
  width: min(68%, 280px);
  height: min(68%, 280px);
  position: absolute;
  border: 1px dashed rgba(199, 169, 119, 0.55);
  border-radius: 24px;
}

.scanner-frame > div {
  z-index: 1;
  display: grid;
  gap: 8px;
  text-align: center;
}

.scanner-frame small {
  color: rgba(199, 169, 119, 0.78);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scanner-corner {
  width: 42px;
  height: 42px;
  position: absolute;
  border-color: rgba(199, 169, 119, 0.82);
  border-style: solid;
}

.scanner-corner--tl {
  top: 24px;
  left: 24px;
  border-width: 2px 0 0 2px;
}

.scanner-corner--tr {
  top: 24px;
  right: 24px;
  border-width: 2px 2px 0 0;
}

.scanner-corner--bl {
  bottom: 24px;
  left: 24px;
  border-width: 0 0 2px 2px;
}

.scanner-corner--br {
  right: 24px;
  bottom: 24px;
  border-width: 0 2px 2px 0;
}

.camera-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.camera-controls-grid button {
  min-height: 40px;
  border: 1px solid rgba(199, 169, 119, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(242, 238, 229, 0.72);
  cursor: pointer;
  font-size: 9px;
}

.ar-reveal-stage {
  min-height: 330px;
  display: grid;
  place-items: center;
  gap: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(199, 169, 119, 0.16);
  border-radius: 28px;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(199, 169, 119, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(20, 31, 22, 0.68), rgba(5, 6, 5, 0.9));
  text-align: center;
}

.ar-reveal-stage h2 {
  max-width: 520px;
  margin: 0;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 8vw, 60px);
  font-weight: 500;
  line-height: 0.94;
}

.ar-reveal-stage > p:not(.section-label) {
  max-width: 560px;
  color: rgba(242, 238, 229, 0.68);
  font-size: 11px;
  line-height: 1.7;
}

.ar-reveal-orb {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 169, 119, 0.34);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(242, 238, 229, 0.16), transparent 52%),
    rgba(199, 169, 119, 0.08);
}

.ar-reveal-orb span {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(242, 238, 229, 0.42);
  border-radius: 18px 18px 24px 24px;
  background: linear-gradient(180deg, rgba(199, 169, 119, 0.28), rgba(43, 67, 46, 0.12));
  transform: rotate(-8deg);
}

.ar-hotspots {
  grid-template-columns: 1fr;
}

.onboarding-hero {
  min-height: 250px;
  display: grid;
  align-content: end;
}

.onboarding-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(39px, 10vw, 50px);
  line-height: 0.95;
}

.onboarding-hero p {
  color: rgba(242, 238, 229, 0.72);
  font-size: 11px;
  line-height: 1.6;
}

.onboarding-steps {
  display: grid;
  gap: 10px;
}

.onboarding-steps strong {
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}

.toast {
  width: min(420px, calc(100% - 32px));
  position: fixed;
  z-index: 60;
  bottom: max(94px, calc(82px + env(safe-area-inset-bottom)));
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(199, 169, 119, 0.34);
  border-radius: 12px;
  padding: 13px 15px;
  background: rgba(23, 28, 22, 0.97);
  color: var(--cream);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  font-size: 10.5px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@keyframes identity-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(-2vh);
    opacity: 1;
  }
}

@media (max-width: 599px) {
  .auth-shell {
    padding-inline: 20px;
  }

  .home-action-grid {
    gap: 9px;
  }

  .home-action {
    padding: 14px;
  }
}

@media (min-width: 600px) and (max-width: 999px) {
  .auth-shell {
    padding:
      max(28px, env(safe-area-inset-top))
      clamp(32px, 6vw, 56px)
      124px;
  }

  .bottom-nav {
    width: min(560px, calc(100% - 48px));
    right: auto;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    padding: 8px 10px;
  }

  .content-grid,
  .journey-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .auth-shell {
    padding:
      34px
      clamp(48px, 5vw, 76px)
      56px
      136px;
  }

  .bottom-nav {
    width: 88px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, minmax(64px, auto));
    gap: 7px;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 24px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 12px 8px;
    box-shadow: 14px 0 50px rgba(0, 0, 0, 0.26);
  }

  .bottom-nav__item {
    min-height: 64px;
    gap: 6px;
  }

  .bottom-nav__item--primary {
    transform: none;
  }

  .bottom-nav__item--primary .bottom-nav__icon {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .bottom-nav__label {
    font-size: 9px;
  }

  .experience-view {
    padding-bottom: 44px;
  }

  .home-view {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    column-gap: clamp(28px, 5vw, 72px);
    align-items: start;
  }

  .home-hero {
    min-height: min(620px, calc(100dvh - 130px));
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-right: clamp(16px, 3vw, 48px);
  }

  .home-hero h1 {
    max-width: 720px;
    font-size: clamp(62px, 6.2vw, 104px);
  }

  .home-hero > p {
    max-width: 620px;
    font-size: 14px;
  }

  .home-actions {
    grid-column: 2;
  }

  .home-stats {
    grid-column: 2;
  }

  .journey-preview {
    grid-column: 1 / -1;
  }

  .journey-grid--cards,
  .explore-view .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-view,
  .video-view,
  .tour-view,
  .legal-view,
  .ar-view,
  .onboarding-view {
    width: min(100%, 980px);
    margin-inline: auto;
  }

  .toast {
    bottom: 28px;
  }
}

@media (max-height: 760px) {
  .auth-shell {
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .auth-view {
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 48px;
  }

  .view-head {
    margin-bottom: 18px;
  }

  h1 {
    font-size: 38px;
  }

  .field__control,
  .button {
    min-height: 44px;
  }

  .auth-view[data-route="signup"] {
    padding-top: 38px;
  }

  .auth-view[data-route^="verify-"] {
    padding-top: 36px;
  }
}

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