/* ==========================================================================
   The Perception Co. by Weekend — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --obsidian: #0A0A0A;
  --ivory: #F5F3EE;
  --stone: #CFC8BC;
  --graphite: #4A4A4A;
  --gold: #BFA06A;

  --bg: var(--obsidian);
  --text: var(--ivory);
  --muted: var(--stone);
  --line: #262523;
  --panel: #131211;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --container: 1180px;
  --edge: 6vw;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.logo-mark { height: auto; object-fit: contain; display: inline-block; }

.logo-mark svg, .hero-mark svg { width: 100%; height: auto; display: block; }

::selection { background: var(--gold); color: var(--obsidian); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--edge); }

/* ---------- puzzle-grid texture ---------- */
.grid-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(var(--stone) 1px, transparent 1px),
    linear-gradient(90deg, var(--stone) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 60% at 70% 30%, black, transparent);
}

/* ---------- clarity star ---------- */
.star {
  display: inline-block;
  width: 1em;
  height: 1em;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--edge);
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand .logo-mark { width: 26px; }

.nav-brand-text {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.01em;
}

.nav-brand-text span {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a { position: relative; transition: color 0.25s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.current { color: var(--gold); }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- headings ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

h1 em, h2 em, .accent-italic {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.4vw, 60px); }

.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--text);
}

p.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--text);
  padding: 15px 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn.primary {
  background: var(--text);
  color: var(--obsidian);
  border-color: var(--text);
}

.btn.primary:hover { background: var(--gold); border-color: var(--gold); }

.btn.gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn.gold:hover { background: var(--gold); color: var(--obsidian); }

.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 14vh var(--edge) 8vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-inner { max-width: 760px; position: relative; z-index: 1; }

.hero h1 { margin-top: 22px; }

.hero p.lede { max-width: 560px; margin-top: 26px; color: var(--muted); font-family: var(--sans); font-size: clamp(17px, 1.6vw, 20px); }

.hero .cta-row { margin-top: 40px; }

.hero-mark {
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(24vw, 280px);
  opacity: 0.9;
}

/* ---------- sections ---------- */
section {
  padding: 100px var(--edge);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
  align-items: start;
}

.big-text {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  max-width: 780px;
}

.support-text { margin-top: 22px; max-width: 640px; font-size: 17px; color: var(--muted); }

/* ---------- perception statements ---------- */
.statements {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  margin-top: 48px;
}

.statements span {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 38px);
  color: var(--muted);
}

.statements span em { color: var(--text); font-style: italic; }

/* ---------- what we shape ---------- */
.shape-list {
  margin-top: 44px;
  display: grid;
  gap: 0;
}

.shape-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.3fr;
  gap: 30px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.shape-row:last-child { border-bottom: 1px solid var(--line); }

.shape-index { font-family: var(--serif); font-size: 15px; color: var(--gold); }

.shape-row h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; }

.shape-row p { color: var(--muted); font-size: 15.5px; max-width: 46ch; }

/* ---------- perception test ---------- */
.test-section { background: var(--panel); }

.test-wrap { max-width: 640px; margin-left: auto; margin-right: auto; }

.test-status-bar {
  position: sticky;
  top: 100px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 40px auto 0;
  padding: 12px 18px;
  background: rgba(19, 18, 17, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: border-color 0.4s ease;
}

.test-status-bar.complete { border-color: var(--gold); }

.test-status-img {
  width: 36px;
  flex-shrink: 0;
  transition: opacity 0.5s ease, filter 0.5s ease;
  opacity: 0.5;
}

.test-status-img.answering { opacity: 0.75; }
.test-status-img.complete { opacity: 1; filter: drop-shadow(0 0 6px rgba(191,160,106,0.5)); }

.test-status-text { flex: 1; }

.test-dots {
  display: flex;
  gap: 9px;
}

.test-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.35s ease, transform 0.35s ease;
}

.test-dots .dot.filled {
  background: var(--gold);
  transform: scale(1.2);
}

.test-progress {
  margin-top: 7px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.test-form { display: grid; gap: 22px; }

.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.option-grid { display: grid; gap: 8px; }

.option {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14.5px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.option:hover { border-color: var(--stone); }

.option.selected {
  border-color: var(--gold);
  background: rgba(191, 160, 106, 0.08);
  color: var(--gold);
}

textarea.brief {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  min-height: 90px;
  resize: vertical;
}

textarea.brief:focus { outline: none; border-color: var(--gold); }
textarea.brief::placeholder { color: #6b6862; }

.test-result {
  display: none;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.test-result.show { display: block; }

.test-result h3 { font-size: clamp(26px, 3vw, 36px); }

.test-result .result-summary { margin-top: 14px; font-family: var(--serif); font-size: 19px; color: var(--stone); max-width: 60ch; }

.result-points { display: grid; gap: 14px; margin-top: 26px; }

.result-points div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 15px;
  color: var(--text);
}

.result-points div:first-child { color: var(--gold); }

.test-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  max-width: 60ch;
}

.save-form, .save-confirmed {
  display: none;
  margin-top: 28px;
}

.save-form.show, .save-confirmed.show { display: block; }

.save-form-divider { border-top: 1px solid var(--line); margin-bottom: 26px; }

.save-form-lede { font-family: var(--serif); font-size: 18px; color: var(--stone); margin-bottom: 22px; }

.save-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.save-form-full { grid-column: 1 / -1; }

.save-form input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
}

.save-form input:focus { outline: none; border-color: var(--gold); }
.save-form input::placeholder { color: #6b6862; }

.save-form #saveSubmitBtn { margin-top: 22px; }

.save-confirmed h4 { font-family: var(--serif); font-size: 24px; font-weight: 500; }

/* ---------- footer ---------- */
footer.site-footer {
  padding: 64px var(--edge) 46px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

footer.site-footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 16px;
}

footer.site-footer .foot-brand .logo-mark { width: 26px; }

footer.site-footer .foot-col { font-size: 14px; color: var(--muted); }

footer.site-footer .foot-col a:hover { color: var(--text); }

.foot-bottom {
  padding: 20px var(--edge) 40px;
  font-size: 12.5px;
  color: #6b6862;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- contact page ---------- */
.contact-hero { padding: 16vh var(--edge) 6vh; border-bottom: 1px solid var(--line); }
.contact-hero .eyebrow { margin-bottom: 20px; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  padding: 90px var(--edge);
}

.contact-form { display: grid; gap: 24px; }

.contact-form input, .contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
}

.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6b6862; }

.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-form .field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-info { display: grid; gap: 30px; align-content: start; }

.contact-info-block .label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-info-block .value { font-family: var(--serif); font-size: 22px; }

.contact-submitted {
  display: none;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 6px;
}
.contact-submitted.show { display: block; }

/* ---------- subtle motion system ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

.draw-line {
  border: none;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.draw-line::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.draw-line.in-view::after { width: 100%; }

.ambient-glow {
  position: absolute;
  width: 46vw;
  max-width: 520px;
  aspect-ratio: 1;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(191,160,106,0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: driftGlow 9s ease-in-out infinite;
  z-index: 0;
}

@keyframes driftGlow {
  0%, 100% { opacity: 0.7; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-52%) scale(1.06); }
}

.breathing {
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.btn:hover, .option:hover {
  box-shadow: 0 0 0 1px rgba(191,160,106,0.25), 0 6px 18px rgba(191,160,106,0.10);
}

.option.selected:hover { box-shadow: 0 0 0 1px rgba(191,160,106,0.4), 0 6px 18px rgba(191,160,106,0.16); }

/* ---------- perception mark: piece groups + eye ---------- */
.perception-mark .piece { transform-box: fill-box; transform-origin: center; }
.perception-mark .eye { transform-box: fill-box; transform-origin: center; }

/* subtle idle blink — reserved for the hero mark only, once per ~7s */
.hero-blink-mark .eye {
  animation: idleBlink 7.5s ease-in-out infinite;
}

@keyframes idleBlink {
  0%, 94%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
  98% { transform: scaleY(1); }
}

/* ---------- loader ---------- */
#introLoader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--obsidian);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: opacity 0.7s ease;
}

#introLoader.fade-out { opacity: 0; pointer-events: none; }

.loader-mark-wrap {
  position: relative;
  width: 108px;
}

.loader-mark-wrap svg { width: 100%; display: block; }

.loader-mark-wrap::after {
  content: '';
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191,160,106,0.22), transparent 70%);
  opacity: 0;
  animation: loaderGlow 2.8s ease forwards 0.15s;
  pointer-events: none;
}

@keyframes loaderGlow {
  0% { opacity: 0; }
  45% { opacity: 1; }
  100% { opacity: 0.55; }
}

/* piece-assembly choreography — scoped to the loader instance only */
.loader-mark .piece { opacity: 0; }

.loader-mark .piece-topcap {
  animation: pieceInTop 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}
.loader-mark .piece-bl {
  animation: pieceInBL 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.55s;
}
.loader-mark .piece-br {
  animation: pieceInBR 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.55s;
}
.loader-mark .piece-ml {
  animation: pieceInML 0.75s ease forwards 1.05s;
}
.loader-mark .gap-details {
  opacity: 0;
  animation: fadeInSimple 0.5s ease forwards 1.6s;
}

@keyframes pieceInTop {
  from { opacity: 0; transform: translateY(-38%) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pieceInBL {
  from { opacity: 0; transform: translate(-32%, 28%) scale(0.92); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes pieceInBR {
  from { opacity: 0; transform: translate(32%, 28%) scale(0.92); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes pieceInML {
  from { opacity: 0; transform: scale(0.85); filter: blur(4px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes fadeInSimple {
  to { opacity: 1; }
}

.loader-mark .eye.blink-once {
  animation: blinkOnce 0.4s ease;
}

@keyframes blinkOnce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); }
}

@media (prefers-reduced-motion: reduce) {
  .loader-mark .piece, .loader-mark .gap-details { opacity: 1; animation: none; transform: none; }
  .hero-blink-mark .eye { animation: none; }
}

/* ---------- floating game widget ---------- */
#gameWidget {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 6px 0 6px;
  border-radius: 32px;
  background: rgba(19, 18, 17, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  cursor: pointer;
  overflow: hidden;
  width: 210px;
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.5s ease, border-color 0.5s ease,
              box-shadow 0.4s ease, transform 0.3s ease,
              opacity 0.6s ease;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

#gameWidget.widget-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#gameWidget:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(191,160,106,0.18); }

#gameWidget .widget-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

#gameWidget .widget-icon svg { width: 100%; height: 100%; display: block; }

#gameWidget .widget-icon-expanded { display: block; }
#gameWidget .widget-icon-collapsed { display: none; }

#gameWidget .widget-label {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ivory, var(--text));
  white-space: nowrap;
  padding-right: 10px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* collapsed state: shrink to a bare circle, swap icon, hide label */
#gameWidget.collapsed {
  width: 56px;
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

#gameWidget.collapsed .widget-label { opacity: 0; width: 0; padding: 0; }
#gameWidget.collapsed .widget-icon-expanded { display: none; }
#gameWidget.collapsed .widget-icon-collapsed { display: block; }
#gameWidget.collapsed .widget-icon { width: 56px; height: 56px; }

@media (max-width: 720px) {
  #gameWidget { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  #gameWidget { transition: opacity 0.3s ease; transform: none; }
}

.loader-caption {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 16px;
  opacity: 0;
  animation: loaderCaptionIn 0.6s ease forwards;
}

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

body.loading { overflow: hidden; }
body.loading .page-content { opacity: 0; }
.page-content { transition: opacity 0.6s ease 0.1s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .ambient-glow, .breathing { animation: none; }
}

/* ---------- ambient background: golden particles + golden grid pulse ---------- */
.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}

.ambient-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #D4B478;
  box-shadow: 0 0 6px 1px rgba(212,180,120,0.6);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: ambientParticleLife 2.6s ease forwards;
}

@keyframes ambientParticleLife {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  30%  { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  70%  { opacity: 0.7; transform: translate(-50%, -60%) scale(0.9); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(0.5); }
}

.ambient-grid {
  position: absolute;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%) scale(0.85);
  background-image:
    linear-gradient(rgba(212,180,120,0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,180,120,0.55) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle, black 38%, transparent 72%);
  mask-image: radial-gradient(circle, black 38%, transparent 72%);
  opacity: 0;
  animation: ambientGridHeartbeat 2.8s ease forwards;
}

@keyframes ambientGridHeartbeat {
  0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0.85); }
  9%   { opacity: 0.55; transform: translate(-50%, -50%) scale(1.03); }
  17%  { opacity: 0.12; transform: translate(-50%, -50%) scale(0.97); }
  25%  { opacity: 0.42; transform: translate(-50%, -50%) scale(1.02); }
  34%  { opacity: 0.08; transform: translate(-50%, -50%) scale(0.98); }
  65%  { opacity: 0.06; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(0.9); }
}

/* ---------- custom cursor: glow dot ---------- */
.has-custom-cursor, .has-custom-cursor * { cursor: none !important; }

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D4B478;
  box-shadow: 0 0 10px 2px rgba(212,180,120,0.6);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: width 0.28s cubic-bezier(0.16,1,0.3,1), height 0.28s cubic-bezier(0.16,1,0.3,1),
              background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, opacity 0.2s ease;
  will-change: transform;
}

.custom-cursor.hover {
  width: 38px;
  height: 38px;
  background: rgba(212,180,120,0.10);
  border: 1.5px solid rgba(212,180,120,0.65);
  box-shadow: 0 0 16px 3px rgba(212,180,120,0.28);
}

@media (max-width: 900px) {
  .has-custom-cursor, .has-custom-cursor * { cursor: auto !important; }
  .custom-cursor { display: none; }
}


@media (max-width: 980px) {
  .section-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .shape-row { grid-template-columns: 40px 1fr; }
  .shape-row p { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 72px var(--edge); }
  .hero { min-height: auto; padding: 16vh var(--edge) 10vh; }
  footer.site-footer { flex-direction: column; }
  .test-status-bar { top: 100px; padding: 10px 14px; gap: 12px; }
  .test-status-img { width: 30px; }
  .save-form-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust or Pass game page ---------- */
.game-hero, .game-stage-section, .game-reveal-section { display: none; }
.game-stage-section.show, .game-reveal-section.show { display: block; }
.game-hero.show { display: flex; }

.game-hero {
  position: relative;
  min-height: 70vh;
  align-items: center;
  padding: 16vh var(--edge) 8vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.game-hero-inner { max-width: 640px; position: relative; z-index: 1; }
.game-hero-inner h1 { margin-top: 18px; }
.game-hero-inner .lede {
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 17px;
  max-width: 520px;
}
.game-hero-inner .btn { margin-top: 34px; }

.game-stage-section {
  padding: 90px var(--edge) 110px;
  min-height: 78vh;
}

.game-stage-wrap {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-stack {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 420px;
}

.swipe-card {
  position: absolute;
  inset: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  touch-action: none;
  cursor: grab;
  user-select: none;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.swipe-card:active { cursor: grabbing; }

.swipe-card.depth-0 { z-index: 3; }
.swipe-card.depth-1 { z-index: 2; transform: scale(0.94) translateY(14px); opacity: 0.7; }
.swipe-card.depth-2 { z-index: 1; transform: scale(0.88) translateY(26px); opacity: 0.4; }

.swipe-card-eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 18px;
}

.swipe-card-text {
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.35;
  color: var(--text);
}

.swipe-card-hint {
  position: absolute;
  top: 30px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.15em;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  border: 2px solid;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.trust-hint { right: 24px; color: var(--gold); border-color: var(--gold); transform: rotate(8deg); }
.pass-hint { left: 24px; color: var(--stone); border-color: var(--stone); transform: rotate(-8deg); }

.swipe-card.showing-trust .trust-hint { opacity: 1; }
.swipe-card.showing-pass .pass-hint { opacity: 1; }

.game-progress {
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.swipe-buttons {
  display: flex;
  gap: 26px;
  margin-top: 30px;
}

.swipe-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.swipe-btn:hover { transform: translateY(-2px); }

.pass-btn:hover { border-color: var(--stone); box-shadow: 0 0 0 1px rgba(207,200,188,0.3); }
.trust-btn { color: var(--gold); }
.trust-btn:hover { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(191,160,106,0.3); }

.game-reveal-section {
  padding: 100px var(--edge) 110px;
  background: var(--panel);
}

.pairs-list {
  margin-top: 44px;
  display: grid;
  gap: 0;
  max-width: 780px;
}

.pair-row {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.pair-row:last-child { border-bottom: 1px solid var(--line); }

.pair-cat {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 10px;
}

.pair-line {
  font-size: 15px;
  color: var(--muted);
  padding: 4px 0;
}

.pair-line.was-trusted { color: var(--text); }

.pair-tag {
  display: inline-block;
  min-width: 66px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 10px;
}

.pair-line.was-trusted .pair-tag { color: var(--gold); }

.reveal-closing {
  margin-top: 40px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--stone);
  max-width: 60ch;
}

@media (max-width: 720px) {
  .card-stack { height: 380px; }
  .swipe-card { padding: 28px 22px; }
}

