/* Portfolio visual system — layout, typography, components and motion. */

/* Local font */
@font-face {
  font-family: DisplayCond;
  src: url(../assets/fonts/open-sans-condensed-bold.woff) format('woff');
  font-display: swap;
  font-weight: 700;
}

/* Design tokens */
:root {
  --bg: #080808;
  --surface: #10100f;
  --surface2: #151513;
  --line: #2b2b28;
  --line2: #44433f;
  --ink: #f5f0e7;
  --accent: #f5f0e7;
  --muted: #b1aea6;
  --dim: #898781;
  --gold: #c9b99a;
  --mono: "SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --display: DisplayCond,"Arial Narrow","Roboto Condensed",Arial,sans-serif;
  --body: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --wrap: 1280px;
  --blue: #77b8fb;
}

/* Base styles and shared primitives */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.6 var(--body);
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #080808;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible,a:focus-visible {
  outline: 2px solid #b9d5f0;
  outline-offset: 5px;
}

button[disabled] {
  cursor: default;
}

.wrap {
  width: min(calc(100% - 100px),var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px;
  background: var(--ink);
  color: #000;
}

.skip-link:focus {
  top: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.mono {
  font: 11px/1.5 var(--mono);
  letter-spacing: .045em;
}

.label {
  font: 11px/1.5 var(--mono);
  font-weight: 600;
  letter-spacing: .115em;
  text-transform: uppercase;
  color: var(--gold);
}

.icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.headline {
  font: 700 clamp(46px,5.9vw,88px)/.94 var(--display);
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 0;
}

.headline em {
  color: var(--accent);
  font-style: normal;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 17px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 45px;
  border: 1px solid var(--line2);
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
  transition: background .2s,color .2s,border-color .2s,transform .15s;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

.btn.solid:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn:active {
  transform: translateY(0);
}

/* Navigation and header */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #21211f;
  background: #080808ed;
  backdrop-filter: blur(15px);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.logo {
  height: 34px;
  width: 34px;
  background: var(--accent);
  color: #090909;
  display: grid;
  place-items: center;
  font: 700 23px/1 var(--display);
  letter-spacing: -.07em;
  transition: background .25s;
}

.navlinks {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-left: auto;
}

.navlinks a {
  font-size: 12px;
  color: var(--muted);
  position: relative;
}

.navlinks a:hover,.navlinks a.active {
  color: var(--ink);
}

.navlinks a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 13px;
}

.nav-status {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  white-space: nowrap;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8c19d;
  box-shadow: 0 0 0 3px #a8c19d17;
  display: inline-block;
  flex: none;
}

.nav .btn {
  font-size: 11px;
  min-height: 34px;
  padding: 7px 11px;
}

.nav .icon {
  width: 15px;
  height: 15px;
}

.mobile-menu {
  display: none;
  padding: 7px;
  background: none;
  color: var(--ink);
  border: 1px solid var(--line2);
  width: 35px;
  height: 34px;
  place-items: center;
}

.progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--accent);
  width: 0;
}

/* Hero and introduction */
.hero {
  position: relative;
  padding: 20px 0 46px;
  min-height: min(760px,calc(100svh - 68px));
  display: flex;
  align-items: center;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(#fff1 .8px,transparent .8px);
  background-size: 19px 19px;
  mask-image: radial-gradient(ellipse at 50% 46%,black 5%,transparent 72%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dim);
  margin: 0 0 10px;
  min-height: 30px;
  gap: 15px;
}

.hero-top .mono {
  font-size: 10px;
  letter-spacing: .13em;
}

.controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ctrl {
  color: var(--muted);
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  font: 10px/1.4 var(--mono);
  white-space: nowrap;
}

.ctrl:hover {
  color: var(--ink);
}

.ctrl svg {
  width: 13px;
  height: 13px;
}

.hero-outline {
  pointer-events: none;
  width: 100%;
  display: block;
  overflow: visible;
  margin: 0 0 -8px;
}

.hero-outline text {
  font-family: var(--display);
  font-weight: 700;
  fill: transparent;
  stroke: var(--accent);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  transition: stroke .4s;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .64fr .91fr;
  gap: 46px;
  align-items: center;
  padding: 0 0 20px;
}

.identity {
  min-width: 0;
}

.hello {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}

.identity h1 {
  font: 700 clamp(31px,4.5vw,65px)/.97 var(--display);
  letter-spacing: -.035em;
  text-transform: uppercase;
  display: table;
  background: var(--accent);
  color: #0b0b0a;
  padding: 5px 10px 6px;
  margin: 0 0 16px;
  transition: background .25s;
}

.hero-role {
  font: 600 11px/1.5 var(--mono);
  letter-spacing: .035em;
  color: var(--ink);
  margin: 0 0 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hero-role:before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  display: inline-block;
  margin-top: 5px;
  flex: none;
}

.intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 460px;
  margin: 0 0 18px;
}

.intro strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-socials {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.hero-socials a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.hero-socials a:hover {
  color: var(--accent);
}

/* Engineering monogram */
.emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.emblem-graphic {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 270px;
  background: radial-gradient(ellipse at center,#24231f 0%,#161614 56%,#10100f 74%,transparent 74%);
  border: 1px solid #726e64;
  border-radius: 50%;
  isolation: isolate;
  overflow: hidden;
}

.emblem-graphic:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(#fff2 .7px,transparent .7px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse,black 15%,transparent 82%);
}

.emblem svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
}

.emblem .orb {
  fill: none;
  stroke: #777267;
  stroke-width: .6;
}

.emblem .orb.dash {
  stroke-dasharray: 3 5;
}

.emblem .trace {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-dasharray: 6 3;
  animation: trace 6s linear infinite;
}

.emblem .faint-trace {
  fill: none;
  stroke: #69665d;
  stroke-width: 1;
}

.emblem .point {
  fill: var(--accent);
  filter: drop-shadow(0 0 5px #fff8);
}

.emblem .initials {
  fill: var(--accent);
  font: 700 97px var(--display);
  letter-spacing: -7px;
}

.emblem .small-text {
  fill: #a7a398;
  font: 7px var(--mono);
  letter-spacing: .1em;
}

.emblem-caption {
  font: 10px var(--mono);
  color: #111;
  background: var(--accent);
  padding: 5px 10px;
  position: relative;
  margin-top: -12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  z-index: 1;
}

@keyframes trace {
  to {
    stroke-dashoffset: -90;
  }
}

/* Focus panel and accent selector */
.focus {
  padding: 7px 0 2px;
  align-self: center;
  min-width: 0;
}

.focus .label {
  letter-spacing: .06em;
  margin-bottom: 5px;
  color: var(--dim);
}

.focus-item {
  border-bottom: 1px solid var(--line);
  position: relative;
  padding: 13px 0 12px 14px;
}

.focus-item:before {
  content: "";
  height: calc(100% - 25px);
  left: 0;
  top: 13px;
  width: 2px;
  background: var(--accent);
  position: absolute;
}

.focus-item:last-child {
  border: 0;
}

.focus-item b {
  color: var(--ink);
  display: block;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 4px;
}

.focus-item p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.focus-item p strong {
  font-weight: 500;
  color: var(--ink);
}

.palette {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
}

.palette .mono {
  color: var(--dim);
  font-size: 10px;
  margin-right: 5px;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color);
  border: 1px solid #bcb8af;
  padding: 0;
  transition: transform .2s;
}

.swatch:hover {
  transform: scale(1.16);
}

.swatch[aria-pressed=true] {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

/* Impact metrics */
.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 0;
  margin-top: 30px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 18px 17px 0;
  border-right: 1px solid var(--line);
}

.stat:not(:first-child) {
  padding-left: 21px;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  font: 700 clamp(31px,4vw,62px)/.94 var(--display);
  letter-spacing: -.03em;
  color: var(--accent);
  white-space: nowrap;
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

/* Sections and about timeline */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  margin: 13px 0 0;
  max-width: 720px;
}

.section-head {
  margin-bottom: 31px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 84px;
  align-items: start;
}

.about-copy .headline {
  max-width: 610px;
  margin-bottom: 22px;
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 15px;
  font-size: 15px;
  line-height: 1.75;
}

.about-copy .lead {
  font-size: 19px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
}

.callout {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 17px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 650;
  margin-top: 25px;
}

.journey {
  border-top: 1px solid var(--line);
  padding: 0;
}

.journey-row {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 22px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
}

.journey-date {
  font: 700 31px/1.1 var(--display);
  color: var(--accent);
  letter-spacing: -.015em;
}

.journey-content h3 {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 5px;
  line-height: 1.4;
}

.journey-content p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Project cards and illustrations */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.project {
  background: var(--surface);
  border: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color .25s,transform .25s;
}

.project:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.project-art {
  height: 200px;
  overflow: hidden;
  background: #0b0b0a;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}

.project-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(#fff1 .7px,transparent .7px);
  background-size: 17px 17px;
  mask-image: radial-gradient(ellipse,black 10%,transparent 80%);
  z-index: -1;
}

.project-art svg {
  width: 83%;
  max-height: 165px;
  transition: transform .3s;
}

.project:hover .project-art svg {
  transform: scale(1.045);
}

.app-screen {
  fill: #11110f;
  stroke: var(--ink);
  stroke-width: 1.7;
}

.app-line {
  stroke: #a4a198;
  stroke-width: 1;
  fill: none;
}

.app-sub {
  fill: #6f6d64;
}

.app-accent {
  fill: var(--accent);
}

.app-tint {
  fill: #2e2d29;
}

.app-type {
  font: 9px var(--mono);
  fill: var(--ink);
}

.app-tiny {
  font: 6px var(--mono);
  fill: #a29f94;
}

.art-note {
  position: absolute;
  bottom: 9px;
  left: 12px;
  color: var(--dim);
  font: 9px var(--mono);
  letter-spacing: .09em;
}

.project-body {
  display: flex;
  flex-direction: column;
  padding: 18px;
  flex: 1;
  min-width: 0;
}

.tagline {
  display: table;
  background: var(--accent);
  padding: 3px 6px;
  color: #111;
  font: 700 10px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 9px;
}

.project h3 {
  font: 700 36px/.95 var(--display);
  margin: 0 0 9px;
  text-transform: uppercase;
  letter-spacing: -.022em;
}

.project p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 16px;
}

.chip {
  font: 10px/1.3 var(--mono);
  color: #d4d0c7;
  border: 1px solid var(--line2);
  padding: 4px 7px;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.project-links a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.project-links a:hover {
  color: var(--gold);
}

.project-links .icon {
  width: 14px;
  height: 14px;
}

/* Experience and education */
.experience-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.xp {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.xp .date {
  font: 700 23px/1.1 var(--display);
  color: var(--accent);
  text-transform: uppercase;
}

.xp .date small {
  display: block;
  font: 12px/1.5 var(--mono);
  color: var(--dim);
  margin-top: 9px;
}

.xp h3 {
  font: 700 34px/1.05 var(--display);
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 5px;
}

.company {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
}

.xp ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.xp li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.xp li:before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  content: "";
}

.xp li strong {
  color: var(--ink);
}

.xp p.details {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}

.xp .impact {
  color: var(--ink);
  margin: 15px 0 0;
  font: 600 13px/1.6 var(--body);
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid #53554c;
  background: #171a15;
}

.xp .impact .icon {
  color: #a9c29e;
  width: 16px;
  height: 16px;
}

/* Skills and certifications */
.stack {
  border: 1px solid var(--line);
  border-bottom: 0;
}

.stack-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.stack-row h3 {
  font: 12px/1.35 var(--mono);
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  padding-top: 9px;
  text-transform: uppercase;
}

.stack-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.stack-chip {
  font: 700 21px/1.05 var(--display);
  text-transform: uppercase;
  letter-spacing: -.018em;
  padding: 8px 10px;
  border: 1px solid #3c3c37;
  color: var(--ink);
  background: #111110;
}

.stack-chip.feature {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}

.certifications {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  border-top: 0;
  padding: 17px 20px;
}

.certifications h3 {
  font: 12px var(--mono);
  color: var(--muted);
  margin: 2px 0;
  text-transform: uppercase;
}

.certifications p {
  font-size: 13px;
  color: var(--ink);
  margin: 0;
}

/* Contact and footer */
.contact {
  position: relative;
  text-align: center;
  padding: 96px 0 91px;
  min-height: 485px;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 30%,#1b1b16 0%,transparent 62%);
}

.contact:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#fff2 .7px,transparent .7px);
  background-size: 19px 19px;
  mask-image: radial-gradient(ellipse at center,black,transparent 70%);
  pointer-events: none;
}

.contact .wrap {
  position: relative;
}

.particle-word {
  width: 252px;
  height: 91px;
  margin: 0 auto 16px;
  display: block;
}

.contact .headline {
  font-size: clamp(54px,8vw,112px);
  line-height: .93;
}

.contact .headline span {
  display: block;
  color: var(--accent);
}

.contact p {
  max-width: 640px;
  margin: 19px auto 25px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-email {
  font: 12px var(--mono);
  display: inline-block;
  margin-top: 24px;
  color: var(--muted);
}

.contact-email:hover {
  color: var(--ink);
}

footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--dim);
  font-size: 12px;
}

.footer-inner a {
  color: var(--muted);
  font-size: 12px;
}

.footer-inner a:hover {
  color: var(--ink);
}

.foot-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-left .logo {
  width: 26px;
  height: 26px;
  font-size: 17px;
}

.foot-links {
  display: flex;
  align-items: center;
  gap: 19px;
}

.foot-links a {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Construction engine and motion */
#construction {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: none;
}

.motion #construction {
  display: block;
}

.motion .build-unit:not(.live) {
  visibility: hidden;
  pointer-events: none;
}

.build-unit.live.revealing {
  visibility: visible;
  animation: reveal-box .42s cubic-bezier(.2,.8,.2,1) both;
}

.build-unit.live.revealing[data-kind="type"] {
  animation: reveal-type .43s steps(19,end) both;
}

.build-unit.live.revealing[data-kind="paragraph"] {
  animation: reveal-paragraph .45s steps(8,end) both;
}

.build-unit.live.revealing[data-kind="art"] {
  animation: reveal-art .55s cubic-bezier(.18,.85,.3,1) both;
}

@keyframes reveal-box {
  from {
    clip-path: inset(0 100% 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes reveal-type {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes reveal-paragraph {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes reveal-art {
  from {
    clip-path: inset(50% 50% 50% 50%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.motion .focus-item:not(.shell-live) {
  border-color: transparent;
}

.motion .focus-item:not(.shell-live):before {
  background: transparent;
}

.motion .stats:not(.shell-live) {
  border-color: transparent;
}

.motion .project:not(.shell-live) .project-links {
  border-color: transparent;
}

.motion .journey:not(.shell-live) .journey-row,.motion .experience-layout:not(.shell-live) .xp,.motion .stack:not(.shell-live) .stack-row {
  border-color: transparent;
}

.motion .project:not(.shell-live),.motion .stack:not(.shell-live),.motion .experience-layout:not(.shell-live),.motion .journey:not(.shell-live) {
  border-color: transparent;
  background: transparent;
}

.motion .project:not(.shell-live) {
  box-shadow: none;
}

.build-status {
  position: fixed;
  right: 17px;
  bottom: 16px;
  z-index: 71;
  display: flex;
  gap: 11px;
  align-items: center;
  border: 1px solid #474742;
  padding: 10px 12px;
  background: #11110fec;
  box-shadow: 0 7px 28px #0007;
  font: 10px/1.3 var(--mono);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s,transform .25s;
  pointer-events: none;
}

.build-status.visible {
  opacity: 1;
  transform: none;
}

.build-status span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.build-status i {
  width: 6px;
  height: 6px;
  background: var(--blue);
  display: block;
  box-shadow: 0 0 7px #77b8fb;
  animation: pulse 1s infinite alternate;
}

.build-status progress {
  appearance: none;
  accent-color: var(--blue);
  width: 62px;
  height: 3px;
  border: 0;
  background: #383936;
}

.build-status progress::-webkit-progress-bar {
  background: #333430;
}

.build-status progress::-webkit-progress-value {
  background: var(--blue);
}

.build-status progress::-moz-progress-bar {
  background: var(--blue);
}

@keyframes pulse {
  to {
    opacity: .4;
  }
}

.toast {
  position: fixed;
  bottom: 21px;
  left: 50%;
  transform: translate(-50%,12px);
  opacity: 0;
  background: var(--ink);
  color: #101010;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 650;
  z-index: 99;
  pointer-events: none;
  transition: opacity .25s,transform .25s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}

/* Large screens */
@media(max-width:1140px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero-grid {
    gap: 30px;
    grid-template-columns: 1.1fr .65fr .85fr;
  }
  .intro {
    font-size: 15px;
  }
  .hero-role {
    font-size: 10px;
  }
  .nav-status {
    display: none;
  }
  .stats {
    margin-top: 23px;
  }
  .stat {
    gap: 9px;
    padding-right: 13px;
  }
  .stat:not(:first-child) {
    padding-left: 15px;
  }
  .stat p {
    font-size: 10px;
  }
  .hero {
    padding-top: 18px;
    min-height: auto;
    padding-bottom: 28px;
  }
  .section {
    padding: 75px 0;
  }
  .project-art {
    height: 185px;
  }
  .about-layout {
    gap: 44px;
  }
  .xp {
    grid-template-columns: 190px 1fr;
    gap: 24px;
  }
  .stack-row,.certifications {
    grid-template-columns: 170px 1fr;
  }
}

/* Tablet layout */
@media(max-width:880px) {
  .wrap {
    width: calc(100% - 42px);
  }
  .nav {
    height: 60px;
  }
  .navlinks {
    gap: 15px;
  }
  .nav-right {
    gap: 8px;
  }
  .hero-grid {
    grid-template-columns: 1.22fr .78fr;
    gap: 27px 26px;
  }
  .focus {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 0 16px;
  }
  .focus .label {
    grid-column: 1/-1;
  }
  .focus-item {
    border: 0;
    padding-bottom: 8px;
  }
  .palette {
    grid-column: 1/-1;
    margin-top: 8px;
  }
  .identity h1 {
    font-size: clamp(40px,6.9vw,60px);
  }
  .hero-outline {
    margin-bottom: 0;
  }
  .hero-grid {
    padding-bottom: 6px;
  }
  .stats {
    grid-template-columns: repeat(2,1fr);
  }
  .stat:nth-child(2) {
    border-right: none;
  }
  .stat:nth-child(3),.stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .stat:nth-child(3) {
    padding-left: 0;
  }
  .stat strong {
    font-size: 48px;
  }
  .stat p {
    font-size: 12px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-copy .headline {
    margin-bottom: 15px;
  }
  .projects-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px;
  }
  .project:last-child {
    grid-column: auto;
  }
  .project-art {
    height: 190px;
  }
  .stack-row,.certifications {
    grid-template-columns: 137px 1fr;
    gap: 14px;
    padding: 15px;
  }
  .stack-chip {
    font-size: 19px;
  }
  .xp {
    grid-template-columns: 160px 1fr;
    gap: 17px;
  }
  .xp h3 {
    font-size: 29px;
  }
}

/* Mobile layout */
@media(max-width:650px) {
  html {
    scroll-padding-top: 70px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .navlinks {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #111110;
    border-bottom: 1px solid var(--line);
    padding: 10px 17px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .navlinks.open {
    display: flex;
  }
  .navlinks a {
    font-size: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }
  .navlinks a:last-child {
    border: 0;
  }
  .navlinks a.active:after {
    display: none;
  }
  .mobile-menu {
    display: grid;
  }
  .brand {
    font-size: 13px;
    gap: 7px;
  }
  .logo {
    height: 31px;
    width: 31px;
    font-size: 21px;
  }
  .nav .btn {
    font-size: 11px;
    padding: 6px 9px;
  }
  .nav .icon {
    width: 14px;
    height: 14px;
  }
  .hero {
    padding: 12px 0 34px;
  }
  .hero-top {
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .hero-top .mono {
    font-size: 9px;
  }
  .controls {
    gap: 10px;
  }
  .ctrl {
    font-size: 9px;
  }
  .hero-outline {
    margin-bottom: 6px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .identity h1 {
    font-size: clamp(39px,10.5vw,57px);
    margin-bottom: 12px;
  }
  .hello {
    font-size: 14px;
  }
  .intro {
    font-size: 15px;
    margin-bottom: 15px;
  }
  .emblem-graphic {
    max-width: 193px;
  }
  .emblem {
    justify-self: center;
  }
  .focus {
    grid-column: auto;
    display: block;
    padding: 1px 0;
  }
  .focus-item {
    border-bottom: 1px solid var(--line);
    padding: 11px 0 11px 12px;
  }
  .focus-item p {
    font-size: 13px;
  }
  .palette {
    margin-top: 12px;
  }
  .stats {
    margin-top: 23px;
  }
  .stat {
    gap: 9px;
    padding: 15px 9px 15px 0;
  }
  .stat:not(:first-child) {
    padding-left: 13px;
  }
  .stat:nth-child(3) {
    padding-left: 0;
  }
  .stat strong {
    font-size: 38px;
  }
  .stat p {
    font-size: 11px;
  }
  .section {
    padding: 55px 0;
  }
  .headline {
    font-size: clamp(43px,11vw,62px);
  }
  .section-head {
    margin-bottom: 22px;
  }
  .section-desc {
    font-size: 14px;
  }
  .about-copy p {
    font-size: 14px;
  }
  .about-copy .lead {
    font-size: 17px;
  }
  .callout {
    font-size: 17px;
  }
  .journey-row {
    grid-template-columns: 68px 1fr;
    gap: 13px;
    padding: 15px 0;
  }
  .journey-date {
    font-size: 27px;
  }
  .journey-content h3 {
    font-size: 14px;
  }
  .journey-content p {
    font-size: 12px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .project-art {
    height: 193px;
  }
  .project-art svg {
    max-height: 160px;
  }
  .project-body {
    padding: 18px;
  }
  .project h3 {
    font-size: 34px;
  }
  .xp {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 21px 0;
  }
  .xp .date small {
    display: inline;
    margin-left: 9px;
  }
  .xp .company {
    font-size: 13px;
  }
  .xp .date {
    font-size: 23px;
  }
  .xp h3 {
    font-size: 30px;
  }
  .stack-row,.certifications {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px;
  }
  .stack-row h3 {
    padding: 0;
  }
  .stack-chip {
    font-size: 19px;
    padding: 7px 8px;
  }
  .contact {
    padding: 59px 0 52px;
    min-height: 0;
  }
  .particle-word {
    width: 220px;
    height: 79px;
    margin-bottom: 10px;
  }
  .contact .headline {
    font-size: clamp(45px,12.8vw,67px);
  }
  .contact p {
    font-size: 15px;
  }
  .contact-actions {
    gap: 7px;
  }
  .contact-actions .btn {
    padding: 11px 13px;
  }
  .footer-inner {
    flex-wrap: wrap;
    font-size: 11px;
  }
  .foot-links {
    gap: 12px;
  }
  .build-status {
    bottom: 10px;
    right: 9px;
    font-size: 9px;
  }
}

/* Reduced-motion accessibility */
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
    scroll-behavior: auto!important;
  }
  #construction,.build-status {
    display: none!important;
  }
  .motion .build-unit:not(.live) {
    visibility: visible;
    pointer-events: auto;
  }
}

/* Small presentation details previously inline in the markup. */
.hero-location {
  color: var(--dim);
}

.swatch[data-color="#f5f0e7"] {
  --color: #f5f0e7;
}

.swatch[data-color="#d4bc8a"] {
  --color: #d4bc8a;
}

.swatch[data-color="#a9b8a4"] {
  --color: #a9b8a4;
}

.swatch[data-color="#b6c3d1"] {
  --color: #b6c3d1;
}

.app-type-large {
  font-size: 22px;
  font-weight: bold;
}

.app-label-dark {
  font: 700 9px var(--mono);
  fill: #101010;
}
