:root {
  --bg: #2e3238;
  --bg-soft: #383d44;
  --surface: rgba(60, 66, 74, 0.92);
  --surface-strong: #434951;
  --surface-muted: #505660;
  --ink: #f4f6f8;
  --muted: #c1c8d2;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #39d0c3;
  --accent-strong: #20a99d;
  --accent-soft: rgba(57, 208, 195, 0.14);
  --success-soft: rgba(57, 208, 195, 0.15);
  --error-soft: rgba(195, 91, 102, 0.2);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.18);
  --radius: 28px;
  --radius-sm: 12px;
  --font-body: Calibri, Candara, "Segoe UI", Arial, sans-serif;
  --container: min(1240px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(57, 208, 195, 0.08) 0 34%, transparent 34% 100%),
    linear-gradient(180deg, #32373e 0%, var(--bg) 42%, #292d33 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(57, 208, 195, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

img {
  max-width: 100%;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.site-header {
  position: sticky;
  top: 1.15rem;
  z-index: 20;
  background: transparent;
  border: 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(65, 71, 79, 0.96);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #1f242a;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-soft);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 700;
}

.brand-copy span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.18rem;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.hero,
.page-hero {
  padding: 4.8rem 0 2.2rem;
}

.page-hero .narrow {
  max-width: 1200px;
  padding-left: 0.25rem;
}

.hero-centered .narrow {
  margin: 0 auto;
  max-width: 1120px;
  padding-left: 0;
  text-align: center;
}

.hero-centered h1,
.hero-centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.page-hero-project .container {
  width: min(1320px, calc(100vw - 2rem));
}

.project-hero-shell {
  padding-left: 0.5rem;
}

.hero-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 2rem;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.cta-card h2,
.prose h2,
.prose h3 {
  font-family: var(--font-body);
  letter-spacing: -0.03em;
}

.hero h1,
.page-hero h1 {
  max-width: 18ch;
  margin: 0.3rem 0 1rem;
  font-size: clamp(2.2rem, 3.1vw, 3.7rem);
  line-height: 1.02;
  font-weight: 600;
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.page-hero-project h1 {
  max-width: 15ch;
  font-size: clamp(2.45rem, 3.8vw, 4.35rem);
  line-height: 0.98;
}

.project-hero-title {
  white-space: normal;
}

.page-hero-project .lead {
  max-width: 52ch;
}

.page-hero-article .container {
  width: min(1380px, calc(100vw - 2rem));
}

.article-hero-shell,
.article-body-shell {
  padding-left: 0.5rem;
}

.article-hero-shell h1 {
  max-width: 24ch;
}

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

.article-shell {
  padding: 1.75rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(60, 66, 74, 0.88);
  box-shadow: var(--shadow);
}

.hero-copy,
.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-home-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 2.4rem;
  align-items: start;
}

.hero-media,
.hero-content {
  min-height: 480px;
}

.hero-photo-frame {
  position: relative;
  max-width: 520px;
  height: 850px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(57, 208, 195, 0.22);
  background:
    linear-gradient(180deg, rgba(57, 208, 195, 0.14), rgba(57, 208, 195, 0.08)),
    #2d4242;
  margin-right: auto;
}

.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 23, 28, 0.08), rgba(20, 23, 28, 0.18));
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: saturate(0.95) contrast(1.02);
}

.hero-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-photo-fallback span {
  font-size: 2rem;
  font-weight: 700;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.35rem;
  padding: 1.5rem 2rem 2rem 0.5rem;
}

.hero-name-card {
  max-width: 520px;
  padding: 2rem 2.2rem;
  border-radius: 38px 38px 38px 110px;
  background: rgba(58, 63, 71, 0.98);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.hero-name-card .eyebrow {
  margin-bottom: 0.6rem;
}

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

.hero-role {
  margin: 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 720px;
}

.hero-stat-card {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(68, 74, 82, 0.76);
  box-shadow: var(--shadow-soft);
}

.hero-stat-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.section-lead {
  max-width: 32rem;
  margin: 0;
  font-size: 1rem;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

.photo-mosaic-item {
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(63, 69, 77, 0.88);
  box-shadow: var(--shadow-soft);
}

.photo-mosaic-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
}

.hero-panel,
.info-panel,
.card,
.project-card,
.metric-card,
.stacked-card,
.timeline-item,
.form-card,
.writing-card,
.project-row,
.cta-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel,
.info-panel,
.form-card {
  padding: 1.5rem;
}

.hero-panel,
.info-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel::before,
.info-panel::before,
.card::before,
.project-card::before,
.metric-card::before,
.stacked-card::before,
.timeline-item::before,
.form-card::before,
.writing-card::before,
.project-row::before,
.cta-card::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(31, 78, 121, 0.18) 100%);
}

.signal-list,
.detail-list,
.footer-links,
.summary-list,
.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.signal-list li,
.detail-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.signal-list li:last-child,
.detail-list li:last-child {
  border-bottom: 0;
}

.summary-list {
  display: grid;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.summary-row strong {
  color: var(--accent-strong);
  font-weight: 700;
}

.signal-meta,
.meta-row,
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-note span,
.meta-row span,
.project-topline span,
.project-topline strong {
  padding: 0.1rem 0.28rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(31, 78, 121, 0.08);
  font-size: 0.7rem;
  line-height: 1.1;
  font-weight: 500;
  max-width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.button-row form {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #152228;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.button:hover {
  filter: brightness(0.97);
}

.button-block {
  width: 100%;
}

.button-small {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
}

.button-secondary {
  background: rgba(78, 84, 92, 0.88);
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover,
.button-ghost:hover {
  background: rgba(31, 78, 121, 0.1);
  color: var(--ink);
}

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

.text-link,
.detail-list a,
.footer-links a,
.writing-card a,
.project-card a,
.project-row a,
.prose a,
.timeline-item a {
  text-decoration-line: underline;
  text-decoration-color: rgba(57, 208, 195, 0.45);
  text-decoration-thickness: 1px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 600;
}

.section {
  padding: 2rem 0 4rem;
}

.muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.split {
  flex-direction: row;
  align-items: end;
  justify-content: space-between;
}

.pill-row,
.card-grid,
.metrics-grid {
  display: grid;
  gap: 1rem;
}

.pill-row {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pill {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(68, 74, 82, 0.72);
  text-align: center;
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
  line-height: 1.25;
}

.card-grid,
.metrics-grid,
.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card,
.project-card,
.metric-card,
.writing-card,
.stacked-card {
  position: relative;
  padding: 1.35rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 0;
  width: 100%;
  align-items: flex-start;
  align-content: flex-start;
}

.card h3,
.project-card h3,
.project-row h2,
.writing-card h2,
.writing-card h3,
.stacked-card h3,
.timeline-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.project-row h2,
.writing-card h2 {
  font-size: clamp(1.55rem, 2.15vw, 2.15rem);
  margin-bottom: 0.65rem;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0.1rem;
  width: 100%;
}

.metric-card strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 600;
  color: var(--accent-strong);
}

.project-impact {
  color: var(--accent-strong);
  font-weight: 600;
}

.foundational-intro {
  max-width: 74ch;
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.foundational-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.foundational-card {
  min-height: 100%;
}

.foundational-tagline {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.foundational-preview {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.project-supporting,
.timeline-summary {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.stack-list li {
  padding: 0.16rem 0.34rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1.2;
  color: #d7dde6;
}

.current-focus-panel {
  align-self: start;
  margin-top: -1.15rem;
}

.current-focus-list li {
  padding: 0.34rem 0.62rem;
  font-size: 0.95rem;
  line-height: 1.25;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding: 1.45rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.timeline-company {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.writing-list,
.list-stack {
  display: grid;
  gap: 1rem;
}

.resume-access-layout {
  align-items: start;
}

.compact-card-grid {
  grid-template-columns: 1fr;
}

.compact-card-grid .stacked-card {
  padding: 1.3rem;
}

.mini-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.mini-metric {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-metric strong {
  display: block;
  color: var(--accent-strong);
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 700;
}

.mini-metric span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.resume-access-layout .info-panel {
  padding: 1.85rem;
  background:
    linear-gradient(180deg, rgba(57, 208, 195, 0.05), rgba(60, 66, 74, 0.96) 18%),
    var(--surface);
}

.mini-focus-grid {
  display: grid;
  gap: 0.8rem;
}

.mini-focus-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  line-height: 1.38;
}

.writing-card.large,
.timeline-item.large {
  padding: 1.55rem;
}

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.8fr);
  gap: 1.6rem;
  padding: 1.5rem;
}

.project-row .meta-row {
  gap: 0.38rem;
  margin-bottom: 0.45rem;
}

.project-row .meta-row span {
  font-size: 0.68rem;
  padding: 0.08rem 0.24rem;
  letter-spacing: 0.01em;
}

.project-row-side strong {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.detail-grid {
  align-items: start;
}

.sticky {
  position: sticky;
  top: 100px;
}

.prose {
  color: var(--ink);
}

.prose h2,
.prose h3 {
  margin-top: 1.8rem;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.prose h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.1;
}

.prose h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.12;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose pre code {
  white-space: inherit;
}

.cta-section {
  padding-bottom: 5rem;
}

.cta-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(57, 208, 195, 0.08), rgba(67, 73, 81, 0.96) 40%),
    var(--surface-strong);
}

.form-card {
  position: relative;
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.88rem 1rem;
  font: inherit;
  color: var(--ink);
  background: rgba(37, 42, 48, 0.95);
}

input:focus,
select:focus,
textarea:focus,
.button:focus,
.nav-toggle:focus {
  outline: 3px solid rgba(31, 78, 121, 0.24);
  outline-offset: 2px;
}

.notice {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.notice.success {
  background: var(--success-soft);
}

.notice.error {
  background: var(--error-soft);
}

.resume-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #20242a;
  box-shadow: var(--shadow);
}

.resume-frame iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
}

.site-footer {
  padding: 2rem 0 3.5rem;
  border-top: 1px solid var(--line);
  background: rgba(20, 23, 28, 0.42);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

@media (max-width: 900px) {
  .hero-home-shell,
  .hero-grid,
  .two-column,
  .project-row,
  .footer-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 0.5rem 0 0;
  }

  .hero-media,
  .hero-content,
  .hero-photo-frame {
    min-height: auto;
  }

  .hero-quick-grid {
    grid-template-columns: 1fr;
  }

  .sticky {
    position: static;
  }

  .split {
    align-items: start;
  }

  .page-hero-project .container {
    width: var(--container);
  }

  .project-hero-shell,
  .article-hero-shell,
  .article-body-shell {
    padding-left: 0;
  }

  .page-hero .narrow {
    padding-left: 0;
  }

  .current-focus-panel {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: 88px 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(57, 62, 70, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .page-hero {
    padding-top: 4rem;
  }

  .button-row,
  .hero-note,
  .meta-row {
    flex-direction: column;
    align-items: start;
  }

  .resume-frame iframe {
    min-height: 620px;
  }

  .mini-metric-grid,
  .photo-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-hero h1,
  .page-hero-project h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .mini-metric-grid,
  .photo-mosaic {
    grid-template-columns: 1fr;
  }

  .article-shell {
    padding: 1.3rem 1.15rem;
  }
}
