/* ============================================================
   ANTON KUHLIG · PROOF OF WORK
   Space theme: deep cosmos, starfields, amber engine glow
   ============================================================ */

:root {
  --space: #04060f;
  --space-2: #080c1c;
  --panel: #0c1226;
  --panel-2: #101736;
  --line: rgba(150, 170, 230, .16);
  --line-soft: rgba(150, 170, 230, .09);
  --text: #e6ebf7;
  --dim: #939fc2;
  --faint: #5d6a8f;
  --yellow: #4cc9f0;
  --yellow-deep: #2f9fd0;
  --ice: #9fd7ff;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --body: "Archivo", sans-serif;
  --display: "Anton", sans-serif;
  --ruler-w: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--space);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--space); }

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ============ STARFIELD ============ */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 22px 34px, #fff, transparent),
    radial-gradient(1px 1px at 170px 120px, rgba(255,255,255,.85), transparent),
    radial-gradient(1.5px 1.5px at 320px 60px, #fff, transparent),
    radial-gradient(1px 1px at 420px 210px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 90px 260px, rgba(159,215,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 250px 330px, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 500px 150px, rgba(76,201,240,.8), transparent),
    radial-gradient(1px 1px at 380px 390px, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 60px 430px, rgba(255,255,255,.75), transparent),
    radial-gradient(1.5px 1.5px at 540px 300px, rgba(159,215,255,.8), transparent);
  background-size: 560px 460px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: .55; }
  to   { opacity: 1; }
}
/* nebula glows */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 85% 10%, rgba(76,201,240,.07), transparent 70%),
    radial-gradient(ellipse 60% 50% at 8% 85%, rgba(80,110,220,.12), transparent 70%),
    radial-gradient(ellipse 40% 35% at 70% 75%, rgba(120,60,180,.08), transparent 70%);
}
main, .topbar, .ruler { position: relative; z-index: 1; }

/* extra background layers */
.space-bg {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.stars-drift {
  position: absolute; left: 0; right: 0; top: -100%; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 60px 90px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 200px 30px, rgba(159,215,255,.45), transparent),
    radial-gradient(1px 1px at 320px 160px, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 130px 250px, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 400px 310px, rgba(76,201,240,.35), transparent);
  background-size: 460px 380px;
  animation: drift 90s linear infinite;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, 380px, 0); }
}
.shooting-star {
  position: absolute;
  width: 140px; height: 2px;
  background: linear-gradient(90deg, #fff, rgba(159,215,255,.6) 40%, transparent);
  border-radius: 2px;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.8));
}
.shooting-star.s1 { top: 14%; left: 68%; animation: shoot 9s linear infinite 2s; }
.shooting-star.s2 { top: 42%; left: 18%; animation: shoot 13s linear infinite 7s; }
.shooting-star.s3 { top: 66%; left: 78%; animation: shoot 17s linear infinite 12s; }
@keyframes shoot {
  0%, 90% { opacity: 0; transform: rotate(-35deg) translateX(0); }
  91%     { opacity: 1; }
  100%    { opacity: 0; transform: rotate(-35deg) translateX(-420px); }
}
/* distant moon behind the hero */
.hero-moon {
  position: absolute;
  top: 7%; right: -70px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #33405f, #1a2340 58%, #0c1226 100%);
  box-shadow:
    inset -34px -24px 70px rgba(0,0,0,.75),
    inset 10px 10px 30px rgba(159,215,255,.08),
    0 0 90px rgba(159,215,255,.1);
}
.hero-moon::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 62%, rgba(10,15,34,.8) 0 7%, transparent 9%),
    radial-gradient(circle at 60% 42%, rgba(10,15,34,.6) 0 5%, transparent 7%),
    radial-gradient(circle at 48% 76%, rgba(10,15,34,.7) 0 4%, transparent 6%),
    radial-gradient(circle at 72% 68%, rgba(10,15,34,.5) 0 6%, transparent 8%);
}
.hero-inner { z-index: 1; }

/* ============ ALTIMETER (left ruler) ============ */
.ruler {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--ruler-w);
  background: rgba(8, 12, 28, .85);
  z-index: 90;
  border-right: 1px solid var(--line);
  overflow: hidden;
  backdrop-filter: blur(3px);
}
.ruler-track {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(to bottom,
      rgba(230,235,247,.35) 0, rgba(230,235,247,.35) 1px, transparent 1px, transparent 20px);
  background-position: right;
  background-size: 12px 100%;
  background-repeat: no-repeat;
}
.ruler-track::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(to bottom,
      rgba(230,235,247,.5) 0, rgba(230,235,247,.5) 1px, transparent 1px, transparent 100px);
  background-position: right;
  background-size: 26px 100%;
  background-repeat: no-repeat;
}
.ruler-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(to top, rgba(76,201,240,.28), rgba(76,201,240,.05));
  border-top: 2px solid var(--yellow);
  transition: height .08s linear;
}
.ruler-rocket {
  position: absolute; left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
  transition: bottom .08s linear;
  filter: drop-shadow(0 4px 10px rgba(76,201,240,.5));
}
.ruler-rocket svg { width: 20px; height: auto; display: block; }
.rocket-flame {
  transform-origin: 12px 29px;
  transform-box: view-box;
  animation: flame-flicker .16s ease-in-out infinite alternate;
}
@keyframes flame-flicker {
  from { transform: scaleY(.7); opacity: .85; }
  to   { transform: scaleY(1.15); opacity: 1; }
}
.ruler-readout {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  color: var(--ice);
  letter-spacing: .12em;
  padding: 6px 2px;
}

/* ============ TOPBAR ============ */
.topbar {
  position: fixed; top: 0; left: var(--ruler-w); right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  z-index: 80;
  background: linear-gradient(to bottom, rgba(4,6,15,.9), rgba(4,6,15,0));
  backdrop-filter: blur(2px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  background: var(--yellow); color: var(--space);
  font-family: var(--display); font-size: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(76,201,240,.45);
}
.brand-name {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: .18em;
}
.brand-name em { font-style: normal; color: var(--yellow); }
.topnav { display: flex; gap: 28px; align-items: center; }
.topnav a {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  opacity: .75; transition: opacity .2s, color .2s;
}
.topnav a:hover { opacity: 1; color: var(--yellow); }
.nav-cta {
  border: 1.5px solid var(--yellow);
  padding: 8px 16px; border-radius: 4px;
  color: var(--yellow) !important; opacity: 1 !important;
  box-shadow: 0 0 14px rgba(76,201,240,.2) inset, 0 0 14px rgba(76,201,240,.15);
}
.nav-cta:hover { background: var(--yellow); color: var(--space) !important; }

main { margin-left: var(--ruler-w); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 40px 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(159,215,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,215,255,.04) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 100%);
}
.hero-inner {
  position: relative; max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 60px; align-items: center;
}

/* portrait */
.portrait { position: relative; margin: 0; }
.portrait img {
  border: 1px solid rgba(230,235,247,.4);
  box-shadow: 0 0 0 1px rgba(4,6,15,.8), 0 0 50px rgba(76,201,240,.22), 12px 12px 0 rgba(76,201,240,.85);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  width: 100%;
}
.portrait figcaption {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .18em; color: var(--dim);
  margin-top: 16px;
  display: flex; align-items: center; gap: 8px;
}
.portrait-fallback { display: none; }
.portrait.empty img { display: none; }
.portrait.empty .portrait-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--line);
  background: rgba(12,18,38,.5);
}
.portrait-mono {
  font-family: var(--display); font-size: 90px; line-height: 1;
  color: transparent; -webkit-text-stroke: 3px var(--yellow);
}
.portrait-hint {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--faint);
}

.hero-kicker {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: .22em; color: var(--yellow);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
  text-shadow: 0 0 20px rgba(76,201,240,.5);
}
.tick { width: 46px; height: 3px; background: var(--yellow); display: inline-block; box-shadow: 0 0 12px rgba(76,201,240,.7); }
.hero-title {
  font-family: var(--display);
  font-size: clamp(64px, 9.5vw, 150px);
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 60px rgba(159,215,255,.25);
}
.hero-title .line { display: block; }
.outline {
  color: transparent;
  -webkit-text-stroke: 3px var(--yellow);
  text-shadow: 0 0 40px rgba(76,201,240,.35);
}
.hero-sub {
  max-width: 620px;
  margin-top: 34px;
  font-size: 18px;
  color: var(--dim);
}
.hero-sub strong { color: var(--text); }
.hero-stats {
  display: flex; gap: 56px; flex-wrap: wrap;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.stat-num {
  font-family: var(--display);
  font-size: 56px; line-height: 1;
  color: var(--yellow);
  display: block;
  text-shadow: 0 0 30px rgba(76,201,240,.45);
}
.stat-label {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}
.hero-stamp {
  margin-top: 44px;
  display: inline-flex; gap: 14px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .3em; color: var(--space);
  background: var(--yellow);
  padding: 10px 18px;
  transform: rotate(-1.2deg);
  box-shadow: 0 0 30px rgba(76,201,240,.4);
}

/* marquee edge */
.hero-edge {
  margin-top: 70px;
  border-top: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  background: rgba(8,12,28,.8);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(76,201,240,.12);
}
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-inner {
  display: inline-flex; align-items: center;
  padding: 14px 0;
  animation: scroll-left 40s linear infinite;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.mq-label {
  font-style: normal; flex: none;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .3em; color: var(--dim);
  border: 1px solid var(--line);
  padding: 6px 12px; margin-right: 40px;
  white-space: nowrap;
}
.mq-plate {
  display: inline-flex; align-items: center; gap: 12px;
  flex: none;
  background: #f3f4f1;
  border-radius: 6px;
  padding: 10px 22px;
  margin-right: 40px;
  height: 58px;
}
.mq-plate img { height: 34px; width: auto; display: block; flex: none; }
.mq-plate-text {
  font-family: var(--body); font-weight: 700; font-size: 21px;
  letter-spacing: .02em; color: #1c2733;
  white-space: nowrap;
}
.mq-invert img { filter: invert(1) brightness(.25); }

/* ============ SECTION HEADS ============ */
.section-head {
  max-width: 1100px; margin: 0 auto 70px;
  position: relative;
}
.section-index {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--yellow); letter-spacing: .2em;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 84px);
  text-transform: uppercase;
  line-height: 1;
  margin: 10px 0 18px;
  text-shadow: 0 0 50px rgba(159,215,255,.2);
}
.section-head p { max-width: 560px; font-size: 17px; color: var(--dim); }

/* ============ THE SYSTEMS ============ */
.featured {
  padding: 110px 40px 120px;
  position: relative;
  background: linear-gradient(to bottom, transparent, rgba(10,14,32,.6) 20%, rgba(10,14,32,.6) 80%, transparent);
}

.project-hero {
  max-width: 1100px; margin: 0 auto 26px;
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(80,110,220,.12), 0 24px 60px rgba(0,0,0,.5);
  overflow: hidden;
}
.project-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(4,6,15,.5);
}
.project-no { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .15em; color: var(--yellow); }
.project-tags { display: flex; gap: 8px; }
.project-tags i {
  font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .12em;
  border: 1px solid var(--line);
  padding: 4px 8px; color: var(--dim);
  border-radius: 3px;
}
.project-body {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px;
  padding: 40px 26px 34px;
}
.project-text h3 {
  font-family: var(--display); font-size: 48px; text-transform: uppercase;
  line-height: 1; margin-bottom: 16px;
}
.project-lede { font-size: 17px; margin-bottom: 22px; color: var(--dim); }
.project-lede em { font-style: normal; color: var(--text); border-bottom: 2px solid var(--yellow); }
.project-facts { list-style: none; margin-bottom: 26px; }
.project-facts li {
  font-size: 14.5px; color: var(--dim);
  padding: 9px 0 9px 26px;
  border-bottom: 1px dashed var(--line-soft);
  position: relative;
}
.project-facts li::before {
  content: "▸";
  position: absolute; left: 0; color: var(--yellow); font-weight: 700;
}
.chip {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .08em;
  background: rgba(76,201,240,.12); color: var(--yellow);
  border: 1px solid rgba(76,201,240,.35);
  padding: 5px 10px; border-radius: 3px;
  display: inline-block; margin: 0 6px 6px 0;
}
.project-shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-content: center;
}
.shot { position: relative; }
.shot img {
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  transition: transform .3s ease, box-shadow .3s ease;
}
.shot:hover img { transform: translateY(-3px); box-shadow: 0 0 30px rgba(76,201,240,.25), 0 20px 50px rgba(0,0,0,.55); }
.shot figcaption {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .15em; color: var(--dim);
  margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
}
.dim-line { width: 26px; height: 2px; background: var(--yellow); display: inline-block; }

/* nationality flags */
.flag {
  width: 21px; height: auto;
  border-radius: 2px;
  display: inline-block;
  vertical-align: -2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 2px 6px rgba(0,0,0,.4);
}
.contact-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* system map: spacecraft console */
.sysmap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(159,215,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,215,255,.035) 1px, transparent 1px),
    rgba(4,6,15,.55);
  background-size: 22px 22px, 22px 22px, auto;
  padding: 26px 24px;
  box-shadow: inset 0 0 40px rgba(80,110,220,.08);
}
.sysmap-title {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .3em; color: var(--ice);
  margin-bottom: 18px;
}
.sysmap-modules {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 22px;
}
.sysmap-modules span {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-align: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(16,23,54,.8);
  color: var(--text);
  padding: 14px 6px;
  box-shadow: 0 0 14px rgba(76,201,240,.08);
}
.sysmap-flow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.sysmap-node {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .06em;
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 9px 12px;
  color: var(--dim);
  background: rgba(8,12,28,.7);
}
.sysmap-hot {
  background: var(--yellow); border-style: solid; border-color: var(--yellow);
  color: var(--space);
  box-shadow: 0 0 20px rgba(76,201,240,.5);
}
.sysmap-arrow { color: var(--yellow); font-size: 18px; }
.sysmap-caption {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .15em; color: var(--faint);
  margin-top: 18px;
  display: flex; align-items: center; gap: 8px;
}

/* ============ PLANETS ============ */
.planet {
  display: block;
  width: 108px; height: 108px;
  border-radius: 50%;
  position: relative;
  box-shadow:
    inset -20px -16px 36px rgba(0,0,0,.65),
    inset 7px 7px 20px rgba(255,255,255,.14),
    0 0 36px var(--pglow);
}
.planet::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--pbands);
  opacity: .55;
}
.planet.ringed::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 175%; height: 52%;
  transform: translate(-50%, -50%) rotate(-16deg);
  border-radius: 50%;
  border: 3px solid var(--pring);
  border-top-color: transparent;
  box-shadow: 0 4px 18px var(--pglow);
}
.planet-lg { width: 190px; height: 190px; }

/* one world per system */
.p-durakalk {
  background: radial-gradient(circle at 32% 28%, #ffd75e, #f2b705 40%, #8a5a00 74%, #3c2600 100%);
  --pglow: rgba(242,183,5,.4);
  --pring: rgba(255,215,94,.85);
  --pbands: repeating-linear-gradient(-12deg, transparent 0 16px, rgba(60,38,0,.4) 16px 23px);
}
.p-magicpool {
  background: radial-gradient(circle at 30% 30%, #d4f8ff, #38d9f0 38%, #0b7285 74%, #05363f 100%);
  --pglow: rgba(56,217,240,.4);
  --pring: rgba(212,248,255,.7);
  --pbands: repeating-linear-gradient(7deg, transparent 0 11px, rgba(255,255,255,.22) 11px 13px, transparent 13px 27px);
}
.p-evalio {
  background: radial-gradient(circle at 31% 29%, #b8d4ff, #2b7fff 40%, #123c8c 74%, #071c46 100%);
  --pglow: rgba(43,127,255,.45);
  --pring: rgba(184,212,255,.7);
  --pbands: radial-gradient(circle at 68% 62%, rgba(255,255,255,.25) 0 9%, transparent 11%),
            radial-gradient(circle at 40% 70%, rgba(7,28,70,.5) 0 7%, transparent 9%),
            radial-gradient(circle at 62% 30%, rgba(255,255,255,.14) 0 12%, transparent 14%);
}
.p-ludvikatak {
  background: radial-gradient(circle at 33% 27%, #ffd08a, #f59f00 36%, #7a4a00 70%, #1c1206 100%);
  --pglow: rgba(245,159,0,.4);
  --pring: rgba(28,28,28,.9);
  --pbands: repeating-linear-gradient(-32deg, transparent 0 13px, rgba(20,14,4,.5) 13px 19px);
}
.p-taklagret {
  background: radial-gradient(circle at 31% 30%, #ff9d9d, #e03131 40%, #7a1010 74%, #310505 100%);
  --pglow: rgba(224,49,49,.45);
  --pring: rgba(255,157,157,.7);
  --pbands: radial-gradient(circle at 66% 58%, rgba(49,5,5,.6) 0 11%, transparent 13%),
            radial-gradient(circle at 34% 64%, rgba(49,5,5,.45) 0 6%, transparent 8%),
            repeating-linear-gradient(-8deg, transparent 0 20px, rgba(122,16,16,.35) 20px 26px);
}
.p-takkalkyl {
  background: radial-gradient(circle at 32% 28%, #ffc9a3, #e8590c 40%, #7a2e0a 74%, #2b1006 100%);
  --pglow: rgba(232,89,12,.42);
  --pring: rgba(255,201,163,.7);
  --pbands: linear-gradient(rgba(43,16,6,.4) 1px, transparent 1px),
            linear-gradient(90deg, rgba(43,16,6,.4) 1px, transparent 1px);
}
.p-takkalkyl::before { background-size: 18px 18px, 18px 18px; }

/* planet stages */
.card-scape {
  position: relative;
  height: 175px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(1px 1px at 40px 40px, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 210px 120px, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 300px 50px, rgba(159,215,255,.7), transparent),
    radial-gradient(1px 1px at 120px 150px, rgba(255,255,255,.5), transparent),
    radial-gradient(ellipse at 50% 120%, rgba(80,110,220,.12), transparent 60%);
}
.orbit {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 235px; height: 235px;
  border: 1px dashed rgba(150,170,230,.28);
  border-radius: 50%;
}
.orbit-lg { width: 330px; height: 330px; }
.moon {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d7dded, #6a7590 75%);
  box-shadow: 0 0 8px rgba(255,255,255,.35);
}
.moon.m1 { top: 26px; right: 24%; }
.moon.m2 { bottom: 24px; left: 22%; width: 8px; height: 8px; }
.card:hover .planet { animation: planet-bob 2.6s ease-in-out infinite; }
@keyframes planet-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* the big Durakalk world in the hero card */
.hero-planet {
  position: relative;
  display: grid; place-items: center;
  min-height: 260px;
  margin-bottom: 6px;
}
.hero-planet .moon.m1 { top: 20px; right: 18%; }

/* stat plus sign */
.stat-num[data-plus]::after {
  content: attr(data-plus);
  font-family: var(--display);
  color: var(--yellow);
}

/* project card grid */
.project-grid {
  max-width: 1100px; margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: linear-gradient(160deg, var(--panel), rgba(12,18,38,.85));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(76,201,240,.5);
  box-shadow: 0 0 30px rgba(76,201,240,.15), 0 24px 50px rgba(0,0,0,.5);
}
.card-inner {
  padding: 22px 24px;
  display: flex; flex-direction: column; flex: 1;
}
.card-shot { margin: 0; border-bottom: 1px solid var(--line); }
.card-shot img {
  width: 100%; height: 170px;
  object-fit: cover; object-position: top;
  transition: transform .4s ease;
}
.card:hover .card-shot img { transform: scale(1.03); }
.card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.card-status {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .14em;
  padding: 4px 9px;
  border-radius: 3px;
  background: rgba(76,201,240,.14); color: var(--yellow);
  border: 1px solid rgba(76,201,240,.3);
}
.card h3 {
  font-family: var(--display); font-size: 30px; text-transform: uppercase;
  line-height: 1.02; margin-bottom: 12px;
}
.card p { font-size: 14px; color: var(--dim); flex: 1; }
.card p strong { color: var(--text); }
.card-chips { margin-top: 16px; }
.card-links {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.card-links a {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-decoration: none;
  color: var(--yellow);
  border-bottom: 2px solid rgba(76,201,240,.5);
  transition: text-shadow .2s, border-color .2s;
}
.card-links a:hover { text-shadow: 0 0 14px rgba(76,201,240,.8); border-color: var(--yellow); }

/* ============ THE REGISTER ============ */
.register {
  padding: 110px 40px 100px;
}
.ledger { max-width: 1100px; margin: 0 auto; }
.ledger-head, .ledger-row {
  display: grid;
  grid-template-columns: 52px 220px 1fr 64px 170px;
  gap: 18px;
  align-items: baseline;
  padding: 13px 16px;
}
.ledger-head {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint);
  border-bottom: 2px solid var(--yellow);
}
.ledger-row {
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  transition: background .15s;
  animation: row-in .4s ease both;
}
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.ledger-row:hover { background: rgba(76,201,240,.06); }
.ledger-row .no { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.ledger-row .name { font-weight: 700; font-size: 15px; letter-spacing: .01em; }
.ledger-row .name small {
  display: block; font-family: var(--mono); font-weight: 500;
  font-size: 10px; letter-spacing: .1em; color: var(--yellow); text-transform: uppercase;
  margin-top: 2px;
}
.ledger-row .desc { color: var(--dim); font-size: 13.5px; }
.ledger-row .yr { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.ledger-row .st { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.ledger-row .st a { color: var(--yellow); text-decoration: none; font-weight: 600; }
.ledger-row .st a:hover { text-decoration: underline; }
.ledger-row .st .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 7px; vertical-align: 1px;
}
.dot.g { background: #4ade80; box-shadow: 0 0 10px rgba(74,222,128,.8); }
.dot.y { background: var(--yellow); box-shadow: 0 0 10px rgba(76,201,240,.7); }
.dot.gr { background: var(--faint); }
.ledger-note {
  max-width: 1100px; margin: 22px auto 0;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}

/* ============ METHOD ============ */
.method {
  padding: 110px 40px;
  background: linear-gradient(to bottom, transparent, rgba(10,14,32,.6) 20%, rgba(10,14,32,.6) 80%, transparent);
}
.method-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.method-item {
  background: var(--panel);
  padding: 38px 34px;
  position: relative;
}
.method-num {
  font-family: var(--display); font-size: 60px;
  color: transparent;
  -webkit-text-stroke: 2px var(--yellow);
  line-height: 1; display: block; margin-bottom: 14px;
  text-shadow: 0 0 30px rgba(76,201,240,.2);
}
.method-item h3 {
  font-family: var(--display); font-size: 26px; text-transform: uppercase;
  margin-bottom: 10px;
}
.method-item p { font-size: 14.5px; color: var(--dim); }

/* ============ CONTACT ============ */
.contact {
  padding: 150px 40px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* planet horizon at the bottom */
.contact::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -560px;
  transform: translateX(-50%);
  width: 1600px; height: 640px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(16,23,54,.95), rgba(8,12,28,.98) 70%);
  border-top: 2px solid rgba(76,201,240,.75);
  box-shadow: 0 -20px 80px rgba(76,201,240,.28), 0 -60px 160px rgba(80,110,220,.25);
  pointer-events: none;
}
.contact-inner { position: relative; }
.contact-kicker {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: .3em; color: var(--yellow); margin-bottom: 22px;
  text-shadow: 0 0 20px rgba(76,201,240,.5);
}
.contact h2 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 76px);
  text-transform: uppercase; line-height: 1.05;
  margin-bottom: 40px;
}
.outline-y {
  color: transparent; -webkit-text-stroke: 2.5px var(--yellow);
  text-shadow: 0 0 40px rgba(76,201,240,.3);
}
.contact-actions {
  display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.contact-mail {
  font-family: var(--mono); font-size: clamp(16px, 2.6vw, 26px); font-weight: 600;
  color: var(--space); background: var(--yellow);
  text-decoration: none;
  padding: 16px 34px;
  display: inline-block;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(76,201,240,.45);
  transition: transform .2s, box-shadow .2s;
}
.contact-mail:hover { transform: translateY(-3px); box-shadow: 0 0 60px rgba(76,201,240,.65); }
.contact-phone {
  font-family: var(--mono); font-size: clamp(15px, 2vw, 21px); font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
  padding: 15px 30px;
  border: 2px solid var(--yellow);
  border-radius: 4px;
  display: inline-block;
  transition: background .2s, color .2s, box-shadow .2s;
  box-shadow: 0 0 20px rgba(76,201,240,.15);
}
.contact-phone:hover { background: var(--yellow); color: var(--space); box-shadow: 0 0 40px rgba(76,201,240,.5); }
.contact-meta {
  margin-top: 70px;
  display: flex; gap: 16px; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  color: var(--faint);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(26px); animation: reveal .8s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; }
.d3 { animation-delay: .32s; } .d4 { animation-delay: .46s; } .d5 { animation-delay: .6s; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.reveal-block { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-block.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-block { animation: none; transition: none; opacity: 1; transform: none; }
  .marquee-inner { animation: none; }
  body::before { animation: none; }
  .stars-drift, .shooting-star, .rocket-flame { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 340px; }
  .project-body { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .ledger-head, .ledger-row { grid-template-columns: 40px 150px 1fr 120px; }
  .ledger-head span:nth-child(4), .ledger-row .yr { display: none; }
}
@media (max-width: 720px) {
  :root { --ruler-w: 26px; }
  .ruler-readout { display: none; }
  .topbar { padding: 14px 18px; }
  .topnav a:not(.nav-cta) { display: none; }
  .hero, .featured, .register, .method, .contact { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 110px; }
  .hero-inner > * { min-width: 0; }
  .hero-kicker { font-size: 11px; letter-spacing: .16em; }
  .hero-sub { font-size: 16px; }
  .hero-stats { gap: 26px; }
  .stat-num { font-size: 42px; }
  .stat-label { font-size: 10px; letter-spacing: .1em; }
  .hero-stamp {
    font-size: 9.5px; letter-spacing: .18em;
    gap: 8px; padding: 9px 12px;
    flex-wrap: wrap;
  }
  .portrait { max-width: 100%; }
  .hero-moon { width: 160px; height: 160px; top: 4%; right: -46px; }
  .hero-edge { margin-top: 50px; margin-left: -18px; margin-right: -18px; }
  .mq-plate { height: 48px; padding: 8px 16px; margin-right: 28px; }
  .mq-plate img { height: 26px; }
  .mq-plate-text { font-size: 17px; }
  .mq-label { margin-right: 28px; }
  .project-body { padding: 28px 18px 26px; gap: 28px; }
  .project-meta { padding: 12px 18px; }
  .project-tags { display: none; }
  .project-text h3 { font-size: 38px; }
  .hero-planet { min-height: 210px; }
  .planet-lg { width: 150px; height: 150px; }
  .orbit-lg { width: 260px; height: 260px; }
  .sysmap { padding: 20px 14px; }
  .sysmap-modules { grid-template-columns: repeat(2, 1fr); }
  .sysmap-modules span { font-size: 10px; padding: 11px 4px; }
  .sysmap-node { font-size: 9.5px; padding: 8px 9px; }
  .project-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .card-scape { height: 150px; }
  .card-scape .planet { width: 92px; height: 92px; }
  .section-head { margin-bottom: 46px; }
  .ledger-head, .ledger-row { grid-template-columns: 1fr 130px; gap: 12px; padding: 12px 8px; }
  .ledger-head span:nth-child(1), .ledger-head span:nth-child(3),
  .ledger-row .no, .ledger-row .desc { display: none; }
  .ledger-row .st { font-size: 10.5px; }
  .method-item { padding: 28px 20px; }
  .contact { padding-top: 100px; }
  .contact-actions { flex-direction: column; gap: 14px; }
  .contact-mail, .contact-phone { width: 100%; max-width: 320px; text-align: center; }
  .contact-meta { flex-wrap: wrap; row-gap: 6px; margin-top: 50px; }
  .contact::before { width: 900px; height: 420px; bottom: -370px; }
}
