/* ============================================================
   portfolio.css — single shared stylesheet for all pages

   Body classes control page context:
     body.home  → index.html (portfolio home)
     body.cs    → case study pages (hawk, curaay, scouting)
     body.pw    → password.html
   ============================================================ */


/* ── PAGE LOADER ─────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-name {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: #1B3A6B;
  opacity: 0;
  animation: loader-appear 0.25s ease 0.05s forwards;
}

@keyframes loader-appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes loader-to-gold {
  0%   { color: #1B3A6B; }
  100% { color: #E8B84B; }
}

.loader-bar-track {
  width: 80px;
  height: 1.5px;
  background: #D9D1C5;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 14px;
}
.loader-bar-fill {
  height: 100%;
  width: 0;
  background: #E8B84B;
  border-radius: 2px;
  animation: loader-fill 1.5s cubic-bezier(0.4, 0, 0.15, 1) forwards;
}
@keyframes loader-fill {
  0%   { width: 0; }
  70%  { width: 80%; }
  100% { width: 92%; }
}
/* ── END PAGE LOADER ─────────────────────────────────────────── */


/* ── 1. COLOR SCHEME ──────────────────────────────────────────
   Unified token set. Aliases let each page's original token
   names keep working without touching HTML or JS.
   ─────────────────────────────────────────────────────────── */
:root {
  /* Background */
  --bg:          #F5F1EB;   /* primary background — warm off-white */
  --beige:       #F5F1EB;   /* alias — home / password name */
  --bg-alt:      #EDE8E0;   /* alternate surface / card backgrounds */
  --beige-mid:   #EDE8E0;   /* alias */

  /* Structural */
  --rule:        #D9D1C5;   /* dividers — case study name */
  --gray-warm:   #D9D1C5;   /* alias — home / password name */

  /* Text */
  --ink:         #1A1714;   /* near-black primary text (case studies) */
  --ink-muted:   #6B6359;   /* secondary text — case study name */
  --text-muted:  #6B6359;   /* alias — home / password name */
  --text-main:   #1B3A6B;   /* home body text (navy) */

  /* Brand / Navy */
  --navy:        #1B3A6B;   /* primary brand navy */
  --navy-mid:    #254d8f;
  --navy-light:  #3d6cb0;

  /* Accent — golden (home/password default) */
  --accent:      #E8B84B;
  --accent-dark: #c99a2e;

  /* Case study accent tints */
  --accent-pale: #E4EAF4;
  --accent-light:#7FA8D4;

  /* Highlight — inline em colour */
  --highlight:   #E8B84B;   /* golden default; case studies override inline */

  /* Decorative */
  --num-ghost:   #E6E0D6;

  /* Typography */
  --serif: 'Syne', sans-serif;
  --sans:  'Inter', system-ui, sans-serif;

  /* Layout */
  --max:  956px;
  --wide: 1100px;
  --pad:  clamp(24px, 5vw, 80px);
}

/* Case study pages: flip accent to navy (hawk/curaay override further inline) */
body.cs {
  --accent:      #1B3A6B;
  --accent-pale: #E4EAF4;
  --accent-light:#7FA8D4;
  --highlight:   #E8B84B;
}


/* ── 2. BASE RESET ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }


/* ── 3. PAGE BASE ─────────────────────────────────────────── */
body.home {
  font-family: 'Inter', sans-serif;
  background: var(--beige);
  color: var(--text-main);
  cursor: none;
  overflow-x: hidden;
}

body.cs {
  background: var(--bg);
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.pw {
  font-family: 'Inter', sans-serif;
  background: var(--beige);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

#app { min-height: 100vh; }


/* ── 4. GLOBAL ELEMENTS (case study context) ──────────────── */
body.cs a { color: var(--accent); text-decoration: none; }
body.cs a:hover { text-decoration: underline; }

body.cs h1, body.cs h2, body.cs h3,
body.cs h4, body.cs h5, body.cs h6 { color: #1B3A6B; }

body.cs p { margin-bottom: 20px; }
body.cs p:last-child { margin-bottom: 0; }


/* ═══════════════════════════════════════════════════════════
   CASE STUDY PAGES  (body.cs)
   ═══════════════════════════════════════════════════════════ */


/* ── 5. PROGRESS BAR ─────────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}


/* ── 6. NAV ──────────────────────────────────────────────── */
body.cs nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 16px clamp(16px, 5vw, 48px);
  display: flex; justify-content: space-between; align-items: center;
}

.nav-name {
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink);
}

.nav-back {
  font-size: 13px; color: var(--ink-muted);
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.nav-back::before { content: '←'; }
.nav-back:hover { color: var(--ink); text-decoration: none; }


/* ── 7. HERO TEXT BLOCK ──────────────────────────────────── */
.hero-text {
  width: 100%; max-width: 956px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) clamp(16px, 5vw, 48px) clamp(48px, 6vw, 80px);
  box-sizing: border-box;
  position: relative; z-index: 0;
}

body.cs .hero-tag {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
body.cs .hero-tag::after {
  content: ''; display: block;
  width: 40px; height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.08; font-weight: 400;
  max-width: 15ch; margin-bottom: 48px;
}
.hero-title em { font-style: italic; color: var(--highlight); }

.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: var(--max);
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.meta-item label {
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-muted);
  display: block; margin-bottom: 6px;
}
.meta-item span { font-size: 14px; font-weight: 500; color: var(--ink); }


/* ── 8. HERO STICKY IMAGE ZONE ───────────────────────────── */
.hero-image-zone { position: relative; height: 100vh; z-index: 1; overflow: clip; }

.hero-image-wrap {
  width: 100%; max-width: min(1280px, 90vw);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  box-sizing: border-box;
}

.hero-image {
  position: sticky;
  top: calc(50vh - 310px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  z-index: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-image img {
  width: 100%;
  object-fit: contain;
  height: 620px;
  display: block;
}


/* ── 9. SECTIONS ─────────────────────────────────────────── */
.sections-wrapper { position: relative; z-index: 10; background: var(--bg); }

.section {
  width: 100%;
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
  background: var(--bg);
}
.section + .section { border-top: 1px solid var(--rule); }
.section:first-child {
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.10);
}

.section-inner {
  width: 100%; max-width: 956px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  box-sizing: border-box;
  overflow: hidden;
  position: relative; z-index: 1;
}

.section-num {
  font-family: var(--serif);
  font-size: clamp(80px, 14vw, 180px);
  line-height: 1;
  color: var(--num-ghost);
  position: absolute;
  top: clamp(20px, 4vw, 48px);
  right: var(--pad);
  pointer-events: none; user-select: none;
  z-index: 0;
}

body.cs .section-label {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
body.cs .section-label::before {
  content: ''; display: block;
  width: 20px; height: 1px;
  background: var(--ink-muted);
}


/* ── 10. TYPOGRAPHY ──────────────────────────────────────── */
body.cs h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400; line-height: 1.15;
  margin-bottom: 28px;
}

body.cs h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 400;
  margin-bottom: 16px; margin-top: 40px;
}


/* ── 11. PULLQUOTE ───────────────────────────────────────── */
.pullquote {
  border-left: 3px solid var(--accent-light);
  padding: 24px 32px; margin: 48px 0;
  background: var(--accent-pale);
  border-radius: 0 4px 4px 0;
}
.pullquote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.4; color: var(--ink);
  margin-bottom: 12px;
}
.pullquote cite {
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted);
  font-style: normal;
}


/* ── 12. TENSION BLOCK ───────────────────────────────────── */
.tension {
  background: var(--ink); color: #F5F1EB;
  padding: 40px 48px; border-radius: 4px; margin: 48px 0;
}
.tension-label {
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--highlight);
  margin-bottom: 16px;
}
.tension h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  color: #F5F1EB;
  margin-bottom: 16px; margin-top: 0;
}
.tension p { color: #C8C0B4; margin-bottom: 0; font-size: 15px; }
.tension p + p { margin-top: 12px; }


/* ── 13. IMAGE BLOCK ─────────────────────────────────────── */
.img-block {
  margin: 48px auto;
  max-width: var(--max); width: 100%;
  padding: 0 clamp(16px, 5vw, 48px);
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
}
.img-block img { width: 100%; border-radius: 12px; }
.section-inner .img-block { padding: 0; max-width: none; }

.img-caption {
  font-size: 12px; color: var(--ink-muted);
  margin-top: 10px; font-style: italic;
}


/* ── 14. METRICS GRID ────────────────────────────────────── */
.metrics {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; margin: 48px 0;
  background: var(--rule); border-radius: 4px; overflow: hidden;
}
.metric { background: var(--bg); padding: 36px 32px; }
.metric-num {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1; color: var(--accent); margin-bottom: 8px;
}
.metric-label { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }


/* ── 15. PAIN / CARD GRID ────────────────────────────────── */
.pain-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin: 40px 0;
}

.pain-item {
  padding: 24px;
  background: var(--bg-alt);
  border-radius: 4px;
  border-top: 3px solid var(--accent);
}
.pain-num {
  font-family: var(--serif); font-size: 11px;
  letter-spacing: 0.1em; color: var(--accent);
  margin-bottom: 10px;
}
.pain-title { font-weight: 500; font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.pain-text { font-size: 13px; color: var(--ink-muted); line-height: 1.55; margin-bottom: 16px; }
.pain-solution {
  font-size: 12px; color: var(--accent); font-weight: 500;
  display: flex; align-items: flex-start; gap: 6px;
}
.pain-solution::before { content: '→'; flex-shrink: 0; }

.pain-item.rejected { border-top-color: var(--accent); opacity: 0.8; }
.pain-item.rejected .pain-num { color: var(--ink-muted); }
.pain-solution.struck { text-decoration: line-through; opacity: 0.5; }
.pain-solution.struck::before { content: '✗'; }


/* ── 16. OUTCOME GRID ────────────────────────────────────── */
.outcome-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; margin: 48px 0;
  background: var(--rule); border-radius: 4px; overflow: hidden;
}
.outcome-item { background: var(--bg); padding: 36px 32px; }
.outcome-num {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1; color: var(--accent); margin-bottom: 8px;
}
.outcome-label { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }


/* ── 17. LESSONS LIST ────────────────────────────────────── */
.lessons-list { list-style: none; margin: 32px 0; }
.lessons-list li {
  padding: 20px 0 20px 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px; color: var(--ink-muted);
  position: relative; line-height: 1.6;
}
.lessons-list li::before {
  content: '↳';
  position: absolute; left: 0;
  color: var(--accent);
}


/* ── 18. NEXT PROJECT FOOTER ─────────────────────────────── */
.next-project {
  max-width: 100%; margin: 0 auto;
  padding: 64px clamp(16px, 5vw, 48px);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg);
}
.next-label {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 8px;
}
.next-title {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 400;
}
.next-arrow {
  font-family: var(--serif); font-size: 40px;
  color: var(--accent); transition: transform 0.3s ease;
}
.next-project:hover .next-arrow { transform: translateX(8px); }


/* ── 19. PROTOTYPE BLOCK ─────────────────────────────────── */
.prototype-block {
  max-width: var(--max); width: 100%;
  margin: 0 auto;
  padding: 40px clamp(16px, 5vw, 48px) 64px;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 16px;
  background: var(--bg);
}
.prototype-btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  border-radius: 4px; text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.prototype-btn:hover { opacity: 0.85; transform: translateX(3px); }
.prototype-disclaimer {
  font-size: 13px; color: var(--ink-muted);
  line-height: 1.6; max-width: 520px; margin: 0;
}


/* ── 20. SCROLL ANIMATIONS ───────────────────────────────── */
body.cs .fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.cs .fade-up.visible { opacity: 1; transform: translateY(0); }
section.section { opacity: 1 !important; transform: none !important; }


/* ── 21. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .outcome-grid, .metrics { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .section-num { display: none; }
  .tension { padding: 28px 24px; }
  .hero-image-zone { height: 60vh; }
}


/* ═══════════════════════════════════════════════════════════
   HOME PAGE  (body.home)
   ═══════════════════════════════════════════════════════════ */


/* ── 22. CUSTOM CURSOR ───────────────────────────────────── */
#cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

#cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--navy); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.25s ease, height 0.25s ease, border-color 0.2s ease, opacity 0.2s ease;
}

body.cursor-hover #cursor-dot { width: 12px; height: 12px; background: var(--accent); }
body.cursor-hover #cursor-ring { width: 52px; height: 52px; border-color: var(--accent); opacity: 0.6; }


/* ── 23. NAV ─────────────────────────────────────────────── */
body.home nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
  background: oklch(96% 0.012 75 / 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 oklch(22% 0.07 258 / 0.08);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 600;
  color: var(--navy); letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent-dark); }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: var(--navy); color: var(--beige) !important;
  padding: 9px 22px; border-radius: 100px;
  font-size: 13px !important; font-weight: 500 !important;
  text-transform: uppercase !important; letter-spacing: 0.06em !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--navy-mid) !important; transform: translateY(-1px); color: var(--beige) !important; }

/* hamburger button — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer; padding: 4px;
  z-index: 101; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile drawer — hidden on desktop */
.mobile-nav {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: oklch(97% 0.012 75 / 0.98);
  backdrop-filter: blur(16px);
  padding: 16px 24px 28px;
  flex-direction: column;
  border-bottom: 1px solid oklch(22% 0.07 258 / 0.08);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  z-index: 99;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-muted);
  text-decoration: none; padding: 16px 0;
  border-bottom: 1px solid oklch(22% 0.07 258 / 0.06);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--navy); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .nav-cta-mobile {
  margin-top: 12px; border-bottom: none !important;
  background: var(--navy); color: var(--beige) !important;
  padding: 14px 0 !important; border-radius: 100px;
  text-align: center; letter-spacing: 0.06em;
}
.mobile-nav .nav-cta-mobile:hover { color: var(--beige) !important; background: var(--navy-mid); }

/* dim overlay behind drawer */
.nav-overlay {
  position: fixed; inset: 0; z-index: 98;
  background: oklch(0% 0 0 / 0.18);
}


/* ── 24. HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 120px 48px 80px;
  position: relative;
}

.hero-bg-circle { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; }
.hero-bg-circle-1 {
  width: 700px; height: 700px;
  background: rgb(232 184 75 / 0.18);
  top: -160px; right: -120px;
  filter: blur(100px);
}
.hero-bg-circle-2 {
  width: 500px; height: 500px;
  background: rgb(27 58 107 / 0.08);
  top: 40vh; left: 100px;
  filter: blur(80px);
}

.hero-content { flex: 2; position: relative; z-index: 1; }

.hero-blob-wrap {
  flex: 1; display: flex; align-items: flex-start; justify-content: center;
  min-width: 240px; max-width: 400px;
  z-index: 0; pointer-events: none;
  position: relative; aspect-ratio: 1;
  margin-top: -40px;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(56px); }
.hero-blob-1 {
  width: 72%; height: 72%;
  background: rgb(232 184 75 / 0.82);
  top: 5%; left: 8%;
  animation: blobFloat1 9s ease-in-out infinite;
}
.hero-blob-2 {
  width: 65%; height: 65%;
  background: rgb(27 58 107 / 0.65);
  bottom: 4%; right: 4%;
  animation: blobFloat2 12s ease-in-out infinite;
}
.hero-blob-3 {
  width: 58%; height: 58%;
  background: rgb(245 241 235 / 0.9);
  top: 28%; left: 22%;
  animation: blobFloat3 14s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(32px, -26px) scale(1.08); }
  66%  { transform: translate(-18px, 22px) scale(0.93); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes blobFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-34px, 22px) scale(1.1); }
  66%  { transform: translate(24px, -28px) scale(0.91); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes blobFloat3 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(18px, 34px) scale(0.95); }
  66%  { transform: translate(-28px, -14px) scale(1.07); }
  100% { transform: translate(0, 0) scale(1); }
}

body.home .hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.5); color: #1B3A6B;
  border: 1.5px solid #D9D1C5;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 100px;
  margin-bottom: 36px;
}
body.home .hero-tag::before {
  content: ''; width: 7px; height: 7px;
  background: #22c55e; border-radius: 50%; display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  60%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.03em; color: var(--navy);
  margin-bottom: 56px;
}
.hero-h1 em { font-style: italic; color: var(--accent-dark); }

.hero-sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 540px; line-height: 1.65;
  margin-bottom: 52px; font-weight: 300;
}
.hero-sub strong { color: var(--navy); font-weight: 500; }

.hero-actions { display: flex; gap: 16px; align-items: center; }

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--text-muted);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%; background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { left: -100%; } 50% { left: 100%; } 100% { left: 100%; } }


/* ── 25. BUTTONS ─────────────────────────────────────────── */
.btn-primary {
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--navy); color: var(--beige);
  padding: 16px 36px; border-radius: 100px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px oklch(22% 0.07 258 / 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px oklch(22% 0.07 258 / 0.3); }
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--navy); font-size: 15px; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center;
  gap: 8px; border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px; transition: gap 0.2s;
}
.btn-secondary:hover { gap: 14px; }

.btn-accent {
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--accent); color: var(--navy);
  padding: 14px 32px; border-radius: 100px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 28px oklch(80% 0.16 88 / 0.4); }

.btn-outline-light {
  text-transform: uppercase; letter-spacing: 0.06em;
  border: 1.5px solid oklch(100% 0 0 / 0.25); color: white;
  padding: 14px 32px; border-radius: 100px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-light:hover { border-color: oklch(100% 0 0 / 0.6); background: oklch(100% 0 0 / 0.06); }


/* ── 26. SECTION SHELL ───────────────────────────────────── */
body.home section { padding: 100px 48px; }

body.home .section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-dark);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
body.home .section-label::before { content: ''; width: 24px; height: 1.5px; background: var(--accent-dark); }

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500; line-height: 1.1; letter-spacing: -0.025em;
  color: var(--navy); margin-bottom: 56px; max-width: 600px;
}
.section-title em { font-style: italic; color: var(--accent-dark); }


/* ── 27. PORTFOLIO GRID ──────────────────────────────────── */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-bottom: 72px;
}

.project-card {
  background: var(--navy); border-radius: 20px;
  overflow: hidden; position: relative;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: none; text-decoration: none; display: block;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px oklch(22% 0.07 258 / 0.3); }

.project-card-img {
  width: 100%; height: 100%; object-fit: cover;
  background: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.project-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative; overflow: hidden;
}
.project-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 24px,
    oklch(100% 0 0 / 0.03) 24px, oklch(100% 0 0 / 0.03) 25px
  );
}

.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(15% 0.06 258 / 0.95) 0%, transparent 55%);
  padding: 28px; display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0.7; transition: opacity 0.3s ease;
}
.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-info {
  position: absolute; inset: 0; padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.project-tag {
  display: inline-block;
  background: oklch(100% 0 0 / 0.15); color: white;
  border: 1px solid oklch(100% 0 0 / 0.25);
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
  margin-bottom: 10px; width: fit-content;
  backdrop-filter: blur(8px);
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 500; color: white;
  line-height: 1.2; margin-bottom: 6px;
}
.project-desc { font-size: 13px; color: oklch(100% 0 0 / 0.65); line-height: 1.5; font-weight: 300; }

.project-arrow {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px; background: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.7); transition: opacity 0.25s, transform 0.25s;
}
.project-card:hover .project-arrow { opacity: 1; transform: scale(1); }


/* ── 28. ARTICLES ────────────────────────────────────────── */
.articles-label {
  font-family: 'Syne', sans-serif;
  font-size: 24px; font-weight: 500; color: var(--navy);
  margin-bottom: 28px; margin-top: 16px;
  display: flex; align-items: center; gap: 12px;
}

.medium-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); border-radius: 100px;
  padding: 4px 12px 4px 8px; font-size: 11px; font-weight: 600;
  color: var(--beige); font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em; text-decoration: none;
  transition: opacity 0.2s;
}
.medium-badge:hover { opacity: 0.75; }

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.article-card {
  background: white; border-radius: 16px; padding: 28px;
  border: 1px solid oklch(85% 0.01 75);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: none; text-decoration: none; display: flex;
  flex-direction: column; justify-content: space-between;
  position: relative;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px oklch(22% 0.07 258 / 0.1); }

.article-meta {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 14px; display: flex; gap: 12px;
}
.article-meta span { color: var(--accent-dark); }

.article-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 500; color: var(--navy);
  line-height: 1.3; margin-bottom: 12px;
}
.article-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

.article-read {
  display: flex; align-items: center; gap: 6px;
  color: var(--accent-dark); font-size: 12px; font-weight: 600;
  margin-top: 20px; letter-spacing: 0.04em;
}


/* ── 29. EXPERIENCE ──────────────────────────────────────── */
.experience-section { background: var(--navy); color: white; }
.experience-section .section-label { color: var(--accent); }
.experience-section .section-label::before { background: var(--accent); }
.experience-section .section-title { color: white; }
.experience-section .section-title em { color: var(--accent); }

.exp-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 60px; }

.exp-col-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: oklch(100% 0 0 / 0.4);
  margin-bottom: 32px;
}

.exp-item { padding: 24px 0; border-top: 1px solid oklch(100% 0 0 / 0.1); }
.exp-item:last-child { border-bottom: 1px solid oklch(100% 0 0 / 0.1); }
.exp-grid > div:nth-child(2) .exp-item:first-child { padding-top: 0; }

.exp-period { font-size: 11px; font-weight: 500; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 6px; }
.exp-role { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 500; color: white; margin-bottom: 4px; }
.exp-company { font-size: 14px; color: oklch(100% 0 0 / 0.55); font-weight: 300; }
.exp-desc { font-size: 13px; color: oklch(100% 0 0 / 0.5); margin-top: 8px; line-height: 1.6; font-weight: 300; }

.exp-cta-row {
  display: flex; gap: 16px; align-items: center;
  margin-top: 56px; padding-top: 48px;
  border-top: 1px solid oklch(100% 0 0 / 0.1);
}


/* ── 30. CONTACT ─────────────────────────────────────────── */
.contact-section { background: var(--beige-mid); }

.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-heading-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; }

.contact-profile { display: flex; align-items: center; gap: 18px; }
.contact-photo {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--gray-warm); background: var(--beige);
}
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.contact-profile-name { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 500; color: var(--navy); line-height: 1.2; }
.contact-profile-title { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.contact-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 48px); font-weight: 500;
  color: var(--navy); line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.contact-heading em { font-style: italic; color: var(--accent-dark); }
.contact-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; font-weight: 300; margin-bottom: 36px; }

.socials-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
  display: inline-flex; align-items: center; gap: 10px;
}
.socials-label::before { content: ''; width: 20px; height: 1px; background: var(--text-muted); display: block; }

.social-links { display: flex; flex-direction: column; }
.social-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--gray-warm);
  text-decoration: none; color: var(--navy);
  transition: padding-left 0.25s ease;
}
.social-link:first-child { border-top: 1px solid var(--gray-warm); }
.social-link:hover { padding-left: 8px; }
.social-link:hover .social-arrow { transform: translate(3px, -3px); opacity: 1; }

.social-left { display: flex; flex-direction: column; gap: 2px; }
.social-name { font-size: 15px; font-weight: 500; }
.social-handle { font-size: 12px; color: var(--text-muted); }
.social-arrow { font-size: 16px; color: var(--text-muted); transition: transform 0.2s, opacity 0.2s; opacity: 0.4; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-heading { font-family: 'Syne', sans-serif; font-size: clamp(22px, 2.5vw, 30px); font-weight: 500; color: var(--navy); line-height: 1.2; }
.form-subdesc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

.form-input,
.form-textarea,
.form-select {
  background: transparent; border: none;
  border-bottom: 1.5px solid var(--gray-warm);
  padding: 10px 0; font-family: 'Inter', sans-serif;
  font-size: 15px; color: var(--navy); outline: none;
  transition: border-color 0.2s; width: 100%; appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-bottom-color: var(--navy); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-warm); }
.form-textarea { resize: none; height: 100px; }

.submit-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-submit {
  background: var(--navy); color: var(--beige); border: none;
  padding: 14px 32px; border-radius: 4px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em; cursor: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.form-submit:hover { background: var(--navy-mid); transform: translateY(-1px); }
.form-note { font-size: 12px; color: var(--text-muted); font-style: italic; }

.success-msg {
  display: none; flex-direction: column; gap: 12px; padding: 28px;
  background: var(--beige); border: 1px solid var(--gray-warm);
  border-radius: 8px; border-left: 3px solid var(--navy);
}
.success-msg.visible { display: flex; }
.success-msg h3 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 500; color: var(--navy); }
.success-msg p { font-size: 14px; color: var(--text-muted); }


/* ── 31. RECOMMENDATIONS ─────────────────────────────────── */
.recs-section { background: white; overflow: hidden; }
.recs-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px 0; /* buffer so parallax shift doesn't clip */
}
.rec-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  will-change: transform;
}

.rec-card {
  background: var(--beige); border: 1px solid oklch(85% 0.01 75);
  border-radius: 16px; padding: 26px 24px;
  transition: background 0.25s, box-shadow 0.25s;
}
.rec-card:hover { background: var(--beige-mid); box-shadow: 0 4px 20px oklch(22% 0.07 258 / 0.07); }
.rec-name { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.rec-role { font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 14px; }
.rec-text { font-size: 14px; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

.rec-cta-card {
  background: white; border: 1px solid oklch(85% 0.01 75);
  border-radius: 16px; padding: 26px 24px;
  text-decoration: none; cursor: none;
  transition: transform 0.25s, box-shadow 0.25s;
  align-self: start;
}
.rec-cta-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px oklch(22% 0.07 258 / 0.1); }
.rec-cta-card:hover .rec-cta-arrow { transform: translateX(4px); }
.rec-cta-title { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.rec-cta-sub { font-size: 13px; color: var(--text-muted); font-weight: 300; }
.rec-cta-arrow { display: block; margin-top: 20px; font-size: 18px; color: var(--navy); transition: transform 0.2s; }


/* ── 32. CV MODAL ────────────────────────────────────────── */
.cv-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: oklch(0% 0 0 / 0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.cv-modal {
  background: var(--beige); border-radius: 20px; padding: 48px;
  max-width: 420px; width: 100%; position: relative;
  box-shadow: 0 32px 80px oklch(0% 0 0 / 0.3);
  animation: modalSlide 0.28s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes modalSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cv-modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--gray-warm);
  color: var(--text-muted); font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: background 0.2s; padding: 0;
}
.cv-modal-close:hover { background: var(--beige-mid); }

.cv-modal-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-dark);
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.cv-modal-eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--accent-dark); display: block; }

.cv-modal h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500; color: var(--navy); line-height: 1.15; margin-bottom: 10px;
}
.cv-modal-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 32px; }

.cv-modal-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.cv-modal-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.cv-modal-input {
  background: transparent; border: none;
  border-bottom: 1.5px solid var(--gray-warm);
  padding: 10px 0; font-family: 'Inter', sans-serif;
  font-size: 15px; color: var(--navy); outline: none;
  transition: border-color 0.2s; width: 100%;
}
.cv-modal-input:focus { border-bottom-color: var(--navy); }
.cv-modal-input::placeholder { color: var(--gray-warm); }
.cv-modal-error { font-size: 13px; color: oklch(55% 0.2 25); margin: -12px 0 16px; }

.cv-modal-submit {
  width: 100%; padding: 14px 32px;
  background: var(--accent); color: var(--navy); border: none;
  border-radius: 100px; font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: none; margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.cv-modal-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px oklch(80% 0.16 88 / 0.4); }
.cv-modal-submit:disabled { opacity: 0.6; }

.cv-modal-success { text-align: center; padding: 8px 0; }
.cv-modal-success-icon {
  width: 56px; height: 56px;
  background: oklch(94% 0.06 140); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 22px; color: oklch(45% 0.15 140);
}
.cv-modal-success h3 { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.cv-modal-success p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }


/* ── 33. FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--navy); color: oklch(100% 0 0 / 0.5);
  padding: 36px 48px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 300;
}
.footer-name { font-family: 'Syne', sans-serif; color: white; font-size: 16px; font-weight: 500; }
.footer-copy { font-size: 12px; }


/* ── 34. ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.home .fade-up   { animation: fadeUp 0.7s ease both; }
body.home .fade-up-1 { animation-delay: 0.1s; }
body.home .fade-up-2 { animation-delay: 0.22s; }
body.home .fade-up-3 { animation-delay: 0.36s; }
body.home .fade-up-4 { animation-delay: 0.5s; }

body.home .scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
body.home .scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── 35. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  body.home nav { padding: 0 24px; }
  body.home section { padding: 72px 24px; }

  /* hero: fit entirely in one viewport */
  .hero {
    padding: 80px 24px 32px;
    flex-direction: column; justify-content: center; gap: 0;
    height: 100svh; min-height: 100svh; overflow: hidden;
  }
  .hero-blob-wrap { display: none; }
  body.home .hero-tag { margin-bottom: 16px; }
  .hero-h1 { margin-bottom: 18px; }
  .hero-sub { font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
  .hero-scroll-hint { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-bg-circle { display: none; }

  /* grids */
  .portfolio-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .recs-masonry { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: 1fr; gap: 40px; }
  .exp-grid > div { width: auto !important; max-width: 100%; }

  /* contact */
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-heading-row { flex-direction: column; gap: 20px; align-items: flex-start; }

  /* nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 640px) {
  body.home section { padding: 56px 20px; }
  .hero { padding: 72px 20px 24px; }
  .recs-masonry { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  footer { padding: 28px 20px; }
}


/* ═══════════════════════════════════════════════════════════
   PASSWORD PAGE  (body.pw)
   ═══════════════════════════════════════════════════════════ */


/* ── 36. LAYOUT ──────────────────────────────────────────── */
.back-link {
  position: fixed; top: 28px; left: 32px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--navy); }
.back-link svg { transition: transform 0.2s; }
.back-link:hover svg { transform: translateX(-3px); }

.logo { position: fixed; top: 24px; right: 32px; }
.logo img { height: 36px; width: auto; }

.card { width: 100%; max-width: 420px; text-align: center; }


/* ── 37. LOCK ICON ───────────────────────────────────────── */
.lock-icon {
  width: 52px; height: 52px;
  background: var(--navy); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px;
}


/* ── 38. LABEL / EYEBROW ─────────────────────────────────── */
.label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.label::before, .label::after {
  content: ''; width: 24px; height: 1.5px;
  background: var(--accent-dark);
}


/* ── 39. TYPOGRAPHY ──────────────────────────────────────── */
body.pw h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 500; line-height: 1.1;
  letter-spacing: -0.025em; color: var(--navy);
  margin-bottom: 12px;
}
body.pw h1 em { font-style: italic; color: var(--accent-dark); }

.subtitle {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.65; font-weight: 300;
  margin-bottom: 40px;
}


/* ── 40. INPUT ───────────────────────────────────────────── */
.input-wrap { position: relative; margin-bottom: 14px; }

.password-input {
  width: 100%; background: white;
  border: 1.5px solid var(--gray-warm); border-radius: 10px;
  padding: 16px 52px 16px 20px;
  font-family: 'Inter', sans-serif; font-size: 16px;
  color: var(--navy); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.1em;
}
.password-input::placeholder { color: var(--gray-warm); letter-spacing: 0; }
.password-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.08);
}
.password-input.error {
  border-color: #e05252;
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.08);
  animation: shake 0.35s ease;
}

.toggle-btn {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px; line-height: 0;
  transition: color 0.2s;
}
.toggle-btn:hover { color: var(--navy); }

.error-msg {
  font-size: 12px; color: #e05252;
  text-align: left; margin-bottom: 14px;
  padding-left: 4px; min-height: 16px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.error-msg.visible { opacity: 1; transform: translateY(0); }


/* ── 41. SUBMIT BUTTON ───────────────────────────────────── */
.submit-btn {
  width: 100%; background: var(--navy); color: var(--beige);
  border: none; border-radius: 10px; padding: 16px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.submit-btn:hover { background: var(--navy-mid); transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }


/* ── 42. HINT ────────────────────────────────────────────── */
.hint {
  margin-top: 28px; font-size: 12px;
  color: var(--text-muted); line-height: 1.6;
}
.hint a { color: var(--accent-dark); text-decoration: none; font-weight: 500; }
.hint a:hover { text-decoration: underline; }


/* ── 43. ANIMATIONS ──────────────────────────────────────── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}

.card { animation: fadeUp 0.5s ease both; }


/* ── 44. DECORATIVE BLOBS ────────────────────────────────── */
.blob {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 0;
}
.blob-1 {
  width: 500px; height: 500px;
  background: rgba(232, 184, 75, 0.12);
  top: -100px; right: -100px;
  filter: blur(80px);
}
.blob-2 {
  width: 400px; height: 400px;
  background: rgba(27, 58, 107, 0.07);
  bottom: -80px; left: -80px;
  filter: blur(70px);
}

.card { position: relative; z-index: 1; }


/* ═══════════════════════════════════════════════════════════
   COOKIE BANNER  (all pages)
   ═══════════════════════════════════════════════════════════ */

#cookie-banner {
  position: fixed; bottom: -200px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 680px;
  background: var(--beige);
  border: 1px solid oklch(85% 0.01 75);
  border-radius: 16px; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: 0 8px 40px oklch(22% 0.07 258 / 0.14);
  z-index: 9000;
  opacity: 0;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.cookie-text { display: flex; flex-direction: column; gap: 5px; }
.cookie-text strong { font-size: 14px; font-weight: 600; color: var(--navy); }
.cookie-text span { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }
.cookie-decline {
  background: transparent; border: 1.5px solid var(--gray-warm);
  color: var(--text-muted); padding: 9px 18px; border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.cookie-decline:hover { border-color: var(--navy); color: var(--navy); }
.cookie-accept {
  background: var(--navy); color: var(--beige); border: none;
  padding: 9px 20px; border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.cookie-accept:hover { background: var(--navy-mid); transform: translateY(-1px); }

@media (max-width: 600px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: 18px 20px; gap: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-decline, .cookie-accept { flex: 1; text-align: center; }
}
