:root {
  --bg: #14061f;
  --ink: #000;
  --grey: #c0c0c0;
  --hi: #fff;
  --lo: #808080;
  --dark: #404040;
  --blue: #2b8fff;
  --navy: #000080;
  --red: #e0193a;
  --yellow: #ffee00;
  --ui: Tahoma, "MS Sans Serif", Verdana, Geneva, sans-serif;
  --body: Verdana, Geneva, Tahoma, sans-serif;
  --serif: "Times New Roman", Times, serif;
  --comic: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  --pixel: "VT323", "Courier New", monospace;
  --taskbar: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  padding-bottom: calc(var(--taskbar) + 1rem);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  overflow-x: hidden;
  /* tiled starfield, the way nature intended */
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 110px, #ffd6e0, transparent),
    radial-gradient(2px 2px at 150px 60px, var(--blue), transparent),
    radial-gradient(1px 1px at 60px 170px, #fff, transparent),
    radial-gradient(2px 2px at 180px 190px, var(--red), transparent),
    radial-gradient(1px 1px at 120px 10px, #fff, transparent);
  background-size: 220px 220px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
h2 { font: 700 clamp(1.7rem, 3.6vw, 2.5rem)/1.1 var(--serif); margin-bottom: .9rem; }
h3 { font: 700 1.05rem var(--ui); }
p { margin: 0 0 .9rem; }
.blue { color: var(--blue); }
.dim { opacity: .6; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* classic hyperlink */
.hyper { color: #0000ee; text-decoration: underline; }
.hyper:visited { color: #551a8b; }
.hyper:hover { color: var(--red); }
:focus-visible { outline: 2px dotted var(--yellow); outline-offset: 2px; }

/* ---------- bevels ---------- */
.inset { border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); background: #fff; box-shadow: inset 1px 1px 0 var(--dark); }
.inset-dark { border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); background: var(--bg); color: #f6f2fa; box-shadow: inset 1px 1px 0 #000; }
.btn95 {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .45rem .9rem; min-height: 32px;
  background: var(--grey); color: var(--ink);
  font: 700 .9rem var(--ui); text-decoration: none; white-space: nowrap;
  border: 2px solid; border-color: var(--hi) var(--dark) var(--dark) var(--hi);
  box-shadow: inset -1px -1px 0 var(--lo), inset 1px 1px 0 #dfdfdf;
  cursor: pointer;
}
.btn95:active { border-color: var(--dark) var(--hi) var(--hi) var(--dark); box-shadow: inset 1px 1px 0 var(--lo); padding: .5rem .85rem .4rem .95rem; }
.btn-primary { font-size: 1.05rem; padding: .7rem 1.3rem; min-height: 48px; outline: 1px solid #000; }

/* ---------- marquee ---------- */
.marquee { background: var(--navy); color: var(--yellow); font: 400 1.25rem/1.6 var(--pixel); overflow: hidden; white-space: nowrap; border-bottom: 2px solid var(--blue); }
.marquee-track { display: inline-flex; animation: scroll 40s linear infinite; }
.marquee-track span { padding-right: 2rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- masthead ---------- */
.masthead { text-align: center; padding: 2.5rem 1rem 1.5rem; color: #fff; }
.wordmark {
  display: inline-flex; align-items: baseline; color: #fff;
  font: 700 clamp(3rem, 11vw, 6rem)/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.03em; text-decoration: none;
  filter: drop-shadow(4px 4px 0 rgba(224, 25, 58, .9));
}
.wm-blue { color: var(--blue); }
.wm-x { height: .53em; width: auto; margin: 0 .01em; }
.x-back { fill: #fff; }
.x-front { fill: var(--blue); }
.wm-tld { font-size: .4em; font-weight: 400; letter-spacing: 0; margin-left: .1em; }
.tagline { font: italic 400 1.05rem var(--comic); color: var(--yellow); margin: 1rem 0 1.25rem; }
.construction {
  display: inline-block; padding: 6px;
  background: repeating-linear-gradient(-45deg, #000 0 14px, var(--yellow) 14px 28px);
}
.construction span { display: block; padding: .3rem .9rem; background: var(--yellow); color: #000; font: 700 .9rem var(--ui); text-transform: uppercase; letter-spacing: .05em; }
.counter { margin: 1.25rem 0 0; font: 400 .9rem var(--ui); }
.odometer {
  display: inline-block; vertical-align: middle; margin-left: .4rem; padding: 0 .4rem;
  background: #000; color: #39ff14; font: 400 1.6rem/1.15 var(--pixel); letter-spacing: .18em;
  border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo);
}

/* ---------- windows ---------- */
.desktop { width: min(1040px, 100% - 1.5rem); margin-inline: auto; display: grid; gap: 2.5rem; }
.win {
  background: var(--grey); padding: 3px;
  border: 2px solid; border-color: var(--hi) var(--dark) var(--dark) var(--hi);
  box-shadow: 1px 1px 0 #000, 10px 10px 0 rgba(0, 0, 0, .5);
  min-width: 0;
}
.win-left { margin-right: clamp(0px, 6vw, 80px); }
.win-right { margin-left: clamp(0px, 6vw, 80px); }
.titlebar {
  display: flex; align-items: center; gap: .4rem;
  padding: 3px 3px 3px 6px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  color: #fff; font: 700 .85rem var(--ui);
}
.t-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-btns { display: flex; gap: 2px; }
.t-btns i {
  width: 18px; height: 16px; display: grid; place-items: center;
  background: var(--grey); color: #000; font: 700 .7rem/1 var(--ui); font-style: normal;
  border: 1px solid; border-color: var(--hi) var(--dark) var(--dark) var(--hi);
}
.menubar { display: flex; gap: 1rem; padding: 2px 8px; font: 400 .8rem var(--ui); }
.addressbar { display: flex; align-items: center; gap: .5rem; padding: 2px 6px 5px; font: 400 .8rem var(--ui); }
.addressbar .inset { flex: 1; padding: 2px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.statusbar { display: flex; gap: 3px; margin-top: 3px; font: 400 .75rem var(--ui); }
.statusbar .inset { background: var(--grey); box-shadow: none; border-width: 1px; padding: 2px 8px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.statusbar .pillars { flex: 2; font-weight: 700; letter-spacing: .08em; }
.body { padding: clamp(1rem, 3vw, 1.75rem); }
.body .statusbar { margin: 1rem 0 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem); min-height: min(70svh, 560px); display: flex; align-items: center;
  background: radial-gradient(90% 70% at 15% 115%, rgba(224, 25, 58, .6), transparent 60%), linear-gradient(160deg, #2a0822, var(--bg) 60%); }
#wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; }
.eyebrow { font: 400 1.2rem var(--pixel); color: #39ff14; margin-bottom: 1rem; }
.eyebrow .blink { color: var(--red); }
h1 {
  font: 700 clamp(2.4rem, 7vw, 4.75rem)/1.02 var(--serif); color: #fff;
  text-shadow: 3px 3px 0 var(--red);
}
h1 .blue { text-shadow: 3px 3px 0 var(--navy); }
.lede { max-width: 38rem; margin: 1.5rem 0 2rem; font-size: clamp(1rem, 1.5vw, 1.15rem); color: #e8def2; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.hero .hyper, .terminal .hyper { color: #7ab8ff; }
.hero .hyper:hover, .terminal .hyper:hover { color: var(--yellow); }

/* ---------- the x ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center; }
.x-art { padding: 1rem; }
.x-art svg { width: 100%; display: block; }
.x-grid { stroke: rgba(255, 255, 255, .15); stroke-width: 1; stroke-dasharray: 2 8; fill: none; }
.x-line { fill: none; stroke-width: 6; stroke-dasharray: 400; animation: draw 3.5s steps(20) infinite alternate; }
.x-line-a { stroke: #fff; }
.x-line-b { stroke: var(--blue); animation-delay: .4s; }
@keyframes draw { from { stroke-dashoffset: 400; } 60%, to { stroke-dashoffset: 0; } }
.node { fill: #fff; }
.node-blue { fill: var(--blue); }
.core { fill: var(--red); }
.pulse { fill: none; stroke: var(--red); stroke-width: 2; transform-origin: 200px 200px; animation: pulse 2.4s steps(8) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
.x-art text { fill: #39ff14; font: 400 20px var(--pixel); text-transform: uppercase; }
.crosses { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .8rem; }
.crosses li { padding-left: 1.6rem; position: relative; }
.crosses li::before { content: "×"; position: absolute; left: 0; top: -.25em; color: var(--red); font: 700 1.5rem var(--ui); }
.crosses b { display: block; font-family: var(--ui); }

/* ---------- services ---------- */
.rainbow { height: 6px; margin: 0 0 1.25rem; background: linear-gradient(90deg, #f00, #ff8c00, #ff0, #0c0, var(--blue), #80f, #f0c); }
.icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1.25rem; padding: 1.5rem 1.25rem; }
.icon { text-align: center; padding: .5rem; border: 1px dotted transparent; }
.icon:hover { border-color: #000; background: #e8f1ff; }
.icon:hover h3 { background: var(--navy); color: #fff; }
.glyph { display: block; font-size: 2.75rem; line-height: 1.1; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .25)); }
.icon h3 { display: inline-block; margin: .4rem 0 .5rem; padding: 1px 5px; }
.icon p { font-size: .88rem; margin: 0; text-align: left; }
.new { display: inline-block; margin-left: .2rem; padding: 0 4px; background: var(--yellow); color: var(--red); font: 700 .7rem var(--comic); transform: rotate(-6deg); animation: blink 1s steps(1) infinite; }

/* ---------- work ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.shot { margin: 0; }
.shot-wide { grid-column: 1 / -1; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: auto; }
.shot-wide img { aspect-ratio: 21 / 9; }
.shot figcaption { padding-top: .5rem; font-size: .88rem; }
.shot figcaption b { font-family: var(--ui); margin-right: .3rem; }
.tag { display: inline-block; padding: 0 5px; font: 400 .7rem var(--ui); text-transform: uppercase; letter-spacing: .06em; border: 1px dashed var(--lo); color: #444; }

/* ---------- wizard ---------- */
.steps { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps fieldset { height: 100%; margin: 0; padding: .9rem 1rem 1rem; border: 2px groove #fff; }
.steps legend { font: 400 .8rem var(--ui); padding: 0 .4rem; }
.steps h3 { font: 700 1.6rem var(--serif); margin-bottom: .4rem; }
.steps p { margin: 0; font-size: .9rem; }
.progress { height: 24px; padding: 2px; }
.progress div { height: 100%; width: 100%; background: repeating-linear-gradient(90deg, var(--navy) 0 14px, transparent 14px 17px); animation: fill 5s steps(24) infinite; }
@keyframes fill { from { width: 0; } 80%, to { width: 100%; } }
.wizard-btns { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; margin-top: 1rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 1.75rem); align-items: stretch; }
.terminal { position: relative; overflow: hidden; background: #050208; }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; }
.terminal-inner { position: relative; padding: clamp(1.25rem, 3vw, 2rem); background: linear-gradient(90deg, rgba(5, 2, 8, .92), rgba(5, 2, 8, .55)); height: 100%; }
.terminal h2 { color: #fff; }
.terminal p { color: #e8def2; }
.terminal .prompt { font: 400 1.25rem var(--pixel); color: #39ff14; }
.form { display: grid; gap: .8rem; align-content: start; }
.form label { display: grid; gap: .25rem; font: 700 .85rem var(--ui); }
.form input, .form textarea { width: 100%; padding: .55rem .6rem; font: 400 1rem var(--body); color: #000; border-radius: 0; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px dotted var(--navy); outline-offset: 1px; }
.form-note { margin: 0; font-size: .75rem; color: #333; }

/* ---------- footer ---------- */
.footer { width: min(1040px, 100% - 1.5rem); margin: 3rem auto 0; text-align: center; color: #d9cde6; font-size: .8rem; }
.footer .rainbow { margin-bottom: 1.5rem; }
.webring { font-family: var(--comic); color: var(--yellow); }
.footer .hyper { color: #7ab8ff; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.25rem 0; }
.badge { width: 110px; padding: 3px 0; font: 400 .62rem/1.25 var(--ui); color: #fff; border: 2px solid; border-color: var(--hi) var(--dark) var(--dark) var(--hi); }
.badge b { font-size: .75rem; }
.b-blue { background: var(--navy); }
.b-black { background: #000; color: #39ff14; }
.b-red { background: var(--red); }
.b-green { background: #006b3c; }

/* ---------- taskbar ---------- */
.taskbar {
  position: fixed; inset: auto 0 0 0; z-index: 20; height: var(--taskbar);
  display: flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--grey); border-top: 2px solid var(--hi);
}
.taskbar .btn95 { height: 100%; min-height: 0; padding-block: 0; font-size: .85rem; }
.start svg { height: 16px; width: auto; }
.task { font-weight: 400; min-width: 6.5rem; justify-content: flex-start; }
.task-cta { margin-left: auto; }
.clock { background: var(--grey); box-shadow: none; border-width: 1px; padding: 0 .7rem; height: 100%; display: grid; place-items: center; font: 400 .8rem var(--ui); white-space: nowrap; }

/* ---------- cursor sparkles ---------- */
.sparkle { position: fixed; z-index: 30; pointer-events: none; font: 400 14px var(--ui); animation: sparkle .7s steps(6) forwards; }
@keyframes sparkle { to { transform: translateY(18px) scale(.3); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .split, .contact { grid-template-columns: 1fr; }
  .x-art { max-width: 300px; margin-inline: auto; }
  .icons { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .task { display: none; }
  .menubar, .statusbar .inset:first-child { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .desktop { gap: 1.75rem; }
  .win { box-shadow: 1px 1px 0 #000, 6px 6px 0 rgba(0, 0, 0, .5); }
  .icons, .shots { grid-template-columns: 1fr; }
  .shot-wide img { aspect-ratio: 16 / 9; }
  .hero-cta .btn95, .form .btn95 { width: 100%; }
  .statusbar .pillars { font-size: .62rem; letter-spacing: .04em; }
  .construction span { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
