/* ========================================
   Cole Winslow — Portfolio v2
   Refined Editorial + Atmospheric Depth
   ======================================== */

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

/* ── Design Tokens ── */
:root {
  /* Palette — warm monochrome with controlled richness */
  --bg:        #f6f5f1;
  --bg-warm:   #efeee9;
  --card:      #ffffff;
  --surface:   #edece7;
  --border:    rgba(28, 25, 20, .07);
  --border-h:  rgba(28, 25, 20, .14);
  --text:      #1a1816;
  --text-h:    #0d0c0a;
  --sub:       #5c5850;
  --muted:     #94908a;
  --accent:    #6b33c9;

  /* Typography scale */
  --font-d:  'Instrument Serif', 'Georgia', serif;
  --font-b:  'DM Sans', 'Helvetica Neue', sans-serif;
  --font-m:  'JetBrains Mono', 'Menlo', monospace;

  /* Sizing */
  --max: 1100px;
  --max-wide: 1260px;

  /* Motion */
  --ease:      cubic-bezier(.16, 1, .3, 1);
  --ease-out:  cubic-bezier(.33, 1, .68, 1);
  --ease-in:   cubic-bezier(.7, 0, .84, 0);
  --spring:    cubic-bezier(.34, 1.56, .64, 1);

  /* Hologram */
  --holo-color: #888;
}

/* ── Selection ── */
::selection {
  background: rgba(107, 51, 201, .12);
  color: var(--text-h);
}

/* ── Smooth scroll ── */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-h) transparent;
}

/* ── Body ── */
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Grain overlay — atmospheric texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
}

/* ══════════════════════════════════
   SCROLL REVEALS
   ══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.v {
  opacity: 1;
  transform: none;
}
.d1 { transition-delay: .1s }
.d2 { transition-delay: .2s }
.d3 { transition-delay: .3s }
.d4 { transition-delay: .4s }

.card-grid .card.reveal:nth-child(1) { transition-delay: 0s }
.card-grid .card.reveal:nth-child(2) { transition-delay: .1s }
.card-grid .card.reveal:nth-child(3) { transition-delay: .2s }
.card-grid .card.reveal:nth-child(4) { transition-delay: .3s }


/* ══════════════════════════════════
   NAVIGATION — Refined floating bar
   ══════════════════════════════════ */
nav {
  position: fixed;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 2.5rem);
  max-width: var(--max);
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  background: rgba(246, 245, 241, .72);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(28, 25, 20, .06);
  border-radius: 999px;
  transition: background .4s, border-color .4s;
}
nav.scrolled {
  background: rgba(246, 245, 241, .88);
  border-color: rgba(28, 25, 20, .1);
  box-shadow: 0 1px 20px rgba(0, 0, 0, .04);
}

.n-logo { display: flex; align-items: center }
.n-logo svg {
  height: 19px;
  width: auto;
  opacity: .85;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.n-logo:hover svg {
  opacity: 1;
  transform: scale(1.02);
}

.n-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.n-links a {
  font-size: .78rem;
  color: var(--sub);
  font-weight: 500;
  letter-spacing: .02em;
  transition: color .3s var(--ease);
  position: relative;
}
.n-links a:not(.n-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width .3s var(--ease);
}
.n-links a:not(.n-cta):hover {
  color: var(--text);
}
.n-links a:not(.n-cta):hover::after {
  width: 100%;
}

.n-cta {
  background: var(--text) !important;
  color: var(--bg) !important;
  padding: .42rem 1rem !important;
  border-radius: 999px;
  font-weight: 500 !important;
  font-size: .74rem !important;
  letter-spacing: .02em;
  transition: all .3s var(--ease) !important;
  border: 1px solid transparent;
}
.n-cta:hover {
  background: var(--text-h) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.n-cta:active {
  transform: scale(.97) !important;
}

/* Hamburger */
.n-tog {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 101;
}
.n-tog span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 1px;
  transition: transform .3s var(--ease), opacity .2s;
}


/* ══════════════════════════════════
   HERO + HOLOGRAM
   ══════════════════════════════════ */
.hero {
  width: 100%;
  padding: 8rem 2rem 5rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Soft gradient wash behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse 70% 60% at 60% 40%,
    rgba(107, 51, 201, .03) 0%,
    rgba(107, 51, 201, .01) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  width: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  flex: 1;
  margin-left: 2rem;
  z-index: 10;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: -4rem -3rem;
  background: radial-gradient(ellipse 70% 70% at 30% 50%, var(--bg) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  opacity: .9;
}

/* ── Eyebrow badge ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-m);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 1.4rem;
  padding: .45rem 1rem .45rem .75rem;
  background: rgba(130, 80, 220, .08);
  border-radius: 999px;
  border: 1px solid rgba(130, 80, 220, .25);
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8250dc;
  box-shadow: 0 0 6px rgba(130, 80, 220, .6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .6; transform: scale(.9); box-shadow: 0 0 4px rgba(130, 80, 220, .4) }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 10px rgba(130, 80, 220, .8) }
}

/* ── Hero headline ── */
.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(3.2rem, 6.5vw, 5.4rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
  margin-bottom: 1.4rem;
  color: var(--text-h);
}
.hero h1 em {
  font-style: italic;
  color: var(--sub);
  transition: color .4s var(--ease);
}

/* ── Hero subtitle ── */
.hero-sub {
  font-size: .92rem;
  color: var(--sub);
  line-height: 1.7;
  max-width: 34ch;
  margin-bottom: 2rem;
}

/* ── Buttons ── */
.hero-btns {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}

.b-dark {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.65rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: .8rem;
  border-radius: 10px;
  letter-spacing: .01em;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.b-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.b-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 24, 22, .2);
  color: var(--bg);
}
.b-dark:hover::before { opacity: 1 }
.b-dark:active {
  transform: translateY(0) scale(.98);
}

.b-out {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.65rem;
  border: 1px solid var(--border-h);
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-weight: 600;
  font-size: .8rem;
  border-radius: 10px;
  letter-spacing: .01em;
  transition: all .35s var(--ease);
}
.b-out:hover {
  border-color: rgba(28, 25, 20, .25);
  background: rgba(255, 255, 255, .8);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}
.b-out:active {
  transform: translateY(0) scale(.98);
}

/* ═══ HOLOGRAM ═══ */
.hologram-wrap {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 52%;
  height: 820px;
  z-index: 5;
  opacity: 0;
  animation: holoIn 1.8s var(--ease-out) .6s forwards;
  pointer-events: none;
}

@keyframes holoIn {
  0%   { opacity: 0; filter: blur(10px) brightness(2) }
  50%  { filter: blur(2px) brightness(1.2) }
  100% { opacity: 1; filter: blur(0) brightness(1) }
}

.hologram-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0) brightness(1.2) contrast(1.15);
  transform: scaleX(-1) scale(.85);
  opacity: .28;
  transition: opacity .35s ease;
}

.holo-color {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(100, 100, 100, 0.3) 0%,
    rgba(80, 80, 80, 0.2) 50%,
    rgba(60, 60, 60, 0.25) 100%
  );
  mix-blend-mode: color;
  z-index: 2; pointer-events: none;
}

.holo-screen {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(180, 180, 180, 0.08) 0%,
    rgba(150, 150, 150, 0.04) 50%,
    rgba(120, 120, 120, 0.06) 100%
  );
  mix-blend-mode: screen;
  z-index: 3; pointer-events: none;
}

.holo-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(
    ellipse 50% 45% at 50% 40%,
    rgba(150, 150, 150, 0.07) 0%,
    transparent 70%
  );
  z-index: 1; pointer-events: none;
}

.holo-scanlines {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg,
      transparent 0px, transparent 2px,
      rgba(0, 0, 0, 0.04) 2px, rgba(0, 0, 0, 0.04) 3px
    ),
    repeating-linear-gradient(0deg,
      transparent 0px, transparent 8px,
      rgba(0, 0, 0, 0.02) 8px, rgba(0, 0, 0, 0.02) 9px
    );
  z-index: 4; pointer-events: none;
}

.holo-scanband {
  position: absolute; left: 10%; right: 10%;
  height: 60px;
  background: linear-gradient(180deg,
    transparent,
    rgba(255, 255, 255, 0.04) 20%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.04) 80%,
    transparent
  );
  mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
  z-index: 5; pointer-events: none;
  animation: sweep 8s ease-in-out infinite;
}
@keyframes sweep {
  0%, 100% { top: -60px }
  50% { top: calc(100% + 60px) }
}

.holo-flicker {
  position: absolute; inset: 0;
  z-index: 6; pointer-events: none;
  animation: flicker 6s steps(1) infinite;
}
@keyframes flicker {
  0%    { opacity: 1 }
  8%    { opacity: .9 }
  9%    { opacity: 1 }
  22%   { opacity: 1 }
  23%   { opacity: .93 }
  24%   { opacity: 1 }
  41%   { opacity: 1 }
  42%   { opacity: .88 }
  42.5% { opacity: .95 }
  43%   { opacity: 1 }
  65%   { opacity: 1 }
  66%   { opacity: .91 }
  67%   { opacity: 1 }
  82%   { opacity: 1 }
  83%   { opacity: .94 }
  83.5% { opacity: 1 }
  100%  { opacity: 1 }
}

.holo-fade {
  position: absolute; inset: -5%;
  background:
    linear-gradient(to right,  var(--bg) 8%, transparent 42%),
    linear-gradient(to left,   var(--bg) 4%, transparent 28%),
    linear-gradient(to bottom, var(--bg) 4%, transparent 18%),
    linear-gradient(to top,    var(--bg) 5%, transparent 30%);
  z-index: 7; pointer-events: none;
}

.holo-particles {
  position: absolute; inset: 0;
  z-index: 8; pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute;
  background: var(--holo-color);
  border-radius: 50%;
  opacity: 0;
  animation: pFloat linear infinite;
}
@keyframes pFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0 }
  15%  { opacity: .2 }
  85%  { opacity: .2 }
  100% { transform: translateY(-120px) translateX(10px); opacity: 0 }
}

.holo-base {
  position: absolute; bottom: 4%; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .1), transparent);
  z-index: 9; pointer-events: none;
}
.holo-base::after {
  content: '';
  position: absolute; bottom: -6px; left: 10%; right: 10%;
  height: 12px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .04), transparent);
  filter: blur(8px);
}


/* ══════════════════════════════════
   DIVIDER
   ══════════════════════════════════ */
.sep {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 20;
}
.sep hr {
  border: none;
  height: 1px;
  background: var(--border);
}


/* ══════════════════════════════════
   SECTION SCAFFOLD
   ══════════════════════════════════ */
.sc {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem 2rem;
  position: relative;
  z-index: 20;
}

.sc-header {
  margin-bottom: 3.5rem;
}

.sc-eye {
  font-family: var(--font-m);
  font-size: .62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.sc-eye::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--muted);
  opacity: .5;
}

.sc-title {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--text-h);
}
.sc-title em {
  font-style: italic;
  color: var(--sub);
}


/* ══════════════════════════════════
   WORK SECTION
   ══════════════════════════════════ */
#work {
  margin-top: -5rem;
  padding-top: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 10rem);
}
#work::before {
  content: '';
  display: block;
  height: 8rem;
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

/* ── Project Card ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition:
    transform .4s var(--ease),
    box-shadow .4s var(--ease),
    border-color .3s var(--ease);
  will-change: transform;
}

/* Shimmer overlay on hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(255, 255, 255, .4) 50%,
    transparent 70%
  );
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity .4s;
}

.card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, .03),
    0 12px 32px rgba(0, 0, 0, .06),
    0 28px 56px rgba(0, 0, 0, .03);
}
.card:hover::before {
  opacity: 1;
  animation: shimmer 1.2s var(--ease) forwards;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%) }
  100% { transform: translateX(100%) }
}

/* Featured Cards */
.card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
}

/* Card Text Column */
.card-text {
  min-width: 0;
}

/* Card Demo / Video Column */
.card-demo {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover .demo-placeholder {
  border-color: var(--border-h);
  background: var(--bg-warm);
}
.demo-placeholder svg {
  width: 24px;
  height: 24px;
  color: var(--muted);
  opacity: .4;
}
.demo-placeholder span {
  font-family: var(--font-m);
  font-size: .55rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}

/* When real video is added, swap placeholder for this */
.card-demo video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.card-logo {
  height: 24px;
  width: auto;
  margin-bottom: .7rem;
  display: block;
}

.card-label {
  position: absolute;
  top: -1px;
  right: -1px;
  font-family: var(--font-m);
  font-size: .52rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #fff;
  padding: .4rem .85rem;
  border-radius: 0 14px 0 10px;
}

/* Stride AI Card — Purple border accent */
.card-stride-ai {
  border: 2px solid rgba(107, 51, 201, .3);
  background: linear-gradient(135deg, #fff 0%, rgba(107, 51, 201, .02) 100%);
}
.card-stride-ai:hover {
  border-color: rgba(107, 51, 201, .5);
  box-shadow:
    0 4px 8px rgba(107, 51, 201, .04),
    0 12px 32px rgba(107, 51, 201, .08),
    0 28px 56px rgba(0, 0, 0, .03);
}
.card-stride-ai .card-label {
  background: linear-gradient(135deg, rgb(107, 51, 201), rgb(134, 80, 220));
  top: -2px;
  right: -2px;
}

/* Vera Card — Dark border accent */
.card-vera {
  border: 2px solid rgba(24, 24, 27, .2);
  background: linear-gradient(135deg, #fff 0%, rgba(24, 24, 27, .02) 100%);
}
.card-vera:hover {
  border-color: rgba(24, 24, 27, .4);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, .04),
    0 12px 32px rgba(0, 0, 0, .08),
    0 28px 56px rgba(0, 0, 0, .03);
}
.card-vera .card-label {
  background: linear-gradient(135deg, rgb(24, 24, 27), rgb(50, 50, 55));
  top: -2px;
  right: -2px;
}

/* Card Typography */
.card h3 {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
  color: var(--text-h);
}
.card-featured h3 {
  font-size: 1.35rem;
}
.card p {
  font-size: .84rem;
  color: var(--sub);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 52ch;
}

/* Tech Pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.pill {
  font-family: var(--font-m);
  font-size: .57rem;
  padding: .28rem .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  letter-spacing: .02em;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.card:hover .pill {
  border-color: var(--border-h);
  color: var(--sub);
}

/* Card Links */
.card-links {
  display: flex;
  gap: 1.25rem;
}
.card-links a {
  font-size: .76rem;
  font-weight: 600;
  color: var(--sub);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.card-links a:hover {
  color: var(--text-h);
  gap: .5rem;
}
.card-links a:hover svg {
  transform: translate(1px, -1px);
}
.card-links svg {
  width: 11px;
  height: 11px;
  transition: transform .3s var(--ease);
}


/* ══════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════ */
#about.sc {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
#about .sc-header {
  margin-bottom: 1.75rem;
}
.about-row {
  display: block;
  max-width: 680px;
}
.about-p {
  font-size: .92rem;
  color: var(--sub);
  line-height: 1.85;
}
.about-p strong {
  color: var(--text-h);
  font-weight: 600;
}

/* About Info Cards */
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.a-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  transition:
    transform .35s var(--ease),
    border-color .35s var(--ease),
    box-shadow .35s var(--ease);
}
.a-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}
.a-card h4 {
  font-family: var(--font-m);
  font-size: .56rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .5rem;
}
.a-card p {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
}
.a-card .m {
  font-size: .74rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: .2rem;
}


/* ══════════════════════════════════
   CTA SECTION
   ══════════════════════════════════ */
.cta {
  text-align: center;
  padding: 7rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

/* Subtle radial glow behind CTA */
.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107, 51, 201, .04) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -.025em;
  margin-bottom: .6rem;
  color: var(--text-h);
}
.cta h2 em {
  font-style: italic;
  color: var(--sub);
}
.cta > p {
  font-size: .82rem;
  color: var(--muted);
  font-family: var(--font-m);
  letter-spacing: .02em;
  margin-bottom: 2rem;
}
.cta-btns {
  display: flex;
  justify-content: center;
  gap: .7rem;
  flex-wrap: wrap;
}


/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.f-links {
  display: flex;
  gap: 1.25rem;
}
.f-links a {
  font-size: .7rem;
  color: var(--muted);
  transition: color .3s var(--ease);
  position: relative;
}
.f-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width .3s var(--ease);
}
.f-links a:hover {
  color: var(--text);
}
.f-links a:hover::after {
  width: 100%;
}

.theme-toggle { display: none }

/* ══════════════════════════════════
   PAGE LOAD ANIMATION
   ══════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s var(--ease-out), visibility .6s;
}
.page-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader svg {
  width: 40px;
  height: auto;
  opacity: .3;
  animation: loaderPulse 1.2s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: .2; transform: scale(.95) }
  50%      { opacity: .5; transform: scale(1) }
}


/* ══════════════════════════════════
   RESPONSIVE — TABLET
   ══════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    padding: 6rem 0 2.5rem;
    min-height: 85vh;
    overflow: hidden;
    position: relative;
  }
  .hero-inner {
    position: static;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.25rem;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-left: 0;
  }
  .hero-content::before {
    inset: -2rem -1.5rem;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, var(--bg) 0%, transparent 70%);
    opacity: .85;
  }
  .hero-sub {
    text-align: center;
  }
  .hero-btns { justify-content: center }

  .hologram-wrap {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    transform: none;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  .hologram-wrap video {
    transform: scaleX(-1) scale(.9);
    object-position: center center;
    opacity: .2;
  }
  .holo-fade {
    inset: 0;
    background:
      linear-gradient(to bottom, var(--bg) 0%, transparent 15%),
      linear-gradient(to top,    var(--bg) 2%, transparent 35%),
      linear-gradient(to right,  var(--bg), transparent 8%),
      linear-gradient(to left,   var(--bg), transparent 8%);
  }
  .card-grid { grid-template-columns: 1fr }
  .card-featured { grid-template-columns: 1fr }
  .sc { padding: 5rem 1.5rem }
}


/* ══════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════ */
@media (max-width: 768px) {
  body { font-size: 14px }

  nav {
    top: .75rem;
    width: calc(100% - 1.5rem);
    padding: 0 1rem;
    overflow: visible;
    height: 48px;
  }
  .n-tog { display: block }

  .n-links {
    display: none;
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    left: 0;
    z-index: 99;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow:
      0 8px 32px rgba(0, 0, 0, .08),
      0 1px 2px rgba(0, 0, 0, .04);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem;
  }
  .n-links.open { display: flex }
  .n-links.open a {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    padding: .8rem 1rem;
    border-radius: 10px;
    transition: background .2s;
  }
  .n-links.open a::after { display: none }
  .n-links.open a:hover {
    background: var(--surface);
  }
  .n-links.open .n-cta {
    margin-top: .25rem;
    text-align: center;
    font-size: .82rem !important;
    font-family: var(--font-b) !important;
    padding: .7rem 1rem !important;
    border-radius: 10px !important;
  }

  .hero h1 { font-size: clamp(2.6rem, 9vw, 3.6rem) }
  .hero-sub { font-size: .86rem }

  .sc { padding: 4rem 1.25rem }
  .card { padding: 1.5rem }
  .card p { font-size: .82rem }


  .cta { padding: 4rem 1.25rem }
  .cta h2 { font-size: clamp(1.8rem, 7vw, 2.4rem) }

  footer {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
    padding: 2rem 1.25rem;
  }
}

/* ══════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none }
}
