:root {
  --ink: #07111f;
  --ink-2: #0b1a2d;
  --ink-3: #10243b;
  --paper: #f1f5f8;
  --paper-2: #e6edf2;
  --text: #f0f6fb;
  --muted: #96a9bd;
  --muted-dark: #5c7187;
  --line: rgba(202, 223, 235, 0.15);
  --line-dark: rgba(7, 17, 31, 0.14);
  --mint: #66e2cc;
  --mint-soft: #c5f5eb;
  --amber: #f4bc79;
  --shell: 1180px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
}

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

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

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

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

.shell {
  width: min(calc(100% - 3rem), var(--shell));
  margin-inline: auto;
}

.reading-progress {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(102, 226, 204, 0.7);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(7, 17, 31, 0.78);
  color: var(--text);
  backdrop-filter: blur(18px);
  transition: border-color 240ms ease, background 240ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 17, 31, 0.93);
}

.nav-shell {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(102, 226, 204, 0.65);
  border-radius: 0.45rem;
  color: var(--mint);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  color: #aebdca;
  font-size: 0.8rem;
}

.primary-navigation a {
  position: relative;
  padding-block: 0.4rem;
  transition: color 180ms ease;
}

.primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--mint);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-navigation a:hover,
.primary-navigation a.is-current {
  color: var(--text);
}

.primary-navigation a:hover::after,
.primary-navigation a.is-current::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
}

.menu-icon {
  display: grid;
  gap: 4px;
}

.menu-icon i {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--mint);
}

.hero {
  position: relative;
  min-height: min(850px, calc(100svh - 4.5rem));
  overflow: hidden;
  background: var(--ink);
  color: var(--text);
}

.hero::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 77% 26%, rgba(55, 177, 162, 0.19), transparent 28rem), radial-gradient(circle at 18% 80%, rgba(38, 101, 165, 0.22), transparent 30rem);
  content: "";
}

.section-grid::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(139, 193, 208, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 193, 208, 0.06) 1px, transparent 1px);
  background-size: 76px 76px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 84%);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: inherit;
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.75fr);
  padding-block: clamp(5rem, 11vw, 9rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(102, 226, 204, 0.12), 0 0 18px rgba(102, 226, 204, 0.75);
}

.hero h1 {
  max-width: 850px;
  margin: 1.65rem 0 0;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.hero h1 em {
  display: block;
  color: var(--mint);
  font-style: normal;
}

.hero-lede {
  max-width: 650px;
  margin: 2rem 0 0;
  color: #bfcedc;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--mint);
  color: var(--ink);
}

.button-primary:hover {
  background: #9af0df;
}

.button-secondary {
  border-color: rgba(240, 246, 251, 0.2);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(102, 226, 204, 0.7);
  color: var(--mint);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin-top: 3rem;
  color: #6e8499;
  font-size: 0.72rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta span::before {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.hero-console {
  border: 1px solid rgba(155, 210, 222, 0.23);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(18, 43, 64, 0.72), rgba(8, 22, 38, 0.8));
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.console-heading,
.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: #8197ab;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: #6b8499;
  font-size: 0.58rem;
  letter-spacing: 0.09em;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mint-soft);
  letter-spacing: 0;
  text-transform: none;
}

.availability i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px rgba(102, 226, 204, 0.9);
}

.console-title {
  padding: 2rem 1.35rem 1.5rem;
  color: #b6c8d7;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.console-title strong {
  color: var(--text);
  font-weight: 650;
}

.console-flow {
  display: grid;
  align-items: center;
  gap: 0.35rem;
  padding: 0 1.35rem 2rem;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
}

.console-node {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  color: #b3c1ce;
}

.console-node span {
  color: #638096;
  font-size: 0.58rem;
}

.console-node b {
  font-size: 0.75rem;
  font-weight: 700;
}

.console-node small {
  overflow: hidden;
  color: #718a9d;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-node.is-active b,
.console-node.is-active span {
  color: var(--mint);
}

.console-line {
  width: 1.1rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(102, 226, 204, 0.7), rgba(102, 226, 204, 0.12));
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: max(1.5rem, calc((100% - var(--shell)) / 2));
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #6d879d;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 1.2rem;
  height: 1.8rem;
  border: 1px solid rgba(102, 226, 204, 0.55);
  border-radius: 999px;
}

.scroll-cue span::after {
  display: block;
  width: 2px;
  height: 0.35rem;
  margin: 0.35rem auto 0;
  border-radius: 2px;
  background: var(--mint);
  content: "";
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(0.38rem); }
}

.section {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  scroll-margin-top: 4.5rem;
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-dark {
  background: var(--ink);
  color: var(--text);
}

.section-intro {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
}

.section-intro h2,
.section-heading h2,
.cv-shell h2,
.contact-shell h2 {
  max-width: 760px;
  margin: 1rem 0 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.intro-copy {
  max-width: 670px;
  padding-top: 0.2rem;
}

.intro-copy p,
.section-heading > p,
.cv-shell p,
.contact-lede {
  margin: 0;
  color: var(--muted-dark);
  font-size: 1.05rem;
  line-height: 1.8;
}

.intro-copy p + p {
  margin-top: 1.35rem;
}

.stat-strip {
  display: grid;
  margin-top: 6rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  display: grid;
  gap: 0.8rem;
  padding: 1.6rem 1.5rem 1.6rem 0;
}

.stat + .stat {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-dark);
}

.stat strong {
  color: var(--ink-3);
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.stat span {
  max-width: 16rem;
  color: var(--muted-dark);
  font-size: 0.76rem;
  line-height: 1.55;
}

.section-heading {
  display: grid;
  gap: 2rem;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.58fr);
}

.section-dark .section-heading > p,
.section-dark .cv-shell p {
  color: var(--muted);
}

.capability-board {
  display: grid;
  margin-top: 4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  grid-template-columns: 0.32fr 1fr;
}

.capability-tabs {
  display: grid;
  align-content: start;
  background: rgba(255, 255, 255, 0.025);
}

.capability-tab {
  display: grid;
  gap: 0.35rem;
  padding: 1.3rem 1.35rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #7e94a8;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.capability-tab:last-child {
  border-bottom: 0;
}

.capability-tab span {
  color: #4d6b82;
  font-size: 0.65rem;
}

.capability-tab b {
  color: #b7c7d4;
  font-size: 0.9rem;
}

.capability-tab small {
  font-size: 0.68rem;
}

.capability-tab:hover,
.capability-tab.is-active {
  background: rgba(102, 226, 204, 0.08);
  color: var(--mint-soft);
}

.capability-tab.is-active {
  box-shadow: inset 3px 0 0 var(--mint);
}

.capability-tab.is-active span,
.capability-tab.is-active b {
  color: var(--mint);
}

.capability-panels {
  min-width: 0;
}

.capability-panel {
  display: grid;
  min-height: 26rem;
  gap: 2rem;
  padding: clamp(1.7rem, 4vw, 3rem);
  grid-template-columns: auto minmax(0, 1fr) minmax(8rem, 0.38fr);
}

.capability-panel[hidden] {
  display: none;
}

.panel-number,
.work-index {
  color: var(--mint);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.panel-main h3 {
  max-width: 600px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.panel-main > p {
  max-width: 600px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.tag-list,
.work-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.7rem;
}

.tag-list span,
.work-details span {
  padding: 0.48rem 0.65rem;
  border: 1px solid rgba(102, 226, 204, 0.2);
  border-radius: 999px;
  color: #a6c7ce;
  font-size: 0.68rem;
}

.panel-note {
  align-self: end;
  padding-left: 1.3rem;
  border-left: 1px solid var(--line);
}

.panel-note span {
  display: block;
  margin-bottom: 0.65rem;
  color: #5e7b8f;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-note strong {
  color: #c8d8e1;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.timeline {
  position: relative;
  margin-top: 5rem;
}

.timeline::before {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 10.6rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--mint), var(--line-dark) 88%, transparent);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 2rem;
  padding-bottom: 3.6rem;
  grid-template-columns: 8rem 1.25rem minmax(0, 1fr);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding-top: 0.15rem;
  color: var(--muted-dark);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: right;
}

.timeline-date b {
  color: var(--ink-3);
  font-weight: 700;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border: 1px solid var(--mint);
  border-radius: 50%;
  background: var(--paper);
}

.timeline-marker i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--mint);
}

.timeline-card {
  max-width: 720px;
  padding: 0 0 0.2rem 1.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.timeline-card:last-child {
  border-bottom: 0;
}

.role-label,
.work-type {
  margin: 0;
  color: #438d83;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-card h3 {
  margin: 0.45rem 0 0;
  color: var(--ink-3);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.05em;
}

.timeline-card > p:not(.role-label) {
  margin: 0.95rem 0 0;
  color: var(--muted-dark);
  line-height: 1.75;
}

details {
  margin-top: 1rem;
  border-top: 1px solid var(--line-dark);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  color: #438d83;
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

details ul {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding-left: 1rem;
  color: var(--muted-dark);
  font-size: 0.85rem;
  line-height: 1.6;
}

.process-section {
  overflow: hidden;
}

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

.process-card {
  position: relative;
  min-height: 18rem;
  padding: 1.8rem 1.5rem 2rem;
}

.process-card + .process-card {
  border-left: 1px solid var(--line);
}

.process-card span {
  color: var(--mint);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.process-card h3 {
  margin: 4.3rem 0 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.process-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.process-card::after {
  position: absolute;
  top: 2rem;
  right: 1.5rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(102, 226, 204, 0.22);
  border-radius: 50%;
  content: "";
}

.process-card:nth-child(2)::after {
  border-radius: 0.45rem;
  transform: rotate(45deg);
}

.process-card:nth-child(3)::after {
  border-radius: 0.45rem 50% 50% 50%;
}

.process-card:nth-child(4)::after {
  border-radius: 50% 0.45rem 50% 0.45rem;
}

.work-grid {
  display: grid;
  gap: 1px;
  margin-top: 4rem;
  background: var(--line-dark);
  grid-template-columns: repeat(2, 1fr);
}

.work-card {
  min-height: 22rem;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  background: var(--paper);
  transition: background 220ms ease, transform 220ms ease;
}

.work-card:hover {
  position: relative;
  z-index: 1;
  background: #f8fbfc;
  transform: translateY(-3px);
}

.work-card-feature {
  grid-column: span 2;
}

.work-card-project {
  background: var(--ink-2);
  color: var(--text);
}

.work-card-project:hover {
  background: #10243b;
}

.work-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.work-type {
  color: #6e8797;
  font-size: 0.62rem;
}

.work-card-project .work-type,
.work-card-project .work-index {
  color: var(--mint);
}

.work-card h3 {
  max-width: 600px;
  margin: 4.6rem 0 0;
  color: var(--ink-3);
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.work-card:not(.work-card-feature) h3 {
  margin-top: 3rem;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
}

.work-card-project h3 {
  color: var(--text);
}

.work-summary {
  max-width: 680px;
  margin: 1.2rem 0 0;
  color: var(--muted-dark);
  line-height: 1.75;
}

.work-card-project .work-summary {
  color: var(--muted);
}

.work-details {
  margin-top: 1.4rem;
}

.work-details span {
  border-color: var(--line-dark);
  color: #60798b;
}

.work-card-project .work-details span {
  border-color: var(--line);
  color: #a7c4cc;
}

.work-note {
  max-width: 34rem;
  margin: 1.7rem 0 0;
  color: #768b9c;
  font-size: 0.7rem;
  line-height: 1.6;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.6rem;
  margin-top: 2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #54cdb9;
  font-size: 0.76rem;
  font-weight: 750;
}

.text-link:hover {
  color: #a6f4e5;
}

.cv-section {
  background: linear-gradient(120deg, var(--ink), #0b2236);
}

.cv-shell {
  display: grid;
  align-items: center;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cv-shell h2 {
  max-width: 680px;
}

.cv-shell p {
  max-width: 600px;
  margin-top: 1.25rem;
}

.cv-status {
  display: flex;
  min-width: 12rem;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(102, 226, 204, 0.3);
  border-radius: 0.75rem;
  color: var(--mint-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.status-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(102, 226, 204, 0.35);
  border-radius: 50%;
  color: var(--mint);
}

.contact-shell {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.65fr);
}

.contact-shell h2 {
  max-width: 680px;
}

.contact-lede {
  max-width: 590px;
  margin-top: 1.35rem;
}

.contact-details {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 0.9rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-dark);
}

.contact-details a {
  color: var(--ink-3);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.contact-details a:hover {
  color: #258c7c;
}

.contact-details a span {
  color: #258c7c;
  font-size: 0.8em;
}

.contact-details > span {
  margin-top: 0.5rem;
  color: var(--muted-dark);
  font-size: 0.78rem;
}

.article-page {
  min-height: calc(100svh - 4.5rem);
  background: var(--ink);
}

.article-shell {
  max-width: 980px;
}

.article-header {
  max-width: 860px;
  padding-block: 3rem 4rem;
}

.article-header h1 {
  max-width: 820px;
  margin: 1.6rem 0 0;
  color: var(--text);
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.article-dek {
  max-width: 680px;
  margin: 2rem 0 0;
  color: #b7c8d6;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 2rem;
  color: #7590a3;
  font-size: 0.72rem;
}

.article-meta a {
  color: var(--mint);
}

.article-layout {
  display: grid;
  gap: clamp(2rem, 7vw, 7rem);
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  grid-template-columns: 12rem minmax(0, 1fr);
}

.article-aside {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  position: sticky;
  top: 6rem;
  align-self: start;
}

.article-aside span {
  margin-bottom: 0.3rem;
  color: #5e7f94;
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.article-aside a {
  color: #9fb4c3;
  font-size: 0.74rem;
  line-height: 1.45;
}

.article-aside a:hover {
  color: var(--mint);
}

.article-content {
  max-width: 680px;
  padding-bottom: 2rem;
}

.article-content p {
  margin: 1.2rem 0 0;
  color: #a8bac9;
  font-size: 1.02rem;
  line-height: 1.85;
}

.article-content .article-lead {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.45;
}

.article-content h2 {
  margin: 4rem 0 0;
  color: var(--text);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  scroll-margin-top: 6rem;
}

.article-content blockquote {
  margin: 3rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 2px solid var(--mint);
  color: var(--mint-soft);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.45;
}

.article-link {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgba(102, 226, 204, 0.35);
  text-underline-offset: 0.25rem;
}

.article-link:hover {
  text-decoration-color: var(--mint);
}

.site-footer {
  padding-block: 1.3rem;
  background: #040c16;
  color: #71879a;
  font-size: 0.68rem;
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 260ms; }

@media (max-width: 900px) {
  .hero-shell,
  .section-intro,
  .section-heading,
  .cv-shell,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    gap: 4rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-console {
    max-width: 650px;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading > p {
    max-width: 650px;
  }

  .capability-board {
    grid-template-columns: 1fr;
  }

  .capability-tabs {
    display: flex;
    overflow-x: auto;
  }

  .capability-tab {
    min-width: 10rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .capability-tab.is-active {
    box-shadow: inset 0 -3px 0 var(--mint);
  }

  .capability-panel {
    min-height: auto;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .panel-note {
    display: none;
  }

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

  .process-card:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .process-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .cv-status {
    justify-self: start;
  }
}

@media (max-width: 650px) {
  .shell {
    width: min(calc(100% - 2rem), var(--shell));
  }

  .nav-shell {
    min-height: 4rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: 4rem;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    padding-inline: 1rem;
    border-bottom: 1px solid transparent;
    background: rgba(7, 17, 31, 0.97);
    overflow: hidden;
    transition: max-height 260ms ease, border-color 260ms ease;
  }

  .primary-navigation.is-open {
    max-height: 17rem;
    border-color: var(--line);
  }

  .primary-navigation a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-navigation a:last-child {
    border-bottom: 0;
  }

  .primary-navigation a::after {
    display: none;
  }

  .hero-shell {
    padding-block: 5rem 4rem;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 5.6rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-meta {
    display: grid;
    gap: 0.65rem;
  }

  .console-flow {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1fr 1fr;
  }

  .console-line {
    display: none;
  }

  .console-node {
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
  }

  .console-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding-block: 4.5rem;
  }

  .section-intro h2,
  .section-heading h2,
  .cv-shell h2,
  .contact-shell h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .stat-strip {
    display: grid;
    gap: 0;
    margin-top: 4rem;
    grid-template-columns: 1fr;
  }

  .stat,
  .stat + .stat {
    padding: 1.4rem 0;
    border-left: 0;
  }

  .stat + .stat {
    border-top: 1px solid var(--line-dark);
  }

  .capability-tabs {
    scrollbar-width: none;
  }

  .capability-tabs::-webkit-scrollbar {
    display: none;
  }

  .capability-tab {
    min-width: 8.5rem;
    padding: 1rem;
  }

  .capability-panel {
    display: block;
    padding: 1.4rem;
  }

  .panel-number {
    margin-bottom: 1.8rem;
  }

  .timeline {
    margin-top: 3.5rem;
  }

  .timeline::before {
    left: 0.55rem;
  }

  .timeline-item {
    gap: 1rem;
    padding-bottom: 2.7rem;
    grid-template-columns: 1.25rem minmax(0, 1fr);
  }

  .timeline-date {
    display: flex;
    gap: 0.35rem;
    padding-top: 0;
    text-align: left;
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-date b::before {
    content: "– ";
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-card {
    padding-left: 0;
    grid-column: 2;
    grid-row: 2;
  }

  .timeline-card h3 {
    margin-top: 0.35rem;
  }

  .process-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .process-card,
  .process-card:nth-child(3),
  .process-card:nth-child(4) {
    min-height: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .process-card:first-child {
    border-top: 0;
  }

  .process-card h3 {
    margin-top: 2.6rem;
  }

  .work-card,
  .work-card-feature {
    min-height: auto;
    grid-column: auto;
  }

  .work-card h3,
  .work-card:not(.work-card-feature) h3 {
    margin-top: 3.5rem;
  }

  .contact-details {
    padding-top: 1.5rem;
    padding-left: 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .article-header {
    padding-block: 1rem 3rem;
  }

  .article-header h1 {
    font-size: clamp(3.1rem, 15vw, 5.3rem);
  }

  .article-layout {
    display: block;
    padding-top: 2rem;
  }

  .article-aside {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    position: static;
    white-space: nowrap;
  }

  .article-aside span {
    display: none;
  }

  .article-aside a {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .reading-progress,
  .scroll-cue,
  .hero-console,
  .hero-actions,
  .site-footer {
    display: none !important;
  }

  body,
  .hero,
  .section-dark,
  .section-light,
  .work-card,
  .work-card-project {
    background: white !important;
    color: black !important;
  }

  .hero h1,
  .section h2,
  .timeline-card h3,
  .work-card h3,
  .work-card-project h3 {
    color: black !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
