:root {
  color-scheme: dark;
  --black: #09090b;
  --black-soft: #111114;
  --black-raised: #19191d;
  --white: #f7f7f8;
  --grey-1: #dedee2;
  --grey-2: #a6a6af;
  --grey-3: #73737d;
  --paper: #f0f0f2;
  --paper-soft: #e7e7ea;
  --paper-ink: #17171b;
  --paper-muted: #56565f;
  --line-dark: rgba(255,255,255,.14);
  --line-light: rgba(20,20,24,.14);
  --highlight-a: #a7abc2;
  --highlight-b: #e6e6ed;
  --main-font: "AvantGarde", "Century Gothic", "Questrial", "Plus Jakarta Sans", sans-serif;
  --ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,.72,.2,1);
  --spring: cubic-bezier(.2,1.25,.32,1);
  --shell: 1200px;
  --grid-x: calc(50vw - 534px);
  --grid-col: 89px;
  --grid-x-about: var(--grid-x);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 116px; background: var(--black); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--main-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { color: #101014; background: #c9cbd8; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #c7c9d7; outline-offset: 4px; }
.ui-font, .main-nav, .hero-meta, .technology-line, .project-links, .detail-toggle, .stack-group h3, .github-follow, .footer-inner { font-family: var(--ui-font); }

.grid-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .19;
  background-image: linear-gradient(to right,rgba(255,255,255,.065) 1px,transparent 1px),linear-gradient(to bottom,rgba(255,255,255,.032) 1px,transparent 1px);
  background-size: var(--grid-col) 100%,100% 88px;
  background-position: var(--grid-x) var(--grid-y,0px);
  mask-image: linear-gradient(to bottom,transparent,#000 5%,#000 95%,transparent);
  transition: opacity .9s ease;
}
body[data-scene="about"] .grid-backdrop, body[data-scene="more-projects"] .grid-backdrop { opacity: .065; }
.scroll-progress { position: fixed; z-index: 150; top: 0; left: 0; width: 100%; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#777d98,#d4d5df); transform-origin: left; }
.ambient { position: fixed; z-index: 0; width: 42vw; max-width: 620px; aspect-ratio: 1; border-radius: 50%; filter: blur(110px); opacity: .055; pointer-events: none; transition: transform 1.4s var(--ease),opacity 1.1s ease; }
.ambient-one { left: -25vw; top: 8vh; background: #a5a8c2; }
.ambient-two { right: -24vw; bottom: -8vh; background: #d4d4dc; }
body[data-scene="about"] .ambient-one { opacity: .13; transform: translate3d(18vw,19vh,0) scale(.82); }
body[data-scene="experience"] .ambient-two { opacity: .13; transform: translate3d(-12vw,-12vh,0) scale(1.12); }
body[data-scene="more-projects"] .ambient-one { opacity: .09; transform: translate3d(12vw,12vh,0) scale(1.1); }
body[data-scene="stack"] .ambient-two { opacity: .1; transform: translate3d(-9vw,-18vh,0) scale(.9); }

/* One minimal, softly blurred shape follows the pointer and morphs into the selection marker. */
.cursor-companion {
  position: fixed;
  z-index: 145;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px,-100px,0);
  transition: opacity .2s ease;
  will-change: transform;
}
.cursor-shape { display: block; width: 100%; height: 100%; overflow: visible; }
.cursor-shape-path {
  fill: rgba(255,255,255,.54);
  stroke: rgba(255,255,255,.78);
  stroke-width: .85;
  stroke-linejoin: round;
  stroke-linecap: round;
  mix-blend-mode: difference;
  filter: blur(.38px) drop-shadow(0 1px 5px rgba(255,255,255,.25));
}
.cursor-companion.is-visible { opacity: .78; }
.cursor-companion.is-selecting {
  opacity: .76;
  transition: opacity .2s ease, transform .34s var(--spring);
}
.cursor-companion.is-returning {
  transition: opacity .2s ease, transform .39s var(--spring);
}

.site-header {
  position: fixed;
  z-index: 140;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 15px 18px 13px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  background: linear-gradient(180deg,rgba(8,8,10,.78),rgba(8,8,10,.34));
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  transition: padding .5s var(--ease),background .45s ease,border-color .45s ease;
}
.header-inner { display: flex; width: min(calc(100vw - 72px),var(--shell)); padding-inline: 5.5%; flex-direction: column; align-items: center; gap: 10px; transition: gap .5s var(--ease); }
.wordmark { display: inline-block; color: var(--white); font-family: var(--main-font); font-size: 31px; font-weight: 500; line-height: 1; letter-spacing: -.075em; transition: opacity .3s ease,transform .55s var(--spring),font-size .45s var(--ease); }
.wordmark:hover { opacity: .8; transform: translateY(-1px) scale(1.025); }
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px rgba(255,255,255,.055),0 5px 24px rgba(0,0,0,.08);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transition: background .4s ease,border-color .4s ease,transform .5s var(--ease);
}
.main-nav a { position: relative; display: flex; min-height: 35px; align-items: center; gap: 5px; padding: 7px 17px; color: rgba(244,244,248,.7); font-size: 11px; font-weight: 500; letter-spacing: .005em; white-space: nowrap; transition: color .3s ease,background .35s ease,padding .4s var(--ease); }
.main-nav a + a { border-left: 1px solid rgba(255,255,255,.13); }
.main-nav a:hover,.main-nav a.is-active { color: #fff; background: rgba(255,255,255,.1); }
.main-nav .nav-github { display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #f0f0f4; font-size: 11.5px; font-weight: 700; letter-spacing: -.022em; }
.main-nav .nav-github .github-dock-icon { display: block; width: 19px; height: 19px; flex: 0 0 19px; margin-left: -2px; align-self: center; }
.main-nav .nav-github .github-dock-label { display: inline-block; font-size: inherit; font-weight: 700; line-height: 1; transition: transform .3s var(--spring); }
.main-nav .nav-github:hover .github-dock-label { transform: translateY(-.5px); }
.site-header.is-scrolled { padding-top: 8px; padding-bottom: 9px; background: rgba(8,8,10,.68); border-bottom-color: rgba(255,255,255,.1); }
.site-header.is-scrolled .header-inner { gap: 6px; }
.site-header.is-scrolled .wordmark { font-size: 25px; }
.site-header.is-scrolled .main-nav a { min-height: 30px; padding: 5px 15px; }

.content-shell { position: relative; z-index: 1; width: min(calc(100% - 72px),var(--shell)); margin-inline: auto; }
.page-section { position: relative; isolation: isolate; scroll-margin-top: 116px; }
.hero-section { position: relative; isolation: isolate; display: grid; min-height: 100svh; place-items: center; overflow: hidden; padding: 164px 24px 125px; background: #09090b; text-align: center; }
.hero-content { position: relative; z-index: 2; width: min(100%,1120px); }
.hero-intro { margin: 0 0 15px; color: #c5c5cc; font-size: clamp(17px,2vw,23px); font-weight: 400; letter-spacing: -.035em; opacity: 0; animation: hero-rise 1s var(--ease) .12s forwards; }
.hero-content h1 { margin: 0; color: #f8f8fb; font-family: var(--main-font); font-size: clamp(52px,8.1vw,112px); font-weight: 500; line-height: 1.02; letter-spacing: -.085em; opacity: 0; animation: hero-rise 1.15s var(--ease) .24s forwards; }
.hero-word { display: inline-block; width: 8.4ch; min-width: 8.4ch; padding: 0; border: 0; background: transparent; font: inherit; line-height: inherit; letter-spacing: inherit; text-align: center; vertical-align: baseline; cursor: pointer; }
.aspire { color: transparent; background: linear-gradient(30deg,#737a9b 10%,#c5c8d7 78%,#f4f4f7 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 23px rgba(155,164,210,.13)); }
.hero-word::after { display: inline-block; width: 2px; height: .72em; margin-left: .12em; background: rgba(221,222,232,.72); content: ""; vertical-align: -.02em; opacity: 0; transition: opacity .2s ease; }
.hero-word.is-typing::after { opacity: .65; animation: caret-blink .8s steps(2,start) infinite; }
.hero-meta { display: flex; align-items: center; justify-content: center; gap: 17px; margin-top: 30px; color: #a4a4ad; font-size: 12px; font-weight: 500; opacity: 0; animation: hero-rise .95s var(--ease) .43s forwards; }
.meta-divider { width: 1px; height: 14px; background: rgba(255,255,255,.25); }
.hero-bottom-glow { position: absolute; right: 12%; bottom: -35%; left: 12%; height: 52%; border-radius: 50%; background: radial-gradient(ellipse,rgba(155,164,210,.12),transparent 67%); filter: blur(45px); pointer-events: none; }
.hero-scroll { position: absolute; z-index: 3; bottom: 27px; left: 50%; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; background: rgba(255,255,255,.045); backdrop-filter: blur(14px); transform: translateX(-50%); transition: background .35s ease,border-color .35s ease,transform .4s var(--spring); }
.hero-scroll:hover { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.11); transform: translateX(-50%) translateY(2px); }
.hero-scroll span { width: 8px; height: 8px; border-right: 1px solid #e3e3e8; border-bottom: 1px solid #e3e3e8; transform: translateY(-2px) rotate(45deg); animation: arrow-bob 2.4s ease-in-out infinite; }

.about-section { position: relative; z-index: 1; overflow: clip; padding: clamp(132px,14vw,184px) 0 clamp(98px,11vw,142px); color: var(--paper-ink); background-color: var(--paper); background-image: linear-gradient(to right,rgba(20,20,24,.052) 1px,transparent 1px),linear-gradient(to bottom,rgba(20,20,24,.026) 1px,transparent 1px); background-size: var(--grid-col) 100%,100% 92px; background-position: var(--grid-x) 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid var(--line-light); scroll-margin-top: 0; }
.about-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(320px,.8fr); gap: clamp(54px,9vw,136px); align-items: start; padding-inline: 5.5%; }
.about-title-wrap { overflow: hidden; }
.about-title-wrap h2 { margin: 0; color: #151519; font-family: var(--main-font); font-size: clamp(50px,6.15vw,84px); font-weight: 500; line-height: 1.015; letter-spacing: -.085em; }
.about-title-wrap h2 em { color: #777780; font-style: normal; font-weight: 400; }
.about-copy { max-width: 510px; padding-top: 8px; }
.about-copy p { margin: 0 0 20px; color: #4e4e57; font-size: clamp(15px,1.18vw,16px); font-weight: 400; line-height: 1.88; letter-spacing: -.018em; }
.about-rule { height: 1px; margin: clamp(72px,8vw,112px) 5.5% 0; overflow: hidden; background: rgba(20,20,24,.13); }
.about-rule span { display: block; width: 34%; height: 1px; background: linear-gradient(90deg,transparent,#858697 45%,transparent); transform: translateX(-110%); }
.about-section.is-visible .about-rule span { animation: rule-sweep 2.25s var(--ease) .12s forwards; }

.experience-section { position: relative; z-index: 2; isolation: isolate; scroll-margin-top: 112px; }
.selected-work-panel { padding: clamp(88px,9vw,122px) 0 clamp(112px,11vw,145px); color: var(--white); background: #0e0e11; background-image: linear-gradient(to right,rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(to bottom,rgba(255,255,255,.02) 1px,transparent 1px); background-size: var(--grid-col) 100%,100% 92px; background-position: var(--grid-x) 0; border-bottom: 1px solid var(--line-dark); }
.section-title { margin: 0; color: inherit; font-family: var(--main-font); font-size: clamp(38px,4.3vw,54px); font-weight: 500; line-height: 1.08; letter-spacing: -.075em; }
.featured-project { display: grid; grid-template-columns: minmax(0,.88fr) minmax(390px,1fr); gap: clamp(50px,7vw,100px); align-items: center; padding: clamp(60px,7vw,92px) 5.5% 0; }
.featured-copy { max-width: 490px; }
.featured-copy h3 { margin: 0 0 20px; color: var(--white); font-family: var(--main-font); font-size: clamp(50px,5.8vw,76px); font-weight: 500; line-height: .98; letter-spacing: -.085em; }
.featured-copy p { margin: 0 0 17px; color: #bcbcc5; font-size: 14px; line-height: 1.88; letter-spacing: -.012em; }
.featured-copy .project-lead { margin-bottom: 22px; color: #f0f0f4; font-size: clamp(18px,1.7vw,22px); line-height: 1.52; letter-spacing: -.035em; }
.technology-line { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 23px; color: #a3a3ad; font-size: 11px; line-height: 1.8; }
.technology-line > span { position: relative; white-space: nowrap; }
.technology-line > span:not(:last-child)::after { position: absolute; top: 50%; right: -9px; width: 3px; height: 3px; border-radius: 50%; background: #74747f; content: ""; transform: translateY(-50%); }
.project-links { display: flex; flex-wrap: wrap; gap: 12px 25px; margin-top: 26px; }
.project-links a,.text-link { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.32); color: #f0f0f4; font-size: 12px; transition: color .3s ease,border-color .3s ease; }
.project-links a:hover,.text-link:hover { color: #c1c5d8; border-color: #b1b7da; }
.project-links a[data-source-link] { display: inline-flex; align-items: center; gap: 9px; }
.project-links a[data-source-link] .source-github-mark { display: block; width: 15px; height: 15px; flex: 0 0 15px; color: currentColor; transform: none !important; transition: none !important; }
.project-links a[data-source-link] .source-link-label { display: inline-block; transform: none !important; transition: none !important; }
.source-action-icon { position: relative; display: inline-grid !important; width: 17px; height: 17px; flex: 0 0 17px; place-items: center; transform: none !important; transition: none !important; }
.source-action-icon svg { position: absolute; display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.source-arrow-icon { opacity: .82; transform: translate(0,0) scale(1); transition: opacity .2s ease,transform .32s var(--spring); }
.source-plane-icon { opacity: 0; transform: translate(-4px,4px) rotate(-18deg) scale(.72); transition: opacity .2s ease,transform .36s var(--spring); }
.project-links a[data-source-link]:hover .source-arrow-icon,
.project-links a[data-source-link]:focus-visible .source-arrow-icon { opacity: 0; transform: translate(-3px,3px) scale(.72) rotate(-14deg); }
.project-links a[data-source-link]:hover .source-plane-icon,
.project-links a[data-source-link]:focus-visible .source-plane-icon { opacity: 1; transform: translate(0,0) rotate(0) scale(1); }
.project-links a[data-source-link].is-launching .source-plane-icon { animation: source-plane-launch .48s cubic-bezier(.2,.75,.25,1) forwards; }
@keyframes source-plane-launch { 0% { opacity: 1; transform: translate(0,0) rotate(0) scale(1); } 100% { opacity: 0; transform: translate(11px,-10px) rotate(12deg) scale(.68); } }

.project-links a span,.text-link span { display: inline-block; transition: transform .35s var(--spring); }
.project-links a:hover span,.text-link:hover span { transform: translate(3px,-3px); }
.detail-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 23px; padding: 0; border: 0; background: transparent; color: #d4d4db; cursor: pointer; font-size: 12px; transition: color .3s ease; }
.detail-toggle:hover { color: #fff; }
.detail-plus { display: inline-block; font-size: 17px; line-height: 1; transition: transform .45s var(--spring); }
.detail-toggle[aria-expanded="true"] .detail-plus { transform: rotate(45deg); }
.project-detail { max-width: 470px; margin-top: 13px; padding: 13px 15px; border-left: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.035); animation: detail-in .42s var(--ease) both; }
.project-detail p { margin: 0; color: #c3c3cc; font-size: 12px; line-height: 1.8; }
.featured-visual-wrap { position: relative; min-width: 0; perspective: 1200px; }
.project-visual { position: relative; isolation: isolate; display: grid; width: 100%; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 27px; background: radial-gradient(ellipse at 50% 40%,#29292f 0,#1a1a1f 47%,#111114 100%); box-shadow: 0 30px 90px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.09); transform: perspective(1200px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translate3d(0,var(--scroll-y,0px),0); transform-style: preserve-3d; transition: transform .7s var(--ease),box-shadow .7s var(--ease),border-color .5s ease; will-change: transform; }
.project-visual::before { position: absolute; z-index: 3; inset: 0; border-radius: inherit; box-shadow: inset 0 1px rgba(255,255,255,.14),inset 0 -70px 100px rgba(0,0,0,.18); content: ""; pointer-events: none; }
.visual-halo { position: absolute; z-index: -1; border-radius: 50%; filter: blur(42px); pointer-events: none; transition: transform 1.1s var(--ease),opacity .7s ease; }
.visual-halo-one { top: 7%; left: 11%; width: 60%; aspect-ratio: 1; background: rgba(190,190,210,.22); }
.visual-halo-two { right: 2%; bottom: -5%; width: 55%; aspect-ratio: 1; background: rgba(146,151,179,.17); }
.question-object { position: relative; z-index: 2; display: grid; width: 49%; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.39); border-radius: 43% 57% 52% 48% / 54% 45% 55% 46%; background: radial-gradient(circle at 29% 20%,rgba(255,255,255,.42),rgba(255,255,255,.15) 29%,rgba(188,190,210,.08) 63%,rgba(255,255,255,.035) 82%),linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.025)); box-shadow: 0 25px 75px rgba(0,0,0,.34),inset 0 1px 1px rgba(255,255,255,.5),inset -17px -24px 50px rgba(0,0,0,.17); backdrop-filter: blur(20px) saturate(112%); -webkit-backdrop-filter: blur(20px) saturate(112%); transform: translateZ(48px); animation: question-float 8.2s ease-in-out infinite; transition: border-radius 1.2s var(--ease),transform .8s var(--spring),box-shadow .8s ease; }
.question-object::before { position: absolute; top: 12%; left: 17%; width: 32%; height: 12%; border-radius: 50%; background: rgba(255,255,255,.4); filter: blur(14px); content: ""; transform: rotate(-32deg); }
.question-object span { display: block; color: rgba(255,255,255,.96); font-family: var(--main-font); font-size: clamp(132px,17vw,220px); font-weight: 300; line-height: .9; letter-spacing: -.1em; text-shadow: 0 5px 30px rgba(0,0,0,.28),0 0 44px rgba(228,228,255,.22); transform: translate(-.035em,-.035em); transition: transform .7s var(--spring); }
.visual-reflection { position: absolute; z-index: 1; right: -17%; bottom: -30%; left: -17%; height: 42%; border-radius: 50%; background: rgba(255,255,255,.12); filter: blur(55px); opacity: .35; transition: opacity .7s ease,transform 1s var(--ease); }
.project-visual:hover { border-color: rgba(255,255,255,.28); box-shadow: 0 38px 100px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.16); }
.project-visual:hover .question-object { border-radius: 56% 44% 43% 57% / 44% 55% 45% 56%; transform: translateZ(64px) rotate(7deg) scale(1.045); }
.project-visual:hover .question-object span { transform: translate(-.035em,-.035em) scale(1.07) rotate(-7deg); }
.project-visual:hover .visual-halo-one { transform: translate3d(9%,5%,0) scale(1.12); }
.project-visual:hover .visual-halo-two { transform: translate3d(-8%,-8%,0) scale(.9); }
.project-visual:hover .visual-reflection { opacity: .58; transform: translateY(-12px); }
.project-visual-ai { background: radial-gradient(ellipse at 48% 40%,#303037 0,#202026 46%,#141417 100%); }
.project-visual-ai .question-object { border-radius: 54% 46% 44% 56% / 55% 42% 58% 45%; }
.project-visual-study { background: radial-gradient(ellipse at 49% 45%,#323238 0,#202025 44%,#131316 100%); }
.project-visual-study .question-object { border-radius: 48% 52% 58% 42% / 45% 56% 44% 55%; }

.more-projects-panel { position: relative; overflow: clip; scroll-margin-top: 116px; padding: clamp(86px,9vw,118px) 0 clamp(108px,11vw,142px); color: var(--paper-ink); background: var(--paper); background-image: linear-gradient(to right,rgba(20,20,24,.05) 1px,transparent 1px),linear-gradient(to bottom,rgba(20,20,24,.024) 1px,transparent 1px); background-size: var(--grid-col) 100%,100% 92px; background-position: var(--grid-x) 0; border-bottom: 1px solid var(--line-light); }
.more-projects-panel .section-title { color: #17171b; }
.project-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(28px,4vw,54px); padding: 48px 5.5% 0; }
.project-card { min-width: 0; }
.project-card .project-visual { border-color: rgba(15,15,20,.12); background: radial-gradient(ellipse at 50% 42%,#dedee3 0,#c9c9d0 46%,#b6b6bf 100%); box-shadow: 0 26px 65px rgba(25,25,34,.12),inset 0 1px rgba(255,255,255,.72); }
.project-card .project-visual::before { box-shadow: inset 0 1px rgba(255,255,255,.75),inset 0 -60px 90px rgba(30,30,38,.09); }
.project-card .visual-halo-one { background: rgba(255,255,255,.6); }
.project-card .visual-halo-two { background: rgba(125,127,145,.22); }
.project-card .question-object { border-color: rgba(255,255,255,.7); background: radial-gradient(circle at 28% 20%,rgba(255,255,255,.92),rgba(255,255,255,.48) 32%,rgba(177,178,190,.15) 74%),linear-gradient(145deg,rgba(255,255,255,.72),rgba(255,255,255,.12)); box-shadow: 0 25px 70px rgba(40,40,52,.17),inset 0 1px 1px rgba(255,255,255,.95),inset -15px -22px 45px rgba(65,65,80,.11); }
.project-card .question-object span { color: rgba(43,43,53,.72); text-shadow: 0 3px 18px rgba(255,255,255,.6); }
.project-card .visual-reflection { background: rgba(255,255,255,.56); }
.project-card-content { padding: 24px 1px 0; }
.project-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.project-card-heading h3 { margin: 0; color: #16161a; font-family: var(--main-font); font-size: clamp(32px,3.6vw,44px); font-weight: 500; line-height: 1.05; letter-spacing: -.075em; }
.project-card-heading > a { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(20,20,24,.16); border-radius: 50%; color: #25252c; transition: transform .4s var(--spring),background .3s ease; }
.project-card-heading > a:hover { transform: translate(2px,-2px); background: rgba(255,255,255,.6); }
.project-card-content > p { max-width: 490px; margin: 14px 0 0; color: #51515b; font-size: 14px; line-height: 1.85; }
.project-card .technology-line { color: #555560; }
.project-card .technology-line > span:not(:last-child)::after { background: #8d8d96; }
.project-card .project-links a,.project-card .text-link { border-color: rgba(20,20,24,.3); color: #202027; }
.project-card .project-links a:hover { color: #676a82; border-color: #777b93; }
.project-card .detail-toggle { color: #484851; }
.project-card .detail-toggle:hover { color: #111114; }
.project-card .project-detail { border-left-color: rgba(20,20,24,.22); background: rgba(255,255,255,.36); }
.project-card .project-detail p { color: #51515b; }

.stack-section { position: relative; overflow: clip; padding: clamp(104px,11vw,150px) 0 clamp(110px,11vw,148px); color: var(--white); background: #0b0b0e; background-image: linear-gradient(to right,rgba(255,255,255,.042) 1px,transparent 1px),linear-gradient(to bottom,rgba(255,255,255,.022) 1px,transparent 1px); background-size: var(--grid-col) 100%,100% 92px; background-position: var(--grid-x) 0; }
.stack-intro { display: grid; grid-template-columns: .8fr 1fr; align-items: end; gap: 80px; padding: 0 5.5%; }
.stack-intro .section-title { font-size: clamp(48px,6vw,76px); }
.stack-intro > p { max-width: 450px; margin: 0 0 6px; color: #b8b8c1; font-size: 15px; line-height: 1.85; }
.stack-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 70px 5.5% 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stack-group { min-width: 0; padding: 28px 28px 32px 0; }
.stack-group + .stack-group { padding-left: 27px; border-left: 1px solid var(--line-dark); }
.stack-group h3 { margin: 0 0 20px; color: #85858f; font-size: 11px; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; }
.stack-group p { margin: 0; color: #e5e5e9; font-family: var(--main-font); font-size: clamp(15px,1.25vw,17px); line-height: 2.05; }
.stack-group .stack-description { min-height: 5.2em; margin: -7px 0 16px; color: #a5a5af; font-size: 14px; line-height: 1.75; }
.stack-group .stack-tools { line-height: 2.25; }
.stack-group p > .tech-separator { padding-inline: 4px; color: #73737e; }
.stack-group p .language-inline { padding: 0; color: inherit; }
.github-follow { display: inline-flex; align-items: center; gap: 7px; margin: 28px 5.5% 0; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.32); color: #f1f1f4; font-size: 12px; transition: color .3s ease,border-color .3s ease; }
.github-follow:hover { color: #bfc1d2; border-color: #bfc1d2; }
.github-follow span { transition: transform .35s var(--spring); }
.github-follow:hover span { transform: translate(3px,-3px); }
/* Contact closes the page with a restrained, readable contact surface. */
.contact-section {
  position: relative;
  overflow: clip;
  padding: clamp(86px,9vw,122px) 0 clamp(92px,9.5vw,128px);
  color: var(--paper-ink);
  background-color: var(--paper);
  background-image: linear-gradient(to right,rgba(20,20,24,.052) 1px,transparent 1px),linear-gradient(to bottom,rgba(20,20,24,.026) 1px,transparent 1px);
  background-size: var(--grid-col) 100%,100% 92px;
  background-position: var(--grid-x) 0;
  border-top: 1px solid var(--line-light);
}
.contact-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(360px,1fr); gap: clamp(48px,8vw,112px); align-items: end; padding-inline: 5.5%; }
.contact-eyebrow { margin: 0 0 15px; color: #777780; font-family: var(--ui-font); font-size: 10px; font-weight: 600; letter-spacing: .11em; }
.contact-intro .section-title { color: #151519; font-size: clamp(48px,5.8vw,74px); }
.contact-intro > p:last-child { max-width: 390px; margin: 18px 0 0; color: #565660; font-size: 14px; line-height: 1.85; }
.contact-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid rgba(20,20,24,.15); border-bottom: 1px solid rgba(20,20,24,.15); }
.contact-detail { min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 18px 15px 20px 0; }
.contact-detail + .contact-detail { padding-left: 18px; border-left: 1px solid rgba(20,20,24,.12); }
.contact-label { color: #777780; font-family: var(--ui-font); font-size: 10px; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; }
.contact-value,.contact-link { color: #292930; font-size: 13px; line-height: 1.5; }
.contact-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border-bottom: 1px solid rgba(20,20,24,.26); transition: color .25s ease,border-color .25s ease; }
.contact-link:hover { color: #666b85; border-color: #666b85; }
.contact-link span { font-family: var(--ui-font); font-size: 12px; }
.footer-links { display: inline-flex; align-items: center; gap: 23px; }
.site-footer { position: relative; z-index: 1; color: #85858e; background: var(--black); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 25px; padding-bottom: 25px; font-size: 11px; }
.footer-inner > span { color: #dedee3; font-family: var(--main-font); font-size: 18px; letter-spacing: -.06em; }
.footer-inner a { transition: color .3s ease; }
.footer-inner a:hover { color: #fff; }

.reveal { opacity: 0; filter: blur(9px); transition: opacity .95s var(--ease),transform 1.05s var(--ease),filter .95s var(--ease); transition-delay: var(--reveal-delay,0ms); }
.reveal[data-reveal="up"] { transform: translate3d(0,36px,0); }
.reveal[data-reveal="left"] { transform: translate3d(-44px,20px,0); }
.reveal[data-reveal="right"] { transform: translate3d(44px,20px,0); }
.reveal.is-visible { opacity: 1; filter: blur(0); transform: translate3d(0,0,0); }
@keyframes hero-rise { from { opacity: 0; filter: blur(13px); transform: translate3d(0,25px,0); } to { opacity: 1; filter: blur(0); transform: translate3d(0,0,0); } }
@keyframes arrow-bob { 0%,100% { transform: translateY(-2px) rotate(45deg); } 50% { transform: translateY(3px) rotate(45deg); } }
@keyframes rule-sweep { to { transform: translateX(340%); } }
@keyframes question-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes detail-in { from { opacity: 0; filter: blur(7px); transform: translateY(9px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes caret-blink { 0%,49% { opacity: .65; } 50%,100% { opacity: .1; } }

@media (max-width: 980px) {
  .content-shell { width: min(calc(100% - 52px),var(--shell)); }
  .about-layout { grid-template-columns: 1fr; gap: 38px; }
  .about-copy { max-width: 680px; }
  .featured-project { grid-template-columns: minmax(0,1fr) minmax(300px,.9fr); gap: 38px; }
  .project-cards { gap: 28px; }
  .stack-intro { gap: 45px; }
  .contact-layout { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 680px) {
  .brand-discovery { min-height: 27px; }
  .site-header.is-scrolled .brand-discovery { min-height: 23px; }
  html { scroll-padding-top: 100px; }
  .site-header { padding: 13px 12px 10px; }
  .header-inner { gap: 8px; }
  .wordmark { font-size: 27px; }
  .main-nav a { min-height: 32px; padding: 6px 12px; font-size: 10px; }
  .site-header.is-scrolled .main-nav a { min-height: 29px; padding: 5px 10px; }
  .site-header.is-scrolled .wordmark { font-size: 23px; }
  .content-shell { width: min(calc(100% - 38px),var(--shell)); }
  .hero-section { min-height: 91svh; padding: 154px 18px 110px; }
  .hero-intro { margin-bottom: 14px; font-size: 16px; }
  .hero-content h1 { font-size: clamp(45px,11.8vw,76px); line-height: 1.06; }
  .hero-word { width: 8.4ch; min-width: 8.4ch; }
  .hero-meta { gap: 11px; margin-top: 24px; font-size: 10px; }
  .about-section { padding: 104px 0 86px; }
  .about-layout { gap: 28px; padding-inline: 2px; }
  .about-title-wrap h2 { font-size: clamp(43px,10.4vw,68px); }
  .about-copy p { font-size: 14px; line-height: 1.82; }
  .about-rule { margin: 52px 2px 0; }
  .selected-work-panel { padding: 78px 0 90px; }
  .section-title { font-size: 40px; }
  .featured-project { grid-template-columns: 1fr; gap: 34px; padding: 42px 2px 0; }
  .featured-copy { max-width: none; }
  .featured-copy h3 { font-size: 58px; }
  .featured-copy p { font-size: 13px; }
  .featured-copy .project-lead { font-size: 18px; }
  .featured-visual-wrap { grid-row: 1; }
  .project-visual { border-radius: 21px; }
  .question-object span { font-size: clamp(118px,35vw,190px); }
  .more-projects-panel { scroll-margin-top: 100px; padding: 78px 0 90px; }
  .project-cards { grid-template-columns: 1fr; gap: 50px; padding: 38px 2px 0; }
  .project-card-content { padding-top: 18px; }
  .project-card-heading h3 { font-size: 38px; }
  .stack-section { padding: 82px 0 86px; }
  .stack-intro { grid-template-columns: 1fr; gap: 15px; padding: 0 2px; }
  .stack-intro .section-title { font-size: 54px; }
  .stack-intro > p { font-size: 14px; }
  .stack-groups { grid-template-columns: 1fr; margin: 43px 2px 0; }
  .stack-group,.stack-group + .stack-group { padding: 23px 0 25px; border-left: 0; }
  .stack-group + .stack-group { border-top: 1px solid var(--line-dark); }
  .stack-group h3 { margin-bottom: 11px; }
  .stack-group .stack-description { min-height: 0; margin: 0 0 12px; }
  .stack-group p { font-size: 15px; line-height: 1.9; }
  .github-follow { margin-left: 2px; }
  .contact-section { padding: 78px 0 84px; }
  .contact-layout { gap: 27px; padding-inline: 2px; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-detail { padding: 15px 0; }
  .contact-detail + .contact-detail { padding-left: 0; border-left: 0; border-top: 1px solid rgba(20,20,24,.12); }
  .footer-links { gap: 16px; }
  .footer-inner { padding-top: 21px; padding-bottom: 21px; }
}
@media (max-width: 380px) {
  .main-nav a { padding-inline: 9px; font-size: 9px; }
  .hero-content h1 { font-size: 43px; }
  .hero-meta { font-size: 9px; }
}
@media (hover: none) or (pointer: coarse) { .cursor-companion { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; filter: none; transform: none; }
  .hero-intro,.hero-content h1,.hero-meta { opacity: 1; animation: none; }
  .hero-word::after { display: none; }
}


/* Language marks: small inline identities with a soft message-style hover bubble. */
.language-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .34em;
  vertical-align: -.08em;
  white-space: nowrap;
  cursor: help;
  outline: none;
}
.language-icon {
  display: inline-block;
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 1.08em;
  color: currentColor;
  opacity: 1;
  transition: transform .42s var(--spring), opacity .28s ease;
}
.language-inline::after {
  position: absolute;
  z-index: 160;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 6px 10px 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  background: rgba(32,32,38,.82);
  box-shadow: 0 9px 28px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.1);
  color: #f7f7fa;
  content: attr(data-language);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: .005em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  transform: translate(-50%, 5px) scale(.94);
  transform-origin: 50% 100%;
  transition: opacity .22s ease, visibility .22s ease, transform .38s var(--spring);
}
.language-inline::before {
  position: absolute;
  z-index: 159;
  left: 50%;
  bottom: calc(100% + 6px);
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(255,255,255,.13);
  border-bottom: 1px solid rgba(255,255,255,.13);
  border-radius: 1px 0 2px;
  background: rgba(32,32,38,.88);
  content: "";
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity .22s ease, visibility .22s ease, transform .38s var(--spring);
}
.language-inline:hover .language-icon,
.language-inline:focus-visible .language-icon {
  opacity: 1;
  transform: translateY(-1px) scale(1.1);
}
.language-inline:hover::after,
.language-inline:focus-visible::after,
.language-inline:hover::before,
.language-inline:focus-visible::before {
  opacity: 1;
  visibility: visible;
}
.language-inline:hover::after,
.language-inline:focus-visible::after { transform: translate(-50%, 0) scale(1); }
.language-inline:hover::before,
.language-inline:focus-visible::before { transform: translate(-50%, 0) rotate(45deg); }

/* The pinned header changes surface as it crosses the light chapters. */
.site-header.is-over-light {
  border-bottom-color: rgba(20,20,25,.12);
  background: linear-gradient(180deg, rgba(246,246,249,.86), rgba(246,246,249,.66));
  box-shadow: 0 8px 26px rgba(20,20,28,.035);
}
.site-header.is-over-light .wordmark { color: #17171c; }
.site-header.is-over-light .main-nav {
  border-color: rgba(20,20,25,.15);
  background: rgba(255,255,255,.48);
  box-shadow: inset 0 1px rgba(255,255,255,.8), 0 5px 22px rgba(25,25,35,.05);
}
.site-header.is-over-light .main-nav a { color: rgba(25,25,31,.68); }
.site-header.is-over-light .main-nav a + a { border-left-color: rgba(20,20,25,.1); }
.site-header.is-over-light .main-nav a:hover,
.site-header.is-over-light .main-nav a.is-active { color: #111116; background: rgba(20,20,25,.055); }
.site-header.is-over-light .main-nav .nav-github { color: #18181e; }
.site-header.is-over-light.is-scrolled { background: rgba(246,246,249,.82); }


/* Responsive column alignment: the grid follows the same inset as the content shell. */
@media (min-width: 981px) and (max-width: 1271px) {
  :root { --grid-x: calc(5.5vw + 32px); --grid-col: calc(7.4167vw - 5.333px); }
}
@media (min-width: 601px) and (max-width: 980px) {
  :root { --grid-x: calc(5.5vw + 23px); --grid-col: calc(7.4167vw - 3.857px); }
  .header-inner { width: min(calc(100vw - 52px),var(--shell)); }
}
@media (max-width: 600px) {
  :root { --grid-x: 21px; --grid-col: calc((100vw - 42px) / 6); --grid-x-about: calc(5.5vw + 16.9px); }
  .about-section { background-position: var(--grid-x-about) 0, 0 0; }
  .header-inner { width: calc(100vw - 38px); padding-inline: 2px; }
}

/* Brand marks remain recognisable on both light and dark sections. */
.language-inline { gap: .32em; }
.language-inline .language-icon { filter: drop-shadow(0 1px 1px rgba(0,0,0,.08)); }
.technology-line .language-inline { gap: .38em; }
@media (prefers-reduced-motion: reduce) {
  .language-inline::before, .language-inline::after, .language-icon { transition-duration: .01ms !important; }
}

@media (prefers-reduced-motion: reduce) {
  .source-arrow-icon,.source-plane-icon { transition: none !important; }
  .project-links a[data-source-link].is-launching .source-plane-icon { animation: none; opacity: 1; transform: none; }
}
.brand-discovery { min-height: 27px; }
  .site-header.is-scrolled .brand-discovery { min-height: 23px; }
  html { scroll-padding-top: 100px; }
  .site-header { padding: 13px 12px 10px; }
  .header-inner { gap: 8px; }
  .wordmark { font-size: 27px; }
  .main-nav a { min-height: 32px; padding: 6px 12px; font-size: 10px; }
  .site-header.is-scrolled .main-nav a { min-height: 29px; padding: 5px 10px; }
  .site-header.is-scrolled .wordmark { font-size: 23px; }
  .content-shell { width: min(calc(100% - 38px),var(--shell)); }
  .hero-section { min-height: 91svh; padding: 154px 18px 110px; }
  .hero-intro { margin-bottom: 14px; font-size: 16px; }
  .hero-content h1 { font-size: clamp(45px,11.8vw,76px); line-height: 1.06; }
  .hero-word { width: 8.4ch; min-width: 8.4ch; }
  .hero-meta { gap: 11px; margin-top: 24px; font-size: 10px; }
  .about-section { padding: 104px 0 86px; }
  .about-layout { gap: 28px; padding-inline: 2px; }
  .about-title-wrap h2 { font-size: clamp(43px,10.4vw,68px); }
  .about-copy p { font-size: 14px; line-height: 1.82; }
  .about-rule { margin: 52px 2px 0; }
  .selected-work-panel { padding: 78px 0 90px; }
  .section-title { font-size: 40px; }
  .featured-project { grid-template-columns: 1fr; gap: 34px; padding: 42px 2px 0; }
  .featured-copy { max-width: none; }
  .featured-copy h3 { font-size: 58px; }
  .featured-copy p { font-size: 13px; }
  .featured-copy .project-lead { font-size: 18px; }
  .featured-visual-wrap { grid-row: 1; }
  .project-visual { border-radius: 21px; }
  .question-object span { font-size: clamp(118px,35vw,190px); }
  .more-projects-panel { scroll-margin-top: 100px; padding: 78px 0 90px; }
  .project-cards { grid-template-columns: 1fr; gap: 50px; padding: 38px 2px 0; }
  .project-card-content { padding-top: 18px; }
  .project-card-heading h3 { font-size: 38px; }
  .stack-section { padding: 82px 0 86px; }
  .stack-intro { grid-template-columns: 1fr; gap: 15px; padding: 0 2px; }
  .stack-intro .section-title { font-size: 54px; }
  .stack-intro > p { font-size: 14px; }
  .stack-groups { grid-template-columns: 1fr; margin: 43px 2px 0; }
  .stack-group,.stack-group + .stack-group { padding: 23px 0 25px; border-left: 0; }
  .stack-group + .stack-group { border-top: 1px solid var(--line-dark); }
  .stack-group h3 { margin-bottom: 11px; }
  .stack-group .stack-description { min-height: 0; margin: 0 0 12px; }
  .stack-group p { font-size: 15px; line-height: 1.9; }
  .github-follow { margin-left: 2px; }
  .contact-section { padding: 78px 0 84px; }
  .contact-layout { gap: 27px; padding-inline: 2px; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-detail { padding: 15px 0; }
  .contact-detail + .contact-detail { padding-left: 0; border-left: 0; border-top: 1px solid rgba(20,20,24,.12); }
  .footer-links { gap: 16px; }
  .footer-inner { padding-top: 21px; padding-bottom: 21px; }
}
@media (max-width: 380px) {
  .main-nav a { padding-inline: 9px; font-size: 9px; }
  .hero-content h1 { font-size: 43px; }
  .hero-meta { font-size: 9px; }
}
@media (hover: none) or (pointer: coarse) { .cursor-companion { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; filter: none; transform: none; }
  .hero-intro,.hero-content h1,.hero-meta { opacity: 1; animation: none; }
  .hero-word::after { display: none; }
}


/* Language marks: small inline identities with a soft message-style hover bubble. */
.language-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .34em;
  vertical-align: -.08em;
  white-space: nowrap;
  cursor: help;
  outline: none;
}
.language-icon {
  display: inline-block;
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 1.08em;
  color: currentColor;
  opacity: 1;
  transition: transform .42s var(--spring), opacity .28s ease;
}
.language-inline::after {
  position: absolute;
  z-index: 160;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 6px 10px 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  background: rgba(32,32,38,.82);
  box-shadow: 0 9px 28px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.1);
  color: #f7f7fa;
  content: attr(data-language);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: .005em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  transform: translate(-50%, 5px) scale(.94);
  transform-origin: 50% 100%;
  transition: opacity .22s ease, visibility .22s ease, transform .38s var(--spring);
}
.language-inline::before {
  position: absolute;
  z-index: 159;
  left: 50%;
  bottom: calc(100% + 6px);
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(255,255,255,.13);
  border-bottom: 1px solid rgba(255,255,255,.13);
  border-radius: 1px 0 2px;
  background: rgba(32,32,38,.88);
  content: "";
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity .22s ease, visibility .22s ease, transform .38s var(--spring);
}
.language-inline:hover .language-icon,
.language-inline:focus-visible .language-icon {
  opacity: 1;
  transform: translateY(-1px) scale(1.1);
}
.language-inline:hover::after,
.language-inline:focus-visible::after,
.language-inline:hover::before,
.language-inline:focus-visible::before {
  opacity: 1;
  visibility: visible;
}
.language-inline:hover::after,
.language-inline:focus-visible::after { transform: translate(-50%, 0) scale(1); }
.language-inline:hover::before,
.language-inline:focus-visible::before { transform: translate(-50%, 0) rotate(45deg); }

/* The pinned header changes surface as it crosses the light chapters. */
.site-header.is-over-light {
  border-bottom-color: rgba(20,20,25,.12);
  background: linear-gradient(180deg, rgba(246,246,249,.86), rgba(246,246,249,.66));
  box-shadow: 0 8px 26px rgba(20,20,28,.035);
}
.site-header.is-over-light .wordmark { color: #17171c; }
.site-header.is-over-light .main-nav {
  border-color: rgba(20,20,25,.15);
  background: rgba(255,255,255,.48);
  box-shadow: inset 0 1px rgba(255,255,255,.8), 0 5px 22px rgba(25,25,35,.05);
}
.site-header.is-over-light .main-nav a { color: rgba(25,25,31,.68); }
.site-header.is-over-light .main-nav a + a { border-left-color: rgba(20,20,25,.1); }
.site-header.is-over-light .main-nav a:hover,
.site-header.is-over-light .main-nav a.is-active { color: #111116; background: rgba(20,20,25,.055); }
.site-header.is-over-light .main-nav .nav-github { color: #18181e; }
.site-header.is-over-light.is-scrolled { background: rgba(246,246,249,.82); }


/* Responsive column alignment: the grid follows the same inset as the content shell. */
@media (min-width: 981px) and (max-width: 1271px) {
  :root { --grid-x: calc(5.5vw + 32px); --grid-col: calc(7.4167vw - 5.333px); }
}
@media (min-width: 601px) and (max-width: 980px) {
  :root { --grid-x: calc(5.5vw + 23px); --grid-col: calc(7.4167vw - 3.857px); }
  .header-inner { width: min(calc(100vw - 52px),var(--shell)); }
}
@media (max-width: 600px) {
  :root { --grid-x: 21px; --grid-col: calc((100vw - 42px) / 6); --grid-x-about: calc(5.5vw + 16.9px); }
  .about-section { background-position: var(--grid-x-about) 0, 0 0; }
  .header-inner { width: calc(100vw - 38px); padding-inline: 2px; }
}

/* Brand marks remain recognisable on both light and dark sections. */
.language-inline { gap: .32em; }
.language-inline .language-icon { filter: drop-shadow(0 1px 1px rgba(0,0,0,.08)); }
.technology-line .language-inline { gap: .38em; }
@media (prefers-reduced-motion: reduce) {
  .language-inline::before, .language-inline::after, .language-icon { transition-duration: .01ms !important; }
}

@media (prefers-reduced-motion: reduce) {
  .source-arrow-icon,.source-plane-icon { transition: none !important; }
  .project-links a[data-source-link].is-launching .source-plane-icon { animation: none; opacity: 1; transform: none; }
}
/* -------------------------------------------------------------------------
   Fish terminal Easter egg — anchored to the existing centred wordmark.
   The hidden controls do not participate in header layout or cause reflow.
   ------------------------------------------------------------------------- */
.brand-discovery {
  position: relative;
  display: inline-block;
  align-self: center;
  min-height: 31px;
  line-height: 1;
  transition: transform .52s var(--spring);
}
.site-header.is-scrolled .brand-discovery { min-height: 25px; }
.brand-discovery .wordmark {
  display: inline-block;
  transform: translateX(0);
  transform-origin: center;
  transition: opacity .3s ease, transform .52s var(--spring), font-size .45s var(--ease);
}
.brand-discovery[data-state="idle"]:hover .wordmark,
.brand-discovery[data-state="idle"]:focus-within .wordmark,
.brand-discovery[data-state="spark"] .wordmark {
  transform: translateX(-8px);
}
.brand-discovery[data-state="idle"]:hover .wordmark:hover {
  transform: translateX(-8px) translateY(-1px) scale(1.025);
}
/* Keep the complete revealed wordmark + lock cluster optically centred. */
.brand-discovery[data-state="unlocking"] { transform: translateX(-14.5px); }
.brand-discovery[data-state="unlocked"],
.brand-discovery[data-state="terminal"] { transform: translateX(-36.5px); }
.brand-discovery[data-state="unlocking"] .wordmark,
.brand-discovery[data-state="unlocked"] .wordmark,
.brand-discovery[data-state="terminal"] .wordmark {
  transform: translateX(0);
}
.question-trigger {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: calc(100% - 3px);
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #c9cbd8;
  background: transparent;
  font-family: var(--ui-font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) scale(.88);
  transition: opacity .28s ease, visibility .28s ease, transform .38s var(--spring), color .28s ease, border-color .28s ease, background .28s ease;
}
.brand-discovery[data-state="idle"]:hover .question-trigger,
.brand-discovery[data-state="idle"]:focus-within .question-trigger {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.question-trigger:hover,
.question-trigger:focus-visible {
  border-color: rgba(255,255,255,.16);
  color: #fff;
  background: rgba(255,255,255,.07);
}
.question-trigger.is-sparking {
  animation: question-spectrum .64s ease both;
}

.brand-discovery[data-state="spark"] .question-trigger {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform: translateY(-50%) scale(1);
}
.question-trigger[hidden] { display: none !important; }

.secret-stage {
  position: absolute;
  top: 50%;
  left: calc(100% - 3px);
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .28s ease, visibility .28s ease;
}
.brand-discovery[data-state="unlocking"] .secret-stage,
.brand-discovery[data-state="unlocked"] .secret-stage,
.brand-discovery[data-state="terminal"] .secret-stage {
  opacity: 1;
  visibility: visible;
}
.secret-key,
.secret-lock {
  display: grid;
  width: 19px;
  height: 24px;
  flex: 0 0 19px;
  place-items: center;
  color: #c8cada;
}
.secret-key svg,
.secret-lock svg {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
}
.secret-key { opacity: 0; }
.secret-lock { opacity: 0; }
.brand-discovery[data-state="unlocking"] .secret-key {
  animation: key-find-lock .86s var(--ease) .08s both;
}
.brand-discovery[data-state="unlocking"] .secret-lock {
  animation: lock-arrive .28s ease .18s both;
}
.brand-discovery[data-state="unlocking"] .lock-shackle {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  animation: lock-turn-open .46s cubic-bezier(.2,.72,.22,1) .64s both;
}
.brand-discovery[data-state="unlocked"] .secret-key,
.brand-discovery[data-state="terminal"] .secret-key { opacity: 0; }
.brand-discovery[data-state="unlocked"] .secret-lock,
.brand-discovery[data-state="terminal"] .secret-lock { opacity: 1; }
.brand-discovery[data-state="unlocked"] .lock-shackle,
.brand-discovery[data-state="terminal"] .lock-shackle {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  transform: rotate(-38deg);
}
.terminal-launcher {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #d1d2de;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px) scale(.92);
  transition: opacity .36s ease, visibility .36s ease, transform .48s var(--spring), color .25s ease, background .25s ease, border-color .25s ease;
}
.terminal-launcher svg { display: block; width: 19px; height: 19px; }
.brand-discovery[data-state="unlocked"] .terminal-launcher,
.brand-discovery[data-state="terminal"] .terminal-launcher {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: .12s;
}
.terminal-launcher:hover,
.terminal-launcher:focus-visible {
  border-color: rgba(255,255,255,.2);
  color: #fff;
  background: rgba(255,255,255,.09);
}
.terminal-launcher:active { transform: scale(.94); }
.terminal-launcher:disabled { cursor: default; }
.question-trigger:focus-visible,
.terminal-launcher:focus-visible {
  outline: 2px solid #c7c9d7;
  outline-offset: 3px;
}
@keyframes question-spectrum {
  0% { color: #c9cbd8; text-shadow: none; }
  25% { color: #e1c4cf; text-shadow: 0 0 12px rgba(231,144,172,.2); }
  50% { color: #c9d7e8; text-shadow: 0 0 14px rgba(132,178,224,.22); }
  75% { color: #d9d0eb; text-shadow: 0 0 12px rgba(184,151,223,.18); }
  100% { color: #c9cbd8; text-shadow: none; }
}
@keyframes key-find-lock {
  0% { opacity: 0; transform: translate(-5px,2px) rotate(-38deg) scale(.82); }
  18% { opacity: 1; transform: translate(-1px,1px) rotate(-22deg) scale(.86); }
  58% { opacity: 1; transform: translate(17px,3px) rotate(45deg) scale(.9); }
  70% { opacity: 1; transform: translate(17px,3px) rotate(45deg) scale(.9); }
  84% { opacity: .72; transform: translate(17px,3px) rotate(45deg) scale(.9); }
  100% { opacity: 0; transform: translate(17px,3px) rotate(45deg) scale(.9); }
}
@keyframes lock-arrive {
  from { opacity: 0; transform: translateY(3px) scale(.86); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes lock-turn-open {
  0%, 18% { transform: rotate(0); }
  54% { transform: rotate(-25deg); }
  78%, 100% { transform: rotate(-38deg); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-discovery,
  .brand-discovery .wordmark,
  .brand-discovery .secret-stage,
  .brand-discovery .terminal-launcher {
    transition-duration: .01ms !important;
  }
  .brand-discovery[data-state="unlocking"] .secret-key,
  .brand-discovery[data-state="unlocking"] .secret-lock,
  .brand-discovery[data-state="unlocking"] .lock-shackle,
  .question-trigger.is-sparking {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
  }
}


/* The portfolio terminal takes its layout cues from a real terminal window,
   while keeping the colours, type and motion language of Hamood.uk. */
.portfolio-terminal-dialog {
  position: fixed;
  inset: 0;
  width: min(1120px,calc(100vw - 48px));
  height: min(660px,calc(100dvh - 80px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  color: #dedee5;
  background: #0b0b0f;
  box-shadow: 0 28px 100px rgba(0,0,0,.52),inset 0 1px rgba(255,255,255,.035);
  color-scheme: dark;
}
.portfolio-terminal-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: portfolio-terminal-enter .32s var(--ease) both;
}
.portfolio-terminal-dialog::backdrop {
  background: rgba(4,4,7,.93);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.terminal-window { display:flex; width:100%; height:100%; min-height:0; flex-direction:column; overflow:hidden; }
.terminal-titlebar {
  display:flex;
  height:43px;
  min-height:43px;
  align-items:stretch;
  gap:9px;
  padding:6px 8px 0;
  border-bottom:1px solid rgba(255,255,255,.09);
  color:#c8c8d1;
  background:#202025;
  font-family:var(--ui-font);
  font-size:10px;
  user-select:none;
  -webkit-user-select:none;
}
.terminal-tab {
  display:flex;
  width:min(340px,58%);
  min-width:0;
  align-items:center;
  gap:10px;
  padding:0 13px;
  border-radius:8px 8px 0 0;
  color:#e1e1e8;
  background:#0b0b0f;
}
.terminal-tab-mark { color:#aeb3cc; font-family:ui-monospace,"SFMono-Regular",Consolas,monospace; font-size:12px; letter-spacing:-.08em; }
.terminal-window-title { min-width:0; overflow:hidden; color:#e3e3e9; font-size:10px; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.terminal-tab-close { margin-left:auto; color:#858590; font-size:16px; line-height:1; }
.terminal-window-meta { display:flex; align-items:center; gap:7px; margin-left:auto; color:#858590; font-size:8px; font-weight:600; letter-spacing:.1em; }
.terminal-window-dot { width:4px; height:4px; border-radius:50%; background:#9ca2b9; opacity:.8; }
.terminal-window-close {
  display:grid;
  width:42px;
  min-width:42px;
  height:37px;
  place-items:center;
  margin:-6px -8px 0 3px;
  padding:0;
  border:0;
  border-left:1px solid rgba(255,255,255,.055);
  border-radius:0;
  color:#c5c5ce;
  background:transparent;
  cursor:pointer;
  transition:color .18s ease,background .18s ease;
}
.terminal-window-close svg { width:15px; height:15px; }
.terminal-window-close:hover { color:#fff; background:rgba(255,255,255,.09); }
.terminal-window-close:focus-visible { outline:2px solid #c7c9d7; outline-offset:-4px; }

.terminal-app {
  display:grid;
  width:100%;
  min-height:0;
  flex:1;
  grid-template-rows:auto minmax(0,1fr) auto auto auto auto;
  padding:23px 27px 14px;
  overflow:hidden;
  background:#0b0b0f;
  font-family:ui-monospace,"SFMono-Regular","Cascadia Code",Consolas,monospace;
  font-size:12px;
  line-height:1.6;
}
.terminal-executed-command { display:flex; grid-row:1; align-items:baseline; gap:0; margin-bottom:17px; color:#d9d9e1; font-size:12px; }
.terminal-prompt-user,.terminal-prompt-path { color:#aeb4cc; }
.terminal-prompt-symbol { margin-inline:9px 10px; color:#d7d7df; }
#terminal-executed-command { color:#d6d6df; overflow-wrap:anywhere; }
.terminal-output {
  grid-row:2;
  min-height:0;
  overflow:auto;
  padding:0 8px 10px 0;
  color:#c8c8d1;
  outline:none;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.17) transparent;
}
.terminal-output::-webkit-scrollbar { width:6px; }
.terminal-output::-webkit-scrollbar-thumb { border-radius:10px; background:rgba(255,255,255,.16); }
.terminal-navigation {
  display:flex;
  grid-row:3;
  flex-wrap:wrap;
  align-self:start;
  gap:24px;
  margin-top:20px;
  font-size:11px;
}
.terminal-navigation a {
  color:#92929e;
  text-decoration:none;
  text-underline-offset:5px;
  transition:color .2s ease;
}
.terminal-navigation a:hover,
.terminal-navigation a[aria-current="page"] { color:#e7e7ee; }
.terminal-navigation a[aria-current="page"] { text-decoration:underline; text-decoration-color:#aeb4cc; }
.terminal-response {
  grid-row:4;
  align-self:start;
  max-width:75ch;
  max-height:48px;
  margin:10px 0 0;
  overflow:auto;
  color:#a9a9b4;
  font-size:11px;
  overflow-wrap:anywhere;
}
.terminal-command-line {
  display:flex;
  grid-row:5;
  min-height:43px;
  align-items:baseline;
  gap:0;
  padding-top:17px;
  font-size:12px;
}
.terminal-command-line label { display:flex; align-items:baseline; flex:0 0 auto; white-space:nowrap; }
.terminal-input-wrap { position:relative; display:flex; min-width:0; flex:1; align-self:stretch; }
.terminal-command-line input {
  width:100%;
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  outline:0;
  color:#f1f1f4;
  background:transparent;
  caret-color:#c7c9d8;
  font:inherit;
}
.terminal-command-line input:focus-visible { outline:0; }
.terminal-run-command {
  align-self:center;
  margin-left:5px;
  padding:0 5px;
  border:0;
  color:#92929e;
  background:transparent;
  font-family:inherit;
  font-size:17px;
  line-height:1;
  opacity:0;
  transition:opacity .18s ease,color .18s ease;
}
.terminal-command-line:focus-within .terminal-run-command,
.terminal-run-command:focus-visible,
.terminal-run-command:hover { color:#e5e5ec; opacity:1; }
.terminal-statusline {
  display:flex;
  grid-row:6;
  justify-content:space-between;
  gap:12px;
  padding-top:11px;
  border-top:1px solid rgba(255,255,255,.07);
  color:#74747f;
  font-family:var(--ui-font);
  font-size:9px;
  letter-spacing:.015em;
}
.terminal-statusline kbd {
  padding:1px 4px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:4px;
  color:#a8a8b4;
  background:rgba(255,255,255,.035);
  font:inherit;
}
.terminal-fetch-profile { max-width:78ch; }
.terminal-profile-heading h1 {
  margin:0;
  color:#e6e6ed;
  font-size:16px;
  font-weight:500;
  letter-spacing:-.035em;
}
.terminal-profile-heading h1 span { color:#aeb4cc; }
.terminal-profile-rule { width:18ch; height:0; margin:5px 0 11px; border-top:1px solid #9295a8; opacity:.7; }
.terminal-profile-facts {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:5px 35px;
  margin:0;
  font-size:11px;
  line-height:1.65;
}
.terminal-profile-facts > div { display:flex; min-width:0; align-items:baseline; gap:10px; }
.terminal-profile-facts dt { flex:0 0 82px; color:#aeb4cc; }
.terminal-profile-facts dt::after { content:":"; }
.terminal-profile-facts dd { min-width:0; margin:0; color:#c9c9d2; overflow-wrap:anywhere; }
.terminal-intro-copy { max-width:70ch; margin-top:17px; color:#b4b4bf; font-size:11px; line-height:1.75; }
.terminal-intro-copy p { margin:0 0 9px; }
.terminal-document { max-width:80ch; }
.terminal-document h1 { margin:0 0 15px; color:#c4c8d9; font-size:14px; font-weight:500; }
.terminal-prose { color:#c2c2cc; font-size:11px; line-height:1.78; }
.terminal-prose p { margin:0 0 11px; }
.terminal-project-list { display:grid; gap:16px; line-height:1.55; }
.terminal-project header { display:flex; align-items:baseline; justify-content:space-between; gap:20px; }
.terminal-project h2 { margin:0; color:#c5c9da; font-size:12px; font-weight:500; }
.terminal-project h2 a { color:inherit; text-decoration:none; }
.terminal-project h2 a:hover { color:#f1f1f5; text-decoration:underline; text-underline-offset:4px; }
.terminal-project header > span { color:#83838f; font-family:var(--ui-font); font-size:8px; font-weight:600; letter-spacing:.1em; }
.terminal-project p { margin:4px 0 0; color:#c1c1cb; font-size:11px; }
.terminal-project .terminal-project-stack { color:#898995; font-size:10px; }
.terminal-skills-list,.terminal-help-list { display:grid; gap:12px; margin:0; font-size:11px; line-height:1.65; }
.terminal-skills-list > div,.terminal-help-list > div { display:grid; grid-template-columns:150px minmax(0,1fr); gap:17px; }
.terminal-skills-list dt,.terminal-help-list dt { color:#b4b9cf; }
.terminal-skills-list dd,.terminal-help-list dd { margin:0; color:#c3c3cd; }
.terminal-link-list { display:grid; gap:11px; }
.terminal-link-list a { display:grid; grid-template-columns:140px minmax(0,1fr); gap:18px; color:#c1c1cb; font-size:11px; text-decoration:none; }
.terminal-link-list a > span:first-child { color:#aeb4cc; }
.terminal-link-list a > span:last-child { overflow-wrap:anywhere; }
.terminal-link-list a:hover > span:last-child { color:#fff; text-decoration:underline; text-underline-offset:4px; }
.terminal-help-note { margin:17px 0 0; color:#898995; font-size:10px; line-height:1.65; }
.terminal-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;
}
@keyframes portfolio-terminal-enter {
  from { opacity:0; transform:translateY(9px) scale(.99); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
@media (hover:none),(pointer:coarse) {
  .brand-discovery[data-state="idle"] .wordmark { transform:translateX(-7px); }
  .brand-discovery[data-state="idle"] .question-trigger {
    width:38px;
    height:38px;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(-50%) scale(1);
  }
  .terminal-launcher { width:38px; height:38px; flex-basis:38px; }
}
@media (max-width:760px) {
  .portfolio-terminal-dialog {
    width:calc(100vw - 24px);
    height:calc(100dvh - 28px);
    max-height:calc(100dvh - 28px);
    border-radius:12px;
  }
  .terminal-app { padding:19px 18px 12px; }
  .terminal-profile-facts { grid-template-columns:minmax(0,1fr); gap:4px; }
  .terminal-profile-facts dt { flex-basis:78px; }
  .terminal-navigation { gap:18px; margin-top:17px; }
  .terminal-skills-list > div,.terminal-help-list > div { grid-template-columns:120px minmax(0,1fr); gap:12px; }
}
@media (max-width:520px) {
  .terminal-titlebar { height:39px; min-height:39px; padding-top:5px; }
  .terminal-tab { width:min(260px,72%); height:33px; padding-inline:10px; gap:7px; }
  .terminal-titlebar .terminal-window-meta { display:none; }
  .terminal-window-close { height:33px; margin-top:-5px; }
  .terminal-app { padding:16px 14px 10px; }
  .terminal-executed-command,.terminal-command-line { font-size:10px; }
  .terminal-prompt-symbol { margin-inline:6px 7px; }
  .terminal-navigation { gap:14px; margin-top:15px; font-size:10px; }
  .terminal-profile-facts { font-size:10px; }
  .terminal-intro-copy,.terminal-prose,.terminal-project p,.terminal-skills-list,.terminal-help-list,.terminal-link-list a { font-size:10px; }
  .terminal-project-list { gap:13px; }
  .terminal-skills-list > div,.terminal-help-list > div,.terminal-link-list a { grid-template-columns:105px minmax(0,1fr); gap:10px; }
  .terminal-statusline { font-size:8px; }
}
@media (max-width:370px) {
  .terminal-app { padding-inline:11px; }
  .terminal-navigation { gap:11px; }
  .terminal-command-line { font-size:9px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-discovery .wordmark,.question-trigger,.secret-stage,.terminal-launcher,.portfolio-terminal-dialog[open] {
    animation:none !important;
    transition-duration:.01ms !important;
  }
  .question-trigger.is-sparking { animation:none !important; }
  .brand-discovery[data-state="unlocking"] .secret-key,
  .brand-discovery[data-state="unlocking"] .secret-lock { animation:none !important; opacity:1; }
  .brand-discovery[data-state="unlocking"] .lock-shackle { animation:none !important; transform:rotate(-32deg) translate(-1px,-1px); }
  .brand-discovery[data-state="unlocked"] .secret-key,
  .brand-discovery[data-state="terminal"] .secret-key { opacity:0; }
}
.site-header.is-over-light .question-trigger { color:#565660; }
.site-header.is-over-light .question-trigger:hover,
.site-header.is-over-light .question-trigger:focus-visible {
  border-color:rgba(20,20,24,.18);
  color:#17171c;
  background:rgba(20,20,24,.055);
}
.site-header.is-over-light .secret-key,
.site-header.is-over-light .secret-lock,
.site-header.is-over-light .terminal-launcher { color:#555561; }
.site-header.is-over-light .terminal-launcher:hover,
.site-header.is-over-light .terminal-launcher:focus-visible {
  border-color:rgba(20,20,24,.18);
  color:#17171c;
  background:rgba(20,20,24,.055);
}


/* Terminal finish: one typeface, one palette, and window chrome that reads
   like a real terminal instead of a portfolio card. */
#portfolio-terminal {
  --terminal-font: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --terminal-canvas: #050608;
  --terminal-surround: #0b0d11;
  --terminal-titlebar: #2b2d30;
  --terminal-border: #292d34;
  --terminal-text: #e2e1d9;
  --terminal-secondary: #a3a299;
  --terminal-muted: #74736c;
  --terminal-accent: #d6ca7b;
  --terminal-accent-bright: #eee2a0;
  font-family: var(--terminal-font);
}
#portfolio-terminal,
#portfolio-terminal * {
  font-family: var(--terminal-font) !important;
  font-variant-ligatures: none;
}
.portfolio-terminal-dialog {
  width: min(1120px,calc(100vw - 48px));
  height: min(660px,calc(100dvh - 80px));
  max-height: calc(100dvh - 40px);
  border: 1px solid var(--terminal-border);
  border-radius: 11px;
  color: var(--terminal-text);
  background: var(--terminal-canvas);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.portfolio-terminal-dialog::backdrop {
  background: var(--terminal-surround);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.terminal-window { background: var(--terminal-canvas); }
.terminal-titlebar {
  height: 43px;
  min-height: 43px;
  gap: 0;
  padding: 6px 0 0 8px;
  border: 0;
  color: #dce0e6;
  background: var(--terminal-titlebar);
  font-size: 11px;
  line-height: 1.5;
}
.terminal-tab {
  width: 270px;
  height: 37px;
  flex: 0 1 270px;
  gap: 10px;
  padding: 0 14px;
  border-radius: 8px 8px 0 0;
  color: #dce0e6;
  background: var(--terminal-canvas);
}
.terminal-tab-mark {
  color: var(--terminal-accent);
  font-size: 14px;
  letter-spacing: -.06em;
}
.terminal-window-title {
  color: #dce0e6;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}
.terminal-tab-close {
  color: #b4bac3;
  font-size: 17px;
}
.terminal-tab-add,
.terminal-tab-menu {
  display: grid;
  width: 41px;
  flex: 0 0 41px;
  place-items: center;
  padding-bottom: 4px;
  color: #dce0e6;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.terminal-tab-menu {
  width: 30px;
  flex-basis: 30px;
  color: #aeb3bb;
  font-size: 16px;
}
.terminal-window-actions {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  margin-left: auto;
  margin-top: -6px;
}
.terminal-window-control {
  display: grid;
  width: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: #e8e8e8;
  transition: background-color .12s ease,color .12s ease;
}
.terminal-window-control svg {
  display: block;
  width: 16px;
  height: 16px;
}
.terminal-window-actions .terminal-window-control:hover {
  color: #fff;
  background: #454649;
}
.terminal-window-close {
  width: 46px;
  min-width: 46px;
  height: 37px;
  flex: 0 0 46px;
  margin: -6px 0 0;
  border: 0;
  border-radius: 0;
  color: #e8e8e8;
  background: transparent;
}
.terminal-window-close:hover {
  color: #fff;
  background: #c42b1c;
}
.terminal-window-close:active { background: #a42519; }
.terminal-app {
  grid-template-rows: auto minmax(0,1fr) auto minmax(44px,.2fr) auto;
  padding: 23px 27px 26px;
  color: var(--terminal-text);
  background: var(--terminal-canvas);
  font-size: 13px;
  line-height: 1.5;
}
.terminal-executed-command {
  margin-bottom: 16px;
  color: var(--terminal-text);
  font-size: 13px;
  line-height: 1.5;
}
.terminal-prompt-user,
.terminal-prompt-path {
  color: var(--terminal-accent);
}
.terminal-prompt-symbol {
  margin-inline: 0 10px;
  color: var(--terminal-text);
}
#terminal-executed-command { color: var(--terminal-text); }
.terminal-output {
  padding-right: 6px;
  color: var(--terminal-text);
  font-size: 13px;
  line-height: 1.5;
  scrollbar-color: #293341 var(--terminal-canvas);
}
.terminal-output::-webkit-scrollbar-thumb { background: #293341; }
.terminal-navigation {
  gap: 24px;
  margin-top: 23px;
  font-size: 12px;
  line-height: 1.5;
}
.terminal-navigation a { color: var(--terminal-secondary); }
.terminal-navigation a:hover,
.terminal-navigation a[aria-current="page"] { color: var(--terminal-accent); }
.terminal-navigation a[aria-current="page"] { text-decoration-color: var(--terminal-accent); }
.terminal-response {
  max-height: 44px;
  margin-top: 12px;
  color: var(--terminal-secondary);
  font-size: 11px;
  line-height: 1.5;
}
.terminal-response[data-kind="error"] { color: #d98b7d; }
.terminal-command-line {
  min-height: 44px;
  padding-top: 20px;
  color: var(--terminal-text);
  font-size: 13px;
  line-height: 1.5;
}
.terminal-command-line input {
  color: var(--terminal-text);
  caret-color: var(--terminal-accent);
  font: inherit;
}
.terminal-run-command { color: var(--terminal-secondary); }
.terminal-command-line:focus-within .terminal-run-command,
.terminal-run-command:focus-visible,
.terminal-run-command:hover { color: var(--terminal-accent); }
.terminal-profile-heading h1 {
  color: var(--terminal-accent);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}
.terminal-profile-heading h1 span { color: var(--terminal-accent); }
.terminal-profile-rule {
  width: 18ch;
  margin: 4px 0 9px;
  border-color: #a9a28a;
  opacity: .75;
}
.terminal-profile-facts {
  gap: 5px 32px;
  font-size: 12px;
  line-height: 1.55;
}
.terminal-profile-facts dt {
  flex-basis: 86px;
  color: var(--terminal-accent);
}
.terminal-profile-facts dd { color: var(--terminal-text); }
.terminal-intro-copy {
  margin-top: 16px;
  color: var(--terminal-secondary);
  font-size: 12px;
  line-height: 1.65;
}
.terminal-document { max-width: 76ch; }
.terminal-document h1 {
  margin-bottom: 15px;
  color: var(--terminal-accent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.terminal-prose {
  color: var(--terminal-text);
  font-size: 12px;
  line-height: 1.65;
}
.terminal-project-list {
  gap: 20px;
  line-height: 1.5;
}
.terminal-project h2 {
  color: var(--terminal-accent);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.terminal-project h2 a:hover { color: var(--terminal-accent-bright); }
.terminal-project header > span {
  color: var(--terminal-secondary);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}
.terminal-project p {
  margin-top: 3px;
  color: var(--terminal-text);
  font-size: 12px;
  line-height: 1.5;
}
.terminal-project .terminal-project-stack {
  color: var(--terminal-secondary);
  font-size: 11px;
}
.terminal-skills-list,
.terminal-help-list {
  gap: 13px;
  font-size: 12px;
  line-height: 1.55;
}
.terminal-skills-list > div,
.terminal-help-list > div { grid-template-columns: 150px minmax(0,1fr); }
.terminal-skills-list dt,
.terminal-help-list dt,
.terminal-link-list a > span:first-child { color: var(--terminal-accent); }
.terminal-skills-list dd,
.terminal-help-list dd { color: var(--terminal-text); }
.terminal-link-list { gap: 13px; }
.terminal-link-list a {
  grid-template-columns: 140px minmax(0,1fr);
  gap: 18px;
  color: var(--terminal-text);
  font-size: 12px;
  line-height: 1.55;
}
.terminal-link-list a:hover > span:last-child { color: var(--terminal-accent-bright); }
.terminal-help-note {
  margin-top: 17px;
  color: var(--terminal-secondary);
  font-size: 11px;
  line-height: 1.6;
}
.terminal-page-enter {
  animation: terminal-page-enter .2s cubic-bezier(.22,.72,.2,1) both;
}
@keyframes terminal-page-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width:760px) {
  .portfolio-terminal-dialog {
    width: calc(100vw - 24px);
    height: calc(100dvh - 28px);
    max-height: calc(100dvh - 28px);
  }
  .terminal-app { padding: 20px 18px 20px; }
  .terminal-profile-facts {
    grid-template-columns: minmax(0,1fr);
    gap: 4px;
    font-size: 12px;
  }
  .terminal-profile-facts dt { flex-basis: 86px; }
  .terminal-navigation { gap: 18px; margin-top: 18px; }
  .terminal-skills-list > div,
  .terminal-help-list > div { grid-template-columns: 120px minmax(0,1fr); gap: 12px; }
}
@media (max-width:520px) {
  .terminal-titlebar { height: 39px; min-height: 39px; padding-top: 5px; }
  .terminal-tab { width: min(270px,62%); height: 33px; flex-basis: min(270px,62%); padding-inline: 10px; gap: 7px; }
  .terminal-tab-add { width: 31px; flex-basis: 31px; font-size: 20px; }
  .terminal-tab-menu { width: 24px; flex-basis: 24px; }
  .terminal-window-control { width: 34px; flex-basis: 34px; }
  .terminal-window-close { width: 38px; min-width: 38px; flex-basis: 38px; height: 33px; margin-top: -5px; }
  .terminal-app { padding: 17px 14px 19px; font-size: 12px; }
  .terminal-executed-command,
  .terminal-command-line { font-size: 11px; }
  .terminal-prompt-symbol { margin-right: 7px; }
  .terminal-navigation { gap: 14px; margin-top: 16px; font-size: 11px; }
  .terminal-profile-facts,
  .terminal-intro-copy,
  .terminal-prose,
  .terminal-project p,
  .terminal-skills-list,
  .terminal-help-list,
  .terminal-link-list a { font-size: 11px; }
  .terminal-project-list { gap: 16px; }
  .terminal-skills-list > div,
  .terminal-help-list > div,
  .terminal-link-list a { grid-template-columns: 105px minmax(0,1fr); gap: 10px; }
}
@media (max-width:370px) {
  .terminal-tab { width: min(230px,60%); flex-basis: min(230px,60%); }
  .terminal-app { padding-inline: 11px; }
  .terminal-navigation { gap: 11px; }
  .terminal-command-line { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-terminal-dialog[open],
  .terminal-page-enter { animation: none !important; }
}


/* Keep the titlebar intentionally simple: one tab and one real close action. */
.terminal-tab-add,
.terminal-tab-menu,
.terminal-window-actions { display: none !important; }
.terminal-tab {
  width: min(330px,calc(100% - 54px));
  flex: 0 1 330px;
}
.terminal-titlebar { justify-content: space-between; }
.terminal-window-close {
  margin-left: auto;
  border-left: 1px solid rgba(255,255,255,.06);
}
@media (max-width:520px) {
  .terminal-tab { width: min(270px,calc(100% - 46px)); flex-basis: min(270px,calc(100% - 46px)); }
}


/* Hamood terminal — monochrome glass, quiet macOS controls and a compact
   two-column fastfetch profile. JetBrains Mono is used throughout. */
#portfolio-terminal {
  --terminal-font: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --terminal-canvas: #080808;
  --terminal-text: #ededed;
  --terminal-secondary: #b1b1b1;
  --terminal-muted: #777;
  --terminal-accent: #f1f1f1;
  --terminal-accent-bright: #fff;
  font-family: var(--terminal-font);
  background: rgba(8,8,8,.84);
  -webkit-backdrop-filter: blur(40px) saturate(112%);
  backdrop-filter: blur(40px) saturate(112%);
}
#portfolio-terminal,
#portfolio-terminal * {
  font-family: var(--terminal-font) !important;
  font-variant-ligatures: none;
}
.portfolio-terminal-dialog {
  width: min(1120px,calc(100vw - 48px));
  height: min(660px,calc(100dvh - 80px));
  max-height: calc(100dvh - 40px);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 18px;
  color: var(--terminal-text);
  background: rgba(8,8,8,.78);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 34px 110px rgba(0,0,0,.56),
    inset 0 1px 0 rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(36px) saturate(110%);
  backdrop-filter: blur(36px) saturate(110%);
}
.portfolio-terminal-dialog::backdrop {
  background: rgba(0,0,0,.76);
  -webkit-backdrop-filter: blur(48px) saturate(105%) brightness(.45);
  backdrop-filter: blur(48px) saturate(105%) brightness(.45);
}
.terminal-window {
  display:flex;
  width:100%;
  height:100%;
  min-height:0;
  flex-direction:column;
  overflow:hidden;
  border-radius:inherit;
  background:transparent;
}
.terminal-titlebar {
  position:relative;
  display:grid;
  height:48px;
  min-height:48px;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  padding:0 16px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.13);
  border-radius:17px 17px 0 0;
  color:#eee;
  background:#080808;
  font-size:10px;
  line-height:1.4;
  user-select:none;
  -webkit-user-select:none;
}
.terminal-window-controls {
  display:flex;
  width:max-content;
  min-width:58px;
  align-items:center;
  gap:8px;
}
.terminal-window-control {
  position:relative;
  display:grid;
  width:11px;
  height:11px;
  flex:0 0 11px;
  place-items:center;
  overflow:hidden;
  padding:0;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13);
}
.terminal-window-close {
  width:11px;
  min-width:11px;
  height:11px;
  flex:0 0 11px;
  margin:0;
  color:#090909;
  background:#a7a7a7;
  cursor:pointer;
  transition:background .16s ease,transform .16s ease;
}
.terminal-window-close svg {
  display:block;
  width:7px;
  height:7px;
  opacity:0;
  transition:opacity .14s ease;
}
.terminal-window-close:hover { background:#fff; }
.terminal-window-close:hover svg,
.terminal-window-close:focus-visible svg { opacity:1; }
.terminal-window-close:focus-visible {
  outline:2px solid #fff;
  outline-offset:3px;
}
.terminal-window-minimise { background:#686868; }
.terminal-window-zoom { background:#d5d5d5; }
.terminal-window-title {
  grid-column:2;
  justify-self:center;
  max-width:min(52vw,540px);
  overflow:hidden;
  color:#c9c9c9;
  font-size:10px;
  font-weight:500;
  line-height:1.4;
  letter-spacing:-.025em;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.terminal-titlebar-balance { grid-column:3; justify-self:end; width:58px; }
.terminal-app {
  display:grid;
  width:100%;
  min-height:0;
  flex:1;
  grid-template-rows:auto minmax(0,1fr) auto auto auto;
  padding:23px 27px 22px;
  overflow:hidden;
  color:var(--terminal-text);
  background:linear-gradient(145deg,rgba(8,8,8,.92),rgba(13,13,13,.94));
  -webkit-backdrop-filter:blur(40px) saturate(108%);
  backdrop-filter:blur(40px) saturate(108%);
  font-size:13px;
  line-height:1.5;
}
.terminal-executed-command {
  display:flex;
  grid-row:1;
  align-items:baseline;
  gap:0;
  margin-bottom:16px;
  color:var(--terminal-text);
  font-size:13px;
}
.terminal-prompt-user,
.terminal-prompt-path { color:#f0f0f0; }
.terminal-prompt-symbol { margin-inline:0 10px; color:#d0d0d0; }
#terminal-executed-command { color:#eee; overflow-wrap:anywhere; }
.terminal-output {
  grid-row:2;
  min-height:0;
  overflow:auto;
  padding:0 7px 10px 0;
  color:#e7e7e7;
  outline:none;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.22) transparent;
  font-size:13px;
  line-height:1.55;
}
.terminal-output::-webkit-scrollbar { width:6px; }
.terminal-output::-webkit-scrollbar-thumb { border-radius:10px; background:rgba(255,255,255,.2); }
.terminal-navigation {
  display:flex;
  grid-row:3;
  flex-wrap:wrap;
  align-self:start;
  gap:24px;
  margin-top:22px;
  font-size:12px;
}
.terminal-navigation a {
  color:#999;
  text-decoration:none;
  text-underline-offset:5px;
  transition:color .18s ease;
}
.terminal-navigation a:hover,
.terminal-navigation a[aria-current="page"] { color:#fff; }
.terminal-navigation a[aria-current="page"] {
  text-decoration:underline;
  text-decoration-color:#eee;
}
.terminal-response {
  grid-row:4;
  align-self:start;
  max-width:75ch;
  max-height:44px;
  margin:10px 0 0;
  overflow:auto;
  color:#aaa;
  font-size:11px;
  overflow-wrap:anywhere;
}
.terminal-response[data-kind="error"] { color:#ddd; }
.terminal-command-line {
  display:flex;
  grid-row:5;
  min-height:44px;
  align-items:baseline;
  gap:0;
  padding-top:18px;
  color:#eee;
  font-size:13px;
}
.terminal-command-line label { display:flex; align-items:baseline; flex:0 0 auto; white-space:nowrap; }
.terminal-input-wrap { position:relative; display:flex; min-width:0; flex:1; align-self:stretch; }
.terminal-command-line input {
  width:100%;
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  outline:0;
  color:#fff;
  background:transparent;
  caret-color:#fff;
  font:inherit;
}
.terminal-command-line input:focus-visible { outline:0; }
.terminal-run-command {
  align-self:center;
  margin-left:5px;
  padding:0 5px;
  border:0;
  color:#999;
  background:transparent;
  font-family:inherit;
  font-size:17px;
  line-height:1;
  opacity:0;
  transition:opacity .18s ease,color .18s ease;
}
.terminal-command-line:focus-within .terminal-run-command,
.terminal-run-command:focus-visible,
.terminal-run-command:hover { color:#fff; opacity:1; }
.terminal-fetch-profile {
  display:grid;
  width:min(100%,900px);
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  align-items:start;
  gap:0 52px;
  padding-top:12px;
}
.terminal-fetch-overview { min-width:0; }
.terminal-profile-heading h1 {
  margin:0;
  color:#f3f3f3;
  font-size:15px;
  font-weight:500;
  letter-spacing:-.025em;
  line-height:1.5;
}
.terminal-profile-rule {
  width:100%;
  height:0;
  margin:9px 0 14px;
  border:0;
  border-top:1px solid rgba(255,255,255,.28);
}
.terminal-fetch-role {
  margin:0 0 18px;
  color:#c7c7c7;
  font-size:11px;
}
.terminal-intro-copy {
  max-width:48ch;
  margin-top:0;
  color:#aaa;
  font-size:11px;
  line-height:1.8;
}
.terminal-intro-copy p { margin:0 0 13px; }
.terminal-fetch-system {
  min-width:0;
  padding-top:1px;
}
.terminal-profile-facts {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  margin:0;
  font-size:11px;
  line-height:1.5;
}
.terminal-profile-facts > div {
  display:grid;
  min-width:0;
  grid-template-columns:88px minmax(0,1fr);
  align-items:baseline;
  gap:12px;
}
.terminal-profile-facts dt { color:#999; }
.terminal-profile-facts dt::after { content:":"; }
.terminal-profile-facts dd {
  min-width:0;
  margin:0;
  color:#e5e5e5;
  overflow-wrap:anywhere;
}
.terminal-document { max-width:76ch; }
.terminal-document h1 {
  margin:0 0 15px;
  color:#f1f1f1;
  font-size:15px;
  font-weight:500;
  line-height:1.5;
}
.terminal-prose { color:#e2e2e2; font-size:12px; line-height:1.75; }
.terminal-prose p { margin:0 0 11px; }
.terminal-project-list { display:grid; gap:18px; line-height:1.5; }
.terminal-project header { display:flex; align-items:baseline; justify-content:space-between; gap:20px; }
.terminal-project h2 { margin:0; color:#f0f0f0; font-size:13px; font-weight:500; }
.terminal-project h2 a { color:inherit; text-decoration:none; }
.terminal-project h2 a:hover { color:#fff; text-decoration:underline; text-underline-offset:4px; }
.terminal-project header > span { color:#999; font-size:9px; font-weight:400; letter-spacing:.04em; }
.terminal-project p { margin:4px 0 0; color:#ddd; font-size:11px; }
.terminal-project .terminal-project-stack { color:#999; font-size:10px; }
.terminal-skills-list,
.terminal-help-list { display:grid; gap:13px; margin:0; font-size:11px; line-height:1.65; }
.terminal-skills-list > div,
.terminal-help-list > div { display:grid; grid-template-columns:150px minmax(0,1fr); gap:16px; }
.terminal-skills-list dt,
.terminal-help-list dt,
.terminal-link-list a > span:first-child { color:#aaa; }
.terminal-skills-list dd,
.terminal-help-list dd { margin:0; color:#e2e2e2; }
.terminal-link-list { display:grid; gap:13px; }
.terminal-link-list a {
  display:grid;
  grid-template-columns:140px minmax(0,1fr);
  gap:18px;
  color:#ddd;
  font-size:11px;
  text-decoration:none;
}
.terminal-link-list a > span:last-child { overflow-wrap:anywhere; }
.terminal-link-list a:hover > span:last-child { color:#fff; text-decoration:underline; text-underline-offset:4px; }
.terminal-help-note { margin:17px 0 0; color:#999; font-size:10px; line-height:1.65; }
.terminal-page-enter { animation:terminal-page-enter .2s cubic-bezier(.22,.72,.2,1) both; }
@keyframes terminal-page-enter {
  from { opacity:0; transform:translateY(4px); }
  to { opacity:1; transform:translateY(0); }
}
@media (max-width:760px) {
  .portfolio-terminal-dialog {
    width:calc(100vw - 24px);
    height:calc(100dvh - 28px);
    max-height:calc(100dvh - 28px);
    border-radius:17px;
  }
  .terminal-titlebar { border-radius:16px 16px 0 0; }
  .terminal-app { padding:19px 18px 18px; }
  .terminal-fetch-profile { grid-template-columns:minmax(0,1fr); gap:24px; padding-top:5px; }
  .terminal-intro-copy { max-width:62ch; }
  .terminal-profile-facts { gap:8px; }
  .terminal-profile-facts > div { grid-template-columns:82px minmax(0,1fr); }
  .terminal-navigation { gap:18px; margin-top:18px; }
  .terminal-skills-list > div,
  .terminal-help-list > div { grid-template-columns:120px minmax(0,1fr); gap:12px; }
}
@media (max-width:520px) {
  .terminal-titlebar { height:45px; min-height:45px; padding-inline:12px; }
  .terminal-window-controls { gap:7px; min-width:54px; }
  .terminal-window-control { width:11px; height:11px; flex-basis:11px; }
  .terminal-titlebar-balance { width:54px; }
  .terminal-titlebar .terminal-window-title { font-size:9px; }
  .terminal-app { padding:16px 14px 15px; font-size:11px; }
  .terminal-executed-command,
  .terminal-command-line { font-size:11px; }
  .terminal-prompt-symbol { margin-right:7px; }
  .terminal-navigation { gap:14px; margin-top:15px; font-size:10px; }
  .terminal-profile-heading h1,
  .terminal-document h1 { font-size:13px; }
  .terminal-fetch-role,
  .terminal-intro-copy,
  .terminal-prose,
  .terminal-project p,
  .terminal-skills-list,
  .terminal-help-list,
  .terminal-link-list a { font-size:10px; }
  .terminal-project-list { gap:14px; }
  .terminal-skills-list > div,
  .terminal-help-list > div,
  .terminal-link-list a { grid-template-columns:105px minmax(0,1fr); gap:10px; }
}
@media (max-width:370px) {
  .terminal-app { padding-inline:11px; }
  .terminal-navigation { gap:11px; }
  .terminal-command-line { font-size:10px; }
}
@media (prefers-reduced-motion:reduce) {
  .portfolio-terminal-dialog[open],
  .terminal-page-enter,
  .terminal-window-close,
  .terminal-window-close svg { animation:none !important; transition:none !important; }
}

/* Frost the page layers themselves behind the top-layer terminal. */
body:has(#portfolio-terminal[open]) > .grid-backdrop,
body:has(#portfolio-terminal[open]) > .ambient,
body:has(#portfolio-terminal[open]) > .scroll-progress,
body:has(#portfolio-terminal[open]) > .cursor-companion,
body:has(#portfolio-terminal[open]) > .site-header,
body:has(#portfolio-terminal[open]) > #home,
body:has(#portfolio-terminal[open]) > .site-footer {
  filter:blur(22px) brightness(.72) saturate(.85);
}
.portfolio-terminal-dialog::backdrop {
  background:rgba(0,0,0,.34);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}


/* Final refinements: clean fastfetch-only home and native macOS traffic lights. */
#portfolio-terminal .terminal-fetch-profile {
  display:block;
  width:min(100%,760px);
  padding-top:12px;
}
#portfolio-terminal .terminal-fetch-system {
  width:100%;
  max-width:620px;
  padding:0;
}
#portfolio-terminal .terminal-profile-facts {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:8px;
  font-size:12px;
  line-height:1.65;
}
#portfolio-terminal .terminal-profile-facts > div {
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  gap:12px;
  align-items:baseline;
}
#portfolio-terminal .terminal-profile-facts dt { color:#999; }
#portfolio-terminal .terminal-profile-facts dd { color:#ededed; }

/* macOS traffic-light colours and hover glyphs. */
#portfolio-terminal .terminal-window-close {
  border-color:#e0443e;
  color:#4a0d0b;
  background:#ff5f57;
}
#portfolio-terminal .terminal-window-close:hover { background:#ff5f57; }
#portfolio-terminal .terminal-window-close svg { opacity:0; }
#portfolio-terminal .terminal-window-close:hover svg,
#portfolio-terminal .terminal-window-close:focus-visible svg { opacity:1; }
#portfolio-terminal .terminal-window-minimise {
  border-color:#dea123;
  background:#febc2e;
}
#portfolio-terminal .terminal-window-zoom {
  border-color:#1dad36;
  background:#28c840;
}
#portfolio-terminal .terminal-window-minimise::after {
  width:5px;
  height:1px;
  background:#85520a;
  content:"";
  opacity:0;
}
#portfolio-terminal .terminal-window-zoom::after {
  width:5px;
  height:5px;
  border:1px solid #126b27;
  border-left:0;
  border-bottom:0;
  content:"";
  opacity:0;
  transform:translate(-.5px,.5px);
}
#portfolio-terminal .terminal-window-controls:hover .terminal-window-minimise::after,
#portfolio-terminal .terminal-window-controls:hover .terminal-window-zoom::after { opacity:1; }
@media (max-width:760px) {
  #portfolio-terminal .terminal-fetch-profile { padding-top:5px; }
  #portfolio-terminal .terminal-profile-facts { gap:7px; }
}
