:root {
  --ink: #15201f;
  --paper: #f4f1e9;
  --paper-light: #fbfaf6;
  --line: #c9c6bc;
  --muted: #69716d;
  --orange: #ff5c35;
  --yellow: #f5c843;
  --blue: #8eb9bd;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.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; }

.site-header { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 4vw; border-bottom: 1px solid var(--line); background: rgba(244,241,233,.93); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 13px; font: 700 15px/1 "Space Grotesk", sans-serif; letter-spacing: .035em; text-decoration: none; }
.brand strong { color: var(--orange); letter-spacing: .09em; }
.brand-mark { width: 40px; height: 38px; display: block; position: relative; overflow: hidden; box-sizing: border-box; border: 3px solid var(--ink); border-radius: 16px 16px 7px 7px; background: linear-gradient(#6ed8ed 0 30%,#b92f3c 31% 100%); box-shadow: inset 0 0 0 2px #d89c3d; filter: drop-shadow(3px 3px 0 rgba(21,32,31,.18)); transition: transform .25s ease, filter .25s ease; }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-2deg); filter: drop-shadow(4px 5px 0 rgba(21,32,31,.25)); }
.brand-mark::before { content: ""; position: absolute; z-index: 2; width: 17px; height: 17px; left: 8px; top: 13px; border: 3px solid var(--ink); border-radius: 50%; background: #48dced; box-shadow: inset 0 0 0 3px #087f9f, 0 0 0 2px #d89c3d; }
.brand-mark::after { content: ""; position: absolute; width: 7px; height: 3px; left: 5px; top: 6px; border: 2px solid var(--ink); border-radius: 4px 1px 4px 1px; background: #ff6746; box-shadow: 20px 0 0 #ff6746, 20px 0 0 2px var(--ink); }
.brand-mark span { position: absolute; z-index: 3; width: 7px; height: 7px; left: 13px; top: 18px; border-radius: 50%; background: #b9fbff; box-shadow: 0 0 6px #9af8ff; }
.brand-mark span::before, .brand-mark span::after { content: ""; position: absolute; width: 11px; height: 3px; top: 10px; background: #d89c3d; border: 1px solid var(--ink); }
.brand-mark span::before { right: 6px; transform: rotate(28deg); }.brand-mark span::after { left: 6px; transform: rotate(-28deg); }
.main-nav { display: flex; align-items: center; gap: 38px; }
.main-nav a { font-size: 14px; font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: var(--orange); }
.account-actions { display: flex; justify-content: flex-end; gap: 8px; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: #293532; }
.button-ghost { background: transparent; }
.button-accent { color: white; background: var(--orange); }
.button-accent:hover { background: #e94621; }
.button-light { background: var(--paper-light); color: var(--ink); }
.menu-button { display: none; background: none; border: 0; padding: 8px; }
.language-picker{position:fixed;right:18px;bottom:18px;z-index:40;display:flex;padding:4px;border:1px solid var(--line);background:rgba(251,250,246,.95);box-shadow:0 8px 24px rgba(21,32,31,.14);backdrop-filter:blur(10px)}
.language-picker button{min-width:44px;padding:8px 10px;border:0;color:var(--muted);background:transparent;font-size:11px;font-weight:700;cursor:pointer}.language-picker button.active{color:white;background:var(--ink)}
.menu-button span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px; background: var(--ink); }

.hero { min-height: 690px; display: grid; grid-template-columns: 1.05fr .95fr; border-bottom: 1px solid var(--line); }
.hero-copy { padding: clamp(70px, 9vw, 135px) 5vw 65px 8vw; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 27px; color: var(--muted); font: 700 11px/1 "Space Grotesk", sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: 27px; height: 2px; background: var(--orange); }
h1, h2, h3, blockquote { font-family: "Space Grotesk", sans-serif; }
h1 { margin: 0; max-width: 700px; font-size: clamp(56px, 6.3vw, 102px); line-height: .92; letter-spacing: -.065em; }
h1 em, blockquote em { color: var(--orange); font-style: normal; }
.hero-intro { max-width: 560px; margin: 36px 0 30px; color: #4f5955; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; text-decoration: none; }
.play-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 8px; }
.hero-stats { display: flex; gap: clamp(25px, 4vw, 58px); margin: 70px 0 0; }
.hero-stats div { padding-right: clamp(20px, 3vw, 48px); border-right: 1px solid var(--line); }
.hero-stats div:last-child { border: 0; }
.hero-stats dt { font: 600 23px/1 "Space Grotesk", sans-serif; }
.hero-stats dd { margin: 8px 0 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.hero-visual { position: relative; overflow: hidden; min-height: 590px; background: var(--blue); border-left: 1px solid var(--line); }
.visual-grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(21,32,31,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(21,32,31,.28) 1px, transparent 1px); background-size: 70px 70px; }
.visual-label { position: absolute; z-index: 2; padding: 7px 10px; color: white; background: var(--ink); font: 600 10px/1 "Space Grotesk"; letter-spacing: .12em; }
.label-one { top: 9%; left: 8%; transform: rotate(-3deg); }
.label-two { right: 8%; bottom: 10%; transform: rotate(3deg); background: var(--orange); }
.device { position: absolute; z-index: 3; width: min(55%, 310px); height: 390px; top: 50%; left: 50%; transform: translate(-48%, -50%) rotate(-5deg); border: 4px solid var(--ink); border-radius: 34px; background: #dedbd1; box-shadow: inset -18px -18px 0 rgba(21,32,31,.08), 18px 22px 0 rgba(21,32,31,.18); }
.device-top { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 20px; border-bottom: 3px solid var(--ink); }
.device-top span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 1px solid var(--ink); }
.device-top span:nth-child(2) { background: var(--yellow); }
.device-top span:nth-child(3) { background: var(--blue); }
.device-screen { width: 77%; height: 196px; margin: 32px auto 25px; padding: 22px; color: #d9ffdc; background: #172322; border: 3px solid var(--ink); border-radius: 8px; box-shadow: inset 0 0 30px rgba(126,255,163,.12); }
.screen-line { width: 45%; border-top: 2px solid #83a78b; }
.screen-reading { margin: 18px 0 8px; font: 500 55px/1 "Space Grotesk"; }
.screen-reading span { font-size: 18px; }
.screen-bars { display: flex; align-items: end; gap: 7px; height: 45px; }
.screen-bars i { width: 9px; height: 18px; background: #76da8e; }
.screen-bars i:nth-child(2) { height: 29px; }.screen-bars i:nth-child(3) { height: 23px; }.screen-bars i:nth-child(4) { height: 40px; }.screen-bars i:nth-child(5) { height: 34px; }
.device-controls { display: flex; justify-content: center; gap: 24px; }
.device-controls i { width: 28px; height: 28px; border: 3px solid var(--ink); border-radius: 50%; background: var(--orange); }
.device-controls i:nth-child(2) { background: var(--yellow); }.device-controls i:nth-child(3) { background: var(--paper-light); }
.device-shadow { position: absolute; left: 25%; right: 14%; bottom: 11%; height: 50px; border-radius: 50%; background: rgba(21,32,31,.18); filter: blur(5px); transform: rotate(-5deg); }
.orbit { position: absolute; z-index: 1; border: 2px dashed rgba(21,32,31,.55); border-radius: 50%; }
.orbit-one { width: 560px; height: 220px; top: 34%; left: 4%; transform: rotate(16deg); }
.orbit-two { width: 420px; height: 530px; top: 8%; left: 20%; transform: rotate(29deg); }
.sketch-note { position: absolute; left: 7%; bottom: 8%; transform: rotate(-5deg); font: 700 13px/1.4 "Space Grotesk"; }
.sketch-note::before { content: ""; position: absolute; width: 75px; border-top: 2px solid var(--ink); top: -16px; left: 16px; transform: rotate(-17deg); }
.sketch-note span { font-size: 10px; font-weight: 500; }

.project-section { padding: 105px 8vw 125px; background: var(--paper-light); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; }
h2 { margin: 0; font-size: clamp(38px, 4.4vw, 68px); line-height: 1; letter-spacing: -.05em; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { padding: 9px 14px; color: var(--muted); background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: 12px; font-weight: 600; }
.filter:hover, .filter.active { color: white; background: var(--ink); border-color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { border: 1px solid var(--line); background: var(--paper-light); transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(21,32,31,.1); }
.project-card[hidden] { display: none; }
.card-art { height: 295px; position: relative; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.art-orange { background: #e77b5f; }.art-blue { background: #9fc2c5; }.art-yellow { background: #e9c95f; }
.project-number { position: absolute; top: 18px; left: 20px; font: 600 12px "Space Grotesk"; }
.difficulty { position: absolute; right: 14px; bottom: 14px; padding: 7px 9px; color: white; background: var(--ink); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.sensor-art { width: 130px; height: 170px; padding: 20px; border: 3px solid var(--ink); border-radius: 15px; background: #d8d5c8; transform: rotate(6deg); box-shadow: 12px 12px 0 rgba(21,32,31,.18); }
.sensor-art i { display: block; height: 75px; background: var(--ink); border: 3px solid var(--ink); box-shadow: inset 0 0 0 9px #40504d; }
.sensor-art b, .sensor-art span { display: inline-block; width: 20px; height: 20px; margin: 20px 8px 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); }
.sensor-art span { background: var(--orange); }
.robot-art { width: 150px; height: 115px; position: relative; border: 4px solid var(--ink); border-radius: 28px 28px 18px 18px; background: #eeeadd; box-shadow: 10px 12px 0 rgba(21,32,31,.16); }
.robot-art::before, .robot-art::after { content: ""; position: absolute; top: 42px; width: 18px; height: 18px; border: 3px solid var(--ink); border-radius: 50%; background: var(--orange); }.robot-art::before { left: 32px; }.robot-art::after { right: 32px; }
.robot-art i { position: absolute; width: 3px; height: 32px; background: var(--ink); left: 50%; top: -35px; }.robot-art i::before { content: ""; position: absolute; width: 13px; height: 13px; left: -5px; top: -5px; border-radius: 50%; background: var(--orange); border: 2px solid var(--ink); }
.robot-art b, .robot-art span { position: absolute; width: 28px; height: 37px; bottom: -34px; border: 4px solid var(--ink); background: #4e5d5a; }.robot-art b { left: 20px; }.robot-art span { right: 20px; }
.lamp-art { position: relative; width: 145px; height: 145px; border: 4px solid var(--ink); border-radius: 50%; background: #fff3a1; box-shadow: 0 0 0 14px rgba(255,243,161,.35), 12px 12px 0 rgba(21,32,31,.15); }
.lamp-art::after { content: ""; position: absolute; width: 55px; height: 65px; left: 41px; bottom: -58px; background: #ddd8c8; border: 4px solid var(--ink); }
.lamp-art i, .lamp-art b, .lamp-art span { position: absolute; width: 3px; height: 29px; background: var(--ink); top: -47px; left: 69px; }.lamp-art b { transform: rotate(60deg); transform-origin: 1px 117px; }.lamp-art span { transform: rotate(-60deg); transform-origin: 1px 117px; }
.card-copy { padding: 24px 24px 27px; }
.card-meta { margin: 0 0 11px; color: var(--orange); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.card-copy h3 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.035em; }
.card-copy > p:last-of-type { min-height: 48px; margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.card-copy a { display: flex; justify-content: space-between; padding-top: 17px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; text-decoration: none; }

.manifesto { padding: 105px 8vw; color: var(--paper-light); background: var(--ink); }
.eyebrow.light { color: #a9b3ae; }
.manifesto blockquote { margin: 35px 0 70px; font-size: clamp(40px, 5.5vw, 84px); line-height: 1.06; letter-spacing: -.055em; }
.manifesto-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid #40504d; }
.manifesto-footer p { max-width: 570px; color: #b5bdb9; font-size: 15px; line-height: 1.6; }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 110px 8vw; }
.about-section > div:last-child { max-width: 540px; padding-top: 35px; }
.about-section > div:last-child p { margin: 0 0 28px; color: var(--muted); font-size: 18px; line-height: 1.7; }
footer { display: flex; align-items: center; justify-content: space-between; padding: 45px 8vw; color: #b9c2bd; background: #0c1413; font-size: 12px; }
.footer-brand { color: white; }
.footer-brand .brand-mark { background: linear-gradient(#6ed8ed 0 30%,#b92f3c 31% 100%); filter: drop-shadow(3px 3px 0 rgba(232,185,71,.3)); }

.auth-dialog { width: min(92vw, 470px); padding: 42px; border: 0; background: var(--paper-light); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.auth-dialog::backdrop { background: rgba(9,17,16,.72); backdrop-filter: blur(4px); }
.auth-dialog h2 { margin-bottom: 28px; font-size: 40px; }
.dialog-close { position: absolute; right: 17px; top: 13px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.auth-form { display: grid; gap: 16px; }
.auth-form > label:not(.check) { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.auth-form input:not([type="checkbox"]) { width: 100%; height: 47px; padding: 0 13px; border: 1px solid var(--line); border-radius: 0; background: white; }
.auth-form input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.form-options { display: flex; justify-content: space-between; font-size: 12px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
.form-options a { color: var(--orange); }
.dialog-switch { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.dialog-switch button { padding: 0; border: 0; color: var(--orange); background: none; font-weight: 700; cursor: pointer; }
.form-note { margin: 0; padding: 10px; color: #42504c; background: #dcebe1; font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-button { display: block; grid-column: 2; grid-row: 1; }
  .main-nav, .account-actions { display: none; }
  .site-header.menu-open { grid-template-rows: 80px auto auto; padding-bottom: 22px; }
  .site-header.menu-open .main-nav, .site-header.menu-open .account-actions { display: flex; grid-column: 1 / -1; justify-content: flex-start; }
  .site-header.menu-open .main-nav { padding: 20px 0; border-top: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 80px 7vw 65px; }
  .hero-visual { min-height: 600px; border: 0; border-top: 1px solid var(--line); }
  .section-heading { align-items: start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; }
  .hero-copy { padding: 60px 22px; }
  h1 { font-size: 54px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-stats { gap: 18px; margin-top: 50px; }
  .hero-stats div { padding-right: 14px; }
  .hero-stats dt { font-size: 19px; }
  .hero-visual { min-height: 480px; }
  .device { height: 330px; width: 210px; }
  .device-screen { height: 160px; margin-top: 25px; }
  .screen-reading { font-size: 42px; }
  .project-section, .manifesto, .about-section { padding: 75px 22px; }
  .project-grid { grid-template-columns: 1fr; }
  .manifesto-footer { align-items: flex-start; flex-direction: column; gap: 25px; }
  footer { align-items: flex-start; flex-direction: column; gap: 22px; padding: 42px 22px; }
  .auth-dialog { padding: 36px 23px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
