/* =========================================================================
   DietClash — design system v3 (light brand luxury)
   Bone surfaces, real brand colors (navy / sage / orange from the logo),
   italic-serif accent in orange. All v2 luxury improvements preserved:
   oversized type, generous spacing, satellite cards, ambient motion,
   refined components. Logical properties throughout for RTL-readiness.
   ========================================================================= */

/* ----- 1. Tokens ----- */
:root {
  /* Navy scale — from logo #131D50 */
  --navy-50:  #EEF0F7;
  --navy-100: #D6DBE9;
  --navy-200: #ADB5CC;
  --navy-300: #818CAE;
  --navy-400: #4F5A85;
  --navy-500: #2F3A68;
  --navy-600: #1F295C;
  --navy-700: #1A2354;
  --navy-800: #131D50;  /* base — logo */
  --navy-900: #0A1138;

  /* Sage scale — from logo #638C5E */
  --sage-50:  #EFF3ED;
  --sage-100: #D6E0D2;
  --sage-200: #B5C7AE;
  --sage-300: #99B391;
  --sage-400: #80A077;
  --sage-500: #6F9468;
  --sage-600: #638C5E;  /* base — logo */
  --sage-700: #527A4D;
  --sage-800: #3F5C3B;
  --sage-900: #2A3D26;

  /* Orange scale — from logo #ED7832 */
  --orange-50:  #FDF1EA;
  --orange-100: #FBDCC5;
  --orange-200: #F7BC95;
  --orange-300: #F3A879;
  --orange-400: #F19660;
  --orange-500: #EE8443;
  --orange-600: #ED7832;  /* base — logo */
  --orange-700: #D26621;
  --orange-800: #B5571C;
  --orange-900: #7D3A11;

  /* Bone scale — surfaces */
  --bone-50:   #FCFAF4;
  --bone-100:  #F8F8F4;  /* main page bg */
  --bone-200:  #EFEDE5;  /* alt section / footer */
  --bone-300:  #E3E0D6;

  /* Semantic mapping */
  --surface-base:     var(--bone-100);
  --surface-elevated: #FFFFFF;          /* cards */
  --surface-alt:      var(--bone-200);  /* alternating sections */
  --surface-deep:     var(--navy-800);  /* dark moments (CTA) */
  --surface-input:    #FFFFFF;

  --text-primary:   var(--navy-800);
  --text-secondary: #3C4456;
  --text-tertiary:  #6E7184;
  --text-muted:     #A0A4B0;
  --text-inverse:   var(--bone-100);
  --text-on-dark:   rgba(248, 248, 244, 0.85);

  --border-subtle:  rgba(19, 29, 80, 0.06);
  --border-default: rgba(19, 29, 80, 0.14);
  --border-strong:  rgba(19, 29, 80, 0.24);
  --border-on-dark: rgba(248, 248, 244, 0.16);

  --accent-orange: var(--orange-600);  /* italic-serif accent */
  --accent-sage:   var(--sage-600);    /* kickers, quiet accents */

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Fraunces', 'Source Serif 4', Charter, 'Iowan Old Style', Georgia, serif;

  /* Type scale — luxury sizes */
  --fs-display: clamp(48px, 7vw, 96px);
  --fs-h1:      clamp(38px, 5vw, 64px);
  --fs-h2:      clamp(30px, 3.6vw, 48px);
  --fs-h3:      clamp(22px, 2.4vw, 30px);
  --fs-h4:      clamp(18px, 1.6vw, 22px);
  --fs-lead:    clamp(17px, 1.5vw, 21px);
  --fs-body:    16px;
  --fs-small:   14px;
  --fs-xsmall:  12px;
  --fs-kicker:  10px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 160px;

  /* Radii */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-pill: 999px;

  /* Layout */
  --container:        1180px;
  --container-narrow: 720px;
  --container-wide:   1320px;
  --gutter:           clamp(24px, 5vw, 56px);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-base: 320ms;
}

/* ----- 2. Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--surface-base);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-inline-size: 100%; block-size: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--orange-600); color: var(--bone-100); }

/* ----- 3. Layout primitives ----- */
.container {
  inline-size: 100%;
  max-inline-size: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-inline-size: var(--container-narrow); }
.container--wide   { max-inline-size: var(--container-wide); }

.section { padding-block: clamp(88px, 11vw, 160px); }
.section--tight  { padding-block: clamp(56px, 8vw, 96px); }
.section--bone-2 { background: var(--surface-alt); }
.section--white  { background: var(--surface-elevated); }
.section--sage   { background: var(--sage-50); }
.section--navy   { background: var(--surface-deep); color: var(--text-on-dark); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--bone-100); }
.section--navy .kicker { color: var(--orange-400); }

/* ----- 4. Typography ----- */
.kicker {
  font-size: var(--fs-kicker);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sage-600);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.kicker::before {
  content: "";
  inline-size: 28px;
  block-size: 1px;
  background: currentColor;
  opacity: 0.7;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.028em; color: var(--text-primary); }
h1 { font-size: var(--fs-h1); line-height: 1.04; }
h2 { font-size: var(--fs-h2); line-height: 1.06; }
h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -0.018em; }
h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.01em; }

.display {
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 500;
  max-inline-size: 14ch;
  color: var(--text-primary);
}
.display em,
h1 em, h2 em, h3 em, h4 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--orange-600);
  letter-spacing: -0.02em;
}
.section--navy h1 em, .section--navy h2 em, .section--navy h3 em {
  color: var(--orange-400);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-secondary);
  max-inline-size: 52ch;
  font-weight: 400;
}
.section--navy .lead { color: var(--text-on-dark); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-block-end: 0; }

/* Editorial (blog post body) */
.editorial { font-family: var(--font-serif); color: var(--text-primary); overflow-wrap: anywhere; word-break: break-word; }
.editorial h1, .editorial h2, .editorial h3, .editorial p, .editorial li { overflow-wrap: anywhere; word-break: break-word; }
.article-hero h1 { overflow-wrap: anywhere; word-break: break-word; }
.editorial h1 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.018em; }
.editorial h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.014em; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.18; margin-block: var(--space-8) var(--space-4); color: var(--navy-800); }
.editorial h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(20px, 2vw, 24px); margin-block: var(--space-6) var(--space-3); color: var(--navy-800); }
.editorial p  { font-size: 18px; line-height: 1.78; color: var(--text-primary); margin-block-end: var(--space-5); }
.editorial p:first-of-type::first-letter {
  font-size: 4em; float: inline-start; line-height: 0.88; padding-inline-end: 10px;
  padding-block-start: 6px; color: var(--orange-600); font-weight: 400;
  font-family: var(--font-serif); font-style: italic;
}
.editorial ul, .editorial ol { font-size: 18px; line-height: 1.75; padding-inline-start: var(--space-5); color: var(--text-primary); }
.editorial li { margin-block-end: var(--space-2); }
.editorial li strong { color: var(--navy-800); font-weight: 500; }
.editorial blockquote {
  border-inline-start: 1px solid var(--orange-600);
  margin: var(--space-8) 0; padding: var(--space-3) var(--space-6);
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4;
  color: var(--navy-800);
  font-style: italic; font-weight: 400;
  font-family: var(--font-serif);
}
.editorial figure { margin: var(--space-8) calc(var(--gutter) * -0.2); }
.editorial figcaption { font-family: var(--font-sans); font-size: var(--fs-small); color: var(--text-tertiary); margin-block-start: var(--space-3); padding-inline: var(--space-3); }

/* ----- 5. Buttons & store badges ----- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 14px 26px; border-radius: var(--radius-md);
  font-size: var(--fs-small); font-weight: 500;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }

.btn--primary   { background: var(--navy-800); color: var(--bone-100); }
.btn--primary:hover   { background: var(--navy-900); }
.btn--secondary { background: transparent; color: var(--navy-800); border-color: var(--border-default); }
.btn--secondary:hover { border-color: var(--border-strong); background: var(--surface-elevated); }
.btn--ghost     { background: transparent; color: var(--navy-800); padding-inline: 8px; }
.btn--ghost:hover { color: var(--orange-600); }
.btn--accent    { background: var(--orange-600); color: var(--bone-100); }
.btn--accent:hover { background: var(--orange-700); }
.section--navy .btn--primary { background: var(--bone-100); color: var(--navy-800); }
.section--navy .btn--secondary { color: var(--bone-100); border-color: var(--border-on-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* Official-style App Store / Play Store badges */
.app-badge {
  display: inline-flex; align-items: center;
  border-radius: 8px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.app-badge:hover { transform: translateY(-1px); opacity: 0.88; }
.app-badge svg { block-size: 48px; inline-size: auto; display: block; }
.app-badge--sm svg { block-size: 44px; }

/* ----- 6. Nav ----- */
.nav {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: rgba(248, 248, 244, 0.82);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-block-end: 1px solid var(--border-subtle);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  block-size: 76px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { inline-size: 28px; block-size: 30px; }
.nav__brand span {
  font-weight: 500; font-size: 16px; letter-spacing: -0.005em;
  color: var(--navy-800);
}
.nav__links {
  display: flex; align-items: center; gap: var(--space-7);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.nav__links a { transition: color var(--dur-fast) var(--ease-out); }
.nav__links a:hover { color: var(--navy-800); }
.nav__cta { display: flex; align-items: center; gap: var(--space-3); }

/* Hamburger toggle (mobile only) */
.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  inline-size: 44px;
  block-size: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  margin-inline-end: -8px;
  position: relative;
  z-index: 60;
}
.nav__toggle-line {
  display: block;
  inline-size: 22px;
  block-size: 1.5px;
  background: var(--navy-800);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
  transform-origin: center;
}
.nav__links-cta { display: none; }

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset-block-start: 76px;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: var(--bone-100);
    padding: var(--space-7) var(--gutter) var(--space-8);
    gap: var(--space-5);
    border-block-end: 1px solid var(--border-subtle);
    font-size: 18px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-out), visibility 0.35s;
    max-block-size: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__links a {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--navy-800);
    padding-block: 6px;
  }
  .nav__links-cta {
    display: inline-block;
    background: var(--navy-800);
    color: var(--bone-100) !important;
    padding: 14px 26px !important;
    border-radius: var(--radius-md);
    margin-block-start: var(--space-5);
    align-self: flex-start;
    font-size: var(--fs-small) !important;
    letter-spacing: 0.02em;
  }

  /* Hamburger → X animation */
  .nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* ----- 7. Hero ----- */
.hero {
  padding-block: clamp(72px, 10vw, 144px) clamp(56px, 8vw, 112px);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.hero__copy .kicker { color: var(--sage-600); }
.hero__copy .display { margin-block: var(--space-5) var(--space-6); }
.hero__copy .lead    { margin-block-end: var(--space-7); color: var(--text-secondary); }
.hero__trust {
  margin-block-start: var(--space-6); display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-xsmall); color: var(--text-tertiary); letter-spacing: 0.04em;
}
.hero__trust .dot { inline-size: 3px; block-size: 3px; background: var(--text-muted); border-radius: 50%; }
.hero__visual { display: flex; justify-content: center; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: 2; }
}

/* Phone wrapper */
.hero__phone-wrap {
  position: relative;
  display: inline-block;
}
.phone {
  inline-size: 300px; aspect-ratio: 300 / 620;
  background: #0A1138;
  border-radius: 46px;
  padding: 12px;
  position: relative;
  border: 1px solid rgba(19, 29, 80, 0.18);
  box-shadow: 0 50px 100px -30px rgba(19, 29, 80, 0.3),
              0 20px 40px -16px rgba(19, 29, 80, 0.2);
}
.phone__screen {
  background: var(--surface-elevated);
  border-radius: 34px;
  block-size: 100%;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
}
.phone--dark { background: #000; }
.phone__screen--fill {
  padding: 0; gap: 0; overflow: hidden;
}
.phone__screen--fill img,
.phone__screen--fill svg {
  inline-size: 100%; block-size: 100%;
  display: block; object-fit: cover;
  border-radius: 34px;
}

/* Floating UI satellites (hero) */
.satellite {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
  min-inline-size: 116px;
  box-shadow: 0 18px 36px -12px rgba(19, 29, 80, 0.18),
              0 6px 14px -4px rgba(19, 29, 80, 0.1);
  opacity: 0;
}
.satellite__label {
  font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; font-weight: 500;
  color: var(--sage-600);
}
.satellite__value {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  font-size: 30px; line-height: 1;
  color: var(--orange-600);
  letter-spacing: -0.022em;
}
.satellite__sub {
  font-size: 11px; color: var(--text-tertiary);
  margin-top: 2px; line-height: 1.3;
}
.satellite--1 { top: 36px; right: -52px; }
.satellite--2 { bottom: 64px; left: -68px; }
@media (max-width: 1100px) {
  .satellite--1 { right: -28px; }
  .satellite--2 { left: -28px; }
}
@media (max-width: 760px) {
  .satellite { display: none; }
}

/* Hero entrance animations */
.hero__copy > * {
  opacity: 0;
  animation: hero-in 0.9s var(--ease-out) forwards;
}
.hero__copy .kicker      { animation-delay: 0.05s; }
.hero__copy .display     { animation-delay: 0.18s; }
.hero__copy .lead        { animation-delay: 0.32s; }
.hero__copy .btn-row     { animation-delay: 0.46s; }
.hero__copy .hero__trust { animation-delay: 0.6s; }

.hero__phone-wrap {
  opacity: 0;
  animation: phone-in 1s var(--ease-out) 0.4s forwards,
             phone-float 7s ease-in-out 1.6s infinite;
}

.satellite--1 { animation: satellite-in 0.8s var(--ease-out) 0.95s forwards; }
.satellite--2 { animation: satellite-in 0.8s var(--ease-out) 1.15s forwards; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes phone-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-8px) scale(1); }
}
@keyframes satellite-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy > *,
  .hero__phone-wrap,
  .satellite { opacity: 1 !important; animation: none !important; }
}

/* ----- 8. Trust strip ----- */
.trust-strip {
  display: flex; align-items: center; justify-content: center; gap: var(--space-8);
  flex-wrap: wrap;
  padding-block: var(--space-7);
  border-block: 1px solid var(--border-subtle);
  font-size: var(--fs-xsmall); color: var(--text-tertiary); letter-spacing: 0.16em;
  text-transform: uppercase;
}
.trust-strip__item { display: flex; align-items: center; gap: 10px; }
.trust-strip__rating { color: var(--orange-600); letter-spacing: 2px; }

/* ----- 9. Feature grid ----- */
.features {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.feature {
  background: var(--surface-elevated);
  padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.section--bone-2 .feature { background: var(--surface-base); }
.feature__icon {
  inline-size: 44px; block-size: 44px;
  background: var(--sage-50);
  color: var(--sage-700);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--sage-100);
}
.feature h3 { font-size: var(--fs-h4); }
.feature p  { color: var(--text-secondary); margin: 0; font-size: 15px; line-height: 1.65; }
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
}

/* ----- 10. Steps (how it works) ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.step { display: flex; flex-direction: column; gap: var(--space-4); }
.step__num {
  font-family: var(--font-serif);
  font-size: 72px; font-weight: 400;
  font-style: italic;
  color: var(--orange-600); line-height: 1;
  letter-spacing: -0.04em;
}
.step h3 { font-size: var(--fs-h4); }
.step p  { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* ----- 11. Quote ----- */
.quote {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--navy-800);
  max-inline-size: 22ch;
  font-weight: 400;
}
.quote em { color: var(--orange-600); font-style: italic; }
.quote__attr {
  margin-block-start: var(--space-7);
  font-family: var(--font-sans); font-size: var(--fs-xsmall);
  color: var(--text-tertiary); letter-spacing: 0.16em; text-transform: uppercase;
}
.quote-block { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-9); align-items: center; }
@media (max-width: 900px) { .quote-block { grid-template-columns: 1fr; } }
.quote-stats { display: flex; flex-direction: column; gap: var(--space-6); }
.stat { border-block-start: 1px solid var(--border-subtle); padding-block-start: var(--space-4); }
.stat__num   { font-family: var(--font-serif); font-size: clamp(40px, 4.4vw, 64px); color: var(--navy-800); font-weight: 400; letter-spacing: -0.03em; line-height: 1; font-style: italic; }
.stat__num em { font-style: italic; color: var(--orange-600); }
.stat__label { color: var(--text-secondary); font-size: var(--fs-small); margin-block-start: 8px; line-height: 1.55; max-inline-size: 30ch; }

/* ----- 12. Post cards ----- */
.posts-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 40px);
  justify-content: center;
}
.posts-row .card {
  flex: 0 1 calc(33.333% - clamp(16px, 2vw, 28px));
  min-inline-size: 280px;
  max-inline-size: 400px;
}
@media (max-width: 900px) {
  .posts-row .card { flex-basis: calc(50% - clamp(12px, 1.5vw, 20px)); }
}
@media (max-width: 600px) {
  .posts-row .card { flex-basis: 100%; min-inline-size: 0; max-inline-size: 100%; }
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-default);
  box-shadow: 0 24px 48px -16px rgba(19, 29, 80, 0.12);
}
.section--bone-2 .card { background: var(--surface-elevated); }
.card__media {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.card__meta { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xsmall); color: var(--text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; }
.card__tag {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: var(--sage-700);
  padding: 5px 10px; border: 1px solid var(--sage-200);
  border-radius: 2px;
  background: var(--sage-50);
  align-self: flex-start;
}
.card__title { font-family: var(--font-serif); font-size: 22px; line-height: 1.22; letter-spacing: -0.014em; color: var(--navy-800); font-weight: 500; overflow-wrap: anywhere; word-break: break-word; }
.card__excerpt {
  color: var(--text-secondary); font-size: var(--fs-small); line-height: 1.6;
  overflow-wrap: anywhere; word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: var(--space-5);
  margin-block-end: var(--space-8);
}
.section-head h2 { max-inline-size: 16ch; }
.section-head__link {
  font-size: var(--fs-xsmall); color: var(--navy-800);
  display: inline-flex; align-items: center; gap: 6px;
  border-block-end: 1px solid var(--orange-600);
  padding-block-end: 4px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.section-head__link:hover { color: var(--orange-600); }

/* ----- 13. Featured post (blog index) ----- */
.featured-post {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-elevated);
  margin-block-end: clamp(56px, 7vw, 96px);
}
.featured-post__media { aspect-ratio: auto; min-block-size: 380px; }
.featured-post__body  { padding: clamp(36px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); }
.featured-post__title { font-family: var(--font-serif); font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; letter-spacing: -0.018em; font-weight: 500; color: var(--navy-800); overflow-wrap: anywhere; word-break: break-word; }
.featured-post__excerpt {
  color: var(--text-secondary); font-size: var(--fs-lead); line-height: 1.6; max-inline-size: 50ch;
  overflow-wrap: anywhere; word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 800px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post__media { min-block-size: 240px; }
}

/* ----- 14. Final CTA section ----- */
.cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-9);
  align-items: center;
}
.cta h2 { color: var(--bone-100); font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -0.03em; max-inline-size: 16ch; line-height: 1.04; }
.cta h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--orange-400); }
.cta p  { color: var(--text-on-dark); }
.cta__buttons { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }

/* ----- 15. Footer ----- */
.footer { background: var(--surface-alt); padding-block: var(--space-9) var(--space-6); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-7);
  padding-block-end: var(--space-7);
  border-block-end: 1px solid var(--border-subtle);
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-4); max-inline-size: 32ch; }
.footer__brand-row { display: flex; align-items: center; gap: 12px; }
.footer__brand-row img { inline-size: 26px; block-size: 28px; }
.footer__brand-row span { font-weight: 500; color: var(--navy-800); letter-spacing: -0.005em; }
.footer__tagline { color: var(--text-secondary); font-size: var(--fs-small); line-height: 1.65; }
.footer__col h4 {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--sage-700); font-weight: 500; margin-block-end: var(--space-4);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-small); color: var(--text-secondary); }
.footer__col a { transition: color var(--dur-fast) var(--ease-out); }
.footer__col a:hover { color: var(--orange-600); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-block-start: var(--space-5);
  font-size: var(--fs-xsmall); color: var(--text-tertiary);
  flex-wrap: wrap; gap: var(--space-3); letter-spacing: 0.06em;
}

/* ----- 16. Article (single post) ----- */
.article-hero {
  padding-block: clamp(72px, 9vw, 144px) clamp(48px, 6vw, 80px);
  text-align: center;
}
.article-hero .kicker { justify-content: center; }
.article-hero h1 {
  font-family: var(--font-serif); font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04; letter-spacing: -0.02em; font-weight: 500;
  margin-block: var(--space-5) var(--space-6);
  max-inline-size: 22ch; margin-inline: auto; color: var(--navy-800);
}
.article-hero h1 em { font-style: italic; color: var(--orange-600); font-weight: 400; }
.article-hero .lead { margin-inline: auto; color: var(--text-secondary); }
.article-meta {
  margin-block-start: var(--space-7);
  display: flex; justify-content: center; align-items: center; gap: var(--space-3);
  font-size: var(--fs-xsmall); color: var(--text-tertiary);
  flex-wrap: wrap; letter-spacing: 0.1em; text-transform: uppercase;
}
.author-chip { display: inline-flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: var(--fs-small); }
.author-chip .avatar {
  inline-size: 30px; block-size: 30px; border-radius: 50%;
  background: var(--sage-100); color: var(--sage-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500;
  border: 1px solid var(--sage-200);
}

.article-cover {
  aspect-ratio: 16 / 7;
  max-inline-size: var(--container-wide);
  margin: 0 auto var(--space-9);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.author-bio {
  margin-block-start: var(--space-10);
  padding: var(--space-7);
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-lg);
  display: flex; gap: var(--space-5); align-items: flex-start;
}
.author-bio .avatar { inline-size: 58px; block-size: 58px; font-size: 18px; flex-shrink: 0; border-radius: 50%; background: var(--sage-200); color: var(--sage-800); display: flex; align-items: center; justify-content: center; font-weight: 500; border: 1px solid var(--sage-300); }
.author-bio h4 { margin-block-end: 6px; color: var(--navy-800); }
.author-bio p  { color: var(--text-secondary); font-size: var(--fs-small); line-height: 1.7; margin: 0; }

/* ----- 17. Utility ----- */
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) { .hide-mobile { display: none !important; } }

/* Decorative card media */
.media--terracotta { background: var(--orange-100); color: var(--orange-800); }
.media--sage       { background: var(--sage-100);   color: var(--sage-800); }
.media--navy       { background: var(--navy-100);   color: var(--navy-800); }
.media--bone       { background: var(--bone-200);   color: var(--navy-800); }
.media__label {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 400; font-style: italic;
  letter-spacing: -0.02em; line-height: 1.15;
  padding: var(--space-5); max-inline-size: 20ch;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__media { align-items: flex-start; }
.featured-post__media { align-items: center; }

/* ----- 18. Contact page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: var(--space-6); }
.contact-info__block { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-info__icon {
  inline-size: 44px; block-size: 44px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--sage-50);
  color: var(--sage-700);
  border: 1px solid var(--sage-100);
  display: flex; align-items: center; justify-content: center;
}
.contact-info__label { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sage-700); font-weight: 500; }
.contact-info__value { font-size: var(--fs-lead); color: var(--navy-800); margin-block-start: 6px; line-height: 1.4; }
.contact-info__sub   { font-size: var(--fs-small); color: var(--text-tertiary); margin-block-start: 6px; line-height: 1.6; }

.contact-form {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 11px; color: var(--sage-700); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.form-label .req { color: var(--orange-600); margin-inline-start: 2px; }
.form-input, .form-textarea, .form-select {
  font-family: inherit;
  font-size: var(--fs-small);
  padding: 14px 16px;
  background: var(--surface-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--navy-800);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--orange-600);
  background: var(--surface-elevated);
}
.form-textarea { resize: vertical; min-block-size: 160px; line-height: 1.6; }
.form-help { font-size: var(--fs-xsmall); color: var(--text-tertiary); margin-block-start: 4px; line-height: 1.5; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-block-start: var(--space-4); flex-wrap: wrap; }

.faq { display: flex; flex-direction: column; gap: var(--space-3); }
.faq__item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  background: var(--surface-elevated);
}
.faq__q { font-weight: 500; color: var(--navy-800); margin-block-end: 8px; font-family: var(--font-serif); font-size: 18px; letter-spacing: -0.01em; }
.faq__a { font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.7; margin: 0; }
