:root {
  --primary: #a54a38;
  --bg: #a54a38;
  --text: #fff8f4;
  --text-on-primary: #fff8f4;
  --muted: rgba(255, 248, 244, 0.72);
  --line: rgba(255, 248, 244, 0.22);
  --ink: #2b1712;
  --ink-muted: rgba(43, 23, 18, 0.78);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1080px;
  --content: 720px;

  /* Spacing — aligned with Meshlat app / jobs portal */
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-xxl: 24px;
  --space-xxxl: 32px;
  --space-huge: 48px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --control-sm: 36px;
  --control-md: 44px;

  --text-display: 2rem;
  --text-h1: 1.625rem;
  --text-h2: 1.375rem;
  --text-h3: 1.125rem;
  --text-body-lg: 1.0625rem;
  --text-body: 0.9375rem;
  --text-caption: 0.8125rem;
  --text-micro: 0.6875rem;
  --text-button: 0.9375rem;

  --leading-display: 1.19;
  --leading-h1: 1.23;
  --leading-body: 1.47;
  --leading-caption: 1.38;
  --leading-micro: 1.27;

  --tracking-display: -0.031em;
  --tracking-h1: -0.025em;
  --tracking-overline: 0.055em;
  --tracking-button: -0.01em;

  --motion-press-scale: 0.96;
  --motion-enter-ms: 420ms;
  --motion-card-ms: 300ms;
  --motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ease-press: cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes mesh-enter-up {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes mesh-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mesh-enter {
  animation: mesh-enter-up var(--motion-enter-ms) var(--motion-ease-out) both;
}

.mesh-enter-fade {
  animation: mesh-fade-in calc(var(--motion-enter-ms) - 80ms) var(--motion-ease-out) both;
}

.mesh-press {
  transform-origin: center;
  transition: transform 160ms var(--motion-ease-press);
  will-change: transform;
}

.mesh-press:active:not(:disabled):not([aria-disabled="true"]) {
  transform: scale(var(--motion-press-scale));
}

@media (prefers-reduced-motion: reduce) {
  .mesh-enter,
  .mesh-enter-fade,
  .hero,
  .stores,
  .store-signin,
  .site-menu-panel,
  .legal-page,
  .content-page {
    animation: none;
  }

  .mesh-press,
  .mesh-press:active:not(:disabled):not([aria-disabled="true"]),
  .site-btn:active,
  .site-menu-btn:active,
  .stores a:active,
  .stores a:hover {
    transition: none;
    transform: none;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 248, 244, 0.12), transparent 62%),
    radial-gradient(ellipse 70% 45% at 100% 35%, rgba(255, 248, 244, 0.08), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

/* Dense mode-icon collage — landing page doodle wallpaper */
.doodle-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.doodle-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 48% at 50% 44%, rgba(0, 0, 0, 0.38), transparent 72%),
    radial-gradient(ellipse 120% 90% at 50% 50%, rgba(165, 74, 56, 0.55), transparent 70%);
  z-index: 20;
}

.doodle {
  position: absolute;
  width: 5.25rem;
  height: 5.25rem;
  margin: -2.625rem 0 0 -2.625rem;
  object-fit: cover;
  border-radius: 20%;
  filter: brightness(1.18) saturate(0.75) contrast(1.05);
  mix-blend-mode: soft-light;
  --r: 0deg;
  --s: 1;
  transform: rotate(var(--r)) scale(var(--s));
}

.doodle-mark {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  margin: -0.275rem 0 0 -0.275rem;
  border: 2px solid color-mix(in srgb, var(--text-on-primary) 22%, transparent);
  border-radius: 1px;
  --r: 0deg;
  --s: 1;
  transform: rotate(var(--r)) scale(var(--s));
  opacity: 0.35;
}

.doodle-mark::before,
.doodle-mark::after {
  content: "";
  position: absolute;
  background: color-mix(in srgb, var(--text-on-primary) 22%, transparent);
}

.doodle-mark::before {
  left: 50%;
  top: -0.35rem;
  width: 2px;
  height: calc(100% + 0.7rem);
  margin-left: -1px;
}

.doodle-mark::after {
  top: 50%;
  left: -0.35rem;
  height: 2px;
  width: calc(100% + 0.7rem);
  margin-top: -1px;
}

.page {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-huge);
  padding: var(--space-xxl);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  animation: mesh-enter-up var(--motion-enter-ms) var(--motion-ease-out) both;
}

.logo {
  margin: 0;
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.065em;
  color: var(--text-on-primary);
  text-transform: lowercase;
}

.tagline {
  margin: 0;
  font-size: clamp(var(--text-body), 3vw, var(--text-h3));
  font-weight: 400;
  font-style: italic;
  color: color-mix(in srgb, var(--text-on-primary) 88%, transparent);
  letter-spacing: 0.01em;
  line-height: var(--leading-body);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  align-items: center;
  animation: mesh-enter-up var(--motion-enter-ms) var(--motion-ease-out) both;
  animation-delay: 80ms;
}

.store-signin {
  margin: calc(var(--space-xl) * -1) 0 0;
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: var(--text-body);
  color: color-mix(in srgb, var(--text-on-primary) 72%, transparent);
  animation: mesh-enter-up var(--motion-enter-ms) var(--motion-ease-out) both;
  animation-delay: 120ms;
}

.store-signin a {
  color: var(--text-on-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.store-signin a:hover {
  opacity: 0.75;
}

.stores a {
  line-height: 0;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transform-origin: center;
  transition: transform 160ms var(--motion-ease-press);
}

.stores a:hover {
  transform: translateY(-2px);
}

.stores a:active {
  transform: scale(var(--motion-press-scale));
}

.stores a:focus-visible {
  outline: 2px solid var(--text-on-primary);
  outline-offset: 4px;
}

.store-badge--apple {
  height: 44px;
}

.store-badge--google {
  height: 64px;
}

.store-badge-soon {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 8px;
  cursor: default;
}

.store-badge--soon {
  opacity: 0.45;
}

.store-badge-soon-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: var(--space-xxs) 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, #0b0b0b 72%, transparent);
  color: #fff;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: var(--leading-micro);
}

.site-header {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  padding: var(--pad);
  padding-bottom: 0;
  padding-top: calc(var(--pad) + env(safe-area-inset-top, 0px));
  border-bottom: none;
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-logo {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--tracking-h1);
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
  flex-shrink: 0;
}

.site-logo:hover {
  opacity: 0.92;
}

.site-logo:focus-visible {
  outline: 2px solid var(--text-on-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-sm);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: var(--text-button);
  font-weight: 600;
  letter-spacing: var(--tracking-button);
  text-decoration: none;
  border: 1.5px solid transparent;
  transform-origin: center;
  transition:
    transform 160ms var(--motion-ease-press),
    background-color 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
  white-space: nowrap;
}

.site-btn:active {
  transform: scale(var(--motion-press-scale));
}

.site-btn--ghost {
  color: var(--text-on-primary);
  border-color: color-mix(in srgb, var(--text-on-primary) 45%, transparent);
  background: transparent;
}

.site-btn--ghost:hover {
  background: color-mix(in srgb, var(--text-on-primary) 10%, transparent);
}

.site-btn--solid {
  color: var(--primary);
  background: var(--text-on-primary);
  border-color: var(--text-on-primary);
}

.site-btn--solid:hover {
  opacity: 0.92;
}

.site-btn:focus-visible,
.site-menu-btn:focus-visible {
  outline: 2px solid var(--text-on-primary);
  outline-offset: 3px;
}

.site-menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  width: var(--control-sm);
  height: var(--control-sm);
  padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--text-on-primary) 45%, transparent);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transform-origin: center;
  transition: transform 160ms var(--motion-ease-press), background 0.15s ease;
}

.site-menu-btn:active {
  transform: scale(var(--motion-press-scale));
}

.site-menu-btn:hover {
  background: color-mix(in srgb, var(--text-on-primary) 10%, transparent);
}

.site-menu-btn-bar {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-on-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header--menu-open .site-menu-btn-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header--menu-open .site-menu-btn-bar:nth-child(2) {
  opacity: 0;
}

.site-header--menu-open .site-menu-btn-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-menu-panel {
  position: absolute;
  top: calc(100% - 0.5rem);
  right: 1.25rem;
  min-width: 13.5rem;
  max-width: min(18rem, calc(100vw - 2rem));
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  padding: var(--space-xs);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--text-on-primary) 22%, transparent);
  background: color-mix(in srgb, var(--primary) 92%, #000 8%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
  animation: mesh-enter-up var(--motion-card-ms) var(--motion-ease-out) both;
}

.site-menu-section {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-menu-section + .site-menu-section {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid color-mix(in srgb, var(--text-on-primary) 14%, transparent);
}

.site-menu-section-title {
  margin: 0;
  padding: var(--space-xs) 0.85rem var(--space-xxs);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-on-primary) 55%, transparent);
}

.site-menu-panel[hidden] {
  display: none;
}

.site-menu-panel a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-caption);
  font-weight: 500;
  color: color-mix(in srgb, var(--text-on-primary) 88%, transparent);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-menu-panel a:hover {
  background: color-mix(in srgb, var(--text-on-primary) 12%, transparent);
  color: var(--text-on-primary);
}

.site-menu-panel a[aria-current="page"] {
  color: var(--text-on-primary);
  font-weight: 600;
  background: color-mix(in srgb, var(--text-on-primary) 10%, transparent);
}

@media (max-width: 420px) {
  .site-header-inner {
    gap: 0.75rem;
  }

  .site-btn {
    padding-inline: 0.7rem;
    font-size: 0.8125rem;
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 0 var(--pad) calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  border-top: none;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
}

.footer-nav a {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.footer-nav a:hover {
  opacity: 0.65;
}

.footer-copy {
  margin: 0;
  font-size: var(--text-caption);
  color: var(--muted);
}

.footer-copy a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy a:hover {
  opacity: 0.65;
}

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 16px var(--pad) calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--bg, #0f0f0f);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text, #f5f5f5);
}

.cookie-consent-inner {
  max-width: var(--max, 960px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.cookie-consent-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: var(--text-caption, 0.875rem);
  line-height: 1.45;
  color: var(--muted, #b0b0b0);
}

.cookie-consent-inner a {
  color: var(--text, #f5f5f5);
  text-underline-offset: 2px;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-consent-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--text, #f5f5f5);
  color: var(--bg, #0f0f0f);
}

.cookie-consent-btn--ghost {
  background: transparent;
  color: var(--text, #f5f5f5);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

[data-theme="light"] .cookie-consent,
html:not([data-theme="dark"]) .cookie-consent {
  background: #fff8f3;
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
}

[data-theme="light"] .cookie-consent-inner p,
html:not([data-theme="dark"]) .cookie-consent-inner p {
  color: #5c534c;
}

[data-theme="light"] .cookie-consent-inner a,
html:not([data-theme="dark"]) .cookie-consent-inner a {
  color: #1a1a1a;
}

[data-theme="light"] .cookie-consent-btn,
html:not([data-theme="dark"]) .cookie-consent-btn {
  background: #1a1a1a;
  color: #fff8f3;
}

[data-theme="light"] .cookie-consent-btn--ghost,
html:not([data-theme="dark"]) .cookie-consent-btn--ghost {
  background: transparent;
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.2);
}

/* ——— Shared open-layout primitives ——— */
.eyebrow {
  margin: 0 0 var(--space-lg);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— Content & legal pages (AltTabQ-aligned, terracotta surface) ——— */
.legal-page,
.content-page {
  flex: 1 1 auto;
  width: min(100% - (var(--pad) * 2), var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 5.5rem) 0 var(--space-xxxl);
  position: relative;
  z-index: 1;
  animation: mesh-enter-up var(--motion-card-ms) var(--motion-ease-out) both;
}

.content-card {
  max-width: var(--content);
  margin: 0 auto;
  background: transparent;
  color: var(--text);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.content-card--wide {
  max-width: var(--max);
}

.content-card h1 {
  margin: 0 0 var(--space-md);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
  color: var(--text);
}

.content-lead {
  margin: 0 0 var(--space-xxl);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
  color: var(--muted);
}

.content-card h2 {
  margin: var(--space-xxl) 0 var(--space-md);
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.content-card h3 {
  margin: var(--space-xl) 0 var(--space-sm);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text);
}

.content-card p,
.content-card li {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--muted);
}

.content-card p {
  margin: 0 0 var(--space-lg);
}

.content-card ul,
.content-card ol {
  margin: 0 0 var(--space-lg);
  padding-left: var(--space-xl);
}

.content-card li {
  margin-bottom: var(--space-xs);
}

.content-card a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-card a:hover {
  opacity: 0.7;
}

.content-card strong {
  color: var(--text);
  font-weight: 600;
}

/* AltTabQ-style numbered legal grid */
.legal-hero {
  max-width: var(--content);
  margin: 0 auto;
  text-align: center;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
  color: var(--text);
}

.legal-lead,
.legal-updated {
  margin: 1.5rem auto 0;
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(3rem, 8vh, 4.5rem);
  border-top: 1px solid var(--line);
}

.legal-item {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.legal-item:nth-child(3n) {
  border-right: none;
}

.legal-item--wide {
  grid-column: 1 / -1;
  border-right: none;
}

.legal-item:hover {
  background: var(--text);
  color: var(--ink);
  transform: translateY(-2px);
  z-index: 1;
}

.legal-num {
  display: block;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255, 248, 244, 0.14);
  transition: color 0.35s ease;
}

.legal-item:hover .legal-num {
  color: rgba(165, 74, 56, 0.22);
}

.legal-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s ease;
}

.legal-item:hover .legal-label {
  color: rgba(43, 23, 18, 0.5);
}

.legal-item h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: inherit;
}

.legal-item p,
.legal-item li {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color 0.35s ease;
}

.legal-item:hover p,
.legal-item:hover li {
  color: var(--ink-muted);
}

.legal-item h3 {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: inherit;
}

.legal-item ul,
.legal-item ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal-item a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-item:hover a {
  color: var(--bg);
}

.legal-item strong {
  font-weight: 600;
}

.legal-item table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.legal-item th,
.legal-item td {
  border: 1px solid var(--line);
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.legal-item th {
  background: rgba(255, 248, 244, 0.08);
  font-weight: 600;
  color: var(--text);
}

.legal-item:hover th,
.legal-item:hover td {
  border-color: rgba(43, 23, 18, 0.18);
  color: var(--ink-muted);
}

.legal-item:hover th {
  background: rgba(43, 23, 18, 0.06);
  color: var(--ink);
}

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

  .legal-item {
    border-right: 1px solid var(--line);
  }

  .legal-item:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .legal-item:nth-child(2n) {
    border-right: none;
  }

  .legal-item--wide {
    grid-column: 1 / -1;
    border-right: none;
  }
}

@media (max-width: 560px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-item,
  .legal-item:nth-child(3n),
  .legal-item:nth-child(2n),
  .legal-item--wide {
    border-right: none;
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-item {
    transition: background 0.35s ease, color 0.35s ease;
  }

  .legal-item:hover {
    transform: none;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-item {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

.contact-item:nth-child(2n) {
  border-right: none;
}

.contact-item:hover {
  background: var(--text);
  color: var(--ink);
}

.contact-item h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: inherit;
}

.contact-item p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.35s ease;
}

.contact-item:hover p {
  color: var(--ink-muted);
}

.contact-item a {
  font-weight: 600;
  color: inherit;
}

.contact-item:hover a {
  color: var(--bg);
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-item,
  .contact-item:nth-child(2n) {
    border-right: none;
  }
}

/* ——— Marketing / info pages ——— */
.content-head {
  max-width: var(--content);
  margin: 0 auto;
  text-align: center;
}

.content-head h1 {
  margin: 0;
}

.content-head .content-lead {
  margin: 1.25rem auto 0;
  max-width: 38em;
}

.content-head .content-lead strong,
.content-lead strong {
  color: var(--text);
  font-weight: 600;
}

.content-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  border-top: 1px solid var(--line);
}

.content-section {
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 3vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.content-section:nth-child(3n) {
  border-right: none;
}

.content-section:hover {
  background: var(--text);
  color: var(--ink);
  transform: translateY(-2px);
  z-index: 1;
}

.content-section-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s ease;
}

.content-section:hover .content-section-label {
  color: rgba(43, 23, 18, 0.5);
}

.content-section h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: inherit;
}

.content-section p,
.content-section li {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color 0.35s ease;
}

.content-section:hover p,
.content-section:hover li {
  color: var(--ink-muted);
}

.content-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.content-section a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-section:hover a {
  color: var(--bg);
}

.content-section--wide {
  grid-column: 1 / -1;
  border-right: none;
}

@media (max-width: 900px) {
  .content-sections {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-section {
    border-right: 1px solid var(--line);
  }

  .content-section:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .content-section:nth-child(2n) {
    border-right: none;
  }

  .content-section--wide {
    grid-column: 1 / -1;
    border-right: none;
  }
}

@media (max-width: 560px) {
  .content-sections {
    grid-template-columns: 1fr;
  }

  .content-section,
  .content-section:nth-child(3n),
  .content-section:nth-child(2n),
  .content-section--wide {
    border-right: none;
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-section:hover,
  .mode-card:hover,
  .link-card:hover,
  .contact-item:hover {
    transform: none;
  }
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(2rem, 5vh, 3rem) 0 0.5rem;
  border-top: 1px solid var(--line);
}

.mode-card {
  display: block;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.mode-card:nth-child(3n) {
  border-right: none;
}

.mode-card:hover {
  background: var(--text);
  color: var(--ink);
  transform: translateY(-2px);
  z-index: 1;
}

.mode-card-title {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: inherit;
}

.mode-card-desc {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  transition: color 0.35s ease;
}

.mode-card:hover .mode-card-desc {
  color: var(--ink-muted);
}

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

  .mode-card {
    border-right: 1px solid var(--line);
  }

  .mode-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .mode-card:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 560px) {
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .mode-card,
  .mode-card:nth-child(3n),
  .mode-card:nth-child(2n) {
    border-right: none;
  }
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2rem, 5vh, 3rem);
  border-top: 1px solid var(--line);
}

.link-card {
  display: block;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.link-card:nth-child(3n) {
  border-right: none;
}

.link-card:hover {
  background: var(--text);
  color: var(--ink);
  transform: translateY(-2px);
  z-index: 1;
}

.link-card-title {
  display: block;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: inherit;
  margin-bottom: 0.35rem;
}

.link-card-desc {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  transition: color 0.35s ease;
}

.link-card:hover .link-card-desc {
  color: var(--ink-muted);
}

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

  .link-card {
    border-right: 1px solid var(--line);
  }

  .link-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .link-card:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 560px) {
  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-card,
  .link-card:nth-child(3n),
  .link-card:nth-child(2n) {
    border-right: none;
  }
}

.content-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--muted);
  text-align: center;
}

.content-cta a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

