/* ─────────────────────────────────────────────────────────────
   Projekt Nest — Main Stylesheet
   ───────────────────────────────────────────────────────────── */


/* ─── RESET ───────────────────────────────────────────────── */

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


/* ─── THEME TOKENS ─────────────────────────────────────────── */

:root {
  --ink:             #212E32;
  --accent:          #E8385A;
  --bg:              #FFFFFF;
  --muted:           #F4F2EE;
  --border:          #E8E5DF;
  --drawer-bg:       #212E32;
  --header-gradient-init: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 100%);
  --header-gradient: linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.26) 100%);

  color-scheme: light;
}

[data-theme="dark"] {
  --ink:             #EDE7E0;
  --bg:              #212E32;
  --muted:           #1A252A;
  --border:          rgba(255, 255, 255, 0.09);
  --drawer-bg:       #141C1F;
  --header-gradient-init: linear-gradient(180deg,rgba(33, 46, 50, 0) 0%, rgba(33, 46, 50, 0) 30%, rgba(33, 46, 50, 0) 100%);
  --header-gradient: linear-gradient(180deg,rgba(33, 46, 50, 1) 0%, rgba(33, 46, 50, 1) 30%, rgba(33, 46, 50, 0.26) 100%);

  color-scheme: dark;
}


/* ─── BASE ──────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  transition: background-color 0.35s ease, color 0.35s ease;
}

section,
footer,
.callout {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}


/* ─── TYPOGRAPHY ────────────────────────────────────────────── */

/*
 * .label          — micro uppercase eyebrow / marker
 * .heading-xl     — display heading  (hero, vision)
 * .heading-lg     — section heading  (process, team …)
 * .heading-md     — card heading
 * .subheading     — muted subtitle directly below a heading
 * .subheading--body   — slightly larger descriptive subtitle
 * .subheading--accent — italic accent-coloured subtitle (cards)
 * .text-serif     — medium italic serif (taglines, pull-quotes)
 * .text-serif--lg — large italic serif prose paragraph
 * .text-serif--bold   — bold italic serif (conclusions)
 * .text-accent    — inline accent colour
 * .caption        — smallest muted text (footer, meta)
 */

.label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.heading-xl {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  max-width: 780px;
  margin-bottom: 0.4rem;
}

.heading-lg {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  max-width: 680px;
  margin-bottom: 0.6rem;
}

.heading-md {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.subheading {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.38;
  margin-bottom: 4rem;
}

.subheading--body {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.55;
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

.subheading--accent {
  font-size: 0.68rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.text-serif {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 400;
  color: var(--ink);
  opacity: 0.65;
  max-width: 400px;
  line-height: 1.55;
}

.text-serif--lg {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 400;
  color: var(--ink);
  opacity: 0.72;
  line-height: 1.7;
}

.text-serif--bold {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  max-width: 680px;
  line-height: 1.45;
}

.text-accent {
  color: var(--accent);
  opacity: 1;
}

.caption {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--ink);
  opacity: 0.35;
}

.button--fw {
  width: 100%;
}

/* ─── SECTION LAYOUT ────────────────────────────────────────── */

section {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Background variants */
.section--default { background: var(--bg); }
.section--muted   { background: var(--muted); }
.section--dark {
  background: var(--drawer-bg);
  /* Re-scope tokens so child components render correctly on a dark surface,
     regardless of the active light/dark theme. */
  --ink:    #EDE7E0;
  --border: rgba(255, 255, 255, 0.09);
  --muted:  #1A252A;
  color-scheme: dark;
}

/* Height variants — default is 100dvh from section rule */
.section--half { min-height: 50dvh; }

/* Centered content wrapper — section background stays full-width */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* Section-specific layout overrides */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  position: relative;
}

#vision  { padding: 7rem 0; justify-content: center; }
#about   { padding: 7rem 0; justify-content: center; }
#why     { padding: 7rem 0; justify-content: center; }
#process { padding: 7rem 0 5rem; justify-content: flex-start; }


/* ─── LOGO ──────────────────────────────────────────────────── */

/* Theme-aware logo visibility */
.logo-light { display: block !important; }
.logo-dark  { display: none  !important; }

[data-theme="dark"] .logo-light { display: none  !important; }
[data-theme="dark"] .logo-dark  { display: block !important; }

/* Nav logo */
.nav-logo {
  height: 46px;
  width: auto;
  display: block;
}

/* Hero / display logo */
.hero-logo {
  width: min(26vw, 320px);
  height: auto;
}

/* ─── HERO CONTENT & IMAGE ──────────────────────────────────── */

/* Left panel: text stack */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 8rem 4rem 5rem;
  position: relative;
  z-index: 1;
}

/* Right panel: clipping container for the parallax image */
.hero-image-wrap {
  position: relative;
  overflow: hidden;
}

/* The image itself — taller than its container so parallax has room to move */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 130%;
  top: -15%;
  object-fit: cover;
  object-position: center 20%;
  transition: filter 0.35s ease;
}

/* In dark mode darken and fully desaturate the studio image */
[data-theme="dark"] .hero-image {
  filter: grayscale(100%) brightness(0.55) contrast(1.1);
}


/* ─── RULE ──────────────────────────────────────────────────── */

/* Horizontal divider used as a visual separator */
.rule {
  width: 36px;
  height: 1px;
  background: var(--border);
  transition: background-color 0.35s ease;
}


/* ─── CTA LINK ──────────────────────────────────────────────── */

/* Underlined inline call-to-action with trailing arrow */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.cta-link:hover     { color: var(--accent); }
.cta-link svg       { transition: transform 0.2s ease; }
.cta-link:hover svg { transform: translateX(3px); }


/* ─── SCROLL HINT ───────────────────────────────────────────── */

/* Animated scroll indicator anchored to the bottom of a section */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  opacity: 0.25;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;

  background: var(--bg);
  padding: 3em;
  opacity: 1;
  border-radius: 4px;
  width: 100px;
  height: 100px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}


/* ─── PROSE ─────────────────────────────────────────────────── */

/*
 * Container for large italic serif editorial text.
 * Use .text-serif--lg on paragraphs inside.
 */
.prose {
  max-width: 740px;
  margin-bottom: 2.5rem;
}

.prose strong { font-weight: 700; opacity: 1; }


/* ─── CARD GRID ─────────────────────────────────────────────── */

/* Evenly-divided column grid with top border */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  margin-bottom: 3rem;
}

/* 5-column variant — wraps naturally to 3+2 on mid-size viewports */
.card-grid--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  padding: 2rem 2rem 2rem 0;
  border-right: 1px solid var(--border);
}

.card:last-child        { border-right: none; padding-right: 0; }
.card:not(:first-child) { padding-left: 2rem; }


/* ─── PROBLEM LIST ──────────────────────────────────────────── */

/*
 * Editorial numbered list for problem/challenge content.
 * Three-column grid: [number] [title] [description]
 */
#why {
  min-height: auto;
  padding: 7rem 4rem;
}

.problem-list { width: 100%; }

.problem-list__item {
  display: grid;
  grid-template-columns: 3.5rem 1fr 2fr;
  gap: 0 3rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.problem-list__item:first-child { border-top: 1px solid var(--border); }

.problem-list__num {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.problem-list__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}

.problem-list__desc {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.72;
  line-height: 1.75;
}


/* ─── ARROW LIST ────────────────────────────────────────────── */

/* Unordered list with → accent markers */
.list--arrow {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.list--arrow li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.75;
  line-height: 1.5;
}

.list--arrow li::before {
  content: '→';
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.7;
  font-size: 0.7rem;
  margin-top: 0.05em;
}


/* ─── CALLOUT ───────────────────────────────────────────────── */

/* Bordered info box with a muted background */
.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.5rem;
  padding: 1.25rem 1.75rem;
  background: var(--muted);
  border: 1px solid var(--border);
}

.callout__label {
  flex-basis: 100%;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.callout__body {
  font-size: 0.73rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.6;
  opacity: 0.8;
}

.callout__body strong {
  font-weight: 500;
}


/* ─── HEADER ────────────────────────────────────────────────── */

header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  /*background: transparent;*/
  background: var(--header-gradient-init);
  backdrop-filter: blur(0px) saturate(1);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  border-bottom: 1px solid transparent;
  transition:
    background              1.4s ease,
    background-image        1.4s ease,
    backdrop-filter         1.4s ease,
    -webkit-backdrop-filter 1.4s ease,
    border-color            1.4s ease;
}

/* Gradient + blur state when page is scrolled */
header.scrolled {
  background: var(--header-gradient);
  backdrop-filter: blur(10px) saturate(1.6);
  -webkit-backdrop-filter: blur(10px) saturate(1.6);
  border-bottom-color: var(--border);

    transition:
    background              1.4s ease,
    background-image        1.4s ease,
    backdrop-filter         1.4s ease,
    -webkit-backdrop-filter 1.4s ease,
    border-color            1.4s ease;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 10001;
}


/* ─── THEME TOGGLE ──────────────────────────────────────────── */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.35s ease;
}

.theme-toggle:hover { opacity: 1; }

/* Show moon in light mode, sun in dark mode */
.icon-sun  { display: none;  }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none;  }


/* ─── HAMBURGER ─────────────────────────────────────────────── */

.hamburger {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transform-origin: center;
  transition:
    transform  0.42s cubic-bezier(0.76, 0, 0.24, 1),
    opacity    0.28s ease,
    width      0.3s  ease,
    background 0.3s  ease;
}

.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 14px; }
.hamburger span:nth-child(3) { width: 22px; }

/* Animates bars into an × when menu is open */
.hamburger.is-open span              { background: #fff; width: 22px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px)  rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ─── NAVIGATION DRAWER ─────────────────────────────────────── */

/* Full-screen scrim behind the drawer */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 16, 18, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s linear 0s;
}

/* Slide-in panel */
.menu-drawer {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(360px, 82vw);
  display: flex;
  flex-direction: column;
  padding: 5.5rem 2.25rem 2.25rem;
  background: var(--drawer-bg);
  transform: translateX(100%);
  transition:
    transform         0.52s cubic-bezier(0.76, 0, 0.24, 1),
    background-color  0.35s ease;
  will-change: transform;
}

.menu-overlay.is-open .menu-drawer { transform: translateX(0); }

.menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  font-weight: 400;
  opacity: 0;
  transform: translateX(16px);
  transition:
    color     0.2s ease,
    opacity   0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.menu-item:hover       { color: var(--accent); }

/* Staggered entrance animation */
.menu-overlay.is-open .menu-item              { opacity: 1; transform: translateX(0); }
.menu-overlay.is-open .menu-item:nth-child(1) { transition-delay: 0.17s; }
.menu-overlay.is-open .menu-item:nth-child(2) { transition-delay: 0.22s; }
.menu-overlay.is-open .menu-item:nth-child(3) { transition-delay: 0.27s; }
.menu-overlay.is-open .menu-item:nth-child(4) { transition-delay: 0.32s; }
.menu-overlay.is-open .menu-item:nth-child(5) { transition-delay: 0.37s; }

.menu-num {
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  opacity: 0.65;
  padding-bottom: 0.15em;
}

.drawer-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  opacity: 0;
  transition: opacity 0.38s ease, border-color 0.22s ease, background 0.22s ease;
}

.menu-overlay.is-open .drawer-cta { opacity: 1; transition-delay: 0.42s; }
.drawer-cta:hover { border-color: var(--accent); background: var(--accent); }

.drawer-tagline {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.16);
  opacity: 0;
  transition: opacity 0.38s ease 0.44s;
}

.menu-overlay.is-open .drawer-tagline { opacity: 1; }


/* ─── FOOTER NAV ────────────────────────────────────────────── */

/*
 * Multi-column footer navigation section (section--dark section--half).
 * Always renders on a dark surface regardless of theme.
 */
#footer-nav {
  padding: 5rem 4rem;
  justify-content: center;
}

/* 4-column grid: brand column is wider */
.footer-nav {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-nav .nav-logo {
  height: 120px;
}

/* Column heading — micro uppercase label */
.footer-col__heading {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* Tagline beneath brand logo */
.footer-tagline {
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  max-width: 220px;
}

/* Link list inside a footer column */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: rgba(255, 255, 255, 0.9); }

/* Social icon row */
.social-links {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}


/* Copyright line inside the footer nav section */
.footer-copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}


/* ─── COOKIE BANNER ────────────────────────────────────────── */

/*
 * GDPR-compliant consent banner, fixed at the bottom of the viewport.
 * Two views:
 *   .cookie-banner__main     — default: brief text + three action buttons
 *   .cookie-banner__settings — expanded: per-category toggles
 *
 * Shown/hidden via the `.is-visible` class added by JS.
 * Consent stored in localStorage under the key `pn-consent`.
 */

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  translate: -50% 0;
  z-index: 9999;
  width: min(calc(100vw - 3rem), 720px);
  min-width: 600px;
  max-height: min(400px, calc(100dvh - 3rem));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(calc(100% + 1.5rem));
  transition:
    transform         0.44s cubic-bezier(0.22, 1, 0.36, 1),
    background-color  0.35s ease,
    border-color      0.35s ease;
  will-change: transform;
}

/* Scrollable content area */
.cookie-banner__scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 1.5rem 2rem 0;
}

.cookie-banner.is-visible { transform: translateY(0); }

/* Backdrop — same as nav drawer scrim.
   Uses a real element (not body::before) so display:none fully removes it
   from the compositor tree on iOS, preventing status bar bleed-through. */
.cookie-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 16, 18, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cookie-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.cookie-open {
  overflow: hidden;
}

.cookie-banner__text { margin-bottom: 1.25rem; padding-bottom: 0; }

.cookie-banner__title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.cookie-banner__body {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.65;
  line-height: 1.55;
  max-width: 560px;
}

.cookie-banner__link {
  color: var(--accent);
  text-decoration: none;
}

.cookie-banner__link:hover { text-decoration: underline; }

/* Action row — pinned to bottom, always right-aligned */
.cookie-banner__actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

/* Button variants */
.cookie-banner__btn {
  padding: 0.6rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  background: none;
}

/* Primary — filled accent */
.cookie-banner__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cookie-banner__btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
  border-color: color-mix(in srgb, var(--accent) 85%, #000);
}

/* Outline — bordered */
.cookie-banner__btn--outline {
  border-color: var(--border);
  color: var(--ink);
}

.cookie-banner__btn--outline:hover {
  border-color: var(--ink);
}

/* Ghost — text only */
.cookie-banner__btn--ghost {
  color: var(--ink);
  opacity: 0.45;
}

.cookie-banner__btn--ghost:hover { opacity: 1; }

/* Settings panel */
.cookie-banner__settings { display: flex; flex-direction: column; gap: 1.25rem; }

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-category:last-child { border-bottom: none; }

.cookie-category__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cookie-category__name {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
}

.cookie-category__desc {
  font-size: 0.66rem;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.55;
  line-height: 1.45;
  max-width: 480px;
}

.cookie-category__always {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 20px;
  transition: background 0.2s ease;
}

.cookie-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle__track            { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle__track::after     { transform: translateX(16px); }
.cookie-toggle input:focus-visible + .cookie-toggle__track      { outline: 2px solid var(--accent); outline-offset: 2px; }


/* ─── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 1024px) {
  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: 45vw 1fr;
  }

  .hero-image-wrap {
    order: -1;
    min-height: 360px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
  }

  .hero-logo {
    width: min(64vw, 280px);
  }

  .scroll-hint { display: none; }
}

@media (max-width: 768px) {
  header { padding: 1.25rem 1.5rem; }

  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: 45vw 1fr;
  }

  #hero p.label {
    font-weight: 900;
    font-size: 1em;
  }

  .hero-image-wrap {
    order: -1;
    min-height: 360px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
  }

  .hero-logo {
    width: min(64vw, 280px);
    margin-top: 40px;
  }

  #about   { padding: 5rem 0; }
  #why     { padding: 5rem 0; }
  #vision  { padding: 5rem 0; }
  #process { padding: 5rem 0 4rem; }

  .container { padding: 0 1.5rem; }

  /* Problem list: collapse to 2-col (num + title/desc stacked) */
  .problem-list__item {
    grid-template-columns: 2rem 1fr;
    grid-template-rows: auto auto;
    gap: 0.35rem 1rem;
  }

  .problem-list__desc {
    grid-column: 2;
    margin-top: 16px;
  }

  .card-grid,
  .card-grid--5 {
    grid-template-columns: 1fr;
  }

  .card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
  }

  .card:last-child        { border-bottom: none; }
  .card:not(:first-child) { padding-left: 0; }

  .heading-lg { font-size: clamp(1.6rem, 7vw, 2.4rem); }

  .menu-drawer { padding: 4.5rem 1.75rem 2rem; }

  #footer-nav { padding: 4rem 1.5rem; }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .footer-tagline { max-width: none; }

  .cookie-banner {
    width: 100%;
    min-width: unset;
    bottom: 0;
    left: 0;
    translate: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    transform: translateY(100%);
  }

  .cookie-banner__scroll { padding: 1.25rem 1.5rem 0; }

  .cookie-banner__actions { padding: 0.85rem 1.5rem; }

  .cookie-banner__actions { justify-content: stretch; }

  .cookie-banner__btn { flex: 1; text-align: center; }
}


/* ─── REDUCED MOTION ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}
