/* Self-hosted open-source variable fonts. Licences: assets/fonts/*-OFL.txt. */
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Latin-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Latin-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #101315;
  --heading: #e0e0e0;
  --text: #cccccc;
  --muted: #949b9f;
  --accent: #c4636a;
  --hologram: #a4e5f2;
  --surface-panel: #080e14;
  --surface-button: #0b1520;
  --surface-button-hover: #111f2c;
  --line: rgba(204, 204, 204, 0.2);
  --content-width: 1200px;
  --gutter: clamp(24px, 5.5vw, 80px);
  --header-height: 92px;
  --font-heading: "Montserrat", sans-serif;
  --font-family: "Inter", sans-serif;
  font-family: var(--font-family);
  font-synthesis: none;
}

* { box-sizing: border-box; }
*, *::before, *::after { font-family: inherit; }
/* Shared across pages: role titles outside heading elements use .role-title. */
h1, h2, h3, h4, h5, h6, .wordmark, .roles, .role-title, .project-detail-label {
  font-family: var(--font-heading);
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--hologram);
  outline-offset: 7px;
}
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 12px 16px;
  transform: translateY(-180%);
  background: var(--heading);
  color: var(--background);
}
.skip-link:focus { transform: translateY(0); }

/* Translucent smoke with broader, more visible movement; no bright sparks. */
.atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 49%, #172024 0, #111719 38%, #101315 76%);
}
.smoke {
  position: absolute;
  inset: -22%;
  background: url("assets/smoke.svg") center / cover no-repeat;
  will-change: transform;
  animation: smoke-drift 24s ease-in-out infinite alternate;
}
.smoke--back { opacity: 0.22; }
.smoke--front {
  opacity: 0.1;
  transform: rotate(180deg) scale(1.15);
  animation: smoke-drift-front 31s ease-in-out infinite alternate;
}
#dust { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.75; }
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 57% 48%, transparent 20%, rgba(5, 8, 10, 0.46) 100%);
}

.site-header, main, .site-footer { position: relative; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  background: var(--background);
}
.site-header::after, .site-footer::before {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--line);
  left: 24px;
  right: 24px;
}
.site-header::after { bottom: 0; }
.site-footer::before { top: 0; }
.header-inner, .hero-inner, .section-inner, .footer-inner {
  width: min(100%, calc(var(--content-width) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.wordmark {
  display: inline-flex;
  text-decoration: none;
  color: var(--heading);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
  transition: text-shadow 180ms ease;
}
.wordmark span { color: var(--accent); }
.wordmark:hover { text-shadow: 0 0 13px rgba(164, 229, 242, 0.4); }
.site-navigation { display: flex; align-items: center; gap: clamp(19px, 2.2vw, 32px); }
.nav-link, .nav-pending {
  position: relative;
  padding-block: 13px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.3;
  white-space: nowrap;
}
.nav-pending { color: var(--muted); }
.nav-link { color: var(--heading); transition: color 180ms, text-shadow 180ms; }
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease, background-color 180ms ease;
}
.nav-link.is-current::after { transform: scaleX(1); }
.nav-link:hover { color: var(--hologram); text-shadow: 0 0 12px rgba(164, 229, 242, 0.55); }
.nav-link:hover::after { transform: scaleX(1); background: var(--hologram); box-shadow: 0 0 12px rgba(164, 229, 242, 0.45); }

main { flex: 1; display: flex; flex-direction: column; }
.hero { display: flex; overflow: hidden; }
.hero-inner {
  --hero-padding-top: 96px;
  --hero-padding-bottom: 112px;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(36px, 6vw, 94px);
  align-items: center;
  padding-top: var(--hero-padding-top);
  padding-bottom: var(--hero-padding-bottom);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding-left: clamp(22px, 2vw, 31px);
}
.hero-copy::before {
  content: "";
  position: absolute;
  width: 4px;
  top: 3px;
  bottom: 1px;
  left: 0;
  background: var(--accent);
}
h1 { margin: 0; color: var(--heading); text-transform: uppercase; }
.name-first, .name-main { display: block; }
.name-first {
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.name-main {
  margin-top: 2px;
  font-size: clamp(47px, 6.05vw, 87px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.name-middle, .name-last { display: block; }
.name-middle { font-weight: 750; }
.name-last { margin-top: 2px; }
.roles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 5px;
  margin: 17px 0 0;
  color: var(--heading);
  font-size: clamp(10px, 1vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  line-height: 1.6;
}
.roles span { white-space: nowrap; }
.roles-divider { color: var(--muted); }

.portrait-composition { position: relative; display: grid; place-items: center; align-self: stretch; }
.hero-v {
  position: absolute;
  height: calc(100% + var(--hero-padding-top) + var(--hero-padding-bottom));
  width: auto;
  aspect-ratio: 300 / 640;
  top: auto;
  bottom: calc(0px - var(--hero-padding-bottom));
  left: 50%;
  transform: translateX(-50%) scaleX(1);
  fill: #77313c;
  opacity: 0.32;
  pointer-events: none;
}
.portrait { position: relative; z-index: 1; width: 260px; margin: 0; }
.portrait-frame { position: relative; border: 1px solid rgba(164, 229, 242, 0.7); padding: 5px; }
.portrait-frame img { display: block; width: 100%; height: auto; background: transparent; }
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(164, 229, 242, 0.26);
  box-shadow: 0 0 16px rgba(115, 213, 236, 0.07), inset 0 0 12px rgba(115, 213, 236, 0.05);
  pointer-events: none;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: -11px;
  padding: 12px;
  background: linear-gradient(0deg, transparent 36%, rgba(164, 229, 242, 0.65) 48%, transparent 58%);
  background-size: 100% 250%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: hologram-scan 9s linear infinite;
  pointer-events: none;
}
/* Same scanning band, softly overlaid on the photo itself. */
.portrait::after {
  content: "";
  position: absolute;
  inset: -10px;          /* same box as the border ring, so the two stay in sync */
  padding: 16px;         /* content box = the photo area */
  background: linear-gradient(0deg, transparent 36%, rgba(164, 229, 242, 0.65) 48%, transparent 58%);
  background-size: 100% 250%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box;
  mask: linear-gradient(#fff 0 0) content-box;
  opacity: 0.2;          /* lower = subtler */
  animation: hologram-scan 9s linear infinite;
  pointer-events: none;
}
.frame-corner { position: absolute; width: 17px; height: 19px; border-color: var(--hologram); border-style: solid; opacity: 0.85; }
.frame-corner--tl { top: -8px; left: -8px; border-width: 2px 0 0 2px; }
.frame-corner--tr { top: -8px; right: -8px; border-width: 2px 2px 0 0; }
.frame-corner--bl { bottom: -8px; left: -8px; border-width: 0 0 2px 2px; }
.frame-corner--br { bottom: -8px; right: -8px; border-width: 0 2px 2px 0; }
figcaption { margin-top: 24px; text-align: center; color: var(--muted); font-size: 8px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; }

/* The introduction and capabilities sit in separate, spacious sections. */
.content-section {
  --section-indent: 32px;
  position: relative;
  padding-block: 56px 64px;
  scroll-margin-top: 0;
}
.content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--line);
}
.section-heading {
  position: relative;
  margin: 0 0 28px;
  padding-left: var(--section-indent);
  color: var(--heading);
  font-size: clamp(25px, 2.4vw, 33px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.section-heading::before {
  content: "";
  position: absolute;
  top: 0.12em;
  left: 0;
  width: 4px;
  height: 0.85em;
  background: var(--accent);
}
.section-body { margin-left: var(--section-indent); }
.about-copy { max-width: 68ch; font-size: 16px; line-height: 1.85; }
.about-copy p { margin: 0; }
.about-copy p + p { margin-top: 19px; }

.guide-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 48px;
  margin-top: 30px;
  padding: 12px 17px;
  border: 1px solid rgba(204, 204, 204, 0.4);
  color: var(--heading);
  background: var(--surface-button);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.guide-label { display: inline-flex; align-items: center; gap: 16px; }
.guide-label::before { content: ""; width: 3px; height: 20px; background: var(--accent); }
.guide-link::before {
  content: "";
  position: absolute;
  inset: -4px;
  opacity: 0;
  background:
    linear-gradient(var(--hologram), var(--hologram)) left top / 12px 1px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) left top / 1px 10px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) right top / 12px 1px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) right top / 1px 10px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) left bottom / 1px 10px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) right bottom / 1px 10px no-repeat;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.guide-link::after {
  content: "";
  position: absolute;
  inset: 1px;
  opacity: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(164, 229, 242, 0.07) 3px 4px);
  transition: opacity 180ms ease;
  pointer-events: none;
}
.guide-link:hover, .guide-link:focus-visible {
  background: var(--surface-button-hover);
  color: var(--hologram);
  border-color: rgba(164, 229, 242, 0.85);
  box-shadow: 0 0 19px rgba(100, 207, 232, 0.13), inset 0 0 14px rgba(100, 207, 232, 0.04);
}
.guide-link:hover::before, .guide-link:focus-visible::before,
.guide-link:hover::after, .guide-link:focus-visible::after { opacity: 1; }
.guide-link:hover::after, .guide-link:focus-visible::after { animation: hologram-project 1.5s linear infinite; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.capability-card {
  position: relative;
  min-width: 0;
  padding: 25px 26px 25px 48px;
  border: 1px solid rgba(204, 204, 204, 0.28);
  background: var(--surface-panel);
}
.capability-card::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 23px;
  width: 3px;
  height: 20px;
  background: var(--accent);
}
.capability-card h3 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.075em;
  /* text-transform: uppercase; */
  font-weight: bold;
  font-size: 16px;
}
.capability-card p { margin: 0; font-size: 15px; line-height: 1.65; }

.footer-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  line-height: 1.7;
}

.menu-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--surface-button);
  border: 1px solid var(--line);
  color: var(--heading);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle:hover, .menu-toggle:focus-visible, .menu-toggle[aria-expanded="true"] {
  color: var(--hologram);
  border-color: var(--hologram);
  background-color: var(--surface-button-hover);
  background-image: repeating-linear-gradient(0deg, rgba(164, 229, 242, 0.04) 0 1px, transparent 1px 4px);
  box-shadow: 0 0 13px rgba(164, 229, 242, 0.15);
}
.menu-toggle__lines, .menu-toggle__lines::before { display: block; width: 13px; height: 1px; background: currentColor; }
.menu-toggle__lines { position: relative; }
.menu-toggle__lines::before { content: ""; position: absolute; top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { top: 0; transform: rotate(90deg); }

@keyframes smoke-drift { from { transform: translate3d(-7%, 4%, 0) scale(1.08); } to { transform: translate3d(7%, -4%, 0) scale(1.18); } }
@keyframes smoke-drift-front { from { transform: translate3d(8%, 3%, 0) rotate(178deg) scale(1.15); } to { transform: translate3d(-6%, -6%, 0) rotate(184deg) scale(1.25); } }
@keyframes hologram-scan { from { background-position: 0 220%; } to { background-position: 0 -120%; } }
@keyframes hologram-project { from { background-position: 0 0; } to { background-position: 0 -8px; } }

@media (min-width: 1600px) {
  .hero-inner { min-height: 650px; }
}
@media (max-width: 1050px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 270px; gap: 30px; }
  .portrait { width: 228px; }
  .name-first { font-size: clamp(34px, 4.5vw, 48px); }
  .name-main { font-size: clamp(43px, 5.7vw, 60px); }
  .roles { font-size: 9px; letter-spacing: 0.2em; column-gap: 8px; }
  .site-navigation { gap: 17px; }
  .nav-link, .nav-pending { font-size: 9px; }
}
@media (max-width: 760px) {
  :root { --header-height: 78px; }
  .header-inner { min-height: 78px; flex-wrap: wrap; gap: 0; }
  .wordmark { font-size: 21px; }
  .site-navigation { width: 100%; flex-wrap: wrap; gap: 2px 22px; padding-bottom: 20px; }
  .js-enabled .site-navigation { display: none; }
  .js-enabled .site-navigation.is-open { display: flex; }
  .nav-link, .nav-pending { padding-block: 12px; font-size: 10px; }
  .content-section { --section-indent: 25px; padding-block: 42px 48px; }
  .content-section::before { left: 16px; right: 16px; }
  .section-heading { font-size: 25px; margin-bottom: 24px; }
  .about-copy { font-size: 15px; line-height: 1.85; }
  .guide-link { margin-top: 26px; font-size: 10px; letter-spacing: 0.11em; gap: 24px; }
  .capability-grid { grid-template-columns: 1fr; gap: 16px; }
  .capability-card { padding: 23px 22px 23px 43px; }
  .capability-card::before { top: 23px; left: 20px; }
  .capability-card p { font-size: 14px; }
  .hero-inner {
    --hero-padding-top: 65px;
    --hero-padding-bottom: 60px;
    grid-template-columns: minmax(0, 1fr);
    gap: 62px;
    min-height: 0;
  }
  .hero-copy { padding-left: 21px; }
  .name-first { font-size: clamp(34px, 8vw, 58px); }
  .name-main { font-size: clamp(40px, 9.5vw, 70px); letter-spacing: -0.055em; }
  .roles { margin-top: 16px; font-size: clamp(8px, 1.65vw, 11px); letter-spacing: 0.17em; column-gap: 8px; }
  .portrait-composition { min-height: 320px; }
  .portrait { width: 210px; }
  .hero-v { height: 440px; }
  figcaption { font-size: 7px; }
  .footer-inner { min-height: 74px; font-size: 8px; letter-spacing: 0.15em; }
  .site-header::after, .site-footer::before { left: 16px; right: 16px; }
}
@media (max-width: 370px) {
  :root { --gutter: 20px; }
  .name-main { font-size: clamp(30px, 10vw, 36px); }
  .roles { column-gap: 6px; font-size: 7px; letter-spacing: 0.15em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .smoke, .portrait-frame::after,.portrait::after,.guide-link::after { animation: none !important; }
  .smoke { will-change: auto; }
  #dust { display: none; }
  *, *::before, *::after { transition: none !important; }
}

/* Project styles are scoped so the uploaded homepage edits stay intact. */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.project-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(204, 204, 204, 0.3);
  background: var(--surface-panel);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(164, 229, 242, 0.26);
  background:
    linear-gradient(var(--hologram), var(--hologram)) left top / 17px 2px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) left top / 2px 19px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) right top / 17px 2px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) right top / 2px 19px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) left bottom / 17px 2px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) left bottom / 2px 19px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) right bottom / 17px 2px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) right bottom / 2px 19px no-repeat;
  box-shadow: 0 0 16px rgba(115, 213, 236, 0.08), inset 0 0 12px rgba(115, 213, 236, 0.05);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: -11px;
  padding: 12px;
  background: linear-gradient(0deg, transparent 44%, rgba(164, 229, 242, 0.85) 50%, transparent 56%);
  background-size: 100% 250%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 220ms ease;
  animation: project-border-scan 4.8s linear infinite paused;
  pointer-events: none;
}
.project-card:hover, .project-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--hologram);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3), 0 0 18px rgba(115, 213, 236, 0.1);
}
.project-card:hover::before, .project-card:focus-within::before,
.project-card:hover::after, .project-card:focus-within::after { opacity: 1; }
.project-card:hover::after, .project-card:focus-within::after { animation-play-state: running; }
@keyframes project-border-scan {
  from { background-position: 0 100%; }
  to { background-position: 0 0%; }
}
.project-figure { margin: 0; }
.project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(204, 204, 204, 0.16);
  background: #060c12;
}
.project-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}
.project-credit {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}
.project-credit a { text-underline-offset: 3px; text-decoration-color: rgba(204, 204, 204, 0.35); }
.project-credit a:hover { color: var(--hologram); text-decoration-color: currentColor; }
.project-body { display: flex; flex: 1; flex-direction: column; gap: 14px; }
.project-title {
  min-height: 2.8em;
  margin: 0;
  color: var(--heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.project-summary { min-height: 6.8em; margin: 0; font-size: 13px; line-height: 1.7; }
.project-detail-label {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.project-tools { min-height: 66px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.project-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid rgba(204, 204, 204, 0.3);
  background: #0a131c;
  color: var(--text);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.045em;
  text-transform: none;
}
.project-methods { min-height: 60px; }
.project-methods > p:last-child { margin: 0; font-size: 13px; line-height: 1.65; }
.project-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 78px;
  margin-top: auto;
  padding: 13px;
  border: 1px solid rgba(204, 204, 204, 0.25);
  background: #060c12;
}
.project-result-value {
  display: block;
  color: var(--accent);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.project-result-unit { display: block; margin-top: 6px; font-size: 8px; font-weight: 500; letter-spacing: 0.075em; text-transform: uppercase; }
.project-result-description { border-left: 1px solid var(--line); padding-left: 13px; font-size: 11px; line-height: 1.6; }
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.project-link { justify-content: center; gap: 13px; min-height: 42px; margin-top: 0; padding: 10px 12px; font-size: 9px; letter-spacing: 0.1em; }

@media (max-width: 1050px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-title, .project-summary, .project-tools, .project-methods { min-height: 0; }
  .project-title { font-size: 16px; }
  .project-body { gap: 18px; }
  .project-card { padding: 16px; }
  .project-result { margin-top: 4px; }
  .project-link { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card:hover, .project-card:focus-within { transform: none; }
  .project-card::after { animation: none !important; }
}

/* Open skill groups with compact, opaque skill chips. */
.section-intro {
  margin: 0 0 42px var(--section-indent);
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}
.skills-groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 44px 36px;
}
.skill-group { flex: 0 1 calc((100% - 72px) / 3); min-width: 0; text-align: center; }
.skill-group-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.skill-group-heading svg { flex-shrink: 0; color: var(--heading); }
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  max-width: 270px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.skill-list--compact { max-width: 190px; }
.skill-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(204, 204, 204, 0.3);
  background: #0a131c;
  color: var(--text);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.045em;
  text-transform: none;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.skill-chip::before {
  content: "";
  position: absolute;
  inset: -3px;
  opacity: 0;
  background:
    linear-gradient(var(--hologram), var(--hologram)) left top / 8px 1px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) left top / 1px 7px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) right top / 8px 1px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) right top / 1px 7px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) left bottom / 8px 1px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) left bottom / 1px 7px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) right bottom / 8px 1px no-repeat,
    linear-gradient(var(--hologram), var(--hologram)) right bottom / 1px 7px no-repeat;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.skill-chip::after {
  content: "";
  position: absolute;
  inset: 1px;
  opacity: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(164, 229, 242, 0.07) 3px 4px);
  transition: opacity 180ms ease;
  pointer-events: none;
}
.skill-chip:hover {
  color: var(--hologram);
  border-color: var(--hologram);
  background: var(--surface-button-hover);
  box-shadow: 0 0 13px rgba(164, 229, 242, 0.15);
}
.skill-chip:hover::before, .skill-chip:hover::after { opacity: 1; }
.skill-chip:hover::after { animation: hologram-project 1.5s linear infinite; }
/* Certification cards reuse the exact project-card frame and hover motion. */
.certification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  max-width: 792px;
  margin-inline: auto;
}
.certification-card { align-items: center; gap: 18px; padding: 28px; text-align: center; }
.certification-badge { display: block; width: 128px; height: 128px; object-fit: contain; }
.certification-heading { display: flex; flex-direction: column; align-items: center; }
.certification-heading h3 {
  min-height: 3em;
  margin: 0;
  color: var(--heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.certification-heading p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.certification-heading .credential-code { margin-top: 12px; }
.certification-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.credential-code {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: #0a131c;
  color: var(--text);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.certification-meta p { margin: 0; font-size: 11px; line-height: 1.5; letter-spacing: 0.02em; text-transform: none; }
.certification-description { align-self: stretch; min-height: 62px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.75; }
.credential-link { justify-content: space-between; width: 100%; max-width: 260px; min-height: 46px; margin: auto 0 0; padding: 12px 16px; font-size: 10px; letter-spacing: 0.11em; }
/* .experience-next { display: flex; justify-content: flex-end; margin-top: 32px; } */
.experience-next { display: grid; justify-content: end; gap: 16px; margin-top: 32px; }
.experience-link { margin-top: 0; }
.experience-link:disabled, .experience-link:disabled:hover {
  border-color: var(--line);
  background: var(--surface-button);
  color: var(--muted);
  box-shadow: none;
  opacity: 1;
  cursor: default;
}
.experience-link:disabled::before, .experience-link:disabled::after { display: none; }
.experience-link:disabled .guide-label::before { background: var(--muted); }

@media (max-width: 1050px) {
  .skills-groups { column-gap: 32px; }
  .skill-group { flex-basis: calc((100% - 32px) / 2); }
}
@media (max-width: 760px) {
  .section-intro { margin-bottom: 32px; font-size: 14px; }
  .certification-grid { grid-template-columns: 1fr; gap: 48px; max-width: 360px; }
  .certification-card { padding: 24px 20px; }
  .certification-heading h3 { font-size: 14px; }
}
@media (max-width: 640px) {
  .skills-groups { row-gap: 36px; }
  .skill-group { flex-basis: 100%; }
  .skill-group-heading { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skill-chip::after { animation: none !important; }
}

/* Static cyan border and corners on project/certification cards */
.project-card::after {
  display: none;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--hologram);
  box-shadow:
    0 0 19px rgba(100, 207, 232, 0.13),
    inset 0 0 14px rgba(100, 207, 232, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  .project-card:hover,
  .project-card:focus-within {
    transform: none;
  }
}

.portrait-frame img, .photo-image {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}