/* ════════════════════════════════════════
   ROOT & RESET
════════════════════════════════════════ */
:root {
  --cream:        #F7F4EF;
  --warm-white:   #FAF8F4;
  --dark:         #1A161A;
  --dark-card:    #231D23;
  --accent:       #C05C30;
  --accent-deep:  #A84E28;
  --soft:         #C0A882;
  --text-dark:    #1E191A;
  --text-muted:   #8A7A6A;
  --text-light:   #F0EBEF;
  --text-dim:     #B0A090;
  --border-dark:  rgba(240, 235, 239, 0.08);
  --border-light: rgba(192, 92, 48, 0.14);

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* momentum scrolling on iOS */
}

body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* promote to compositor layer for smoother repaints */
  will-change: scroll-position;
}

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


/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  /* start fully transparent */
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
}

/* stays transparent when scrolled — only blur, no fill */
.site-nav.scrolled {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* over a light section — flip text to dark, still no background fill */
.site-nav.light-bg .nav-wordmark { color: var(--text-dark); }
.site-nav.light-bg .nav-inf path  { stroke: var(--accent); }
.site-nav.light-bg .nav-cta {
  background: var(--accent);
  color: #fff;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  transition: opacity .2s ease;
}

.nav-brand:hover { opacity: .75; }

.nav-inf { width: 34px; height: 17px; }

.nav-wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--text-light);
  letter-spacing: -.01em;
  line-height: 1;
  transition: color .4s ease;
}

.nav-cta {
  padding: .6rem 1.25rem;
  font-size: .8rem;
}


/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 7rem;
  position: relative;
  overflow: hidden;
}

/* ── Warm gradient wash (top-left amber bloom) ── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 20% 10%,  rgba(192, 92, 48, 0.28) 0%,  transparent 55%),
    radial-gradient(ellipse 60% 50% at 75% 80%,  rgba(120, 40, 20, 0.15)  0%,  transparent 60%),
    radial-gradient(ellipse 50% 40% at 55% 40%,  rgba(210, 140, 40, 0.10) 0%,  transparent 50%);
  animation: gradient-breathe 14s ease-in-out infinite alternate;
}

/* ── Vertical light-streak lines (like the reference) ── */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* thin vertical streaks that fade out toward center & bottom */
  background-image: repeating-linear-gradient(
    90deg,
    transparent                     0px,
    transparent                     28px,
    rgba(255, 255, 255, 0.022)      28px,
    rgba(255, 255, 255, 0.022)      29px
  );
  /* vignette mask so streaks only show at the top and edges */
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 20%, transparent 75%);
  mask-image:         radial-gradient(ellipse 100% 80% at 50% 0%, black 20%, transparent 75%);
  animation: streaks-drift 20s ease-in-out infinite alternate;
}

@keyframes gradient-breathe {
  0%   { opacity: 1;    transform: scale(1)    translateY(0); }
  100% { opacity: 0.75; transform: scale(1.06) translateY(-20px); }
}

@keyframes streaks-drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-29px); } /* shift by exactly one stripe repeat */
}

/* ── Floating colour orbs ── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  /* promote to own compositing layer so blur doesn't re-paint on move */
  will-change: transform;
  transform: translateZ(0);
}

.hero-orb-a {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(192, 92, 48, 0.22) 0%, transparent 70%);
  top: -15%; left: -10%;
  animation: orb-drift-a 18s ease-in-out infinite alternate;
}

.hero-orb-b {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(220, 160, 40, 0.12) 0%, transparent 70%);
  top: 10%; right: 5%;
  animation: orb-drift-b 22s ease-in-out infinite alternate;
}

.hero-orb-c {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(90, 30, 60, 0.14) 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation: orb-drift-c 26s ease-in-out infinite alternate;
}

@keyframes orb-drift-a {
  0%   { transform: translate(0,   0)    scale(1); }
  100% { transform: translate(60px, 80px) scale(1.12); }
}
@keyframes orb-drift-b {
  0%   { transform: translate(0,   0)     scale(1); }
  100% { transform: translate(-50px,-60px) scale(0.88); }
}
@keyframes orb-drift-c {
  0%   { transform: translate(0,  0)    scale(1); }
  100% { transform: translate(40px,50px) scale(1.2); }
}

/* ── Noise + grain layer (shared) ── */
.hero-grain,
.section-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: .055;
  mix-blend-mode: overlay;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Infinity logo */
.logo-wrap { margin-bottom: 2rem; }

.infinity-svg { width: 110px; height: 55px; }

.inf-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-path 2s var(--ease) forwards 0.3s;
}

@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

/* Wordmark */
.wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  letter-spacing: -.015em;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up .9s var(--ease) forwards 1.1s;
}

.hero-rule {
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-in .5s ease forwards 1.6s;
}

.hero-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  color: var(--text-light); /* full weight — primary headline */
  margin-bottom: 1.25rem;
  line-height: 1.1;
  opacity: 0;
  animation: fade-up .7s var(--ease) forwards 0.4s;
}

.hero-caps {
  font-family: var(--sans);
  font-size: clamp(.65rem, 1.8vw, .8rem);
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0; /* accent label — let accent colour do the work */
  margin-bottom: 2.75rem;
  animation: fade-up .7s var(--ease) forwards 0.8s;
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(240, 235, 239, 0.6); /* supporting copy — pulled back */
  max-width: 42ch;
  margin: 0 auto 2.75rem;
  line-height: 1.7;
  opacity: 0;
  animation: fade-up .7s var(--ease) forwards 1s;
}

/* Pill row */
.feature-pills {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fade-up .7s var(--ease) forwards 1.1s;
}

.pill {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .03em;
}

.pill svg { opacity: .65; flex-shrink: 0; }

.pill-dot { color: rgba(240,235,239,.2); font-size: 1.1rem; line-height: 1; }

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 2rem;
  background: linear-gradient(135deg, #D46A38 0%, #C05C30 50%, #A84E28 100%);
  color: #fff;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(192, 92, 48, .3), 0 1px 0 rgba(255,255,255,.15) inset;
  transition: transform .25s var(--ease), box-shadow .25s;
}

/* shimmer sweep on hover */
.btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s var(--ease);
}

.btn-cta:hover::after { transform: translateX(100%); }

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(192, 92, 48, .4), 0 1px 0 rgba(255,255,255,.15) inset;
}

/* Physical press feel */
.btn-cta:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 4px 12px rgba(192, 92, 48, .3);
  transition: transform .1s ease, box-shadow .1s ease;
}

.hero-btn {
  opacity: 0;
  animation: fade-up .7s var(--ease) forwards 1.4s;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fade-in 1s ease forwards 3.2s;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  transform-origin: top;
  animation: scroll-breathe 2.4s ease-in-out infinite 3.8s;
}

@keyframes scroll-breathe {
  0%, 100% { opacity: .35; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(.7); }
}


/* ════════════════════════════════════════
   SHARED UTILITIES
════════════════════════════════════════ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: .65; /* directional label — secondary importance */
  margin-bottom: .85rem;
}

.light-eye { color: var(--text-dim); opacity: .55; }

.section-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 4rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ════════════════════════════════════════
   PILLARS
════════════════════════════════════════ */
.pillars-section {
  background: var(--cream);
  padding: 8rem 2rem;
  text-align: center;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 4rem auto 0;
}

.pillar-card {
  will-change: transform;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  /* warm dark parchment — belongs to the same palette as the hero */
  background: linear-gradient(160deg, #28201E 0%, #211A18 100%);
  border: 1px solid rgba(192, 92, 48, 0.12);
  border-top-color: rgba(192, 92, 48, 0.22); /* faint warm top rim */
  border-radius: 16px;
  padding: 2rem 1.75rem 2.25rem;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}

.pillar-card:hover {
  border-color: rgba(192, 92, 48, 0.28);
  border-top-color: rgba(192, 92, 48, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 0 transparent;
}

/* thin amber left-edge accent line */
.pillar-card::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 0;
  width: 2px;
  height: 60%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(to bottom, transparent, rgba(192, 92, 48, 0.5), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}

.pillar-card:hover::before { opacity: 1; }

.pillar-icon {
  width: 36px;
  height: 36px;
  background: rgba(192, 92, 48, 0.1);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.pillar-icon svg { width: 18px; height: 18px; }

.pillar-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  color: rgba(240, 235, 232, 0.92);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}

.pillar-card p {
  font-size: .875rem;
  line-height: 1.75;
  color: rgba(190, 175, 165, 0.65);
}


/* ════════════════════════════════════════
   SHOWCASE SECTIONS
════════════════════════════════════════ */
.showcase { padding: 8rem 0; position: relative; }

/* ── Margin deco shapes — desktop only ── */
.showcase-deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}

.showcase-deco.visible { opacity: 1; }

.showcase-deco--left  { left: 2rem; }
.showcase-deco--right { right: 2rem; }

.showcase-deco svg { display: block; overflow: visible; }

/* Hide below 1300px where margins don't exist */
@media (max-width: 1300px) {
  .showcase-deco { display: none; }
}

.dark-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

/* Muted streak + grain on dark showcase sections for visual continuity */
.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 10% 50%, rgba(192, 92, 48, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 50%, rgba(120, 40, 20, 0.06) 0%, transparent 60%);
}

.dark-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 28px,
    rgba(255, 255, 255, 0.012) 28px,
    rgba(255, 255, 255, 0.012) 29px
  );
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  mask-image:         linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
}
.light-section { background: var(--warm-white); }

.showcase-layout {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.showcase-layout.reverse { flex-direction: row-reverse; }

.showcase-text { flex: 1; min-width: 0; }

/* Display headings inside showcases */
.display-light {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--text-light); /* primary — full opacity */
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.display-dark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--text-dark); /* primary — full opacity */
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.display-dark em {
  font-style: italic;
  color: var(--accent);
}

.body-light {
  font-size: .95rem;
  line-height: 1.75;
  color: rgba(240, 235, 239, 0.55); /* supporting — pulled back */
  max-width: 420px;
}

.body-dark {
  font-size: .95rem;
  line-height: 1.75;
  color: rgba(30, 25, 26, 0.55); /* supporting — pulled back */
  max-width: 420px;
}

.showcase-phone {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-wrap {
  position: relative;
  transition: transform .35s var(--ease), filter .35s ease;
}

.phone-wrap:hover {
  transform: translateY(-8px) scale(1.02);
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.35));
}


/* ════════════════════════════════════════
   PHONE MOCKUP BASE
════════════════════════════════════════ */
.phone {
  width: 255px;
  aspect-ratio: 390 / 844;
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-screen {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dark-phone {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 50px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
}

.light-phone {
  background: var(--warm-white);
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 40px 80px rgba(0,0,0,.2);
}

.phone-notch {
  width: 96px;
  height: 22px;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.dark-notch  { background: var(--dark); }
.light-notch { background: var(--cream); }


/* ── App bar ── */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 6px;
  background: var(--dark);
}

.app-bar-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-light);
}

.display-sm {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.app-bar-right { display: flex; align-items: center; gap: 7px; }

.icon-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(240,235,239,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

.avatar-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}


/* ── Vault grid nav ── */
.vg-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px 5px;
  background: #F7F4EF;
}

.vg-back { font-size: 18px; color: var(--text-dark); line-height: 1; }

.vg-pills { display: flex; gap: 4px; flex: 1; }

.vg-pill {
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 100px;
  padding: 3px 8px;
  font-size: 7px;
  color: var(--text-dark);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.vg-pill:hover  { background: rgba(0,0,0,.06); }
.vg-pill:active { transform: scale(0.93); background: rgba(0,0,0,.1); }


/* ── Memory grid ── */
.memory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px 8px;
  flex: 1;
  overflow: hidden;
  background: #F7F4EF;
}

.mem-tile {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 7px;
  min-height: 80px;
}

.mem-fav {
  position: absolute;
  top: 5px; right: 6px;
  font-size: 9px;
  color: rgba(255,255,255,.65);
}

.mem-fav.dark { color: rgba(0,0,0,.25); }

.mem-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mem-play {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,.9);
}

.mem-report {
  flex: 1;
  padding: 2px 0;
}

.mem-report-title {
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.mem-report-row {
  display: flex;
  justify-content: space-between;
  font-size: 6.5px;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding: 2px 0;
}

.grade { color: var(--accent); font-weight: 600; }

.mem-letter { flex: 1; padding: 2px 0; }

.letter-salutation {
  font-size: 6.5px;
  font-style: italic;
  color: rgba(0,0,0,.5);
  margin-bottom: 5px;
}

.letter-line {
  height: 1px;
  background: rgba(0,0,0,.18);
  border-radius: 1px;
  margin-bottom: 4px;
}

.letter-line.short { width: 55%; }

.mem-info { margin-top: auto; }

.mem-title {
  font-size: 7.5px;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  line-height: 1.2;
}

.mem-title.dark-txt { color: var(--text-dark); }

.mem-date {
  font-size: 6px;
  color: rgba(255,255,255,.6);
  margin-top: 1px;
}

.mem-date.dark-txt { color: var(--text-muted); }


/* ── Vault list ── */
.vault-list {
  padding: 6px 10px 4px;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  overflow: hidden;
}

.vault-row {
  background: var(--dark-card);
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.vault-row:hover  { background: #2C2426; }
.vault-row:active { transform: scale(0.97); background: #322628; }

.v-emoji { font-size: 17px; flex-shrink: 0; }

.v-info { flex: 1; min-width: 0; }

.v-name {
  font-size: 10px; font-weight: 600;
  color: var(--text-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.v-count { font-size: 8.5px; color: var(--text-dim); margin-top: 1px; }

.v-shared { display: flex; align-items: center; gap: 3px; margin-top: 4px; }

.v-private { font-size: 8px; color: var(--text-dim); margin-top: 4px; }

.dot-avatar {
  width: 13px; height: 13px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 6.5px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.shared-txt { font-size: 7.5px; color: var(--text-dim); margin-left: 2px; }

.v-chev { color: var(--text-dim); font-size: 15px; flex-shrink: 0; }

.vault-new {
  background: rgba(192,92,48,.09);
  border: 1px dashed rgba(192,92,48,.3);
  border-radius: 12px;
  padding: 9px 11px;
  display: flex; align-items: center; gap: 8px;
}

.new-plus {
  width: 20px; height: 20px;
  border-radius: 6px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; color: #fff; font-weight: 300;
}

.new-label { font-size: 10px; font-weight: 500; color: var(--accent); }


/* ── Tab bar ── */
.tab-bar {
  display: flex;
  justify-content: space-around;
  padding: 9px 0 14px;
  background: var(--warm-white);
  border-top: 1px solid rgba(0,0,0,.06);
}

.dark-tab {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
}

.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 8.5px; color: var(--text-muted);
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.tab:hover  { opacity: .75; }
.tab:active { transform: scale(0.88); }

.dark-tab .tab { color: var(--text-dim); }

.tab-active { color: var(--text-dark) !important; }
.dark-tab .tab-active { color: var(--text-light) !important; }

.tab-accent { color: var(--accent) !important; }


/* ── Scan screen ── */
.scan-bar {
  padding: 8px 14px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}

.scan-title {
  font-size: .65rem; font-weight: 700; letter-spacing: .18em;
  color: var(--text-dark);
}

.scan-view {
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center;
  padding-bottom: 6px;
}

.scan-frame {
  width: 218px; min-height: 270px;
  background: #F0EBE0;
  border-radius: 6px;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  overflow: hidden;
}

.corner-tl, .corner-tr, .corner-bl, .corner-br {
  position: absolute; width: 15px; height: 15px;
  border-style: solid; border-color: var(--text-dark);
}
.corner-tl { top:6px; left:6px;  border-width: 2px 0 0 2px; }
.corner-tr { top:6px; right:6px; border-width: 2px 2px 0 0; }
.corner-bl { bottom:6px; left:6px;  border-width: 0 0 2px 2px; }
.corner-br { bottom:6px; right:6px; border-width: 0 2px 2px 0; }

.scan-art { width: 100%; height: auto; display: block; }

.scan-scanning {
  position: absolute; bottom: 9px;
  font-size: 7px; letter-spacing: .14em;
  color: rgba(30,25,26,.5);
}

.scan-btn-row {
  display: flex; justify-content: center; padding: 8px 0 4px;
}

.shutter-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 8px rgba(192, 92, 48, .4);
}

.shutter-btn:hover  { box-shadow: 0 4px 14px rgba(192, 92, 48, .55); transform: scale(1.06); }
.shutter-btn:active { transform: scale(0.9); box-shadow: 0 1px 4px rgba(192, 92, 48, .3); }


/* ── Share screen ── */
.share-screen {
  padding: 11px 13px 10px;
  background: var(--warm-white);
}

.share-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 9px;
}

.share-title-text {
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: 500;
  color: var(--text-dark);
}

.share-done-btn {
  font-size: .65rem; color: var(--accent); font-weight: 500;
  padding: 3px 8px;
  border: 1px solid var(--accent); border-radius: 100px;
}

.share-counts {
  background: var(--cream);
  border-radius: 10px;
  padding: 9px;
  display: flex;
  align-items: center;
  margin-bottom: 9px;
}

.share-count-col { flex: 1; text-align: center; }

.share-divider {
  width: 1px; height: 24px;
  background: rgba(192,92,48,.2);
}

.sc-label { font-size: 8px; font-weight: 600; color: var(--text-dark); }
.sc-val   { font-size: 8px; color: var(--text-muted); margin-top: 2px; }

.field-label {
  font-size: 6.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.collab-title { margin-top: 8px; }

.invite-field {
  background: var(--cream);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 8.5px; color: var(--text-muted);
  margin-bottom: 7px;
}

.role-row { display: flex; gap: 4px; margin-bottom: 8px; }

.role-opt {
  flex: 1;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  font-size: 7.5px; font-weight: 600;
  color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.role-opt:hover  { border-color: rgba(192, 92, 48, .3); background: rgba(192, 92, 48, .04); }
.role-opt:active { transform: scale(0.95); }

.role-opt span { font-size: 6.5px; font-weight: 400; }

.dark-role {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.send-invite {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 7px;
  text-align: center;
  font-size: 8.5px; font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
  position: relative;
  overflow: hidden;
}

.send-invite:hover  { filter: brightness(1.1); }
.send-invite:active { transform: scale(0.96); filter: brightness(0.95); }

.collab-list { display: flex; flex-direction: column; gap: 6px; }

.collab-row { display: flex; align-items: center; gap: 7px; }

.c-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 7.5px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.c-info { flex: 1; min-width: 0; }
.c-name  { font-size: 8.5px; font-weight: 600; color: var(--text-dark); }
.c-email { font-size: 7.5px; color: var(--text-muted); }

.c-status { text-align: right; font-size: 7.5px; color: var(--text-dark); }
.c-role   { font-size: 7.5px; }
.c-badge  { font-size: 7px; margin-top: 1px; }
.accepted { color: #2D7A2D; }
.pending  { color: var(--text-muted); }


/* ── Tags screen ── */
.tag-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px 5px;
  background: #fff;
}

.back-arrow { font-size: 17px; color: var(--text-dark); }

.tag-actions { display: flex; gap: 12px; }

.tag-img { position: relative; overflow: hidden; }

.photo-pill {
  position: absolute; top: 7px; left: 7px;
  background: rgba(0,0,0,.38);
  color: #fff;
  font-size: 6.5px; font-weight: 700; letter-spacing: .1em;
  padding: 2px 6px; border-radius: 4px;
  z-index: 1;
}

.tag-body { padding: 0 13px 10px; background: #fff; }

.field-label-sm {
  font-size: 6.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--text-muted);
  padding-top: 7px;
  margin-bottom: 3px;
}

.tags-row-label { display: flex; align-items: center; justify-content: space-between; }

.edit-tags {
  font-size: 6.5px; font-weight: 400;
  color: var(--accent); letter-spacing: 0;
}

.tag-field-val {
  background: #F5F0EA;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 9px; color: var(--text-dark);
  margin-bottom: 1px;
}

.tag-date-val {
  display: inline-block;
  background: #F5F0EA;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 8.5px; color: var(--text-dark);
}

.tag-group { padding-top: 4px; }

.tag-cat-row { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.tag-cat-icon { font-size: 8px; opacity: .55; }
.tag-cat-name { font-size: 6.5px; font-weight: 700; letter-spacing: .1em; color: var(--text-muted); }

.chip-row { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 3px; }

.chip {
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 7.5px; font-weight: 500;
}

.filled  { background: var(--accent); color: #fff; }
.outline { border: 1px solid var(--border-light); color: var(--text-muted); }


/* ════════════════════════════════════════
   FINAL CTA
════════════════════════════════════════ */
.final-cta {
  background: radial-gradient(ellipse 70% 60% at 50% 40%, #261F26 0%, var(--dark) 70%);
  padding: 10rem 2rem 9rem;
  text-align: center;
}

.cta-inner { max-width: 580px; margin: 0 auto; }

.inf-sm { width: 70px; height: 35px; margin-bottom: 2.5rem; }

.cta-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 7vw, 5rem);
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cta-sub {
  font-family: var(--sans);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}

.cta-fine {
  margin-top: 1.5rem;
  font-size: .78rem;
  color: var(--text-dim);
  opacity: .5; /* secondary tagline — softened */
  letter-spacing: .03em;
}


/* ════════════════════════════════════════
   SCROLL PROGRESS BAR
════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #E8903A);
  z-index: 200;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(192, 92, 48, .5);
}

/* Gradient scrim — blurs and fades from the top edge downward */
.top-scrim {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 99;
  background: linear-gradient(
    to bottom,
    rgba(26, 22, 26, 0.45) 0%,
    rgba(26, 22, 26, 0.18) 40%,
    rgba(26, 22, 26, 0.04) 70%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  transition: opacity .4s ease;
}

/* Fade scrim out over light sections so it doesn't tint the cream bg */
.top-scrim.light-mode {
  background: linear-gradient(
    to bottom,
    rgba(250, 248, 244, 0.5) 0%,
    rgba(250, 248, 244, 0.15) 50%,
    transparent 100%
  );
}


/* ════════════════════════════════════════
   SIDE SECTION DOTS
════════════════════════════════════════ */
.section-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-end;
}

.section-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(240, 235, 239, 0.25);
  border: 1px solid rgba(240, 235, 239, 0.2);
  transition: background .3s ease, transform .3s ease, width .3s ease;
  cursor: pointer;
  display: block;
}

/* Label that slides in on hover */
.section-dot::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.section-dot:hover::before,
.section-dot.active::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.section-dot:hover {
  background: rgba(240, 235, 239, 0.5);
  transform: scale(1.4);
}

.section-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(192, 92, 48, .5);
}

/* Over light sections — flip dot colours */
.section-dots.light-mode .section-dot {
  background: rgba(30, 25, 26, 0.2);
  border-color: rgba(30, 25, 26, 0.15);
}

.section-dots.light-mode .section-dot::before {
  color: var(--text-muted);
}

.section-dots.light-mode .section-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* Hide dots on small screens */
@media (max-width: 820px) {
  .section-dots { display: none; }
}


/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 4rem 2rem 2.5rem;
  text-align: center;
}

.footer-cta {
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.footer-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--text-light);
}

.footer-copy { font-size: .72rem; color: var(--text-dim); opacity: .4; } /* least important */


/* ════════════════════════════════════════
   KEYFRAMES
════════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ripple-out {
  to { transform: scale(1); opacity: 0; }
}


/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */

/* ════════════════════════════════════════
   MOBILE PERFORMANCE — kill expensive GPU
   ops that cause jank on phones
════════════════════════════════════════ */
@media (max-width: 820px) {

  /* Replace animated blur orbs with a static gradient — blur filter on
     animated/composited layers is the #1 mobile jank source             */
  .hero-orb { display: none; }

  .hero::before {
    animation: none;
    background:
      radial-gradient(ellipse 100% 60% at 25% 15%, rgba(192, 92, 48, 0.22) 0%, transparent 55%),
      radial-gradient(ellipse 60% 40% at 80% 75%, rgba(120, 40, 20, 0.12) 0%, transparent 55%);
  }

  .hero::after { animation: none; }

  /* Static dark section glows — no animation */
  .dark-section::before,
  .dark-section::after { animation: none; }

  /* Disable phone hover lift (touch has no hover) */
  .phone-wrap:hover {
    transform: none;
    filter: none;
  }

  /* Disable reveal transition on very small screens — just show elements */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

}

/* ════════════════════════════════════════
   TABLET  (≤820px)
════════════════════════════════════════ */
@media (max-width: 820px) {
  /* Showcase sections stack vertically */
  .showcase-layout,
  .showcase-layout.reverse {
    flex-direction: column;
    gap: 3rem;
  }

  .showcase-text { text-align: center; }
  .body-light, .body-dark { max-width: 100%; }
  .eyebrow, .light-eye { text-align: center; }

  /* Phone always on top */
  .showcase-phone,
  .showcase-layout.reverse .showcase-phone { order: -1; }

  .showcase { padding: 5rem 0; }

  /* Pillar grid 2-col on tablet */
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hero orbs scale down */
  .hero::before { width: 480px; height: 480px; }
  .hero::after  { width: 340px; height: 340px; }
  .hero-orb     { width: 280px; height: 280px; }
}

/* ════════════════════════════════════════
   MOBILE  (≤520px)
════════════════════════════════════════ */
@media (max-width: 520px) {
  /* Nav */
  .site-nav { padding: .85rem 1.25rem; }
  .nav-cta  { display: none; }

  /* Hero */
  .hero { padding: 6rem 1.5rem 5rem; }
  .hero-italic  { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-caps    { font-size: .6rem; margin-bottom: 1.5rem; }
  .hero-sub     { font-size: .875rem; margin-bottom: 2rem; }

  /* Pillar cards stack single-col */
  .pillar-grid {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
    gap: 1rem;
  }
  .pillar-card { padding: 1.75rem 1.25rem; }

  /* Showcase sections */
  .showcase { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  /* Phone mockup smaller */
  .phone       { width: 220px; }
  .scan-frame  { width: 188px; }

  /* Text sizing */
  .display-dark,
  .display-light { font-size: clamp(2rem, 9vw, 3rem); }

  .body-dark,
  .body-light    { font-size: .9rem; }

  /* Footer */
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-cta { margin-bottom: 2rem; }
  .btn-cta { font-size: .85rem; padding: .8rem 1.5rem; }
}
