@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600&display=swap');

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --ink: #0f1117;
  --ink-soft: #1e2230;
  --ink-muted: #3a3f52;
  --paper: #f5f4f0;
  --paper-warm: #eeecea;
  --white: #ffffff;
  --accent: #2d5be3;
  --accent-dark: #1e43c0;
  --accent-light: #e8edfb;
  --gold: #c9a84c;
  --gold-light: #f5edd8;

  --text-primary: #0f1117;
  --text-secondary: #3a3f52;
  --text-muted: #6b7280;
  --text-on-dark: #f5f4f0;
  --text-on-accent: #ffffff;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1200px;
  --max-width-narrow: 860px;
}

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

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

ul { list-style: none; }

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); }

strong { font-weight: 600; color: var(--text-primary); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85rem 2rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  min-height: 48px;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background-color: var(--accent-dark);
  color: var(--white);
}

.btn--outline {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--outline:hover {
  background-color: var(--accent);
  color: var(--white);
}

.btn--white {
  background-color: var(--white);
  color: var(--accent);
}
.btn--white:hover {
  background-color: var(--paper);
  color: var(--accent-dark);
}

.btn--full { width: 100%; }

/* ============================================================
   HEADER / MASTHEAD
   ============================================================ */
.masthead {
  background-color: var(--ink);
  padding: 0 var(--space-md);
  position: relative;
  z-index: 100;
}

.masthead__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.masthead__logo { display: flex; align-items: center; }
.masthead__logo img { filter: brightness(0) invert(1); }

.masthead__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.masthead__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 244, 240, 0.75);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  padding: 0.25rem 0;
  position: relative;
}

.masthead__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition);
}

.masthead__link:hover { color: var(--text-on-dark); }
.masthead__link:hover::after { width: 100%; }
.masthead__link--active { color: var(--white); }
.masthead__link--active::after { width: 100%; }

.masthead__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.masthead__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.masthead__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.masthead__burger.is-open span:nth-child(2) { opacity: 0; }
.masthead__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   DRAWER (MOBILE MENU) — DIAGONAL CLIP-PATH WIPE
   ============================================================ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
}

.drawer__stage-curtain {
  position: absolute;
  inset: 0;
  background-color: var(--ink);
  clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0);
  transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer.is-open .drawer__stage-curtain {
  clip-path: polygon(100% 0, 100% 0, 0 100%, 0 100%);
}

.drawer__nav {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  transition: opacity 0.3s ease 0.35s;
}

.drawer.is-open .drawer__nav { opacity: 1; }

.drawer__link {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--text-on-dark);
  transition: color var(--transition);
}

.drawer__link:hover { color: var(--accent); }

/* ============================================================
   HERO / STAGE
   ============================================================ */
.stage {
  background-color: var(--ink);
  padding: var(--space-2xl) var(--space-md);
}

.stage__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-xl);
  align-items: start;
}

.stage__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.stage__headline {
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.stage__sub {
  color: rgba(245, 244, 240, 0.7);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: var(--space-lg);
}

.stage__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.stage__benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.stage__benefit-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
  transition: background-color var(--transition);
}

.stage__benefit:hover .stage__benefit-icon { background-color: var(--accent-dark); }

.stage__benefit strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 0.2rem;
}

.stage__benefit p {
  font-size: 0.85rem;
  color: rgba(245, 244, 240, 0.6);
  margin: 0;
}


.spotlight--form {
  background-color: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
}

.spotlight--form:has(:focus-within) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.spotlight__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.spotlight__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* ============================================================
   FORMS
   ============================================================ */
.form { display: flex; flex-direction: column; gap: var(--space-sm); }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form__field { display: flex; flex-direction: column; gap: 0.35rem; }

.form__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.form__input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--paper-warm);
  border-radius: var(--radius-sm);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background-color: var(--white);
  transition: border-color var(--transition);
  min-height: 48px;
}

.form__input:focus {
  outline: none;
  border-color: var(--accent);
}

.form__input::placeholder { color: var(--text-muted); }

.form__select { appearance: none; cursor: pointer; }

.form__textarea { resize: vertical; min-height: 120px; }

.form__field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-xs);
}

.form__field--check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
  margin-top: 2px;
  cursor: pointer;
}

.form__field--check label {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.form__field--check label a { color: var(--accent); }

/* ============================================================
   CANVAS BLOCKS (CONTENT SECTIONS)
   ============================================================ */
.canvas-block { padding: var(--space-2xl) var(--space-md); }

.canvas-block--white { background-color: var(--white); }
.canvas-block--light { background-color: var(--paper); }
.canvas-block--ink { background-color: var(--ink); }
.canvas-block--accent { background-color: var(--accent); }

.canvas-block__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.canvas-block__inner--wide { max-width: 100%; padding: 0 var(--space-xl); }

.canvas-block__text-pair {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.canvas-block__h2 {
  color: var(--text-on-dark);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.canvas-block--ink .canvas-block__h2 { color: var(--text-on-dark); }

.canvas-block__body {
  color: rgba(245, 244, 240, 0.75);
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header--light .section-header__h2 { color: var(--white); }
.section-header--light .section-header__sub { color: rgba(255,255,255,0.7); }

.section-header__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-light);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.section-header__tag--light {
  color: var(--white);
  background-color: rgba(255,255,255,0.15);
}

.section-header__h2 {
  margin-bottom: var(--space-sm);
}

.section-header__sub {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   PROCESS SHELF
   ============================================================ */
.process-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}

.process-shelf__step {
  position: relative;
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: background-color var(--transition);
}

.process-shelf__step:hover { background-color: var(--accent-light); }

.process-shelf__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
  opacity: 0.3;
}

.process-shelf__icon {
  width: 44px;
  height: 44px;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.process-shelf__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.process-shelf__text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.process-shelf__connector {
  display: none;
}

.process-shelf--horizontal { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   GALLERY (GRID SECTIONS)
   ============================================================ */
.gallery {
  display: grid;
  gap: var(--space-md);
}

.gallery--topics { grid-template-columns: repeat(3, 1fr); }
.gallery--two { grid-template-columns: repeat(2, 1fr); }
.gallery--principles { grid-template-columns: repeat(2, 1fr); }

.gallery__card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: background-color var(--transition);
  border: 2px solid transparent;
}

.gallery__card:hover { border-color: var(--accent); }

.gallery__card--tall { padding: var(--space-lg); }

.gallery__card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.gallery__card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  transition: background-color var(--transition), color var(--transition);
}

.gallery__card:hover .gallery__card-icon {
  background-color: var(--accent);
  color: var(--white);
}

.gallery__card-title { font-size: 1.1rem; margin-bottom: var(--space-xs); }
.gallery__card-text { font-size: 0.875rem; color: var(--text-muted); }

.gallery__card--image { padding: 0; overflow: hidden; }
.gallery__card--image .gallery__card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.gallery__card--image .gallery__card-body { padding: var(--space-md); }


.gallery:has(.gallery__card--image) {
  align-items: stretch;
}

/* ============================================================
   PARALLAX STAGE
   ============================================================ */
.parallax-stage {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-stage__bg {
  position: absolute;
  inset: -80px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: transform;
}

.parallax-stage__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 17, 23, 0.72);
}

.parallax-stage__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-md);
  max-width: 800px;
}

.parallax-stage__headline {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.parallax-stage__sub {
  color: rgba(245, 244, 240, 0.8);
  font-size: 1.1rem;
}

/* ============================================================
   SWIPER CARDS
   ============================================================ */
.swiper { padding-bottom: 3rem !important; }

.swiper-card {
  background-color: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color var(--transition), background-color var(--transition);
}

.swiper-card:hover {
  background-color: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
}

.swiper-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.swiper-card__body { padding: var(--space-md); }

.swiper-card__title {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.swiper-card__text { font-size: 0.875rem; color: rgba(255,255,255,0.7); }

.swiper-pagination-bullet { background-color: rgba(255,255,255,0.4) !important; }
.swiper-pagination-bullet-active { background-color: var(--white) !important; }

.swiper-button-next,
.swiper-button-prev {
  color: var(--white) !important;
  background-color: rgba(255,255,255,0.15);
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover { background-color: rgba(255,255,255,0.25); }

.swiper-button-next::after,
.swiper-button-prev::after { font-size: 1rem !important; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background-color: var(--ink-soft);
  padding: var(--space-2xl) var(--space-md);
}

.cta-banner__inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  text-align: center;
}

.cta-banner__headline {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta-banner__sub {
  color: rgba(245, 244, 240, 0.7);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

/* ============================================================
   NEWSLETTER STRIP
   ============================================================ */
.newsletter-strip {
  background-color: var(--gold-light);
  padding: var(--space-lg) var(--space-md);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.newsletter-strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.newsletter-strip__title {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.newsletter-strip__sub { font-size: 0.875rem; color: var(--text-muted); }

.newsletter-strip__form {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.newsletter-strip__input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  background-color: var(--white);
  color: var(--text-primary);
  min-width: 240px;
  min-height: 48px;
  transition: border-color var(--transition);
}

.newsletter-strip__input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ============================================================
   FEATURE PAIR
   ============================================================ */
.feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.feature-pair__img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.feature-pair__title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: var(--space-md);
  margin-top: var(--space-sm);
}

.feature-pair__text {
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

/* ============================================================
   SHELF (FORMATS)
   ============================================================ */
.shelf--formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.shelf__item {
  background-color: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.shelf__item:hover { border-color: var(--accent); }

.shelf__item.spotlight {
  background-color: var(--accent-light);
  border-color: var(--accent);
}

.shelf__item-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.shelf__item-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.shelf__item-title { font-size: 1.3rem; }

.shelf__item-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.shelf__item-list {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shelf__item-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  position: relative;
}

.shelf__item-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background-color: var(--ink);
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
}

.page-hero--accent { background-color: var(--accent); }
.page-hero--small { padding: var(--space-xl) var(--space-md) var(--space-lg); }

.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero--accent .section-header__tag--light { background-color: rgba(255,255,255,0.2); }

.page-hero__title {
  color: var(--white);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-xs);
}

.page-hero__title--light { color: var(--white); }

.page-hero__sub {
  color: rgba(245, 244, 240, 0.75);
  font-size: 1.1rem;
  max-width: 640px;
}

.page-hero__sub--light { color: rgba(255,255,255,0.85); }

/* ============================================================
   PROGRAM TIMELINE
   ============================================================ */
.program-timeline {
  position: relative;
  padding-left: var(--space-lg);
}

.program-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--accent);
  opacity: 0.2;
}

.program-timeline__item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  position: relative;
}

.program-timeline__item:last-child { margin-bottom: 0; }

.program-timeline__marker {
  position: absolute;
  left: calc(-1 * var(--space-lg));
  top: 4px;
}

.program-timeline__dot {
  display: block;
  width: 18px;
  height: 18px;
  background-color: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--paper);
}

.program-timeline__content { flex: 1; }

.program-timeline__title { font-size: 1.3rem; margin-bottom: 0.25rem; }

.program-timeline__sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.program-timeline__text { font-size: 0.95rem; color: var(--text-secondary); }

/* ============================================================
   FAQ SHELF
   ============================================================ */
.faq-shelf {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 2px solid var(--paper-warm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-shelf__item {
  border-bottom: 2px solid var(--paper-warm);
}

.faq-shelf__item:last-child { border-bottom: none; }

.faq-shelf__question {
  width: 100%;
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--white);
  min-height: 64px;
  transition: background-color var(--transition), color var(--transition);
}

.faq-shelf__question:hover { background-color: var(--accent-light); color: var(--accent); }

.faq-shelf__question[aria-expanded="true"] {
  background-color: var(--accent);
  color: var(--white);
}

.faq-shelf__question i {
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-shelf__question[aria-expanded="true"] i { transform: rotate(180deg); }

.faq-shelf__answer {
  display: none;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--paper);
}

.faq-shelf__answer.is-open { display: block; }

.faq-shelf__answer p { font-size: 0.95rem; color: var(--text-secondary); }

/* ============================================================
   CONTACT LAYOUT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-layout__title {
  font-size: 1.6rem;
  margin-bottom: var(--space-lg);
}

.contact-info-card {
  background-color: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.contact-info-card__title {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.contact-info-card__item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--paper-warm);
}

.contact-info-card__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-info-card__item i {
  width: 36px;
  height: 36px;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-info-card__item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-info-card__item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-info-card__item a { color: var(--accent); }

/* ============================================================
   MAP
   ============================================================ */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  border: 2px solid var(--paper-warm);
}

.directions-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.directions-shelf__item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: border-color var(--transition);
  border: 2px solid transparent;
}

.directions-shelf__item:hover { border-color: var(--accent); }

.directions-shelf__icon {
  width: 44px;
  height: 44px;
  background-color: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  transition: background-color var(--transition), color var(--transition);
}

.directions-shelf__item:hover .directions-shelf__icon {
  background-color: var(--accent);
  color: var(--white);
}

.directions-shelf__title { font-size: 1rem; margin-bottom: var(--space-xs); }
.directions-shelf__text { font-size: 0.875rem; color: var(--text-muted); }

/* ============================================================
   LEGAL LAYOUT
   ============================================================ */
.legal-layout { padding: var(--space-xl) var(--space-md); }

.legal-layout__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.legal-layout__sidebar {
  position: sticky;
  top: var(--space-md);
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.legal-nav__link:hover {
  color: var(--accent);
  background-color: var(--accent-light);
  border-left-color: var(--accent);
}

.legal-section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--paper-warm);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-section__title {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.legal-section p {
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-section ul {
  margin: var(--space-sm) 0;
  padding-left: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-section ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1rem;
  list-style: disc;
  list-style-position: inside;
}

.legal-section code {
  background-color: var(--paper);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--accent);
}

.legal-intro-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background-color: var(--accent-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-xl);
  border-left: 4px solid var(--accent);
}

.legal-intro-block__icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-intro-block p {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-table {
  border: 2px solid var(--paper-warm);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-md) 0;
}

.cookie-table__row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 1px;
}

.cookie-table__row span {
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  background-color: var(--white);
  color: var(--text-secondary);
}

.cookie-table__row--header span {
  background-color: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   THANKS PAGE
   ============================================================ */
.thanks-stage {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
  background-color: var(--paper);
}

.thanks-stage__inner {
  text-align: center;
  max-width: 560px;
}

.thanks-stage__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
}

.thanks-stage__text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.thanks-stage__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}


.envelope-animation {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.envelope {
  position: relative;
  width: 100px;
  height: 70px;
  animation: envelope-appear 0.5s ease 0.2s both;
}

.envelope__body {
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

.envelope__flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background-color: var(--accent-dark);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transform-origin: top center;
  animation: flap-open 0.6s ease 0.8s both;
}

.envelope__letter {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 50px;
  background-color: var(--white);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: letter-rise 0.7s ease 1.2s both;
}

.envelope__letter-line {
  height: 3px;
  background-color: var(--paper-warm);
  border-radius: 2px;
}

.envelope__letter-line--short { width: 60%; }

@keyframes envelope-appear {
  from { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes flap-open {
  from { transform: rotateX(0deg); }
  to { transform: rotateX(-160deg); }
}

@keyframes letter-rise {
  from { transform: translateY(0); }
  to { transform: translateY(-40px); }
}

/* ============================================================
   FOOTER STAGE
   ============================================================ */
.footer-stage {
  background-color: var(--ink);
  margin-top: auto;
}

.footer-stage__cta {
  background-color: var(--accent);
  padding: var(--space-2xl) var(--space-md);
}

.footer-stage__cta-inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  text-align: center;
}

.footer-stage__cta-headline {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: var(--space-sm);
}

.footer-stage__cta-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
}

.footer-stage__body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-stage__col--brand .footer-stage__logo {
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-sm);
}

.footer-stage__tagline {
  font-size: 0.875rem;
  color: rgba(245, 244, 240, 0.5);
  max-width: 240px;
}

.footer-stage__col-title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.4);
  margin-bottom: var(--space-sm);
}

.footer-stage__link {
  display: block;
  font-size: 0.875rem;
  color: rgba(245, 244, 240, 0.65);
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.footer-stage__link:hover { color: var(--white); }

.footer-stage__contact {
  font-size: 0.85rem;
  color: rgba(245, 244, 240, 0.6);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-stage__contact i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-stage__contact a {
  color: rgba(245, 244, 240, 0.6);
  transition: color var(--transition);
}

.footer-stage__contact a:hover { color: var(--white); }

.footer-stage__bottom {
  border-top: 1px solid rgba(245, 244, 240, 0.1);
  padding: var(--space-md) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-stage__bottom p {
  font-size: 0.8rem;
  color: rgba(245, 244, 240, 0.35);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background-color var(--transition), transform var(--transition);
  z-index: 80;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
}

/* ============================================================
   COOKIE CONSENT — RIGHT SIDE PANEL
   ============================================================ */
.cookie-panel-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 17, 23, 0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

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

.cookie-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background-color: var(--white);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--accent);
}

.cookie-panel.is-open { transform: translateX(0); }

.cookie-panel__header {
  padding: var(--space-md);
  background-color: var(--ink);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cookie-panel__header i {
  font-size: 1.3rem;
  color: var(--accent);
}

.cookie-panel__header h3 {
  font-size: 1rem;
  color: var(--white);
}

.cookie-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.cookie-panel__intro {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.cookie-panel__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--paper-warm);
}

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

.cookie-panel__cat-info { flex: 1; padding-right: var(--space-xs); }

.cookie-panel__cat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.2rem;
}

.cookie-panel__cat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background-color: var(--paper-warm);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color var(--transition);
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background-color: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
}

.cookie-toggle input:checked + .cookie-toggle__slider { background-color: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle__slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle__slider { opacity: 0.6; cursor: not-allowed; }

.cookie-panel__footer {
  padding: var(--space-md);
  border-top: 2px solid var(--paper-warm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cookie-panel__footer .btn { font-size: 0.85rem; padding: 0.7rem 1rem; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .stage__inner { grid-template-columns: 1fr; }
  .stage__right { max-width: 520px; }
  .gallery--topics { grid-template-columns: repeat(2, 1fr); }
  .process-shelf { grid-template-columns: repeat(2, 1fr); }
  .process-shelf--horizontal { grid-template-columns: repeat(2, 1fr); }
  .footer-stage__body { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .canvas-block__text-pair { grid-template-columns: 1fr; }
  .shelf--formats { grid-template-columns: 1fr; }
  .feature-pair { grid-template-columns: 1fr; }
  .feature-pair__img { height: 300px; }
  .legal-layout__inner { grid-template-columns: 200px 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }

  .masthead__nav { display: none; }
  .masthead__burger { display: flex; }

  .stage { padding: var(--space-xl) var(--space-sm); }
  .stage__inner { grid-template-columns: 1fr; gap: var(--space-lg); }

  .gallery--topics { grid-template-columns: 1fr; }
  .gallery--two { grid-template-columns: 1fr; }
  .gallery--principles { grid-template-columns: 1fr; }

  .process-shelf { grid-template-columns: 1fr; }
  .process-shelf--horizontal { grid-template-columns: 1fr; }

  .newsletter-strip__inner { flex-direction: column; align-items: flex-start; }
  .newsletter-strip__form { width: 100%; }
  .newsletter-strip__input { min-width: unset; flex: 1; }

  .footer-stage__body { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-stage__bottom { flex-direction: column; gap: var(--space-xs); text-align: center; }

  .legal-layout__inner { grid-template-columns: 1fr; }
  .legal-layout__sidebar { display: none; }

  .directions-shelf { grid-template-columns: 1fr; }

  .form__row { grid-template-columns: 1fr; }

  .feature-pair { grid-template-columns: 1fr; }
  .feature-pair__img { height: 240px; }

  .parallax-stage { height: 360px; }
  .parallax-stage__bg { background-attachment: scroll; }

  .cookie-panel { width: 100%; }

  .thanks-stage__actions { flex-direction: column; align-items: center; }

  .canvas-block__inner--wide { padding: 0 var(--space-sm); }

  .shelf--formats { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; }

  .cookie-table__row { grid-template-columns: 1fr; }
  .cookie-table__row span { border-bottom: 1px solid var(--paper-warm); }

  .back-to-top { bottom: var(--space-md); right: var(--space-md); }

  .page-hero { padding: var(--space-xl) var(--space-sm) var(--space-lg); }
}

@media (max-width: 480px) {
  .spotlight--form { padding: var(--space-md); }
  .canvas-block { padding: var(--space-xl) var(--space-sm); }
  .cta-banner { padding: var(--space-xl) var(--space-sm); }
  .newsletter-strip { padding: var(--space-md) var(--space-sm); }
  .footer-stage__cta { padding: var(--space-xl) var(--space-sm); }
}