/* Self-hosted typography. Subsets and ranges mirror the Google Fonts CSS. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens, reset and shared primitives. */
:root {
  --ink: #171b1d;
  --ink-soft: #242a2c;
  --paper: #f4f3ef;
  --paper-deep: #e8e7e1;
  --line: rgba(21, 23, 22, 0.18);
  --muted: #6d706a;
  --acid: #b7d7c4;
  --orange: #7389a6;
  --violet: #7f8da8;
  --white: #f8f7f2;
  --accent-gradient: linear-gradient(110deg, #b7d7c4 0%, #9fb8cc 55%, #a99fca 100%);
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --content: 1120px;
  --content-pad: max(var(--gutter), calc((100vw - var(--content)) / 2));
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: var(--ink);
  background: var(--acid);
}

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

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

button {
  font: inherit;
}

.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;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 99;
  opacity: 0.027;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.95'/%3E%3C/svg%3E");
}

/* Header and navigation. */
.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 86px;
  padding: 0 var(--content-pad);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--ink);
  background: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 0.86rem;
  font-weight: 500;
  transform: rotate(-5deg);
  transition: transform 250ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(5deg);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.desktop-nav a,
.social-links a {
  position: relative;
}

.desktop-nav a::after,
.social-links a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.desktop-nav a:hover::after,
.social-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.header-cta svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 200ms ease;
}

.header-cta:hover svg {
  transform: translateX(4px);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

/* Animated hero and terminal. */
.hero {
  position: relative;
  min-height: 660px;
  height: min(760px, 100svh);
  padding: 86px var(--content-pad) 0;
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #101211;
  background-size: 48px 48px;
  overflow: hidden;
  isolation: isolate;
}

#network-canvas {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.88;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 30% 0 auto;
  height: 70%;
  background: linear-gradient(transparent, rgba(16, 18, 17, 0.88) 73%);
  content: "";
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
}

.hero-glow-one {
  top: 11%;
  right: 12%;
  width: 320px;
  height: 320px;
  background: var(--violet);
}

.hero-glow-two {
  bottom: 0;
  left: 18%;
  width: 260px;
  height: 260px;
  background: var(--acid);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(var(--content), 100%);
  height: 100%;
  margin: 0 auto;
  padding: 3rem 0 2.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 2rem;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 15px var(--acid);
}

.status-dot::after {
  position: absolute;
  inset: -5px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  content: "";
  animation: statusPulse 2s ease-out infinite;
}

@keyframes statusPulse {
  0% { opacity: 0.9; transform: scale(0.5); }
  75%, 100% { opacity: 0; transform: scale(1.4); }
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.9rem, 5.25vw, 4.8rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;
  color: rgba(248, 247, 242, 0.58);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 5vh, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-bottom p {
  flex: 1 1 auto;
  max-width: 560px;
  min-width: 0;
  margin: 0;
  color: rgba(248, 247, 242, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.round-link {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: color 250ms ease, background-color 250ms ease, transform 250ms ease;
}

.round-link:hover {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
  transform: translateY(4px);
}

.round-link svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hero-code {
  position: absolute;
  top: 118px;
  right: var(--content-pad);
  display: flex;
  gap: 1.5rem;
  color: rgba(248, 247, 242, 0.35);
  font-family: "DM Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.09em;
}

.hero-terminal {
  position: absolute;
  z-index: 2;
  top: 20%;
  right: var(--content-pad);
  width: 340px;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(248, 247, 242, 0.72);
  background: rgba(22, 24, 23, 0.75);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  font-family: "DM Mono", monospace;
  font-size: 0.61rem;
  transform: rotate(0.6deg);
  animation: terminalFloat 6s ease-in-out infinite;
}

@keyframes terminalFloat {
  0%, 100% { transform: rotate(0.6deg) translateY(0); }
  50% { transform: rotate(0.2deg) translateY(-6px); }
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.terminal-top span {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.27);
}

.terminal-screen {
  height: 171px;
  padding: 13px 14px 15px;
  overflow: hidden;
  line-height: 1.65;
  transition: opacity 220ms ease, transform 220ms ease;
}

.terminal-screen.is-clearing {
  opacity: 0;
  transform: translateY(-4px);
}

.terminal-line {
  display: flex;
  min-height: 1.65em;
  white-space: pre;
}

.terminal-line.command {
  color: rgba(248, 247, 242, 0.86);
  font-weight: 500;
}

.terminal-line.output {
  color: rgba(248, 247, 242, 0.43);
}

.terminal-line.success {
  color: var(--acid);
}

.terminal-prompt {
  flex: 0 0 auto;
  margin-right: 0.55rem;
  color: var(--violet);
}

.typing-target::after {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.2em;
  vertical-align: -0.17em;
  background: var(--acid);
  content: "";
  animation: terminalCursor 800ms steps(1) infinite;
}

@keyframes terminalCursor {
  50% { opacity: 0; }
}

.section-pad {
  padding: clamp(4.25rem, 6vw, 6.5rem) var(--content-pad);
}

/* Shared section labels and content foundations. */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.75rem, 4.5vw, 4.5rem);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.section-label::after {
  flex: 1;
  height: 1px;
  margin-left: 1rem;
  background: var(--line);
  content: "";
}

.section-label span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 26px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(115, 137, 166, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.section-label:hover span {
  box-shadow: 2px 2px 0 rgba(115, 137, 166, 0.22);
  transform: translate(2px, 2px);
}

.section-label p {
  margin: 0;
}

.section-label.light {
  color: var(--white);
}

.section-label.light::after {
  background: rgba(255, 255, 255, 0.16);
}

.section-label.light span {
  color: var(--ink);
  background: var(--acid);
  box-shadow: 4px 4px 0 rgba(127, 141, 168, 0.2);
}

/* Profile, experience and service layouts. */
.intro,
.projects {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.intro {
  background:
    radial-gradient(circle at 88% 13%, rgba(183, 215, 196, 0.22), transparent 25%),
    radial-gradient(circle at 7% 68%, rgba(127, 141, 168, 0.09), transparent 24%),
    var(--paper);
}

.intro::before,
.projects::before {
  position: absolute;
  z-index: 0;
  top: 7rem;
  right: -3rem;
  width: 310px;
  height: 310px;
  background-image: radial-gradient(rgba(115, 137, 166, 0.25) 1px, transparent 1px);
  background-size: 20px 20px;
  content: "";
  opacity: 0.42;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(135deg, transparent 4%, #000 48%, transparent 92%);
  mask-image: linear-gradient(135deg, transparent 4%, #000 48%, transparent 92%);
}

.intro > *,
.projects > * {
  position: relative;
  z-index: 1;
}

.intro-copy {
  display: block;
}

.intro > .section-label {
  margin-bottom: clamp(1.35rem, 2vw, 1.8rem);
  font-size: 0.72rem;
}

.intro > .section-label p {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.intro h2,
.projects-heading h2,
.services h2,
.process h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.2vw, 4.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.intro h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.intro h2 span,
.projects-heading h2 span {
  color: var(--muted);
}

.intro-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(1.75rem, 2.75vw, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.intro-text p {
  margin: 0;
  color: #4f524d;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.75;
}

.stack-block {
  position: relative;
  margin-top: clamp(3.5rem, 5vw, 5.5rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid rgba(21, 23, 22, 0.11);
  background: rgba(248, 247, 242, 0.6);
  box-shadow: 0 24px 70px rgba(21, 23, 22, 0.06);
  overflow: hidden;
}

.stack-block::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent-gradient);
  content: "";
}

.stack-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.stack-heading .mini-label {
  margin-bottom: 0;
}

.stack-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics div {
  position: relative;
  display: flex;
  grid-column: span 3;
  min-height: 100px;
  padding: 1rem;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  overflow: hidden;
  transition: background-color 220ms ease, transform 220ms ease;
}

.metrics div::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent-gradient);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.metrics div:hover {
  background: rgba(183, 215, 196, 0.17);
  transform: translateY(-2px);
}

.metrics div:hover::after {
  transform: scaleX(1);
}

.metrics div:nth-child(5n) {
  border-right: 0;
}

.metrics div:nth-child(-n + 10) {
  border-bottom: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  color: var(--orange);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
}

.metrics .metric-icons {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 32px;
  height: 32px;
  padding: 0.35rem;
  border: 1px solid rgba(21, 23, 22, 0.11);
  background: rgba(255, 255, 255, 0.58);
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.metrics .metric-icons img {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: saturate(0.9);
  opacity: 0.88;
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.metrics .metric-icons.metric-icons-large {
  padding: 0.2rem;
}

.metrics .metric-icons.metric-icons-large img {
  width: 23px;
  height: 23px;
}

.metrics .metric-icons.metric-icons-wide {
  width: 48px;
  padding: 0.2rem 0.3rem;
}

.metrics .metric-icons.metric-icons-wide img {
  width: 40px;
  height: 40px;
}

.metrics div:hover .metric-icons {
  border-color: rgba(115, 137, 166, 0.34);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.metrics div:hover .metric-icons img {
  filter: saturate(1.08);
  opacity: 1;
  transform: scale(1.04);
}

.metrics .metric-name {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(2.75rem, 4vw, 4rem);
}

.profile-block,
.education,
.interests {
  position: relative;
  display: grid;
  align-items: start;
  gap: clamp(1.75rem, 3vw, 3rem);
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(21, 23, 22, 0.11);
  box-shadow: 0 18px 50px rgba(21, 23, 22, 0.045);
  overflow: hidden;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.profile-block:hover,
.education:hover,
.interests:hover {
  border-color: rgba(115, 137, 166, 0.28);
  box-shadow: 0 28px 70px rgba(21, 23, 22, 0.09);
  transform: translateY(-4px);
}

.profile-block > *,
.education > *,
.interests > * {
  position: relative;
  z-index: 1;
}

.experience {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(183, 215, 196, 0.12), transparent 27%),
    linear-gradient(135deg, #202627 0%, #293234 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  border-color: rgba(255, 255, 255, 0.08);
}

.experience .mini-label {
  color: var(--acid);
}

.experience .profile-heading {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.experience .profile-heading .mini-label {
  margin: 0;
  padding-top: 0.55rem;
}

.experience .profile-heading h3 {
  max-width: 650px;
  margin: 0;
}

.education {
  grid-template-columns: 1fr;
  background: linear-gradient(145deg, #f1f4f5 0%, #e5ebee 100%);
}

.education[hidden] {
  display: none;
}

.interests {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  align-items: start;
  background: linear-gradient(145deg, #f0f3ed 0%, #e4ebe3 100%);
}

.education::after {
  position: absolute;
  z-index: 0;
  top: -90px;
  right: -75px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(115, 137, 166, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(115, 137, 166, 0.035);
  content: "";
  pointer-events: none;
}

.interests::after {
  position: absolute;
  z-index: 0;
  top: 1.5rem;
  right: 1.5rem;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(93, 121, 105, 0.25) 1px, transparent 1px);
  background-size: 14px 14px;
  content: "";
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000, transparent 72%);
  mask-image: radial-gradient(circle, #000, transparent 72%);
}

.mini-label {
  display: block;
  margin-bottom: 1rem;
  color: var(--orange);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.profile-block h3,
.education h3,
.interests h3 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.experience-list {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.experience-list article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 2rem;
  min-height: 104px;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color 220ms ease;
}

.experience-list article:hover {
  background: rgba(255, 255, 255, 0.025);
}

.experience-period {
  padding-top: 0.15rem;
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
}

.experience-list h4 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
}

.experience-list strong {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(248, 247, 242, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
}

.experience-list p {
  margin: 0;
  color: rgba(248, 247, 242, 0.6);
  font-size: 0.88rem;
  line-height: 1.65;
}

.experience-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.35rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.experience-points li {
  position: relative;
  padding-left: 1rem;
  color: rgba(248, 247, 242, 0.68);
  font-size: 0.86rem;
  line-height: 1.7;
}

.experience-points li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--acid);
  content: "";
}

.experience-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.experience-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  color: rgba(248, 247, 242, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.experience-links a span {
  transition: transform 200ms ease;
}

.experience-links a:hover {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.experience-links a:hover span {
  transform: translate(2px, -2px);
}

.education-list {
  border-top: 1px solid rgba(21, 23, 22, 0.14);
}

.education-list a {
  display: grid;
  grid-template-columns: 34px minmax(190px, 1fr) auto 24px;
  gap: 1rem;
  align-items: center;
  min-height: 88px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 220ms ease, padding 220ms ease;
}

.education-list a:hover {
  padding-right: 0.65rem;
  padding-left: 0.65rem;
  background: rgba(248, 247, 242, 0.48);
}

.education-index {
  color: var(--orange);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
}

.education-list h4 {
  margin: 0 0 0.25rem;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.education-list p {
  margin: 0;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.education-list strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: right;
}

.education-arrow {
  font-size: 1rem;
  transition: transform 200ms ease;
}

.education-list a:hover .education-arrow {
  transform: translate(3px, -3px);
}

.interests-copy {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.interests-copy p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.interests-copy p + p {
  margin-top: 1rem;
}

.interest-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-self: start;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.interest-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 66px;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 700;
  transition: color 200ms ease, background-color 200ms ease;
}

.interest-list li:hover {
  color: #384c42;
  background: rgba(183, 215, 196, 0.22);
}

.interest-list li:nth-child(even) {
  border-right: 1px solid var(--line);
}

.interest-list li:nth-child(3n) {
  border-right: 0;
}

.interest-list span {
  color: var(--orange);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  font-weight: 400;
}

.services,
.process {
  color: var(--white);
  background: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 -1px 0 rgba(255, 255, 255, 0.045);
}

.services {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 14%, rgba(127, 141, 168, 0.14), transparent 27%),
    radial-gradient(circle at 5% 88%, rgba(183, 215, 196, 0.08), transparent 24%),
    var(--ink);
}

.services::before {
  position: absolute;
  z-index: 0;
  right: -70px;
  bottom: -70px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(183, 215, 196, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(183, 215, 196, 0.018), 0 0 0 110px rgba(183, 215, 196, 0.012);
  content: "";
  pointer-events: none;
}

.services > * {
  position: relative;
  z-index: 1;
}

.services-heading {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: clamp(3rem, 4.5vw, 4.5rem);
}

.services h2 span,
.process h2 span {
  color: transparent;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.services-heading > p,
.process-sticky > p {
  max-width: 450px;
  margin: 0 0 0.65rem;
  color: rgba(248, 247, 242, 0.57);
  font-size: 1rem;
  line-height: 1.7;
}

.service-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 50px 90px minmax(250px, 0.8fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: center;
  min-height: 135px;
  padding-block: 1.5rem;
  padding-inline: clamp(1rem, 1.8vw, 1.75rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transition: background-color 250ms ease;
}

.service-row::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(183, 215, 196, 0.09), rgba(127, 141, 168, 0.04), transparent 72%);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms cubic-bezier(.16, .8, .3, 1);
}

.service-row > * {
  position: relative;
  z-index: 1;
}

.service-row:hover {
  background: rgba(255, 255, 255, 0.018);
}

.service-row:hover::before {
  transform: scaleX(1);
}

.service-number {
  color: rgba(255, 255, 255, 0.35);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: color 250ms ease, border-color 250ms ease, transform 250ms ease;
}

.service-row:hover .service-icon {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
  transform: translateY(-2px);
}

.service-icon svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.service-title h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.04em;
  transition: color 220ms ease, transform 220ms ease;
}

.service-row:hover .service-title h3 {
  color: var(--acid);
  transform: translateX(4px);
}

.service-title span {
  color: rgba(255, 255, 255, 0.37);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.service-row > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.53);
  font-size: 0.92rem;
  line-height: 1.7;
}

.projects-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: flex-end;
  margin-bottom: clamp(3rem, 4.5vw, 4.5rem);
}

.projects {
  background:
    radial-gradient(circle at 5% 34%, rgba(127, 141, 168, 0.1), transparent 21%),
    radial-gradient(circle at 88% 76%, rgba(183, 215, 196, 0.18), transparent 22%),
    var(--paper);
}

.projects-heading > p {
  width: auto;
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.75rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
}

.project-card {
  transition: transform 350ms cubic-bezier(.16, .8, .3, 1);
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card > a {
  display: block;
}

.project-large {
  grid-column: 1 / -1;
}

.project-visual {
  position: relative;
  height: clamp(310px, 34vw, 480px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 60px rgba(21, 23, 22, 0.1);
  filter: saturate(0.94);
  transition: box-shadow 350ms ease, filter 350ms ease;
}

.project-card:hover .project-visual {
  box-shadow: 0 32px 80px rgba(21, 23, 22, 0.17);
  filter: saturate(1.05);
}

.project-card:not(.project-large) .project-visual {
  height: clamp(330px, 34vw, 420px);
}

.project-visual::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  content: "";
  pointer-events: none;
}

.visual-northline {
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    repeating-linear-gradient(90deg, transparent 0 7.9%, rgba(255,255,255,.06) 8%),
    #2b3c3d;
}

.northline-word {
  position: relative;
  z-index: 2;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.1em;
  text-align: center;
  transition: letter-spacing 600ms cubic-bezier(.16,.8,.3,1);
}

.project-card:hover .northline-word {
  letter-spacing: -0.06em;
}

.northline-orbit,
.contact-orbit {
  position: absolute;
  width: min(42vw, 570px);
  aspect-ratio: 1;
  border: 1px solid rgba(183, 215, 196, 0.42);
  border-radius: 50%;
  animation: orbitRotate 22s linear infinite;
}

.northline-orbit::before,
.northline-orbit::after,
.contact-orbit::before,
.contact-orbit::after {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(183, 215, 196, 0.28);
  border-radius: 50%;
  content: "";
}

.northline-orbit::after,
.contact-orbit::after {
  inset: 32%;
}

.northline-orbit i,
.contact-orbit i {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
}

.northline-orbit i:nth-child(2),
.contact-orbit i:nth-child(2) { top: 14%; left: 73%; }
.northline-orbit i:nth-child(3),
.contact-orbit i:nth-child(3) { top: 84%; left: 67%; width: 6px; height: 6px; }

@keyframes orbitRotate {
  to { transform: rotate(360deg); }
}

.project-index,
.forma-label {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.visual-kern {
  display: grid;
  place-items: center;
  padding: 9%;
  background:
    radial-gradient(circle at 100% 0, rgba(183, 215, 196, 0.3), transparent 38%),
    #aebbb5;
}

.kern-window {
  width: 100%;
  padding: 1.4rem;
  color: var(--white);
  background: #1c201e;
  box-shadow: 20px 25px 0 rgba(28, 32, 30, 0.13);
  transform: rotate(-2deg);
  transition: transform 500ms cubic-bezier(.16,.8,.3,1);
}

.project-card:hover .kern-window {
  transform: rotate(0) scale(1.025);
}

.kern-window > span {
  display: block;
  padding-bottom: 1rem;
  color: rgba(255, 255, 255, 0.43);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
}

.kern-window strong {
  display: block;
  margin: 1.7rem 0;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.08em;
}

.kern-window strong span {
  color: var(--acid);
  font-size: 0.45em;
}

.chart {
  display: flex;
  align-items: end;
  gap: 4%;
  height: 110px;
}

.chart i {
  flex: 1;
  height: 20%;
  background: rgba(255, 255, 255, 0.16);
  transition: height 500ms cubic-bezier(.16,.8,.3,1), background-color 500ms ease;
}

.chart i:nth-child(2) { height: 37%; }
.chart i:nth-child(3) { height: 29%; }
.chart i:nth-child(4) { height: 52%; }
.chart i:nth-child(5) { height: 67%; }
.chart i:nth-child(6) { height: 57%; }
.chart i:nth-child(7) { height: 75%; }
.chart i:nth-child(8) { height: 94%; background: var(--acid); }
.project-card:hover .chart i:nth-child(odd) { height: 72%; }

.visual-forma {
  background: #6f8292;
}

.forma-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 600ms cubic-bezier(.16,.8,.3,1);
}

.project-card:hover .forma-shape {
  transform: translate(-50%, -50%) rotate(20deg) scale(1.08);
}

.forma-shape::before,
.forma-shape::after,
.forma-shape i {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.45);
  content: "";
}

.forma-shape::before { inset: 12%; transform: rotate(45deg); }
.forma-shape::after { top: 50%; left: -20%; width: 140%; height: 1px; }
.forma-shape i { top: -20%; left: 50%; width: 1px; height: 140%; }

.forma-name {
  position: absolute;
  right: -0.1em;
  bottom: -0.16em;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.1em;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 1.15rem 1.25rem;
  border-right: 1px solid rgba(21, 23, 22, 0.1);
  border-bottom: 1px solid rgba(21, 23, 22, 0.1);
  border-left: 1px solid rgba(21, 23, 22, 0.1);
  background: rgba(248, 247, 242, 0.62);
  transition: background-color 250ms ease, border-color 250ms ease;
}

.project-card:hover .project-meta {
  border-color: rgba(115, 137, 166, 0.25);
  background: rgba(248, 247, 242, 0.9);
}

.project-meta h3 {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.project-meta p {
  margin: 0;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: color 250ms ease, background-color 250ms ease, transform 250ms ease;
}

.project-card:hover .project-arrow {
  color: var(--paper);
  background: var(--ink);
  transform: rotate(45deg);
}

.projects-note {
  margin: clamp(3.5rem, 5vw, 5rem) 0 0;
  padding: 1.35rem 1.5rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(248, 247, 242, 0.48);
  text-align: center;
}

.projects-note a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid rgba(21, 23, 22, 0.32);
  transition: border-color 200ms ease;
}

.projects-note a:hover { border-bottom-color: var(--ink); }

.process {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 84%, rgba(183, 215, 196, 0.075), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(127, 141, 168, 0.09), transparent 26%),
    var(--ink);
}

.process::before {
  position: absolute;
  top: -25vw;
  right: -25vw;
  width: 60vw;
  height: 60vw;
  border: 1px solid rgba(183, 215, 196, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 8vw rgba(183, 215, 196, 0.02), 0 0 0 16vw rgba(183, 215, 196, 0.015);
  content: "";
}

.process-layout {
  position: relative;
  display: block;
}

.process-sticky {
  position: static;
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.process-sticky > p {
  margin: 0 0 0.65rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(2.5rem, 4vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.2rem;
  min-height: 180px;
  padding: 1.75rem 2rem 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 220ms ease;
}

.process-steps li:hover {
  background: rgba(255, 255, 255, 0.025);
}

.process-steps li:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.process-steps li:nth-child(even) {
  padding-right: 0;
  padding-left: 2rem;
}

.process-steps li > span {
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
}

.process-steps h3 {
  margin: -0.25rem 0 0.8rem;
  font-size: clamp(1.55rem, 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.045em;
  transition: color 220ms ease, transform 220ms ease;
}

.process-steps li:hover h3 {
  color: var(--acid);
  transform: translateX(4px);
}

.process-steps p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.contact {
  position: relative;
  min-height: 650px;
  color: var(--ink);
  background: linear-gradient(135deg, #b7d7c4 0%, #d8e4dd 56%, #aab9ca 100%);
  overflow: hidden;
  isolation: isolate;
}

.contact::before {
  position: absolute;
  z-index: -1;
  top: 7rem;
  left: -2rem;
  width: 260px;
  height: 260px;
  background-image: radial-gradient(rgba(23, 27, 29, 0.2) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  opacity: 0.34;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000, transparent 70%);
  mask-image: radial-gradient(circle, #000, transparent 70%);
}

.contact::after {
  position: absolute;
  z-index: -2;
  right: -12%;
  bottom: -45%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: rgba(115, 137, 166, 0.32);
  filter: blur(80px);
  content: "";
}

.contact .section-label::after {
  background: rgba(21, 23, 22, 0.25);
}

.contact .section-label span {
  color: var(--acid);
}

.contact-copy {
  position: relative;
  z-index: 2;
}

.contact-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(430px, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.contact-copy > p {
  margin: 0 0 1.25rem;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.8rem, 4.6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.07em;
}

.contact h2 em {
  color: rgba(23, 27, 29, 0.55);
  font-style: normal;
}

.contact-form {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(23, 27, 29, 0.22);
  background: rgba(248, 247, 242, 0.3);
  box-shadow: 0 24px 70px rgba(23, 27, 29, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.contact-form::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ink), var(--violet), var(--acid));
  content: "";
}

.contact-form:focus-within {
  border-color: rgba(23, 27, 29, 0.38);
  box-shadow: 0 30px 80px rgba(23, 27, 29, 0.14);
  transform: translateY(-3px);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.form-field {
  display: block;
  margin-bottom: 1.6rem;
}

.form-field > span {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 27, 29, 0.35);
  border-radius: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(23, 27, 29, 0.42);
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--ink);
  background: rgba(248, 247, 242, 0.16);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-bottom-color: #7a342f;
  background: rgba(122, 52, 47, 0.045);
}

.form-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.form-status {
  max-width: 250px;
  margin: 0;
  color: rgba(23, 27, 29, 0.58);
  font-family: "DM Mono", monospace;
  font-size: 0.56rem;
  line-height: 1.55;
}

.form-status.is-success {
  color: #315e49;
}

.form-status.is-error {
  color: #7a342f;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.contact-form button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.contact-form button:hover {
  color: var(--ink);
  background: var(--acid);
  transform: translateY(-2px);
}

.contact-form button:disabled,
.contact-form button:disabled:hover {
  color: rgba(248, 247, 242, 0.7);
  background: var(--ink);
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.contact-form button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.education-list a:focus-visible,
.experience-links a:focus-visible,
.project-card a:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.contact-orbit {
  z-index: -1;
  right: -5%;
  bottom: -10%;
  width: min(50vw, 620px);
  border-color: rgba(21, 23, 22, 0.35);
}

.contact-orbit::before,
.contact-orbit::after {
  border-color: rgba(21, 23, 22, 0.2);
}

.contact-orbit i {
  background: var(--ink);
  box-shadow: none;
}

/* Footer and social links. */
footer {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem var(--content-pad);
  color: rgba(255, 255, 255, 0.62);
  background: var(--ink);
  font-size: 0.7rem;
}

.footer-brand {
  color: var(--white);
}

footer p,
footer .copyright {
  margin: 0;
  font-family: "DM Mono", monospace;
}

.social-links {
  display: flex;
  gap: 0.55rem;
  color: var(--white);
}

.social-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.social-links a::after {
  display: none;
}

.social-links a:hover {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-links .gitea-icon {
  width: 20px;
  height: 20px;
}

.reveal {
  opacity: 1;
}

/* Shared responsive behavior. */
@media (max-width: 1080px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    z-index: 2;
    top: 25px;
    right: var(--content-pad);
    flex-direction: column;
    justify-self: end;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--white);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    flex: 0 0 1px;
    width: 20px;
    height: 1px;
    background: currentColor;
    transition: transform 250ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    z-index: 15;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: var(--gutter);
    color: var(--white);
    background: rgba(16, 18, 17, 0.97);
    visibility: hidden;
    opacity: 0;
    transition: opacity 250ms ease, visibility 250ms ease;
  }

  .mobile-menu.open {
    visibility: visible;
    opacity: 1;
  }

  .mobile-menu a {
    font-size: clamp(2.8rem, 10vw, 5rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.06em;
  }

  .hero-terminal {
    top: 18%;
    right: var(--content-pad);
    opacity: 0.7;
    transform: scale(0.85) rotate(0.6deg);
  }

  .intro-copy,
  .services-heading,
  .process-layout,
  .profile-block,
  .education,
  .interests {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    display: block;
  }

  .intro-text {
    max-width: none;
    gap: 2rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-block,
  .education,
  .interests {
    gap: 2.5rem;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics div { grid-column: auto; }
  .metrics div:nth-child(odd) { border-right: 1px solid var(--line); }
  .metrics div:nth-child(even),
  .metrics div:last-child { border-right: 0; }
  .metrics div:nth-child(-n + 14) { border-bottom: 1px solid var(--line); }
  .metrics div:last-child { grid-column: 1 / -1; }

  .service-row {
    grid-template-columns: 42px 74px 0.8fr 1fr;
    gap: 1.2rem;
  }

  .process-sticky {
    position: static;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-copy {
    max-width: 680px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    height: 72px;
  }

  .menu-toggle {
    top: 17px;
  }

  .hero {
    height: min(820px, 100svh);
    min-height: 680px;
    padding-top: 72px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 2.2rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 9vw, 3.2rem);
    line-height: 1.05;
  }

  .hero-eyebrow {
    margin-bottom: 1.3rem;
  }

  .hero-bottom {
    align-items: center;
    margin-top: 2.25rem;
  }

  .hero-bottom p {
    width: 100%;
    max-width: 100%;
    font-size: 0.93rem;
  }

  .round-link {
    display: none;
  }

  .hero-code {
    top: 93px;
    right: auto;
    left: var(--content-pad);
  }

  .hero-code span:nth-child(n + 2) { display: none; }

  .hero-terminal {
    display: none;
  }

  .section-label {
    margin-bottom: 2.5rem;
  }

  .section-label::after {
    margin-left: 0;
  }

  .stack-heading {
    display: block;
  }

  .stack-heading p {
    margin-top: 0.65rem;
  }

  .intro-text {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .profile-block,
  .education,
  .interests {
    gap: 1.75rem;
    padding: 1.25rem;
  }

  .intro h2,
  .projects-heading h2,
  .services h2,
  .process h2 {
    font-size: clamp(2.3rem, 10.5vw, 3.6rem);
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .metrics div:nth-child(odd) { border-right: 1px solid var(--line); }
  .metrics div:nth-child(even) { border-right: 0; }
  .metrics div:last-child { border-right: 0; }
  .metrics div:nth-child(-n + 14) { border-bottom: 1px solid var(--line); }

  .education-list a {
    grid-template-columns: 26px 1fr 20px;
    gap: 0.75rem;
  }

  .education-list strong {
    grid-column: 2;
    text-align: left;
  }

  .education-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .experience-list article {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .experience .profile-heading,
  .interests-copy {
    grid-template-columns: 1fr;
  }

  .experience .profile-heading {
    gap: 0.5rem;
  }

  .experience .profile-heading .mini-label {
    margin-bottom: 0.35rem;
    padding-top: 0;
  }

  .interests-copy {
    gap: 1.5rem;
  }

  .experience-points {
    grid-template-columns: 1fr;
  }

  .interest-list {
    grid-template-columns: 1fr 1fr;
  }

  .interest-list li:nth-child(n) {
    border-right: 1px solid var(--line);
  }

  .interest-list li:nth-child(even) {
    border-right: 0;
  }

  .services-heading {
    gap: 2rem;
  }

  .service-row {
    grid-template-columns: 35px 1fr;
    gap: 1.25rem 1rem;
    padding: 1.5rem 0.75rem;
  }

  .service-row:hover { padding: 1.5rem 0.75rem; }
  .service-icon { grid-row: span 2; width: 35px; height: 35px; }
  .service-icon svg { width: 19px; }
  .service-number { display: none; }
  .service-title { grid-column: 2; }
  .service-row > p { grid-column: 2; }

  .projects-heading {
    display: block;
  }

  .projects-heading > p {
    width: auto;
    margin-top: 1.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-large {
    grid-column: auto;
  }

  .project-visual,
  .project-card:not(.project-large) .project-visual {
    height: min(92vw, 400px);
  }

  .northline-word {
    font-size: clamp(3.5rem, 20vw, 7rem);
  }

  .northline-orbit {
    width: 82vw;
  }

  .process-layout {
    gap: 3rem;
  }

  .process-sticky {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-sticky > p {
    margin: 0;
  }

  .process-steps {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .process-steps li,
  .process-steps li:nth-child(odd),
  .process-steps li:nth-child(even) {
    min-height: 0;
    padding: 1.5rem 0 2rem;
    border-right: 0;
  }

  .contact {
    min-height: 500px;
  }

  .contact h2 {
    font-size: clamp(2.5rem, 10vw, 3.4rem);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-status {
    max-width: none;
  }

  .contact-form button {
    width: 100%;
  }

  .contact-orbit {
    right: -35%;
    width: 100vw;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  footer > p {
    display: none;
  }
}

@media (max-width: 480px) {
  .interest-list {
    grid-template-columns: 1fr;
  }

  .interest-list li,
  .interest-list li:nth-child(even) {
    border-right: 0;
  }
}

@media (hover: none) {
  .metrics div:hover,
  .profile-block:hover,
  .education:hover,
  .interests:hover,
  .project-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Portfolio sections: shared layout and typography. */
.portfolio-section {
  --portfolio-title: clamp(2rem, 2.9vw, 2.75rem);
  --portfolio-card-title: clamp(1.25rem, 1.6vw, 1.625rem);
  --portfolio-lead: clamp(1.0625rem, 1.1vw, 1.125rem);
  --portfolio-body: clamp(1rem, calc(0.94rem + 0.3vw), 1.0625rem);
  --portfolio-meta: 0.8rem;
  --portfolio-shadow-soft: 0 10px 28px rgba(23, 27, 29, 0.045);
  --portfolio-shadow: 0 18px 46px rgba(23, 27, 29, 0.075);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.portfolio-section > * {
  position: relative;
  z-index: 1;
}

.portfolio-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.75rem, 4.5vw, 4.5rem);
}

.portfolio-head-title,
.portfolio-head-lead {
  min-width: 0;
}

.portfolio-kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-family: "DM Mono", monospace;
  font-size: var(--portfolio-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.portfolio-kicker span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 28px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(115, 137, 166, 0.16);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.portfolio-kicker p,
.portfolio-head-lead {
  margin: 0;
}

.portfolio-head h2 {
  margin: 0;
  font-size: var(--portfolio-title);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.portfolio-head-lead {
  max-width: 60ch;
  padding-bottom: 0.2rem;
  color: var(--muted);
  font-size: var(--portfolio-lead);
  line-height: 1.62;
}

.portfolio-head-light {
  color: var(--white);
}

.portfolio-head-light .portfolio-kicker span {
  color: var(--ink);
  background: var(--acid);
  box-shadow: 4px 4px 0 rgba(127, 141, 168, 0.2);
}

.portfolio-head-light .portfolio-head-lead {
  color: rgba(248, 247, 242, 0.64);
}

/* About and working principles. */
.portfolio-about {
  background:
    radial-gradient(circle at 90% 15%, rgba(183, 215, 196, 0.2), transparent 28%),
    radial-gradient(circle at 8% 82%, rgba(127, 141, 168, 0.07), transparent 24%),
    var(--paper);
}

.portfolio-about::before,
.portfolio-lab::before {
  position: absolute;
  z-index: 0;
  top: 5.5rem;
  right: -2rem;
  width: 280px;
  height: 280px;
  background-image: radial-gradient(rgba(115, 137, 166, 0.22) 1px, transparent 1px);
  background-size: 19px 19px;
  content: "";
  opacity: 0.38;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000, transparent 72%);
  mask-image: radial-gradient(circle, #000, transparent 72%);
}

.portfolio-about-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.portfolio-about-statement h3 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.portfolio-about-copy {
  max-width: 670px;
}

.portfolio-about-copy p {
  margin: 0;
  color: #4f524d;
  font-size: var(--portfolio-body);
  line-height: 1.78;
}

.portfolio-about-copy p + p {
  margin-top: 1.15rem;
}

.portfolio-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--portfolio-shadow-soft);
}

.portfolio-principles article {
  min-width: 0;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
  transition: background-color 200ms ease;
}

.portfolio-principles article:last-child {
  border-right: 0;
}

.portfolio-principles article > span,
.portfolio-capability-number {
  color: var(--orange);
  font-family: "DM Mono", monospace;
  font-size: var(--portfolio-meta);
}

.portfolio-principles h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.portfolio-principles p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* Career timeline. */
.portfolio-career {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 25%),
    var(--paper-deep);
}

.portfolio-timeline {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.portfolio-timeline-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.portfolio-timeline-meta {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.2rem;
  font-family: "DM Mono", monospace;
  font-size: var(--portfolio-meta);
}

.portfolio-timeline-meta time {
  color: var(--orange);
}

.portfolio-timeline-period {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  color: var(--orange);
  white-space: nowrap;
}

.portfolio-timeline-meta > span:not(.portfolio-current-badge) {
  color: var(--muted);
}

.portfolio-current-badge {
  padding: 0.28rem 0.48rem;
  color: #365445;
  border: 1px solid rgba(76, 112, 93, 0.24);
  background: rgba(183, 215, 196, 0.42);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portfolio-career-entry {
  min-width: 0;
}

.portfolio-career-entry > header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}

.portfolio-career-entry h3 {
  margin: 0;
  font-size: var(--portfolio-card-title);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.portfolio-career-entry > header p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.portfolio-career-summary {
  max-width: 850px;
  margin: 1rem 0 0;
  color: #4f524d;
  font-size: var(--portfolio-body);
  line-height: 1.75;
}

.portfolio-responsibilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.portfolio-responsibilities > div {
  min-width: 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(21, 23, 22, 0.12);
  background: rgba(248, 247, 242, 0.5);
  box-shadow: var(--portfolio-shadow-soft);
}

.portfolio-responsibilities span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--orange);
  font-family: "DM Mono", monospace;
  font-size: var(--portfolio-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.portfolio-responsibilities p {
  margin: 0;
  color: #50544f;
  font-size: 1rem;
  line-height: 1.65;
}

.portfolio-career-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.portfolio-career-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(21, 23, 22, 0.22);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

/* Technology expertise. */
.portfolio-expertise {
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 90% 8%, rgba(127, 141, 168, 0.15), transparent 28%),
    var(--ink);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.portfolio-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.portfolio-capability {
  display: flex;
  min-width: 0;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.portfolio-capability > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portfolio-capability-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-capability-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.portfolio-capability h3 {
  margin: 1.5rem 0 0.8rem;
  font-size: var(--portfolio-card-title);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.032em;
}

.portfolio-capability > p {
  margin: 0;
  color: rgba(248, 247, 242, 0.62);
  font-size: var(--portfolio-body);
  line-height: 1.72;
}

.portfolio-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: auto 0 0;
  padding: 1.75rem 0 0;
  list-style: none;
}

.portfolio-tools li {
  display: flex;
  min-width: 0;
  min-height: 48px;
  padding: 0.55rem 0.65rem;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 247, 242, 0.82);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.portfolio-tools li:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.portfolio-tools li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}

.portfolio-tools li > span {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0.22rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.94);
}

.portfolio-tools img {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.portfolio-expertise-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.portfolio-expertise-cta p {
  margin: 0;
  color: rgba(248, 247, 242, 0.62);
  font-size: 1rem;
}

.portfolio-expertise-cta a {
  flex: 0 0 auto;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

/* Homelab overview. */
.portfolio-lab {
  background:
    radial-gradient(circle at 88% 15%, rgba(183, 215, 196, 0.28), transparent 27%),
    radial-gradient(circle at 4% 90%, rgba(127, 141, 168, 0.09), transparent 25%),
    #eff1ec;
}

.portfolio-lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: stretch;
}

.portfolio-lab-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.portfolio-lab-copy > h3 {
  max-width: 650px;
  margin: 0 0 1.4rem;
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.portfolio-lab-copy > p {
  max-width: 680px;
  margin: 0;
  color: #50544f;
  font-size: var(--portfolio-body);
  line-height: 1.75;
}

.portfolio-lab-copy > p + p {
  margin-top: 1rem;
}

.portfolio-lab-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.75rem 0 1.25rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(248, 247, 242, 0.22);
  box-shadow: var(--portfolio-shadow-soft);
}

.portfolio-lab-facts div {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portfolio-lab-facts dt {
  margin-bottom: 0.45rem;
  color: var(--orange);
  font-family: "DM Mono", monospace;
  font-size: var(--portfolio-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portfolio-lab-facts dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.portfolio-hardware-note {
  margin-top: auto;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--orange);
  background: rgba(248, 247, 242, 0.62);
  box-shadow: var(--portfolio-shadow-soft);
}

.portfolio-hardware-note > span {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "DM Mono", monospace;
  font-size: var(--portfolio-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portfolio-hardware-note p {
  margin: 0;
  color: #555953;
  font-size: 1rem;
  line-height: 1.65;
}

/* Rack hardware visualization. */
.portfolio-rack {
  padding: 1.25rem;
  color: var(--white);
  border: 1px solid rgba(21, 23, 22, 0.14);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(145deg, #202627 0%, #151919 100%);
  background-size: 26px 26px, 26px 26px, auto;
  box-shadow: 0 24px 70px rgba(21, 23, 22, 0.14);
  font-family: "DM Mono", monospace;
}

.portfolio-rack-head,
.portfolio-rack-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portfolio-rack-head {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.portfolio-rack-head > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--acid);
}

.portfolio-rack-head i,
.portfolio-rack-units i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px rgba(183, 215, 196, 0.8);
}

.portfolio-rack-meta {
  padding: 0.75rem 0;
  color: rgba(248, 247, 242, 0.34);
  font-size: 0.72rem;
}

.portfolio-rack-units {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.portfolio-rack-units > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto 10px;
  gap: 0.85rem;
  align-items: center;
  min-height: 71px;
  padding: 0.8rem 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.portfolio-rack-units span {
  color: rgba(248, 247, 242, 0.35);
  font-size: 0.72rem;
}

.portfolio-rack-units strong {
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.portfolio-rack-units small {
  color: rgba(248, 247, 242, 0.38);
  font-size: 0.7rem;
  line-height: 1.4;
}

.portfolio-rack-fans {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.portfolio-switch-panel {
  display: flex;
  grid-column: 3 / -1;
  align-items: center;
  justify-content: end;
  gap: 0.65rem;
}

.portfolio-rack-switch > small {
  display: none;
}

.portfolio-patch-ports {
  display: grid;
  grid-template-columns: repeat(12, 11px);
  grid-column: 4 / -1;
  gap: 0.22rem 0.13rem;
  justify-content: end;
}

.portfolio-patch-ports > span {
  display: block;
  width: 11px;
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(248, 247, 242, 0.34);
  border-radius: 1px;
  background:
    repeating-linear-gradient(90deg, rgba(211, 174, 93, 0.64) 0 1px, transparent 1px 2px) center bottom 1px / 7px 2px no-repeat,
    linear-gradient(180deg, rgba(248, 247, 242, 0.08), rgba(0, 0, 0, 0.36));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.28),
    inset 0 -2px rgba(0, 0, 0, 0.28);
}

.portfolio-ethernet-ports {
  display: grid;
  grid-template-columns: repeat(12, 11px);
  gap: 0.22rem 0.13rem;
}

.portfolio-ethernet-port {
  position: relative;
  display: block;
  width: 11px;
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(248, 247, 242, 0.34);
  border-radius: 1px;
  background:
    repeating-linear-gradient(90deg, rgba(211, 174, 93, 0.64) 0 1px, transparent 1px 2px) center bottom 1px / 7px 2px no-repeat,
    linear-gradient(180deg, rgba(248, 247, 242, 0.08), rgba(0, 0, 0, 0.36));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.28),
    inset 0 -2px rgba(0, 0, 0, 0.28);
}

.portfolio-ethernet-port::before,
.portfolio-ethernet-port::after {
  position: absolute;
  top: 1px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  content: "";
  opacity: 0.12;
}

.portfolio-ethernet-port::before {
  left: 1px;
  background: #78d69b;
}

.portfolio-ethernet-port::after {
  right: 1px;
  background: #e49a51;
}

.portfolio-ethernet-port.is-active::before {
  box-shadow: 0 0 4px rgba(120, 214, 155, 0.9);
  opacity: 1;
}

.portfolio-ethernet-port.is-active::after {
  box-shadow: 0 0 4px rgba(228, 154, 81, 0.88);
  animation: portfolioRackDiskActivity 2.3s steps(1, end) infinite;
}

.portfolio-ethernet-port:nth-child(4n + 2)::after {
  animation-delay: -0.7s;
  animation-duration: 3.1s;
}

.portfolio-ethernet-port:nth-child(5n + 4)::after {
  animation-delay: -1.2s;
  animation-duration: 1.9s;
}

.portfolio-ethernet-port:nth-child(7n)::after {
  animation-delay: -1.8s;
  animation-duration: 3.8s;
}

.portfolio-ethernet-port:nth-child(11n)::after {
  animation-delay: -2.4s;
  animation-duration: 2.7s;
}

.portfolio-sfp-ports {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.22rem 0.28rem;
}

.portfolio-sfp-port {
  display: flex;
  align-items: center;
  gap: 0.18rem;
}

.portfolio-sfp-port > b {
  display: block;
  width: 15px;
  height: 8px;
  border: 1px solid rgba(248, 247, 242, 0.3);
  background: linear-gradient(180deg, rgba(248, 247, 242, 0.08), rgba(0, 0, 0, 0.2));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.portfolio-sfp-leds {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.portfolio-rack-units .portfolio-sfp-leds i {
  width: 3px;
  height: 3px;
}

.portfolio-rack-units .portfolio-sfp-link {
  background: var(--acid);
  box-shadow: none;
  opacity: 0.12;
}

.portfolio-rack-units .portfolio-sfp-port.is-active .portfolio-sfp-link {
  box-shadow: 0 0 5px rgba(183, 215, 196, 0.75);
  opacity: 1;
}

.portfolio-rack-units .portfolio-sfp-status {
  background: #d88a48;
  box-shadow: none;
  opacity: 0.2;
}

.portfolio-rack-units .portfolio-sfp-port.is-active .portfolio-sfp-status {
  box-shadow: 0 0 5px rgba(216, 138, 72, 0.72);
  animation: portfolioRackDiskActivity 2.4s steps(1, end) infinite;
}

.portfolio-sfp-port:nth-child(1).is-active .portfolio-sfp-status {
  animation-delay: -0.43s;
  animation-duration: 2.05s;
}

.portfolio-sfp-port:nth-child(2).is-active .portfolio-sfp-status {
  animation-delay: -1.76s;
  animation-duration: 3.17s;
  animation-direction: reverse;
}

.portfolio-sfp-port:nth-child(3).is-active .portfolio-sfp-status {
  animation-delay: -0.92s;
  animation-duration: 3.83s;
}

.portfolio-sfp-port:nth-child(4).is-active .portfolio-sfp-status {
  animation-delay: -2.29s;
  animation-duration: 2.71s;
}

.portfolio-battery-status {
  display: flex;
  grid-column: 4 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.portfolio-battery-status b {
  color: rgba(248, 247, 242, 0.68);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.portfolio-rack-ups > small {
  display: none;
}

.portfolio-ups-display {
  position: relative;
  display: grid;
  width: min(260px, 100%);
  padding: 0.38rem 0.42rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column: 3 / -1;
  justify-self: end;
  border: 1px solid rgba(183, 215, 196, 0.34);
  background:
    repeating-linear-gradient(180deg, rgba(183, 215, 196, 0.035) 0 1px, transparent 1px 3px),
    #0a1110;
  box-shadow:
    inset 0 0 16px rgba(183, 215, 196, 0.08),
    0 0 12px rgba(183, 215, 196, 0.06);
  font-variant-numeric: tabular-nums;
}

.portfolio-ups-display > span {
  display: flex;
  min-width: 0;
  padding: 0 0.38rem;
  border-left: 1px solid rgba(183, 215, 196, 0.16);
  flex-direction: column;
  gap: 0.16rem;
}

.portfolio-ups-display > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.portfolio-ups-display > span:last-child {
  padding-right: 0;
}

.portfolio-rack-units .portfolio-ups-display small {
  display: block;
  color: rgba(183, 215, 196, 0.45);
  font-size: 0.42rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.portfolio-ups-display b {
  color: #b7e2c8;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.1;
  text-shadow: 0 0 7px rgba(183, 226, 200, 0.38);
  white-space: nowrap;
}

.portfolio-rack-units .portfolio-battery-status i {
  position: relative;
  width: 34px;
  height: 14px;
  border: 1px solid rgba(183, 215, 196, 0.46);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portfolio-battery-status i::before {
  position: absolute;
  inset: 2px;
  background: linear-gradient(90deg, rgba(183, 215, 196, 0.52), var(--acid));
  content: "";
}

.portfolio-battery-status i::after {
  position: absolute;
  top: 3px;
  right: -4px;
  width: 3px;
  height: 6px;
  background: rgba(183, 215, 196, 0.46);
  content: "";
}

.portfolio-rack-fan {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid rgba(248, 247, 242, 0.2);
  border-radius: 50%;
  background: rgba(248, 247, 242, 0.035);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.portfolio-rack-fan::before {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: conic-gradient(
    from 8deg,
    rgba(183, 215, 196, 0.72) 0 11%,
    transparent 11% 25%,
    rgba(183, 215, 196, 0.72) 25% 36%,
    transparent 36% 50%,
    rgba(183, 215, 196, 0.72) 50% 61%,
    transparent 61% 75%,
    rgba(183, 215, 196, 0.72) 75% 86%,
    transparent 86% 100%
  );
  content: "";
  animation: portfolioRackFanSpin 1.2s linear infinite;
}

.portfolio-rack-fan::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 5px rgba(183, 215, 196, 0.6);
  content: "";
  transform: translate(-50%, -50%);
}

.portfolio-rack-fan:nth-child(2)::before {
  animation-direction: reverse;
  animation-duration: 1.55s;
}

.portfolio-rack-leds {
  display: flex;
  align-items: center;
  align-self: center;
  flex-direction: column;
  gap: 0.3rem;
}

.portfolio-rack-units .portfolio-rack-led-disk {
  background: #9fb8cc;
  box-shadow: 0 0 7px rgba(159, 184, 204, 0.75);
  opacity: 0.2;
  animation: portfolioRackDiskActivity 2.7s steps(1, end) infinite;
}

.portfolio-rack-units > div:nth-child(3) .portfolio-rack-led-disk {
  animation-delay: -0.9s;
  animation-duration: 3.4s;
}

.portfolio-rack-units > div:nth-child(4) .portfolio-rack-led-disk {
  animation-delay: -1.4s;
  animation-duration: 2.2s;
}

.portfolio-rack-units > div:nth-child(5) .portfolio-rack-led-disk {
  animation-delay: -2.1s;
  animation-duration: 4.1s;
}

@keyframes portfolioRackDiskActivity {
  0%, 8%, 12%, 27%, 31%, 54%, 58%, 81%, 85%, 100% { opacity: 0.2; }
  9%, 11%, 28%, 30%, 55%, 57%, 82%, 84% { opacity: 1; }
}

.portfolio-rack-units > div:nth-child(3) .portfolio-rack-fan::before {
  animation-duration: 1.4s;
}

.portfolio-rack-units > div:nth-child(4) .portfolio-rack-fan::before {
  animation-duration: 1.7s;
}

.portfolio-rack-units > div:nth-child(5) .portfolio-rack-fan::before {
  animation-duration: 1.3s;
}

@keyframes portfolioRackFanSpin {
  to { transform: rotate(1turn); }
}

.portfolio-rack-temperature {
  display: flex;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(248, 247, 242, 0.52);
  border: 1px solid rgba(183, 215, 196, 0.3);
  background: rgba(183, 215, 196, 0.055);
  font-size: 0.72rem;
}

.portfolio-rack-temperature > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.portfolio-rack-temperature i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px rgba(183, 215, 196, 0.75);
}

.portfolio-rack-temperature strong {
  color: #b7e2c8;
  font-size: 1.05rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 7px rgba(183, 226, 200, 0.3);
}

.portfolio-rack-temperature small {
  padding: 0.16rem 0.28rem;
  color: rgba(183, 215, 196, 0.58);
  border: 1px solid rgba(183, 215, 196, 0.2);
  font-size: 0.5rem;
  line-height: 1;
  letter-spacing: 0.05em;
}

/* Contact call to action and form. */
.portfolio-contact {
  color: var(--ink);
  background: linear-gradient(135deg, #b7d7c4 0%, #d8e4dd 56%, #aab9ca 100%);
}

.portfolio-contact::before {
  position: absolute;
  z-index: 0;
  bottom: 2rem;
  left: -2rem;
  width: 250px;
  height: 250px;
  background-image: radial-gradient(rgba(23, 27, 29, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  opacity: 0.28;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000, transparent 70%);
  mask-image: radial-gradient(circle, #000, transparent 70%);
}

.portfolio-contact .portfolio-kicker span {
  color: var(--acid);
  background: var(--ink);
}

.portfolio-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(430px, 1.28fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.portfolio-contact-copy h3 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(2rem, 2.7vw, 2.625rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.portfolio-contact-copy h3 span {
  display: block;
  color: rgba(23, 27, 29, 0.5);
}

.portfolio-contact-copy > p {
  max-width: 500px;
  margin: 1.4rem 0 0;
  color: rgba(23, 27, 29, 0.68);
  font-size: 1rem;
  line-height: 1.7;
}

.portfolio-contact .contact-form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(248, 247, 242, 0.34);
  box-shadow: 0 22px 58px rgba(35, 53, 48, 0.09);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.portfolio-contact .contact-form:focus-within {
  transform: none;
}

.portfolio-contact .form-field > span {
  font-size: 0.78rem;
}

.portfolio-contact .form-field input,
.portfolio-contact .form-field textarea {
  font-size: 1rem;
}

.portfolio-contact .form-status {
  max-width: 285px;
  font-size: 0.78rem;
}

.portfolio-contact .contact-form button {
  font-size: 0.78rem;
}

.portfolio-contact .contact-orbit {
  position: absolute;
  z-index: 0;
  right: -4%;
  bottom: -32%;
  width: min(46vw, 590px);
  opacity: 0.25;
  animation: none;
  pointer-events: none;
}

/* Portfolio interaction and responsive behavior. */
@media (hover: hover) {
  .portfolio-principles article:hover {
    background: rgba(183, 215, 196, 0.13);
  }

  .portfolio-career-links a:hover {
    color: var(--paper);
    background: var(--ink);
    border-color: var(--ink);
  }

  .portfolio-capability:hover {
    border-color: rgba(183, 215, 196, 0.42);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(2px);
  }
}

@media (max-width: 1100px) {
  .portfolio-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-capability:last-child {
    grid-column: 1 / -1;
  }

  .portfolio-capability:last-child .portfolio-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-capability:last-child .portfolio-tools li:nth-child(odd) {
    border-right: 0;
  }

  .portfolio-capability:last-child .portfolio-tools li:not(:nth-child(3n)) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .portfolio-capability:last-child .portfolio-tools li:last-child {
    grid-column: auto;
    border-right: 0;
  }
}

@media (max-width: 960px) {
  .portfolio-lab-layout,
  .portfolio-contact-layout {
    grid-template-columns: 1fr;
  }

  .portfolio-rack {
    width: min(100%, 680px);
  }

  .portfolio-contact-copy {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .portfolio-head,
  .portfolio-about-overview {
    grid-template-columns: 1fr;
  }

  .portfolio-head {
    gap: 1.35rem;
    margin-bottom: 2.5rem;
  }

  .portfolio-head-lead {
    max-width: none;
  }

  .portfolio-about-overview {
    gap: 1.5rem;
  }

  .portfolio-principles {
    grid-template-columns: 1fr;
  }

  .portfolio-principles article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portfolio-principles article:last-child {
    border-bottom: 0;
  }

  .portfolio-timeline-entry {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portfolio-timeline-meta {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .portfolio-responsibilities,
  .portfolio-capability-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-capability:last-child {
    grid-column: auto;
  }

  .portfolio-capability:last-child .portfolio-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-capability:last-child .portfolio-tools li:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .portfolio-capability:last-child .portfolio-tools li:nth-child(even) {
    border-right: 0;
  }

  .portfolio-capability:last-child .portfolio-tools li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .portfolio-expertise-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .portfolio-section {
    --portfolio-title: clamp(1.9rem, 8vw, 2.35rem);
    --portfolio-card-title: 1.3rem;
    --portfolio-lead: 1.0625rem;
    --portfolio-body: 1rem;
  }

  .portfolio-about-statement h3 {
    font-size: clamp(1.75rem, 7.2vw, 2.15rem);
    line-height: 1.16;
  }

  .portfolio-lab-copy > h3 {
    font-size: 1.75rem;
    line-height: 1.18;
  }

  .portfolio-contact-copy h3 {
    font-size: clamp(2rem, 8vw, 2.2rem);
    line-height: 1.14;
  }

  .portfolio-tools,
  .portfolio-capability:last-child .portfolio-tools,
  .portfolio-lab-facts {
    grid-template-columns: 1fr;
  }

  .portfolio-tools li:nth-child(odd),
  .portfolio-capability:last-child .portfolio-tools li:nth-child(odd),
  .portfolio-capability:last-child .portfolio-tools li:not(:nth-child(3n)) {
    border-right: 0;
  }

  .portfolio-rack-units > div {
    grid-template-columns: 38px minmax(0, 1fr) auto 10px;
  }

  .portfolio-rack-units > .portfolio-rack-patch,
  .portfolio-rack-units > .portfolio-rack-switch,
  .portfolio-rack-units > .portfolio-rack-ups {
    grid-template-columns: 38px minmax(0, 1fr);
    row-gap: 0.5rem;
  }

  .portfolio-rack-units small {
    display: none;
  }

  .portfolio-rack-fan {
    width: 18px;
    height: 18px;
  }

  .portfolio-switch-panel {
    grid-column: 2 / -1;
    justify-content: start;
    gap: 0.38rem;
  }

  .portfolio-patch-ports {
    grid-template-columns: repeat(12, 8px);
    grid-column: 2 / -1;
    gap: 0.18rem 0.1rem;
    justify-content: start;
  }

  .portfolio-patch-ports > span {
    width: 8px;
    height: 7px;
  }

  .portfolio-ethernet-ports {
    grid-template-columns: repeat(12, 8px);
    gap: 0.18rem 0.1rem;
  }

  .portfolio-ethernet-port {
    width: 8px;
    height: 7px;
  }

  .portfolio-sfp-port > b {
    width: 12px;
    height: 7px;
  }

  .portfolio-battery-status {
    grid-column: 3 / -1;
  }

  .portfolio-ups-display {
    width: min(100%, 260px);
    grid-column: 2 / -1;
    justify-self: start;
  }

  .portfolio-contact .contact-orbit {
    right: -55%;
    width: 120vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-rack-fan::before {
    animation: none;
  }

  .portfolio-rack-led-disk {
    animation: none;
    opacity: 0.35;
  }

  .portfolio-ethernet-port.is-active::after,
  .portfolio-rack-units .portfolio-sfp-port.is-active .portfolio-sfp-status {
    animation: none;
    opacity: 0.85;
  }

}
