@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/bricolage-800.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/bricolage-400.woff2') format('woff2'); }
:root {
  --bg: #080C12;
  --ink: #E9EEF3;
  --muted: #8B98A6;
  --faint: #7D8997;
  --blue: #1B75BB;
  --blue-soft: #4FA3E8;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

::selection { background: rgba(79, 163, 232, 0.4); color: var(--ink); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.blueprint {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(79,163,232,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,163,232,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 62% 54% at 50% 44%, #000 4%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 54% at 50% 44%, #000 4%, transparent 72%);
  pointer-events: none;
}

.page {
  position: relative; min-height: 100%;
  display: grid; grid-template-rows: 1fr auto; gap: 24px;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 56px);
}

main {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(26px, 4.2vh, 44px); text-align: center;
}

.scene-outer { position: relative; width: 100%; overflow: hidden; height: 439px; }
.scene-outer .scene { position: absolute; left: 50%; top: 0; transform: translateX(-50%) scale(1.15); }
@media (max-width: 1100px), (max-height: 900px) { .scene-outer { height: 363px; } .scene-outer .scene { transform: translateX(-50%) scale(0.95); } }
@media (max-width: 760px) { .scene-outer { height: 325px; } .scene-outer .scene { transform: translateX(-50%) scale(0.85); } }
@media (max-height: 800px) { .scene-outer { height: 298px; } .scene-outer .scene { transform: translateX(-50%) scale(0.78); } }
@media (max-width: 560px) { .scene-outer { height: 275px; } .scene-outer .scene { transform: translateX(-50%) scale(0.72); } }
@media (max-height: 700px) { .scene-outer { height: 260px; } .scene-outer .scene { transform: translateX(-50%) scale(0.68); } }
@media (max-width: 430px) { .scene-outer { height: 222px; } .scene-outer .scene { transform: translateX(-50%) scale(0.58); } }
@media (max-height: 600px) { .scene-outer { height: 214px; } .scene-outer .scene { transform: translateX(-50%) scale(0.56); } }

.scene, .scene *, .scene *::before, .scene *::after { box-sizing: border-box; }

.scene { position: relative; width: 560px; height: 382px; flex: none; transform-origin: top center; }

.ground { position: absolute; left: 0; right: 0; top: 352px; height: 1px; background: rgba(233, 238, 243, 0.16); }

.crane { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; animation: craneIn 900ms cubic-bezier(0.23, 1, 0.32, 1) 450ms both; }
@keyframes craneIn { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: none; } }
.clock { position: absolute; width: 0; height: 0; }
.arm { transform-box: view-box; transform-origin: 482px 84px; }
.trolley { transform: translateX(405px); }
.crate { opacity: 0; }

.beacon { animation: beacon 2.4s steps(1, end) infinite; }
@keyframes beacon { 0% { opacity: 1; } 14%, 100% { opacity: 0.15; } }

.cable { transform-box: fill-box; transform-origin: top center; transform: scaleY(0.0644); }

.rig { transform-origin: 0px 96px; }
.scene.dyn .rig, .scene.dyn .shr { animation: sway 5.4s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }

.win {
  position: absolute; z-index: 1; left: 34px; top: 138px; width: 412px; height: 214px;
  border: 1px solid rgba(233, 238, 243, 0.2);
  border-top-color: rgba(233, 238, 243, 0.3);
  border-radius: 13px;
  background: #0C1219;
  box-shadow: inset 0 1px 0 rgba(233, 238, 243, 0.07);
  overflow: hidden;
}

.tabs {
  position: relative; display: flex; align-items: flex-end; gap: 4px;
  height: 23px; padding: 0 9px;
  background: rgba(233, 238, 243, 0.035);
}

.wc { display: flex; align-items: center; gap: 5px; margin: 0 8px 6px 1px; flex: none; }
.wc i { width: 6.5px; height: 6.5px; border-radius: 50%; }
.wc .r { background: #ED6A5E; }
.wc .y { background: #F4BF4F; }
.wc .g { background: #61C554; }

.tab {
  display: flex; align-items: center; gap: 6px;
  width: 104px; height: 18px; padding: 0 8px;
  border-radius: 6px 6px 0 0;
  background: rgba(233, 238, 243, 0.06);
}
.tab.active {
  position: relative; z-index: 1; height: 19px; margin-bottom: -1px; background: #0C1219;
  box-shadow: inset 1px 0 0 rgba(233, 238, 243, 0.1), inset -1px 0 0 rgba(233, 238, 243, 0.1), inset 0 1px 0 rgba(233, 238, 243, 0.12);
}
.tab:not(.active) { position: relative; background: transparent; }
.tab:not(.active)::after { content: ""; position: absolute; right: -2px; top: 5px; bottom: 5px; width: 1px; background: rgba(233, 238, 243, 0.12); }
.tab:nth-child(3) { width: 84px; }

.fav { width: 6px; height: 6px; border-radius: 1.5px; background: var(--blue); flex: none; }
.fav-img { display: block; width: 12px; height: 12px; flex: none; }
.fav.ghost { background: rgba(233, 238, 243, 0.2); }
.tab-t { width: 54px; height: 3px; border-radius: 2px; background: rgba(233, 238, 243, 0.3); }
.tab-t.ghost { width: 42px; background: rgba(233, 238, 243, 0.14); }
.plus { align-self: flex-end; margin: 0 0 4px 6px; flex: none; }

.chrome {
  position: relative; display: flex; align-items: center; gap: 9px;
  height: 27px; padding: 0 10px;
  border-top: 1px solid rgba(233, 238, 243, 0.07);
  border-bottom: 1px solid rgba(233, 238, 243, 0.1);
}

.navicons, .star { flex: none; }

.url {
  position: relative; display: flex; align-items: center; gap: 6px;
  flex: 1; height: 16px; padding-left: 8px;
  border-radius: 4px; background: rgba(233, 238, 243, 0.07); overflow: hidden;
}
.loadbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform-origin: left center; transform: scaleX(1); }
.lock { position: relative; }
.url span { position: relative; font-size: 9.5px; letter-spacing: 0.01em; color: #D3DDE7; }

.avatar { width: 12px; height: 12px; border-radius: 50%; background: #1A3D5C; box-shadow: inset 0 0 0 1px rgba(79, 163, 232, 0.55); flex: none; }

.viewport { position: relative; height: 163px; }
.scrollbar { position: absolute; right: 5px; top: 11px; width: 3px; height: 44px; border-radius: 2px; background: rgba(233, 238, 243, 0.15); }

.wire { position: relative; width: 386px; height: 141px; margin: 12px; }

.slot {
  position: absolute;
  border-radius: 2px;
  background: none !important;
  border: 1px dashed rgba(79, 163, 232, 0.16) !important;
  animation: none !important;
}

.blk { position: absolute; border-radius: 2px; background: #0C1219; box-shadow: 0 0 0 1px #0C1219; }
.blk.bD1 { --ux: 125px; }
.blk.bD3 { --ux: -125px; }
.scene.dyn .blk { will-change: transform, opacity; }
.scene.dyn .blk, .scene.dyn .blk > * { opacity: 0; }
.scene.settled .arm, .scene.settled .trolley, .scene.settled .cable, .scene.settled .hook,
.scene.settled .crate, .scene.settled .blk, .scene.settled .blk > *, .scene.settled .loadbar,
.scene.settled .win, .scene.settled .clock, .scene.settled .rig,
.scene.settled .shx, .scene.settled .shr, .scene.settled .shy, .scene.settled .shd { animation: none !important; }
.scene.settled .blk, .scene.settled .blk > * { opacity: 1; will-change: auto; }

.tx { flex: none; height: 4px; border-radius: 2px; background: rgba(233, 238, 243, 0.2); }

.bA {
  left: 0; top: 0; width: 386px; height: 14px; border-radius: 0; border-bottom: 1px solid #2C3239;
  display: flex; align-items: center; gap: 6px; padding: 0 12px 1px;
}
.mark { flex: none; width: 7px; height: 7px; border-radius: 1.5px; background: var(--blue); }
.brand-l { width: 30px; background: rgba(233, 238, 243, 0.42); }
.links { display: flex; gap: 10px; margin-left: auto; }
.links .tx { width: 20px; }
.links .tx:nth-child(2) { width: 27px; }

.bB {
  left: 12px; top: 24px; width: 250px; height: 26px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.hl { width: 250px; height: 11px; border-radius: 1.5px; background: rgba(233, 238, 243, 0.64); }
.hl.h2 { width: 164px; position: relative; }
.hl.h2::after { content: ""; position: absolute; left: calc(100% + 3px); bottom: 0; width: 5px; height: 5px; border-radius: 1px; background: var(--blue-soft); }

.bC {
  left: 124px; top: 58px; width: 250px; height: 36px;
  background: #144872; border: 1px solid #2F71A7;
  display: flex; align-items: center; justify-content: center;
}

.bD {
  top: 104px; width: 112px; height: 17px;
  display: flex; flex-direction: column; gap: 4px;
}
.bD .tx { width: 100%; height: 3px; background: rgba(233, 238, 243, 0.17); }
.bD .tx.lead { background: rgba(233, 238, 243, 0.34); }
.bD .tx.short { width: 58%; }
.bD1 { left: 12px; }
.bD2 { left: 137px; }
.bD3 { left: 262px; }
.bD2 .tx.short { width: 74%; }
.bD3 .tx.short { width: 46%; }

.bE {
  left: 0; top: 129px; width: 386px; height: 12px; border-radius: 0; border-top: 1px solid #2C3239;
  display: flex; align-items: center; gap: 10px; padding: 1px 12px 0;
}
.ftmark { flex: none; width: 6px; height: 6px; border-radius: 1.5px; background: rgba(79, 163, 232, 0.5); }
.bE .tx { width: 34px; background: rgba(233, 238, 243, 0.14); }
.bE .tx.end { width: 22px; margin-left: auto; }

.shade { position: absolute; left: -35px; top: -201px; width: 0; height: 0; pointer-events: none; }
.shx, .shr, .shy { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.shx { transform: translateX(405px); }
.shr { transform-origin: 0 96px; }
.shd {
  position: absolute; left: -19px; top: 144px; width: 44px; height: 14px;
  border-radius: 4px; background: rgba(2, 5, 9, 0.55);
  box-shadow: 0 0 9px 3px rgba(2, 5, 9, 0.4);
  opacity: 0;
}

.reload {
  position: absolute; left: 35px; top: 4.5px; width: 18px; height: 18px;
  padding: 0; border: 0; border-radius: 4px; background: none; cursor: default;
}
.re { transform-box: fill-box; transform-origin: center; transition: stroke 150ms ease-out; }
.scene.dyn .reload { cursor: pointer; }
.scene.dyn .reload:hover + .navicons .re { stroke: rgba(233, 238, 243, 0.85); transition-duration: 240ms; }
.re.spin { animation: respin 620ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes respin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.scene.clearing .wire, .scene.clearing .loadbar { opacity: 0; transition: opacity 240ms ease-out; }

.nite { display: none; position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; will-change: transform; }
.scene.night .nite { display: block; animation: enterFade 900ms cubic-bezier(0.23, 1, 0.32, 1) 450ms both; }
.nite .flood { filter: blur(5px); }
.scene.night .moon { filter: drop-shadow(0 0 6px rgba(233, 238, 243, 0.35)); }
.scene.night .lamp { filter: drop-shadow(0 0 2px #E9EEF3) drop-shadow(0 0 6px rgba(79, 163, 232, 0.9)); }
.scene.night .glass { fill: #4FA3E8; fill-opacity: 0.6; filter: drop-shadow(0 0 3px rgba(79, 163, 232, 0.9)); }
.scene.night .beacon { filter: drop-shadow(0 0 3px #4FA3E8) drop-shadow(0 0 10px rgba(79, 163, 232, 0.8)); }
.scene.night .steel { opacity: 0.82; }
.scene.night .win {
  border-color: rgba(79, 163, 232, 0.3); border-top-color: rgba(79, 163, 232, 0.42);
}
body:has(.scene.night) .blueprint { opacity: 0.45; }

@keyframes enterFade { from { opacity: 0; } to { opacity: 1; } }
.page { animation: enterFade 400ms cubic-bezier(0.23, 1, 0.32, 1) both; }

.mailwrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mailwrap .rule { width: 28px; height: 1px; background: rgba(233, 238, 243, 0.18); }

.mail {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 1px; margin: -11px 0;
  font-size: 15px; letter-spacing: 0.01em;
  color: #C6D2DE; text-decoration: none;
  transition: color 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mail svg { flex: none; }
.mail .flap { transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1); transform-origin: 50% 30%; }
.mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: var(--blue-soft);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .mail:hover { color: var(--blue-soft); transition-duration: 240ms; }
  .mail:hover::after { transform: scaleX(1); transition-duration: 260ms; }
  .mail:hover .flap { transform: translateY(1px) scaleY(0.82); transition-duration: 260ms; }
}
.mail:focus-visible { outline: none; color: var(--blue-soft); }
.mail:focus-visible::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .crane, .beacon { animation: none; }
  .shade { display: none; }
  .mail, .mail::after, .mail .flap { transition: none; }
}

h1 {
  margin: 0;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800; font-size: clamp(38px, min(7vw, 9.6vh), 88px);
  line-height: 0.94; letter-spacing: -0.02em;
}
h1 span { color: var(--blue-soft); }

.lede {
  margin: 18px auto 0;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; letter-spacing: 0.005em;
  color: var(--muted); max-width: 62ch; text-wrap: balance;
}

footer {
  text-align: center;
  font-size: 13px; letter-spacing: 0.01em; color: var(--faint);
}

.brand { color: var(--ink); }
.tagline::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 12px; vertical-align: -1px; background: rgba(233, 238, 243, 0.2); }

@media (max-width: 720px) {
  .tagline::before { display: none; }
  .tagline { display: block; margin-top: 4px; font-size: 12px; text-wrap: balance; }
  .anno { display: none; }
}
@media (max-width: 639px) {
  .scene-outer { align-self: stretch; width: auto; margin-right: calc(-1 * clamp(20px, 4vw, 56px)); }
}
