:root {
  --bg: #f6efd2;
  --bg-deep: #e2ddb4;
  --ink: #000000;
  --accent: #e43636;
  --accent-dark: #b12121;
  --muted: #544b3d;
  --paper: #fffaf0;
  --line: rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 16px 34px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 24px 50px rgba(0, 0, 0, 0.12);
  --shadow-color: 0 18px 42px rgba(228, 54, 54, 0.12);
  --radius-pill: 999px;
  --radius-card: 28px;
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 1.75rem;
  --space-5: 2.5rem;
  --space-6: 3.5rem;
  --space-7: 5rem;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(228, 54, 54, 0.12), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(226, 221, 180, 0.75), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, #f3ebca 100%);
  line-height: 1.6;
}

img,
svg,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(246, 239, 210, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-bar,
.footer-line,
.contact-strip-grid,
.hero-grid,
.ribbon-grid,
.lab-layout,
.faq-layout,
.story-shell,
.contact-shell,
.guide-grid,
.policy-shell,
.legal-shell {
  display: grid;
  gap: var(--space-4);
}

.header-bar {
  grid-template-columns: 1fr;
  align-items: center;
  padding: 1rem 0;
}

.brand-mark {
  display: block;
}

.brand-mark img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.brand-mark img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.brand-mark:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .brand-mark img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .brand-mark img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .brand-mark img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .brand-mark img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.pill-nav a {
  padding: 0.72rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.45);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.pill-nav a:hover,
.pill-nav a:focus-visible,
.pill-nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px) rotate(-1deg);
}

main section {
  padding: var(--space-6) 0;
}

.hero-shell {
  padding-top: var(--space-5);
}

.hero-grid {
  align-items: start;
}

.hero-copy,
.hero-stage,
.paper-card,
.stat-card,
.note-panel,
.mosaic-main,
.mosaic-side,
.idea-card,
.faq-list details,
.page-card,
.guide-note,
.contact-panel,
.policy-card,
.legal-card,
.thank-card,
.map-panel {
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero-copy,
.hero-stage,
.note-panel,
.page-card,
.policy-card,
.legal-card,
.planner-card,
.radar-card,
.standards-card,
.memo-card,
.board-card,
.switch-panel {
  backdrop-filter: blur(10px);
}

.hero-copy {
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 24px 44px 24px 24px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 9rem;
  height: 9rem;
  border-radius: 34px;
  background: rgba(228, 54, 54, 0.08);
  transform: rotate(18deg);
}

.hero-copy h1,
.page-title h1,
.thank-card h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  margin: 0.2rem 0 1rem;
  max-width: 12ch;
}

.lead {
  font-size: 1.08rem;
  max-width: 60ch;
}

.eyebrow,
.mini-label {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 800;
}

.hero-actions,
.cookie-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.button.solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: var(--accent);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.42);
}

.button.small {
  min-height: 40px;
  padding: 0.65rem 1rem;
}

.hero-stage {
  border-radius: 46px 18px 34px 18px;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(228, 54, 54, 0.12), transparent),
    rgba(226, 221, 180, 0.75);
}

.slider-frame {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.slide-card {
  position: absolute;
  inset: 0;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.88);
  opacity: 0;
  transform: translateX(30px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.slide-card.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.slide-index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 800;
}

.slider-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.slider-btn,
.chip {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.slider-btn:hover,
.chip:hover,
.slider-btn:focus-visible,
.chip:focus-visible,
.chip.is-active {
  background: var(--ink);
  color: var(--bg);
}

.patchwork {
  display: grid;
  gap: 1rem;
}

.note-panel {
  padding: 1.5rem;
  border-radius: 22px;
}

.note-b {
  transform: translateY(0.8rem);
}

.note-c ul,
.check-list,
.simple-list {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.document-ribbon,
.guide-accordion,
.policy-listing {
  background: rgba(226, 221, 180, 0.45);
}

.paper-card,
.stat-card,
.page-card,
.policy-card,
.legal-card {
  padding: 1.5rem;
  border-radius: 30px;
}

.stat-column,
.faq-list,
.guide-note-stack,
.policy-listing {
  display: grid;
  gap: 1rem;
}

.split-head,
.page-title,
.contact-top,
.policy-hero,
.legal-top {
  display: grid;
  gap: 1rem;
}

.step-river {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.step-river article {
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 4.2rem;
  background: rgba(255, 250, 240, 0.72);
  border-radius: 20px 32px 20px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.step-river span {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.mosaic-grid,
.program-grid,
.guide-grid,
.contact-shell,
.policy-shell,
.legal-shell {
  display: grid;
  gap: 1rem;
}

.mosaic-main,
.mosaic-side,
.idea-card {
  padding: 1.5rem;
  border-radius: 24px;
}

.mosaic-side.accent,
.accent-card {
  background: rgba(228, 54, 54, 0.1);
}

.local-radar,
.editorial-standards,
.schedule-lab,
.contact-support,
.founder-memo,
.review-board,
.guide-matrix {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.18), rgba(226, 221, 180, 0.24));
}

.radar-grid,
.standards-grid,
.planner-grid,
.memo-layout,
.board-grid {
  display: grid;
  gap: 1rem;
}

.radar-card,
.standards-card,
.planner-card,
.memo-card,
.board-card,
.switch-panel {
  padding: 1.5rem;
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.76);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-soft);
}

.context-switcher {
  display: grid;
  gap: 1rem;
}

.switch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.switch-panel {
  position: relative;
  overflow: hidden;
}

.switch-panel::after {
  content: "";
  position: absolute;
  inset: auto -1rem -1rem auto;
  width: 7rem;
  height: 7rem;
  border-radius: 28px;
  background: rgba(228, 54, 54, 0.08);
  transform: rotate(20deg);
}

.lab-layout {
  align-items: start;
}

.lab-cards {
  display: grid;
  gap: 1rem;
}

.idea-card[hidden] {
  display: none;
}

.faq-list details {
  padding: 1rem 1.25rem;
  border-radius: 18px;
}

.faq-list summary,
.guide-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p,
.guide-faq p {
  margin-bottom: 0;
}

.guide-note {
  padding: 1.2rem;
  border-radius: 22px;
}

.contact-strip {
  padding-bottom: var(--space-7);
}

.contact-strip-grid,
.footer-line {
  align-items: center;
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  background: rgba(255, 250, 240, 0.7);
}

.footer-line {
  font-size: 0.92rem;
  gap: 0.5rem 1rem;
}

.footer-line span:last-child a {
  white-space: nowrap;
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 20;
}

.cookie-box,
.cookie-settings {
  background: #fffaf0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
  padding: 1.25rem;
}

.cookie-dialog {
  border: none;
  padding: 0;
  background: transparent;
}

.cookie-dialog::backdrop {
  background: rgba(0, 0, 0, 0.3);
}

.cookie-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.switch input {
  margin-right: 0.5rem;
}

.page-hero,
.contact-hero,
.policy-hero-wrap,
.legal-hero {
  padding-top: var(--space-5);
}

.page-title,
.contact-top,
.policy-hero,
.legal-top,
.thank-card {
  padding: 1.8rem;
  background: rgba(255, 250, 240, 0.75);
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.zigzag-layout,
.offset-layout,
.contact-shell,
.legal-shell {
  display: grid;
  gap: 1rem;
}

.page-card.alt-shape {
  border-radius: 38px 18px 18px 18px;
}

.page-card.cut-shape {
  border-radius: 18px 38px 18px 18px;
}

.mini-grid {
  display: grid;
  gap: 1rem;
}

.tape-note {
  padding: 1rem 1.25rem;
  background: rgba(228, 54, 54, 0.08);
  border-left: 4px solid var(--accent);
}

.day-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.day-entry {
  padding: 1.2rem;
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.day-entry:hover,
.idea-card:hover,
.planner-card:hover,
.radar-card:hover,
.standards-card:hover,
.memo-card:hover,
.board-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-color);
}

.timeline {
  position: relative;
  margin-left: 0.25rem;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: rgba(0, 0, 0, 0.15);
}

.timeline article {
  position: relative;
  margin-bottom: 1.2rem;
  padding: 0.3rem 0 0.3rem 0.8rem;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.6rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
}

.guide-faq details {
  padding: 1rem 1.2rem;
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 0.9rem;
}

.contact-panel,
.map-panel {
  padding: 1.4rem;
  border-radius: 26px;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(228, 54, 54, 0.12);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #b21616;
}

.error-text {
  min-height: 1.1rem;
  color: #9b1414;
  font-size: 0.88rem;
}

.checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checkbox-row input {
  margin-top: 0.25rem;
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 18px;
}

.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body:not(.js-ready) .reveal-up {
  opacity: 1;
  transform: none;
}

.policy-shell article+article,
.legal-shell article+article {
  margin-top: 1rem;
}

.thank-wrap {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.thank-card {
  max-width: 760px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 760px) {
  .header-bar {
    grid-template-columns: auto 1fr;
  }

  .pill-nav {
    justify-content: flex-end;
  }

  .hero-grid,
  .ribbon-grid,
  .contact-strip-grid,
  .faq-layout,
  .lab-layout,
  .contact-shell {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .patchwork {
    grid-template-columns: 1.1fr 0.9fr 0.8fr;
  }

  .step-river {
    grid-template-columns: repeat(3, 1fr);
  }

  .mosaic-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .lab-cards,
  .mini-grid,
  .policy-shell,
  .legal-shell,
  .radar-grid,
  .standards-grid,
  .planner-grid,
  .memo-layout,
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .offset-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .zigzag-layout {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .story-shell {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}