@font-face {
  font-family: Roboto;
  src: url("fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url("fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #eef3e6;
  --panel: #fff;
  --ink: #1d2916;
  --muted: #56664a;
  --line: #d3ddc4;
  --skin: #35512a;
  --accent: #4b7a22;
  --flesh: #dbe88f;
  --studio: #121811;
  font-family: Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #c8780b; outline-offset: 3px; }

.wrap {
  width: min(100%, 1220px);
  margin-inline: auto;
  padding: 26px 20px 44px;
  display: grid;
  gap: 28px;
}

.head, section, .box { display: grid; gap: 14px; }
.head { gap: 8px; }
.eyebrow, .stat span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.07; color: var(--skin); text-wrap: balance; }
h2 { font-size: clamp(21px, 3vw, 28px); line-height: 1.2; color: var(--skin); }
h3 { font-size: 17px; }
.lead { font-size: 18px; max-width: 62ch; }
.actions, .timeline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions { margin-top: 8px; }
.btn {
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 10px 18px;
  background: transparent;
  color: #3b6419;
  font: 700 16px Roboto, system-ui, sans-serif;
  cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; }
.sec-lead, .parts p, .foot { color: var(--muted); }

.frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--studio);
}
.preview { position: relative; }
.preview video { width: 100%; height: 100%; }
.playmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(46px, 6vw, 80px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fffffff0;
  box-shadow: 0 8px 24px #0005;
  cursor: pointer;
}
.playmark::after {
  content: "";
  width: 43%;
  aspect-ratio: 1;
  transform: translateX(10%);
  background: var(--accent);
  clip-path: polygon(12% 0, 100% 50%, 12% 100%);
}
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.shot { display: grid; gap: 6px; align-content: start; font-size: 14px; line-height: 1.35; }
.shot img { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; }
.shot time, output { color: var(--muted); font-variant-numeric: tabular-nums; }

.sim, .cut { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.sim { align-items: start; }
.cut { align-items: center; }
.box, .fact { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 16px; }
.sim-frame { position: relative; border-radius: 12px; }
.sim-frame :is(video, img), #part-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
#sim-video { visibility: hidden; }
#sim-frame.ready #sim-video { visibility: visible; }
.part {
  position: absolute;
  transform: translate(calc(-100% - 9px), -50%);
  background: #fff;
  color: var(--ink);
  border-radius: 5px;
  padding: 2px 5px;
  font-size: clamp(9px, 1.2vw, 13px);
  font-weight: 700;
}
.part::after {
  content: "";
  width: 9px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 100%;
  top: calc(50% - 1px);
}
.part:is(:nth-child(2), :nth-child(4)) { transform: translate(9px, -50%); }
.part:is(:nth-child(2), :nth-child(4))::after { left: auto; right: 100%; }
.timeline input { flex: 1 1 125px; min-width: 0; height: 28px; }
input { accent-color: var(--accent); }
output { min-width: 6ch; text-align: right; }
.scns { display: grid; gap: 8px; }
.scn {
  display: grid;
  gap: 2px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--bg);
  color: inherit;
  padding: 9px 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.scn span { font-size: 14px; color: var(--muted); }
.scn[aria-pressed="true"] { border-color: var(--accent); background: var(--flesh); }
.toggle { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.toggle input { width: 20px; height: 20px; margin: 0; }
.stats, .stages { display: grid; gap: 8px; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: grid; gap: 2px; border-radius: 12px; background: var(--bg); padding: 8px; }
.stat strong { font-size: clamp(17px, 2vw, 22px); }
.note { border-radius: 12px; background: #eef6d8; padding: 12px 14px; }
.stages {
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.stages li {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 8px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  line-height: 1.25;
}
.stages li.done { border-style: solid; border-color: var(--accent); }
.stages li.now { background: var(--flesh); }
.stages span { font-size: 14px; color: var(--muted); }
.chart-wrap { overflow-x: auto; }
#chart { display: block; width: 100%; min-width: 375px; }
.parts { margin: 0; display: grid; gap: 10px; padding-left: 24px; }
.parts li::marker { color: var(--accent); font-weight: 700; }
.parts p, .fact p { font-size: 15px; line-height: 1.4; }
.facts, .soon { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact h3 { margin-bottom: 6px; color: var(--skin); font-size: 23px; line-height: 1.1; }
.facts .fact { display: grid; align-content: start; gap: 8px; }
.fact .big { margin: 0; font-size: 26px; }
.fact svg { display: block; width: 100%; height: auto; }
.soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.soon span, .foot { font-size: 14px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 880px) {
  .sim, .cut { grid-template-columns: minmax(0, 1fr); }
  .board, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .facts, .soon { grid-template-columns: minmax(0, 1fr); }
}

.btn.ar-link {
  display: inline-block;
  max-width: 100%;
  background: var(--skin);
  border-color: var(--skin);
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.btn.ar-link:is(:hover, :focus-visible) { background: var(--ink); border-color: var(--ink); }
.ar-promo { justify-items: center; }
