:root {
  --paper: #f7f5ef;
  --surface: #fffdfa;
  --sky: #dceefa;
  --sky-strong: #4f9dcc;
  --green: #2f6f4f;
  --green-dark: #22563c;
  --sun: #e9943a;
  --ink: #26312f;
  --muted: #63706c;
  --line: #dce2dc;
  --shadow: 0 14px 38px rgba(38, 49, 47, .09);
  --radius: 18px;
  --container: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 58px 0; }
.section--tint { background: rgba(220, 238, 250, .48); border-block: 1px solid rgba(79, 157, 204, .14); }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(3.25rem, 7vw, 6rem); }
h1 span, .brand span { color: var(--sun); }
h2 { font-size: clamp(1.85rem, 3.2vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(247, 245, 239, .88); backdrop-filter: blur(16px); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 18px rgba(38, 49, 47, .05); }
.nav-wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; font-size: 1.35rem; font-weight: 900; letter-spacing: -.04em; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { position: relative; color: #47534f; text-decoration: none; font-size: .93rem; font-weight: 700; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -5px; left: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; border: 0; padding: 8px; background: transparent; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.menu-toggle__icon { display: grid; gap: 4px; }
.menu-toggle__icon i { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }

.hero { padding: 42px 0 0; background: radial-gradient(circle at 12% 20%, rgba(233, 148, 58, .12), transparent 30%), linear-gradient(180deg, #fbfaf6, var(--paper)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr); gap: clamp(34px, 6vw, 84px); align-items: center; }
.hero__content { padding: 20px 0 28px; }
.hero__lead { max-width: 650px; margin-top: 14px; color: #495652; font-size: clamp(1.15rem, 2.1vw, 1.45rem); line-height: 1.45; }
.hero__motto { display: inline-block; margin-top: 17px; padding-left: 15px; border-left: 3px solid var(--sun); font-size: 1.03rem; font-weight: 800; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 24px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.button:hover, .button:focus-visible, .text-link:hover, .text-link:focus-visible { transform: translateY(-2px); }
.button--primary { background: var(--green); color: #fff; box-shadow: 0 7px 20px rgba(47, 111, 79, .2); }
.button--primary:hover, .button--primary:focus-visible { background: var(--green-dark); }
.button--secondary { border-color: #aebbb5; background: rgba(255, 255, 255, .6); }
.button--secondary:hover, .button--secondary:focus-visible { border-color: var(--green); background: #fff; }
.text-link { padding-inline: 8px; color: var(--green-dark); }
.hero__portrait { justify-self: end; width: min(100%, 390px); margin: 0; padding: 9px; border: 1px solid rgba(79, 157, 204, .28); border-radius: 22px; background: rgba(255, 255, 255, .75); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero__portrait img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; border-radius: 15px; }
.panorama { position: relative; overflow: hidden; height: clamp(180px, 25vw, 304px); margin: 26px 0 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--sky); box-shadow: var(--shadow); }
.panorama::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(22, 42, 36, .63)); }
.panorama img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.panorama figcaption { position: absolute; z-index: 1; right: 22px; bottom: 16px; left: 22px; color: #fff; font-size: .94rem; font-weight: 750; }

.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(30px, 7vw, 100px); align-items: start; }
.about-copy { display: grid; gap: 13px; max-width: 720px; color: var(--muted); }
.lead-copy { color: var(--ink); font-size: 1.15rem; font-weight: 650; }
.projects-section { position: relative; overflow: hidden; border-block: 1px solid rgba(47, 111, 79, .12); background: linear-gradient(135deg, rgba(220, 238, 250, .55), rgba(255, 253, 250, .92) 48%, rgba(233, 148, 58, .08)); }
.projects-section::before { content: ""; position: absolute; width: 260px; height: 260px; right: -100px; top: -120px; border-radius: 50%; background: rgba(79, 157, 204, .1); pointer-events: none; }
.project-heading { max-width: 850px; }
.project-kicker { margin-bottom: 8px; color: var(--sun); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.project-intro { margin-top: 16px; color: #495652; font-size: 1.08rem; }
.project-capabilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.project-card { min-width: 0; padding: 20px; border: 1px solid rgba(47, 111, 79, .16); border-radius: 14px; background: rgba(255, 253, 250, .92); box-shadow: 0 8px 22px rgba(38, 49, 47, .05); }
.project-card > span { display: inline-flex; min-width: 36px; min-height: 30px; align-items: center; justify-content: center; margin-bottom: 16px; padding: 3px 8px; border-radius: 8px; background: var(--sky); color: var(--green-dark); font-size: .8rem; font-weight: 900; }
.project-card h3 { font-size: 1.05rem; }
.project-card p { margin-top: 9px; color: var(--muted); font-size: .9rem; }
.project-progress { margin-top: 18px; padding: 22px; border-left: 4px solid var(--sun); border-radius: 0 14px 14px 0; background: rgba(255, 253, 250, .75); }
.project-progress h3 { margin-bottom: 14px; }
.project-progress ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: progress; }
.project-progress li { counter-increment: progress; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .82rem; font-weight: 750; }
.project-progress li::before { content: counter(progress) ". "; color: var(--sun); }
.project-progress p { margin-top: 15px; color: var(--muted); }
.project-progress strong { color: var(--green-dark); }
.project-actions { margin-top: 22px; }
.section-heading { max-width: 700px; }
.section-heading > p:not(.eyebrow) { margin-top: 10px; color: var(--muted); }
.section-heading--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 25px; }
.section-heading--row > p { max-width: 360px; text-align: right; }

.topic-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.topic-card { min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid rgba(47, 111, 79, .14); border-radius: 13px; background: rgba(255, 253, 250, .9); transition: transform .2s, border-color .2s, box-shadow .2s; }
.topic-card:hover { transform: translateY(-3px); border-color: rgba(47, 111, 79, .35); box-shadow: 0 10px 24px rgba(38, 49, 47, .07); }
.topic-card > span { color: var(--sun); font-size: 1.3rem; font-weight: 900; }
.topic-card h3 { font-size: 1rem; }

.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.story-card { position: relative; overflow: hidden; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 28px rgba(38, 49, 47, .06); }
.story-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--green), #79a758, var(--sun)); }
.story-card--sea::before { background: linear-gradient(90deg, var(--sky-strong), #7cc5d3, var(--sun)); }
.story-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.story-number { color: var(--green); font-size: 1.5rem; font-weight: 900; }
.story-tag { padding: 5px 9px; border-radius: 999px; background: var(--sky); color: #3e6577; font-size: .76rem; font-weight: 800; }
.story-card h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
.story-card > p { margin-top: 11px; color: var(--muted); }
.story-card blockquote { margin: 17px 0; padding: 13px 15px; border-left: 3px solid var(--sun); background: #fbf4e8; color: #49514e; font-size: .94rem; }
.story-links { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.story-links a { color: var(--green-dark); font-size: .88rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.story-links a:hover, .story-links a:focus-visible { color: var(--sun); }

.platforms-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platform-grid a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 75px; padding: 15px 17px; border: 1px solid rgba(79, 157, 204, .25); border-radius: 12px; background: var(--surface); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.platform-grid a:hover, .platform-grid a:focus-visible { transform: translateY(-2px); border-color: var(--sky-strong); box-shadow: 0 9px 20px rgba(38, 49, 47, .07); }
.platform-grid strong { font-size: 1rem; }
.platform-grid span { color: var(--muted); font-size: .78rem; text-align: right; }

.final-cta { padding-block: 50px; }
.final-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 29px 32px; border-radius: var(--radius); background: var(--green-dark); color: #fff; box-shadow: var(--shadow); }
.final-cta .eyebrow { color: #badfc7; }
.final-cta h2 { max-width: 720px; font-size: clamp(1.55rem, 3vw, 2.5rem); }
.final-cta .button-row { flex: 0 0 auto; margin-top: 0; }
.final-cta .button--primary { background: var(--sun); color: #2d2419; }
.final-cta .button--secondary { border-color: rgba(255, 255, 255, .5); background: transparent; color: #fff; }

.site-footer { padding: 30px 0; border-top: 1px solid var(--line); background: #efede6; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; }
.brand--footer { display: inline-block; }
.footer-inner > div p { margin-top: 2px; color: var(--muted); font-size: .82rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.footer-inner nav a { color: var(--green-dark); font-size: .82rem; font-weight: 800; }
.copyright { color: var(--muted); font-size: .78rem; }

:focus-visible { outline: 3px solid rgba(233, 148, 58, .65); outline-offset: 3px; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .project-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platforms-layout { grid-template-columns: 1fr; }
}

@media (max-height: 820px) and (min-width: 761px) {
  .hero { padding-top: 26px; }
  .hero h1 { font-size: clamp(3.25rem, 6vw, 5rem); }
  .hero__content { padding-block: 12px 20px; }
  .hero__portrait { width: min(100%, 330px); }
  .panorama { height: 210px; margin-top: 18px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 38px 0; }
  .nav-wrap { min-height: 62px; }
  .menu-toggle { display: flex; align-items: center; gap: 10px; }
  .menu-toggle__label { font-size: .82rem; }
  .main-nav { position: absolute; top: calc(100% + 1px); right: 14px; left: 14px; display: grid; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-7px); transition: opacity .2s, visibility .2s, transform .2s; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 10px 12px; border-radius: 8px; }
  .main-nav a:hover, .main-nav a:focus-visible { background: var(--sky); }
  .main-nav a::after { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding-top: 25px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 170px; gap: 20px; }
  .hero__content { padding: 8px 0 18px; }
  h1 { font-size: clamp(3rem, 11vw, 4.8rem); }
  .hero__lead { font-size: 1.05rem; }
  .hero__portrait { border-radius: 16px; }
  .hero__portrait img { border-radius: 11px; }
  .panorama { margin-top: 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-heading--row { display: block; margin-bottom: 20px; }
  .section-heading--row > p { margin-top: 8px; text-align: left; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-card { min-height: 105px; }
  .story-grid { grid-template-columns: 1fr; }
  .project-progress ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-cta__inner { align-items: flex-start; flex-direction: column; padding: 25px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; gap: 16px; text-align: center; }
}

@media (max-width: 520px) {
  html { scroll-padding-top: 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 106px; gap: 12px; align-items: start; }
  .hero__content { display: contents; }
  .hero__content.reveal { opacity: 1; transform: none; }
  .hero__content .eyebrow { grid-column: 1; align-self: end; margin-top: 10px; }
  .hero h1 { grid-column: 1; font-size: clamp(2.4rem, 12vw, 2.9rem); }
  .hero__portrait { grid-column: 2; grid-row: 1 / span 2; padding: 5px; border-radius: 13px; }
  .hero__portrait img { border-radius: 9px; }
  .hero__lead, .hero__motto, .hero .button-row { grid-column: 1 / -1; }
  .hero__lead { margin-top: 8px; }
  .hero__motto { margin-top: 10px; }
  .hero .button-row { margin-top: 16px; }
  .button { flex: 1 1 auto; padding-inline: 13px; }
  .panorama { height: 150px; border-radius: 14px 14px 0 0; }
  .panorama figcaption { right: 14px; bottom: 10px; left: 14px; font-size: .76rem; }
  .topic-grid { grid-template-columns: 1fr; gap: 9px; }
  .project-capabilities { grid-template-columns: 1fr; gap: 10px; }
  .project-card { padding: 17px; }
  .project-card > span { margin-bottom: 10px; }
  .project-progress { padding: 18px 15px; }
  .project-progress ol { grid-template-columns: 1fr; }
  .project-actions .button, .project-actions .text-link { width: 100%; }
  .topic-card { min-height: 0; flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; }
  .topic-card h3 { flex: 1; }
  .story-card { padding: 21px 18px; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-grid a { min-height: 68px; }
  .final-cta { padding-block: 34px; }
  .final-cta__inner { padding: 22px 18px; }
  .final-cta .button-row { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Tatkin UI, September 2026. Scoped to the banner, header and stories. */
.site-header .brand { color: #283e63; }
.site-header .brand span { color: #9b542b; }
.site-header .main-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.hero.hero--banner { padding: 26px 0 0; background: linear-gradient(180deg, #edf5f7 0, #f7f5ef 88%); }
.hero__banner { margin: 0; overflow: hidden; border-radius: 22px; background: #e5eff2; box-shadow: 0 12px 34px #283e6310; }
.hero__banner img { display: block; width: 100%; height: auto; }
.hero__welcome { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: 32px 0 28px; border-bottom: 1px solid #dbded8; }
.hero--banner .eyebrow { color: #805334; margin-bottom: 10px; }
.hero--banner h1 { color: #283e63; font-size: clamp(1.65rem, 2.8vw, 2.55rem); line-height: 1.14; letter-spacing: -.04em; }
.hero__intro { margin-top: 14px; max-width: 480px; color: #5b6667; }
.hero__follow { justify-self: end; max-width: 470px; }
.hero__stories-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 14px 20px; border-radius: 12px; color: #fff; background: #283e63; text-decoration: none; font-weight: 750; transition: background .2s, transform .2s; }
.hero__stories-link:hover { background: #354f79; transform: translateY(-2px); }
.hero--banner .button-row { gap: 8px; margin-top: 12px; }
.hero--banner .button, .hero--banner .text-link { min-height: 44px; padding: 9px 12px; border: 1px solid #d6dcd7; background: #fffdfa; color: #344653; box-shadow: none; font-size: .82rem; }
.hero--banner .button:hover, .hero--banner .text-link:hover { background: #eaf0f2; border-color: #8296aa; }
.hero--banner :focus-visible, .site-header :focus-visible, #stories :focus-visible { outline: 3px solid #285f94; outline-offset: 4px; }
#stories { background: radial-gradient(ellipse at 0 80%, #eaf0e6 0, transparent 50%), radial-gradient(ellipse at 100% 20%, #e4eff3 0, transparent 55%), #f7f5ef; padding-block: clamp(40px, 6vw, 76px); }
#stories .section-heading--row { margin-bottom: 32px; gap: 40px; }
#stories .eyebrow { color: #805334; }
#stories h2 { max-width: 690px; color: #283e63; font-size: clamp(1.85rem, 3.3vw, 2.8rem); letter-spacing: -.04em; line-height: 1.12; }
#stories .section-heading--row > p { max-width: 245px; color: #5b6667; line-height: 1.6; }
#stories .story-grid { gap: 24px; }
#stories .story-card { --story-accent: #416350; --story-wash: #edf2e8; display: flex; flex-direction: column; min-width: 0; padding: 30px; border: 1px solid #dce1d9; border-radius: 22px; background: #fffefa; box-shadow: 0 8px 22px #26312f06; transition: transform .22s, box-shadow .22s, border-color .22s; }
#stories .story-card--sea { --story-accent: #365d78; --story-wash: #eaf2f6; }
#stories .story-card::before { display: none; }
#stories .story-card__top { gap: 16px; margin: -30px -30px 27px; padding: 22px 30px; background: linear-gradient(110deg, var(--story-wash), #fffefa); border-bottom: 1px solid #e4e7df; }
#stories .story-number { font-size: 2.4rem; line-height: 1; letter-spacing: -.06em; color: var(--story-accent); font-weight: 500; font-family: Georgia, serif; }
#stories .story-tag { max-width: 80%; padding: 7px 12px; background: #fffefa; border: 1px solid #dbe2da; color: var(--story-accent); font-size: .78rem; line-height: 1.45; }
#stories .story-card h3 { max-width: 460px; color: #283e63; font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: -.035em; line-height: 1.22; overflow-wrap: anywhere; }
#stories .story-card > p { margin-top: 14px; color: #5b6667; line-height: 1.7; overflow-wrap: anywhere; }
#stories .story-card blockquote { margin: 24px 0; padding: 18px 20px; border: 0; border-left: 3px solid #c78e53; border-radius: 0 12px 12px 0; background: #f8f3e9; color: #50564e; font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
#stories .story-links { margin-top: auto; padding-top: 22px; gap: 10px; border-color: #e4e7df; }
#stories .story-links a { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; max-width: 100%; padding: 11px 14px; border: 1px solid #d7dfdf; border-radius: 10px; background: #f0f4f6; color: #2c4d68; font-size: .84rem; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; transition: background .2s, border-color .2s, transform .2s; }
#stories .story-links a[data-platform="vk"], #stories .story-links a[data-platform="youtube"] { color: #fff; background: #283e63; border-color: #283e63; }
#stories .story-links a[data-platform="map"] { color: #53624d; background: #f4f5ef; border-color: #dde2d5; }
#stories .story-links a span { flex-shrink: 0; }
#stories .story-links a:hover { background: #e0e9ed; border-color: #7a92a3; transform: translateY(-2px); color: #263e56; }
#stories .story-card:focus-within { border-color: #829bb0; box-shadow: 0 12px 32px #283e6312; }
/* Fallback remains readable even when JavaScript is disabled or fails. */
#stories .reveal { opacity: 1; transform: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #stories .story-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px #283e6310; border-color: #bdcbbf; }
}
@media (max-width: 760px) {
  .hero.hero--banner { padding-top: 14px; }
  .hero__banner { border-radius: 14px; }
  .hero__welcome { grid-template-columns: 1fr; gap: 22px; padding: 24px 4px 28px; }
  .hero__follow { justify-self: stretch; max-width: none; }
  .hero--banner h1 { font-size: clamp(1.65rem, 5.8vw, 2.25rem); }
  .hero--banner .button-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
  .hero--banner .button, .hero--banner .text-link { width: 100%; }
  #stories .section-heading--row { margin-bottom: 24px; }
  #stories .section-heading--row > p { max-width: 100%; margin-top: 14px; }
  #stories .story-grid { grid-template-columns: 1fr; gap: 20px; }
  #stories .story-card { padding: 22px; border-radius: 18px; }
  #stories .story-card__top { margin: -22px -22px 22px; padding: 20px 22px; }
  #stories .story-card blockquote { padding: 15px 16px; margin-block: 20px; }
  #stories .story-links a { flex: 1 1 155px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__stories-link:hover, #stories .story-links a:hover { transform: none; }
}


/* Content Hub rich digest. Base digest and HTML fallback remain independent. */
#stories {background:radial-gradient(ellipse at 10% 0,#f7dfbf66,transparent 50%),#faf7f0;}
#stories .story-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;}
#stories .digest-rich {display:flex;padding:0;overflow:hidden;background:#fffdf8;border:1px solid #e8dfd1;border-radius:24px;box-shadow:0 8px 26px #523c1e08;}
#stories .digest-cover {display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#eee6d9;}
#stories .digest-body {padding:28px;display:flex;flex:1;flex-direction:column;min-width:0;}
#stories .digest-meta {display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-bottom:17px;color:#76664f;font-size:.78rem;}
#stories .digest-tag {padding:6px 10px;border-radius:6px;background:#f3e8d7;color:#735126;font-weight:650;}
#stories .digest-rich h3 {max-width:none;font-size:clamp(1.35rem,2.15vw,1.9rem);color:#263f3c;line-height:1.25;}
#stories .digest-excerpt {margin:16px 0 22px;color:#5e6259;line-height:1.7;}
#stories .digest-primary {display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:10px;border:0;}
#stories .digest-primary a {min-height:44px;background:#fff9ec;border-color:#decfb8;color:#5b4a2c;}
#stories .digest-primary a[data-platform="vk"] {background:#315d53;border-color:#315d53;color:white;}
#stories .digest-primary a[data-platform="youtube"] {background:#fff6e7;border-color:#d8c3a0;color:#62471c;}
#stories .digest-primary a:hover {background:#dfebdf;color:#223e34;border-color:#557363;}
#stories .digest-secondary {display:flex;flex-wrap:wrap;gap:18px;margin-top:14px;}
#stories .digest-secondary a {display:inline-flex;align-items:center;min-height:44px;font-size:.84rem;color:#51665c;text-underline-offset:4px;}
#stories .digest-rich--featured {grid-column:1/-1;display:grid;grid-template-columns:1.15fr 1fr;background:#fffaf0;border-color:#dfcfb4;}
#stories .digest-rich--featured .digest-cover {align-self:center;}
#stories .digest-rich--featured .digest-body {padding:32px;}
#stories .digest-rich--featured h3 {font-size:clamp(1.6rem,2.7vw,2.35rem);}
#stories .digest-rich--no-cover {background:linear-gradient(135deg,#f4f0e4,#fffdf8);}
#stories .digest-rich--featured.digest-rich--no-cover {display:flex;}
.ecosystem-links {display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;margin-top:20px;}
.ecosystem-links a {display:inline-flex;align-items:center;min-height:44px;color:#315d53;text-underline-offset:5px;}
.ecosystem-links a:focus-visible {outline:3px solid #315d53;outline-offset:4px;}
@media(max-width:760px) {
 #stories .story-grid {grid-template-columns:1fr;gap:22px;}
 #stories .digest-rich--featured {display:flex;}
 #stories .digest-rich .digest-body {padding:22px;}
 #stories .digest-rich h3 {font-size:1.45rem;}
 #stories .digest-primary a {flex:1 1 120px;}
}
