:root {
  --shell-green: var(--green, var(--wl-green, #64ff9d));
  --shell-text: var(--text, var(--wl-text, #edf7f0));
  --shell-muted: var(--muted, var(--wl-muted, #91a699));
  --shell-line: var(--line, var(--wl-border-soft, rgba(255, 255, 255, 0.1)));
  --shell-panel: rgba(10, 18, 13, 0.82);
  --shell-mono: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
}

.site-header,
.site-footer {
  width: 100%;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--shell-line);
}

.wordmark {
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.site-subnav,
.site-utility-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--shell-line);
  border-radius: 999px;
  background: rgba(8, 15, 11, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.site-subnav a,
.site-utility-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--shell-muted);
  text-decoration: none;
  font: 0.74rem/1 var(--shell-mono);
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.site-subnav a:hover,
.site-subnav a:focus-visible,
.site-subnav a[aria-current="page"],
.site-utility-nav a:hover,
.site-utility-nav a:focus-visible,
.site-utility-nav a[aria-current="page"] {
  background: rgba(100, 255, 157, 0.09);
  color: var(--shell-green);
}

.site-utility-nav {
  border-color: rgba(100, 255, 157, 0.16);
}

.site-utility-nav .language-toggle {
  min-width: 38px;
  justify-content: center;
  padding-inline: 9px;
  border: 1px solid rgba(100, 255, 157, 0.28);
  color: var(--shell-green);
  font-weight: 800;
}

.site-footer {
  min-height: 84px;
  margin-top: 72px;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--shell-line);
  color: var(--shell-muted);
  font: 0.7rem/1.45 var(--shell-mono);
}

.site-footer > :last-child {
  justify-self: end;
  text-align: right;
}

.site-footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-footer__nav a {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--shell-muted);
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  background: rgba(100, 255, 157, 0.06);
  color: var(--shell-green);
}

.enterprise-card.is-clickable {
  cursor: pointer;
}

.content-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 0 40px;
}

.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.content-hero__copy {
  min-width: 0;
}

.content-hero__copy h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.062em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.content-page__lead {
  max-width: 800px;
  margin: 28px 0 0;
  color: #c4d1c8;
  font-size: clamp(1.04rem, 1.65vw, 1.28rem);
  line-height: 1.72;
}

.content-hero__visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 29, 23, 0.96), rgba(6, 11, 8, 0.96));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.content-hero__visual::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(100, 255, 157, 0.05);
  content: "";
  pointer-events: none;
}

.content-hero__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #08100c;
}

[data-page-kind="about"] .content-hero__visual {
  width: min(420px, 100%);
  justify-self: end;
}

[data-page-kind="about"] .content-hero__visual img,
[data-page-kind="cv"] .content-hero__visual img {
  aspect-ratio: 1;
  object-fit: cover;
}

.content-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 56px;
}

.content-stat-grid article {
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(14, 23, 18, 0.88), rgba(7, 12, 9, 0.88));
}

.content-stat-grid strong,
.content-stat-grid span {
  display: block;
}

.content-stat-grid strong {
  color: var(--shell-text);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
}

.content-stat-grid span {
  margin-top: 10px;
  color: var(--shell-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.content-split,
.ai-workflow,
.ai-guardrails {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 6vw, 84px);
  margin-top: 92px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-split h2,
.ai-workflow h2,
.ai-guardrails h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.content-split > div:first-child > p:not(.showcase-eyebrow) {
  color: #c5d2ca;
  font-size: 1rem;
  line-height: 1.78;
}

.content-principles {
  display: grid;
  gap: 12px;
}

.content-principles article,
.ai-workflow__grid article {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(9, 16, 12, 0.76);
}

.content-principles article > span,
.ai-workflow__grid article > span {
  color: var(--shell-green);
  font: 0.72rem/1 var(--shell-mono);
}

.content-principles h3,
.ai-workflow__grid h3 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
}

.content-principles p,
.ai-workflow__grid p {
  margin: 0;
  color: #afc1b5;
  line-height: 1.65;
}

.experience-timeline {
  display: grid;
  margin-top: 76px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.experience-role {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.experience-role__date {
  color: var(--shell-green);
  font: 0.78rem/1.4 var(--shell-mono);
}

.experience-role__company {
  margin: 0;
  color: #99b0a1;
  font: 0.75rem/1.4 var(--shell-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.experience-role h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  letter-spacing: -0.035em;
}

.experience-role > div:last-child > p:not(.experience-role__company) {
  max-width: 880px;
  margin: 0;
  color: #c1cec5;
  line-height: 1.7;
}

.content-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.content-chips span,
.content-project-card__stack {
  padding: 6px 8px;
  border: 1px solid rgba(110, 220, 255, 0.15);
  border-radius: 7px;
  background: rgba(110, 220, 255, 0.035);
  color: #a9cbd3;
  font: 0.68rem/1.2 var(--shell-mono);
}

.content-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 70px;
}

.content-project-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(14, 23, 18, 0.94), rgba(7, 12, 9, 0.94));
}

.content-project-card__image {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #080d0a;
}

.content-project-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  transition: transform 180ms ease;
}

.content-project-card:hover .content-project-card__image img {
  transform: scale(1.015);
}

.content-project-card > div {
  padding: 24px;
}

.content-project-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  letter-spacing: -0.04em;
}

.content-project-card h2 a {
  text-decoration: none;
}

.content-project-card h2 a:hover {
  color: var(--shell-green);
}

.content-project-card p:not(.showcase-eyebrow) {
  min-height: 5.1em;
  margin: 0 0 18px;
  color: #b8c8be;
  line-height: 1.65;
}

.content-project-card__stack {
  display: inline-block;
}

.stack-layers {
  display: grid;
  margin-top: 76px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stack-layer {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stack-layer__index {
  color: var(--shell-green);
  font: 0.75rem/1 var(--shell-mono);
}

.stack-layer h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.stack-layer p {
  max-width: 860px;
  color: #bccac1;
  line-height: 1.65;
}

.stack-layer__tech {
  color: #8edfb0 !important;
  font: 0.78rem/1.6 var(--shell-mono);
  overflow-wrap: anywhere;
}

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

.ai-guardrails {
  margin-top: 72px;
}

.ai-guardrails ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-guardrails li {
  position: relative;
  padding: 17px 18px 17px 46px;
  border: 1px solid rgba(100, 255, 157, 0.13);
  border-radius: 12px;
  background: rgba(100, 255, 157, 0.035);
  color: #c7d4cc;
}

.ai-guardrails li::before {
  position: absolute;
  left: 18px;
  color: var(--shell-green);
  font-family: var(--shell-mono);
  content: '✓';
}

.cv-download-panel {
  margin-top: 64px;
  padding: 28px;
  border: 1px solid rgba(100, 255, 157, 0.2);
  border-radius: 18px;
  background: rgba(100, 255, 157, 0.045);
}

.cv-download-panel p {
  margin: 0 0 18px;
  color: #c1cec6;
}

.page-primary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(100, 255, 157, 0.35);
  border-radius: 10px;
  background: rgba(100, 255, 157, 0.08);
  color: var(--shell-green);
  text-decoration: none;
  font: 0.78rem/1 var(--shell-mono);
}

.content-page__next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 82px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-page__next a {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--shell-text);
  text-decoration: none;
}

.content-page__next a:hover {
  border-color: rgba(100, 255, 157, 0.3);
  color: var(--shell-green);
}

@media (max-width: 1180px) {
  .site-header {
    padding: 14px 0;
    align-items: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .site-subnav,
  .site-utility-nav {
    max-width: 100%;
    overflow-x: auto;
  }

  .content-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-hero__visual,
  [data-page-kind="about"] .content-hero__visual {
    width: min(720px, 100%);
    justify-self: start;
  }

  [data-page-kind="about"] .content-hero__visual img {
    aspect-ratio: 16 / 10;
    object-position: center 25%;
  }

  .content-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    display: grid;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-footer__nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-footer > :last-child {
    justify-self: start;
    text-align: left;
  }

  .content-page {
    padding-top: 46px;
  }

  .content-split,
  .ai-workflow,
  .ai-guardrails {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }

  .content-project-grid,
  .ai-workflow__grid {
    grid-template-columns: 1fr;
  }

  .experience-role {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .site-subnav a,
  .site-utility-nav a {
    padding-inline: 9px;
    font-size: 0.68rem;
  }

  .content-hero__copy h1 {
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  .content-stat-grid {
    grid-template-columns: 1fr;
  }

  .stack-layer {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .content-page__next {
    grid-template-columns: 1fr;
  }
}
