@charset "UTF-8";

/* Bundled under SIL OFL 1.1; no external font requests are required. */
@font-face {
  font-family: "Noto Sans";
  src: url("assets/fonts/NotoSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/fonts/NotoSans-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

/* Noto Sans supports Kazakh letters in both regular and italic text. */
:root {
  --paper: #fffdf5;
  --paper-deep: #e5f5ff;
  --white: #ffffff;
  --ink: #203c46;
  --muted: #50636b;
  --green: #087968;
  --green-dark: #075b50;
  --green-light: #d9f2e6;
  --gold: #ffd65a;
  --gold-pale: #fff0b3;
  --coral: #b34832;
  --line: #c7d9d8;
  --sky: #cdeeff;
  --peach: #ffe2d5;
  --lilac: #ece5ff;
  --shadow: 0 12px 30px rgb(32 60 70 / 10%);
  --sans: "Noto Sans", "Segoe UI", Arial, sans-serif;
  --page-width: 1200px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .5; cursor: default; }
button:disabled:hover { transform: none; box-shadow: none; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.22; text-wrap: balance; }
h1, h2 { font-weight: 850; letter-spacing: -.04em; }
h3 { font-weight: 700; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
section, [id] { scroll-margin-top: 12px; }
[hidden] { display: none !important; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px;
  border-radius: 8px; background: var(--white); color: var(--green-dark);
}
.header-inner, .section-wrap, .footer-inner {
  width: min(calc(100% - 36px), var(--page-width)); margin-inline: auto;
}

/* Navigation stays usable on narrow screens and when JavaScript is disabled. */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgb(255 253 245 / 97%);
  backdrop-filter: blur(12px); border-bottom: 2px solid var(--ink);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
/* A shared vector mark stays crisp and consistent across devices. */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--green-dark); white-space: nowrap; }
.brand-mark { display: block; flex: 0 0 44px; width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.brand-name > span { color: var(--green); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.brand-name > strong { font-size: 17px; font-weight: 800; letter-spacing: -.025em; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 13px; background: var(--gold); box-shadow: 2px 2px 0 var(--ink); }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--green-dark); transition: transform .2s, opacity .2s; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 12px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="location"] { color: var(--green-dark); background: var(--gold-pale); }
.js .menu-toggle { display: block; }
.js .site-nav {
  position: absolute; top: 100%; left: 0; right: 0; display: none;
  max-height: calc(100dvh - 72px); overflow-y: auto; padding: 10px 24px 18px;
  border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow);
}
.js .site-nav.is-open { display: flex; flex-direction: column; gap: 0; }
.js .site-nav a { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* Hero and shared typography. */
.hero { position: relative; isolation: isolate; display: grid; gap: 30px; align-items: center; padding-top: 34px; padding-bottom: 80px; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(#b7d2c7 1px, transparent 1px); background-size: 22px 22px; opacity: .34; mask-image: linear-gradient(90deg, transparent 25%, #000 80%); pointer-events: none; }
.hero > *, .practice-grid > *, .model-layout > *, .theory-row > * { min-width: 0; }
.eyebrow { margin-bottom: 16px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .11em; line-height: 1.6; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border: 2px solid var(--ink); border-radius: 12px; background: var(--gold); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); }
.eyebrow-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--green); }
h1 { margin-bottom: 24px; font-size: clamp(34px, 6.4vw, 54px); line-height: 1.15; overflow-wrap: break-word; }
h1 em, .result-heading h2 em { font-weight: inherit; font-style: normal; color: var(--green); }
h1 em { background: linear-gradient(transparent 76%, var(--gold) 76%, var(--gold) 94%, transparent 94%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-intro { max-width: 560px; margin-bottom: 26px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 50px; padding: 12px 18px; border: 2px solid var(--ink); border-radius: 14px;
  font-size: 14px; font-weight: 700; line-height: 1.4;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.button:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink); }
.button-primary { background: var(--green); color: white; box-shadow: 3px 3px 0 var(--ink); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { background: var(--gold); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.button-secondary:hover { background: #ffe485; }
.hero-actions .button { flex: 1 1 100%; }
.hero-facts { display: grid; grid-column: 1 / -1; gap: 14px; margin-top: 0; }
.fact { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.fact-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--sky); color: var(--ink); font-size: 23px; }
.fact-icon-gold { background: var(--gold-pale); color: #83541c; }
.fact p { margin: 0; }
.fact small { display: block; color: var(--muted); font-size: 12px; }
.fact strong { display: block; font-size: 13px; line-height: 1.6; }
.hero-art { position: relative; isolation: isolate; padding: 28px 16px; }
.hero-art::before { content: ""; position: absolute; z-index: -1; inset: 4% 0; border-radius: 40% 55% 38% 48%; background: var(--sky); transform: rotate(-7deg); }
.hero-doodles { position: absolute; z-index: 2; inset: 0; background: url("assets/icons/school-doodles.svg") center / 100% 100% no-repeat; pointer-events: none; }
.hero-visual { position: relative; padding: 10px 10px 0; border: 2px solid var(--ink); border-radius: 19px; background: var(--white); box-shadow: 6px 7px 0 var(--green); transform: rotate(2deg); }
.hero-visual::before { content: ""; position: absolute; z-index: 1; top: -13px; left: 36%; width: 30%; height: 26px; background: rgb(255 214 90 / 90%); transform: rotate(-6deg); border-inline: 3px dotted rgb(255 255 255 / 65%); }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; border-radius: 10px; }
.hero-image-note { display: flex; align-items: center; gap: 10px; padding: 17px 8px 10px; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.5; }
.note-mark { color: var(--coral); font-size: 30px; }
.hero-image-index { display: block; padding: 0 8px 15px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-align: center; }
.scroll-cue { position: absolute; left: 0; bottom: 24px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.scroll-cue span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; }

.section-block { padding-block: 64px; }
.section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 30px; }
.section-heading .eyebrow { display: inline-block; margin-bottom: 14px; padding: 5px 11px; border-radius: 7px; background: var(--gold-pale); color: var(--green-dark); }
.section-heading h2, .motivation-copy h2 { margin-bottom: 0; font-size: clamp(29px, 4vw, 44px); }
.section-heading > p { max-width: 360px; margin-bottom: 0; color: var(--muted); font-size: 15px; }
.motivation { position: relative; display: grid; gap: 24px; padding: 30px 24px; border: 2px solid var(--ink); border-radius: 24px; background: var(--gold-pale); box-shadow: 5px 5px 0 var(--gold); }
.motivation-label { display: flex; align-items: center; gap: 14px; color: var(--green); font-size: 13px; font-weight: 700; }
.section-number { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border: 2px solid var(--ink); border-radius: 15px; background: var(--white); color: var(--ink); font-size: 23px; transform: rotate(-6deg); }
.motivation-copy h2 { margin-bottom: 20px; }
.motivation-copy p { margin-bottom: 0; color: var(--muted); }
.motivation-stamp { display: none; }

/* Research cards and alternating theory rows. */
.research-grid { display: grid; gap: 20px; }
.research-card { position: relative; padding: 26px; border: 2px solid var(--ink); border-radius: 22px; background: var(--green-light); box-shadow: 4px 4px 0 var(--ink); transition: transform .2s, box-shadow .2s; }
.research-card:nth-child(6n + 2) { background: var(--gold-pale); }
.research-card:nth-child(6n + 3) { background: var(--sky); }
.research-card:nth-child(6n + 4) { background: var(--peach); }
.research-card:nth-child(6n + 5) { background: var(--lilac); }
.research-card:nth-child(6n + 6) { background: #e9f3c9; }
.research-card:hover, .future-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-index { position: absolute; top: 24px; left: 26px; display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--white); color: var(--ink); font-size: 18px; font-weight: 850; transform: rotate(-5deg); }
.research-card h3 { margin: 62px 0 12px; font-size: 23px; }
.research-card p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.theory { background: var(--paper-deep); border-block: 2px solid var(--ink); }
.theory-list { display: grid; gap: 20px; }
.theory-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; padding: 22px 16px; border: 2px solid var(--ink); border-radius: 22px; background: var(--white); box-shadow: 4px 4px 0 #aed8e9; }
.theory-number { grid-column: 1; grid-row: 1; align-self: start; display: grid; place-items: center; width: 28px; height: 34px; border-radius: 8px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; }
.theory-row img, .theory-row > .image-fallback { grid-column: 2; grid-row: 1; width: 100%; height: auto; border-radius: 8px; }
.theory-row > div:not(.image-fallback) { grid-column: 2; grid-row: 2; }
.theory-row .eyebrow { margin-bottom: 8px; }
.theory-row h3 { margin-bottom: 14px; font-size: clamp(23px, 2.3vw, 30px); }
.theory-row p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.theory-arrow { display: none; }

/* Images retain their complete diagrams, with captions outside the picture. */
.practice-grid { display: grid; gap: 30px; align-items: center; }
.practice-photo, .practice-detail, .algorithm-image, .survey-layout figure, .model-image { overflow: hidden; border: 2px solid var(--ink); border-radius: 20px; background: var(--white); box-shadow: 5px 5px 0 var(--gold); }
.practice-photo img, .practice-detail img, .algorithm-image img, .survey-layout img, .model-image img { width: 100%; height: auto; object-fit: contain; }
figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--white); color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.steps-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps-list li { display: flex; align-items: center; gap: 14px; min-height: 64px; border-bottom: 1px dashed #9ab7be; }
.steps-list li span { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; }
.steps-list li:nth-child(3n + 2) span { background: var(--sky); }
.steps-list li:nth-child(3n + 3) span { background: var(--peach); }
.steps-list li p { margin: 0; font-size: 15px; font-weight: 600; }
.practice-detail { max-width: 800px; margin: 30px auto 0; }

/* The experiment uses three distinct states, also expressed in text. */
.experiment { background: var(--sky); color: var(--ink); border-block: 2px solid var(--ink); }
.experiment .eyebrow { color: var(--green-dark); }
.experiment .section-heading > p { color: var(--muted); }
.simulation { max-width: 900px; margin-inline: auto; padding: 22px 18px; border: 2px solid var(--ink); border-radius: 26px; background: var(--white); box-shadow: 7px 7px 0 #61b7cf; }
.sim-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 2px dashed var(--line); }
.live-tag { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 8px; background: var(--green-light); font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--green-dark); }
.live-tag span, .chat-header small span { flex: 0 0 7px; height: 7px; border-radius: 50%; background: #b4dc98; }
.live-tag span { background: var(--green); }
.sim-id { max-width: 135px; text-align: right; color: var(--muted); font-size: 9px; }
.sim-content { display: grid; gap: 24px; padding-top: 26px; }
.bird-display { position: relative; display: grid; place-items: center; width: 140px; height: 140px; margin: auto; border: 2px dashed #75b9af; border-radius: 50%; background: #f1faf3; }
.bird-emoji { display: block; width: 88%; height: 88%; background: url("assets/icons/bird-sticker.svg") center / contain no-repeat; font-size: 0; }
.bird-seed { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 22px; }
.sim-reading { min-width: 0; }
.sim-reading .eyebrow { margin-bottom: 10px; }
.sim-status { font-size: 25px; font-weight: 700; }
.level-text { margin: 8px 0 18px; color: var(--muted); font-size: 15px; }
.level-text strong { color: var(--green-dark); }
.meter { height: 20px; overflow: hidden; border: 2px solid var(--ink); border-radius: 20px; background: #e8f0ee; }
.meter-fill { display: block; width: 70%; height: 100%; border-radius: inherit; background: var(--green); transition: width .35s, background .3s; }
.meter-scale { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: 11px; }
.sim-warning { min-height: 48px; margin: 14px 0; color: var(--green-dark); font-size: 14px; }
.simulation.is-low .meter-fill { background: var(--gold); }
.simulation.is-low .sim-status, .simulation.is-low .sim-warning { color: #8a5b00; }
.simulation.is-empty .meter { background: #ffe2d5; }
.simulation.is-empty .meter-fill { background: #b34832; }
.simulation.is-empty .sim-status, .simulation.is-empty .sim-warning { color: #b34832; }
.simulation.is-empty .bird-display { border-color: #b34832; background: var(--peach); }
.sim-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-controls .button { min-height: 46px; padding: 11px 13px; font-size: 13px; }
.sim-controls .button-primary { background: var(--green); color: white; }
.sim-controls .button-primary:hover { background: var(--green-dark); }
.sim-controls .button-secondary { background: var(--gold-pale); color: var(--ink); }
.sim-controls .button-secondary:hover { background: var(--gold); }
.simulation-note { max-width: 760px; margin: 24px auto 0; text-align: center; color: var(--muted); font-size: 13px; }
.ai-chain { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 26px; color: var(--ink); }
.ai-chain span { padding: 8px 13px; border: 1px solid #75a5b8; border-radius: 10px; background: rgb(255 255 255 / 65%); font-size: 13px; font-weight: 600; }
.ai-chain i { color: var(--green); font-style: normal; transform: rotate(90deg); }

/* Accessible HTML flowchart below its original image. */
.algorithm-layout { display: grid; gap: 38px; }
.algorithm-image { width: 100%; }
.flowchart { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 650px; margin-inline: auto; text-align: center; }
.flow-node, .flow-decision { display: grid; place-items: center; min-height: 46px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 13px; background: var(--white); font-size: 13px; font-weight: 700; }
.flowchart > .flow-node, .flow-decision { min-width: 185px; }
.flowchart > .flow-terminal { min-width: 135px; border-color: var(--green); border-radius: 30px; background: var(--green); color: white; }
.flow-down { display: block; min-height: 30px; color: var(--green); font-size: 22px; line-height: 30px; }
.flow-decision { background: var(--gold); border-color: var(--ink); }
.flow-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 520px; }
.flow-branch { display: flex; flex-direction: column; align-items: center; }
.branch-label { margin-top: 10px; color: var(--green); font-size: 12px; font-weight: 800; }
.flow-yes, .flow-no { width: 100%; min-height: 74px; }
.flow-yes { background: var(--green-light); }
.flow-no { background: var(--peach); }
.flow-branch .flow-down:last-child { font-size: 12px; }

/* Survey, project model, and conclusions. */
.survey { background: var(--peach); border-block: 2px solid var(--ink); }
.survey-layout figure { box-shadow: 5px 5px 0 #ffae8e; }
.survey-count { display: flex; align-items: baseline; gap: 10px; padding: 8px 18px; border: 2px solid var(--ink); border-radius: 16px; background: var(--white); color: var(--green); font-size: 38px; font-weight: 800; }
.survey-count small { color: var(--muted); font-size: 14px; font-weight: 500; }
.survey-layout { display: grid; gap: 30px; align-items: center; }
.quote-mark { display: block; height: 50px; color: var(--coral); font-size: 78px; line-height: 1; }
.survey-copy h3 { margin-bottom: 18px; font-size: 28px; }
.survey-copy > p { color: var(--muted); }
.survey-stat { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 2px dashed #b78e7d; }
.survey-stat strong { color: var(--green); font-size: 42px; }
.survey-stat span { color: var(--muted); font-size: 14px; }
.model-layout { display: grid; gap: 30px; align-items: center; }
.model-copy > p { color: var(--muted); }
.model-parts { margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.model-parts li { display: flex; align-items: center; gap: 15px; min-height: 53px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.model-parts li span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 10px; background: var(--green-light); color: var(--green-dark); font-size: 12px; font-weight: 800; }
.future { padding-top: 0; }
.future-grid { display: grid; gap: 18px; }
.future-card { position: relative; padding: 28px; border: 2px solid var(--ink); border-radius: 22px; background: var(--green-light); box-shadow: 4px 4px 0 var(--ink); transition: transform .2s, box-shadow .2s; }
.future-card h2 { max-width: 380px; margin-bottom: 18px; font-size: 30px; }
.future-card > p:not(.eyebrow) { margin-bottom: 22px; color: var(--muted); font-size: 15px; }
.future-card-accent { background: var(--lilac); }
.future-icon { position: absolute; top: 18px; right: 24px; color: #9c6d20; font-size: 28px; }
.future-card-accent .future-icon { color: var(--green); }
.future-index { display: block; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.result { position: relative; background: var(--gold); color: var(--ink); border-top: 2px solid var(--ink); }
.result > .section-wrap { position: relative; }
.result-heading { max-width: 850px; }
.result-heading .eyebrow { color: var(--green-dark); }
.result-heading h2 { margin-bottom: 24px; font-size: clamp(34px, 5.2vw, 62px); }
.result-heading h2 em { color: var(--green-dark); }
.result-heading > p:last-child { max-width: 710px; margin-bottom: 0; color: #344d50; }
.counter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 36px; }
.counter-item { padding: 18px 10px; border: 2px solid var(--ink); border-radius: 18px; background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.counter-item:nth-child(2) { background: var(--sky); }
.counter-item:nth-child(3) { background: var(--green-light); }
.counter-item > strong { font-size: clamp(40px, 6vw, 76px); line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; }
.counter-denom { color: var(--muted); font-size: 17px; white-space: nowrap; }
.counter-item p { margin: 12px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: break-word; }
.back-to-top { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; margin-top: 30px; padding-block: 8px; border-bottom: 2px solid var(--ink); font-size: 14px; font-weight: 700; }
.back-to-top span { color: var(--green-dark); font-size: 22px; }
.site-footer { background: var(--ink); color: #dfefe8; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 28px; padding-right: 48px; }
.footer-inner .brand { color: white; }
.footer-inner .brand-name > span { color: #d2dfcc; }
.footer-inner p, .footer-inner > span { margin: 0; font-size: 12px; }

/* Fixed controls and an offline, keyboard-accessible project helper. */
.to-top, .robot-launch { position: fixed; right: 18px; z-index: 25; display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); }
.to-top { bottom: 18px; background: var(--gold); font-size: 24px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, visibility .2s, transform .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.robot-launch { bottom: 80px; z-index: 31; background: var(--gold); font-size: 25px; transition: transform .2s; }
.robot-launch:hover { transform: translateY(-3px); }
.chat-widget {
  position: fixed; z-index: 30; right: 12px; bottom: 140px;
  display: flex; flex-direction: column; width: min(390px, calc(100% - 24px));
  height: min(560px, calc(100dvh - 156px)); min-height: 0; overflow: hidden;
  border: 2px solid var(--ink); border-radius: 20px; background: var(--white);
  box-shadow: 0 18px 60px rgb(20 39 27 / 25%); opacity: 0; visibility: hidden;
  transform: translateY(12px); transition: opacity .2s, transform .2s;
}
.chat-widget.is-open { opacity: 1; visibility: visible; transform: none; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; background: var(--green); color: white; }
.chat-header > div { display: flex; align-items: center; gap: 9px; }
.chat-robot { font-size: 25px; }
.chat-header strong { display: block; font-size: 14px; }
.chat-header small { display: flex; align-items: center; gap: 6px; color: #e2eddc; font-size: 10px; }
.chat-close { flex: 0 0 44px; height: 44px; border: 0; border-radius: 8px; background: rgb(255 255 255 / 12%); color: white; font-size: 27px; }
.chat-messages { flex: 1; min-height: 60px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overscroll-behavior: contain; padding: 16px; background: #edf7ff; }
.chat-message { max-width: 92%; padding: 12px; border-radius: 12px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.bot-message { align-self: flex-start; border: 1px solid var(--line); background: white; }
.user-message { align-self: flex-end; background: var(--green); color: white; }
.quick-questions { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 12px 0; }
.quick-questions button { min-height: 36px; padding: 7px 10px; border: 1px solid #b4c4af; border-radius: 7px; background: transparent; color: var(--green-dark); font-size: 12px; line-height: 1.4; }
.quick-questions button:hover { background: var(--green-light); }
.chat-form { display: flex; gap: 8px; padding: 12px; }
.chat-form input { min-width: 0; width: 100%; flex: 1; min-height: 44px; padding: 10px; border: 1px solid #9eb295; border-radius: 8px; color: var(--ink); background: white; font-size: 16px; }
.chat-form button { min-height: 44px; padding: 8px 11px; border: 0; border-radius: 8px; background: var(--gold); font-size: 12px; font-weight: 800; }

/* Only failed assets receive a neutral placeholder; originals remain untouched. */
.image-fallback { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 180px; padding: 24px; border: 1px dashed #a3aaa3; background: #e6e8e4; color: #485248; text-align: center; }
.image-fallback strong { font-size: 16px; }
.image-fallback span { font-size: 14px; }

/* Content remains visible without JS or when IntersectionObserver is unavailable. */
.reveal { opacity: 1; }
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 540px) {
  .header-inner, .section-wrap, .footer-inner { width: min(calc(100% - 56px), var(--page-width)); }
  .hero-actions .button { flex: 0 1 auto; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .simulation { padding: 28px; }
  .sim-content { grid-template-columns: .6fr 1.4fr; align-items: center; gap: 26px; }
  .ai-chain { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
  .ai-chain i { transform: none; }
  .counter-item p { font-size: 14px; }
}

@media (min-width: 800px) {
  .section-block { padding-block: 86px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 28px 36px; padding-top: 52px; padding-bottom: 86px; }
  .hero h1 { font-size: clamp(35px, 3.7vw, 54px); }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { padding: 40px 24px; }
  .hero-image-note { padding-top: 20px; font-size: 17px; }
  .hero-image-index { padding-bottom: 22px; }
  .motivation { grid-template-columns: .6fr 1.4fr; gap: 6%; padding: 42px; }
  .motivation-label { align-self: start; padding-top: 8px; }
  .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 38px; }
  .section-heading > p { max-width: 290px; }
  .theory-row { grid-template-columns: 28px minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; padding: 28px; }
  .theory-row > div:not(.image-fallback) { grid-column: 3; grid-row: 1; }
  .theory-row:nth-child(even) { grid-template-columns: 28px minmax(0, 1.1fr) minmax(0, .9fr); }
  .theory-row:nth-child(even) img, .theory-row:nth-child(even) > .image-fallback { grid-column: 3; }
  .theory-row:nth-child(even) > div:not(.image-fallback) { grid-column: 2; }
  .practice-grid { grid-template-columns: 1.1fr .9fr; gap: 36px; }
  .practice-grid .steps-list { grid-template-columns: 1fr; }
  .practice-detail { margin-top: 38px; }
  .simulation { padding: 28px 38px 38px; }
  .sim-content { gap: 40px; }
  .bird-display { width: 190px; height: 190px; }
  .sim-status { font-size: 30px; }
  .survey-layout { grid-template-columns: 1.1fr .9fr; gap: 50px; }
  .model-layout { grid-template-columns: .8fr 1.2fr; gap: 50px; }
  .future { padding-top: 0; }
  .future-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .future-card { padding: 34px; }
  .counter-row { gap: 24px; }
  .counter-item { padding: 26px; }
  .chat-widget { right: 24px; }
  .robot-launch, .to-top { right: 24px; }
}

@media (min-width: 1080px) {
  .header-inner { flex-wrap: nowrap; gap: 22px; min-height: 82px; }
  .brand { font-size: 15px; }
  .js .menu-toggle { display: none; }
  .site-nav, .js .site-nav, .js .site-nav.is-open { position: static; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 5px; padding: 0; border: 0; box-shadow: none; overflow: visible; background: transparent; }
  .site-nav a, .js .site-nav a { padding: 6px 10px; border: 0; border-radius: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
  .hero { column-gap: 44px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-height: 560px) {
  .chat-widget { top: 12px; bottom: 12px; height: auto; right: 78px; width: min(390px, calc(100% - 90px)); }
  .chat-header { padding: 8px 12px; }
  .quick-questions { max-height: 95px; overflow-y: auto; }
}

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