@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-latin.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f8f2;
  --ink: #233c2d;
  --muted: #616d5e;
  --green: #29543c;
  --lime: #d7ef79;
  --line: #dfe3d6;
  --scene: #e9efde;
  --panel: #eef1e5;
  --button-text: #f7f8f2;
  --shadow: #3243290c;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #18251d;
  --ink: #eef1e5;
  --muted: #a5b29f;
  --green: #d7ef79;
  --line: #354536;
  --scene: #2a3d2c;
  --panel: #223328;
  --button-text: #233c2d;
  --shadow: #0003;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s, color .35s;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  content: "";
  opacity: .027;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.65' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; }
::selection { color: #233c2d; background: var(--lime); }
.site-shell { max-width: 1440px; margin: 0 auto; padding: 0 74px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 20px; border-radius: 8px; background: var(--ink); color: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-symbol { width: 33px; height: 33px; fill: var(--green); }
.brand-symbol circle { fill: var(--paper); }
.brand > span { font-size: 35px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.brand-dot { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 23px; }
.maintenance-label { display: inline-flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; }
.status-dot { position: relative; display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; background: #7e9b53; border-radius: 50%; }
.maintenance-label .status-dot::before { content: ""; position: absolute; inset: -4px; border: 1px solid #7e9b5340; border-radius: 50%; animation: status-pulse 3s ease-out infinite; }
.header-divider { width: 1px; height: 22px; background: var(--line); }
.theme-toggle { height: 38px; width: 38px; border: 0; display: grid; place-items: center; background: transparent; border-radius: 50%; color: var(--ink); transition: background .2s, transform .2s; }
.theme-toggle:hover { background: var(--scene); transform: rotate(15deg); }
.theme-toggle svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
html[data-theme="dark"] .sun-icon { display: none; }
html[data-theme="dark"] .moon-icon { display: block; }

.hero { min-height: 570px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 35px; align-items: center; padding: 34px 0 32px; }
.hero-copy { padding: 2px 0 16px; position: relative; z-index: 2; animation: reveal-up .8s ease both; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: 1.45px; font-weight: 600; margin-bottom: 30px; white-space: nowrap; }
.eyebrow-line { width: 25px; height: 1px; background: var(--green); }
h1 { margin: 0; font-size: clamp(64px, 7.05vw, 100px); font-weight: 500; line-height: 1.04; letter-spacing: -.065em; }
.serif-word { display: inline-block; position: relative; margin-top: 4px; color: var(--green); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: 1.09em; letter-spacing: -.067em; }
.serif-word::after { content: ""; position: absolute; bottom: -6px; left: 5px; width: 97%; height: 9px; border-top: 2px solid var(--green); opacity: .4; border-radius: 50%; transform: rotate(-2deg); }
.headline-period { font-family: "DM Sans", Arial, sans-serif; font-style: normal; margin-left: 1px; }
.hero-description { margin: 32px 0 29px; color: var(--muted); font-size: 15px; line-height: 1.85; letter-spacing: -.12px; }
.hero-actions { display: flex; align-items: center; gap: 27px; }
.retry-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 17px 27px; border: 1px solid var(--green); background: var(--green); color: var(--button-text); border-radius: 7px; font-size: 13px; font-weight: 500; box-shadow: 0 4px 0 var(--shadow); transition: transform .2s, box-shadow .2s; }
.retry-button:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--shadow); }
.retry-button:active { transform: translateY(0); box-shadow: none; }
.retry-button svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.retry-button.is-loading svg { animation: spin .7s linear infinite; }
.break-link { display: inline-flex; align-items: center; gap: 7px; padding: 13px 0; color: var(--ink); font-size: 12px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.break-link:hover { border-color: var(--ink); }
.break-link svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.4; transition: transform .2s; }
.break-link:hover svg { transform: translate(2px, -2px); }
.return-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; margin: 24px 0 0; }
.tiny-spark { font-size: 16px; color: var(--green); }

.workshop { position: relative; width: 100%; max-width: 550px; justify-self: end; align-self: center; padding-top: 0; color: var(--ink); animation: reveal-up .9s .13s ease both; }
.workshop-heading { display: flex; align-items: center; gap: 7px; padding: 0 30px; font-size: 8px; letter-spacing: 1.7px; font-weight: 500; }
.workshop-heading .status-dot { width: 4px; height: 4px; flex-basis: 4px; }
.workshop-number { margin-left: auto; color: var(--muted); font-size: 8px; letter-spacing: 1px; }
.scene-wrap { position: relative; }
.workshop-art { display: block; width: calc(100% + 25px); max-width: none; margin-left: -15px; overflow: visible; }
.scene-backdrop { fill: var(--scene); transition: fill .35s; }
.background-503 { font-family: "DM Sans", Arial, sans-serif; }
.robot { transform-box: fill-box; transform-origin: center bottom; animation: robot-idle 5s ease-in-out infinite; }
.robot-head { transform-box: fill-box; transform-origin: center 90%; animation: head-tilt 8s ease-in-out infinite; }
.robot-eye { transform-box: fill-box; transform-origin: center; animation: eye-blink 6s infinite; }
.robot-eyes { transition: transform .18s ease-out; }
.robot-right-arm { transform-box: fill-box; transform-origin: 12% 85%; animation: wrench-turn 5s ease-in-out infinite; }
.antenna-light { animation: antenna-pulse 3s ease-in-out infinite; }
.floating-code { animation: float-code 6s ease-in-out infinite; }
.floating-bolt { animation: float-code 5s -2s ease-in-out infinite; }
.floating-spark { opacity: .7; }
.spark-one { animation: sparkle 4s ease-in-out infinite; transform-origin: 123px 167px; }
.spark-two { animation: sparkle 4s -1.5s ease-in-out infinite; transform-origin: 520px 299px; }
.spark-three { animation: sparkle 4s -3s ease-in-out infinite; transform-origin: 443px 73px; }
.robot-speech { position: absolute; top: 8%; left: 2%; color: var(--ink); border: 1px solid var(--line); background: var(--paper); padding: 11px 14px; border-radius: 13px 13px 1px 13px; font-size: 10px; transform: rotate(-6deg); white-space: nowrap; box-shadow: 0 5px 10px var(--shadow); transition: opacity .2s, transform .3s; }
.robot-speech span { display: inline-block; color: var(--green); margin-left: 6px; }
.robot-speech.is-speaking { transform: rotate(-3deg) translateY(-6px); }
.repair-sticker { position: absolute; right: 0; bottom: 16%; display: flex; align-items: center; gap: 7px; color: #244633; background: #d7ef79; padding: 11px 13px; font-size: 7px; letter-spacing: 1px; font-weight: 600; border: 1px solid #244633; border-radius: 3px; box-shadow: 3px 3px 0 #24463318; transform: rotate(-8deg); }
.repair-sticker svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scene-caption { display: flex; align-items: center; justify-content: center; gap: 9px; padding-right: 20px; margin-top: -15px; color: var(--muted); }
.scene-caption span:nth-child(2) { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 15px; transform: rotate(-2deg); }
.caption-line { height: 1px; width: 21px; background: var(--muted); opacity: .4; }
.scene-caption svg { width: 39px; height: 28px; stroke: var(--muted); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transform: translate(4px, -9px) rotate(-15deg); }
.workshop.is-energized .robot { animation: robot-hop .65s ease-in-out; }
.workshop.is-energized .antenna-light { fill: #ffffb4; }
.workshop.is-energized .robot-heart { fill: #8ab33d; }
.workshop.is-celebrating .robot { animation: robot-dance 1s ease-in-out 2; }
.workshop.is-celebrating .robot-right-arm { animation: robot-wave .5s ease-in-out 4; }
.workshop.is-celebrating .robot-eye { animation: none; height: 8px; y: 185px; }

.little-break { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 132px; padding: 29px 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; scroll-margin-top: 30px; animation: reveal-up .8s .25s ease both; transition: background-color .35s, border-color .35s; }
.break-intro { display: flex; align-items: center; gap: 22px; }
.break-icon { display: grid; place-items: center; flex: 0 0 56px; height: 56px; border: 1px solid var(--line); background: var(--paper); border-radius: 50%; transform: rotate(-9deg); }
.break-icon svg { width: 29px; height: 29px; stroke: var(--green); stroke-width: 1.5; stroke-linejoin: round; }
.micro-label { display: block; font-size: 8px; font-weight: 600; letter-spacing: 1.3px; color: var(--muted); }
.break-intro h2 { font-size: 17px; line-height: 1.45; letter-spacing: -.45px; margin: 6px 0 4px; font-weight: 500; }
.break-intro p { margin: 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.energy-controls { display: flex; align-items: center; gap: 27px; }
.energy-display .micro-label { margin-bottom: 9px; font-size: 8px; letter-spacing: 1.05px; }
.battery { position: relative; display: flex; gap: 4px; padding: 5px; width: 90px; height: 26px; border: 1px solid var(--green); border-radius: 4px; }
.battery::after { content: ""; width: 3px; height: 10px; position: absolute; right: -4px; top: 7px; border-radius: 0 2px 2px 0; background: var(--green); }
.battery-cell { flex: 1; border-radius: 1px; background: var(--line); transition: background .25s, box-shadow .25s; }
.battery-cell.is-charged { background: var(--green); }
.battery.is-full .battery-cell { background: var(--green); animation: battery-glow 1s ease-in-out 3; }
.energy-button { display: inline-flex; align-items: center; justify-content: center; gap: 19px; min-height: 44px; padding: 12px 19px; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 6px; font-size: 11px; transition: color .2s, background .2s, transform .2s; }
.energy-button svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; transition: transform .3s; }
.energy-button:hover { color: var(--paper); background: var(--ink); transform: translateY(-2px); }
.energy-button:hover svg { transform: rotate(90deg); }
.energy-button:active { transform: translateY(0); }
.energy-button:disabled { opacity: .7; cursor: default; }
.site-footer { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); }
.site-footer > span:first-child { font-size: 10px; }
.site-footer > span:nth-child(2) { font-size: 8px; letter-spacing: 1.3px; }
.site-footer > span:nth-child(2) span { color: var(--ink); margin-left: 7px; font-size: 14px; }
.footer-note { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; }
.footer-note .status-dot { width: 4px; height: 4px; flex-basis: 4px; }
.particles { position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }
.particle { position: absolute; width: 7px; height: 7px; border-radius: 2px; background: var(--green); will-change: transform, opacity; }
.particle.is-spark { width: 13px; height: 13px; background: var(--green); clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%); }
.noscript-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes status-pulse { 0%, 100% { transform: scale(.9); opacity: .5; } 50% { transform: scale(1.3); opacity: 1; } }
@keyframes robot-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes head-tilt { 0%, 25%, 60%, 100% { transform: rotate(0); } 35%, 50% { transform: rotate(-3deg); } }
@keyframes eye-blink { 0%, 40%, 44%, 73%, 77%, 100% { transform: scaleY(1); } 42%, 75% { transform: scaleY(.1); } }
@keyframes wrench-turn { 0%, 30%, 75%, 100% { transform: rotate(0); } 40%, 60% { transform: rotate(7deg); } 50% { transform: rotate(2deg); } }
@keyframes antenna-pulse { 0%, 100% { fill: #d7ef79; } 50% { fill: #efffaa; } }
@keyframes float-code { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes sparkle { 0%, 100% { opacity: .4; transform: scale(.9); } 50% { opacity: .85; transform: scale(1.1); } }
@keyframes robot-hop { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(3px) scale(1.02, .98); } 55% { transform: translateY(-17px) rotate(-3deg); } 80% { transform: translateY(0) rotate(2deg); } }
@keyframes robot-dance { 0%, 100% { transform: translateY(0) rotate(0); } 20%, 60% { transform: translateY(-13px) rotate(-5deg); } 40%, 80% { transform: translateY(-5px) rotate(5deg); } }
@keyframes robot-wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-16deg); } }
@keyframes battery-glow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1500px) {
  .site-shell { padding-top: max(0px, calc((100svh - 964px) / 3)); }
  .hero { min-height: 675px; }
}
@media (max-width: 1199px) {
  .site-shell { padding: 0 46px; }
  .site-header { height: 96px; }
  .hero { gap: 20px; min-height: 586px; }
  h1 { font-size: clamp(64px, 7.2vw, 88px); }
  .eyebrow { font-size: 7px; letter-spacing: 1.05px; gap: 8px; }
  .hero-description { font-size: 13px; }
  .wide-break { display: none; }
  .little-break { padding: 27px; }
  .energy-controls { gap: 22px; }
  .break-intro { gap: 17px; }
  .break-intro h2 { font-size: 16px; }
}
@media (max-width: 900px) {
  .site-shell { padding: 0 30px; }
  .site-header { height: 86px; }
  .brand > span { font-size: 31px; }
  .brand-symbol { width: 29px; height: 29px; }
  .header-actions { gap: 15px; }
  .maintenance-label { font-size: 8px; letter-spacing: 1.15px; }
  .hero { min-height: 555px; gap: 10px; }
  h1 { font-size: clamp(59px, 7.5vw, 72px); }
  .eyebrow { white-space: normal; line-height: 1.7; max-width: 260px; margin-bottom: 22px; }
  .eyebrow-line { flex: 0 0 18px; }
  .hero-description { margin-top: 29px; font-size: 12px; }
  .desktop-break { display: none; }
  .hero-actions { gap: 19px; }
  .retry-button { padding: 15px 21px; font-size: 12px; }
  .break-link { font-size: 11px; }
  .return-note { font-size: 9px; max-width: 240px; line-height: 1.6; }
  .workshop-heading { padding: 0 20px; font-size: 7px; letter-spacing: 1.1px; }
  .workshop-number { font-size: 6px; }
  .robot-speech { font-size: 8px; padding: 9px 11px; top: 4%; left: 0; }
  .repair-sticker { font-size: 5px; padding: 8px 9px; gap: 4px; bottom: 14%; right: -5px; }
  .scene-caption { padding-right: 0; margin-top: -3px; }
  .scene-caption span:nth-child(2) { font-size: 13px; }
  .scene-caption svg { width: 28px; }
  .little-break { padding: 24px; gap: 20px; }
  .break-icon { display: none; }
  .break-intro h2 { font-size: 15px; }
  .break-intro p { font-size: 10px; max-width: 230px; }
  .energy-controls { gap: 20px; }
  .energy-button { padding: 12px 14px; gap: 12px; white-space: nowrap; }
  .site-footer > span:nth-child(2) { font-size: 6px; letter-spacing: .7px; }
  .footer-note { font-size: 8px; }
}
@media (max-width: 680px) {
  .site-shell { padding: 0 24px; }
  .site-header { height: 84px; }
  .header-actions { gap: 9px; }
  .maintenance-label { font-size: 7px; letter-spacing: .6px; gap: 7px; }
  .header-divider { margin-left: 3px; height: 18px; }
  .theme-toggle { width: 32px; height: 36px; }
  .theme-toggle svg { width: 17px; height: 17px; }
  .brand { gap: 8px; }
  .brand > span { font-size: 30px; }
  .brand-symbol { width: 27px; height: 27px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 35px; }
  .hero-copy { padding: 0; }
  .eyebrow { max-width: none; font-size: 7px; letter-spacing: 1.2px; margin-bottom: 22px; }
  .eyebrow-line { flex-basis: 20px; }
  h1 { font-size: clamp(62px, 12.5vw, 80px); letter-spacing: -.065em; }
  .serif-word { font-size: 1.13em; }
  .hero-description { font-size: 13px; line-height: 1.85; max-width: 345px; margin: 28px 0 24px; }
  .desktop-break { display: inline; }
  .hero-actions { gap: 26px; }
  .retry-button { padding: 16px 24px; font-size: 12px; }
  .break-link { font-size: 11px; }
  .return-note { max-width: none; margin-top: 21px; font-size: 9px; }
  .workshop { width: 100%; max-width: 470px; justify-self: center; }
  .workshop-heading { padding: 0 18px; font-size: 7px; margin-bottom: 7px; }
  .workshop-number { font-size: 7px; }
  .workshop-art { width: calc(100% + 10px); margin-left: -6px; }
  .robot-speech { top: 7%; left: 1%; font-size: 9px; padding: 10px 12px; }
  .repair-sticker { right: 1px; bottom: 15%; font-size: 6px; padding: 9px 10px; }
  .scene-caption { margin-top: -10px; padding-right: 10px; }
  .scene-caption span:nth-child(2) { font-size: 14px; }
  .little-break { align-items: flex-start; flex-direction: column; padding: 24px; gap: 23px; border-radius: 11px; }
  .break-intro { gap: 15px; }
  .break-icon { display: grid; flex-basis: 43px; height: 43px; }
  .break-icon svg { width: 25px; height: 25px; }
  .break-intro h2 { font-size: 15px; margin-top: 5px; }
  .break-intro p { font-size: 10px; max-width: none; }
  .micro-label { font-size: 6px; }
  .energy-controls { width: 100%; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 19px; }
  .energy-display { padding-left: 2px; }
  .energy-button { padding: 13px 17px; gap: 18px; font-size: 11px; }
  .site-footer { min-height: 100px; flex-wrap: wrap; justify-content: space-between; gap: 15px; padding: 26px 0; }
  .site-footer > span:nth-child(2) { order: 3; width: 100%; text-align: center; font-size: 6px; letter-spacing: 1px; }
  .footer-note { font-size: 9px; }
}
@media (max-width: 374px) {
  .site-shell { padding: 0 18px; }
  .maintenance-label { font-size: 6px; letter-spacing: .4px; }
  .header-actions { gap: 6px; }
  .brand > span { font-size: 27px; }
  .brand-symbol { width: 24px; height: 24px; }
  h1 { font-size: 59px; }
  .eyebrow { font-size: 6px; letter-spacing: .8px; }
  .hero-actions { gap: 20px; }
  .retry-button { padding: 15px 21px; }
  .little-break { padding: 21px 18px; }
  .break-intro { gap: 11px; }
  .break-intro h2 { font-size: 13px; }
  .break-intro p { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
