/* ===================================================
   テラスク Design System
   コンセプト：西日の差すテラスの一枚の紙
   ================================================= */

:root {
  /* Color: paper & ink */
  --paper: #FBFAF6;
  --paper-2: #F1EEE5;
  --paper-3: #E7E2D2;
  --ink: #2A2320;
  --ink-2: #4A403A;
  --ink-3: #7C6F65;
  --ink-4: #A89B8E;

  /* Color: leaf (主役) & sun (差し色) */
  --leaf: #5C8C4E;
  --leaf-deep: #436A38;
  --leaf-soft: #DCE7D3;
  --leaf-glow: #EEF3E5;
  --sun: #E87A3E;
  --sun-deep: #C55C24;
  --sun-soft: #F5D8B5;
  --sun-glow: #FBE9C8;
  --amber: #F1B24A;
  --danger: #A6371E;

  /* Type */
  --font-serif: "Zen Old Mincho", "Noto Serif JP", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Instrument Serif", "Zen Old Mincho", serif;

  /* Spacing / radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 20px;
  --shadow-soft: 0 1px 2px rgba(42, 35, 32, 0.04), 0 12px 32px -18px rgba(42, 35, 32, 0.18);
  --shadow-warm: 0 20px 60px -30px rgba(232, 122, 62, 0.35);

  /* Layout */
  --container: 1180px;
  --container-narrow: 860px;
  --gutter: clamp(20px, 4vw, 40px);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

a:hover { color: var(--leaf-deep); }

::selection { background: var(--leaf-glow); color: var(--ink); }

/* ===================================================
   Backgrounds — light on paper
   ================================================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 700px at 88% 105%, rgba(92, 140, 78, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 8% -6%, rgba(92, 140, 78, 0.08), transparent 55%),
    radial-gradient(ellipse 500px 380px at 92% 12%, rgba(232, 122, 62, 0.08), transparent 60%);
  z-index: 0;
}

body::after {
  /* subtle paper grain */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.14  0 0 0 0 0.12  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .6;
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 1; }

/* ===================================================
   Container
   ================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===================================================
   Header
   ================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.75);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(42, 35, 32, 0.08);
  background: rgba(251, 250, 246, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.06em;
  line-height: 1;
}

.site-logo .logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  position: relative;
}

.main-nav a:hover { color: var(--leaf-deep); background: rgba(92, 140, 78, 0.06); }

.main-nav a.active {
  color: var(--ink);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--leaf);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 12px;
  padding: 10px 18px !important;
  background: var(--sun);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--sun-deep);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .3s ease, opacity .3s ease;
}

/* ===================================================
   Type
   ================================================= */
.eyebrow {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--leaf-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(92, 140, 78, 0.18);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 0;
}

.h-display {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.h-lg { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.35; }
.h-md { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.4; }
.h-sm { font-size: 1.15rem; line-height: 1.5; }

.lead {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--ink-2);
}

.text-muted { color: var(--ink-3); }
.text-sun { color: var(--sun-deep); }
.text-leaf { color: var(--leaf-deep); }

/* Highlight ink for keywords */
.mark-sun {
  background: linear-gradient(180deg, transparent 62%, var(--leaf-glow) 62%, var(--leaf-glow) 92%, transparent 92%);
  padding: 0 2px;
}
.mark-warm {
  background: linear-gradient(180deg, transparent 62%, var(--sun-glow) 62%, var(--sun-glow) 92%, transparent 92%);
  padding: 0 2px;
}

/* ===================================================
   Buttons
   ================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

/* 主要CTA：陽オレンジ */
.btn-primary {
  background: var(--sun);
  color: #fff;
}
.btn-primary:hover { background: var(--sun-deep); color: #fff; box-shadow: var(--shadow-warm); }

.btn-sun {
  background: var(--sun);
  color: #fff;
}
.btn-sun:hover { background: var(--sun-deep); color: #fff; }

/* 二次CTA：若草の輪郭線 */
.btn-outline {
  background: transparent;
  color: var(--leaf-deep);
  border-color: var(--leaf);
}
.btn-outline:hover { border-color: var(--leaf-deep); color: var(--leaf-deep); background: var(--leaf-glow); }

/* 墨の確定系ボタン */
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover { background: var(--leaf-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding-left: 6px; padding-right: 6px;
}
.btn-ghost:hover { color: var(--sun-deep); background: transparent; }

.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ===================================================
   Section
   ================================================= */
.section {
  padding: clamp(72px, 10vw, 128px) 0;
  position: relative;
}

.section-tight { padding: clamp(48px, 6vw, 88px) 0; }

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(220, 231, 211, 0.35) 30%, rgba(220, 231, 211, 0.35) 70%, transparent);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head.center {
  margin-left: auto; margin-right: auto; text-align: center;
}

/* hand-drawn divider */
.divider {
  display: block;
  margin: 0 auto;
  width: 120px;
  height: 22px;
  color: var(--sun);
  opacity: .8;
}

/* ===================================================
   Hero
   ================================================= */
.hero {
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 128px);
  position: relative;
}

/* 若草の光の玉（メイン） */
.hero-sun {
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: min(620px, 62vw);
  height: min(620px, 62vw);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(92, 140, 78, 0.45), rgba(92, 140, 78, 0.20) 45%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  transition: transform .6s ease-out;
}

/* 陽が差し込むアクセント（サブ） */
.hero-sun::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 18%;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(232, 122, 62, 0.35), transparent 65%);
  filter: blur(30px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ===================================================
   Cards
   ================================================= */
.card {
  background: #FDFBF6;
  border: 1px solid rgba(42, 35, 32, 0.08);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.card-warm {
  background: linear-gradient(160deg, #FFF7EA 0%, #FDECD0 100%);
  border-color: rgba(232, 122, 62, 0.18);
}

.card-leaf {
  background: linear-gradient(160deg, #F3F7EC 0%, #E4EED7 100%);
  border-color: rgba(92, 140, 78, 0.20);
}

/* メディア関係者バナー：3カラム→モバイル縦積み */
.media-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  border-color: rgba(232, 122, 62, 0.35) !important;
  background: linear-gradient(160deg, #FFF7EA 0%, #FDECD0 100%) !important;
}
@media (max-width: 720px) {
  .media-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }
  .media-banner .btn { justify-self: start; white-space: normal !important; }
}

.card-tilt {
  transform: rotate(-1deg);
  transition: transform .5s ease;
}

.card-tilt:hover { transform: rotate(0deg); }

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: rgba(92, 140, 78, 0.10);
  color: var(--leaf-deep);
}

.tag-sun {
  background: rgba(232, 122, 62, 0.10);
  color: var(--sun-deep);
}

.tag-leaf {
  background: rgba(92, 140, 78, 0.10);
  color: var(--leaf-deep);
}

/* Info banner */
.notice {
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: rgba(92, 140, 78, 0.10);
  border-left: 3px solid var(--leaf);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}

.notice strong { color: var(--leaf-deep); font-weight: 500; }

.notice-warm {
  background: rgba(241, 178, 74, 0.14);
  border-left-color: var(--sun);
}
.notice-warm strong { color: var(--sun-deep); }

/* ===================================================
   Grids
   ================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }

@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================
   Event schedule
   ================================================= */
.schedule {
  list-style: none;
  padding: 0;
  margin: 0;
}
.schedule li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(42, 35, 32, 0.12);
  align-items: baseline;
}
.schedule li:last-child { border-bottom: 0; }
.schedule .time {
  font-family: var(--font-en);
  font-size: 20px;
  color: var(--leaf-deep);
  letter-spacing: 0.03em;
}
.schedule .desc { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.schedule .desc strong { color: var(--ink); font-weight: 500; }

/* ===================================================
   Members
   ================================================= */
.members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 800px) {
  .members { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .members { grid-template-columns: 1fr; }
}

.member {
  text-align: center;
}

.avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 20px 40px -25px rgba(42, 35, 32, 0.35);
}

.avatar-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ink-4);
  background:
    radial-gradient(circle at 30% 25%, var(--sun-soft), transparent 55%),
    linear-gradient(160deg, var(--paper-2), var(--paper-3));
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.avatar-placeholder::after {
  content: "photo";
  position: absolute;
  bottom: 14%;
  font-family: var(--font-en);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.15em;
  color: var(--ink-4);
  opacity: .7;
}

.avatar-small {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--paper-2);
  box-shadow: 0 6px 16px -10px rgba(42, 35, 32, 0.4);
  border: 2px solid var(--paper);
}
.avatar-small .avatar-placeholder::after { display: none; }
.avatar-small .avatar-placeholder { font-size: 15px; }

.member-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.member-role {
  font-size: 13px;
  color: var(--leaf-deep);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.member-notes {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
  text-align: left;
  padding-left: 18px;
  margin: 0;
}
.member-notes li { margin-bottom: 4px; }

/* ===================================================
   Member Profile Card (About page detailed)
   ================================================= */
.profiles {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  max-width: 960px;
  margin: 0 auto;
}
.profile-card {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  box-shadow: 0 20px 40px -30px rgba(42, 35, 32, 0.35);
  border: 1px solid rgba(42, 35, 32, 0.06);
}
.profile-card .avatar {
  width: 200px;
  margin-bottom: 0;
}
.profile-body {
  min-width: 0;
}
.profile-name {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.4;
}
.profile-role {
  font-size: 13.5px;
  color: var(--leaf-deep);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.profile-role a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.profile-role a:hover { color: var(--ink); }
.profile-summary {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.95;
  margin: 14px 0 0;
  padding: 14px 16px;
  background: rgba(233, 223, 201, 0.35);
  border-radius: var(--r-sm);
}
.profile-summary ul {
  margin: 0;
  padding-left: 18px;
}
.profile-summary li { margin-bottom: 4px; }
.profile-summary li:last-child { margin-bottom: 0; }
.profile-detail {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 2.05;
  margin-top: 20px;
}
.profile-detail p { margin: 0 0 12px; }
.profile-detail p:last-child { margin-bottom: 0; }
.profile-pending {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px dashed rgba(42, 35, 32, 0.18);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.9;
}

@media (max-width: 720px) {
  .profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .profile-card .avatar { width: 180px; }
  .profile-body { text-align: left; width: 100%; }
}

/* ===================================================
   Accordion (past events)
   ================================================= */
.accordion {
  border-top: 1px solid rgba(42, 35, 32, 0.10);
}
.accordion details {
  border-bottom: 1px solid rgba(42, 35, 32, 0.10);
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  transition: color .2s ease;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--leaf-deep); }

.accordion .marker {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(42, 35, 32, 0.15);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
  flex-shrink: 0;
}
.accordion .marker::before, .accordion .marker::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, background .3s ease;
}
.accordion .marker { position: relative; }
.accordion .marker::before { width: 12px; height: 1.5px; }
.accordion .marker::after { width: 1.5px; height: 12px; }
.accordion details[open] .marker {
  background: var(--leaf);
  border-color: var(--leaf);
  box-shadow: 0 0 0 8px rgba(92, 140, 78, 0.15);
}
.accordion details[open] .marker::before,
.accordion details[open] .marker::after { background: #fff; }
.accordion details[open] .marker::after { transform: scaleY(0); }

.accordion .body {
  padding: 4px 4px 26px;
  color: var(--ink-2);
  line-height: 2;
  font-size: 15px;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.timeline-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 6px 0;
  align-items: baseline;
}
.timeline-list .yr {
  font-family: var(--font-en);
  color: var(--leaf-deep);
  font-size: 16px;
}

/* ===================================================
   Footer（若草色）
   ================================================= */
.site-footer {
  padding: 72px 0 28px;
  background: var(--leaf);
  color: rgba(250, 246, 238, 0.92);
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: #FAF6EE;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14.5px;
  color: rgba(250, 246, 238, 0.82);
}
.footer-links a:hover { color: var(--sun-soft); }

.footer-desc {
  color: rgba(250, 246, 238, 0.82);
  line-height: 1.9;
  font-size: 14.5px;
  max-width: 320px;
}

.copyright {
  padding-top: 24px;
  border-top: 1px solid rgba(250, 246, 238, 0.18);
  font-size: 12.5px;
  color: rgba(250, 246, 238, 0.65);
  font-family: var(--font-en);
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===================================================
   Utilities
   ================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mt-4 { margin-top: 48px; }
.mt-5 { margin-top: 72px; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 32px; }
.mb-4 { margin-bottom: 48px; }

.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 36px; }

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ===================================================
   Responsive nav (mobile)
   ================================================= */
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(42, 35, 32, 0.08);
    box-shadow: 0 20px 40px -30px rgba(42, 35, 32, 0.25);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--gutter) 24px;
    gap: 4px;
  }
  .main-nav a {
    padding: 12px 8px;
    display: block;
  }
  .main-nav a.active::after { display: none; }
  .nav-cta { margin-left: 0; text-align: center; }
}
