/* ============================================================
   COHÉRO – DESIGN SYSTEM & STYLES
   Color palette: soft teal, mint, warm lavender, sage, rose
   ============================================================ */

/* Logo note: the real Cohéro logo is black line-art on white.
   Nav: shown as-is. Footer: inverted to white on dark bg. */

/* ---------- Google Fonts already loaded via HTML ----------- */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Core brand palette */
  --c-teal-50:    hsl(174, 60%, 95%);
  --c-teal-100:   hsl(174, 55%, 88%);
  --c-teal-200:   hsl(174, 50%, 75%);
  --c-teal-300:   hsl(174, 45%, 60%);
  --c-teal-400:   hsl(174, 42%, 48%);
  --c-teal-500:   hsl(174, 45%, 38%);

  --c-lavender-50:  hsl(265, 60%, 96%);
  --c-lavender-100: hsl(265, 55%, 90%);
  --c-lavender-200: hsl(265, 50%, 78%);
  --c-lavender-300: hsl(265, 48%, 65%);
  --c-lavender-400: hsl(265, 45%, 55%);
  --c-lavender-500: hsl(265, 42%, 44%);

  --c-sage-50:  hsl(145, 35%, 94%);
  --c-sage-100: hsl(145, 32%, 84%);
  --c-sage-200: hsl(145, 28%, 68%);
  --c-sage-300: hsl(145, 24%, 52%);

  --c-rose-50:  hsl(340, 60%, 96%);
  --c-rose-100: hsl(340, 55%, 88%);
  --c-rose-200: hsl(340, 50%, 76%);
  --c-rose-300: hsl(340, 45%, 62%);

  /* Neutrals */
  --c-white:   #ffffff;
  --c-gray-50: hsl(220, 20%, 97%);
  --c-gray-100: hsl(220, 18%, 93%);
  --c-gray-200: hsl(220, 15%, 86%);
  --c-gray-300: hsl(220, 12%, 72%);
  --c-gray-400: hsl(220, 10%, 56%);
  --c-gray-500: hsl(220, 10%, 42%);
  --c-gray-600: hsl(220, 12%, 30%);
  --c-gray-700: hsl(220, 15%, 20%);
  --c-gray-800: hsl(220, 18%, 14%);
  --c-gray-900: hsl(220, 22%, 8%);

  /* Semantic */
  --bg:         var(--c-white);
  --bg-soft:    var(--c-gray-50);
  --bg-portal:  hsl(220, 30%, 97%);
  --bg-glass-card: rgba(255, 255, 255, 0.82);
  --text-primary:   var(--c-gray-800);
  --text-secondary: var(--c-gray-500);
  --text-muted:     var(--c-gray-400);
  --border:     var(--c-gray-100);
  --border-soft: hsl(220, 20%, 92%);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--c-teal-300), var(--c-lavender-300));
  --grad-hero:  linear-gradient(160deg, hsl(174, 50%, 96%) 0%, hsl(220, 30%, 97%) 50%, hsl(265, 55%, 95%) 100%);
  --grad-card:  linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  --grad-portal-teal: linear-gradient(145deg, hsl(174, 55%, 96%), hsl(174, 45%, 90%));
  --grad-portal-lav:  linear-gradient(145deg, hsl(265, 60%, 97%), hsl(265, 50%, 90%));

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-teal: 0 4px 20px hsla(174, 55%, 40%, 0.20);
  --shadow-lav:  0 4px 20px hsla(265, 55%, 50%, 0.20);

  /* Radii */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:   0.15s;
  --t-base:   0.25s;
  --t-slow:   0.4s;

  /* Layout */
  --nav-h: 72px;
  --container: 1140px;
  --section-py: clamp(80px, 10vw, 140px);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   3. UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.gradient-text {
  background: linear-gradient(135deg, var(--c-teal-500), var(--c-lavender-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-teal-400);
  margin-bottom: 16px;
}

.section-label.light {
  color: hsla(174, 80%, 85%, 1);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-gray-800);
  margin-bottom: 20px;
}

.section-title.left { text-align: left; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 52px;
  text-align: center;
  line-height: 1.75;
}

.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r-full);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--t-base) var(--ease-out);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--c-teal-300);
  outline-offset: 3px;
}

.btn-large {
  padding: 14px 30px;
  font-size: 0.98rem;
}

.btn-primary {
  background: var(--grad-brand);
  color: white;
  box-shadow: 
    0 4px 14px hsla(174, 55%, 40%, 0.15),
    0 2px 6px hsla(265, 55%, 50%, 0.1);
  border: none;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 
    0 12px 28px -5px hsla(174, 55%, 40%, 0.3),
    0 8px 20px -5px hsla(265, 55%, 50%, 0.2);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(45, 20, 60, 0.08);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: rgba(45, 20, 60, 0.03);
  border-color: rgba(45, 20, 60, 0.15);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-soft {
  background: white;
  border-color: var(--border-soft);
  color: var(--c-gray-700);
  box-shadow: var(--shadow-xs);
}
.btn-soft:hover {
  background: var(--c-gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-white {
  background: white;
  color: var(--c-teal-500);
  border: none;
  box-shadow: 
    0 4px 14px rgba(45, 20, 60, 0.04),
    0 2px 4px rgba(45, 20, 60, 0.02);
}
.btn-white:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 
    0 16px 36px -8px rgba(45, 20, 60, 0.08),
    0 8px 16px -8px rgba(45, 20, 60, 0.04),
    0 4px 10px -2px hsla(174, 55%, 40%, 0.1);
}

.btn-ghost-white {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: white;
}
.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}


.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease-out);
}
.btn:hover .btn-icon {
  transform: translateX(3px);
}


/* ============================================================
   BOOKSHELF LOGO — matches Cohero-Version-4 BookSpine component
   ============================================================ */

/* Book colour palette — mirrors the main_logo.png warm browns */
:root {
  --book-0:  hsl(15,  18%, 20%);  /* near black */
  --book-1:  hsl(18,  50%, 30%);  /* dark brown */
  --book-2:  hsl(20,  45%, 40%);  /* mid brown */
  --book-3:  hsl(22,  55%, 35%);  /* rich brown */
  --book-4:  hsl(25,  60%, 42%);  /* warm brown */
  --book-5:  hsl(18,  52%, 32%);  /* dark sienna */
  --book-6:  hsl(30,  48%, 44%);  /* caramel */
  --book-7:  hsl(20,  55%, 38%);  /* chestnut */
  --book-8:  hsl(24,  58%, 46%);  /* rust */
  --book-9:  hsl(22,  50%, 36%);  /* umber */
  --book-10: hsl(15,  18%, 20%);  /* near black */
  --book-11: hsl(18,  48%, 33%);  /* dark brown */
}

.bookshelf-logo {
  display: flex;
  align-items: flex-end;
  gap: -1px;
  height: 52px;
  margin-bottom: 2px;
  cursor: pointer;
}

.bookshelf-logo--footer {
  height: 38px;
  margin-bottom: 10px;
}

.book {
  position: relative;
  width: var(--w);
  height: var(--h);
  border-radius: 2px 2px 0 0;
  border: 1px solid rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  transform: rotate(var(--tilt, 0deg));
  box-shadow:
    inset -1px 0 3px rgba(0,0,0,0.12),
    2px 0 5px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  animation: book-idle 1.2s var(--ease-spring) var(--delay, 0s) infinite;
  animation-play-state: paused;
  cursor: pointer;
}

/* Assign bg colour by index */
.book[data-i="0"]  { background: var(--book-0); }
.book[data-i="1"]  { background: var(--book-1); }
.book[data-i="2"]  { background: var(--book-2); }
.book[data-i="3"]  { background: var(--book-3); }
.book[data-i="4"]  { background: var(--book-4); }
.book[data-i="5"]  { background: var(--book-5); }
.book[data-i="6"]  { background: var(--book-6); }
.book[data-i="7"]  { background: var(--book-7); }
.book[data-i="8"]  { background: var(--book-8); }
.book[data-i="9"]  { background: var(--book-9); }
.book[data-i="10"] { background: var(--book-10); }
.book[data-i="11"] { background: var(--book-11); }

/* Wood texture overlay */
.book::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
}

/* Decorative bands */
.book[data-deco="bands"]::after {
  content: '';
  position: absolute;
  top: 10px; left: 0; right: 0;
  height: 1px;
  background: rgba(0,0,0,0.18);
  box-shadow: 0 2px 0 rgba(0,0,0,0.10), 0 -4px 0 rgba(0,0,0,0.10);
}

/* Stripes decoration */
.book[data-deco="stripes"]::after {
  content: '';
  position: absolute;
  top: 12px; bottom: 8px;
  left: 50%; transform: translateX(-50%);
  width: 2px;
  background: rgba(0,0,0,0.08);
  border-left: 1px solid rgba(0,0,0,0.06);
  border-right: 1px solid rgba(0,0,0,0.06);
}

/* Ornament decoration */
.book[data-deco="ornament"]::after {
  content: '';
  position: absolute;
  top: 25%; left: 50%; transform: translateX(-50%);
  width: 4px; height: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 99px;
  opacity: 0.3;
}

/* Gold glint shimmer */
.book[data-deco="gold"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
}
.book[data-deco="gold"] .glint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,220,120,0.18) 50%,
    transparent 70%
  );
  animation: gold-glint 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes gold-glint {
  0%   { transform: translateX(-120%); }
  40%  { transform: translateX(200%); }
  100% { transform: translateX(200%); }
}

/* Letter on book */
.book-letter span {
  position: relative;
  z-index: 2;
  margin-bottom: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: rgba(255, 242, 220, 0.92);
  user-select: none;
  line-height: 1;
}

.bookshelf-logo--footer .book-letter span {
  font-size: 7px;
  margin-bottom: 3px;
}

/* Idle bounce — runs once every ~30s per book */
@keyframes book-idle {
  0%   { transform: rotate(var(--tilt, 0deg)) translateY(0); }
  10%  { transform: rotate(var(--tilt, 0deg)) translateY(-8px); }
  20%  { transform: rotate(var(--tilt, 0deg)) translateY(0); }
  100% { transform: rotate(var(--tilt, 0deg)) translateY(0); }
}

/* Hover — whole logo: individual book lifts */
.bookshelf-logo:hover .book {
  animation-play-state: running;
}
.book:hover {
  transform: rotate(var(--tilt, 0deg)) translateY(-10px) scale(1.05) !important;
  box-shadow:
    inset -1px 0 3px rgba(0,0,0,0.12),
    4px 8px 16px rgba(0,0,0,0.15);
  z-index: 10;
  animation-play-state: paused !important;
}

/* Footer variant — lighter opacity on dark bg */
.bookshelf-logo--footer .book {
  opacity: 0.88;
}
.bookshelf-logo--footer .book:hover {
  opacity: 1;
}

/* ============================================================
   5. NAVBAR — Floating island design
   ============================================================ */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 48px);
  max-width: 1100px;
  height: var(--nav-h);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 4px 24px -4px rgba(45, 20, 60, 0.08),
    0 1px 0 rgba(255,255,255,0.6) inset;
  transition:
    background var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    top var(--t-base) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(45, 196, 180, 0.25);
  box-shadow:
    0 8px 32px -8px rgba(45, 20, 60, 0.12),
    0 0 0 1px rgba(45, 196, 180, 0.12),
    0 1px 0 rgba(255,255,255,0.8) inset;
  top: 10px;
}

.nav-inner {
  height: 100%;
  padding: 0 10px 0 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  flex-shrink: 0;
  transition: opacity var(--t-base) var(--ease-out);
  display: flex;
  align-items: center;
}
.nav-logo:hover { opacity: 0.75; }

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: invert(1) brightness(0.75);
  margin-bottom: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-gray-600);
  transition: color var(--t-base) var(--ease-out);
  white-space: nowrap;
}

/* Animated underline slide-in */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-teal-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-link:hover {
  color: var(--c-gray-900);
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--c-teal-500);
  font-weight: 600;
}
.nav-link.active::after {
  transform: scaleX(1);
  background: var(--c-teal-400);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Nav CTA button — small pill */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--c-teal-500), var(--c-teal-400));
  text-decoration: none;
  transition: all var(--t-base) var(--ease-out);
  box-shadow: 0 4px 12px -2px hsla(174, 55%, 40%, 0.35);
  white-space: nowrap;
}
.nav-cta svg {
  width: 15px;
  height: 15px;
  transition: transform var(--t-fast) var(--ease-out);
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--c-teal-400), var(--c-teal-300));
  box-shadow: 0 6px 20px -4px hsla(174, 55%, 40%, 0.45);
  transform: translateY(-1px);
}
.nav-cta:hover svg { transform: translateX(3px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
  margin-left: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-gray-600);
  border-radius: 2px;
  transition: all var(--t-base) var(--ease-out);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu — drops below the floating pill */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 20px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 28px 28px;
}
.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-gray-700);
  transition: background var(--t-fast);
}
.mobile-link:hover { background: var(--c-gray-50); }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 80px) clamp(20px, 5vw, 60px) 70px;
  overflow: hidden;
}


.hero-bg-image {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url('assets/cohero_hero_bg.png') center / cover no-repeat,
    var(--grad-hero);
  opacity: 0.15;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--grad-hero);
  pointer-events: none;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float-orb 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  top: -100px; right: -80px;
  background: radial-gradient(circle, var(--c-lavender-200), transparent);
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  bottom: -60px; left: -80px;
  background: radial-gradient(circle, var(--c-teal-200), transparent);
  animation-delay: -3s;
}
.orb-3 {
  width: 260px; height: 260px;
  top: 55%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--c-sage-100), transparent);
  animation-delay: -5s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -16px) scale(1.04); }
  66% { transform: translate(-8px, 10px) scale(0.97); }
}

/* Hero Inner Layout */
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  max-width: 1240px;
  width: 100%;
  z-index: 1;
  text-align: left;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Mockup background engineering grid */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(45, 20, 60, 0.035) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(45, 20, 60, 0.035) 1.5px, transparent 1.5px);
  background-size: 50px 50px;
  background-position: center;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  pointer-events: none;
}

/* Staggered entrance animation for polaroids */
@keyframes polaroid-entrance {
  from {
    opacity: 0;
    transform: translate(0, 100px) rotate(0deg) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--rotation, 0deg)) scale(1);
  }
}

/* Collage styles */
.hero-collage {
  position: relative;
  height: 520px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.collage-card {
  position: absolute;
  background: #ffffff;
  padding: 12px 12px 28px;
  border-radius: 4px; /* Classic polaroid sharp corners style */
  box-shadow: 
    0 15px 35px -10px rgba(45, 20, 60, 0.12),
    0 5px 15px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--rotation, 0deg));
  z-index: var(--z, 1);
  transition: all 0.5s var(--ease-spring);
  width: 220px;
  cursor: pointer;
  user-select: none;
  animation: polaroid-entrance 1.2s var(--ease-spring) both;
}

/* Scotch tape overlay style */
.collage-card::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(var(--tape-rot, -3deg));
  width: 75px;
  height: 22px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.01),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 10;
  pointer-events: none;
}

.collage-card img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Specific card details */
.cc-quote {
  width: 210px;
  animation-delay: 0.3s;
}
.cc-pointing {
  width: 210px;
  animation-delay: 0.45s;
}
.cc-working {
  width: 210px;
  animation-delay: 0.6s;
}
.cc-couch {
  width: 230px;
  animation-delay: 0.75s;
}

.collage-polaroid-caption {
  margin-top: 14px;
  font-family: 'Caveat', cursive;
  text-align: center;
  line-height: 1.15;
}

.collage-polaroid-caption strong {
  display: block;
  font-size: 1.25rem;
  color: var(--c-gray-800);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.collage-polaroid-caption span {
  display: block;
  font-size: 0.95rem;
  color: var(--c-teal-500);
  margin-top: 1px;
  font-weight: 600;
}

/* Interactive Hover States */

/* Hovering the overall collage container spreads cards out slightly */
.hero-collage:hover .cc-quote {
  transform: translate(-140px, 90px) rotate(-6deg) scale(1.02);
}
.hero-collage:hover .cc-pointing {
  transform: translate(110px, -130px) rotate(-2deg) scale(1.02);
}
.hero-collage:hover .cc-working {
  transform: translate(150px, 110px) rotate(4deg) scale(1.02);
}
.hero-collage:hover .cc-couch {
  transform: translate(-20px, -20px) rotate(1deg) scale(1.03);
}

/* Hovering individual card lifts it to the top */
.collage-card:hover {
  z-index: 20 !important;
  transform: translate(var(--x, 0), var(--y, 0)) rotate(0deg) scale(1.1) translateY(-10px) !important;
  box-shadow: 
    0 25px 50px -10px rgba(45, 20, 60, 0.22),
    0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: rgba(45, 20, 60, 0.1);
}


/* Responsive Overrides */
@media (max-width: 992px) {
  .hero {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 60px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-collage {
    height: 400px;
    max-width: 480px;
    margin: 0 auto;
  }
  .collage-card {
    width: 170px;
  }
  .cc-quote { width: 150px; }
  .cc-pointing { width: 180px; }
  .cc-working { width: 180px; }
  .cc-couch { width: 190px; }
  
  .collage-polaroid-caption {
    margin-top: 10px;
  }
  .collage-polaroid-caption strong {
    font-size: 1rem;
  }
  .collage-polaroid-caption span {
    font-size: 0.8rem;
  }
  
  /* Spread hover settings on mobile */
  .hero-collage:hover .cc-quote {
    transform: translate(-100px, 60px) rotate(-6deg);
  }
  .hero-collage:hover .cc-pointing {
    transform: translate(80px, -90px) rotate(-2deg);
  }
  .hero-collage:hover .cc-working {
    transform: translate(100px, 80px) rotate(4deg);
  }
  .hero-collage:hover .cc-couch {
    transform: translate(-10px, -10px) rotate(1deg);
  }
}

@media (max-width: 576px) {
  .hero-collage {
    height: 320px;
    max-width: 360px;
  }
  .collage-card {
    width: 130px;
    padding: 8px 8px 18px;
  }
  .collage-card::before {
    width: 50px;
    height: 15px;
    top: -8px;
  }
  .cc-quote { width: 110px; }
  .cc-pointing { width: 130px; }
  .cc-working { width: 130px; }
  .cc-couch { width: 140px; }
  
  .collage-polaroid-caption {
    margin-top: 8px;
  }
  .collage-polaroid-caption strong {
    font-size: 0.85rem;
  }
  .collage-polaroid-caption span {
    font-size: 0.68rem;
  }
  
  /* Spread hover settings on tiny screens */
  .hero-collage:hover .cc-quote {
    transform: translate(-70px, 40px) rotate(-6deg);
  }
  .hero-collage:hover .cc-pointing {
    transform: translate(50px, -60px) rotate(-2deg);
  }
  .hero-collage:hover .cc-working {
    transform: translate(70px, 50px) rotate(4deg);
  }
  .hero-collage:hover .cc-couch {
    transform: translate(-5px, -5px) rotate(1deg);
  }
}


/* Duplicate hero-content removed */

.hero-badge-container {
  margin-bottom: 28px;
  animation: fade-up 0.6s var(--ease-out) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--c-lavender-100);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-navy-500);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all var(--t-base) var(--ease-out);
  box-shadow: 0 4px 12px rgba(45, 20, 60, 0.04);
}

.hero-badge:hover {
  background: #ffffff;
  border-color: var(--c-lavender-200);
  color: var(--c-navy-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 20, 60, 0.08);
}

.ruc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #c20e1a; /* Official RUC Red for validation */
  animation: pulse-dot-red 2s ease-in-out infinite;
}

@keyframes pulse-dot-red {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(194, 14, 26, 0.7); }
  70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 5px rgba(194, 14, 26, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(194, 14, 26, 0); }
}

.badge-arrow {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform var(--t-fast) var(--ease-out);
}
.hero-badge:hover .badge-arrow {
  transform: translate(2px, -1px);
  opacity: 1;
}

/* RUC Legitimacy Card */
.hero-legitimacy-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 16px 20px;
  border-radius: var(--r-xl);
  margin-top: 0;
  margin-bottom: 20px;
  box-shadow: 
    0 10px 30px -10px rgba(45, 20, 60, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  max-width: 640px;
  animation: fade-up 0.7s var(--ease-out) 0.5s both;
}

.hlc-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #c20e1a, #8e0b13);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(194, 14, 26, 0.2);
}

.hlc-initials {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.hlc-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hlc-quote {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--c-navy-500);
  font-style: italic;
  font-weight: 500;
  margin: 0;
}

.hlc-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hlc-author {
  font-weight: 700;
  color: var(--c-gray-800);
}

.hlc-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3897f0; /* Official Instagram Verified Blue */
  width: 14px;
  height: 14px;
}

.hlc-verified-badge svg {
  width: 100%;
  height: 100%;
}

.hlc-separator {
  color: var(--c-gray-300);
}

.hlc-channel {
  font-weight: 500;
  color: var(--text-secondary);
}



@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--c-gray-800);
  margin-bottom: 20px;
  max-width: 600px;
  animation: fade-up 0.6s var(--ease-out) 0.1s both;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 0 32px;
  animation: fade-up 0.6s var(--ease-out) 0.2s both;
}

@media (max-width: 992px) {
  .hero-subtitle {
    margin: 0 auto 40px; /* Centered on mobile */
  }
}

/* ── Hero portal quick-access cards ── */
.hero-portal-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 640px;
  width: 100%;
  margin: 0 0 20px;
  animation: fade-up 0.6s var(--ease-out) 0.35s both;
}

@media (max-width: 992px) {
  .hero-portal-cards {
    margin: 0 auto 32px; /* Centered on mobile */
  }
}

@media (max-width: 576px) {
  .hero-portal-cards {
    grid-template-columns: 1fr; /* Stacked on tiny screens */
  }
}


.hero-portal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  text-align: left;
  text-decoration: none;
  transition: all var(--t-base) var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hero-portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t-base);
  border-radius: inherit;
}

.hpc-student::before {
  background: linear-gradient(135deg, hsla(174, 60%, 95%, 0.6), hsla(174, 50%, 88%, 0.3));
}
.hpc-lov::before {
  background: linear-gradient(135deg, hsla(265, 60%, 96%, 0.6), hsla(265, 50%, 88%, 0.3));
}

.hero-portal-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.hero-portal-card:hover::before { opacity: 1; }
.hpc-student:hover { box-shadow: var(--shadow-xl), 0 0 0 1.5px var(--c-teal-200); }
.hpc-lov:hover     { box-shadow: var(--shadow-xl), 0 0 0 1.5px var(--c-lavender-200); }

.hpc-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.hpc-icon svg { width: 22px; height: 22px; }
.hpc-icon-teal { background: var(--c-teal-50); color: var(--c-teal-400); }
.hpc-icon-lav  { background: var(--c-lavender-50); color: var(--c-lavender-400); }
.hpc-icon-rose { background: hsl(340, 60%, 96%); color: hsl(340, 60%, 48%); }

/* Pro portal hero card hover */
.hpc-pro:hover { box-shadow: var(--shadow-xl), 0 0 0 1.5px hsl(340, 60%, 80%); }
.hpc-pro::before { background: linear-gradient(135deg, hsl(340, 60%, 96%, 0.6), hsl(340, 50%, 88%, 0.3)); }

.hpc-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.hpc-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hpc-student .hpc-label { color: var(--c-teal-400); }
.hpc-lov     .hpc-label { color: var(--c-lavender-400); }

.hpc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-gray-800);
  line-height: 1.2;
}
.hpc-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hpc-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-gray-50);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all var(--t-base) var(--ease-out);
}
.hpc-arrow svg { width: 15px; height: 15px; stroke: var(--text-muted); }
.hero-portal-card:hover .hpc-arrow { transform: translateX(3px); }
.hpc-student:hover .hpc-arrow { background: var(--c-teal-50); }
.hpc-student:hover .hpc-arrow svg { stroke: var(--c-teal-400); }
.hpc-lov:hover .hpc-arrow     { background: var(--c-lavender-50); }
.hpc-lov:hover .hpc-arrow svg { stroke: var(--c-lavender-400); }

/* ── Hero meta row (learn more + stats) ── */
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Aligned left on desktop */
  gap: 32px;
  flex-wrap: wrap;
  width: 100%;
  animation: fade-up 0.6s var(--ease-out) 0.5s both;
}

@media (max-width: 992px) {
  .hero-meta {
    justify-content: center; /* Centered on mobile */
  }
}


.hero-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  text-decoration: none;
}
.hero-learn-more:hover { color: var(--c-teal-500); }
.hero-learn-more svg {
  width: 16px; height: 16px;
  transition: transform var(--t-fast) var(--ease-out);
}
.hero-learn-more:hover svg { transform: translateY(3px); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.stat-number {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-gray-800);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border-soft);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border-radius: var(--r-full);
  border: 2px solid var(--c-gray-200);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-teal-400);
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.4; }
}

/* ============================================================
   7. ABOUT SECTION
   ============================================================ */
.about {
  padding: var(--section-py) 0;
  text-align: center;
  background: var(--bg);
}

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

.about-card {
  padding: 38px 32px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-xl);
  text-align: left;
  transition: all var(--t-base) var(--ease-spring);
  position: relative;
  box-shadow: 
    0 4px 20px rgba(45, 20, 60, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.about-card:hover {
  background: #ffffff;
  border-color: var(--c-teal-100);
  box-shadow: 
    0 20px 40px -15px rgba(45, 20, 60, 0.08),
    0 10px 20px -10px rgba(45, 20, 60, 0.04);
  transform: translateY(-6px);
}

.ac-icon-wrap {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: all var(--t-base) var(--ease-spring);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.02);
}
.ac-icon-wrap svg { width: 24px; height: 24px; }
.ac-teal     { background: linear-gradient(135deg, hsl(174, 60%, 95%), hsl(174, 50%, 88%)); color: var(--c-teal-500); }
.ac-lavender { background: linear-gradient(135deg, hsl(265, 60%, 96%), hsl(265, 50%, 90%)); color: var(--c-lavender-500); }
.ac-sage     { background: linear-gradient(135deg, hsl(145, 35%, 94%), hsl(145, 28%, 84%)); color: var(--c-sage-300); }

.about-card:hover .ac-icon-wrap {
  transform: translateY(-4px) scale(1.06);
}

.about-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-gray-800);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.about-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ============================================================
   8. PORTALS SECTION
   ============================================================ */
.portals {
  position: relative;
  padding: var(--section-py) 0;
  text-align: center;
  overflow: hidden;
}

.portals-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, hsl(174, 50%, 94%) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 80% 100%, hsl(265, 55%, 94%) 0%, transparent 60%),
    var(--bg-portal);
  pointer-events: none;
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.portal-card {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--r-xl);
  padding: 42px 38px;
  text-align: left;
  overflow: hidden;
  transition: all 0.5s var(--ease-spring), border-color 0.3s ease;
  box-shadow: 
    0 10px 30px -10px rgba(45, 20, 60, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.portal-card:hover {
  transform: translateY(-8px);
}

.portal-student:hover {
  border-color: var(--c-teal-200);
  box-shadow: 
    0 30px 60px -20px rgba(45, 20, 60, 0.1),
    0 10px 20px -10px hsla(174, 55%, 40%, 0.15);
}
.portal-pro:hover {
  border-color: hsl(340, 60%, 80%);
  box-shadow: 
    0 30px 60px -20px rgba(45, 20, 60, 0.1),
    0 10px 20px -10px hsla(340, 60%, 48%, 0.15);
}
.portal-lov:hover {
  border-color: var(--c-lavender-200);
  box-shadow: 
    0 30px 60px -20px rgba(45, 20, 60, 0.1),
    0 10px 20px -10px hsla(265, 55%, 50%, 0.15);
}

.portal-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.portal-student .portal-accent {
  background: linear-gradient(90deg, var(--c-teal-400), var(--c-sage-200));
}
.portal-pro .portal-accent {
  background: linear-gradient(90deg, hsl(340, 60%, 55%), hsl(340, 60%, 75%));
}
.portal-lov .portal-accent {
  background: linear-gradient(90deg, var(--c-lavender-400), var(--c-rose-200));
}

.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.portal-icon-wrap {
  width: 58px; height: 58px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.02);
}
.portal-icon-wrap svg { width: 26px; height: 26px; }
.pi-teal     { background: linear-gradient(135deg, hsl(174, 60%, 95%), hsl(174, 50%, 88%)); color: var(--c-teal-500); }
.pi-lavender { background: linear-gradient(135deg, hsl(265, 60%, 96%), hsl(265, 50%, 90%)); color: var(--c-lavender-500); }
.pi-rose     { background: linear-gradient(135deg, hsl(340, 60%, 96%), hsl(340, 50%, 90%)); color: hsl(340, 60%, 48%); }

.portal-badge {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.pb-new { background: var(--c-teal-50); color: var(--c-teal-600); }
.pb-pro { background: hsl(340, 60%, 95%); color: hsl(340, 60%, 40%); }
.pb-lov { background: var(--c-lavender-50); color: var(--c-lavender-600); }

.portal-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--c-gray-800);
  margin-bottom: 4px;
}

.portal-version {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.portal-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.portal-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--c-gray-700);
}
.portal-features li svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.portal-student .portal-features li svg { color: var(--c-teal-400); }
.portal-pro     .portal-features li svg { color: hsl(340, 60%, 48%); }
.portal-lov     .portal-features li svg { color: var(--c-lavender-400); }

.portal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  transition: all var(--t-base) var(--ease-spring);
  box-shadow: 0 4px 12px rgba(45, 20, 60, 0.04);
  border: none;
}
.portal-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base) var(--ease-spring);
}
.portal-cta:hover svg {
  transform: translateX(4px);
}

.pc-teal {
  background: var(--c-teal-500);
  color: white;
}
.pc-teal:hover {
  background: var(--c-teal-400);
  color: white;
  box-shadow: 0 10px 20px -5px hsla(174, 55%, 40%, 0.3);
  transform: translateY(-2px);
}

.pc-rose {
  background: hsl(340, 60%, 50%);
  color: white;
}
.pc-rose:hover {
  background: hsl(340, 60%, 44%);
  color: white;
  box-shadow: 0 10px 20px -5px hsla(340, 60%, 48%, 0.3);
  transform: translateY(-2px);
}

.pc-lavender {
  background: var(--c-lavender-500);
  color: white;
}
.pc-lavender:hover {
  background: var(--c-lavender-400);
  color: white;
  box-shadow: 0 10px 20px -5px hsla(265, 55%, 50%, 0.3);
  transform: translateY(-2px);
}


/* Coming soon */
.coming-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px dashed rgba(45, 20, 60, 0.12);
  border-radius: var(--r-xl);
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(45, 20, 60, 0.02);
}

.cs-content {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cs-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, hsl(174, 60%, 95%), hsl(265, 60%, 96%));
  display: flex; align-items: center; justify-content: center;
  color: var(--c-teal-500);
  flex-shrink: 0;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.01);
}
.cs-icon svg { width: 20px; height: 20px; }
.cs-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cs-text strong { font-size: 0.95rem; font-weight: 700; color: var(--c-gray-800); }
.cs-text span   { font-size: 0.84rem; color: var(--text-secondary); }

/* ============================================================
   9. VALUES SECTION
   ============================================================ */
.values {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.values-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.values-body {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 16px;
}

.values-pillars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 16px;
  border-radius: var(--r-lg);
  border-bottom: 1px solid var(--border-soft);
  transition: all var(--t-slow) var(--ease-spring);
  animation: fade-left 0.6s var(--ease-out) var(--delay) both;
}
.pillar:last-child { border-bottom: 1px solid var(--border-soft); }
.pillar:hover {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 15px 35px -10px rgba(45, 20, 60, 0.05),
    0 5px 15px -5px rgba(45, 20, 60, 0.02);
  padding-left: 26px;
  padding-right: 26px;
  border-bottom-color: transparent;
}

.pillar-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-teal-500);
  background: var(--c-teal-50);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
  transition: all var(--t-base) var(--ease-spring);
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.05);
}

.pillar:hover .pillar-number {
  transform: scale(1.1) rotate(-8deg);
  background: var(--c-teal-500);
  color: white;
}

.pillar-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-gray-800);
  margin-bottom: 6px;
}
.pillar-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ============================================================
   10. CONTACT CTA
   ============================================================ */
.contact-cta {
  position: relative;
  padding: var(--section-py) 0;
  background: 
    radial-gradient(circle at 20% 30%, hsl(174, 48%, 30%) 0%, transparent 60%), 
    radial-gradient(circle at 80% 75%, hsl(265, 45%, 33%) 0%, transparent 60%), 
    linear-gradient(155deg, hsl(200, 50%, 28%) 0%, hsl(265, 45%, 35%) 100%);
  overflow: hidden;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}
.cta-orb-1 {
  width: 550px; height: 550px;
  top: -150px; right: -100px;
  background: radial-gradient(circle, var(--c-lavender-300), transparent);
  animation: pulse-orb-1 14s ease-in-out infinite;
}
.cta-orb-2 {
  width: 420px; height: 420px;
  bottom: -120px; left: -80px;
  background: radial-gradient(circle, var(--c-teal-300), transparent);
  animation: pulse-orb-2 18s ease-in-out infinite;
}

@keyframes pulse-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes pulse-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.15); }
}


.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-contact-info {
  margin-top: 8px;
}

.contact-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--t-fast);
}
.contact-link:hover { color: white; }

/* ============================================================
   11. FOOTER
   ============================================================ */
.footer {
  background: var(--c-gray-800);
  padding: 60px 0 0;
  color: var(--c-gray-300);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 220px;
}

/* .footer-logo removed — replaced by .bookshelf-logo--footer */

.footer-tagline {
  font-size: 0.82rem;
  color: var(--c-gray-400);
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-address {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--c-gray-500);
  line-height: 1.8;
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col strong {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gray-300);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--c-gray-400);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--c-gray-100); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid hsl(220, 15%, 22%);
  font-size: 0.82rem;
  color: var(--c-gray-500);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--c-gray-500);
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: var(--c-gray-300); }

/* ============================================================
   12. ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fade-left {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Intersection observer-driven animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   12b. 404 ERROR PAGE STYLES
   ============================================================ */
.error-section {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) clamp(20px, 5vw, 60px) 80px;
  overflow: hidden;
  background: var(--grad-hero);
}

.error-container {
  max-width: 900px;
  width: 100%;
  text-align: center;
  z-index: 2;
  position: relative;
}

.error-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--r-full);
  background: hsla(174, 45%, 38%, 0.1);
  color: var(--c-teal-500);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.error-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(45, 20, 60, 0.08));
}

.error-subtitle {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-gray-800);
  margin-bottom: 16px;
}

.error-message {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.error-portals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.error-portal-card {
  background: var(--grad-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 24px 20px;
  text-align: left;
  transition: all var(--t-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.error-portal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 196, 180, 0.3);
  box-shadow: var(--shadow-md);
}

.error-portal-card.epc-student:hover {
  border-color: var(--c-teal-200);
  box-shadow: var(--shadow-teal);
}

.error-portal-card.epc-pro:hover {
  border-color: var(--c-rose-200);
  box-shadow: 0 8px 30px hsla(340, 55%, 50%, 0.15);
}

.error-portal-card.epc-lov:hover {
  border-color: var(--c-lavender-200);
  box-shadow: var(--shadow-lav);
}

.epc-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.epc-icon-teal {
  background: var(--c-teal-50);
  color: var(--c-teal-500);
}

.epc-icon-rose {
  background: var(--c-rose-50);
  color: var(--c-rose-300);
}

.epc-icon-lav {
  background: var(--c-lavender-50);
  color: var(--c-lavender-400);
}

.epc-icon svg {
  width: 22px;
  height: 22px;
}

.epc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-gray-800);
  margin-bottom: 6px;
}

.epc-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.epc-link {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t-fast);
}

.epc-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast) var(--ease-out);
}

.error-portal-card:hover .epc-link svg {
  transform: translateX(3px);
}

.error-portal-card.epc-student .epc-link { color: var(--c-teal-500); }
.error-portal-card.epc-pro .epc-link { color: var(--c-rose-300); }
.error-portal-card.epc-lov .epc-link { color: var(--c-lavender-400); }

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

@media (max-width: 868px) {
  .error-portals {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto 32px;
  }
  .error-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .error-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   12c. TEAM PAGE STYLES
   ============================================================ */
.team-section {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding: calc(var(--nav-h) + 80px) clamp(20px, 5vw, 60px) 100px;
  background: var(--bg-soft);
  overflow: hidden;
}

.team-container {
  max-width: var(--container);
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.team-header-block {
  text-align: center;
  margin-bottom: 60px;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto 80px;
}

.team-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-slow) var(--ease-out);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 196, 180, 0.25);
}

.team-card-visual {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.team-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(8, 20, 24, 0.15));
  pointer-events: none;
}

.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.team-card:hover .team-card-img {
  transform: scale(1.04);
}

.team-card-content {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-card-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--c-gray-800);
  line-height: 1.1;
}

.team-card-role {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-teal-500);
}

.team-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--c-teal-500);
  background: hsla(174, 55%, 40%, 0.08);
  padding: 4px 10px;
  border-radius: var(--r-sm);
}

/* Alternating tag colors to keep it dynamic and modern */
.team-card:nth-child(even) .member-tag {
  color: var(--c-lavender-500);
  background: hsla(265, 55%, 50%, 0.08);
}

.team-card-quote {
  border-left: 3px solid var(--c-teal-300);
  padding-left: 16px;
  margin: 6px 0;
  color: var(--c-gray-600);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
}

.team-card:nth-child(even) .team-card-quote {
  border-color: var(--c-lavender-300);
}

.team-card-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.team-card-responsibilities {
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.responsibility-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-gray-500);
  margin-bottom: 12px;
}

.team-card-responsibilities ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-card-responsibilities li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--c-gray-700);
  line-height: 1.4;
}

.resp-icon {
  width: 15px;
  height: 15px;
  color: var(--c-teal-400);
  margin-top: 2px;
  flex-shrink: 0;
}

.team-card:nth-child(even) .resp-icon {
  color: var(--c-lavender-400);
}

.team-card-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.team-social-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-soft);
  background: var(--c-white);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-gray-600);
  transition: all var(--t-fast) var(--ease-out);
}

.team-social-icon svg {
  width: 15px;
  height: 15px;
}

.team-social-icon:hover {
  border-color: var(--c-teal-300);
  color: var(--c-teal-500);
  background: var(--c-teal-50);
  transform: translateY(-2px);
}

.team-card:nth-child(even) .team-social-icon:hover {
  border-color: var(--c-lavender-300);
  color: var(--c-lavender-500);
  background: var(--c-lavender-50);
}

/* History / Journey Section */
.team-history-wrapper {
  position: relative;
  background: var(--c-gray-800);
  color: white;
  border-radius: var(--r-xl);
  padding: 40px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.team-history-accent {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 85%, hsla(174, 55%, 40%, 0.15), transparent 60%);
  pointer-events: none;
}

.team-history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.team-history-stats {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
}

.history-stat-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.history-stat-number {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-teal-200);
  line-height: 1;
  margin-bottom: 6px;
}

.history-stat-unit {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
}

.history-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--c-gray-300);
  line-height: 1.4;
}

.team-history-content-card {
  text-align: left;
}

.team-history-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.team-history-divider {
  width: 60px;
  height: 3px;
  background: var(--grad-brand);
  border-radius: 2px;
  margin-bottom: 24px;
}

.team-history-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-gray-300);
  margin-bottom: 16px;
}

.team-history-text:last-of-type {
  margin-bottom: 0;
}

/* Desktop Styles override */
@media (min-width: 868px) {
  .team-grid {
    gap: 60px;
  }
  
  .team-card {
    grid-template-columns: 360px 1fr;
    grid-template-areas: "visual content";
  }
  
  .team-card:nth-child(even) {
    grid-template-columns: 1fr 360px;
    grid-template-areas: "content visual";
  }
  
  .team-card-visual {
    grid-area: visual;
    height: 100%;
    min-height: 480px;
  }
  
  .team-card-content {
    grid-area: content;
    padding: 48px;
  }
  
  .team-card-name {
    font-size: 2.2rem;
  }
  
  .team-history-wrapper {
    padding: 60px;
  }
  
  .team-history-grid {
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: center;
  }
  
  .team-history-stats {
    flex-direction: column;
    gap: 24px;
  }
  
  .history-stat-card {
    padding: 24px;
  }
  
  .history-stat-number {
    font-size: 2.5rem;
  }
  
  .team-history-title {
    font-size: 2.2rem;
  }
}
/* ──────────────────────────────────────────────────────────────
   12d. MUNICIPALITY PAGE STYLES (KOMMUNER)
   ────────────────────────────────────────────────────────────── */
.kommune-section {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.kommune-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.kommune-header-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.kommune-section .section-label {
  color: var(--c-teal-500);
}
.kommune-header-block .section-subtitle {
  color: var(--c-gray-800);
  font-size: 1.15rem;
  max-width: 680px;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.offering-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  transition: all var(--t-normal) var(--ease-out);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.offering-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-teal-300);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.offering-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.offering-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.offering-icon-wrap.oc-teal {
  background: hsla(174, 55%, 40%, 0.1);
  color: var(--c-teal-500);
}

.offering-icon-wrap.oc-rose {
  background: hsla(339, 49%, 43%, 0.1);
  color: var(--c-rose-500);
}

.offering-icon-wrap.oc-sage {
  background: hsla(140, 20%, 45%, 0.1);
  color: var(--c-sage-500);
}

.offering-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--c-gray-800);
}

.offering-card p {
  color: var(--c-gray-800);
  line-height: 1.7;
  font-size: 1.02rem;
}

/* Loop Diagram / Conceptual section */
.loop-section-banner {
  background: var(--c-gray-800);
  color: white;
  border-radius: var(--r-xl);
  padding: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.loop-section-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, hsla(339, 49%, 43%, 0.15), transparent 60%);
  pointer-events: none;
}

.loop-header-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 2;
}

.loop-header-block h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.loop-header-block p {
  color: #ffffff;
  line-height: 1.7;
  font-size: 1.1rem;
}

.loop-flow {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  position: relative;
  z-index: 2;
}

.loop-step-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-lg);
  padding: 30px 24px;
  text-align: center;
  transition: all var(--t-fast) var(--ease-out);
}

.loop-step-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.loop-step-num {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  display: inline-block;
}

.loop-step-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: #ffffff;
}

.loop-step-card p {
  font-size: 1.02rem;
  color: #ffffff;
  line-height: 1.65;
}

.loop-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--c-teal-400);
}

.loop-arrow svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 868px) {
  .offerings-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 50px;
  }
  
  .loop-flow {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .loop-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
  
  .loop-section-banner {
    padding: 40px 24px;
  }
}

/* Kommune Details Block */
.kommune-details-block {
  margin-top: 80px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: 50px 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.details-col {
  display: flex;
  flex-direction: column;
}

.details-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.8rem;
  color: var(--c-gray-800);
  margin: 12px 0 16px;
  line-height: 1.3;
}

.details-text {
  color: var(--c-gray-800);
  line-height: 1.7;
  font-size: 1.02rem;
  margin-bottom: 30px;
}

/* Info bullets */
.info-bullets {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-bullet {
  display: flex;
  gap: 16px;
}

.bullet-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: hsla(174, 55%, 40%, 0.08);
  color: var(--c-teal-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bullet-icon svg {
  width: 20px;
  height: 20px;
}

.bullet-content strong {
  display: block;
  font-size: 1.05rem;
  color: var(--c-gray-900);
  margin-bottom: 4px;
}

.bullet-content p {
  font-size: 0.98rem;
  color: var(--c-gray-800);
  line-height: 1.6;
  margin: 0;
}

/* Deliverables stack */
.deliverables-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.deliverable-item {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 20px;
  transition: all var(--t-fast) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.deliverable-item:hover {
  background: #ffffff;
  border-color: var(--c-teal-200);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.deliv-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-teal {
  background: hsla(174, 55%, 40%, 0.1);
  color: var(--c-teal-600);
}

.badge-rose {
  background: hsla(339, 49%, 43%, 0.1);
  color: var(--c-rose-600);
}

.badge-sage {
  background: hsla(140, 20%, 45%, 0.1);
  color: var(--c-sage-600);
}

.deliverable-item h4 {
  font-size: 1.1rem;
  margin: 0 0 6px 0;
  color: var(--c-gray-900);
  font-weight: 600;
}

.deliverable-item p {
  font-size: 0.98rem;
  color: var(--c-gray-800);
  line-height: 1.6;
  margin: 0;
}

/* Responsive adjustment for new section */
@media (max-width: 968px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .kommune-details-block {
    padding: 36px 24px;
  }
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .portals-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
  .values-inner { grid-template-columns: 1fr; gap: 52px; }
  .values-text .section-title { text-align: center; }
  .values-body { max-width: 100%; margin: 0 auto 16px; text-align: center; }
  .values-text .btn { display: block; width: fit-content; margin: 24px auto 0; }
}

@media (max-width: 640px) {
  .portals-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 36px; }
  .footer-nav { gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .coming-soon { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-portal-cards { grid-template-columns: 1fr; max-width: 360px; }
  .hero-meta { flex-direction: column; gap: 16px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .portal-card { padding: 28px 22px; }
}
