/* ============================================================
   SMART RETIRE — Design Tokens
   Concept: modern financial confidence. Deep navy = trust &
   stability, mint = growth & clarity. Primary accent flips role
   between light/dark mode so the brand color always reads with
   full contrast against its surface.
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces — cool paper, faint sage undertone */
  --color-bg: #f7faf8;
  --color-surface: #ffffff;
  --color-surface-2: #f1f6f3;
  --color-surface-offset: #e8f0ec;
  --color-surface-offset-2: #dbe8e1;
  --color-surface-dynamic: #cfe0d7;
  --color-divider: #d7e3dd;
  --color-border: #c3d5cc;

  /* Text */
  --color-text: #0f2a3a;
  --color-text-muted: #516975;
  --color-text-faint: #91a4ab;
  --color-text-inverse: #f4faf7;

  /* Primary accent — deep navy (dominant brand color on light surfaces) */
  --color-primary: #123a52;
  --color-primary-hover: #0c2c3f;
  --color-primary-active: #081f2c;
  --color-primary-highlight: #cfdde3;

  /* Mint — secondary brand accent, used sparingly for highlights/marks */
  --color-mint: #2f9e78;
  --color-mint-hover: #24805f;
  --color-mint-highlight: #cfe9dd;

  /* Warning / Error / Success / Notification — muted, restrained */
  --color-warning: #9a5a1f;
  --color-warning-hover: #7a4718;
  --color-warning-highlight: #e6d9c6;

  --color-error: #99354a;
  --color-error-hover: #792939;
  --color-error-highlight: #e6cdd3;

  --color-notification: #99354a;
  --color-notification-highlight: #e6cdd3;

  --color-success: #2f7a4f;
  --color-success-hover: #24603d;
  --color-success-highlight: #cfe3d5;

  --color-blue: #2c6a8f;
  --color-gold: #b1801f;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — tone-matched to cool paper surface */
  --shadow-sm: 0 1px 2px oklch(0.2 0.03 200 / 0.06);
  --shadow-md: 0 6px 16px oklch(0.2 0.03 200 / 0.08);
  --shadow-lg: 0 16px 40px oklch(0.2 0.03 200 / 0.14);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Cabinet Grotesk', 'General Sans', sans-serif;
  --font-body: 'Satoshi', 'General Sans', sans-serif;

  /* Fixed ink surface — always deep navy regardless of theme, for
     sections (callout, footer) designed to read as a permanent dark
     card rather than shift with the light/dark mode toggle. */
  --color-ink: #123a52;
  --color-ink-text: #f4faf7;
}

[data-theme='dark'] {
  --color-bg: #0a1c26;
  --color-surface: #0f2530;
  --color-surface-2: #132b37;
  --color-surface-offset: #163140;
  --color-surface-offset-2: #1b3a49;
  --color-surface-dynamic: #204656;
  --color-divider: #1d3b47;
  --color-border: #2a4c58;

  --color-text: #e3eeea;
  --color-text-muted: #9db3ae;
  --color-text-faint: #6c8580;
  --color-text-inverse: #0f2a3a;

  /* In dark mode mint carries the primary accent role for contrast */
  --color-primary: #52caa0;
  --color-primary-hover: #6fd6b1;
  --color-primary-active: #40b28c;
  --color-primary-highlight: #1c4136;

  --color-mint: #52caa0;
  --color-mint-hover: #6fd6b1;
  --color-mint-highlight: #1c4136;

  --color-warning: #d59a5f;
  --color-warning-hover: #e0ac78;
  --color-warning-highlight: #46392a;

  --color-error: #d98a9c;
  --color-error-hover: #e2a2b1;
  --color-error-highlight: #452c33;

  --color-notification: #d98a9c;
  --color-notification-highlight: #452c33;

  --color-success: #6fbf8e;
  --color-success-hover: #8bcda3;
  --color-success-highlight: #294235;

  --color-blue: #6fa8c9;
  --color-gold: #d4a94f;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0a1c26;
    --color-surface: #0f2530;
    --color-surface-2: #132b37;
    --color-surface-offset: #163140;
    --color-surface-offset-2: #1b3a49;
    --color-surface-dynamic: #204656;
    --color-divider: #1d3b47;
    --color-border: #2a4c58;
    --color-text: #e3eeea;
    --color-text-muted: #9db3ae;
    --color-text-faint: #6c8580;
    --color-text-inverse: #0f2a3a;
    --color-primary: #52caa0;
    --color-primary-hover: #6fd6b1;
    --color-primary-active: #40b28c;
    --color-primary-highlight: #1c4136;
    --color-mint: #52caa0;
    --color-mint-hover: #6fd6b1;
    --color-mint-highlight: #1c4136;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 6px 16px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
  }
}

/* Type scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.4rem, 1rem + 3.6vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ============================================================
   Typography
   ============================================================ */

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-mint-hover);
}
[data-theme='dark'] .eyebrow {
  color: var(--color-mint);
}
.eyebrow::before {
  content: '';
  width: 1.25rem;
  height: 1px;
  background: currentColor;
}

.h-display {
  font-size: var(--text-3xl);
  font-weight: 650;
  line-height: 1.05;
}
.h-section {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.1;
}
.h-sub {
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: var(--font-body);
}
.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  font-weight: 400;
  max-width: 46ch;
}
.prose p {
  color: var(--color-text-muted);
  max-width: 62ch;
}
.prose p + p {
  margin-top: var(--space-4);
}

/* ============================================================
   Layout helpers
   ============================================================ */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
main {
  overflow-x: hidden;
}
section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
section.tight {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ============================================================
   Header / Nav
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
  height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-primary);
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-mint-hover);
  margin-top: 0.15rem;
}
[data-theme='dark'] .brand__tag {
  color: var(--color-mint);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__list {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.nav__list a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
}
.nav__list a:hover,
.nav__list a[aria-current='page'] {
  color: var(--color-text);
}
.nav__list a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-mint);
  border-radius: var(--radius-full);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: var(--radius-md);
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 860px) {
  .nav__list {
    position: fixed;
    inset: 4.75rem var(--space-4) auto var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-1);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
  }
  .nav__list.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__list a {
    padding: var(--space-3) var(--space-3);
    width: 100%;
    display: block;
    border-radius: var(--radius-sm);
  }
  .nav__list a:hover {
    background: var(--color-surface-2);
  }
  .nav-toggle {
    display: grid;
  }
  .btn.nav__cta {
    display: none;
  }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid oklch(from var(--color-text) l c h / 0.18);
}
.btn--ghost:hover {
  background: var(--color-surface-2);
  border-color: oklch(from var(--color-text) l c h / 0.3);
}
.btn--on-dark {
  background: var(--color-mint);
  color: #06231a;
}
.btn--on-dark:hover {
  background: var(--color-mint-hover);
}
.btn--block {
  width: 100%;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 10vw, var(--space-24)) 0;
}
.hero__grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.hero__copy .h-display {
  margin-top: var(--space-4);
}
.hero__lede {
  margin-top: var(--space-5);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero__proof {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-12);
  flex-wrap: wrap;
}
.hero__proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero__proof-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  color: var(--color-primary);
}
[data-theme='dark'] .hero__proof-num {
  color: var(--color-mint);
}
.hero__proof-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 16ch;
}
.hero__media {
  position: relative;
}
.hero__media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: var(--shadow-lg);
}
.hero__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media-card {
  position: absolute;
  left: var(--space-6);
  right: var(--space-6);
  bottom: var(--space-6);
  background: oklch(from #123a52 l c h / 0.92);
  color: #f4f7f6;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  backdrop-filter: blur(6px);
}
.hero__media-card p {
  font-size: var(--text-sm);
  color: oklch(from #f4f7f6 l c h / 0.85);
  max-width: none;
}
.hero__media-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
  color: #52caa0;
}

/* ============================================================
   Trust strip
   ============================================================ */

.trust-strip {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.trust-strip .container--wide {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-block: var(--space-8);
  justify-content: space-between;
}
.trust-strip__item {
  flex: 1 1 200px;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.trust-strip__item svg {
  width: 22px;
  height: 22px;
  color: var(--color-mint-hover);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
[data-theme='dark'] .trust-strip__item svg {
  color: var(--color-mint);
}
.trust-strip__item h3 {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 650;
}
.trust-strip__item p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 26ch;
}

/* ============================================================
   Feature row (asymmetric, alternating)
   ============================================================ */

.feature-row {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
  .feature-row--reverse .feature-row__media {
    order: 2;
  }
}
.feature-row__media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.feature-row__list {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.feature-row__list li {
  max-width: none;
  padding-left: var(--space-6);
  border-left: none;
  position: relative;
}
.feature-row__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-mint);
}
.feature-row__list h3 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 650;
  margin-bottom: 0.2rem;
}
.feature-row__list p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 52ch;
}

/* ============================================================
   Solution / Protection detail cards (used on service pages)
   ============================================================ */

.detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.detail-card__index {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-mint-hover);
  font-weight: 650;
}
[data-theme='dark'] .detail-card__index {
  color: var(--color-mint);
}
.detail-card h3 {
  font-size: var(--text-lg);
  font-family: var(--font-display);
}
.detail-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.detail-stack {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 720px) {
  .detail-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Callout / pull quote
   ============================================================ */

.callout {
  background: var(--color-ink);
  color: var(--color-ink-text);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-16));
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 860px) {
  .callout {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }
}
.callout h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}
.callout p {
  color: oklch(from var(--color-ink-text) l c h / 0.8);
  margin-top: var(--space-3);
}
.callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

blockquote.pull {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--color-text);
  border-left: none;
  position: relative;
  padding-left: var(--space-8);
  max-width: 56ch;
}
blockquote.pull::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -0.15em;
  font-family: var(--font-display);
  font-size: 2.5em;
  color: var(--color-mint);
  line-height: 1;
}

/* ============================================================
   Testimonial cards
   ============================================================ */

.testimonial-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-10);
}
@media (min-width: 720px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonial-grid > :first-child {
    grid-row: span 2;
  }
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.testimonial-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: var(--color-mint-hover);
}
[data-theme='dark'] .testimonial-card__stars {
  color: var(--color-mint);
}
.testimonial-card__stars svg {
  width: 15px;
  height: 15px;
}
.testimonial-card footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.avatar-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--text-xs);
  flex-shrink: 0;
}
[data-theme='dark'] .avatar-badge {
  background: var(--color-mint-highlight);
  color: var(--color-mint);
}
.testimonial-card__name {
  font-weight: 650;
  font-size: var(--text-sm);
}
.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============================================================
   Team grid
   ============================================================ */

.team-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-10);
}
@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.team-card__avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 650;
  object-fit: cover;
  flex-shrink: 0;
}
.team-card h3 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 650;
}
.team-card__role {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-mint-hover);
}
[data-theme='dark'] .team-card__role {
  color: var(--color-mint);
}
.team-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   Resource cards
   ============================================================ */

.resource-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-10);
  border-top: 1px solid var(--color-divider);
}
.resource-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
@media (min-width: 720px) {
  .resource-row {
    grid-template-columns: 0.9fr 1.6fr 0.7fr;
    gap: var(--space-8);
    align-items: baseline;
  }
}
.resource-row__tag {
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-mint-hover);
}
[data-theme='dark'] .resource-row__tag {
  color: var(--color-mint);
}
.resource-row h3 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 650;
}
.resource-row p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}
.resource-row__meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: right;
}
@media (max-width: 719px) {
  .resource-row__meta {
    text-align: left;
  }
}

/* ============================================================
   Contact / form
   ============================================================ */

.contact-grid {
  display: grid;
  gap: var(--space-12);
}
@media (min-width: 940px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.field label {
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field input,
.field select,
.field textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  min-height: 44px;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.field-row {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 540px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}
.form-success {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-mint-highlight);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-top: var(--space-5);
}
.form-success.is-visible {
  display: flex;
}
.form-success svg {
  width: 20px;
  height: 20px;
  color: var(--color-mint-hover);
  flex-shrink: 0;
  margin-top: 2px;
}
[data-theme='dark'] .form-success svg {
  color: var(--color-mint);
}
.form-success p {
  font-size: var(--text-sm);
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.contact-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.contact-card__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  max-width: none;
}
.contact-card__list svg {
  width: 20px;
  height: 20px;
  color: var(--color-mint-hover);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
[data-theme='dark'] .contact-card__list svg {
  color: var(--color-mint);
}
.contact-card__list strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 650;
}
.contact-card__list span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.contact-card__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-6);
  aspect-ratio: 16/10;
}
.contact-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Page header (interior pages)
   ============================================================ */

.page-header {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-10);
}
.page-header__grid {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 860px) {
  .page-header__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}
.page-header .h-display {
  margin-top: var(--space-4);
  font-size: var(--text-2xl);
}
.breadcrumb {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.breadcrumb a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-text);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--color-ink);
  color: oklch(from var(--color-ink-text) l c h / 0.9);
  padding-block: var(--space-16) var(--space-8);
}
.footer .brand__word,
.footer .brand__tag {
  color: var(--color-ink-text);
}
.footer__grid {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 780px) {
  .footer__grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  }
}
.footer__about p {
  font-size: var(--text-sm);
  color: oklch(from var(--color-ink-text) l c h / 0.7);
  max-width: 34ch;
  margin-top: var(--space-4);
}
.footer h4 {
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-mint);
  margin-bottom: var(--space-4);
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}
.footer__list a {
  font-size: var(--text-sm);
  color: oklch(from var(--color-ink-text) l c h / 0.75);
  text-decoration: none;
}
.footer__list a:hover {
  color: var(--color-ink-text);
}
.footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-ink-text) l c h / 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: oklch(from var(--color-ink-text) l c h / 0.55);
}

/* ============================================================
   Scroll reveal
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
