/* ============ Tokens ============ */
:root {
  --bg: #151516;
  --bg-2: #1a1a1b;
  --surface: #1d1d1f;
  --surface-2: #252527;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --fg: #ededee;
  --fg-2: #a9a9ad;
  --fg-3: #85858a;
  --fg-4: #505054;
  --accent: #36b3cc;
  --accent-ink: #032a33;
  --accent-dim: rgba(54, 179, 204, 0.14);
  --hw: #030303; /* hardware black: notch, island */

  --f-pixel: "Departure Mono", ui-monospace, "SF Mono", monospace;
  --f-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --r-ctl: 16px;
  --r-win: 18px;
  --r-card: 28px;

  --wrap: 1240px;
  --gutter: 24px;
  --topbar: 76px;

  /* Pixel face sits on an 11px grid: only multiples stay crisp */
  --px-h1: 88px;
  --px-h2: 66px;
  --px-h3: 44px;
}

@media (max-width: 1199px) { :root { --px-h1: 77px; } }
@media (max-width: 1023px) { :root { --px-h1: 66px; --px-h2: 55px; } }
@media (max-width: 799px)  { :root { --px-h1: 55px; --px-h2: 44px; --px-h3: 33px; } }
@media (max-width: 599px)  { :root { --px-h1: 44px; --gutter: 16px; --topbar: 64px; } }
@media (max-width: 379px)  { :root { --px-h1: 33px; --px-h2: 33px; } }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #333336 var(--bg); scrollbar-width: thin; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::after { /* grain, fixed and inert */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #303033; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3c3c40; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, canvas { display: block; }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.i { width: 1em; height: 1em; flex: none; fill: currentColor; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 10px 16px; border-radius: var(--r-ctl);
  background: var(--fg); color: var(--bg); font-weight: 500;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip:focus-visible { transform: none; }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }

/* ============ Buttons ============ */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: var(--r-ctl);
  font: 500 17px/1 var(--f-sans); letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn .i { width: 20px; height: 20px; }
.btn:active { transform: scale(0.975); transition-duration: .1s; }
.btn--primary {
  background: #f3f3f4; color: #111112;
  box-shadow: inset 0 1px 0 #fff, 0 12px 32px -14px rgba(0, 0, 0, 0.9);
}
.btn--primary:hover { background: #fff; transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 18px 40px -16px rgba(255, 255, 255, 0.28); }
.btn--ghost { background: rgba(255, 255, 255, 0.055); color: #e6e6e8; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.btn--line { background: rgba(255, 255, 255, 0.02); color: #e6e6e8; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.btn--line:hover { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 16px; gap: 9px; }
.btn--sm .i { width: 18px; height: 18px; }

/* ============ Top bar ============ */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 30px;
  max-width: calc(var(--wrap) + var(--gutter) * 2); height: var(--topbar);
  margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: #9d9da2; transition: color .25s; }
.brand:hover { color: var(--fg); }
.brand .mark { width: 34px; height: 24px; color: #f1f1f2; }
.brand__word { font: 600 15.5px/1 var(--f-sans); letter-spacing: 0.17em; white-space: nowrap; }
/* header wordmark: //g stays, "ordonsites" (same Geist outlines as the g) slides out from behind the g */
.brand__svg { display: block; flex: none; width: 198px; height: 27px; overflow: hidden; color: #f1f1f2; } /* explicit size: Safari collapses a viewBox-only SVG in a flex row */
.brand__slash { fill: var(--accent); }
.brand__svg path { fill: currentColor; }
.brand__svg .brand__slash { fill: var(--accent); }
.brand__lt { will-change: transform; }
.js .brand--head:not(.is-ready) .brand__lt { opacity: 0; animation: failsafe .3s linear 2.5s forwards; }
.topnav { display: flex; gap: 26px; }
.topnav a { font-size: 16px; color: var(--fg-2); transition: color .25s; }
.topnav a:hover { color: var(--fg); }

.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 6px; color: var(--fg-2); font-size: 16px; transition: color .25s; }
.lang__btn:hover, .lang__btn[aria-expanded="true"] { color: var(--fg); }
.lang__btn .i { width: 18px; height: 18px; }
.lang__btn .i--caret { width: 13px; height: 13px; transition: transform .35s var(--ease-out); }
.lang__btn[aria-expanded="true"] .i--caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: -8px; min-width: 150px;
  margin: 0; padding: 6px; list-style: none; border-radius: 18px;
  background: #0c0c0d; box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -12px rgba(0, 0, 0, 0.8);
  transform-origin: 80% 0; animation: pop .35s var(--ease-out);
}
.lang__menu button { width: 100%; padding: 9px 12px; border-radius: 12px; text-align: left; font-size: 15px; color: var(--fg-2); }
.lang__menu button:hover, .lang__menu button[aria-selected="true"] { color: var(--fg); background: rgba(255, 255, 255, 0.07); }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(-4px); } }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding-top: var(--topbar);
  background: radial-gradient(130% 62% at 50% 0%, #2d2d2f 0%, #202021 42%, var(--bg) 78%);
  isolation: isolate;
  overflow-x: clip;
}
.glyphs {
  position: absolute; left: 0; right: 0; top: calc(var(--topbar) - 8px);
  width: 100%; height: min(900px, 96vh); z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 58%, transparent 96%), linear-gradient(90deg, transparent 2%, #000 16%, #000 84%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 58%, transparent 96%), linear-gradient(90deg, transparent 2%, #000 16%, #000 84%, transparent 98%);
  mask-composite: intersect;
}
.light {
  position: absolute; top: 0; left: 50%; z-index: -1;
  width: min(1700px, 150vw); height: min(1100px, 120vh);
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 34% 52% at 50% 0%, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035) 48%, transparent 72%);
}
.light i {
  position: absolute; inset: 0;
  /* soft-edged rays drawn by the gradient itself: a live blur over a layer this size costs every frame */
  background: repeating-conic-gradient(from 150deg at 50% -6%, transparent 0deg, rgba(255, 255, 255, 0.05) 1.3deg, transparent 2.9deg, transparent 4.3deg, rgba(255, 255, 255, 0.028) 5.5deg, transparent 6.8deg, transparent 9deg);
  -webkit-mask-image: radial-gradient(ellipse 40% 72% at 50% 0%, #000 8%, transparent 74%);
  mask-image: radial-gradient(ellipse 40% 72% at 50% 0%, #000 8%, transparent 74%);
  transform-origin: 50% 0; will-change: transform;
  animation: sway 18s var(--ease-in-out) infinite alternate;
}
@keyframes sway { from { transform: rotate(-2.2deg); opacity: .8; } to { transform: rotate(2.2deg); opacity: 1; } }

.hero__inner { position: relative; text-align: center; padding: clamp(64px, 13vh, 150px) var(--gutter) 0; }
.hero__title {
  margin: 0; font: 400 var(--px-h1)/1.26 var(--f-pixel); color: #f1f1f2; letter-spacing: 0;
  display: flex; flex-direction: column; align-items: center;
  text-wrap: balance;
}
.hero__line { display: block; white-space: nowrap; }
.hero__word { color: var(--accent); }
.hero__sub { margin: 30px auto 0; max-width: 780px; font-size: 22px; line-height: 1.5; color: #b8b8bc; letter-spacing: -0.01em; }
.hero__sub span { display: block; }
.hero__ctas { display: flex; justify-content: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* scramble glyphs render dimmer than settled letters */
.sc { color: var(--fg-4); }
.hero__word .sc { color: rgba(54, 179, 204, 0.45); }

/* ============ Stage / laptop ============ */
.stage { position: relative; margin-top: clamp(64px, 10vh, 112px); padding: 0 var(--gutter); perspective: 2000px; perspective-origin: 50% 0%; }
.laptop { max-width: 1240px; margin: 0 auto; transform-origin: 50% 0%; will-change: transform; }
.laptop__lid {
  position: relative; container-type: inline-size;
  padding: 1.1% 1.1% 1.5%;
  background: #0a0a0b; border-radius: 26px 26px 12px 12px;
  box-shadow: 0 0 0 1.5px #2c2c2f, inset 0 0 0 1px #000, inset 0 2px 0 rgba(255, 255, 255, 0.06), 0 60px 140px -40px rgba(0, 0, 0, 0.9);
}
.laptop__base {
  position: relative; height: clamp(10px, 1.6vw, 20px); margin: 0 -3.5%;
  background: linear-gradient(180deg, #4a4a4e 0%, #2a2a2d 30%, #161618 100%);
  border-radius: 2px 2px 26px 26px / 2px 2px 16px 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.laptop__base::before { content: ""; position: absolute; top: 0; left: 50%; width: 14%; height: 45%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: linear-gradient(#1b1b1d, #2d2d30); }

.screen {
  --win-font: max(9.5px, 1.02cqw);
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 10px 10px 3px 3px; background: #2748c8;
  font-size: max(10px, 1.04cqw);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.wallpaper { position: absolute; inset: 0; background: url("../img/wallpaper.webp") center / cover no-repeat; transform: scale(1.04); }

.menubar {
  position: absolute; inset: 0 0 auto; z-index: 40; height: 2.3em;
  display: flex; align-items: center; gap: 1.35em; padding: 0 1.2em;
  font: 500 1em/1 var(--f-sans); color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(180deg, rgba(20, 16, 40, 0.28), rgba(20, 16, 40, 0.12));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.menubar b { font-weight: 650; }
.menubar .mark { --mark-slash: currentColor; width: 1.5em; height: 1.05em; }
.menubar__items { display: flex; gap: 1.35em; font-weight: 450; opacity: 0.92; }
.menubar__right { margin-left: auto; display: flex; align-items: center; gap: 1.1em; }
.menubar__right .i { width: 1.15em; height: 1.15em; }
.menubar__right time { font-variant-numeric: tabular-nums; }

/* ============ Island (shared) ============ */
/* the concave ears beside a notch are tiny SVG fillets (a radial gradient left a hairline in WebKit) */
.island {
  position: relative; overflow: hidden;
  background: var(--hw); color: #f4f4f5;
  font-family: var(--f-sans);
}
.island__view {
  position: absolute; top: 0; left: 0;
  width: max-content;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.island__view.is-active { visibility: visible; pointer-events: auto; opacity: 1; }
html:not(.js) .island__view--compact, html:not(.js) .island__view--bar { position: relative; opacity: 1; visibility: visible; }

.notch { position: absolute; top: 0; left: 50%; z-index: 50; transform: translateX(-50%); }
.notch::before, .notch::after, .wayfinder::before, .wayfinder::after {
  content: ""; position: absolute; top: 0; width: var(--ear); height: var(--ear); pointer-events: none;
}
.notch { --ear: 0.9em; }
.notch::before, .wayfinder::before { left: calc(var(--ear) * -1 + 0.5px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M0 0H10V10A10 10 0 0 0 0 0Z' fill='%23030303'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.notch::after, .wayfinder::after { right: calc(var(--ear) * -1 + 0.5px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M0 0H10A10 10 0 0 0 0 10Z' fill='%23030303'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.island--desk { border-radius: 0 0 1.5em 1.5em; box-shadow: 0 0.8em 2.4em -0.6em rgba(0, 0, 0, 0.5); }

/* the //g logo mark: slashes in brand teal, the g follows currentColor */
.mark { display: inline-block; width: 1.45em; height: 1em; flex: none; color: #f4f4f5; overflow: visible; }

/* compact */
.island__view--compact { display: flex; align-items: center; gap: 0.6em; height: 2.3em; padding: 0 0.95em 0 1em; }
.compact__gap { width: 8.6em; }
.compact__count { display: inline-flex; align-items: center; gap: 0.4em; font: 500 0.95em/1 var(--f-mono); color: #d9d9dc; font-variant-numeric: tabular-nums; }
.live-dot, .row.is-run .row__dot { position: relative; }
.live-dot { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--accent); }
/* the ripple is a ring that scales and fades: transform and opacity only, so it never repaints */
.live-dot::after, .row.is-run .row__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(54, 179, 204, 0.45);
  animation: live 2.2s var(--ease-out) infinite;
}
@keyframes live { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(3); opacity: 0; } }

/* list */
.island__view--list { width: min(37em, 92cqw); padding: 0.85em 0.9em 0.9em; }
.list__head { display: flex; align-items: center; gap: 0.5em; padding: 0.1em 0.3em 0.75em; font: 500 0.92em/1 var(--f-mono); color: #cfcfd3; font-variant-numeric: tabular-nums; }
.list__head .i--star { color: var(--accent); width: 1.05em; height: 1.05em; }
.list__sep { width: 1px; height: 1em; background: rgba(255, 255, 255, 0.18); margin: 0 0.3em; }
.list__meta { color: #8b8b90; }
.list__rows { display: flex; flex-direction: column; gap: 0.25em; }
.row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 0.2em 0.85em;
  width: 100%; padding: 0.8em 0.85em; border-radius: 0.85em; text-align: left;
  transition: background-color .25s var(--ease-out);
}
.row:hover, .row:focus-visible, .row.is-hot { background: rgba(255, 255, 255, 0.075); }
.row__icon { grid-row: span 2; display: grid; place-items: center; width: 1.6em; height: 1.4em; }
.row__dot { width: 0.5em; height: 0.5em; border-radius: 50%; background: #6d6d72; }
.row.is-run .row__dot { background: var(--accent); }
.row__title { font-size: 1.08em; font-weight: 500; color: #f4f4f5; line-height: 1.3; }
.row__chips { display: flex; align-items: center; gap: 0.4em; font: 0.8em/1 var(--f-sans); color: #9b9ba0; white-space: nowrap; }
.row__chips span { padding: 0.35em 0.55em; border-radius: 0.45em; background: rgba(255, 255, 255, 0.08); }
.row__chips em { font-style: normal; font-family: var(--f-mono); padding-left: 0.2em; font-variant-numeric: tabular-nums; }
.row__sub { grid-column: 2 / -1; font-size: 0.9em; line-height: 1.45; color: #8f8f95; }
.row__status { display: block; color: #8f8f95; }
.row.is-done .row__status, .row.is-run .row__status { color: var(--accent); }
.row.is-wait .row__status { color: #e8e8ea; }

/* permission */
.island__view--perm { width: min(29em, 92cqw); padding: 0.95em 1em 1em; }
.perm__top { display: flex; align-items: center; gap: 0.6em; font-size: 0.98em; color: #d7d7da; }
.perm__icon { width: 1.2em; height: 1.2em; color: var(--accent); }
.perm__cmd { display: block; margin: 0.75em 0 0.85em; padding: 0.65em 0.8em; border-radius: 0.6em; background: rgba(255, 255, 255, 0.07); font: 500 0.98em/1.3 var(--f-mono); color: #fff; }
.perm__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; }
.perm__btn { height: 2.4em; border-radius: 0.7em; font-size: 0.95em; font-weight: 500; background: rgba(255, 255, 255, 0.1); color: #eee; transition: background-color .2s, transform .2s var(--ease-out); }
.perm__btn:hover { background: rgba(255, 255, 255, 0.16); }
.perm__btn--allow { background: #f2f2f3; color: #0c0c0d; }
.perm__btn--allow:hover { background: #fff; }
.perm__btn.is-press { transform: scale(0.95); }

/* ok / denied / build */
.island__view--ok, .island__view--denied, .island__view--build {
  display: flex; align-items: center; justify-content: center; gap: 0.55em;
  width: min(24em, 70cqw); height: 3.5em; font-size: 1.18em; font-weight: 500;
}
.island__view--ok, .island__view--build { color: var(--accent); }
.island__view--denied { color: #bdbdc2; }
.island__view--ok .i, .island__view--build .i, .island__view--denied .i { width: 1.1em; height: 1.1em; }
.island__view--build { font-size: 1.02em; }

/* message */
.island__view--msg { display: flex; align-items: center; gap: 0.75em; width: min(27em, 88cqw); padding: 0.75em 1.1em 0.8em 0.8em; }
.msg__avatar { width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; background: #ececee; color: #0c0c0d; flex: none; }
.msg__avatar .i { width: 1.2em; height: 1.2em; }
.msg__text { display: flex; flex-direction: column; gap: 0.15em; font-size: 0.95em; line-height: 1.3; color: #bcbcc1; }
.msg__text b { color: #fff; font-weight: 550; }

/* ============ Windows ============ */
.win {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); z-index: var(--z);
  display: flex; flex-direction: column;
  border-radius: 0.85em; overflow: hidden;
  background: rgba(23, 23, 25, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1.6em 3.2em -1em rgba(8, 6, 24, 0.6);
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0);
  transition: opacity .45s var(--ease-out), filter .45s var(--ease-out), box-shadow .3s;
}
.win[data-win="a"] { --x: 29%; --y: 37%; --w: 47%; --h: 57%; }
.win[data-win="b"] { --x: 5%; --y: 27%; --w: 33%; --h: 43%; }
.win[data-win="c"] { --x: 59%; --y: 16%; --w: 36%; --h: 42%; }
.win.is-dim { opacity: 0.5; filter: saturate(0.4) blur(1.2px); }
.win.is-focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2.2em 4em -1em rgba(8, 6, 24, 0.75); }
.win.is-drag { transition: none; }
.win__bar {
  flex: none; display: flex; align-items: center; gap: 0.9em; height: 2.35em; padding: 0 0.9em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (hover: hover) and (pointer: fine) and (min-width: 721px) {
  .win__bar { cursor: grab; touch-action: none; }
  .win.is-drag .win__bar { cursor: grabbing; }
}
.win__lights { display: flex; gap: 0.45em; }
.win__lights i { width: 0.72em; height: 0.72em; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2); }
.win__lights i:nth-child(2) { background: #febc2e; }
.win__lights i:nth-child(3) { background: #28c840; }
.win__lights i { transition: background-color .35s; }
.win:not(.is-front) .win__lights i { background: rgba(255, 255, 255, 0.16); box-shadow: none; }
.win__title { transition: color .35s; }
.win:not(.is-front) .win__title { color: #6e6e74; }
.win__title { font: 400 max(11px, var(--win-font))/1 var(--f-mono); color: #8a8a90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__body {
  position: relative; flex: 1; overflow: hidden; padding: 0.9em 1.1em; font: 400 var(--win-font)/1.65 var(--f-mono); color: #dcdcdf;
}
/* lines that scroll up fade out under the title bar instead of being sliced (a painted fade, cheaper than a mask) */
.win__body::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 0.8em; background: linear-gradient(rgb(23, 23, 25), rgba(23, 23, 25, 0)); pointer-events: none; }
.win__lines { display: flex; flex-direction: column; gap: 0.12em; transition: transform .5s var(--ease-out); }
.ln { display: flex; gap: 0.7em; min-height: 1.65em; white-space: pre-wrap; word-break: break-word; }
.ln__b { flex: none; width: 0.9em; display: grid; place-items: center; height: 1.65em; color: var(--fg-3); }
.ln__b::before { content: ""; width: 0.46em; height: 0.46em; border-radius: 50%; background: currentColor; }
.ln--say .ln__b { color: #f2f2f3; }
.ln--tool .ln__b { color: var(--accent); }
.ln--tool .ln__t { color: #f2f2f3; }
.ln--say .ln__t { color: #cfcfd3; }
.ln--out { padding-left: 1.6em; color: #85858b; }
.ln--out .ln__b { width: auto; }
.ln--out .ln__b::before { content: "└"; width: auto; height: auto; border-radius: 0; background: none; color: #5c5c62; }
.ln--cmd .ln__b::before { content: "$"; width: auto; height: auto; background: none; border-radius: 0; color: #7c7c82; }
.ln--ok .ln__b, .ln--ok .ln__t { color: var(--accent); }
.ln--ok .ln__b::before { content: "✓"; width: auto; height: auto; background: none; border-radius: 0; }
.ln--in .ln__b::before { content: "←"; width: auto; height: auto; background: none; border-radius: 0; color: #9d9da3; }
.ln--in .ln__t { color: #ececee; }
.ln--perm .ln__b::before { content: "?"; width: auto; height: auto; background: none; border-radius: 0; color: #f2f2f3; }
.ln--perm .ln__t { color: #f2f2f3; }
.ln--perm .ln__t em { font-style: normal; color: #8a8a90; }
.cl { display: grid; grid-template-columns: 2.1em minmax(0, 1fr); gap: 0 1em; margin: 0 -1.1em; padding: 0 1.1em; white-space: pre-wrap; word-break: break-word; transition: background-color .3s; }
.cl.is-cur { background: rgba(255, 255, 255, 0.045); }
.cl__n { text-align: right; color: #4c4c51; font-variant-numeric: tabular-nums; }
.cl.is-cur .cl__n { color: #b4b4b9; }
.tk-f { color: #dcdce0; }
.tk-c { color: #66666c; font-style: italic; }
.win__dirty { display: none; width: 0.55em; height: 0.55em; margin-right: 0.55em; border-radius: 50%; background: #c9c9cd; vertical-align: 0.05em; }
.win.is-dirty .win__dirty { display: inline-block; }
.caret { display: inline-block; width: 0.55em; height: 1.1em; margin-left: 0.1em; vertical-align: -0.18em; background: #e8e8ea; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.fake-cursor {
  position: absolute; left: 0; top: 0; z-index: 70; width: 1.9em; height: 1.9em;
  fill: #0d0d0e; stroke: #fff; stroke-width: 14px; paint-order: stroke; stroke-linejoin: round;
  filter: drop-shadow(0 0.15em 0.25em rgba(0, 0, 0, 0.35));
  opacity: 0; pointer-events: none; will-change: transform;
}

/* ============ Stack marquee ============ */
/* each technology is a small black capsule, a quiet echo of the island */
.stackline { padding: clamp(56px, 8vw, 96px) 0 0; }
.marquee {
  overflow: hidden; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.marquee__track.is-running { animation: marquee var(--dur, 48s) linear infinite; }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translate3d(calc(var(--period, 50%) * -1), 0, 0); } }
html:not(.js) .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 12px; }
.tech {
  flex: none; display: flex; align-items: center; gap: 11px;
  height: 46px; margin-right: 12px; padding: 0 20px 0 15px; border-radius: 999px;
  background: var(--hw); color: #d4d4d7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font: 500 15px/1 var(--f-sans); letter-spacing: -0.005em; white-space: nowrap;
  transition: color .3s, box-shadow .3s;
}
.tech img { width: 20px; height: 20px; filter: invert(1) brightness(0.86); transition: filter .3s; }
.tech--word { padding: 0 20px; }
.tech--word img { width: 41px; height: 15px; }
.tech:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.tech:hover img { filter: invert(1); }

/* ============ Section scaffolding ============ */
.services, .projects { padding: clamp(104px, 13vw, 176px) 0 0; }
/* sections below the fold are not laid out or painted until they come near the screen,
   so loading and every re-layout on the way only touch what is visible */
.services, .projects, .contact { content-visibility: auto; contain-intrinsic-size: auto 1600px; }
.cv-all .services, .cv-all .projects, .cv-all .contact { content-visibility: visible; }
/* a section focused by an in-page link needs no ring around the whole block */
main section[tabindex="-1"]:focus { outline: none; }
.h2 { margin: 0; display: flex; flex-direction: column; font: 400 var(--px-h2)/1.2 var(--f-pixel); color: #f1f1f2; }
.h2__line { display: block; }
.h2__line--dim { color: var(--fg-3); }
.h2--center { align-items: center; text-align: center; }
.lead { max-width: 46ch; margin: 28px 0 0; font-size: 20px; line-height: 1.55; color: var(--fg-2); letter-spacing: -0.005em; }
.lead--center { margin-inline: auto; text-align: center; }

/* ============ Bento ============ */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.cell {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-card);
  background: linear-gradient(180deg, #1e1e20 0%, #19191a 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: box-shadow .4s var(--ease-out);
}
.cell:hover { box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.cell--web { grid-column: 1 / span 7; }
.cell--bots { grid-column: 8 / span 5; }
.cell--apps { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.cell--apps .cell__viz { order: 2; min-height: 0; padding: 30px 30px 30px 10px; }
.cell--apps .cell__text { padding: 30px 26px 30px 30px; }
.cell__viz { position: relative; flex: 1; min-height: 230px; padding: 22px 22px 8px; }
.cell__text { padding: 12px 26px 26px; }
.cell__text h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.cell__text p { margin: 0; max-width: 44ch; font-size: 15.5px; line-height: 1.5; color: var(--fg-2); }
/* what the client gets, in three short chips */
.cell__points { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.cell__points li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 14px; line-height: 1.2; color: #d6d6da; }
.cell__points li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--fg-3); }
/* price and timeline */
.cell__text .cell__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; max-width: none; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.cell__price b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); font-variant-numeric: tabular-nums; }
.cell__price span { font: 400 13.5px/1 var(--f-mono); color: var(--fg-3); }
.cell__sample { margin-left: auto; padding: 4px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); font-style: normal; font-size: 12px; color: var(--fg-3); }

/* chat */
.viz-chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding-bottom: 14px; font-size: 14.5px; line-height: 1.4; }
.bub { max-width: 80%; padding: 9px 14px; border-radius: 18px; background: #2a2a2d; color: #ececee; }
.bub--me { align-self: flex-end; background: #ececee; color: #121213; border-bottom-right-radius: 5px; }
.bub--bot { align-self: flex-start; border-bottom-left-radius: 5px; }
.bub--typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bub--typing i { width: 6px; height: 6px; border-radius: 50%; background: #d0d0d4; opacity: 0.5; animation: typing 1s var(--ease-in-out) infinite; }
.bub--typing i:nth-child(2) { animation-delay: .15s; }
.bub--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: 1; } }
.slots { align-self: flex-start; display: flex; gap: 6px; }
.slots span { padding: 7px 12px; border-radius: 12px; font: 500 13px/1 var(--f-mono); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .3s, color .3s, box-shadow .3s; }
.slots span.is-pick { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.bub--done b { color: var(--accent); font-weight: 500; }
.chat-in { animation: chatIn .5s var(--ease-out) both; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } }

/* web: editor on the left types the code, the preview obeys it */
.viz-web { display: flex; align-items: stretch; padding-bottom: 0; }
.mini { width: 100%; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; overflow: hidden; background: #121213; box-shadow: inset 0 0 0 1px var(--line-2); }
.mini__bar { position: relative; flex: none; display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 12px; background: #1b1b1d; border-bottom: 1px solid var(--line); }
.mini__bar .win__lights i { width: 9px; height: 9px; }
.mini__url { position: absolute; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.05); color: var(--fg-3); font: 400 11.5px/1 var(--f-mono); }
.mini__fps { margin-left: auto; font: 400 11px/1 var(--f-mono); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.mini__fps b { font-weight: 500; color: var(--fg-2); }
.mini__body { flex: 1; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.6fr); min-height: 330px; }

.mini__code { position: relative; overflow: hidden; padding: 14px 0; background: #0f0f10; border-right: 1px solid var(--line); }
.code { margin: 0; padding: 0; list-style: none; font: 400 11.5px/1.8 var(--f-mono); color: #d6d6da; }
.code li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); padding-right: 10px; white-space: pre; transition: background-color .35s var(--ease-out); }
.code li::before { content: attr(data-n); padding-right: 12px; text-align: right; color: #45454a; transition: color .35s; }
.code li::after { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .35s var(--ease-out); }
.code li.is-run { background: rgba(54, 179, 204, 0.07); }
.code li.is-run::before { color: var(--accent); }
.code li.is-run::after { transform: scaleY(1); }
.code .caret { height: 1.05em; width: 0.5em; vertical-align: -0.15em; background: var(--accent); }
.tk-k { color: #f4f4f5; font-weight: 500; }
.tk-s { color: #b9b9be; }
.tk-p { color: #5f5f64; }
.tk-n { color: #f4f4f5; }
.tk-a { color: #8c8c92; }

.mini__page { position: relative; overflow: hidden; padding: 16px 20px 20px; isolation: isolate; }
.mini__guides { position: absolute; inset: 0 20px; z-index: -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; opacity: 0; transition: opacity .6s var(--ease-out); pointer-events: none; }
.mini__guides i { background: rgba(54, 179, 204, 0.05); box-shadow: inset 1px 0 0 rgba(54, 179, 204, 0.12), inset -1px 0 0 rgba(54, 179, 204, 0.12); }
.mini.is-wire .mini__guides { opacity: 1; }
.mini.is-flash .mini__guides { opacity: 1; transition-duration: .1s; }

.mini [data-block] { outline: 1px dashed transparent; outline-offset: -1px; transition: outline-color .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .5s var(--ease-out), color .5s; }
.mini [data-block].is-wire { outline-color: rgba(255, 255, 255, 0.3); box-shadow: none; background-color: transparent !important; color: transparent !important; }
.mini [data-block].is-wire > * { opacity: 0; }

.mini__nav { display: flex; align-items: center; gap: 10px; height: 14px; margin-bottom: 26px; border-radius: 4px; }
.mini__nav b { width: 46px; height: 8px; margin-right: auto; border-radius: 3px; background: #e8e8ea; }
.mini__nav i { width: 30px; height: 5px; border-radius: 3px; background: #333336; }
.mini__hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 20px; align-items: center; }
.mini__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.mini__title { width: 100%; min-height: 2.3em; border-radius: 4px; font: 650 clamp(18px, 1.9vw, 25px)/1.12 var(--f-sans); letter-spacing: -0.035em; color: #f4f4f5; }
.mini__title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.mini__title .ch { display: inline-block; white-space: pre; will-change: transform; }
.mini__line { display: block; width: 92%; height: 6px; border-radius: 4px; background: #2e2e31; }
.mini__line--short { width: 64%; }
.mini__btn { position: relative; overflow: hidden; margin-top: 6px; padding: 8px 13px; border-radius: 8px; font: 500 12px/1 var(--f-sans); color: #121213; background: #ececee; will-change: transform; transition: background-color .3s, color .3s, box-shadow .3s; }
.mini__btn.is-hover { background: #fff; box-shadow: 0 6px 18px -6px rgba(255, 255, 255, 0.35); }
.mini__btn .ripple { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: rgba(54, 179, 204, 0.55); pointer-events: none; }
.mini__art { position: relative; aspect-ratio: 5 / 4; border-radius: 12px; overflow: hidden; background: #1a1a1c; }
.mini__art.is-wire { background-image: linear-gradient(to top right, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.18) 50%, transparent calc(50% + 0.5px)), linear-gradient(to top left, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.18) 50%, transparent calc(50% + 0.5px)); }
.mini__art i { position: absolute; inset: -8%; background: url("../img/wallpaper.webp") 30% 50% / cover; will-change: transform; }
.mini__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.mini__cards > i { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: #1b1b1d; box-shadow: inset 0 0 0 1px var(--line); }
.mini__cards b { width: 14px; height: 14px; border-radius: 4px; background: #3a3a3e; }
.mini__cards > i:first-child b { background: var(--accent); }
.mini__cards s { display: block; height: 4px; width: 80%; border-radius: 2px; background: #2c2c2f; text-decoration: none; }
.mini__cards s + s { width: 55%; }
.mini__toast { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px 8px 10px; border-radius: 10px; background: #f1f1f2; color: #111; font: 500 12px/1 var(--f-sans); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(14px) scale(0.96); }
.mini__toast .i { width: 14px; height: 14px; color: #11788f; }
.mini__inspect { position: absolute; left: 0; top: 0; z-index: 2; width: 10px; height: 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--accent); background: rgba(54, 179, 204, 0.06); opacity: 0; pointer-events: none; }
.mini__inspect span { position: absolute; left: -1px; bottom: calc(100% + 4px); padding: 3px 6px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font: 500 10px/1 var(--f-mono); white-space: nowrap; }
.mini__inspect.is-low span { bottom: auto; top: calc(100% + 4px); }
.mini__fps { transition: opacity .4s; }
.mini__fps.is-off { opacity: 0; }
.mini__cursor { position: absolute; left: 0; top: 0; z-index: 4; width: 20px; height: 20px; fill: #0d0d0e; stroke: #fff; stroke-width: 14px; paint-order: stroke; opacity: 0; pointer-events: none; }

/* ops */
.viz-ops { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-inline: 26px; }
.ops__pipe { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.ops__pipe::before, .ops__pipe::after { content: ""; position: absolute; top: 10px; left: 12.5%; right: 12.5%; height: 2px; background: #2c2c2f; }
.ops__pipe::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.ops__pipe li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 400 12px/1 var(--f-mono); color: var(--fg-3); }
.ops__pipe li i { width: 22px; height: 22px; border-radius: 50%; background: #19191a; box-shadow: inset 0 0 0 2px #38383c; transition: background-color .35s, box-shadow .35s, transform .35s var(--ease-out); }
.ops__pipe li.is-done i { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-dim); }
.ops__pipe li.is-done { color: var(--fg); }
.ops__pipe li.is-run i { box-shadow: inset 0 0 0 2px var(--accent); transform: scale(1.12); }
.ops__pipe::after { transition: transform .7s var(--ease-out); }
.ops__log { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 18px 4px 0; list-style: none; border-top: 1px solid var(--line); font: 400 13px/1.2 var(--f-mono); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.ops__log li { display: flex; align-items: center; gap: 10px; }
.ops__log .i { width: 14px; height: 14px; color: var(--fg-4); }
.ops__log li.is-new { color: var(--fg); }
.ops__log li.is-new .i { color: var(--accent); }
.ops__log li.is-run i { width: 14px; height: 14px; display: grid; place-items: center; }
.ops__log li.is-run i::before { content: ""; width: 7px; height: 7px; background: var(--accent); animation: caret 1s steps(1) infinite; }

/* ============ Projects ============ */
.projects__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); margin-top: 24px; }
.projects__screen { position: sticky; top: calc(50vh - min(19vw, 250px)); align-self: start; margin-top: 18vh; }
.pwin { border-radius: var(--r-win); overflow: hidden; background: #0f0f10; box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 100px -40px rgba(0, 0, 0, 0.9); }
.pwin__bar { position: relative; display: flex; align-items: center; height: 38px; padding: 0 14px; background: #1c1c1e; border-bottom: 1px solid var(--line); }
.pwin__url { position: absolute; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); font: 400 12.5px/1 var(--f-mono); color: var(--fg-3); white-space: nowrap; }
.pwin__canvas { width: 100%; aspect-ratio: 16 / 11; background: #111; image-rendering: pixelated; }
.pwin__canvas.is-shot { image-rendering: auto; }
.projects__list { margin: 0; padding: 0; list-style: none; }
.proj { min-height: 66vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: 0.42; transition: opacity .6s var(--ease-out); }
.proj.is-active { opacity: 1; }
.proj__cover { display: none; }
.proj__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font: 400 13.5px/1 var(--f-mono); color: var(--fg-3); }
.proj__tag { padding: 4px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-3); font-size: 12px; }
.proj__name { margin: 18px 0 16px; font: 400 var(--px-h3)/1.2 var(--f-pixel); color: #f1f1f2; }
.proj__desc { margin: 0; max-width: 36ch; font-size: 18px; line-height: 1.55; color: var(--fg-2); }
.proj__stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.proj__stack li { padding: 6px 11px; border-radius: 10px; font: 400 12.5px/1 var(--f-mono); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.proj__link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding-bottom: 4px; font-size: 16px; font-weight: 500; color: var(--fg); background: linear-gradient(var(--fg-3), var(--fg-3)) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease-out), color .25s; }
.proj__link:hover { background-image: linear-gradient(var(--accent), var(--accent)); }
.proj__link .i { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.proj__link:hover .i { transform: translate(2px, -2px); }

/* ============ Contact ============ */
.contact { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(40px, 6vw, 80px); padding: clamp(120px, 15vw, 190px) 0 clamp(110px, 12vw, 160px); background: radial-gradient(120% 70% at 50% 0%, #252527 0%, #1b1b1c 40%, var(--bg) 75%); }
.glyphs--contact {
  top: 0; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 34% 30% at 50% 52%, rgba(0,0,0,.18) 30%, #000 100%), linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%);
  mask-image: radial-gradient(ellipse 34% 30% at 50% 52%, rgba(0,0,0,.18) 30%, #000 100%), linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%);
}
.light--contact { height: 100%; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
/* brief form: a dark panel with its own hanging island */
.brief {
  position: relative; width: min(820px, 100%); margin: 64px auto 0; padding: 78px 34px 32px;
  border-radius: 36px; background: #101011; text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 60px 140px -50px rgba(0, 0, 0, 0.95);
}
.brief__notch { font-size: 15px; --ear: 14px; }
.island--brief { border-radius: 0 0 26px 26px; }
.island__view--status { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px 2px; font-size: 14.5px; font-weight: 500; white-space: nowrap; color: #ededef; }
.island__view--status .mark { font-size: 15px; }
.island__view--status .i { width: 17px; height: 17px; }
.island__view--status.is-ok { color: var(--accent); }
.island__view--status.is-bad { color: #d9d9dd; }
.brief__spin { display: inline-flex; gap: 3px; }
.brief__spin i { width: 5px; height: 5px; background: var(--accent); animation: spin-dot 0.9s steps(1) infinite; }
.brief__spin i:nth-child(2) { animation-delay: 0.15s; }
.brief__spin i:nth-child(3) { animation-delay: 0.3s; }
@keyframes spin-dot { 0%, 100% { opacity: 0.25; } 33% { opacity: 1; } }

.brief__body { display: flex; flex-direction: column; gap: 26px; }
.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { padding: 0; font-size: 14.5px; font-weight: 500; color: var(--fg-2); }
.field__input {
  width: 100%; height: 54px; padding: 0 16px; border: 0; border-radius: var(--r-ctl);
  background: #19191b; color: var(--fg); font: 400 16px/1.4 var(--f-sans);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transition: box-shadow .25s var(--ease-out), background-color .25s;
}
.field__input::placeholder { color: var(--fg-3); }
.field__input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.field__input:focus { outline: none; background: #1c1c1e; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-dim); }
.field__input--area { height: auto; min-height: 128px; padding: 14px 16px; resize: vertical; }
.field.is-bad .field__input { box-shadow: inset 0 0 0 1px #e8736b, 0 0 0 4px rgba(232, 115, 107, 0.14); }
.field__err { margin: -2px 0 0; min-height: 0; font-size: 13.5px; line-height: 1.4; color: #f08c84; }
.field__err:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.field .chips { margin-top: 12px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px;
  font-size: 15px; color: #d4d4d8; background: #19191b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transition: background-color .25s var(--ease-out), color .25s, box-shadow .25s, transform .2s var(--ease-out);
}
.chip:hover span { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.chip input:checked + span { background: var(--accent-dim); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip input:active + span { transform: scale(0.97); }

.brief__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; margin-top: 4px; }
.brief__note { margin: 0; max-width: 40ch; font-size: 13.5px; line-height: 1.5; color: var(--fg-3); }
.brief__submit { flex: none; }
.brief__submit:disabled { cursor: progress; opacity: 0.75; transform: none; }

.brief__result { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 8px 10px; text-align: center; }
.brief__result-title { margin: 0; font: 400 var(--px-h3)/1.15 var(--f-pixel); color: var(--fg); outline: none; }
.brief__result[data-kind="ok"] .brief__result-title { color: var(--accent); }
.brief__result-text { margin: 0; max-width: 44ch; font-size: 17px; line-height: 1.55; color: var(--fg-2); }
.brief__result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }


/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 30px 0 calc(36px + env(safe-area-inset-bottom)); color: var(--fg-3); font-size: 14.5px; }
.footer__inner { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.brand--foot { margin-right: 0; color: var(--fg-2); }
.brand--foot .brand__word { font: 400 15px/1 var(--f-sans); letter-spacing: 0; }
.footer__made { margin: 0 auto 0 0; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); transition: color .25s; }
.footer__links a:hover { color: var(--fg); }
.footer__links .i { width: 17px; height: 17px; }

/* ============ Wayfinder ============ */
.wayfinder {
  --ear: 14px;
  position: fixed; top: 0; left: 50%; z-index: 100;
  transform: translate(-50%, calc(-100% - 20px));
  transition: transform .7s var(--ease-out);
}
.wayfinder.is-on { transform: translate(-50%, 0); }
.island--way { border-radius: 0 0 26px 26px; box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.7); }
.island__view--bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px 2px 16px; font-size: 14.5px; font-weight: 500; color: #ededef; white-space: nowrap; }
.island__view--bar .mark { font-size: 16px; }
.way__label { min-width: 6.2em; }
.way__progress { display: flex; gap: 3px; }
.way__progress i { width: 5px; height: 5px; background: #333336; transition: background-color .3s; }
.way__progress i.is-on { background: #cfcfd3; }
.way__progress i.is-edge { background: var(--accent); }
.island__view--menu { width: 300px; padding: 10px 10px 12px; }
.way__row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; font-size: 15px; color: #d2d2d6; transition: background-color .2s, color .2s; }
.way__row .i { width: 18px; height: 18px; color: #8a8a90; }
.way__row:hover, .way__row:focus-visible { background: rgba(255, 255, 255, 0.07); color: #fff; }
.way__row.is-here { color: #fff; }
.way__row.is-here::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.way__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 10px 2px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.way__lang { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 12px; color: #bdbdc2; font-size: 14px; }
.way__lang:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.way__lang .i { width: 16px; height: 16px; }
.way__tg { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: #f2f2f3; color: #0d0d0e; font-size: 14px; font-weight: 600; }
.way__tg:hover { background: #fff; }
.way__tg .i { width: 16px; height: 16px; }

/* ============ Entrance states (JS only, content visible without JS) ============ */
.js .hero__sub, .js .hero__ctas { opacity: 0; transform: translateY(14px); animation: failsafe .9s var(--ease-out) 2.6s forwards; }
.js .is-in .hero__sub, .js .is-in .hero__ctas { animation: none; opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
@keyframes failsafe { to { opacity: 1; transform: none; } }
.js .is-in .hero__ctas { transition-delay: .12s; }
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .cell[data-reveal] { transform: none; clip-path: inset(0 0 100% 0 round var(--r-card)); }
.js .cell[data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--r-card)); transition: opacity .6s var(--ease-out), clip-path 1.1s var(--ease-out); transition-delay: var(--d, 0s); }

/* ============ Responsive ============ */
@media (max-width: 1023px) {
  .topnav { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell--web { grid-column: 1 / -1; }
  .cell--bots, .cell--apps { grid-column: auto; }
  .cell--apps { display: flex; }
  .cell--apps .cell__viz { order: 0; min-height: 230px; padding: 22px 22px 8px; }
  .cell--apps .cell__text { padding: 12px 26px 26px; }
}
@media (min-width: 721px) and (max-width: 1023px) {
  .screen { aspect-ratio: 4 / 3; font-size: 11px; --win-font: 11px; }
  .win[data-win="a"] { --x: 12%; --y: 41%; --w: 76%; --h: 55%; }
  .win[data-win="b"] { --x: 3%; --y: 12%; --w: 46%; --h: 40%; }
  .win[data-win="c"] { --x: 51%; --y: 9%; --w: 46%; --h: 42%; }
  .menubar__items span:nth-child(n + 4) { display: none; }
}
@media (max-width: 859px) {
  .projects__grid { grid-template-columns: 1fr; }
  .projects__screen { display: none; }
  .proj { min-height: 0; opacity: 1; padding: 0 0 60px; }
  .proj__cover { display: block; width: 100%; aspect-ratio: 16 / 11; margin-bottom: 22px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line-2); background: #111; }
}
@media (max-width: 720px) {
  /* phone desk: a landscape MacBook screen (3:2, like the real ones) with tiled windows
     that never overlap, scaled as one picture so nothing wraps or crowds */
  .laptop__lid { border-radius: 15px 15px 7px 7px; padding: 1.7% 1.7% 2.3%; }
  .screen {
    aspect-ratio: 3 / 2; border-radius: 7px 7px 2px 2px;
    font-size: clamp(6.5px, 2.2cqw, 11px);
    --win-font: clamp(6.3px, 2.12cqw, 10.5px);
  }
  .menubar { gap: 1em; padding: 0 1em; }
  .menubar__items span:nth-child(n + 2) { display: none; }
  .menubar__right .i:nth-of-type(n + 3) { display: none; }
  .compact__gap { width: 4.2em; }
  .win { transform: none; background: rgba(21, 21, 23, 0.97); border-radius: 0.75em; }
  .win__body::before { height: 0.7em; background: linear-gradient(rgb(21, 21, 23), rgba(21, 21, 23, 0)); }
  .win__bar { height: 2.15em; gap: 0.75em; padding: 0 0.8em; }
  .win__title { font-size: var(--win-font); }
  .win__body { padding: 0.7em 0.95em; line-height: 1.5; }
  .ln { min-height: 1.5em; }
  .ln__b { height: 1.5em; }
  .win[data-win="a"] { --x: 2.4%; --y: 11%; --w: 95.2%; --h: 47.6%; }
  .win[data-win="c"] { --x: 2.4%; --y: 62.2%; --w: 56.2%; --h: 34.2%; }
  .win[data-win="b"] { --x: 61%; --y: 62.2%; --w: 36.6%; --h: 34.2%; }
}
@media (max-width: 599px) {
  .topbar { gap: 10px; }
  .brand__word { display: none; }
  .brand__svg { width: 36px; }
  .hero__inner { padding-top: 34px; }
  .hero__line { white-space: normal; }
  .hero__sub { font-size: 17px; margin-top: 20px; }
  .hero__sub span { display: inline; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 26px; }
  .btn--primary, .btn--ghost { width: 100%; --h: 52px; }
  /* the glyph field showed through the translucent button: same colour, opaque */
  .hero__ctas .btn--ghost { background-color: #252527; }
  .stage { margin-top: 44px; }
  .services, .projects { padding-top: 88px; }
  .stackline { padding-top: 48px; }
  .marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
  .tech { height: 40px; gap: 9px; margin-right: 9px; padding: 0 16px 0 12px; font-size: 14px; }
  .tech img { width: 18px; height: 18px; }
  .tech--word { padding: 0 16px; }
  .tech--word img { width: 38px; height: 14px; }
  .bento { margin-top: 36px; }
  .lead { margin-top: 18px; }
  .h2--center { display: block; }
  .h2--center .h2__line { display: inline; }
  .contact { padding: 96px 0 88px; margin-top: 24px; }
  .proj__link { padding: 13px 0 6px; margin-top: 14px; }
  .footer__links a { padding: 11px 0; }
  .brand { min-height: 44px; }
  .island__view--bar { height: 42px; font-size: 14px; padding: 0 15px 2px 14px; gap: 10px; }
  .lead { font-size: 18px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .cell--web, .cell--bots, .cell--apps { grid-column: 1 / -1; }
  .cell--apps .cell__viz { padding: 16px 16px 4px; }
  .cell--apps .cell__text { padding: 10px 20px 22px; }
  .cell__viz { padding: 16px 16px 4px; }
  .cell__text { padding: 10px 20px 22px; }
  .mini__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .mini__code { height: 118px; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .mini__hero { grid-template-columns: 1.2fr 1fr; gap: 14px; }
  .mini__title { font-size: 17px; }
  .brief { margin-top: 44px; padding: 70px 18px 20px; border-radius: 30px; }
  .brief__row { grid-template-columns: 1fr; gap: 22px; }
  .brief__body { gap: 22px; }
  .brief__foot { flex-direction: column-reverse; align-items: stretch; }
  .brief__submit { width: 100%; }
  .brief__note { max-width: none; text-align: center; }
  .chip span { height: 44px; padding: 0 15px; font-size: 14.5px; }
  .footer__made { flex-basis: 100%; order: 3; }
}

@media (orientation: landscape) and (max-height: 520px) {
  :root { --px-h1: 44px; }
  .hero__inner { padding-top: 28px; }
  .hero__sub { margin-top: 16px; font-size: 16px; }
  .hero__ctas { margin-top: 20px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .light i, .marquee__track, .live-dot::after, .row.is-run .row__dot::after, .caret, .bub--typing i, .brief__spin i { animation: none !important; }
  .live-dot::after, .row.is-run .row__dot::after { display: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 12px; padding: 0 var(--gutter); }
  .marquee__track li[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .js [data-reveal], .js .cell[data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .js .hero__sub, .js .hero__ctas { opacity: 1; transform: none; }
  * { scroll-behavior: auto !important; }
}
