/* ─── Self-hosted Sora font (baked at build, no external network requests) ─── */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/sora-regular-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/sora-regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0f12;
  --surface: #131a1f;
  --surface-soft: #1a242c;
  --text: #ecf2f7;
  --muted: #b3c0cb;
  --brand: #ff6a1a;
  --brand-strong: #e25208;
  --line: #27313a;
  --ok: #21b57f;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --text-sm: 0.86rem;
  --text-md: 0.96rem;
  --text-lg: 1.08rem;
  --type-h1: clamp(1.95rem, 5.4vw, 3.5rem);
  --type-h2: clamp(1.45rem, 3.1vw, 2.35rem);
  --type-h3: clamp(1.12rem, 2vw, 1.4rem);
  --type-body: 1.02rem;
  --leading-body: 1.68;
  --leading-tight: 1.2;
  --control-height: 46px;
  --control-radius: 13px;
  --control-pad-x: 1rem;
  --control-border: rgba(255, 255, 255, 0.2);
  --control-bg-soft: rgba(255, 255, 255, 0.05);
  --control-focus: rgba(255, 106, 26, 0.42);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  --theme-glow: rgba(255, 162, 79, 0.24);
  --theme-glow-soft: rgba(223, 112, 78, 0.16);
  --surface-air: color-mix(in oklab, var(--surface) 72%, transparent 28%);
  --surface-air-soft: color-mix(in oklab, var(--surface-soft) 64%, transparent 36%);
  --line-soft: rgba(255, 255, 255, 0.12);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-bg: color-mix(in oklab, var(--surface) 76%, transparent 24%);
  --panel-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  --theme-bg-image: image-set(url('/backgrounds/atmo-dawn.png') type('image/png'),
      url('/backgrounds/atmo-dawn.svg') type('image/svg+xml'));
  --scroll-shift: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 90% -10%, var(--theme-glow), transparent 70%),
    radial-gradient(900px 500px at -20% 10%, var(--theme-glow-soft), transparent 60%),
    var(--bg);
  line-height: 1.6;
}

.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--theme-bg-image);
  background-size: cover;
  background-position: center calc(50% + var(--scroll-shift));
  opacity: 0.44;
  pointer-events: none;
  transition: background-image 280ms ease, opacity 280ms ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #ff6a1a, #ffd084);
  box-shadow: 0 0 16px rgba(255, 106, 26, 0.8);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 220;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 18, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background-color 300ms ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.7rem;
  z-index: 999;
  border-radius: 8px;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.skip-link-footer:focus {
  top: 2.8rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-name {
  display: inline;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--brand), #ff8c49);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.nav-links-primary {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.nav-links-cta .btn {
  min-width: 132px;
}

.app-label-mobile {
  display: none;
}

.nav-label-mobile {
  display: none;
}

.nav-label-desktop {
  display: inline;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.72rem;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.11);
}

.nav-links a.btn {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--control-radius);
  border: 1px solid var(--control-border);
  min-height: var(--control-height);
  padding: 0.78rem var(--control-pad-x);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
  border-color: var(--control-border);
  color: var(--text);
  background: var(--control-bg-soft);
}

.btn-primary {
  border-color: var(--control-border);
  color: var(--text);
  background: var(--control-bg-soft);
}

.btn-primary:hover {
  border-color: color-mix(in oklab, var(--control-border) 68%, #fff 32%);
  background: color-mix(in oklab, var(--control-bg-soft) 80%, #fff 20%);
}

.btn:focus-visible,
.bento-view-all:focus-visible,
.article-end-nav-actions .btn:focus-visible {
  outline: 2px solid var(--control-focus);
  outline-offset: 2px;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero.hero--with-media {
  position: relative;
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 9, 14, 0.34), rgba(5, 9, 14, 0.6)),
    radial-gradient(72% 56% at 30% 44%, rgba(255, 130, 56, 0.22), transparent 70%);
}

.hero-media-poster,
.hero-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media-poster {
  opacity: 0.45;
}

.hero-media-video {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: clamp(1.02rem, 2.1vw, 1.3rem);
  max-width: 760px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
  align-items: center;
}

.stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
}

.stat strong {
  display: block;
  font-size: 1.7rem;
}

.section {
  padding: 2.5rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.section h2 {
  font-size: var(--type-h2);
  margin: 0 0 0.8rem;
  line-height: var(--leading-tight);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(8px) saturate(112%);
  padding: 1.1rem;
  box-shadow: var(--panel-shadow);
}

.card h3 {
  margin-top: 0;
}

.card p,
.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.page-title {
  padding: 3rem 0 1rem;
}

.page-title + .section {
  padding-top: 1.7rem;
}

.page-title h1 {
  font-size: var(--type-h1);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.text-block {
  border: 1px solid var(--line-soft);
  background: var(--surface-air);
  backdrop-filter: blur(10px) saturate(112%);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.text-block h2,
.text-block h3 {
  margin-top: 0;
}

.text-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.text-block p:last-child,
.card p:last-child,
.cta-panel p:last-child {
  margin-bottom: 0;
}

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

.cta-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px) saturate(118%);
  border-radius: var(--radius);
  padding: 1.3rem;
  color: var(--text);
  box-shadow: var(--panel-shadow);
}

.cta-panel h2,
.cta-panel p {
  margin-top: 0;
}

.cta-panel .btn-ghost {
  border-color: var(--control-border);
  color: var(--text);
  background: var(--control-bg-soft);
}

.cta-panel .btn-ghost:hover {
  border-color: color-mix(in oklab, var(--control-border) 68%, #fff 32%);
  background: color-mix(in oklab, var(--control-bg-soft) 80%, #fff 20%);
}

.section-card {
  background: var(--surface-air);
  border-color: var(--line-soft);
}

.section-card--wide {
  max-width: min(920px, 100%);
}

.section-card--accent {
  background: var(--panel-bg);
}





.grid-3 .card {
  background: var(--panel-bg);
  border-color: var(--panel-border);
  box-shadow: var(--panel-shadow);
}

.site-footer {
  margin-top: 3.2rem;
  border-top: 1px solid var(--line-soft);
  padding: 1.35rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 0.9rem;
}

.footer-nav-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.footer-identity {
  margin: 0.45rem 0 0.2rem;
}

.footer-brand .footer-legal {
  margin-top: 0;
}

.footer-contact {
  margin-top: 0.3rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer-meta {
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright {
  margin: 0;
}

.site-footer h3 {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.52);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
}

.site-footer p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
  margin: 0.14rem 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0.28rem 0;
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  width: min(520px, calc(100% - 2rem));
  z-index: 90;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(10, 14, 18, 0.68);
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  padding: 0.6rem 0.7rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: color-mix(in oklab, var(--muted) 78%, #fff 22%);
  font-size: 0.84rem;
  line-height: 1.4;
}

.cookie-banner p a {
  color: var(--text);
}

.cookie-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.cookie-actions .btn {
  min-height: 44px;
}

.cookie-actions [data-cookie-dismiss] {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.reveal {
  opacity: 0;
  transform: translateY(15px) scale(0.99);
  transition: opacity 300ms ease, transform 300ms ease;
}

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

/* Markdown Rendering Styles */
.prose {
  font-size: 1.06rem;
  line-height: 1.72;
  max-width: min(74ch, 100%);
  margin-inline: auto;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: #fff;
}

.prose h1 {
  font-size: 2.2rem;
}

.prose h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
}

.prose h3 {
  font-size: clamp(1.2rem, 2.1vw, 1.45rem);
}

.prose p {
  margin-bottom: 1.2em;
  color: color-mix(in oklab, var(--text) 85%, transparent);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(255, 106, 26, 0.4);
  text-underline-offset: 4px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.prose a:hover {
  text-decoration-color: var(--brand);
  color: #fff;
}

.prose ul,
.prose ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.5em;
}

.prose strong,
.prose b {
  color: #fff;
  font-weight: 700;
}

.prose blockquote {
  border-left: 4px solid var(--brand);
  margin-left: 0;
  padding-left: 1.2em;
  font-style: italic;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Ethos Glowing Glass Cards */
.ethos-cards-section {
  padding: 4rem 0 2rem;
}

.ethos-cards-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ethos-cards-header h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0.5rem 0;
  letter-spacing: -0.02em;
}

.ethos-glass-grid {
  gap: 1.5rem;
}

.ethos-glass-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(12px) saturate(118%);
  padding: 1.35rem;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms ease, box-shadow 260ms ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: var(--panel-shadow);
}

.ethos-glass-card::before {
  display: none;
}

.ethos-glass-card .card-bg-glow {
  display: none;
}

.ethos-glass-card:hover,
.ethos-glass-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 26, 0.3);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.ethos-glass-card:hover .card-bg-glow,
.ethos-glass-card:focus-visible .card-bg-glow {
  display: none;
}

.ethos-glass-card .card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ethos-glass-card h3 {
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
  margin: 0 0 0.7rem;
  color: #fff;
  transition: color 260ms ease;
}

.ethos-glass-card .reveal-text {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.58;
  color: var(--muted);
  margin: 0;
  opacity: 0.92;
  transition: color 260ms ease;
}


.ethos-glass-card:hover h3,
.ethos-glass-card:focus-visible h3 {
  color: #fff;
}

.ethos-glass-card:hover .reveal-text,
.ethos-glass-card:focus-visible .reveal-text {
  opacity: 1;
  color: #fff;
  transform: none;
}

/* Featured Articles Bento Grid Component */
.bento-section {
  padding: 2.8rem 0 3.5rem;
  position: relative;
}

.bento-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 72%);
}

.bento-header {
  text-align: center;
}

.bento-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.bento-grid--home .bento-card {
  grid-column: span 4;
}

.bento-card {
  padding: 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(10px) saturate(115%);
  text-decoration: none;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease, box-shadow 300ms ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 190px;
}

.bento-card::before {
  display: none;
}

.bento-card:hover,
.bento-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 26, 0.3);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.bento-card:hover::before,
.bento-card:focus-visible::before {
  display: none;
}

.bento-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bento-card-content h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0.2rem 0 0.55rem;
  color: #fff;
  transition: color 300ms ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-card:hover .bento-card-content h3 {
  color: #fff;
}

.bento-card-content p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-meta {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.bento-view-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--control-height);
  padding: 0.8rem 1.2rem;
  border-radius: var(--control-radius);
  border: 1px solid rgba(255, 168, 120, 0.55);
  background: linear-gradient(180deg, #ff7b2f, #ff5f0e);
  backdrop-filter: blur(12px) saturate(130%);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease, box-shadow 300ms ease;
}

.bento-view-all:hover,
.bento-view-all:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 168, 120, 0.65);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  background: linear-gradient(180deg, #ff8a43, #ff6719);
}

.bento-view-all .arrow {
  color: #fff;
  font-size: 1.2rem;
  transition: transform 300ms ease;
}

.bento-view-all:hover .arrow {
  transform: translateX(6px);
}

.bento-view-all-wrap {
  margin-top: 1rem;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 0.2em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.article-back-link:hover {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.article-title {
  margin-top: 0.7rem;
  line-height: 1.12;
  max-width: 30ch;
}

.research-intro {
  max-width: 640px;
  margin-top: 0.7rem;
}

body[data-route="/research"] .grid-2 .card {
  display: flex;
  flex-direction: column;
}

.research-card-link {
  color: inherit;
  text-decoration: none;
}

body[data-route="/research"] .card h3 {
  line-height: 1.28;
  margin-bottom: 0.52rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-route="/research"] .card p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-route="/privacy"] .page-title,
body[data-route="/terms"] .page-title,
body[data-route^="/research/"] .page-title {
  padding-top: 2.6rem;
}

body[data-route="/privacy"] .page-title + .section,
body[data-route="/terms"] .page-title + .section,
body[data-route^="/research/"] .page-title + .section {
  padding-top: 1.35rem;
}

body[data-route="/privacy"] .text-block p,
body[data-route="/privacy"] .text-block li,
body[data-route="/terms"] .text-block p,
body[data-route="/terms"] .text-block li {
  max-width: 64ch;
}

body[data-route^="/research/"] .prose > * {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

body[data-route^="/research/"] .prose blockquote,
body[data-route^="/research/"] .prose ul,
body[data-route^="/research/"] .prose ol {
  max-width: 64ch;
}

main :target {
  scroll-margin-top: 92px;
}

.article-end-nav {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.article-end-nav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.95rem;
}

.article-end-nav-actions .btn {
  width: auto;
  min-width: 10.5rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(6px);
}

/* Specific Card Placements */
.bento-card--featured {
  border-color: rgba(255, 106, 26, 0.35);
}

.bento-card--wide {
  grid-column: span 8;
  min-height: 220px;
}

.bento-card--accent {
  border-color: var(--panel-border);
  background: var(--panel-bg);
}

.bento-card--featured .bento-card-content h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.52rem;
  letter-spacing: -0.02em;
  -webkit-line-clamp: 2;
}

.bento-card--featured .bento-card-content p {
  font-size: 0.93rem;
  -webkit-line-clamp: 3;
}

.bento-card--featured .bento-meta {
  color: rgba(255, 187, 139, 0.75);
}

@media (max-width: 767px) {
  .bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1.1rem;
  }

  .bento-grid--home .bento-card,
  .bento-card--wide {
    grid-column: auto;
  }

  .bento-card {
    min-height: 158px;
    padding: 0.92rem;
  }

  .bento-card-content h3,
  .bento-card--featured .bento-card-content h3 {
    font-size: 1.02rem;
    margin-bottom: 0.45rem;
    -webkit-line-clamp: 2;
  }

  .bento-card-content p,
  .bento-card--featured .bento-card-content p {
    font-size: 0.84rem;
    margin-bottom: 0.75rem;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 920px) {
  .container {
    width: min(1120px, calc(100% - 1.6rem));
  }

  .hero {
    padding: 4.2rem 0 2.6rem;
  }

  .page-title {
    padding: 2.4rem 0 0.9rem;
  }

  .page-title + .section {
    padding-top: 1.35rem;
  }

  .section {
    padding: 2.1rem 0;
  }

  .grid {
    gap: 0.92rem;
  }

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

  .bento-grid--home .bento-card {
    grid-column: span 3;
  }

  .bento-card--wide {
    grid-column: span 6;
  }

}

@media (max-width: 1023px) and (min-width: 761px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-header-height: 66px;
  }

  body {
    line-height: 1.55;
  }

  .container {
    width: min(1120px, calc(100% - 1.2rem));
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    min-height: var(--mobile-header-height);
  }

  .brand {
    letter-spacing: 0.04em;
    font-size: 0.95rem;
  }

  .brand-name {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-links-primary {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-links-cta {
    margin-left: 0.2rem;
  }

  .nav-links-primary a {
    font-size: 0.82rem;
    padding: 0.45rem 0.52rem;
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
  }

  .nav-links-primary a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.11);
  }

  .nav-links-cta .btn {
    min-height: 44px;
    min-width: 0;
    padding: 0.45rem 0.72rem;
    width: auto;
    font-size: 0.82rem;
  }

  .app-label-desktop {
    display: none;
  }

  .app-label-mobile {
    display: inline;
  }

  .nav-label-desktop {
    display: none;
  }

  .nav-label-mobile {
    display: inline;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    right: 0.6rem;
    left: 0.6rem;
    width: auto;
    border-radius: 12px;
    padding: 0.55rem 0.6rem;
    gap: 0.5rem;
  }

  .cookie-banner p {
    font-size: 0.8rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
    font-size: var(--text-sm);
  }

  .article-end-nav-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.62rem;
  }

  .stats {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    scrollbar-width: auto;
    margin-top: 1.8rem;
    gap: 0.8rem;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .stats::-webkit-scrollbar {
    display: none;
  }

  .stat {
    flex: none;
    scroll-snap-align: none;
    padding: 1.25rem;
  }

  .stat strong {
    font-size: 1.6rem;
  }

  .ethos-glass-card {
    padding: 1.5rem;
    min-height: 200px;
  }

  .ethos-glass-card .reveal-text {
    opacity: 0.85;
  }

  .hero {
    padding: 3.2rem 0 2rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 10vw, 2.4rem);
    line-height: 1.12;
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.52;
  }

  .hero-actions {
    margin-top: 1rem;
    gap: 0.6rem;
  }

  .page-title {
    padding: 2rem 0 0.75rem;
  }

  .page-title + .section {
    padding-top: 1.1rem;
  }

  .page-title h1 {
    font-size: clamp(1.72rem, 8.6vw, 2.5rem);
    line-height: 1.13;
  }

  .section {
    padding: 1.55rem 0;
  }

  .section h2 {
    font-size: clamp(1.3rem, 7vw, 1.75rem);
    line-height: 1.2;
    margin-bottom: 0.62rem;
  }

  .grid {
    gap: 0.74rem;
  }

  .site-footer {
    text-align: left;
    padding: 1.15rem 0 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .footer-nav-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .footer-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.55rem;
    margin-bottom: 0;
  }

  .site-footer h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
    font-size: 0.8rem;
  }
  
  .site-footer p {
    font-size: var(--text-sm);
    padding: 0;
  }

  .footer-links {
    display: block;
    width: auto;
    margin: 0;
    align-items: flex-start;
  }

  .footer-links li {
    padding: 0.1rem 0;
    margin: 0;
    width: auto;
    max-width: none;
  }

  .footer-links li:last-child {
    border-bottom: none;
  }

  .footer-links a {
    display: inline-block;
    width: auto;
    padding: 0.18rem 0;
  }

  .card {
    border-radius: 16px;
    padding: 0.96rem;
  }

  .text-block,
  .cta-panel,
  .ethos-glass-card,
  .bento-card,
  .bento-view-all {
    border-radius: 16px;
  }

  .card h3 {
    font-size: 1.02rem;
    line-height: 1.3;
    margin-bottom: 0.45rem;
  }

  .card p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  body[data-route="/privacy"] .text-block p,
  body[data-route="/privacy"] .text-block li,
  body[data-route="/terms"] .text-block p,
  body[data-route="/terms"] .text-block li,
  body[data-route^="/research/"] .prose > * {
    max-width: 100%;
  }

  .eyebrow {
    font-size: 0.67rem;
    letter-spacing: 0.11em;
    margin-bottom: 0.46rem;
  }

  .text-block,
  .cta-panel {
    border-radius: 18px;
    padding: 1.05rem;
  }

  .text-block p,
  .text-block li,
  .cta-panel p {
    font-size: 0.93rem;
    line-height: 1.52;
  }

  /* Enhanced mobile typography and spacing for long-form reading */
  .prose {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .prose h1 { font-size: 1.7rem; }
  .prose h2 { font-size: 1.45rem; }
  .prose h3 { font-size: 1.25rem; }

  .text-block ul {
    padding-left: 1rem;
  }


  @media (max-width: 480px) {
    .container {
      width: min(1120px, calc(100% - 0.9rem));
    }

    .hero {
      padding: 2.75rem 0 1.7rem;
    }

    .section {
      padding: 1.25rem 0;
    }

    .page-title {
      padding: 1.65rem 0 0.62rem;
    }

    .page-title + .section {
      padding-top: 0.9rem;
    }

    .page-title h1 {
      font-size: clamp(1.58rem, 8.8vw, 2rem);
    }

    .card,
    .text-block,
    .cta-panel {
      border-radius: 14px;
      padding: 0.9rem;
    }

    .ethos-glass-card {
      padding: 1.25rem;
      border-radius: 18px;
    }

    /* Give full article blocks more horizontal space by bleeding towards edges */
    .section-card.prose {
      padding-left: 0.65rem;
      padding-right: 0.65rem;
      border-radius: 8px;
      max-width: 100%;
    }

    .prose blockquote {
      padding: 0.8rem 1rem;
      font-size: 0.95rem;
    }

    .prose ul, .prose ol {
      padding-left: 1.1rem;
    }

    .btn {
      min-height: 44px;
      font-size: var(--text-sm);
    }

    .cookie-banner {
      left: 0.45rem;
      right: 0.45rem;
    }
  }

  @media (max-width: 390px) {
    :root {
      --mobile-header-height: 62px;
    }

    .container {
      width: min(1120px, calc(100% - 0.7rem));
    }

    .site-header-inner {
      min-height: 62px;
    }

    .brand {
      font-size: 0.88rem;
      gap: 0.45rem;
      min-width: 0;
      flex: 1 1 auto;
    }

    .brand span:last-child {
      max-width: 9.5rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .brand-mark {
      width: 30px;
      height: 30px;
      border-radius: 8px;
    }

    .nav-links {
      gap: 0.35rem;
    }

    .hero {
      padding: 2.45rem 0 1.45rem;
    }

    .hero h1 {
      font-size: clamp(1.46rem, 9.4vw, 1.8rem);
      line-height: 1.14;
    }

    .hero p {
      font-size: 0.92rem;
      line-height: 1.48;
    }

    .hero-actions {
      margin-top: 0.82rem;
      gap: 0.5rem;
    }

    .page-title {
      padding: 1.45rem 0 0.55rem;
    }

    .page-title h1 {
      font-size: clamp(1.4rem, 8.6vw, 1.72rem);
    }

    .section {
      padding: 1.05rem 0;
    }

    .section h2 {
      font-size: clamp(1.16rem, 6.8vw, 1.45rem);
      margin-bottom: 0.52rem;
    }

    .grid,
    .footer-grid {
      gap: 0.62rem;
    }

    .footer-nav-wrap {
      grid-template-columns: 1fr;
      gap: 0.45rem;
    }

    .stats {
      margin-top: 1.2rem;
      gap: 0.56rem;
    }

    .stat {
      padding: 0.74rem;
    }

    .stat strong {
      font-size: 1.3rem;
    }

    .card,
    .text-block,
    .cta-panel {
      border-radius: 12px;
      padding: 0.78rem;
    }

    .card h3 {
      font-size: 0.98rem;
      margin-bottom: 0.4rem;
    }

    .card p,
    .text-block p,
    .text-block li,
    .cta-panel p {
      font-size: 0.89rem;
      line-height: 1.46;
    }

    .eyebrow {
      font-size: 0.63rem;
      margin-bottom: 0.4rem;
    }

    .btn {
      min-height: 44px;
      font-size: var(--text-sm);
      padding: 0.64rem 0.76rem;
      border-radius: 11px;
    }

    .cookie-banner {
      left: 0.35rem;
      right: 0.35rem;
      padding: 0.48rem 0.52rem;
    }

    .cookie-banner p {
      font-size: 0.8rem;
    }

    .cookie-actions .btn {
      padding: 0.5rem 0.62rem;
      min-height: 44px;
    }
  }

  @media (max-width: 360px) {
    .container {
      width: min(1120px, calc(100% - 0.6rem));
    }

    .site-header-inner {
      gap: 0.45rem;
    }

    .brand {
      font-size: 0.84rem;
      gap: 0.4rem;
    }

    .brand span:last-child {
      max-width: 7.4rem;
      font-size: 0.82rem;
    }

    .brand-mark {
      width: 28px;
      height: 28px;
    }

    .nav-links-primary a {
      font-size: 0.78rem;
      padding: 0.42rem 0.46rem;
    }

    .hero h1 {
      font-size: clamp(1.34rem, 9.2vw, 1.66rem);
    }

    .hero p {
      font-size: 0.88rem;
      line-height: 1.44;
    }

    .stats {
      gap: 0.5rem;
    }

    .stat {
      flex-basis: 82%;
      padding: 0.68rem;
    }

    .card,
    .text-block,
    .cta-panel {
      padding: 0.72rem;
    }

    .card p,
    .text-block p,
    .text-block li,
    .cta-panel p {
      font-size: 0.86rem;
    }

    .bento-view-all {
      padding: 0.7rem 0.9rem;
      font-size: 0.82rem;
    }

    .article-end-nav-actions .btn {
      min-height: 44px;
      font-size: 0.8rem;
      min-width: 0;
    }
  }

  @media (max-width: 320px) {
    :root {
      --mobile-header-height: 58px;
    }

    .site-header-inner {
      min-height: 58px;
    }

    .brand span:last-child {
      max-width: 6rem;
      font-size: 0.78rem;
    }

    .brand-mark {
      width: 26px;
      height: 26px;
      border-radius: 7px;
    }

    .nav-links-primary a {
      font-size: 0.74rem;
      padding: 0.38rem 0.42rem;
    }

    .btn {
      min-height: 44px;
      font-size: 0.8rem;
      padding: 0.56rem 0.64rem;
    }

    .hero h1 {
      font-size: clamp(1.24rem, 8.8vw, 1.5rem);
    }

    .hero p {
      font-size: 0.85rem;
    }

    .card p,
    .text-block p,
    .text-block li,
    .cta-panel p {
      font-size: 0.84rem;
      line-height: 1.42;
    }
  }

}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .hero-media-video {
    display: none;
  }
}
