/* ==========================================================================
   Ravi Roshan — portfolio v2
   Editorial engineering dossier. No framework, no build step.
   ========================================================================== */

:root {
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 52px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 78px;
  --accent: #c9f45a;
  --accent-ink: #0a0e04;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090c;
  --bg-alt: #0b0f13;
  --panel: #0f141a;
  --panel-2: #141a21;
  --text: #f1f4e8;
  --muted: #939d9c;
  --line: rgba(231, 240, 220, 0.13);
  --line-strong: rgba(231, 240, 220, 0.28);
  --accent-text: #d6ff70;
  --accent-soft: rgba(201, 244, 90, 0.1);
  --blue: #7ea4ff;
  --orange: #ff8966;
  --grid: rgba(235, 245, 220, 0.045);
  --nav-bg: rgba(7, 9, 12, 0.76);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --focus: #d6ff70;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f0e7;
  --bg-alt: #e9e7dc;
  --panel: #fbfaf4;
  --panel-2: #ffffff;
  --text: #10140e;
  --muted: #5b6359;
  --line: rgba(16, 20, 14, 0.15);
  --line-strong: rgba(16, 20, 14, 0.3);
  --accent-text: #3c6200;
  --accent-soft: rgba(122, 158, 39, 0.13);
  --blue: #234fc0;
  --orange: #b94a2e;
  --grid: rgba(16, 20, 14, 0.055);
  --nav-bg: rgba(242, 240, 231, 0.84);
  --shadow: 0 28px 80px rgba(25, 30, 18, 0.14);
  --focus: #274d00;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

body.nav-open,
body.dialog-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

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

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.mono-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: signal 2.4s ease-in-out infinite;
}

@keyframes signal {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  border-color: var(--line);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1400px, calc(100% - (var(--gutter) * 2)));
  min-height: var(--header-h);
  margin-inline: auto;
  gap: 24px;
}

.brand {
  position: relative;
  z-index: 96;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
}

.brand-mark span {
  opacity: 0.55;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.primary-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.primary-nav a span {
  color: var(--accent-text);
  font-size: 0.52rem;
  opacity: 0.65;
}

.primary-nav a:hover,
.primary-nav a[aria-current="location"] {
  color: var(--text);
}

.primary-nav a[aria-current="location"] span {
  opacity: 1;
}

.header-actions {
  position: relative;
  z-index: 96;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--panel);
  transform: rotate(10deg);
}

.theme-icon {
  width: 16px;
  height: 16px;
}

.theme-icon--moon {
  display: none;
}

[data-theme="light"] .theme-icon--sun {
  display: none;
}

[data-theme="light"] .theme-icon--moon {
  display: block;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.header-cta svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.header-cta:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.header-cta:hover svg {
  transform: translate(2px, -2px);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 22px;
}

body.nav-open .menu-toggle span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

.scroll-meter {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  overflow: hidden;
}

.scroll-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.nav-scrim {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(36px, 6vw, 78px));
  padding-bottom: 30px;
  overflow: clip;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: clamp(52px, 7vw, 96px) clamp(52px, 7vw, 96px);
  mask-image: radial-gradient(ellipse at 68% 42%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  top: 6%;
  right: -18%;
  width: min(900px, 70vw);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit span {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.hero-orbit span:nth-child(1) {
  inset: 12%;
}

.hero-orbit span:nth-child(2) {
  inset: 27%;
  border-color: var(--accent-soft);
}

.hero-orbit span:nth-child(3) {
  top: 50%;
  right: 50%;
  width: 10px;
  height: 10px;
  border: 0;
  background: var(--accent);
  box-shadow: 0 0 28px 8px var(--accent-soft);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.hero-coords span {
  color: var(--line-strong);
  padding-inline: 4px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.68fr);
  align-items: end;
  gap: clamp(34px, 5vw, 80px);
  flex: 1;
  padding-block: clamp(42px, 6vw, 76px);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.hero h1 {
  max-width: 11.5ch;
  font-size: clamp(3.3rem, 8.1vw, 8.4rem);
  font-weight: 530;
  letter-spacing: -0.062em;
  line-height: 0.89;
  text-wrap: balance;
}

.hero-accent {
  position: relative;
  display: inline-block;
  color: var(--accent-text);
  white-space: nowrap;
}

.hero-accent::after {
  position: absolute;
  right: 0;
  bottom: 0.02em;
  left: 0;
  height: 0.075em;
  background: var(--accent);
  content: "";
  transform: skewX(-16deg);
}

.hero-lede {
  max-width: 55ch;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.75;
}

.hero-lede strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.button:hover {
  background: transparent;
  color: var(--accent-text);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--line-strong);
}

.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.button--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: none;
}

.button--full {
  width: 100%;
}

.button--dark {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.hero-role {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 18px;
  max-width: 600px;
  margin-top: clamp(32px, 4.5vw, 54px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-role-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-role-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-role-copy strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-role-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-role-copy em {
  color: var(--accent-text);
  font-style: normal;
}

.hero-role-no {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-align: right;
}

.hero-visual {
  align-self: end;
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

.portrait-shell {
  padding: 9px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
  transition: transform 0.5s var(--ease);
}

.portrait-shell:hover {
  transform: rotate(0deg) translateY(-4px);
}

.portrait-head,
.portrait-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.portrait-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.portrait-foot {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.portrait-foot span:last-child {
  color: var(--accent-text);
}

.portrait-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-top: 8px;
  overflow: hidden;
  background: var(--panel-2);
}

.portrait-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 9, 12, 0.5));
  content: "";
  pointer-events: none;
}

.portrait-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.82) contrast(1.04);
  transition: filter 0.4s ease, transform 0.7s var(--ease);
}

.portrait-shell:hover .portrait-media img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.025);
}

.portrait-cross {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.portrait-cross::before,
.portrait-cross::after {
  position: absolute;
  background: currentColor;
  content: "";
}

.portrait-cross--tl {
  top: 12px;
  left: 12px;
  border-top: 1px solid;
  border-left: 1px solid;
  color: rgba(255, 255, 255, 0.65);
}

.portrait-cross--br {
  right: 12px;
  bottom: 12px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  color: rgba(255, 255, 255, 0.65);
}

.portrait-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
}

.portrait-status div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.portrait-status small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.49rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portrait-status strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.portrait-plus {
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

.status-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.status-bars i {
  display: block;
  width: 3px;
  background: var(--accent);
  animation: bars 1.6s ease-in-out infinite;
}

.status-bars i:nth-child(1) { height: 30%; animation-delay: 0s; }
.status-bars i:nth-child(2) { height: 62%; animation-delay: 0.12s; }
.status-bars i:nth-child(3) { height: 88%; animation-delay: 0.24s; }
.status-bars i:nth-child(4) { height: 52%; animation-delay: 0.36s; }
.status-bars i:nth-child(5) { height: 74%; animation-delay: 0.48s; }

@keyframes bars {
  0%, 100% { opacity: 0.4; transform: scaleY(0.72); }
  50% { opacity: 1; transform: scaleY(1); }
}

.visual-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-left: 18px;
  border-left: 1px solid var(--accent);
}

.visual-note > span {
  color: transparent;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
  -webkit-text-stroke: 1px var(--line-strong);
}

.visual-note p {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  line-height: 1.65;
  text-transform: uppercase;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stats {
  display: flex;
  align-items: stretch;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: clamp(22px, 3.4vw, 44px);
  margin-right: clamp(22px, 3.4vw, 44px);
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero-stats sup {
  color: var(--accent-text);
  font-size: 0.55em;
  vertical-align: super;
}

.hero-stats span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.scroll-link svg {
  width: 15px;
  height: 15px;
  color: var(--accent-text);
}

.scroll-link:hover {
  color: var(--text);
}

.signal-strip {
  overflow: hidden;
  border-block: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.signal-track {
  display: flex;
  width: max-content;
  align-items: center;
  padding-block: 10px;
  animation: ticker 38s linear infinite;
}

.signal-track span,
.signal-track i {
  padding-inline: clamp(16px, 2.2vw, 30px);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
}

.signal-track i {
  padding: 0;
  opacity: 0.5;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Shared section language
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(78px, 10vw, 138px);
  scroll-margin-top: 72px;
}

.section--line {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.section-head {
  max-width: 960px;
  margin-bottom: clamp(42px, 6vw, 70px);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-index span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 21px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.55rem;
  letter-spacing: 0.03em;
}

.section-title {
  max-width: 16ch;
  font-size: clamp(2.35rem, 5.2vw, 5rem);
  font-weight: 530;
  letter-spacing: -0.052em;
  line-height: 0.97;
  text-wrap: balance;
}

.section-title span {
  color: var(--accent-text);
}

.section-intro {
  max-width: 50ch;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.75;
}

.section-head--split {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: clamp(30px, 6vw, 90px);
}

.section-head--split .section-title {
  max-width: 13ch;
}

.section-head--split .section-intro {
  margin: 0 0 4px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  font-size: 0.93rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   01 About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  align-items: start;
  gap: clamp(42px, 7vw, 104px);
}

.about-story {
  max-width: 760px;
}

.about-story > p {
  max-width: 66ch;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.8;
}

.about-story .about-lead {
  margin-bottom: 26px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.42;
}

.about-story strong {
  color: var(--text);
  font-weight: 600;
}

.about-quote {
  position: relative;
  margin-top: 38px;
  padding: 6px 0 6px 26px;
  border-left: 2px solid var(--accent);
}

.about-quote p {
  max-width: 40ch;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.about-quote em {
  color: var(--accent-text);
  font-style: normal;
}

.profile-card {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 8px 8px 0 var(--accent-soft);
}

.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
}

.profile-facts {
  margin: 0;
}

.profile-facts div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.profile-facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.profile-facts dd span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.profile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.profile-link:hover {
  background: var(--accent-soft);
}

.profile-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.profile-link:hover svg {
  transform: translate(2px, -2px);
}

.operating-model {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(52px, 7vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.operating-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.operating-model ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.operating-model li {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.operating-model li > span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.55rem;
}

.operating-model strong {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.operating-model p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   02 Capabilities
   -------------------------------------------------------------------------- */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.capability {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.capability::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.capability:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
  transform: translateY(-3px);
}

.capability:hover::before {
  transform: scaleX(1);
}

.capability-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.capability-no {
  color: transparent;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  -webkit-text-stroke: 1px var(--line-strong);
}

.capability-tag {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.51rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.capability h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 550;
}

.capability > p {
  max-width: 48ch;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.capability .tag-list {
  margin-top: auto;
}

.certification {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 14px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
}

.certification-title h3 {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.015em;
}

.status-pill {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.certification > p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   03 Selected work
   -------------------------------------------------------------------------- */

.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

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

.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.filter span {
  color: var(--accent-text);
  font-size: 0.48rem;
}

.filter:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.filter.is-active span {
  color: var(--accent-ink);
  opacity: 0.65;
}

.work-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-item {
  border-bottom: 1px solid var(--line);
}

.work-row {
  display: grid;
  width: 100%;
  grid-template-columns: 54px minmax(0, 1.5fr) minmax(190px, 0.55fr) 46px;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  padding: 27px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background-color 0.25s ease, padding 0.3s var(--ease);
}

.work-row:hover {
  padding-inline: 22px;
  background: var(--panel);
}

.work-index {
  align-self: start;
  padding-top: 4px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.work-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.work-kicker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.51rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.work-main strong {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 530;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.work-sub {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.work-open {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--accent-text);
  font-size: 0.9rem;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}

.work-row:hover .work-open {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(45deg);
}

.work-note {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Case study dialogs
   -------------------------------------------------------------------------- */

.case-dialog {
  width: min(940px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100svh - 40px);
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--text);
}

.case-dialog:focus,
.case-dialog:focus-visible {
  outline: none;
}

.case-dialog::backdrop {
  background: rgba(3, 5, 7, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dialog-panel {
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
}

.dialog-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-alt) 92%, transparent);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.dialog-close {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.dialog-close span {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent-text);
  font-size: 0.9rem;
  vertical-align: -1px;
}

.dialog-close:hover {
  color: var(--text);
}

.dialog-intro {
  padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 48px) 30px;
  border-bottom: 1px solid var(--line);
}

.dialog-intro h3 {
  margin: 9px 0 14px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 530;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.dialog-intro > p:last-child {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.dialog-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.dialog-facts div {
  padding: 17px clamp(24px, 5vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dialog-facts div:nth-child(even) {
  border-right: 0;
}

.dialog-facts div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.dialog-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dialog-facts dd {
  font-size: 0.85rem;
  line-height: 1.5;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 52px);
  padding: 32px clamp(24px, 5vw, 48px) 36px;
}

.dialog-body h4 {
  margin-bottom: 12px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dialog-body p,
.dialog-body li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.dialog-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dialog-body li {
  position: relative;
  padding-left: 16px;
}

.dialog-body li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.dialog-outcome {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  margin: 0 clamp(24px, 5vw, 48px) 34px;
  padding: 20px 22px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
}

.dialog-outcome span {
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.dialog-outcome p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 450;
  letter-spacing: -0.015em;
  line-height: 1.55;
}

.dialog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px clamp(24px, 5vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dialog-foot a {
  color: var(--accent-text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* --------------------------------------------------------------------------
   04 Experience
   -------------------------------------------------------------------------- */

.career-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: clamp(36px, 6vw, 80px);
}

.career {
  border-top: 1px solid var(--line);
}

.career-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}

.career-marker {
  position: relative;
  padding-top: 4px;
}

.career-item:not(.career-item--current) .career-marker::before {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  content: "";
}

.career-marker > span {
  display: inline-block;
  padding: 5px 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.49rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.career-main {
  min-width: 0;
}

.career-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.career-head h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 550;
  letter-spacing: -0.025em;
}

.career-company {
  margin-top: 5px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: uppercase;
}

.career-company span {
  display: inline;
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.53rem;
  letter-spacing: 0.04em;
}

.career-company span::before {
  margin-right: 5px;
  content: "/";
  opacity: 0.6;
}

.career-date {
  flex: none;
  padding-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.career-summary {
  max-width: 62ch;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.7;
}

.career-list {
  display: flex;
  max-width: 66ch;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.career-list li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.65;
}

.career-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.tag-list--career {
  margin-top: 18px;
}

.career-aside {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.credentials-card {
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.credentials-card > h3 {
  margin: 7px 0 18px;
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.025em;
}

.credentials-list {
  border-top: 1px solid var(--line);
}

.credentials-list li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.credentials-list li > span {
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-transform: uppercase;
}

.credentials-list p {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.credentials-card .button {
  margin-top: 20px;
}

.career-note {
  padding: 24px;
  background: var(--accent);
  color: var(--accent-ink);
}

.career-note > span {
  display: block;
  height: 20px;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.8;
  opacity: 0.45;
}

.career-note p {
  max-width: 26ch;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   05 Contact
   -------------------------------------------------------------------------- */

.section--contact {
  overflow: hidden;
  border-top: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.section--contact::before {
  position: absolute;
  top: -24%;
  right: -8%;
  width: min(700px, 70vw);
  aspect-ratio: 1;
  border: 1px solid rgba(10, 14, 4, 0.17);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.section--contact .container {
  position: relative;
  z-index: 1;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.section--contact .section-index {
  color: rgba(10, 14, 4, 0.62);
}

.section--contact .section-index span {
  background: var(--accent-ink);
  color: var(--accent);
}

.contact-copy h2 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 6.2vw, 6.2rem);
  font-weight: 530;
  letter-spacing: -0.06em;
  line-height: 0.91;
  text-wrap: balance;
}

.contact-copy h2 span {
  display: inline;
  padding: 0 0.08em;
  background: var(--accent-ink);
  color: var(--accent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.contact-lede {
  max-width: 48ch;
  margin-top: 26px;
  color: rgba(10, 14, 4, 0.72);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(10, 14, 4, 0.45);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.3;
  transition: border-color 0.2s ease;
}

.contact-email svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

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

.contact-email:hover svg {
  transform: translate(3px, -3px);
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 14, 4, 0.22);
}

.contact-meta dt {
  margin-bottom: 5px;
  color: rgba(10, 14, 4, 0.55);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-meta dd {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.5;
}

.contact-meta a {
  border-bottom: 1px solid rgba(10, 14, 4, 0.35);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: clamp(24px, 3.3vw, 34px);
  border: 1px solid rgba(10, 14, 4, 0.5);
  background: var(--bg);
  color: var(--text);
  box-shadow: 10px 10px 0 rgba(10, 14, 4, 0.28);
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.form-head p {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--panel);
}

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

.contact-form .button {
  width: 100%;
  margin-top: 3px;
}

.form-note {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  line-height: 1.65;
}

.form-status {
  color: var(--accent-text);
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 42px 0 24px;
  border-top: 1px solid var(--line);
  background: #07090c;
  color: #f1f4e8;
}

.site-footer .container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 28px;
  padding-bottom: 30px;
}

.brand--footer .brand-mark {
  border-color: var(--accent);
}

.footer-main > p {
  max-width: 38ch;
  color: #939d9c;
  font-family: var(--font-display);
  font-size: 1.07rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c9f45a;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-top-link span {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.footer-top-link:hover span {
  transform: translateY(-3px);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 30px;
  padding-top: 17px;
  border-top: 1px solid rgba(231, 240, 220, 0.13);
  color: #939d9c;
  font-family: var(--font-mono);
  font-size: 0.51rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Reveal and motion preferences
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(30px, 6vw, 70px) var(--gutter);
  overflow: hidden;
}

.error-page::before,
.error-page::after {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.error-page::before {
  top: -28%;
  right: -16%;
  width: min(900px, 80vw);
  aspect-ratio: 1;
}

.error-page::after {
  right: -2%;
  bottom: -38%;
  width: min(560px, 60vw);
  aspect-ratio: 1;
  border-color: var(--accent-soft);
}

.error-inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
}

.error-brand {
  margin-bottom: clamp(56px, 12vh, 110px);
}

.error-code {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.error-page h1 {
  max-width: 9ch;
  margin-top: 20px;
  font-size: clamp(3.4rem, 9vw, 8rem);
  font-weight: 530;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.error-page h1 span {
  color: var(--accent-text);
}

.error-copy {
  max-width: 48ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.error-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(56px, 10vh, 100px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .error-actions {
    flex-direction: column;
  }

  .error-actions .button {
    width: 100%;
  }

  .error-meta {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .primary-nav {
    gap: 18px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.68fr);
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 8.4vw, 7.5rem);
  }

  .career-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 42px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 70px;
  }

  .header-inner {
    width: calc(100% - (var(--gutter) * 2));
  }

  .primary-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    display: flex;
    height: 100svh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: calc(var(--header-h) + 22px) var(--gutter) 32px;
    overflow-y: auto;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  body.nav-open .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .primary-nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 5.5vw, 3rem);
    font-weight: 530;
    letter-spacing: -0.045em;
    line-height: 1.1;
    text-transform: none;
  }

  .primary-nav a span {
    width: 26px;
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.05em;
  }

  .primary-nav a:hover {
    color: var(--accent-text);
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 28px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 42px;
    padding-block: 42px;
  }

  .hero h1 {
    max-width: 13ch;
    font-size: clamp(3.6rem, 10vw, 6.8rem);
  }

  .hero-lede {
    max-width: 60ch;
  }

  .hero-visual {
    width: min(470px, 100%);
    max-width: none;
    justify-self: start;
  }

  .hero-bottom {
    margin-top: 46px;
  }

  .hero-stats div {
    padding-right: 28px;
    margin-right: 28px;
  }

  .hero-orbit {
    top: 18%;
    right: -42%;
    width: 100vw;
  }

  .section-head--split {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-head--split .section-intro {
    max-width: 55ch;
    padding-left: 0;
    border-left: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .profile-card {
    position: static;
    max-width: 620px;
  }

  .operating-model {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .operating-model ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .career-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .career-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: stretch;
    gap: 14px;
  }

  .career-note {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 46px;
  }

  .contact-form {
    width: min(600px, 100%);
  }

  .contact-copy h2 {
    max-width: 13ch;
  }

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

  .footer-top-link {
    justify-self: start;
  }

  .footer-main > p {
    justify-self: end;
    text-align: right;
  }

  .dialog-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .section {
    padding-block: clamp(66px, 12vw, 96px);
  }

  .section-title {
    font-size: clamp(2.1rem, 7.6vw, 3.6rem);
  }

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

  .capability {
    min-height: 0;
  }

  .certification {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .certification > p {
    grid-column: 1 / -1;
  }

  .work-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .work-row {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 14px;
    padding: 22px 6px;
  }

  .work-row:hover {
    padding-inline: 14px;
  }

  .work-meta {
    display: none;
  }

  .work-open {
    width: 36px;
    height: 36px;
  }

  .dialog-facts {
    grid-template-columns: 1fr;
  }

  .dialog-facts div,
  .dialog-facts div:nth-child(even),
  .dialog-facts div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dialog-facts div:last-child {
    border-bottom: 0;
  }

  .career-item {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .career-head {
    flex-direction: column;
    gap: 8px;
  }

  .career-date {
    padding-top: 0;
  }

  .career-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }

  .brand-text {
    font-size: 0.78rem;
  }

  .brand-text small {
    font-size: 0.43rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-actions {
    gap: 9px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 35px;
    height: 35px;
  }

  .menu-toggle span {
    left: 9px;
    width: 15px;
  }

  .menu-toggle span:first-child {
    top: 14px;
  }

  .menu-toggle span:last-child {
    top: 20px;
  }

  body.nav-open .menu-toggle span:first-child,
  body.nav-open .menu-toggle span:last-child {
    top: 17px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 34px);
  }

  .hero-topline {
    font-size: 0.49rem;
    letter-spacing: 0.06em;
  }

  .hero-coords {
    display: none;
  }

  .hero-layout {
    gap: 36px;
    padding-block: 32px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(3rem, 14.5vw, 5rem);
    line-height: 0.92;
  }

  .hero-accent {
    white-space: normal;
  }

  .hero-lede {
    margin-top: 24px;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-role {
    grid-template-columns: 1fr 28px;
    gap: 10px;
    margin-top: 30px;
  }

  .hero-role-label {
    grid-column: 1 / -1;
  }

  .hero-role-copy strong {
    font-size: 0.84rem;
  }

  .hero-role-copy span {
    font-size: 0.72rem;
  }

  .portrait-shell {
    transform: none;
  }

  .visual-note {
    margin-top: 18px;
  }

  .hero-bottom {
    margin-top: 38px;
    padding-top: 18px;
  }

  .hero-stats {
    width: 100%;
    justify-content: space-between;
  }

  .hero-stats div {
    padding-right: 14px;
    margin-right: 14px;
  }

  .hero-stats strong {
    font-size: 1.45rem;
  }

  .hero-stats span {
    font-size: 0.44rem;
    letter-spacing: 0.03em;
  }

  .scroll-link {
    display: none;
  }

  .signal-track span,
  .signal-track i {
    padding-inline: 15px;
    font-size: 0.5rem;
  }

  .section-index {
    margin-bottom: 18px;
  }

  .section-title {
    font-size: clamp(2rem, 9.5vw, 3.2rem);
  }

  .section-intro {
    margin-top: 20px;
    font-size: 0.91rem;
  }

  .about-story .about-lead {
    font-size: 1.22rem;
    line-height: 1.46;
  }

  .about-story > p {
    font-size: 0.92rem;
  }

  .about-quote {
    margin-top: 30px;
    padding-left: 18px;
  }

  .profile-facts div {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 13px 15px;
  }

  .profile-facts dd {
    font-size: 0.83rem;
  }

  .operating-model ol {
    grid-template-columns: 1fr;
  }

  .capability {
    padding: 22px;
  }

  .capability-top {
    margin-bottom: 24px;
  }

  .certification {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .certification .status-pill {
    justify-self: start;
  }

  .certification > p {
    grid-column: auto;
  }

  .filter {
    padding: 7px 9px;
    font-size: 0.49rem;
  }

  .work-row {
    grid-template-columns: 26px minmax(0, 1fr) 32px;
    gap: 9px;
    padding-block: 20px;
  }

  .work-main strong {
    font-size: 1.65rem;
  }

  .work-sub {
    font-size: 0.74rem;
  }

  .work-kicker {
    font-size: 0.45rem;
  }

  .work-open {
    width: 31px;
    height: 31px;
    font-size: 0.76rem;
  }

  .case-dialog {
    width: calc(100% - 16px);
    max-height: calc(100svh - 16px);
  }

  .dialog-panel {
    max-height: calc(100svh - 16px);
  }

  .dialog-top {
    padding: 12px 18px;
  }

  .dialog-intro {
    padding: 24px 20px;
  }

  .dialog-intro h3 {
    font-size: 2.7rem;
  }

  .dialog-intro > p:last-child {
    font-size: 0.9rem;
  }

  .dialog-facts div {
    padding: 14px 20px;
  }

  .dialog-body {
    gap: 24px;
    padding: 26px 20px;
  }

  .dialog-outcome {
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 0 20px 26px;
    padding: 16px;
  }

  .dialog-foot {
    padding: 16px 20px;
  }

  .career-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .career-item:not(.career-item--current) .career-marker {
    display: none;
  }

  .career-head h3 {
    font-size: 1.2rem;
  }

  .career-company {
    font-size: 0.54rem;
  }

  .career-company span {
    display: block;
    margin: 3px 0 0;
    font-size: 0.49rem;
  }

  .career-company span::before {
    display: none;
  }

  .credentials-card,
  .career-note {
    padding: 20px;
  }

  .contact-copy h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .contact-lede {
    font-size: 0.93rem;
  }

  .contact-email {
    font-size: 1.25rem;
  }

  .contact-meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .contact-form {
    gap: 15px;
    padding: 20px;
    box-shadow: 6px 6px 0 rgba(10, 14, 4, 0.26);
  }

  .field input,
  .field textarea {
    font-size: 0.86rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-main > p {
    justify-self: start;
    text-align: left;
  }

  .footer-base {
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 360px) {
  .brand-text {
    display: none;
  }

  .hero-stats span {
    letter-spacing: 0;
  }

  .work-open {
    display: none;
  }

  .work-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }
}

@media print {
  .site-header,
  .signal-strip,
  .hero-actions,
  .hero-visual,
  .scroll-link,
  .work-toolbar,
  .contact-form,
  .footer-top-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding-block: 30px;
  }

  .section--contact {
    background: #fff;
    color: #000;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}


