:root {
  --ink: #0c1222;
  --deep: #0c1222;
  --slate: #1a2438;
  --muted: #5c677a;
  --line: rgba(12, 18, 34, 0.1);
  --surface: #eef2f6;
  --panel: #ffffff;
  --panel-hover: #f8fafb;
  --white: #ffffff;
  --accent: #0d8f7b;
  --accent-dark: #0a6f60;
  --signal: #e85d04;
  --glow: rgba(13, 143, 123, 0.18);
  --nav-bg: rgba(238, 242, 246, 0.88);
  --lang-bg: rgba(255, 255, 255, 0.7);
  --shadow: rgba(12, 18, 34, 0.06);
  --hero-base: linear-gradient(165deg, #e8edf3 0%, #f5f7fa 45%, #e6ecef 100%);
  --cta-base: linear-gradient(180deg, var(--surface), #e4eaef);
  --page-hero-base: linear-gradient(180deg, #e8edf3, var(--surface));
  --resume-hero-base: linear-gradient(165deg, #e8edf3 0%, #f5f7fa 50%, #e6ecef 100%);
  --noise-opacity: 0.35;
  --font-display: "Syne", sans-serif;
  --font-brand: "Lexend", sans-serif;
  --font-body: "Figtree", sans-serif;
  --radius: 4px;
  --max: 1120px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #e8eef8;
  --deep: #070b12;
  --slate: #c5cede;
  --muted: #939cb0;
  --line: rgba(232, 238, 248, 0.12);
  --surface: #0a0f18;
  --panel: #121a28;
  --panel-hover: #182234;
  --accent: #2ec4ae;
  --accent-dark: #25a894;
  --glow: rgba(46, 196, 174, 0.22);
  --nav-bg: rgba(10, 15, 24, 0.9);
  --lang-bg: rgba(255, 255, 255, 0.06);
  --shadow: rgba(0, 0, 0, 0.35);
  --hero-base: linear-gradient(165deg, #0a101c 0%, #0f1624 45%, #0c1420 100%);
  --cta-base: linear-gradient(180deg, var(--surface), #0d1420);
  --page-hero-base: linear-gradient(180deg, #0c1420, var(--surface));
  --resume-hero-base: linear-gradient(165deg, #0a101c 0%, #0f1624 50%, #0c1420 100%);
  --noise-opacity: 0.22;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* Noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.brand-lockup {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.12em;
}

.nav-brand .brand-name,
.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 0.78em;
  height: 0.78em;
  margin-top: 0.06em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: top;
  object-fit: contain;
}

.hero-brand .brand-lockup {
  align-items: flex-start;
}

.hero-brand .brand-mark {
  width: 0.38em;
  height: 0.38em;
  margin-top: 0.14em;
  margin-left: 0.04em;
}

.site-footer .brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.14em;
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.site-footer .brand .brand-mark {
  width: 0.85em;
  height: 0.85em;
  margin-top: 0.05em;
  filter: invert(1);
}

.nav-brand .brand-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--deep);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
}

html[data-theme="dark"] .nav-cta {
  background: var(--accent);
  color: var(--deep) !important;
}

html[data-theme="dark"] .nav-cta:hover {
  background: var(--accent-dark);
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--lang-bg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--lang-bg);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: none;
}

html[data-theme-pref="system"] .theme-toggle .icon-system,
html[data-theme-pref="light"] .theme-toggle .icon-light,
html[data-theme-pref="dark"] .theme-toggle .icon-dark,
html:not([data-theme-pref]) .theme-toggle .icon-system {
  display: block;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--muted) !important;
}

.lang-switch a.is-active {
  background: var(--deep);
  color: var(--white) !important;
}

html[data-theme="dark"] .lang-switch a.is-active {
  background: var(--accent);
  color: var(--deep) !important;
}

.lang-switch a:not(.is-active):hover {
  color: var(--ink) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 10px;
  transition: 0.2s;
}

.nav-toggle span { top: 19px; }
.nav-toggle span::before { content: ""; top: -6px; }
.nav-toggle span::after { content: ""; top: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-dark {
  background: var(--deep);
  color: var(--white);
}

.btn-dark:hover { background: var(--slate); }

html[data-theme="dark"] .btn-dark {
  background: var(--panel);
  color: var(--ink);
  border: 1.5px solid var(--line);
}

html[data-theme="dark"] .btn-dark:hover {
  background: var(--panel-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--deep);
  color: var(--white);
}

html[data-theme="dark"] .btn-ghost:hover {
  background: var(--ink);
  color: var(--deep);
}

.btn-light {
  background: var(--white);
  color: var(--deep);
}

.btn-light:hover { background: #e8edf3; }

/* Layout helpers */
.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

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

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink);
  max-width: 18ch;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 48ch;
  font-weight: 400;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 120px 0 72px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, var(--glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(232, 93, 4, 0.12), transparent 50%),
    var(--hero-base);
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 40%, rgba(13, 143, 123, 0.08) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(12, 18, 34, 0.03) 48px,
      rgba(12, 18, 34, 0.03) 49px
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  padding-bottom: 24px;
}

.hero-brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(3.8rem, 11vw, 8rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-studio {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 28ch;
  margin-bottom: 16px;
  color: var(--slate);
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.proof-item span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Marquee */
.marquee {
  background: var(--deep);
  overflow: hidden;
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  gap: 0;
}

.marquee-track span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 28px;
  white-space: nowrap;
}

.marquee-track .dot { color: var(--accent); padding: 0 4px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}

.service {
  background: var(--panel);
  padding: 36px 32px;
  transition: background 0.25s;
}

.service:hover { background: var(--panel-hover); }

.service-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.service p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36ch;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.service-tags span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--surface);
  padding: 5px 10px;
  border-radius: 2px;
}

html[data-theme="dark"] .service-tags span {
  background: rgba(255, 255, 255, 0.05);
}

/* Work preview */
.work-list {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.work-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.work-row:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px var(--shadow);
}

.work-row h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.work-row p { color: var(--muted); font-size: 0.95rem; }

.work-meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-arrow {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.work-row:hover .work-arrow { transform: translateX(4px); }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.process-step {
  padding: 8px 0;
}

.process-step .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Credibility */
.cred {
  background: var(--deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cred::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(13, 143, 123, 0.35), transparent 65%);
  pointer-events: none;
}

.cred-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.cred .section-title { color: var(--white); max-width: 16ch; }

.cred .section-lead { color: rgba(255, 255, 255, 0.65); }

.cred-points {
  display: grid;
  gap: 16px;
}

.cred-points li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
}

.cred-points li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
}

/* Offer strip */
.offer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.offer-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.offer-item p { color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta-band {
  padding: clamp(80px, 12vw, 140px) 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, var(--glow), transparent 60%),
    var(--cta-base);
  text-align: center;
}

.cta-band .section-title {
  max-width: 18ch;
  margin-inline: auto;
}

.cta-band .section-lead {
  margin-inline: auto;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cta-note {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Portfolio page */
.page-hero {
  padding: 140px 0 64px;
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, var(--glow), transparent 55%),
    var(--page-hero-base);
}

.page-hero .section-title { max-width: 16ch; }

.project-stack {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}

.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 380px;
}

.project-media {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(145deg, #0c1222 0%, #1a3a45 55%, #0d8f7b 140%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.project:nth-child(2) .project-media {
  background:
    linear-gradient(145deg, #1a2e14 0%, #3d5a2a 50%, #8fbc4a 130%);
}

.project-media .label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
}

.project-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-body .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.project-body h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.project-body p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1rem;
}

.project-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-results span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--surface);
  padding: 6px 12px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer */
.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.55);
  padding: 36px clamp(20px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
}

.site-footer a:hover { color: var(--white); }

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand,
.hero-studio,
.hero-headline,
.hero-sub,
.hero-actions,
.hero-proof {
  animation: rise 0.8s ease both;
}

.hero-studio { animation-delay: 0.08s; }
.hero-headline { animation-delay: 0.16s; }
.hero-sub { animation-delay: 0.26s; }
.hero-actions { animation-delay: 0.36s; }
.hero-proof { animation-delay: 0.46s; }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .services-grid,
  .process-grid,
  .offer-grid,
  .cred-inner,
  .project {
    grid-template-columns: 1fr;
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work-arrow { display: none; }

  .hero-brand { font-size: clamp(3rem, 14vw, 4.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Resume page ─────────────────────────────── */
.resume-hero {
  padding: 120px 0 64px;
  background:
    radial-gradient(ellipse 70% 55% at 90% 10%, var(--glow), transparent 55%),
    radial-gradient(ellipse 40% 40% at 5% 85%, rgba(232, 93, 4, 0.1), transparent 50%),
    var(--resume-hero-base);
}

.resume-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.resume-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  color: var(--ink);
  margin-bottom: 18px;
}

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

.resume-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 28px;
}

.resume-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.profile-frame {
  position: relative;
  width: min(260px, 70vw);
  height: min(260px, 70vw);
}

.profile-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(13, 143, 123, 0.35);
  border-radius: 50%;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--panel);
  box-shadow: 0 18px 50px var(--shadow);
  background: #d8dee6;
}

.resume-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

.resume-stats .stat {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px 12px;
  text-align: center;
}

.resume-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.resume-stats .stat strong span { color: var(--accent); }

.resume-stats .stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.skill-pill {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.about-copy strong { color: var(--ink); font-weight: 700; }

.timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.exp-item {
  position: relative;
  margin-bottom: 48px;
}

.exp-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--accent);
}

.exp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.exp-role {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.exp-period {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(13, 143, 123, 0.1);
  padding: 4px 10px;
}

.exp-company {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
}

.exp-company a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.exp-company a:hover { text-decoration: underline; }

.exp-bullets li {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 8px 0 8px 18px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.exp-bullets li:last-child { border-bottom: none; }

.exp-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  top: 9px;
}

.exp-bullets a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.exp-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
}

.kpi .k {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.kpi .k span { color: var(--accent); }

.kpi .v {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.cases-panel {
  background: var(--deep);
  color: var(--white);
}

.cases-panel .eyebrow { color: #5fd4c3; }
.cases-panel .eyebrow::before { background: #5fd4c3; }
.cases-panel .section-title { color: var(--white); }

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}

.case-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 26px;
  transition: background 0.25s, transform 0.25s;
}

.case-card:first-child { grid-column: 1 / -1; }

.case-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.case-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5fd4c3;
  border: 1px solid rgba(95, 212, 195, 0.35);
  padding: 4px 10px;
  margin-bottom: 14px;
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.case-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}

.case-card p {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 16px;
}

.case-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-results span {
  font-size: 0.76rem;
  font-weight: 600;
  color: #5fd4c3;
  background: rgba(95, 212, 195, 0.1);
  padding: 5px 10px;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.edu-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s;
}

.edu-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #5fd4c3);
}

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

.edu-card .deg {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
  line-height: 1.3;
}

.edu-card .inst {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.edu-card .yr {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.edu-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.edu-card a:hover { text-decoration: underline; }

.credly-badge {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

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

.contact-blurb {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

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

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.contact-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-link .lbl {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-link .val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 900px) {
  .resume-hero-grid,
  .about-grid,
  .cases-grid,
  .edu-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .case-card:first-child { grid-column: 1; }
  .skills-grid { grid-template-columns: 1fr; }
}

/* Brand marks on dark theme surfaces */
html[data-theme="dark"] .nav-brand .brand-mark,
html[data-theme="dark"] .hero-brand .brand-mark {
  filter: invert(1);
}

html[data-theme="dark"] .project-results span {
  background: rgba(255, 255, 255, 0.05);
}
