/* ==========================================================================
   Pet Air Valet — Brand Guide · layout + component styles
   One-page editorial folio. Aviation-lounge aesthetic: cream paper, thin gold
   progress rail, numbered sections, Noto Serif display that breathes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   PAGE SHELL
   -------------------------------------------------------------------------- */

.page {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Subtle paper texture — a single layered radial gradient. No noise PNGs. */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 88% -10%, hsla(41 66% 69% / 0.18), transparent 60%),
    radial-gradient(900px 700px at -10% 90%, hsla(25 51% 53% / 0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.page > * { position: relative; z-index: 1; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
}

/* --------------------------------------------------------------------------
   TOP BAR — logo on left, section title on right
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: hsla(39 55% 96% / 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.75rem 0;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--fg);
  min-width: 0;
  flex: 0 1 auto;
}
.brand-mark {
  width: 36px; height: 36px;
  flex: none;
  display: block;
  color: var(--accent);
  transition: color 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.brand-mark use { fill: currentColor; }
.brand:hover .brand-mark { color: var(--cta); transform: rotate(-4deg); }
.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11.5px;
  color: var(--fg-3);
  letter-spacing: 0.01em;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 0 0 auto;
  min-width: 0;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
  white-space: nowrap;
  min-width: 0;
}
.topbar-meta .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  display: inline-block;
  flex: none;
}
.topbar-meta .topbar-meta-num { flex: none; }
.topbar-meta .label-long {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.topbar-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--pav-cabin-cream);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  flex: none;
  transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.topbar-download:hover { background: hsl(213 48% 20%); transform: translateY(-1px); text-decoration: none; }
.topbar-download:active { transform: translateY(0); }
.topbar-download .ico { width: 14px; height: 14px; flex: none; }

/* Responsive behavior — progressively shed chrome as width shrinks */
@media (max-width: 900px) {
  .topbar-meta .label-long { display: none; }
}
@media (max-width: 720px) {
  .topbar-meta { display: none; }
  .brand-kicker { display: none; }
}
@media (max-width: 520px) {
  .topbar-download-label { display: none; }
  .topbar-download { padding: 0.5rem; width: 36px; height: 36px; justify-content: center; }
  .topbar-download .ico { width: 16px; height: 16px; }
  .topbar-inner { gap: 0.5rem; }
  .brand { gap: 0.5rem; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 13px; letter-spacing: 0.08em; }
}

/* --------------------------------------------------------------------------
   MASTHEAD (hero)
   -------------------------------------------------------------------------- */

.masthead {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  text-align: center;
}

.masthead-plate {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.masthead .masthead-stats { margin-left: auto; margin-right: auto; }
.masthead .masthead-eyebrow,
.masthead .masthead-lede { margin-left: auto; margin-right: auto; }
.masthead .masthead-lede { max-width: 58ch; }

.masthead-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 1.75rem;
}
.masthead-eyebrow::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--fg-4);
}
.masthead-eyebrow .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cta);
  font-size: 13px;
}

.masthead-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--text-display);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 0 0 1.5rem;
  color: var(--fg);
  text-wrap: balance;
}
.masthead-title .italic { font-style: italic; font-weight: 400; color: var(--cta); }
.masthead-title .amp { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); font-size: 0.92em; padding: 0 0.08em; }

.masthead-lede {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.2vw + 0.75rem, 1.375rem);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 640px;
  margin: 0 0 2rem;
  text-wrap: pretty;
}

.masthead-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
  max-width: 780px;
}
.masthead-stats > div {
  padding: 0 1.25rem;
  border-left: 1px dashed var(--rule-ink);
}
.masthead-stats > div:first-child { border-left: 0; padding-left: 0; }
.masthead-stats dt {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 0.35rem;
}
.masthead-stats dd {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
@media (max-width: 820px) {
  .masthead-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; }
  .masthead-stats > div { border-left: 0; padding-left: 0; }
}

/* --------------------------------------------------------------------------
   LAYOUT — sidebar index + main column
   -------------------------------------------------------------------------- */

.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding: 3rem 0 6rem;
  position: relative;
}

/* --------------------------------------------------------------------------
   SIDEBAR INDEX
   -------------------------------------------------------------------------- */

.sidenav {
  position: sticky;
  top: 88px;
  align-self: start;
  height: max-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--fg-4) transparent;
}
.sidenav::-webkit-scrollbar { width: 4px; }
.sidenav::-webkit-scrollbar-thumb { background: var(--fg-4); border-radius: 4px; }
.sidenav::-webkit-scrollbar-track { background: transparent; }

.sidenav-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 1rem;
  padding: 0 0.75rem;
}

.sidenav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* Vertical rail */
.sidenav-list::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--rule);
}

.sidenav-item {
  position: relative;
}

.sidenav-link {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--fg-2);
  text-decoration: none;
  border-radius: 8px;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.sidenav-link:hover { color: var(--fg); text-decoration: none; }
.sidenav-link:hover .sidenav-num { color: var(--cta); }

.sidenav-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--fg-3);
  text-align: center;
  width: 36px;
  position: relative;
  z-index: 1;
  background: var(--bg);
  transition: color 180ms var(--ease-out);
}
.sidenav-link[aria-current="true"] {
  color: var(--fg);
  font-weight: 500;
}
.sidenav-link[aria-current="true"] .sidenav-num {
  color: var(--cta);
}
.sidenav-link[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--cta);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--cta);
  transform: translate(-50%, -50%);
}

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; gap: 0; }
  .sidenav {
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 2rem;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 0;
  }
  .sidenav-list::before { display: none; }
  .sidenav-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.25rem;
  }
  .sidenav-link[aria-current="true"]::before { display: none; }
}

/* --------------------------------------------------------------------------
   SECTION PRIMITIVES
   -------------------------------------------------------------------------- */

.main {
  min-width: 0;
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  scroll-margin-top: 80px;
}
.section:last-of-type { border-bottom: 0; }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 2rem;
  align-items: baseline;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule-soft);
}

.section-download {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem 0.625rem 0.875rem;
  border-radius: var(--r-full);
  background: hsla(41 66% 69% / 0.18);
  border: 1px solid hsla(41 66% 69% / 0.45);
  font-family: var(--font-sans);
  color: var(--fg);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.section-download:hover {
  background: hsla(25 51% 53% / 0.12);
  border-color: hsla(25 51% 53% / 0.45);
  color: var(--cta);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.section-download:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.section-download:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.section-download .ico {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  color: var(--cta);
}
.section-download-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  line-height: 1;
}
.section-download-action {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.section-download:hover .section-download-action { color: var(--cta); }
.section-download-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
  color: inherit;
}
.section-download-ext {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}
.section-download:hover .section-download-ext { color: var(--cta); }

.section-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.01em;
  grid-row: span 2;
  align-self: start;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
}

.section-lede {
  grid-column: 2;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  max-width: 58ch;
  text-wrap: pretty;
}

.section-meta {
  grid-column: 2;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
  margin-top: 0.25rem;
}

@media (max-width: 620px) {
  .section-head { grid-template-columns: 1fr auto; gap: 0.5rem 1rem; }
  .section-num { grid-row: auto; grid-column: 1; margin-bottom: 0.25rem; }
  .section-title { grid-column: 1 / -1; }
  .section-lede, .section-meta { grid-column: 1 / -1; }
  .section-download { grid-column: 2; grid-row: 1; align-self: start; padding: 0.5rem; gap: 0; }
  .section-download-label {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
  }
}

/* Secondary group heading within a section */
.subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--rule-ink);
}
.subhead-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.subhead-note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 400;
}
.subhead-note em { font-style: italic; color: var(--fg-2); }

/* Eyebrow pill */
.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  background: hsla(41 66% 69% / 0.28);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r-full);
}

/* --------------------------------------------------------------------------
   SECTION 1 — LOGO & WORDMARK
   -------------------------------------------------------------------------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.logo-card {
  background: var(--card);
  border-radius: var(--r-3xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
}
.logo-card--dark { background: var(--primary); color: var(--pav-cabin-cream); }
.logo-card--golden { background: var(--accent); color: var(--primary); }
.logo-card--cream {
  background: var(--bg);
  box-shadow: inset 0 0 0 1px hsla(41 66% 69% / 0.45);
}
.logo-card--full { grid-column: span 2; padding: 2.5rem 3rem; }
.logo-card--ways { grid-column: span 2; padding: 2rem; }

.logo-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.logo-card--dark .logo-tag { color: hsla(39 45% 93% / 0.55); }
.logo-card--golden .logo-tag { color: hsla(213 45% 16% / 0.62); }

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.logo-mark,
.mark {
  flex: none;
  display: block;
  width: var(--mark-size, 96px);
  height: var(--mark-size, 96px);
  color: var(--mark-color, var(--accent));
}
.logo-mark use,
.mark use { fill: currentColor; }
.logo-card--dark .logo-mark { --mark-color: var(--accent); }
.logo-card--golden .logo-mark { --mark-color: var(--primary); }
.mark--midnight { --mark-color: var(--primary); }
.mark--white    { --mark-color: #ffffff; }
.mark--black    { --mark-color: #000000; }
.mark--cta      { --mark-color: var(--cta); }
.logo-wordmark {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: inherit;
}
.logo-wordmark--sm { font-size: 1.125rem; }
.logo-wordmark--xl { font-size: clamp(2.5rem, 5vw, 3.75rem); }

.logo-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: inherit;
  opacity: 0.72;
  margin-top: 0.75rem;
}

/* Size ladder */
.logo-sizes {
  display: flex;
  align-items: flex-end;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.logo-sizes figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}
.logo-sizes figcaption {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

/* Clear space */
.logo-clearspace {
  position: relative;
  display: inline-block;
  padding: 2.25rem;
}
.logo-clearspace::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed hsla(25 51% 53% / 0.45);
  border-radius: var(--r-full);
  pointer-events: none;
}

/* Colorways grid */
.logo-ways {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}
.logo-way {
  border-radius: var(--r-lg);
  padding: 1.375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: center;
}
.logo-way--white { background: var(--pav-white); box-shadow: inset 0 0 0 1px hsla(213 45% 16% / 0.08); }
.logo-way--cream { background: var(--bg); }
.logo-way--midnight { background: var(--primary); color: hsla(39 45% 93% / 0.6); }
.logo-way--black { background: #000; color: hsla(0 0% 100% / 0.55); }

.logo-note {
  grid-column: span 2;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
}
.logo-note code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: hsla(213 45% 16% / 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 800px) {
  .logo-grid { grid-template-columns: 1fr; }
  .logo-card--full, .logo-card--ways, .logo-note { grid-column: auto; }
  .logo-ways { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   SECTION 2 & 3 — PALETTE
   -------------------------------------------------------------------------- */

.palette-primary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.swatch {
  aspect-ratio: 1 / 1.1;
  border-radius: var(--r-2xl);
  padding: 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.swatch:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.swatch .role {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.swatch .name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin-top: 0.5rem;
}
.swatch .value {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.78;
  margin-top: 0.375rem;
}
.swatch--ink { color: var(--primary); }
.swatch--ink .role { opacity: 0.6; }
.swatch--ink .value { opacity: 0.6; }
.swatch--midnight  { background: var(--pav-midnight-blue); }
.swatch--cabin     { background: var(--pav-cabin-cream); color: var(--primary); box-shadow: inset 0 0 0 1px hsla(41 66% 69% / 0.45), var(--shadow-sm); }
.swatch--cabin .role, .swatch--cabin .value { opacity: 0.6; }
.swatch--golden    { background: var(--pav-golden); color: var(--primary); }
.swatch--golden .role, .swatch--golden .value { opacity: 0.65; }
.swatch--terracotta{ background: var(--pav-warm-terracotta); }

.palette-extended {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 760px) {
  .palette-primary, .palette-extended { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   SECTION 4 — DISPLAY TYPE
   -------------------------------------------------------------------------- */

.type-stack > * + * { margin-top: 2.25rem; }
.type-row { position: relative; }
.type-meta {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.625rem;
}
.type-meta .sep { margin: 0 0.5rem; color: var(--accent); }
.type-display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw + 0.5rem, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.024em;
  color: var(--fg);
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}
.type-h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
  max-width: 24ch;
}
.type-h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.375rem, 2vw + 0.5rem, 1.875rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0;
  max-width: 28ch;
}
.type-h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: var(--fg);
  margin: 0;
  max-width: 34ch;
}

/* --------------------------------------------------------------------------
   SECTION 5 — BODY TYPE & EYEBROW
   -------------------------------------------------------------------------- */

.body-type-stack { display: flex; flex-direction: column; gap: 2rem; }
.lead-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--fg);
  margin: 0;
  max-width: 40ch;
}
.lead-serif em { font-style: italic; }

.body-sans {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  margin: 0;
  max-width: 52ch;
}
.body-sans-sm {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  max-width: 54ch;
}
.ui-strong {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--fg);
  margin: 0;
}
.ui-caption {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--fg-3);
  margin: 0;
}
.tagline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--fg-2);
  margin: 0;
}
.eyebrow-row {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  align-items: center;
}

.editorial-stack {
  background: var(--card);
  border-radius: var(--r-3xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.editorial-stack .eyebrow { align-self: flex-start; }

/* --------------------------------------------------------------------------
   SECTION 6 — ICONOGRAPHY
   -------------------------------------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 2rem;
  padding: 1.125rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.principles > div {
  padding: 0 1.25rem;
  border-left: 1px dashed var(--rule-ink);
}
.principles > div:first-child { border-left: 0; padding-left: 0; }
.principles dt {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.25rem;
}
.principles dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--fg);
  line-height: 1.35;
}
@media (max-width: 720px) {
  .principles { grid-template-columns: repeat(2, 1fr); gap: 0.75rem 0; }
  .principles > div { border-left: 0; padding-left: 0; }
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}
.icon-tile {
  background: var(--card);
  border-radius: var(--r-3xl);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  transition: transform 240ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
.icon-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.icon-tile svg {
  width: 40%;
  height: auto;
  color: var(--primary);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-tile-name {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   SECTION 7 — ILLUSTRATION STYLE
   -------------------------------------------------------------------------- */

/* Signature set — six composition tiles */
.sig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin: 0 0 2rem;
}
.sig-tile {
  margin: 0;
  background: var(--card);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.sig-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant);
}
.sig-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.sig-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 1.125rem 1rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-sans);
}
.sig-caption strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--fg);
  letter-spacing: -0.004em;
}
.sig-caption .sig-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  .sig-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .sig-grid { grid-template-columns: 1fr; }
}

.illu-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.illu-hero {
  background: var(--card);
  border-radius: var(--r-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.illu-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.illu-hero-caption {
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
}
.illu-hero-caption strong { color: var(--fg); font-weight: 500; font-family: var(--font-serif); font-style: italic; }

.illu-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.illu-rule {
  background: var(--card);
  border-radius: var(--r-2xl);
  padding: 1.25rem 1.375rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.illu-rule .pill {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  margin-bottom: 0.25rem;
}
.illu-rule.no .pill { background: var(--cta); }
.illu-rule h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.illu-rule p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-2);
}

.illu-prompt {
  background: var(--primary);
  color: hsla(39 45% 93% / 0.9);
  border-radius: var(--r-3xl);
  padding: 1.75rem 2rem;
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  box-shadow: var(--shadow-card);
}
.illu-prompt .label {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

@media (max-width: 820px) {
  .illu-grid { grid-template-columns: 1fr; }
  .illu-rules { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   SECTION 8 — RADII
   -------------------------------------------------------------------------- */

.radii-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.875rem;
  align-items: end;
}
.radii-cell { display: flex; flex-direction: column; gap: 0.625rem; align-items: center; text-align: center; }
.radii-shape {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--card);
  border: 1px solid hsla(41 66% 69% / 0.4);
  box-shadow: var(--shadow-sm);
}
.radii-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}
.radii-label b { font-family: var(--font-sans); font-weight: 600; color: var(--fg); display: block; margin-bottom: 2px; letter-spacing: 0; }
.radii-pill-demo {
  margin-top: 1.5rem;
  text-align: center;
}
.radii-pill-demo .pill {
  display: inline-flex;
  align-items: center;
  background: var(--cta);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.radii-pill-demo .cap {
  display: block;
  margin-top: 0.625rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}
@media (max-width: 720px) {
  .radii-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   SECTION 9 — SHADOWS
   -------------------------------------------------------------------------- */

.shadow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.shadow-card {
  background: var(--card);
  border-radius: var(--r-2xl);
  aspect-ratio: 5 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.125rem;
}
.shadow-card--sm { box-shadow: var(--shadow-sm); }
.shadow-card--soft { box-shadow: var(--shadow-soft); }
.shadow-card--elegant { box-shadow: var(--shadow-elegant); }
.shadow-card--glow { box-shadow: var(--shadow-glow); }
.shadow-card .name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.shadow-card .usage {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
}
.shadow-card .value {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  line-height: 1.45;
}
@media (max-width: 780px) {
  .shadow-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   SECTION 10 — MOTION & GLOW
   -------------------------------------------------------------------------- */

.motion-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 2rem;
}
.motion-stage {
  background: var(--card);
  border-radius: var(--r-3xl);
  box-shadow: var(--shadow-card);
  padding: 3rem 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 220px;
}
.motion-caption {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.motion-specs {
  background: var(--primary);
  color: var(--pav-cabin-cream);
  border-radius: var(--r-3xl);
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin: 0;
}
.motion-specs > div { min-width: 0; }
.motion-specs dt {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.375rem;
}
.motion-specs dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: hsla(39 45% 93% / 0.92);
}
.motion-specs code {
  font-size: 0.85em;
  color: hsla(39 45% 93% / 0.78);
  background: transparent;
}

.motion-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0 0 2rem;
}
.motion-rule {
  background: var(--card);
  border-radius: var(--r-2xl);
  padding: 1.25rem 1.375rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.motion-rule .pill {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  margin-bottom: 0.25rem;
}
.motion-rule.no .pill { background: var(--cta); }
.motion-rule h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.motion-rule p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-2);
}
.motion-rule code {
  font-size: 0.9em;
  background: hsla(213 45% 16% / 0.06);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

.motion-code {
  background: var(--primary);
  border-radius: var(--r-3xl);
  padding: 1.5rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-card);
}
.motion-code .label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}
.motion-code pre {
  margin: 0;
  overflow: auto;
}
.motion-code code {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: hsla(39 45% 93% / 0.92);
  white-space: pre;
}

@media (max-width: 900px) {
  .motion-hero { grid-template-columns: 1fr; }
  .motion-principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .motion-principles { grid-template-columns: 1fr; }
  .motion-specs { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   SECTION 11 — BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.003em;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  isolation: isolate;
  transition: transform 200ms var(--ease-out),
              box-shadow 250ms var(--ease-out),
              background-color 200ms var(--ease-out),
              color 200ms var(--ease-out),
              opacity 200ms var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn .ico { width: 18px; height: 18px; flex: none; }

.btn--terracotta {
  background: var(--cta);
  color: #fff;
  box-shadow:
    0 1px 0 hsla(25 60% 30% / 0.35) inset,
    0 1px 2px hsla(25 51% 25% / 0.22),
    0 4px 12px hsla(25 51% 40% / 0.18);
}
.btn--terracotta:hover {
  background: hsl(25 55% 49%);
  transform: scale(1.02);
  box-shadow:
    0 1px 0 hsla(25 60% 30% / 0.35) inset,
    0 2px 4px hsla(25 51% 25% / 0.28),
    0 10px 24px hsla(25 51% 40% / 0.28);
}
.btn--terracotta:active { background: hsl(25 55% 45%); transform: scale(0.98); }

.btn--midnight {
  background: var(--primary);
  color: var(--pav-cabin-cream);
  box-shadow:
    0 1px 0 hsla(213 50% 30% / 0.45) inset,
    0 1px 2px hsla(213 45% 10% / 0.22),
    0 6px 16px hsla(213 45% 16% / 0.18);
}
.btn--midnight:hover {
  background: hsl(213 48% 20%);
  transform: scale(1.02);
  box-shadow:
    0 1px 0 hsla(213 50% 30% / 0.45) inset,
    0 2px 4px hsla(213 45% 10% / 0.28),
    0 10px 24px hsla(213 45% 16% / 0.26);
}
.btn--midnight:active { background: hsl(213 45% 13%); transform: scale(0.98); }

.btn--golden {
  background: var(--accent);
  color: var(--primary);
  box-shadow:
    0 1px 0 hsla(41 60% 80% / 0.75) inset,
    0 1px 2px hsla(41 50% 35% / 0.20),
    0 4px 12px hsla(41 66% 55% / 0.22);
}
.btn--golden:hover {
  background: hsl(41 68% 64%);
  transform: scale(1.02);
}
.btn--golden:active { background: hsl(41 60% 59%); transform: scale(0.98); }

.btn--ghost {
  background: hsla(213 45% 16% / 0.05);
  color: var(--primary);
}
.btn--ghost:hover { background: hsla(41 66% 69% / 0.28); transform: scale(1.02); }

.btn--link {
  background: transparent;
  color: var(--cta);
  padding: 0.5rem 0.25rem;
  min-height: 36px;
  border-radius: 2px;
  font-weight: 500;
}
.btn--link::after {
  content: "";
  position: absolute;
  left: 0.25rem; right: 0.25rem; bottom: 0.25rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms var(--ease-calm);
}
.btn--link:hover::after { transform: scaleX(1); }

.btn--cta {
  animation: cta-pulse 10.8s ease-in-out infinite;
}
.btn--cta:hover, .btn--cta:active { animation-play-state: paused; }
@keyframes cta-pulse {
  0%, 100% {
    box-shadow:
      0 1px 0 hsla(25 60% 30% / 0.35) inset,
      0 1px 2px hsla(25 51% 25% / 0.22),
      0 4px 12px hsla(25 51% 40% / 0.20),
      0 0 0 0 hsla(25 75% 58% / 0);
  }
  50% {
    box-shadow:
      0 1px 0 hsla(25 60% 30% / 0.35) inset,
      0 1px 2px hsla(25 51% 25% / 0.22),
      0 10px 26px hsla(25 51% 40% / 0.30),
      0 0 28px 4px hsla(25 75% 58% / 0.19);
  }
}

.btn--sm { min-height: 44px; padding: 0 1.125rem; font-size: 0.9375rem; gap: 0.5rem; }
.btn--lg { min-height: 54px; padding: 0 1.75rem; font-size: 1.0625rem; gap: 0.625rem; }
.btn--xl { min-height: 60px; padding: 0 2rem; font-size: 1.125rem; gap: 0.75rem; }
.btn--icon { width: 48px; height: 48px; padding: 0; }

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  animation: none !important;
}

.spinner {
  width: 16px; height: 16px; border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  opacity: 0.9;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.125rem;
}
.button-cell {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.button-label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.button-dark {
  margin-top: 2rem;
  background: var(--primary);
  border-radius: var(--r-3xl);
  padding: 1.5rem 1.75rem;
  color: var(--pav-cabin-cream);
}
.button-dark .subhead { border-bottom-color: hsla(41 66% 69% / 0.22); }
.button-dark .subhead-title { color: var(--pav-cabin-cream); }
.button-dark .subhead-note, .button-dark .button-label { color: hsla(39 45% 93% / 0.65); }
.button-dark .btn--ghost { background: hsla(39 45% 93% / 0.08); color: var(--pav-cabin-cream); }
.button-dark .btn--ghost:hover { background: hsla(41 66% 69% / 0.22); }
.button-dark .btn--link { color: var(--accent); }

/* --------------------------------------------------------------------------
   SECTION 11 — FEATURE CARD
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid hsla(41 66% 69% / 0.15);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 260ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
}
.feature-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: hsla(25 51% 53% / 0.15);
  color: var(--cta);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.0625rem;
  margin: 0 0 0.25rem;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.feature-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   SECTION 12 — ALERT BANNER
   -------------------------------------------------------------------------- */

.alert {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-lg);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  background: hsl(20 78% 38%);
  box-shadow:
    0 1px 0 hsla(40 100% 85% / 0.18) inset,
    0 -1px 0 hsla(20 60% 18% / 0.28) inset,
    0 1px 2px hsla(20 60% 18% / 0.20),
    0 6px 14px hsla(22 80% 35% / 0.18),
    0 14px 28px hsla(22 80% 35% / 0.10);
}
.alert + .alert { margin-top: 1rem; }
.alert-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: #fff;
  flex: none;
  box-shadow: 0 0 0 3px hsla(40 100% 88% / 0.22);
}
.alert-text { flex: 1 1 auto; min-width: 0; }
.alert-text strong { font-weight: 600; color: #fff; }
.alert-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  background: #fff;
  color: hsl(20 78% 32%);
  padding: 0.5625rem 1rem;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  box-shadow:
    0 1px 2px hsla(20 60% 18% / 0.25),
    0 4px 10px hsla(20 60% 18% / 0.22);
  transition: transform 180ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.alert-cta:hover { transform: translateY(-1px); text-decoration: none; color: hsl(20 78% 26%); }
.alert-cta svg { width: 14px; height: 14px; }
.alert--compact { padding: 0.75rem 1rem; border-radius: var(--r-lg); font-size: 13px; gap: 0.75rem; }
.alert--compact .alert-cta { padding: 0.4375rem 0.875rem; font-size: 12px; }

/* --------------------------------------------------------------------------
   SECTION 13 — NAVIGATION
   -------------------------------------------------------------------------- */

.nav-demo {
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-3xl);
  padding: 0;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.nav-demo + .nav-demo { margin-top: 1rem; }
.nav-demo--scrolled .nav-bar {
  background: hsla(39 45% 93% / 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid hsla(41 66% 69% / 0.35);
}
.nav-demo--dark { background: var(--primary); border-color: hsla(41 66% 69% / 0.2); }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  min-height: 56px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.nav-brand-mark {
  width: 28px; height: 28px;
  display: block;
  color: var(--accent);
}
.nav-brand-mark use { fill: currentColor; }
.nav-brand-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}
.nav-demo--dark .nav-brand-name { color: var(--pav-cabin-cream); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-2);
  flex-wrap: wrap;
}
.nav-links button,
.nav-links a {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0.25rem 0;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links .active {
  color: var(--fg);
  font-weight: 500;
}
.nav-links .active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-demo--dark .nav-links { color: hsla(39 45% 93% / 0.7); }
.nav-demo--dark .nav-links .active { color: var(--pav-cabin-cream); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cta);
  color: #fff;
  padding: 0.5625rem 1rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.nav-cta svg { width: 14px; height: 14px; }

.nav-label {
  padding: 0.625rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: hsla(41 66% 69% / 0.1);
  border-top: 1px solid var(--rule-soft);
}
.nav-demo--dark .nav-label {
  background: hsla(39 45% 93% / 0.06);
  border-top-color: hsla(41 66% 69% / 0.2);
  color: hsla(39 45% 93% / 0.5);
}

@media (max-width: 720px) {
  .nav-bar { flex-wrap: wrap; }
  .nav-links { width: 100%; order: 3; font-size: 12px; }
}

/* --------------------------------------------------------------------------
   SECTION 14 — SERVICE OFFERING
   -------------------------------------------------------------------------- */

.philosophy {
  background: var(--primary);
  color: hsla(39 45% 93% / 0.9);
  border-radius: var(--r-3xl);
  padding: 2rem 2.25rem;
  margin: 0 0 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.philosophy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 95% 0%, hsla(41 85% 68% / 0.22) 0%, transparent 55%);
  pointer-events: none;
}
.philosophy .label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsla(41 66% 69% / 0.8);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.philosophy h3 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0 0 0.625rem;
  letter-spacing: -0.018em;
  line-height: 1.1;
}
.philosophy h3 .pull {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.philosophy p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: hsla(39 45% 93% / 0.8);
  margin: 0;
  max-width: 54ch;
}

.services { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.service {
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2xl);
  padding: 1.5rem 1.625rem;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.375rem;
  align-items: start;
}
.service--primary {
  background: linear-gradient(180deg, var(--card) 0%, hsl(39 55% 96%) 100%);
  border-color: hsla(41 40% 55% / 0.4);
  box-shadow: 0 18px 40px -24px rgba(20, 40, 60, 0.18);
}
.service .num {
  font-family: var(--font-serif);
  font-size: 2.625rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
  border-right: 1px solid var(--rule-soft);
  padding-right: 1.375rem;
}
.service--primary .num { color: var(--cta); }
.service h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3125rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.014em;
}
.service .tag {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.service--primary .tag { color: var(--cta); }
.service .summary {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 1rem;
}
.service ul { list-style: none; margin: 0; padding: 0; }
.service li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
  padding: 0.625rem 0 0.625rem 1.375rem;
  position: relative;
  border-top: 1px solid var(--rule-soft);
}
.service li:first-child { border-top: 0; }
.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.0625rem;
  width: 12px; height: 1.5px;
  background: var(--accent);
}
.service li strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--fg);
  display: block;
  margin-bottom: 0.125rem;
}
.service li em { font-style: normal; color: var(--fg-2); }

.commits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-top: 1.5rem;
}
.commit {
  background: hsl(39 55% 96%);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  padding: 1.125rem 1.25rem;
}
.commit .icon {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--primary);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.commit h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.375rem;
  color: var(--fg);
}
.commit p { font-size: 13.5px; line-height: 1.5; color: var(--fg-2); margin: 0; }
@media (max-width: 720px) {
  .commits { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service .num { border-right: 0; border-bottom: 1px solid var(--rule-soft); padding-right: 0; padding-bottom: 0.75rem; }
}

/* --------------------------------------------------------------------------
   SECTION 15 — LANGUAGE GUIDE
   -------------------------------------------------------------------------- */

.voice-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--primary);
  color: var(--pav-cabin-cream);
  border-radius: var(--r-3xl);
  padding: 1.5rem 1.75rem;
  margin: 0 0 2rem;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}
.voice-download-copy { flex: 1 1 320px; min-width: 0; }
.voice-download-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.voice-download-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--pav-cabin-cream);
  margin: 0 0 0.375rem;
  letter-spacing: -0.01em;
}
.voice-download-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: hsla(39 45% 93% / 0.75);
  max-width: 52ch;
}
@media (max-width: 560px) {
  .voice-download { padding: 1.25rem 1.25rem 1.375rem; }
  .voice-download .btn { width: 100%; }
}

.lang-principles {
  counter-reset: lp;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}
.lang-principles li {
  counter-increment: lp;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 1.125rem 1.25rem 1rem;
  position: relative;
  box-shadow: var(--shadow-card);
}
.lang-principles li::before {
  content: counter(lp, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--cta);
  font-weight: 500;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.375rem;
}
.lang-principles b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--fg);
  margin-bottom: 0.25rem;
  letter-spacing: -0.005em;
}
.lang-principles em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg-3);
  display: block;
  font-size: 13.5px;
  margin-top: 0.25rem;
}

.lang-chips-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 2rem;
}
.lang-chipgroup {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 1.375rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.lang-chipgroup h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 0.75rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.625rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
}
.chip.good { background: hsla(41 66% 69% / 0.28); color: hsl(32 55% 30%); }
.chip.bad {
  background: hsla(0 50% 90% / 0.6);
  color: hsl(10 45% 38%);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: hsla(10 45% 38% / 0.5);
}

.phrases {
  background: var(--primary);
  color: var(--pav-cabin-cream);
  border-radius: var(--r-3xl);
  padding: 1.75rem 2rem;
  margin: 0 0 2rem;
}
.phrases h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.875rem;
  color: var(--accent);
}
.phrases .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.phrases ul { list-style: none; padding: 0; margin: 0; }
.phrases li {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.5;
  padding: 0.375rem 0;
  color: hsla(39 45% 93% / 0.88);
}
.phrases li::before {
  content: "";
  display: inline-block;
  width: 16px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.625rem;
  opacity: 0.8;
}
.phrases .avoid h4 { color: hsla(39 45% 93% / 0.5); }
.phrases .avoid li { color: hsla(39 45% 93% / 0.5); }
.phrases .avoid li::before { background: hsla(39 45% 93% / 0.35); }

.lang-summary {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--primary);
  text-align: center;
  padding: 2.25rem 2.5rem;
  max-width: 46ch;
  margin: 2.5rem auto 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.lang-summary .pull {
  color: var(--cta);
  font-style: normal;
  font-weight: 500;
}

@media (max-width: 720px) {
  .lang-principles { grid-template-columns: 1fr; }
  .lang-chips-row { grid-template-columns: 1fr; }
  .phrases .two { grid-template-columns: 1fr; gap: 1rem; }
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

.colophon {
  margin-top: 4rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
}
.colophon-block {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.6;
  max-width: 48ch;
}
.colophon-block strong { color: var(--fg); font-family: var(--font-serif); font-weight: 500; font-size: 15px; letter-spacing: -0.005em; display: block; margin-bottom: 0.375rem; }
.colophon-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
  text-align: right;
  line-height: 1.8;
}
.colophon-meta .accent { color: var(--cta); }
@media (max-width: 640px) {
  .colophon { grid-template-columns: 1fr; }
  .colophon-meta { text-align: left; }
}

.confidential {
  margin: 2rem 0 3rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--rule);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--fg-3);
  letter-spacing: 0.005em;
  max-width: 68ch;
}
.confidential strong {
  color: var(--cta);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   ENTRY ANIMATIONS
   -------------------------------------------------------------------------- */

/* Reveal-on-scroll — JS-driven gentle lift only for the section-head. Content
   stays visible even without JS so reference material is never hidden. */
.js .section-head.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js .section-head.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .section-head.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
