:root {
      --bg: #08111f;
      --bg-soft: #0c1728;
      --surface: rgba(15, 29, 49, 0.82);
      --surface-strong: #101f34;
      --text: #f4f8fc;
      --muted: #a9b8ca;
      --subtle: #71839a;
      --line: rgba(157, 178, 204, 0.17);
      --accent: #48d8c8;
      --accent-strong: #7de9dc;
      --accent-soft: rgba(72, 216, 200, 0.12);
      --blue: #73a8ff;
      --blue-soft: rgba(115, 168, 255, 0.12);
      --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
      --header-bg: rgba(8, 17, 31, 0.76);
      --header-bg-scrolled: rgba(8, 17, 31, 0.94);
      --wash-blue: rgba(60, 111, 183, 0.22);
      --wash-accent: rgba(72, 216, 200, 0.1);
      --soft-fill: rgba(255, 255, 255, 0.035);
      --soft-fill-hover: rgba(255, 255, 255, 0.06);
      --alt-bg: rgba(255, 255, 255, 0.017);
      --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
      --card-number: rgba(255, 255, 255, 0.025);
      --tag-text: #c2cede;
      --on-accent: #041311;
      --glow: rgba(72, 216, 200, 0.12);
      --radius-lg: 1.35rem;
      --radius-md: 0.9rem;
      --max-width: 1140px;
    }

    :root[data-theme="light"] {
      --bg: #f5f7fa;
      --bg-soft: #ffffff;
      --surface: rgba(255, 255, 255, 0.82);
      --surface-strong: #ffffff;
      --text: #132235;
      --muted: #506176;
      --subtle: #68798c;
      --line: rgba(24, 49, 78, 0.14);
      --accent: #087f76;
      --accent-strong: #056c65;
      --accent-soft: rgba(8, 127, 118, 0.1);
      --blue: #326bc4;
      --blue-soft: rgba(50, 107, 196, 0.1);
      --shadow: 0 20px 60px rgba(30, 52, 77, 0.12);
      --header-bg: rgba(245, 247, 250, 0.78);
      --header-bg-scrolled: rgba(245, 247, 250, 0.95);
      --wash-blue: rgba(50, 107, 196, 0.11);
      --wash-accent: rgba(8, 127, 118, 0.08);
      --soft-fill: rgba(255, 255, 255, 0.58);
      --soft-fill-hover: rgba(255, 255, 255, 0.92);
      --alt-bg: rgba(24, 49, 78, 0.025);
      --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(246, 249, 252, 0.72));
      --card-number: rgba(19, 34, 53, 0.035);
      --tag-text: #43566c;
      --on-accent: #ffffff;
      --glow: rgba(8, 127, 118, 0.1);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scrollbar-color: var(--subtle) var(--bg);
    }

    body {
      margin: 0;
      min-width: 320px;
      color: var(--text);
      background:
        radial-gradient(circle at 80% -10%, var(--wash-blue), transparent 34rem),
        radial-gradient(circle at -10% 24%, var(--wash-accent), transparent 30rem),
        var(--bg);
      font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 16px;
      line-height: 1.68;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      transition: color 240ms ease, background-color 240ms ease;
    }

    h1,
    h2,
    h3,
    .metric-value,
    .brand {
      font-family: "Manrope", "Inter", ui-sans-serif, sans-serif;
      text-wrap: balance;
    }

    p {
      text-wrap: pretty;
    }

    a {
      color: inherit;
    }

    a:focus-visible,
    button:focus-visible {
      outline: 3px solid var(--accent);
      outline-offset: 4px;
    }

    .skip-link {
      position: fixed;
      top: 0.75rem;
      left: 0.75rem;
      z-index: 100;
      padding: 0.7rem 1rem;
      border-radius: 0.6rem;
      color: var(--on-accent);
      background: var(--accent);
      font-weight: 800;
      transform: translateY(-150%);
      transition: transform 160ms ease;
    }

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

    .scroll-progress {
      position: fixed;
      inset: 0 0 auto;
      z-index: 60;
      height: 3px;
      pointer-events: none;
    }

    .scroll-progress span {
      display: block;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, var(--accent), var(--blue));
      transform: scaleX(0);
      transform-origin: left center;
      will-change: transform;
    }

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

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

    .site-header.scrolled {
      border-color: var(--line);
      background: var(--header-bg-scrolled);
    }

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

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      color: var(--text);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 800;
      letter-spacing: -0.01em;
      white-space: nowrap;
    }

    .brand-mark {
      width: 2.35rem;
      height: 2.35rem;
      display: grid;
      place-items: center;
      border: 1px solid rgba(72, 216, 200, 0.45);
      border-radius: 0.7rem;
      color: var(--accent-strong);
      background: var(--accent-soft);
      font-size: 0.78rem;
      letter-spacing: 0.06em;
    }

    .nav-links,
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 1.25rem;
    }

    .nav-links a {
      position: relative;
      color: var(--muted);
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 650;
      transition: color 160ms ease;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: -0.55rem;
      left: 0;
      height: 2px;
      border-radius: 99px;
      background: var(--accent);
      transform: scaleX(0);
      transition: transform 180ms ease;
    }

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

    .nav-links a[aria-current="location"]::after {
      transform: scaleX(1);
    }

    .language-switcher {
      display: inline-flex;
      padding: 0.2rem;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--soft-fill);
    }

    .language-switcher a {
      min-width: 2.2rem;
      padding: 0.35rem 0.58rem;
      border: 0;
      border-radius: 999px;
      color: var(--subtle);
      background: transparent;
      font: inherit;
      font-size: 0.72rem;
      font-weight: 800;
      cursor: pointer;
    }

    .language-switcher a[aria-current="page"] {
      color: var(--on-accent);
      background: var(--accent);
    }

    .theme-toggle {
      position: relative;
      width: 2.7rem;
      height: 2.7rem;
      flex: 0 0 auto;
      display: grid;
      place-items: center;
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 50%;
      color: var(--text);
      background: var(--soft-fill);
      cursor: pointer;
      overflow: hidden;
      transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
    }

    .theme-toggle:hover {
      color: var(--accent-strong);
      border-color: color-mix(in srgb, var(--accent) 45%, transparent);
      background: var(--accent-soft);
      transform: rotate(8deg);
    }

    .theme-toggle svg {
      position: absolute;
      width: 1.15rem;
      height: 1.15rem;
      transition: opacity 180ms ease, transform 240ms ease;
    }

    .theme-icon-moon,
    :root[data-theme="light"] .theme-icon-sun {
      opacity: 0;
      transform: rotate(-70deg) scale(0.65);
    }

    :root[data-theme="light"] .theme-icon-moon {
      opacity: 1;
      transform: rotate(0) scale(1);
    }

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

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      min-height: 2.85rem;
      padding: 0.72rem 1rem;
      border: 1px solid var(--line);
      border-radius: 0.75rem;
      color: var(--text);
      background: var(--soft-fill);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 800;
      transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
    }

    .button:hover {
      transform: translateY(-2px);
      border-color: rgba(72, 216, 200, 0.46);
      background: var(--accent-soft);
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    }

    .button.primary {
      border-color: var(--accent);
      color: var(--on-accent);
      background: var(--accent);
    }

    .button.primary:hover {
      background: var(--accent-strong);
    }

    .button svg,
    .text-link svg {
      width: 1rem;
      height: 1rem;
      flex: 0 0 auto;
    }

    main {
      overflow: clip;
    }

    .hero {
      position: relative;
      padding: 6.5rem 0 4.25rem;
    }

    .hero::before {
      content: "";
      position: absolute;
      width: 34rem;
      height: 34rem;
      top: -15rem;
      right: -12rem;
      border: 1px solid var(--blue-soft);
      border-radius: 50%;
      box-shadow:
        0 0 0 5rem rgba(115, 168, 255, 0.025),
        0 0 0 10rem rgba(72, 216, 200, 0.018);
      pointer-events: none;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.45fr);
      align-items: end;
      gap: clamp(2rem, 5vw, 4rem);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      margin: 0 0 1.3rem;
      color: var(--accent-strong);
      font-size: 0.75rem;
      font-weight: 800;
      letter-spacing: 0.13em;
      text-transform: uppercase;
    }

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

    h1,
    h2,
    h3,
    p {
      margin-top: 0;
    }

    h1 {
      max-width: 820px;
      margin-bottom: 1.6rem;
      font-size: clamp(2.9rem, 5.6vw, 5.25rem);
      font-weight: 700;
      line-height: 1.02;
      letter-spacing: -0.052em;
    }

    .hero-highlight {
      color: transparent;
      background: linear-gradient(110deg, var(--accent-strong), var(--blue));
      background-clip: text;
      -webkit-background-clip: text;
    }

    .hero-copy {
      max-width: 720px;
      margin-bottom: 2.2rem;
      color: var(--muted);
      font-size: clamp(1rem, 1.7vw, 1.16rem);
      line-height: 1.72;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
    }

    .availability {
      align-self: end;
      padding: 1.3rem;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--card-gradient), var(--bg-soft);
      box-shadow: var(--shadow);
    }

    .status {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 0.75rem;
      color: var(--accent-strong);
      font-size: 0.75rem;
      font-weight: 850;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .status-dot {
      width: 0.62rem;
      height: 0.62rem;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 0.35rem var(--accent-soft);
    }

    .availability strong {
      display: block;
      margin-bottom: 0.25rem;
      font-size: 1.05rem;
    }

    .availability p {
      margin-bottom: 0;
      color: var(--muted);
      font-size: 0.88rem;
    }

    .metrics {
      padding-bottom: 6rem;
    }

    .metric-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      border-left: 1px solid var(--line);
    }

    .metric {
      min-width: 0;
      min-height: 10rem;
      padding: 1.8rem 1.6rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .metric-value {
      display: block;
      margin-bottom: 0.3rem;
      color: var(--text);
      font-size: clamp(2rem, 5vw, 3.3rem);
      font-weight: 850;
      line-height: 1;
      letter-spacing: -0.055em;
    }

    .metric-label {
      color: var(--muted);
      font-size: 0.85rem;
    }

    .section {
      padding: 6rem 0;
      scroll-margin-top: 5rem;
    }

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

    .section-heading {
      display: grid;
      grid-template-columns: 0.8fr 1.2fr;
      gap: 3rem;
      margin-bottom: 3rem;
    }

    .section-kicker {
      margin-bottom: 0.8rem;
      color: var(--accent-strong);
      font-size: 0.74rem;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    h2 {
      margin-bottom: 0;
      font-size: clamp(1.9rem, 3.6vw, 3.15rem);
      font-weight: 700;
      line-height: 1.12;
      letter-spacing: -0.04em;
    }

    .section-intro {
      max-width: 650px;
      align-self: end;
      margin-bottom: 0.2rem;
      color: var(--muted);
      font-size: 1.02rem;
    }

    .case-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }

    .case-card {
      position: relative;
      min-height: 25rem;
      padding: 1.8rem;
      display: flex;
      flex-direction: column;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: var(--card-gradient), var(--bg-soft);
      overflow: hidden;
      transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    .case-card:hover {
      transform: translateY(-5px);
      border-color: color-mix(in srgb, var(--accent) 38%, transparent);
      box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
    }

    .case-card::after {
      content: attr(data-index);
      position: absolute;
      right: -0.2rem;
      bottom: -3.6rem;
      color: var(--card-number);
      font-size: 12rem;
      font-weight: 900;
      line-height: 1;
      pointer-events: none;
    }

    .case-meta {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 3rem;
      color: var(--subtle);
      font-size: 0.75rem;
      font-weight: 750;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .case-card h3 {
      max-width: 450px;
      margin-bottom: 1rem;
      font-size: clamp(1.35rem, 2.5vw, 1.85rem);
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -0.035em;
    }

    .case-card p {
      max-width: 600px;
      margin-bottom: 1.5rem;
      color: var(--muted);
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      margin-top: auto;
      position: relative;
      z-index: 1;
    }

    .tag {
      padding: 0.4rem 0.65rem;
      border: 1px solid var(--line);
      border-radius: 999px;
      color: var(--tag-text);
      background: var(--soft-fill);
      font-size: 0.72rem;
      font-weight: 700;
    }

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

    .role {
      display: grid;
      grid-template-columns: 0.52fr 0.9fr 1.58fr;
      gap: 2rem;
      padding: 2.2rem 0;
      border-bottom: 1px solid var(--line);
    }

    .role-period,
    .role-location {
      color: var(--subtle);
      font-size: 0.82rem;
      font-weight: 700;
    }

    .role h3 {
      margin-bottom: 0.3rem;
      font-size: 1.15rem;
      letter-spacing: -0.02em;
    }

    .role-company {
      margin-bottom: 0.5rem;
      color: var(--accent-strong);
      font-size: 0.9rem;
      font-weight: 750;
    }

    .role-description {
      margin-bottom: 0;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .role-details {
      grid-column: 1 / -1;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .role-details summary {
      cursor: pointer;
      color: var(--accent-strong);
      font-weight: 700;
      padding: 0.5rem 0;
    }

    .role-details summary:focus-visible {
      outline: 2px solid var(--accent-strong);
      outline-offset: 4px;
      border-radius: 4px;
    }

    .role-details ul {
      margin: 1rem 0 0;
      padding-left: 1.3rem;
      columns: 2 24rem;
      column-gap: 2.5rem;
    }

    .role-details li {
      margin-bottom: 0.8rem;
      break-inside: avoid;
    }

    .capability-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

    .capability {
      min-height: 15rem;
      padding: 1.6rem;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--surface);
      transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    .capability:hover {
      transform: translateY(-4px);
      border-color: color-mix(in srgb, var(--accent) 34%, transparent);
      box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
    }

    .capability-number {
      display: block;
      margin-bottom: 2rem;
      color: var(--accent);
      font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
      font-size: 0.78rem;
    }

    .capability h3 {
      margin-bottom: 0.75rem;
      font-size: 1.08rem;
    }

    .capability p {
      margin-bottom: 0;
      color: var(--muted);
      font-size: 0.88rem;
    }

    .contact-panel {
      position: relative;
      padding: clamp(2rem, 6vw, 4.5rem);
      border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
      border-radius: var(--radius-lg);
      background:
        radial-gradient(circle at 86% 15%, var(--blue-soft), transparent 24rem),
        linear-gradient(130deg, var(--accent-soft), var(--soft-fill));
      overflow: hidden;
    }

    .contact-panel h2 {
      max-width: 800px;
      margin-bottom: 1.25rem;
    }

    .contact-panel p {
      max-width: 680px;
      margin-bottom: 2rem;
      color: var(--muted);
      font-size: 1.02rem;
    }

    .contact-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
    }

    .site-footer {
      padding: 2.2rem 0;
      border-top: 1px solid var(--line);
    }

    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      color: var(--subtle);
      font-size: 0.8rem;
    }

    .footer-links {
      display: flex;
      gap: 1rem;
    }

    .footer-links a {
      color: var(--muted);
      text-decoration: none;
    }

    .footer-links a:hover {
      color: var(--accent-strong);
    }

    .card-glow {
      --pointer-x: 50%;
      --pointer-y: 50%;
      position: relative;
      isolation: isolate;
    }

    .card-glow::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      background: radial-gradient(22rem circle at var(--pointer-x) var(--pointer-y), var(--glow), transparent 62%);
      opacity: 0;
      pointer-events: none;
      transition: opacity 220ms ease;
    }

    .card-glow:hover::before {
      opacity: 1;
    }

    .card-glow > * {
      position: relative;
      z-index: 2;
    }

    .case-card::after {
      z-index: 1;
    }

    .js .reveal {
      opacity: 0;
      translate: 0 1.25rem;
      transition:
        opacity 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        translate 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
    }

    .js .reveal.is-visible {
      opacity: 1;
      translate: 0;
    }

    @media (max-width: 960px) {
      .nav-links {
        display: none;
      }

      .hero-grid,
      .section-heading {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .availability {
        max-width: 360px;
      }

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

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

      .role {
        grid-template-columns: 0.6fr 1.1fr 1.5fr;
      }
    }

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

      .hero-grid > *,
      .case-grid > *,
      .capability-grid > *,
      .role > * {
        min-width: 0;
      }

      .hero-grid,
      .section-heading,
      .contact-panel {
        text-align: center;
      }

      .hero-copy,
      .section-intro,
      .contact-panel h2,
      .contact-panel p {
        margin-inline: auto;
      }

      .availability {
        width: min(100%, 360px);
        justify-self: center;
      }

      .status,
      .contact-links {
        justify-content: center;
      }

      .metric {
        text-align: center;
      }

      .contact-links .button {
        max-width: 100%;
        overflow-wrap: anywhere;
      }

      .role-details {
        order: 4;
      }

      .site-header .button {
        display: none;
      }

      .nav-actions {
        gap: 0.5rem;
      }

      .nav {
        gap: 0.75rem;
      }

      .hero {
        padding-top: 5.5rem;
      }

      .eyebrow {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        line-height: 1.65;
      }

      h1 {
        font-size: clamp(2.65rem, 12.5vw, 4rem);
        line-height: 1.04;
      }

      .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 23rem;
        margin-inline: auto;
      }

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

      .metrics {
        padding-bottom: 3rem;
      }

      .metric {
        min-height: 8.5rem;
        padding: 1.25rem 1rem;
      }

      .metric-value {
        font-size: 2.25rem;
      }

      .section {
        padding: 4.5rem 0;
      }

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

      .case-card {
        min-height: 22rem;
        padding: 1.4rem;
      }

      .role {
        grid-template-columns: 1fr;
        gap: 0.65rem;
      }

      .role-period {
        order: 2;
      }

      .role-main {
        order: 1;
      }

      .role-description {
        order: 3;
      }

      .footer-inner {
        align-items: center;
        text-align: center;
        flex-direction: column;
      }

      .footer-links {
        justify-content: center;
        flex-wrap: wrap;
      }
    }

    @media (max-width: 480px) {
      .brand > span:last-child {
        display: none;
      }

      .nav {
        min-height: 4.4rem;
      }
    }

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

      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }
    }
