:root {
  --page-bg: #d9d9d7;
  --surface: #f7f7f4;
  --surface-clean: #ffffff;
  --surface-muted: #eeeeeb;
  --ink: #080808;
  --ink-soft: #262626;
  --ink-muted: #6d6d68;
  --line: #deded9;
  --cream: #f3eadf;
  --sage: #dce3d5;
  --steel: #dfe5e8;
  --clay: #c9a48e;
  --lemon: #f2c94c;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 34px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.08);
  --shadow-tight: 0 8px 24px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(18px, 3vw, 42px);
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.page {
  width: min(100%, var(--max));
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--pad);
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-link,
.filter-pill,
.secondary-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease);
}

.nav-link {
  padding: 0 16px;
}

.nav-link:hover,
.nav-link.active,
.filter-pill.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-btn,
.menu-toggle,
.card-icon,
.arrow-btn {
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.icon-btn,
.menu-toggle {
  width: 40px;
  height: 40px;
}

.icon-btn:hover,
.menu-toggle:hover,
.card-icon:hover,
.arrow-btn:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: #fff;
}

.menu-toggle {
  display: none;
  position: relative;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  transition: top 180ms var(--ease), transform 180ms var(--ease), opacity 180ms var(--ease);
}

.menu-toggle::before {
  top: 14px;
}

.menu-toggle span {
  top: 19px;
}

.menu-toggle::after {
  top: 24px;
}

.menu-toggle[aria-expanded="true"]::before {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::after {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}

.primary-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-tight);
}

.primary-pill .arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.secondary-pill {
  padding: 0 18px;
}

.hero-collage {
  display: grid;
  grid-template-columns: minmax(320px, 1.12fr) minmax(320px, 1.4fr);
  gap: 24px;
  margin-bottom: 24px;
}

.hero-panel,
.visual-panel,
.content-panel,
.quiet-panel,
.form-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-clean);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  min-height: 580px;
  display: grid;
  align-content: space-between;
  padding: 28px;
}

.hero-center {
  max-width: 560px;
  margin: 48px auto;
  text-align: center;
}

.mini-label {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 5.4vw, 86px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.08;
}

p {
  color: var(--ink-muted);
  line-height: 1.5;
}

.hero-note {
  max-width: 310px;
  margin-left: auto;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.visual-panel {
  position: relative;
  min-height: 580px;
  background: var(--surface-muted);
}

.visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glass-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: min(360px, calc(100% - 56px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.glass-card strong {
  display: block;
  margin-bottom: 6px;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.guide-card {
  position: relative;
  display: grid;
  align-content: start;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-clean);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.guide-media {
  position: relative;
  width: calc(100% - 24px);
  justify-self: center;
  aspect-ratio: 16 / 9;
  max-height: 340px;
  overflow: hidden;
  margin: 12px;
  border-radius: 22px;
  background: var(--surface-muted);
}

.mini-card-grid .guide-media {
  width: min(calc(100% - 24px), 680px);
  max-height: 320px;
}

.guide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-icon {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.card-action {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.card-action .arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
}

.card-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: end;
  min-height: 106px;
  padding: 4px 24px 24px;
}

.card-copy p {
  margin-bottom: 0;
  font-size: 13px;
}

.card-copy .tag {
  align-self: end;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.content-panel {
  padding: clamp(28px, 4vw, 56px);
  margin-bottom: 24px;
}

.panel-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}

.slash-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.panel-title {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-pill {
  padding: 0 14px;
  color: var(--ink-muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  margin-bottom: 24px;
}

.quiet-panel,
.form-panel {
  padding: clamp(24px, 3.2vw, 44px);
}

.metric-grid,
.process-grid,
.resource-grid,
.notice-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid,
.resource-grid,
.notice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric,
.process-card,
.resource-card,
.notice-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-clean);
  padding: 22px;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
  font-weight: 500;
}

.number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.feature-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms var(--ease);
}

.faq-answer p {
  max-width: 780px;
  padding-bottom: 22px;
}

.faq-item.open .faq-answer {
  max-height: 260px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field,
.form-field.full {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-clean);
  padding: 0 18px;
  outline: none;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 26px) 21px, calc(100% - 20px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 48px;
}

textarea {
  min-height: 130px;
  border-radius: 22px;
  padding-top: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.check-field {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.check-field input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--ink);
}

.form-message {
  display: none;
  padding: 16px;
  border-radius: 18px;
  background: var(--sage);
  color: var(--ink);
  font-weight: 700;
}

.form-message.show {
  display: block;
}

.form-grid .primary-pill {
  width: fit-content;
  max-width: 100%;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(150px, 0.5fr));
  gap: 24px;
  padding: 32px 0 0;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.site-footer h3 {
  font-size: 13px;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  color: var(--ink-muted);
  font-size: 14px;
}

.fine-print {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .page {
    padding: 18px;
  }

  .site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    margin: -18px -18px 18px;
    padding: 14px 18px;
    background: rgba(217, 217, 215, 0.9);
    backdrop-filter: blur(14px);
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    z-index: 18;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    padding: 14px;
    border-radius: 24px;
    background: var(--surface-clean);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    min-height: 46px;
  }

  .hero-collage,
  .split-grid,
  .panel-head {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .visual-panel {
    min-height: auto;
  }

  .visual-panel {
    aspect-ratio: 1 / 0.78;
  }

  .panel-title {
    margin: 0;
    text-align: left;
  }

  .filter-row {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .guide-grid,
  .metric-grid,
  .process-grid,
  .resource-grid,
  .notice-grid,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page {
    padding: 14px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    margin: -14px -14px 14px;
    padding: 12px 14px;
  }

  .brand {
    font-size: 12px;
  }

  .hero-panel {
    min-height: calc(100vh - 100px);
    padding: 20px;
  }

  .hero-center {
    margin: 36px auto;
  }

  h1 {
    font-size: clamp(44px, 14vw, 60px);
  }

  h2 {
    font-size: 34px;
  }

  .mini-card-grid,
  .guide-grid,
  .metric-grid,
  .process-grid,
  .resource-grid,
  .notice-grid,
  .form-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .hero-note {
    margin-left: 0;
  }

  .glass-card {
    position: static;
    width: auto;
    margin: 12px;
  }

  .guide-media,
  .mini-card-grid .guide-media {
    width: calc(100% - 24px);
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .card-copy {
    min-height: auto;
    padding: 2px 18px 20px;
  }

  .visual-panel {
    aspect-ratio: auto;
  }

  .visual-panel img {
    height: 300px;
  }
}
