/* A dark room lit by screens: every value here is sampled from the hero shoot. */
:root {
  --night: #000000;
  --deep: #0a0a0a;
  --raised: #151515;
  --line: #262626;
  --window: #3b8bff;
  --ice: #dce8fa;
  --mist: #8da2c4;
  --gutter: clamp(16px, 4vw, 56px);
  --font-display: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  /* Type scale: 1.25 ratio from 17px */
  --t-sm: 14px;
  --t-base: 17px;
  --t-md: 21px;
  --t-lg: clamp(26px, 3vw, 33px);
  --t-xl: clamp(38px, 5.4vw, 68px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--ice);
  font: var(--t-base)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain, matching the photos */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1; }
h2 { font-size: var(--t-xl); font-weight: 300; font-stretch: 118%; letter-spacing: -0.02em; }
::selection { background: var(--window); color: var(--night); }
:focus-visible { outline: 2px solid var(--window); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center;
  padding: 13px 24px; border-radius: 999px;
  font: 500 var(--t-base)/1 var(--font-body); text-decoration: none;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn--light { background: var(--ice); color: var(--night); }
.btn--light:hover { background: #fff; box-shadow: 0 0 32px rgba(59,139,255,.45); }
.btn--ghost, .btn--outline { color: var(--ice); border-color: var(--line); }
.btn--ghost:hover, .btn--outline:hover { border-color: var(--window); }
.btn--ink { background: var(--window); color: var(--night); font-weight: 600; }
.btn--ink:hover { background: var(--ice); }
.text-link {
  font-weight: 500; color: var(--ice);
  text-decoration: underline; text-decoration-color: var(--window);
  text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.text-link:hover { color: var(--window); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  transition: background .3s;
}
.nav.is-scrolled { background: rgba(0,0,0,.78); backdrop-filter: blur(14px); }
.nav__logo { font: 500 20px/1 var(--font-display); font-stretch: 150%; text-decoration: none; letter-spacing: .04em; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav__links a { text-decoration: none; color: var(--mist); transition: color .2s; }
.nav__links a:hover { color: var(--ice); }

/* Hero: the photo comes up out of the dark, the name opens out */
.hero {
  position: relative; min-height: clamp(620px, 100svh, 1000px);
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(56px, 9vh, 104px); overflow: hidden;
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 40%;
  animation: lights-up 2.2s ease-out both;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 36%, transparent 60%),
    linear-gradient(0deg, var(--night) 0%, transparent 26%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__name {
  display: flex; flex-direction: column;
  font-size: clamp(48px, 7.4vw, 140px); font-weight: 200; font-stretch: 150%;
  line-height: .9; text-transform: uppercase; letter-spacing: 0;
  animation: open-out 2.2s cubic-bezier(.2,.7,.1,1) both;
}
.hero__tagline {
  max-width: 34ch; margin-top: 32px;
  font-size: var(--t-md); line-height: 1.45; color: var(--mist);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@keyframes lights-up { from { filter: brightness(0); } 25% { filter: brightness(.2); } }
@keyframes open-out { from { font-stretch: 60%; opacity: 0; } 40% { opacity: 1; } }

/* Blocks clear their blur as they arrive */
.js .reveal {
  opacity: 0; filter: blur(10px); transform: translateY(18px);
  transition: opacity .9s ease, filter .9s ease, transform .9s cubic-bezier(.2,.7,.1,1);
}
.js .reveal.is-in { opacity: 1; filter: none; transform: none; }

/* Screen edges soften once you're past the hero */
.edge {
  position: fixed; left: 0; right: 0; height: 13vh; z-index: 15; pointer-events: none;
  opacity: 0; transition: opacity .6s;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.edge--top {
  top: 0; background: linear-gradient(rgba(0,0,0,.55), transparent);
  -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent);
}
.edge--bottom {
  bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.55));
  -webkit-mask-image: linear-gradient(transparent, #000 80%); mask-image: linear-gradient(transparent, #000 80%);
}
body.is-past-hero .edge { opacity: 1; }
body.is-pinned .edge, body.is-end .edge--bottom { opacity: 0; }

/* Numbers */
.numbers { padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(72px, 10vw, 128px); }
.numbers__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  border-top: 1px solid var(--line); padding-top: 36px;
}
.stat { display: flex; flex-direction: column-reverse; gap: 12px; }
.stat dd {
  font: 200 clamp(56px, 7.6vw, 124px)/.9 var(--font-display); font-stretch: 130%;
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
}
.stat dt { color: var(--mist); }

/* Library: a full-screen galaxy, every project a star */
.galaxy {
  position: relative; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 50% at var(--cx, 50%) var(--cy, 55%), rgba(30,70,160,.16), transparent 70%), var(--night);
}
.galaxy__dust {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  transform: translate3d(calc(var(--mx, 0) * -6px), calc(var(--my, 0) * -6px), 0);
}
.galaxy__core, .galaxy__flash {
  position: absolute; left: var(--cx, 50%); top: var(--cy, 55%); pointer-events: none; border-radius: 50%;
  translate: -50% -50%;
}
.galaxy__core {
  width: 46vmin; height: 46vmin;
  background: radial-gradient(closest-side, rgba(120,170,255,.35), rgba(59,139,255,.12) 45%, transparent);
  transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -10px), 0) scale(.6);
  opacity: .9; transition: transform 1.2s cubic-bezier(.2,.7,.1,1), opacity 1.2s;
}
.galaxy.is-charging .galaxy__core { transform: scale(1.15); opacity: 1; transition-duration: .7s; }
.galaxy.is-burst .galaxy__core { transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -10px), 0) scale(1); opacity: .45; }
.galaxy__flash {
  width: 20vmin; height: 20vmin; opacity: 0;
  box-shadow: 0 0 0 2px rgba(220,232,250,.7), 0 0 80px 20px rgba(59,139,255,.5);
}
.galaxy.is-burst .galaxy__flash { animation: shockwave 1.4s cubic-bezier(.1,.7,.2,1) forwards; }
@keyframes shockwave {
  0% { opacity: .9; transform: scale(.2); }
  100% { opacity: 0; transform: scale(7); }
}

.galaxy__space {
  position: absolute; inset: 0;
  transform: translate3d(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -16px), 0);
}
.galaxy__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.galaxy__line {
  fill: none; stroke: var(--window); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke;
}
.galaxy__line--faint { stroke-width: 1; opacity: .35; }
.galaxy__line--strong { stroke-width: 1.4; opacity: .8; filter: drop-shadow(0 0 6px rgba(59,139,255,.8)); }
.galaxy__line.is-drawing { animation: draw-line 1.1s cubic-bezier(.4,0,.2,1) both; }
@keyframes draw-line { from { stroke-dashoffset: 1; } }

/* A star: placed at its spot, but held at the core (offset by --ox/--oy) until the burst */
.star {
  --b: 1; --h: 1;
  position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 720 / 987;
  padding: 0; border: 0; background: none; cursor: pointer; z-index: 1;
  transform:
    translate(-50%, -50%)
    translate(calc(var(--ox, 0px) * var(--b)), calc(var(--oy, 0px) * var(--b)))
    rotate(calc(var(--rot) * var(--b)))
    scale(calc((1 + var(--b) * 1.1) * var(--h)));
  transition: transform 2s cubic-bezier(.12,.9,.18,1) var(--bd), opacity .5s, filter .5s;
}
.galaxy.is-burst .star { --b: 0; }
.galaxy.is-settled .star { transition: transform .5s cubic-bezier(.2,.7,.1,1), opacity .5s, filter .5s; }
.star__body {
  position: relative; display: block; width: 100%; height: 100%;
  animation: drift var(--dur) ease-in-out var(--delay) infinite;
}
.star__body::after {
  content: ""; position: absolute; inset: -1px; border-radius: 9px; pointer-events: none;
  box-shadow: 0 0 18px 2px rgba(59,139,255,.55);
  animation: twinkle var(--tw) ease-in-out var(--delay) infinite alternate;
}
.star__art {
  display: block; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; background: var(--raised);
  box-shadow: 0 0 0 1px rgba(220,232,250,.16);
}
.star__art img { width: 100%; height: 100%; object-fit: cover; }
.star__blank {
  display: grid; place-items: center; width: 100%; height: 100%;
  font: 400 calc(var(--w) * .34)/1 var(--font-display); font-stretch: 120%; color: var(--ice);
  background: radial-gradient(120% 80% at 100% 0%, rgba(59,139,255,.4), transparent 60%), var(--raised);
}
.galaxy.is-idle .star__body, .galaxy.is-idle .star__body::after { animation-play-state: paused; }
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: calc(var(--amp) * .4) calc(var(--amp) * -1); }
}
@keyframes twinkle { from { opacity: .15; } to { opacity: .8; } }

.star:focus-visible { outline: none; }
.star:focus-visible .star__art { box-shadow: 0 0 0 2px var(--window); }
.star.is-hot { --h: 2.4; z-index: 5; }
.star.is-hot .star__art { box-shadow: 0 0 0 1px rgba(59,139,255,.8), 0 18px 50px -10px rgba(59,139,255,.8); }
.galaxy.has-hot .star:not(.is-hot) { opacity: .5; }
.star.is-match { --h: 1.3; z-index: 3; }
.star.is-match .star__body::after { animation: none; opacity: 1; box-shadow: 0 0 24px 4px rgba(59,139,255,.8); }
.star.is-dim { --h: .5; opacity: .3; filter: grayscale(1) brightness(.7); }
.star.is-dim.is-hot { --h: 2.2; opacity: 1; filter: none; }

.galaxy__label {
  position: absolute; left: var(--lx, 0); top: var(--ly, 0); z-index: 6; pointer-events: none;
  display: grid; gap: 2px; max-width: 240px; padding: 10px 14px; border-radius: 12px;
  background: rgba(10,10,10,.72); border: 1px solid var(--line); backdrop-filter: blur(8px);
  transform: translate(0, -50%) scale(.96); opacity: 0; transition: opacity .25s, transform .25s;
}
.galaxy__label.is-flipped { transform: translate(-100%, -50%) scale(.96); }
.galaxy__label.is-on { opacity: 1; transform: translate(0, -50%); }
.galaxy__label.is-flipped.is-on { transform: translate(-100%, -50%); }
.galaxy__label strong { font-weight: 500; line-height: 1.3; }
.galaxy__label span { font-size: var(--t-sm); color: var(--mist); }

.galaxy__head {
  position: absolute; left: var(--gutter); top: 0; z-index: 7; max-width: calc(100% - 2 * var(--gutter));
  padding-top: clamp(84px, 11vh, 120px); pointer-events: none;
}
.galaxy__head > * { pointer-events: auto; }
.galaxy__head h2 { font-size: clamp(34px, 4.4vw, 60px); }
.galaxy__count { color: var(--mist); margin-top: 8px; }
.galaxy__hint { margin-top: 4px; font-size: var(--t-sm); color: var(--mist); opacity: .7; }

/* Filter dock: frosted glass console at the bottom of the galaxy */
.dock {
  position: absolute; left: 50%; bottom: clamp(16px, 3.5vh, 32px); z-index: 7;
  translate: -50% 0; max-width: calc(100% - 2 * var(--gutter));
  padding: 6px; border-radius: 999px;
  background: rgba(14,16,22,.62); border: 1px solid rgba(220,232,250,.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05);
}
.dock__track {
  position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  border-radius: 999px;
}
.dock__track::-webkit-scrollbar { display: none; }
.dock__glow {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(59,139,255,.32), rgba(59,139,255,.16));
  box-shadow: inset 0 0 0 1px rgba(59,139,255,.55), 0 0 24px -4px rgba(59,139,255,.7);
  transition: transform .55s cubic-bezier(.3,1.3,.5,1), width .55s cubic-bezier(.3,1.3,.5,1);
}
.dock__chip {
  position: relative; z-index: 1; flex: none;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 500 15px/1 var(--font-body); color: var(--mist); white-space: nowrap;
  transition: color .25s, background-color .25s;
}
.dock__chip:hover { color: var(--ice); background-color: rgba(220,232,250,.05); }
.dock__chip[aria-selected="true"] { color: var(--ice); background-color: transparent; }
.dock__chip:focus-visible { outline: 2px solid var(--window); outline-offset: -2px; }
.dock__star {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mist); opacity: .55;
  transition: background-color .3s, opacity .3s, box-shadow .3s, scale .3s;
}
.dock__chip:hover .dock__star { opacity: 1; background: var(--ice); }
.dock__chip[aria-selected="true"] .dock__star {
  opacity: 1; background: #fff; scale: 1.3;
  box-shadow: 0 0 0 3px rgba(59,139,255,.3), 0 0 10px 2px var(--window);
}
.dock__count { font-size: 12px; color: var(--mist); font-variant-numeric: tabular-nums; opacity: .8; }
.dock__chip[aria-selected="true"] .dock__count { color: var(--ice); }

::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2,.7,.1,1); }

/* About */
.about {
  display: grid; gap: clamp(32px, 6vw, 88px); align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  background: var(--deep);
}
.about__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; border-radius: 18px; background: var(--raised); }
.about__text { max-width: 62ch; }
.about__text p { color: var(--mist); margin-top: 18px; }
.about__text .about__lead { color: var(--ice); font-size: var(--t-md); line-height: 1.5; margin-top: 32px; }

/* Skills: the whole set first, then the camera zooms into each skill */
.skills { position: relative; height: calc((var(--steps, 7) + 1) * 100svh); }
.skills__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.skills__overview {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 80px; max-width: 1440px; margin: 0 auto; will-change: transform, opacity;
}
.skills__overview h2 { font-size: clamp(40px, 6vw, 96px); font-weight: 200; font-stretch: 140%; }
.skills__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(24px, 4vh, 44px);
}
.skills__tile {
  padding: clamp(18px, 2vw, 26px); border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(59,139,255,.06), rgba(255,255,255,.01));
}
.skills__tile h3 { font: 400 var(--t-md)/1.2 var(--font-display); font-stretch: 115%; }
.skills__tile p { margin-top: 10px; font-size: var(--t-sm); line-height: 1.6; color: var(--mist); }
.skills__cue { margin-top: 24px; font-size: var(--t-sm); color: var(--mist); }
.slide {
  position: absolute; inset: 0; visibility: hidden; background: var(--night);
  transform-origin: 0 0; will-change: transform, clip-path;
}
.slide__inner { opacity: var(--content, 1); }
.slide::after {
  content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none;
}
.slide__bg { position: absolute; inset: -8%; will-change: transform; }
.slide__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(42px) saturate(1.3) brightness(.5); }
.slide__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 10%, rgba(0,0,0,.3)), rgba(8,30,70,.25);
}
.slide__inner {
  position: relative; height: 100%; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 6vw, 96px); padding: 96px var(--gutter);
}
.slide__text {
  transform: translate3d(0, calc(var(--local, 0) * -40px), 0);
  opacity: calc(1 - max(var(--local, 0), 0) * 1.4);
}
.slide__count { color: var(--window); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.slide h3 {
  font-size: clamp(40px, 5vw, 88px); font-weight: 200; font-stretch: 115%; line-height: .98;
  letter-spacing: -0.02em; margin: 18px 0 26px;
}
.slide__blurb { font-size: var(--t-md); line-height: 1.45; max-width: 36ch; }
.slide__items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; max-width: 580px; }
.slide__items li {
  padding: 7px 14px; border-radius: 999px; font-size: var(--t-sm);
  border: 1px solid rgba(220,232,250,.18); background: rgba(255,255,255,.04);
}
.slide__card {
  aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 120px -40px rgba(59,139,255,.6);
  transform: translate3d(0, calc(var(--local, 0) * -70px), 0) rotate(calc(var(--local, 0) * -2deg));
}
.slide__card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.skills__progress {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 16px; color: var(--mist); font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}
.skills__counter { min-width: 3.5em; }
.skills__bar { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.skills__bar i {
  position: absolute; inset: 0; background: var(--window); transform-origin: left; transform: scaleX(0);
}

/* Tools: an orbit with Unity at the centre */
.tools {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center;
  gap: clamp(32px, 6vw, 96px); padding: clamp(72px, 10vw, 128px) var(--gutter); overflow: hidden;
}
.tools__intro { color: var(--mist); font-size: var(--t-md); line-height: 1.5; margin-top: 20px; max-width: 34ch; }
.tools__detail { margin-top: 44px; min-height: 150px; padding-left: 20px; border-left: 2px solid var(--window); }
.tools__name { font: 300 var(--t-lg)/1.1 var(--font-display); font-stretch: 120%; }
.tools__use { margin-top: 10px; color: var(--mist); max-width: 40ch; }
.orbit { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; margin-inline: auto; }
.orbit__ring {
  position: absolute; border-radius: 50%; border: 1px dashed rgba(220,232,250,.14); pointer-events: none;
  animation: spin var(--spin) linear infinite; animation-direction: var(--dir);
}
.orbit__ring--1 { inset: 29%; --spin: 46s; --dir: normal; --cdir: reverse; }
.orbit__ring--2 { inset: 15%; --spin: 72s; --dir: reverse; --cdir: normal; }
.orbit__ring--3 { inset: 2%; --spin: 100s; --dir: normal; --cdir: reverse; }
.orbit__arm { position: absolute; inset: 0; transform: rotate(var(--a)); pointer-events: none; }
.orbit__upright { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); }
.orbit__tool {
  display: block; pointer-events: auto; white-space: nowrap; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(14,16,22,.85); color: var(--ice); font: 500 14px/1 var(--font-body);
  animation: spin var(--spin) linear infinite; animation-direction: var(--cdir);
  transition: border-color .25s, box-shadow .25s, color .25s, scale .25s;
}
.orbit__tool:hover, .orbit__tool.is-active {
  border-color: var(--window); color: #fff; scale: 1.08;
  box-shadow: 0 0 0 4px rgba(59,139,255,.15), 0 0 24px rgba(59,139,255,.6);
}
.orbit__tool:focus-visible, .orbit__sun:focus-visible { outline: 2px solid var(--window); outline-offset: 3px; }
.orbit__sun {
  position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1; translate: -50% -50%;
  border: 0; border-radius: 50%; cursor: pointer; color: var(--night);
  font: 500 clamp(15px, 1.8vw, 22px)/1 var(--font-display); font-stretch: 120%;
  background: radial-gradient(circle at 35% 30%, #fff, #a9cbff 28%, var(--window) 62%, #0b2a66);
  box-shadow: 0 0 60px 8px rgba(59,139,255,.5), 0 0 160px 40px rgba(59,139,255,.18);
  animation: breathe 5s ease-in-out infinite alternate;
}
.orbit.is-paused .orbit__ring, .orbit.is-paused .orbit__tool,
.orbit.is-idle .orbit__ring, .orbit.is-idle .orbit__tool, .orbit.is-idle .orbit__sun { animation-play-state: paused; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { to { scale: 1.05; box-shadow: 0 0 80px 14px rgba(59,139,255,.6), 0 0 200px 60px rgba(59,139,255,.22); } }

/* Workflow: a line that fills as you scroll, each step lights up in turn */
.workflow { padding: clamp(72px, 10vw, 128px) var(--gutter); background: var(--deep); }
.flow { position: relative; margin-top: 64px; }
.flow__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.flow__line i {
  position: absolute; inset: 0; background: var(--window); box-shadow: 0 0 12px var(--window);
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.flow__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.flow__step { position: relative; padding-top: 44px; transition: opacity .6s; }
.js .flow__step { opacity: .35; }
.js .flow__step.is-lit { opacity: 1; }
.flow__node {
  position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--deep); border: 1px solid var(--line); transition: background .5s, border-color .5s, box-shadow .5s;
}
.flow__step.is-lit .flow__node {
  background: var(--window); border-color: var(--window);
  box-shadow: 0 0 0 6px rgba(59,139,255,.15), 0 0 20px var(--window);
}
.flow__num { font: 300 var(--t-md)/1 var(--font-display); font-stretch: 120%; color: var(--mist); }
.flow__step h3 { font: 500 var(--t-md)/1.3 var(--font-body); margin: 14px 0 8px; }
.flow__text { color: var(--mist); font-size: var(--t-sm); line-height: 1.6; }

/* FAQ */
.faq {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(72px, 10vw, 128px) var(--gutter);
}
.faq__side p { color: var(--mist); margin-top: 20px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; border: 0; background: none; color: var(--ice); text-align: left; cursor: pointer;
  font: 400 var(--t-md)/1.35 var(--font-body);
}
.faq__q:hover span { color: #fff; }
.faq__icon {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  transition: transform .4s cubic-bezier(.2,.7,.1,1), border-color .3s, background-color .3s;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px; background: var(--ice);
  translate: -50% -50%;
}
.faq__icon::after { rotate: 90deg; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); border-color: var(--window); background-color: rgba(59,139,255,.15); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.1,1); }
.faq__a > div { overflow: hidden; visibility: hidden; transition: visibility 0s .45s; }
.faq__a p {
  color: var(--mist); max-width: 62ch; padding-bottom: 26px;
  opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > div { visibility: visible; transition-delay: 0s; }
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: .08s; }

/* Experience: a road that draws itself */
.experience { padding: clamp(72px, 10vw, 128px) var(--gutter); }
.road { position: relative; margin-top: 64px; }
.road__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.road__line i {
  position: absolute; inset: 0; background: var(--window); transform-origin: top; transform: scaleY(0);
  box-shadow: 0 0 14px var(--window);
}
.road__stops { display: grid; gap: 36px; }
.stop { position: relative; width: 50%; padding-right: 56px; }
.stop:nth-child(even) { margin-left: 50%; padding: 0 0 0 56px; }
.stop__node {
  position: absolute; top: 26px; right: -7px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--night); border: 1px solid var(--line);
  transition: background .5s, border-color .5s, box-shadow .5s;
}
.stop:nth-child(even) .stop__node { right: auto; left: -6px; }
.stop.is-lit .stop__node {
  background: var(--window); border-color: var(--window);
  box-shadow: 0 0 0 6px rgba(59,139,255,.15), 0 0 24px var(--window);
}
.stop__card {
  padding: 24px 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.015);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.1,1), border-color .7s;
}
.js .stop__card { opacity: .3; transform: translateY(24px); }
.js .stop.is-lit .stop__card { opacity: 1; transform: none; border-color: rgba(59,139,255,.3); }
.stop__when { font: 400 var(--t-md)/1.1 var(--font-display); font-stretch: 120%; margin-bottom: 10px; }
.stop h3 { font: 500 var(--t-md)/1.3 var(--font-body); }
.stop__company { color: var(--window); margin: 2px 0 10px; }
.stop__text { color: var(--mist); }

/* Reviews: one voice at a time */
.reviews { padding: clamp(72px, 10vw, 128px) var(--gutter); background: var(--deep); }
.reviews h2 { font-size: var(--t-lg); color: var(--mist); }
.spotlight {
  margin: 40px 0 36px; min-height: clamp(300px, 34vw, 440px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.spotlight__quote {
  font: 300 clamp(28px, 4.4vw, 60px)/1.15 var(--font-display); font-stretch: 112%;
  letter-spacing: -0.01em; max-width: 26ch;
  transition: opacity .4s ease, filter .4s ease;
}
.spotlight__quote.is-long { font-size: clamp(22px, 2.9vw, 40px); max-width: 40ch; }
.spotlight__quote span {
  display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.25em);
  transition: opacity .6s ease, filter .6s ease, transform .6s cubic-bezier(.2,.7,.1,1);
  transition-delay: calc(var(--w) * 38ms);
}
.spotlight__quote.is-showing span { opacity: 1; filter: none; transform: none; }
.spotlight__quote.is-leaving { opacity: 0; filter: blur(12px); }
.spotlight__quote footer {
  font: 400 var(--t-sm)/1 var(--font-body); color: var(--mist); margin-top: 28px;
  opacity: 0; transition: opacity .6s ease .5s;
}
.spotlight__quote.is-showing footer { opacity: 1; }
.spotlight__controls { display: flex; align-items: center; gap: 16px; }
.spotlight__step {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none;
  color: var(--ice); font-size: 24px; line-height: 1; cursor: pointer; transition: border-color .2s;
}
.spotlight__step:hover { border-color: var(--window); }
.spotlight__dots { display: flex; gap: 6px; }
.spotlight__dots button { width: 30px; padding: 12px 0; border: 0; background: none; cursor: pointer; }
.spotlight__dots i { display: block; height: 3px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.spotlight__dots i::after {
  content: ""; position: absolute; inset: 0; background: var(--window); transform-origin: left; transform: scaleX(0);
}
.spotlight__dots [aria-selected="true"] i::after { animation: fill-bar var(--t, 6s) linear forwards; }
.spotlight.is-paused [aria-selected="true"] i::after { animation-play-state: paused; }
@keyframes fill-bar { to { transform: scaleX(1); } }
.reviews .text-link { display: inline-block; }

/* Contact: the window light comes back */
.contact {
  position: relative; overflow: hidden;
  padding: clamp(96px, 14vw, 180px) var(--gutter);
  background:
    radial-gradient(60% 90% at 100% 50%, rgba(59,139,255,.28), transparent 70%),
    var(--deep);
}
.contact p { color: var(--mist); font-size: var(--t-md); max-width: 44ch; margin: 22px 0 40px; line-height: 1.5; }
.contact__email {
  display: inline-block; max-width: 100%; overflow-wrap: anywhere;
  font: 300 clamp(24px, 4.4vw, 58px)/1.1 var(--font-display); font-stretch: 112%;
  color: var(--ice); text-decoration: none; border-bottom: 1px solid var(--window); padding-bottom: 8px;
  transition: color .2s, text-shadow .2s;
}
.contact__email:hover { color: #fff; text-shadow: 0 0 28px rgba(59,139,255,.8); }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.footer { padding: 28px var(--gutter); color: var(--mist); font-size: var(--t-sm); border-top: 1px solid var(--line); }

/* Modal */
.modal {
  margin: auto; width: min(1080px, calc(100% - 32px)); max-height: calc(100svh - 32px);
  background: var(--deep); color: var(--ice); border: 1px solid var(--line); border-radius: 10px;
  padding: 0; overflow: hidden;
}
.modal[open] { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); animation: pop .2s ease-out; }
.modal::backdrop { background: rgba(0,0,0,.85); backdrop-filter: blur(6px); }
.modal__media { position: relative; background: var(--night); display: grid; place-items: center; min-height: 320px; }
.modal__media img { max-height: calc(100svh - 34px); width: 100%; object-fit: contain; }
.modal__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(220,232,250,.12); color: var(--ice); font-size: 28px; line-height: 1; cursor: pointer;
}
.modal__nav:hover { background: rgba(220,232,250,.24); }
.modal__nav--prev { left: 12px; } .modal__nav--next { right: 12px; }
.modal__nav[hidden] { display: none; }
.modal__body { padding: 44px 32px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.modal__cat { color: var(--window); font-size: var(--t-sm); }
.modal__body h3 { font-size: var(--t-lg); font-weight: 400; font-stretch: 120%; margin-top: -8px; }
.modal__blurb { color: var(--mist); }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--raised); color: var(--ice); font-size: 24px; line-height: 1; cursor: pointer;
}
.modal__meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: var(--t-sm); width: 100%; }
.modal__meta dt { color: var(--mist); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--mist); }
.modal__links { display: flex; flex-wrap: wrap; gap: 8px; }
.modal__links .btn { padding: 10px 18px; font-size: 15px; }
.modal__thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.modal__thumbs button { width: 54px; height: 54px; border-radius: 4px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--night); }
.modal__thumbs button[aria-current="true"] { border-color: var(--window); }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal--no-media[open] { grid-template-columns: 1fr; width: min(640px, calc(100% - 32px)); }
.modal--no-media .modal__media { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.98); } }

@media (max-width: 900px) {
  .skills__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-template-columns: 1fr; }
  .tools__detail { min-height: 0; }
  .orbit { max-width: 520px; }
  .flow__line { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow__line i { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .flow__steps { grid-template-columns: 1fr; gap: 36px; }
  .flow__step { padding: 0 0 0 44px; }
  .flow__node { top: 2px; }
  .faq { grid-template-columns: 1fr; }
  .numbers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .slide__inner { grid-template-columns: 1fr; align-content: center; gap: 28px; padding: 84px var(--gutter) 80px; }
  .slide__card { order: -1; aspect-ratio: 16 / 10; max-height: 32svh; width: 100%; }
}

@media (max-width: 760px) {
  .nav__links a:not(:last-child) { display: none; }
  .hero__photo { object-position: 74% 30%; opacity: .75; }
  .hero::after { background: linear-gradient(0deg, var(--night) 8%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.2) 100%); }
  .hero__name { font-size: clamp(40px, 13.5vw, 96px); font-stretch: 125%; font-weight: 300; }
  .skills__overview { padding: 76px var(--gutter) 64px; }
  .skills__grid { gap: 8px; margin-top: 18px; }
  .skills__tile { padding: 12px 14px; border-radius: 14px; }
  .skills__tile h3 { font-size: 16px; }
  .skills__tile p { font-size: 12px; line-height: 1.45; margin-top: 6px; }
  .skills__cue { margin-top: 14px; }
  .orbit__tool { padding: 4px 8px; font-size: 10.5px; }
  .orbit { width: 92%; }
  .orbit__ring--1 { inset: 32%; }
  .orbit__ring--2 { inset: 18%; }
  .orbit__ring--3 { inset: 5%; }
  .orbit__sun { width: 19%; }
  .faq__q { font-size: var(--t-base); padding: 20px 0; }
  .dock { left: var(--gutter); right: var(--gutter); translate: none; max-width: none; }
  .dock__chip { height: 38px; padding: 0 13px; font-size: 14px; }
  .dock__track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
  .star__art { border-radius: 6px; }
  .star.is-hot { --h: 1.8; }
  .about { grid-template-columns: 1fr; }
  .slide h3 { font-size: clamp(36px, 11vw, 60px); margin: 12px 0 16px; }
  .slide__blurb { font-size: var(--t-base); }
  .slide__items { margin-top: 20px; }
  .road__line { left: 6px; }
  .stop, .stop:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 0 34px; }
  .stop__node, .stop:nth-child(even) .stop__node { left: 0; right: auto; }
  .edge { height: 9vh; }
  .contact { background: radial-gradient(120% 60% at 100% 100%, rgba(59,139,255,.25), transparent 70%), var(--deep); }
  .modal[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .modal__media img { max-height: 55svh; }
  .modal__body { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .stop__card { opacity: 1; filter: none; transform: none; }
  .galaxy__flash { display: none; }
  .spotlight__quote span { opacity: 1; filter: none; transform: none; }
  .spotlight__dots [aria-selected="true"] i::after { transform: none; }
  .edge { display: none; }
  .skills { height: auto; }
  .skills__stage { position: static; height: auto; overflow: visible; }
  .skills__overview { position: static; }
  .slide__inner { opacity: 1; }
  .slide { position: relative; visibility: visible; min-height: 80svh; }
  .skills__progress { display: none; }
}

[hidden] { display: none !important; }

/* ========== The fun layer ========== */

/* Hover reveals: two lines share one spot, letters roll between them */
.swap { position: relative; display: inline-grid; vertical-align: top; cursor: default; outline-offset: 4px; }
.swap__a, .swap__b { grid-area: 1 / 1; }
.swap__w { display: inline-block; white-space: nowrap; }
.swap__c {
  display: inline-block; white-space: pre;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s, filter .4s;
  transition-delay: calc(var(--i) * 12ms);
}
.swap__b .swap__c { transform: translateY(80%); opacity: 0; filter: blur(4px); }
.swap__b { color: var(--window); }
.swap:hover .swap__a .swap__c, .swap:focus-visible .swap__a .swap__c, .swap.is-flipped .swap__a .swap__c {
  transform: translateY(-80%); opacity: 0; filter: blur(4px);
}
.swap:hover .swap__b .swap__c, .swap:focus-visible .swap__b .swap__c, .swap.is-flipped .swap__b .swap__c {
  transform: none; opacity: 1; filter: none;
}
.hero__role { color: var(--mist); font-size: var(--t-md); margin-bottom: 18px; }
.btn.magnetic { transition: background .2s, color .2s, border-color .2s, box-shadow .2s, translate .35s cubic-bezier(.2,.8,.2,1); }

/* The band */
.band { overflow: hidden; padding: clamp(20px, 3vw, 36px) 0; border-block: 1px solid var(--line); }
.band__track { display: flex; width: max-content; will-change: transform; }
.band__run { display: flex; align-items: center; flex: none; }
.band__word {
  font: 200 clamp(40px, 7vw, 104px)/1 var(--font-display); font-stretch: 130%; letter-spacing: -0.02em;
  padding: 0 clamp(18px, 2.4vw, 36px); white-space: nowrap; color: var(--ice);
}
.band__word:nth-child(4n + 3) { color: transparent; -webkit-text-stroke: 1px rgba(220,232,250,.55); }
.band__star { color: var(--window); font-size: clamp(18px, 2.4vw, 32px); text-shadow: 0 0 18px var(--window); }

/* Contact groups and download buttons */
.contact__rows { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 28px 56px; margin-top: 48px; }
.contact .contact__label { font-size: var(--t-sm); color: var(--mist); margin: 0 0 12px; max-width: none; }
.contact__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.btn__tag {
  font-size: 12px; padding: 3px 8px; margin-right: 10px; border-radius: 999px;
  background: rgba(59,139,255,.16); color: var(--ice);
}
.btn__size { font-size: 12px; color: var(--mist); margin-left: 10px; }
#contact-files .btn { border-color: rgba(59,139,255,.5); }
#contact-files .btn:hover { background: rgba(59,139,255,.14); }

/* Footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer__console {
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  color: var(--mist); font: 500 13px/1 var(--font-body); cursor: pointer; transition: color .2s, border-color .2s;
}
.footer__console:hover { color: var(--ice); border-color: var(--window); }
.footer__console kbd {
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; margin-left: 6px;
  padding: 2px 6px; border-radius: 5px; background: var(--raised); color: var(--ice);
}

/* Star cursor */
.has-star-cursor, .has-star-cursor * { cursor: none !important; }
.has-star-cursor .console__input { cursor: text !important; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; }
.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 2px rgba(120,170,255,.9);
}
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1px solid rgba(120,170,255,.55); display: grid; place-items: center;
  transition: width .3s, height .3s, margin .3s, background-color .3s, border-color .3s, opacity .3s;
}
.cursor-ring__label { font: 500 11px/1 var(--font-body); color: var(--night); opacity: 0; transition: opacity .2s; }
.cursor-hot .cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(59,139,255,.12); border-color: var(--window); }
.cursor-secret .cursor-ring { width: 40px; height: 40px; margin: -58px 0 0 6px; background: var(--ice); border-color: var(--ice); }
.cursor-secret .cursor-ring__label { opacity: 1; }

.cursor-down .cursor-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor-away .cursor-ring, .cursor-away .cursor-dot { opacity: 0; }
.cursor-trail { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9999; pointer-events: none; }

/* Toasts */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 10001; translate: -50% 20px; opacity: 0;
  display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 16px;
  background: rgba(14,16,22,.9); border: 1px solid rgba(59,139,255,.45); backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.8), 0 0 40px -10px rgba(59,139,255,.6);
  transition: opacity .35s, translate .5s cubic-bezier(.2,1.3,.4,1);
}
.toast.is-on { opacity: 1; translate: -50% 0; }
.toast__badge {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-size: 18px;
  background: radial-gradient(circle at 35% 30%, #fff, var(--window) 60%, #0b2a66); color: var(--night);
}
.toast strong { display: block; font-weight: 600; }
.toast span span { font-size: var(--t-sm); color: var(--mist); }

/* Hyperspace */
.warp { position: fixed; inset: 0; z-index: 10000; pointer-events: none; background: #000; transition: opacity .6s; }
.warp.is-done { opacity: 0; }

/* FPS meter */
.fps {
  position: fixed; left: 14px; bottom: 14px; z-index: 10001; padding: 6px 10px; border-radius: 8px;
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #7dffa8; background: rgba(0,0,0,.75);
  border: 1px solid rgba(125,255,168,.3);
}

/* The console */
.console {
  position: fixed; left: 0; right: 0; top: 0; z-index: 10002; height: min(52vh, 460px);
  display: flex; flex-direction: column;
  background: rgba(6,8,12,.94); border-bottom: 1px solid rgba(59,139,255,.5);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); backdrop-filter: blur(14px);
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transform: translateY(-100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.console.is-open { transform: none; }
.console__bar {
  display: flex; justify-content: space-between; align-items: center; padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line); color: var(--mist); font-size: 12px;
}
.console__close { background: none; border: 0; color: var(--mist); font: inherit; cursor: pointer; }
.console__close:hover { color: var(--ice); }
.console__out { flex: 1; overflow-y: auto; padding: 14px var(--gutter); white-space: pre-wrap; }
.console__line { color: var(--ice); }
.console__line.is-cmd { color: var(--mist); }
.console__line.is-err { color: #ff8a8a; }
.console__line.is-accent { color: var(--window); }
.console__form { display: flex; gap: 10px; align-items: center; padding: 10px var(--gutter) 14px; border-top: 1px solid var(--line); }
.console__prompt { color: #7dffa8; white-space: nowrap; }
.console__input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ice); font: inherit; caret-color: var(--window); }

/* Console toys */
.wireframe *:not(.console):not(.console *) { outline: 1px solid rgba(59,139,255,.35) !important; }
.noclip main { animation: fall 1.6s ease-in both; }
@keyframes fall { 50% { filter: blur(2px) hue-rotate(40deg); } }

@media (max-width: 900px) {
  .contact__rows { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .contact__email { font-size: clamp(18px, 6.4vw, 28px); overflow-wrap: normal; word-break: keep-all; }
  .hero__role { font-size: var(--t-base); margin-bottom: 12px; }
  .hero__cta .btn { padding: 12px 18px; }
  .console { height: 60vh; font-size: 13px; }
  .console__prompt { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .swap__c { transition: none; }
}
