/* ------------------------------------------------------------------
   Design tokens
------------------------------------------------------------------- */
:root {
  --bg: #0a0b0f;
  --card: #13151c;
  --card-2: #1b1e28;
  --card-3: #252936;
  --line: rgb(255 255 255 / .075);
  --line-2: rgb(255 255 255 / .16);
  --text: #f4f5f9;
  --text-2: #bfc3d1;
  --text-3: #9297aa;
  --accent: #3b66ee;
  --accent-deck: #23409f;
  --accent-text: #92adff;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-xl: 32px;
  --radius-l: 26px;
  --radius-m: 18px;
  --radius-s: 14px;
  --pill: 999px;

  --gap: 16px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 1180px;
  --header: 92px;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.5, .6, 1);
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.wrap { width: min(var(--measure), 100% - var(--gutter) * 2); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--accent); color: #fff;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Game titles: always underlined, always linked */
.game {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent);
  transition: color .16s ease, text-decoration-color .16s ease, text-underline-offset .3s var(--ease);
}
.game:hover { color: var(--accent-text); text-decoration-color: currentColor; text-underline-offset: .3em; }

/* Brand marks: one monochrome icon set, tinted with CSS */
.brand {
  display: inline-block; flex: none;
  width: 1.125em; height: 1.125em;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.b-python       { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/python.svg"); }
.b-javascript   { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/javascript.svg"); }
.b-html5        { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/html5.svg"); }
.b-css3         { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/css3.svg"); }
.b-csharp       { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@11/icons/csharp.svg"); }
.b-unity        { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/unity.svg"); }
.b-unreal       { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/unrealengine.svg"); }
.b-robloxstudio { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/robloxstudio.svg"); }
.b-roblox       { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/roblox.svg"); }
.b-blender      { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/blender.svg"); }
.b-meta         { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/meta.svg"); }

/* ------------------------------------------------------------------
   Buttons
   Pill buttons that press into a raised base, adapted to plain CSS from
   ThreeDButton and CopyButton in Evil Buttons (Apache License 2.0).
------------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  --face: var(--card-3);
  --deck: #07080b;
  --rim: rgb(255 255 255 / .1);
  --ink: var(--text);
  --lift: 5px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding-inline: 22px;
  margin-bottom: var(--lift);
  border: 0; border-radius: var(--pill);
  background: var(--face); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rim), inset 0 2px 0 rgb(255 255 255 / .1), 0 var(--lift) 0 var(--deck);
  font: 700 .9375rem/1 var(--font); text-decoration: none; white-space: nowrap; user-select: none;
  transition: translate .25s var(--spring), box-shadow .25s var(--spring), background-color .2s ease;
}
.button svg, .button .brand { width: 18px; height: 18px; flex: none; }

/* Gloss stripe that slides across the face */
.button::before {
  content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .22), transparent);
  translate: -100% 0; opacity: 0;
  transition: translate .45s var(--ease), opacity .25s ease;
}
.button:hover { translate: 0 -2px; box-shadow: inset 0 0 0 1px var(--rim), inset 0 2px 0 rgb(255 255 255 / .12), 0 calc(var(--lift) + 3px) 0 var(--deck); }
.button:hover::before { translate: -20% 0; opacity: .75; }
.button:active { translate: 0 var(--lift); box-shadow: inset 0 0 0 1px var(--rim), inset 0 2px 0 rgb(255 255 255 / .08), 0 0 0 var(--deck); transition-duration: .09s; }
.button:active::before { translate: 120% 0; opacity: .9; }

.button-primary { --face: var(--accent); --deck: var(--accent-deck); --rim: rgb(255 255 255 / .2); --ink: #fff; }
.button-light { --face: #fff; --deck: #14246a; --rim: transparent; --ink: #101426; }
.button-light::before { background: linear-gradient(90deg, transparent, rgb(59 102 238 / .18), transparent); }
.button-dark { --face: #14192e; --deck: #080a15; --ink: #fff; }
.button-small { --lift: 3px; min-height: 40px; padding-inline: 16px; gap: 7px; font-size: .875rem; }
.button-small svg, .button-small .brand { width: 16px; height: 16px; }
.button-icon { width: 48px; padding: 0; }
.button-icon svg { width: 21px; height: 21px; }

/* Copy button: icon and label swap in place, with the copied address shown above */
button.button { overflow: visible; }
button.button::before { display: none; }
.copy-icons, .copy-labels { display: grid; }
.copy-labels { justify-items: start; }
.copy-icons > *, .copy-labels > * {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .15s ease, scale .3s var(--spring), translate .15s ease;
}
.copy-icons > * { scale: .5; }
.copy-labels > * { translate: 0 6px; }
[data-state="idle"] [data-for="idle"],
[data-state="copied"] [data-for="copied"],
[data-state="error"] [data-for="error"] { opacity: 1; scale: 1; translate: 0 0; }
.copy-chip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; translate: -50% 4px;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: #fff; color: #101426;
  font-size: .75rem; font-weight: 600; line-height: 1.3;
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease, translate .15s ease;
}
[data-state="copied"] .copy-chip { opacity: 1; translate: -50% 0; }

/* ------------------------------------------------------------------
   Shared pieces
------------------------------------------------------------------- */
.tile, .card {
  --mx: 50%; --my: 50%;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
}
/* Soft light that follows the cursor */
.tile::after, .card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgb(255 255 255 / .055), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.tile:hover::after, .card:hover::after { opacity: 1; }

.bubble {
  display: inline-grid; place-items: center; flex: none;
  width: 38px; height: 38px;
  border-radius: 13px;
  background: var(--card-3); color: var(--text);
  transition: rotate .35s var(--spring), scale .35s var(--spring);
}
.bubble svg, .bubble .brand { width: 19px; height: 19px; }
.bubble-large { width: 56px; height: 56px; border-radius: 19px; background: var(--accent); color: #fff; }
.bubble-large svg { width: 27px; height: 27px; }
.bubble-star    { background: rgb(255 194 71 / .15); color: #ffc247; }
.bubble-discord { background: rgb(88 101 242 / .22); color: #a3abff; }
.bubble-roblox  { background: rgb(56 182 255 / .15); color: #5cc4ff; }
.bubble-fire    { background: rgb(255 122 69 / .16); color: #ff9a6b; }
.bubble-tone    { background: color-mix(in srgb, var(--tone) 17%, transparent); color: var(--tone); }
.tile:hover > .bubble, .channels a:hover .bubble { rotate: -8deg; scale: 1.08; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 32px; padding: 4px 13px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--card-2);
  color: var(--text-2); font-size: .8125rem; font-weight: 600; line-height: 1.3;
  text-decoration: none;
}
.chip svg { width: 15px; height: 15px; flex: none; }
.chip-link { transition: background-color .16s ease, color .16s ease, translate .25s var(--spring); }
.chip-link:hover { background: var(--card-3); color: var(--text); translate: 0 -2px; }
.chip-beta { border-color: rgb(146 173 255 / .35); background: rgb(59 102 238 / .16); color: #b4c6ff; }
.gold { color: #ffc247; }
.blurple { color: #a3abff; }
.blue { color: #5cc4ff; }

.tile-title { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 700; line-height: 1.3; }

/* Title link covers its whole card; secondary links sit above it */
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stretched:focus-visible { outline: none; }

/* ------------------------------------------------------------------
   Header dock
------------------------------------------------------------------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.dock {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; gap: 8px;
  width: min(760px, 100% - var(--gutter) * 2);
  height: 62px; margin-inline: auto; padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgb(19 21 28 / .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled .dock { border-color: var(--line-2); box-shadow: 0 14px 34px -14px rgb(0 0 0 / .8); }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  margin-right: auto; min-height: 42px;
  font-weight: 800; letter-spacing: -.01em; text-decoration: none;
}
.mini {
  position: relative; display: grid; place-items: center; overflow: hidden;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card-3); font-size: .75rem; font-weight: 800;
}
.mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.menu { display: flex; gap: 2px; margin-right: 8px; }
.menu a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 15px;
  border-radius: var(--pill);
  color: var(--text-2); font-size: .875rem; font-weight: 600; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.menu svg { width: 17px; height: 17px; }
.menu a:hover { background: var(--card-2); color: var(--text); }
.menu a[aria-current="true"] { background: var(--card-3); color: var(--text); }

.header-cta { margin-top: 0; }
.menu-toggle { display: none; }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */
.hero { padding-top: calc(var(--header) + 12px); }
.bento {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "intro current" "intro location";
}

.intro { grid-area: intro; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3.4vw, 42px); }
.intro > * { position: relative; z-index: 1; }
h1 { margin-top: 24px; font-size: clamp(2.5rem, 1.1rem + 3.9vw, 3.9rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.headline { margin-top: 8px; color: var(--accent-text); font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.summary { max-width: 30rem; margin-top: 14px; color: var(--text-2); font-size: 1.0625rem; }
.summary .game { color: var(--text); font-weight: 600; }
.summary .game:hover { color: var(--accent-text); }
.intro .actions { margin-top: 26px; }

/* Discord profile */
.profile { display: flex; align-items: center; gap: 26px; }
.portrait { position: relative; flex: none; width: 124px; aspect-ratio: 1; margin: 6px 0 0 8px; }
.portrait-frame {
  position: absolute; inset: 0;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 50%; background: var(--card-3);
}
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease, scale .6s var(--ease); }
.portrait-frame img.is-loaded { opacity: 1; }
.portrait:hover .portrait-frame img { scale: 1.06; }
.monogram { font-size: 2rem; font-weight: 800; }
.profile[data-state="loading"] .monogram { animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.decoration { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; pointer-events: none; }
.presence-dot {
  position: absolute; right: 3%; bottom: 3%; z-index: 1;
  width: 15%; aspect-ratio: 1; box-sizing: content-box;
  border: 5px solid var(--card); border-radius: 50%; background: #82858c;
}
.profile[data-presence-state="online"] .presence-dot { background: #2fbf6c; }
.profile[data-presence-state="idle"]   .presence-dot { background: #f0ad0c; }
.profile[data-presence-state="dnd"]    .presence-dot { background: #ed4c52; }

.discord { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.presence { color: var(--text-3); font-size: .8125rem; font-weight: 500; }
/* Custom status shown as a speech bubble */
.status {
  max-width: 19rem; padding: 9px 14px;
  border-radius: 6px 18px 18px 18px;
  background: var(--card-2); color: var(--text-2);
  font-size: .8125rem; line-height: 1.45; overflow-wrap: anywhere;
}

/* Working on now */
.current { grid-area: current; padding: 20px 14px 12px; }
.current .tile-title { padding: 0 8px 10px; }
.now li {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  padding: 8px;
  border-radius: var(--radius-m);
  transition: background-color .2s ease;
}
.now li:hover { background: var(--card-2); }
.thumb { position: relative; flex: none; width: 84px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.thumb-door { background: #2b231f; }
.thumb-court { background: #14203a; }
.thumb-door img, .thumb-court img { inset: 7% 0; height: 86%; }
.thumb.is-broken img { display: none; }
.now-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.now-text a { font-size: .9375rem; font-weight: 700; }
.now-text small { color: var(--text-3); font-size: .8125rem; }
.now .go { flex: none; width: 17px; height: 17px; margin-left: auto; color: var(--text-3); transition: translate .3s var(--spring), color .2s ease; }
.now li:hover .go { translate: 3px -3px; color: var(--accent-text); }
.now li:has(a:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: -2px; }

/* Location */
.location {
  grid-area: location;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center;
  align-items: center; column-gap: 22px; row-gap: 2px;
  padding: 20px 24px;
}
.location > * { position: relative; z-index: 1; }
.location .flag { grid-row: 1 / span 2; }
.place, .clock { display: flex; align-items: center; gap: 8px; }
.place { font-size: 1.0625rem; font-weight: 700; }
.clock { color: var(--text-3); font-size: .875rem; }
.place svg, .clock svg { width: 17px; height: 17px; flex: none; color: var(--accent-text); }

/* Waving flag: twelve slices of the same artwork, offset in time */
.flag { display: flex; width: 72px; height: 36px; flex: none; }
.flag i {
  width: 6px; height: 36px;
  box-shadow: .5px 0 0 rgb(1 33 105 / .55);
  background: url("assets/flag-au.svg") no-repeat;
  background-size: 72px 36px;
  background-position: calc(var(--i) * -6px) 0;
  animation: wave 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.17s);
}
.flag i:first-child { border-radius: 5px 0 0 5px; }
.flag i:last-child { border-radius: 0 5px 5px 0; }
@keyframes wave {
  0%, 100% { translate: 0 calc(var(--i) * -.22px); filter: brightness(1.13); }
  50%      { translate: 0 calc(var(--i) *  .22px); filter: brightness(.9); }
}

/* Figures */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.figure { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; column-gap: 12px; padding: 20px 22px; }
.figure > * { position: relative; z-index: 1; }
.figure .bubble { grid-row: 1; }
.figure dt { align-self: center; color: var(--text-3); font-size: .8125rem; font-weight: 600; line-height: 1.35; }
.figure dd { grid-column: 1 / -1; color: var(--text-2); font-size: .875rem; }
.figure .number { margin-top: 12px; color: var(--text); font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.375rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------- */
.section { padding-top: clamp(72px, 4rem + 4vw, 112px); }
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; }
h2 { font-size: clamp(1.875rem, 1.4rem + 1.5vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.section-head p { color: var(--text-3); }
.group-title {
  display: flex; align-items: center; gap: 10px;
  width: fit-content; margin-bottom: 18px; padding: 9px 18px;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--card);
  font-size: .9375rem; font-weight: 700; line-height: 1.35;
}
.group-title svg, .group-title .brand { width: 19px; height: 19px; color: var(--accent-text); }

/* ------------------------------------------------------------------
   Game cards
------------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid + .group-title { margin-top: 44px; }
.card { display: flex; flex-direction: column; padding: 8px; border-radius: var(--radius-xl); }
.js .card.reveal.is-visible, .card { transition: opacity .6s var(--ease), translate .35s var(--spring), border-color .25s ease; }
.card:hover, .js .grid .card.reveal.is-visible:hover { translate: 0 -6px; border-color: var(--line-2); transition-delay: 0s; }
.card:has(.stretched:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--radius-xl) - 8px); background: #000; isolation: isolate; }
.art > img { width: 100%; height: 100%; object-fit: contain; transition: scale .6s var(--ease); }
.card:hover .art > img { scale: 1.035; }
.art-door { background: #2b231f; }
.art-court { background: #14203a; }
.art-icon > img { position: absolute; inset: 11% 0; width: 100%; height: 78%; }
.card:hover .art-icon > img { scale: 1.09; }
.art-icon.is-broken > img { display: none; }
.art-icon.is-broken::after { content: ""; position: absolute; inset: 0; margin: auto; width: 56px; height: 6px; border-radius: var(--pill); background: var(--accent); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 16px 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card h4 { font-size: 1.5rem; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; }
.card:has(.stretched:hover) .stretched { color: var(--accent-text); text-decoration-color: currentColor; }
.arrow {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card-2); color: var(--text-2);
  transition: background-color .2s ease, color .2s ease, rotate .35s var(--spring);
}
.arrow svg { width: 19px; height: 19px; }
.card:hover .arrow { background: var(--accent); color: #fff; rotate: 45deg; }
.role, .when, .when span { display: flex; align-items: center; gap: 9px; }
.when { flex-wrap: wrap; column-gap: 18px; }
.role { margin-top: 8px; font-weight: 600; }
.when { margin-top: 3px; color: var(--text-3); font-size: .875rem; }
.role svg, .when svg, .when .brand { width: 17px; height: 17px; flex: none; }
.role svg { color: var(--accent-text); }
.about { margin-top: 12px; color: var(--text-2); font-size: .9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; width: fit-content; margin-top: 14px; }

.footnote { max-width: 40rem; margin-top: 22px; color: var(--text-3); font-size: .8125rem; }

/* ------------------------------------------------------------------
   Skills
------------------------------------------------------------------- */
.toolkit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.kit { padding: 20px; }
.kit > * { position: relative; z-index: 1; }
.kit-languages { grid-column: 1 / -1; }
.kit-engines { grid-column: span 8; }
.kit-design { grid-column: span 4; }
.kit ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.kit li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 132px; padding: 18px 8px;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--card-2);
  font-size: .9375rem; font-weight: 700; line-height: 1.3; text-align: center;
  transition: translate .35s var(--spring), border-color .2s ease, background-color .2s ease;
}
.kit li .brand { width: 40px; height: 40px; background: var(--tone); transition: scale .35s var(--spring), rotate .35s var(--spring); }
.kit li:hover { translate: 0 -5px; border-color: color-mix(in srgb, var(--tone) 55%, transparent); background: color-mix(in srgb, var(--tone) 10%, var(--card-2)); }
.kit li:hover .brand { scale: 1.14; rotate: -6deg; }
.toolkit + .group-title { margin-top: 44px; }

.role-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.role-index li { display: flex; align-items: flex-start; gap: 15px; padding: 22px; }
.role-index li > * { position: relative; z-index: 1; }
.role-index h4 { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.role-index p { display: flex; flex-direction: column; align-items: flex-start; margin-top: 3px; color: var(--text-2); font-size: .875rem; }

/* ------------------------------------------------------------------
   Contact
------------------------------------------------------------------- */
.contact { padding-top: clamp(72px, 4rem + 4vw, 112px); padding-bottom: 28px; }
.contact-panel {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); align-items: center; gap: 32px;
  padding: clamp(24px, 4.5vw, 56px);
  border-radius: 40px;
  background: var(--accent); color: #fff;
}
.contact :focus-visible { outline-color: #fff; }
.email {
  display: inline-block; margin: 8px 0 22px; padding-block: 6px;
  font-size: clamp(1.125rem, .5rem + 2.3vw, 2.125rem); font-weight: 700; line-height: 1.3; letter-spacing: -.02em;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em;
  text-decoration-color: rgb(255 255 255 / .4);
  overflow-wrap: anywhere;
  transition: text-decoration-color .25s ease;
}
.email:hover { text-decoration-color: #fff; }
.channels { display: flex; flex-direction: column; gap: 12px; }
.channels a {
  display: flex; align-items: center; gap: 15px;
  padding: 16px 20px;
  border-radius: var(--radius-l);
  background: var(--card);
  text-decoration: none; font-weight: 700; line-height: 1.35;
  transition: translate .35s var(--spring), background-color .2s ease;
}
.channels a:hover { background: var(--card-2); translate: 0 -3px; }
.channels .bubble { width: 46px; height: 46px; border-radius: 16px; }
.channels .bubble svg { width: 23px; height: 23px; }
.channels small { display: block; color: var(--text-3); font-size: .8125rem; font-weight: 500; }
.channels .go { width: 18px; height: 18px; margin-left: auto; transition: translate .3s var(--spring); }
.channels a:hover .go { translate: 3px -3px; }

.colophon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; color: var(--text-3); font-size: .8125rem; }

/* ------------------------------------------------------------------
   Motion
------------------------------------------------------------------- */
.js .enter { animation: enter .75s var(--ease) both; }
.js .current { animation-delay: .08s; }
.js .location { animation-delay: .16s; }
.js .figures { animation-delay: .22s; }
@keyframes enter { from { opacity: 0; translate: 0 18px; scale: .975; } }

.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
.js .grid .reveal:nth-child(even) { transition-delay: 90ms; }
.js .role-index .reveal:nth-child(3n+2) { transition-delay: 70ms; }
.js .role-index .reveal:nth-child(3n) { transition-delay: 140ms; }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "location" "current"; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit-engines, .kit-design { grid-column: 1 / -1; }
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --header: 82px; --gap: 12px; }
  .site-header { top: 10px; }
  .header-cta { display: none; }

  .menu-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: var(--card-3);
  }
  .menu-toggle-lines, .menu-toggle-lines::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text);
    transition: transform .3s var(--ease), translate .3s var(--ease);
  }
  .menu-toggle-lines { translate: 0 -3px; }
  .menu-toggle-lines::after { content: ""; transform: translateY(6px); }
  [aria-expanded="true"] .menu-toggle-lines { translate: 0 0; transform: rotate(45deg); }
  [aria-expanded="true"] .menu-toggle-lines::after { transform: rotate(-90deg); }

  /* Without JavaScript the links stay visible as icons in the bar */
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .menu { margin: 0; }
  html:not(.js) .menu a { padding: 0 8px; gap: 0; font-size: .75rem; }
  html:not(.js) .menu svg { display: none; }
  html:not(.js) .wordmark { font-size: 0; }

  .js .menu {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 4px;
    margin: 0; padding: 10px;
    border: 1px solid var(--line-2); border-radius: var(--radius-l);
    background: var(--card);
    box-shadow: 0 24px 40px -16px rgb(0 0 0 / .85);
    visibility: hidden; opacity: 0; translate: 0 -10px;
    transition: opacity .25s ease, translate .25s var(--ease), visibility 0s linear .25s;
  }
  .js .menu.is-open { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
  .js .menu a { min-height: 48px; font-size: 1rem; }

  .grid, .role-index { grid-template-columns: minmax(0, 1fr); }
  .kit ul { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
  .kit li { min-height: 112px; }
  .kit li .brand { width: 34px; height: 34px; }
  .contact-panel { border-radius: var(--radius-xl); }
}

@media (max-width: 520px) {
  .profile { gap: 18px; }
  .portrait { width: 88px; margin-left: 4px; }
  .presence-dot { border-width: 4px; }
  h1 { margin-top: 20px; }
  .actions .button:not(.button-icon) { flex: 1 1 auto; padding-inline: 16px; }
  .intro .actions .button:first-child { flex-basis: 100%; }
  .location { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .location .flag { grid-row: auto; margin-bottom: 10px; }
  .figure { padding: 16px; }
  .figure .bubble { width: 32px; height: 32px; border-radius: 11px; }
  .figure .bubble svg, .figure .bubble .brand { width: 16px; height: 16px; }
  .figure dt { font-size: .75rem; }
  .section-head { gap: 14px; }
  .bubble-large { width: 46px; height: 46px; border-radius: 16px; }
  .bubble-large svg { width: 22px; height: 22px; }
}

@media (max-width: 360px) {
  .figures { grid-template-columns: minmax(0, 1fr); }
  .thumb { width: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; translate: 0 0; }
}

@media print {
  .js .reveal { opacity: 1; translate: 0 0; }
  .js .enter { animation: none; }
  .site-header { position: static; }
}
