:root {
  --bg: #f4f4f1;
  --ink: #111;
  --mute: #666;
  --accent: #e23d28;
  --line: #111;
  --sans: "Archivo", sans-serif;
  --disp: "Space Grotesk", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.45; }
a { color: inherit; text-decoration: none; }
.nav, .hero, .sec, footer {
  width: min(920px, calc(100% - 2rem)); margin-inline: auto;
}
.nav {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.5rem 0 0; border-bottom: 2px solid var(--line);
}
.mark, h1, h2, b { font-family: var(--disp); letter-spacing: -0.04em; }
.mark { font-weight: 700; font-size: 1.1rem; }
.links { display: flex; gap: 1.25rem; font-size: .95rem; }
.links a:last-child { color: var(--accent); font-weight: 700; }
.hero { padding: 3rem 0 2.5rem; }
.huge { font-size: clamp(3.5rem, 10vw, 7rem); margin: 0; line-height: .85; }
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 1rem 0 .7rem; max-width: 12ch; }
.sub { max-width: 42ch; color: var(--mute); margin: 0 0 1.4rem; }
.cta {
  display: inline-flex; background: var(--ink); color: #f4f4f1;
  padding: .9rem 1.2rem; font-weight: 700; margin-bottom: 2.5rem;
}
.ruler {
  position: relative; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 1.2rem 0 1rem; overflow: hidden;
}
.ticks {
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 24px);
  opacity: .35;
}
.blocks { display: grid; grid-template-columns: 2fr 1.2fr .8fr; gap: 8px; margin-top: .8rem; }
.blocks i { display: block; height: 28px; background: var(--ink); }
.blocks i:nth-child(2) { background: var(--accent); }
.blocks i:nth-child(3) { background: #888; }
.needle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); left: 18%;
  animation: slide 6.5s ease-in-out infinite;
}
.sec { padding: 2.8rem 0 1rem; border-top: 1px solid rgba(17,17,17,.15); }
.sec h2 { margin: 0 0 .6rem; font-size: 1.6rem; }
.sec p, .sec li { color: var(--mute); }
.sec ol, .sec ul { padding-left: 1.1rem; }
.sec b { color: var(--ink); font-size: 1.15rem; }
footer {
  display: flex; justify-content: space-between; padding: 2.5rem 0;
  border-top: 2px solid var(--line); margin-top: 2rem; color: var(--mute);
}
.desk { background: #ecece8; }
.desk-nav {
  width: min(1200px, calc(100% - 1rem)); margin: .8rem auto;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--ink); padding-bottom: .5rem;
}
.desk-nav span { color: var(--mute); font-size: .85rem; }
.desk-grid {
  width: min(1200px, calc(100% - 1rem)); margin: 0 auto 1rem;
  display: grid; grid-template-columns: 200px 1fr 200px; gap: 1px; background: var(--ink);
  min-height: calc(100svh - 5rem);
}
.desk-grid > * { background: var(--bg); padding: .9rem; }
.desk-grid h2 { margin: 0 0 .6rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
#clips, #events { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .88rem; color: var(--mute); }
#clips li, #events li { border-top: 1px solid rgba(17,17,17,.12); padding-top: .35rem; }
.view {
  aspect-ratio: 16/9; background: #111; position: relative; color: #eee;
}
.view span { position: absolute; left: .7rem; bottom: .6rem; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.spanline { margin-top: .8rem; border: 2px solid var(--ink); padding: .5rem; position: relative; height: 70px; }
.spanline b { position: absolute; top: 12px; height: 16px; background: var(--ink); left: 6%; width: 40%; }
.spanline b.r { top: 38px; width: 55%; background: var(--accent); }
.spanline .n {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); left: 24%;
  animation: slide 6.5s ease-in-out infinite;
}
.legal { width: min(640px, calc(100% - 2rem)); margin: 2rem auto 3rem; color: var(--mute); }
.legal h1 { color: var(--ink); }
@keyframes slide { 0%,100% { left: 10%; } 50% { left: 78%; } }
@media (max-width: 900px) {
  .desk-grid { grid-template-columns: 1fr; }
  .links a:not(:last-child) { display: none; }
  .huge { font-size: 3.2rem; }
}

/* i18n + cabinet */
.lang { display:inline-flex; gap:.15rem; padding:.15rem; border:1px solid rgba(0,0,0,.12); background:rgba(255,255,255,.4); }
.lang button { border:0; background:transparent; font:inherit; font-size:.72rem; text-transform:uppercase; padding:.2rem .35rem; cursor:pointer; opacity:.7; }
.lang button.is-active { background:#111; color:#fff; opacity:1; }
.auth-wrap,.cab-wrap{ width:min(1040px, calc(100% - 2rem)); margin:2rem auto 3rem; }
.auth-card,.cab-card{ background:rgba(255,255,255,.55); border:1px solid rgba(0,0,0,.1); padding:1.25rem; max-width:480px; }
.tabs{ display:flex; gap:.4rem; margin:1rem 0; }
.tabs button{ flex:1; border:1px solid rgba(0,0,0,.12); background:transparent; padding:.6rem; font:inherit; cursor:pointer; }
.tabs button.is-active{ background:#111; color:#fff; }
.auth-card label,.cab-card label{ display:grid; gap:.25rem; margin-bottom:.75rem; font-size:.9rem; }
.auth-card input{ border:1px solid rgba(0,0,0,.18); padding:.65rem .7rem; font:inherit; }
.auth-note{ min-height:1.2em; font-size:.9rem; }
.auth-note[data-state="err"]{ color:#a11; }
.auth-note[data-state="ok"]{ color:#0a7; }
.hint{ font-size:.85rem; opacity:.75; }
.cab-grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:1rem; }
@media (max-width:900px){ .cab-grid{ grid-template-columns:1fr; } }
.projects{ list-style:none; margin:0; padding:0; }
.projects li{ border-top:1px solid rgba(0,0,0,.1); padding:.5rem 0; }
.cab-actions{ display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem; }
.stats{ display:grid; gap:.6rem; }
.stats div{ border-top:1px solid rgba(0,0,0,.1); padding-top:.5rem; }
.stats dt{ font-size:.75rem; text-transform:uppercase; letter-spacing:.06em; opacity:.7; }
.stats dd{ margin:.15rem 0 0; font-size:1.15rem; }