﻿:root {
  --bg: #f4f6f8;
  --bg-elevated: #ffffff;
  --bg-muted: #e8edf2;
  --text: #0f1720;
  --text-muted: #4a5a6a;
  --line: #d3dce6;

  --brand: #0f3d63;
  --brand-strong: #0a2d4a;
  --accent: #188a7a;
  --accent-soft: #e7f7f4;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 8px 24px rgba(14, 37, 54, 0.08);
  --shadow-md: 0 20px 50px rgba(14, 37, 54, 0.12);

  --container: 1280px;
  --section-pad: 120px;
  --subsection-gap: 64px;
  --card-pad: 24px;

  --hero-kpi-bg: #ecf2f9;
  --hero-kpi-border: rgba(15, 23, 42, 0.12);

  --font-heading: "Sora", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0f141a;
  --bg-elevated: #171d24;
  --bg-muted: #1f2730;
  --text: #ecf2f7;
  --text-muted: #9bb0c3;
  --line: #2c3946;

  --brand: #77bee7;
  --brand-strong: #9ad4f5;
  --accent: #44b8a8;
  --accent-soft: rgba(68, 184, 168, 0.14);

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 24px 54px rgba(0, 0, 0, 0.35);

  --hero-kpi-bg: #0f172a;
  --hero-kpi-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

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

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

ul {
  padding-left: 20px;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

input,
textarea,
button,
a {
  outline: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 65%, white);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -40px;
  z-index: 1000;
  background: var(--brand);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 12px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 95;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: width 0.08s linear;
}

.container {
  width: min(100% - clamp(28px, 4.2vw, 72px), var(--container));
  margin-inline: auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      color-mix(in srgb, var(--line) 35%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--line) 35%, transparent) 1px,
      transparent 1px
    );
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 80%);
  opacity: 0.45;
}

.bg-orb {
  position: absolute;
  width: 460px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(74px);
  opacity: 0.2;
}

.orb-1 {
  top: -160px;
  right: -80px;
  background: color-mix(in srgb, var(--brand) 66%, transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.section {
  padding-block: var(--section-pad);
}

#resume {
  scroll-margin-top: 54px;
}

.hero {
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(340px, 0.92fr);
  gap: 40px;
  align-items: start;
}

.eyebrow {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--accent-soft);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

h1,
.section-title,
.skill-card h3,
.project-card h3,
.timeline-main h3,
.process-card h3,
.contact-form h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.9rem);
  line-height: 1.1;
  max-width: 14ch;
}

.headline-accent {
  color: var(--brand);
  position: relative;
}

.headline-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 10px;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  z-index: -1;
  border-radius: 20px;
}

.hero-lead {
  margin-top: 22px;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.06rem;
}

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

.hero-social-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-social-links a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  color: var(--text);
}

.hero-social-links svg {
  width: 15px;
  height: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--accent) 78%, black));
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--bg-elevated);
}

.quick-contact {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-contact a {
  color: var(--text);
}

.hero-proof-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-proof-chips span {
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-panel {
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  backdrop-filter: blur(10px);
  padding: var(--card-pad);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.panel-title {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-kpi {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.hero-kpi li {
  border: 1px solid var(--hero-kpi-border);
  border-radius: var(--radius-md);
  background: var(--hero-kpi-bg);
  padding: 18px;
}

.kpi-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.kpi-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.availability {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  padding: 8px 12px;
  background: var(--accent-soft);
  font-size: 0.9rem;
}

.hero-case-rail {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.hero-rail-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-rail-item {
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.hero-rail-item strong {
  font-family: var(--font-heading);
  font-size: 0.96rem;
}

.hero-rail-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-rail-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-elevated));
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.trust-strip {
  padding-top: 0;
}

.trust-items {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--card-pad);
  background: color-mix(in srgb, var(--bg-muted) 40%, var(--bg-elevated));
}

.trust-item h2 {
  font-size: 1rem;
  font-family: var(--font-heading);
}

.trust-item p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.recruiter-lane {
  padding-top: var(--subsection-gap);
}

.lane-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--brand) 14%, var(--bg-elevated)),
    color-mix(in srgb, var(--accent) 10%, var(--bg-elevated))
  );
  box-shadow: var(--shadow-sm);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.lane-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
}

.lane-card p {
  margin-top: 8px;
  color: var(--text-muted);
  max-width: 64ch;
}

.lane-links {
  display: grid;
  gap: 10px;
  align-content: center;
}

.lane-links a {
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  padding: 11px 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.lane-links a:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  background: color-mix(in srgb, var(--brand) 11%, var(--bg-elevated));
}

.section-label {
  display: inline-block;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.16;
  max-width: 18ch;
}

.section-subtitle {
  margin-top: 10px;
  color: var(--text-muted);
  max-width: 70ch;
}

.section-head {
  margin-bottom: var(--subsection-gap);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.about-content p {
  color: var(--text-muted);
}

.about-content p + p {
  margin-top: 12px;
}

.about-list {
  margin-top: 14px;
  color: var(--text);
}

.about-list li + li {
  margin-top: 8px;
}

.resume-snapshot {
  padding-top: var(--subsection-gap);
}

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

.snapshot-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.snapshot-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0.92;
}

.snapshot-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 36%, var(--line));
}

.snapshot-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.snapshot-card p {
  margin-top: 8px;
  color: var(--text-muted);
}

.snapshot-card ul {
  margin-top: 10px;
}

.snapshot-card li + li {
  margin-top: 6px;
}

.snapshot-card-wide {
  grid-column: span 2;
}

.snapshot-highlights {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
}

.snapshot-highlights h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.snapshot-highlights-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.snapshot-highlights-grid strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
}

.snapshot-highlights-grid ul {
  margin-top: 6px;
  color: var(--text-muted);
}

.snapshot-highlights-grid li + li {
  margin-top: 5px;
}

.junior-ready-section {
  padding-top: var(--subsection-gap);
}

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

.jr-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
}

.jr-card h3 {
  font-family: var(--font-heading);
  font-size: 1.04rem;
}

.jr-card p {
  margin-top: 8px;
  color: var(--text-muted);
}

.github-proof {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--brand) 8%, var(--bg-elevated));
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
}

.github-proof h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.github-proof p {
  margin-top: 8px;
  color: var(--text-muted);
}

.github-proof a {
  display: inline-flex;
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.github-proof a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 62%, var(--line));
  background: color-mix(in srgb, var(--brand) 12%, var(--bg-elevated));
}

.recruiter-faq {
  padding-top: var(--subsection-gap);
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
}

.faq-item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.faq-item p {
  margin-top: 8px;
  color: var(--text-muted);
}

.jd-fit-section {
  padding-top: var(--subsection-gap);
}

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

.fit-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
  display: grid;
  gap: 10px;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.fit-row::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.fit-row h3 {
  font-family: var(--font-heading);
  font-size: 1.03rem;
}

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

.fit-row a {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.fit-row a:hover {
  border-color: color-mix(in srgb, var(--brand) 60%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-elevated));
  transform: translateY(-1px);
}

.trust-item,
.lane-card,
.snapshot-card,
.fit-row,
.skill-card,
.project-card,
.timeline-item,
.process-card,
.project-panel,
.contact-form,
.jr-card,
.faq-item,
.github-proof,
.snapshot-highlights {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --mx: 50%;
  --my: 50%;
}

.trust-item::after,
.lane-card::after,
.snapshot-card::after,
.fit-row::after,
.skill-card::after,
.project-card::after,
.timeline-item::after,
.process-card::after,
.project-panel::after,
.contact-form::after,
.jr-card::after,
.faq-item::after,
.github-proof::after,
.snapshot-highlights::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--brand) 14%, transparent),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.trust-item:hover::after,
.lane-card:hover::after,
.snapshot-card:hover::after,
.fit-row:hover::after,
.skill-card:hover::after,
.project-card:hover::after,
.timeline-item:hover::after,
.process-card:hover::after,
.project-panel:hover::after,
.contact-form:hover::after,
.jr-card:hover::after,
.faq-item:hover::after,
.github-proof:hover::after,
.snapshot-highlights:hover::after {
  opacity: 1;
}

.trust-item > *,
.lane-card > *,
.snapshot-card > *,
.fit-row > *,
.skill-card > *,
.project-card > *,
.timeline-item > *,
.process-card > *,
.project-panel > *,
.contact-form > *,
.jr-card > *,
.faq-item > *,
.github-proof > *,
.snapshot-highlights > * {
  position: relative;
  z-index: 1;
}

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

.skill-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: var(--card-pad);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
}

.skill-card h3 {
  font-size: 1.08rem;
}

.skill-card ul {
  margin-top: 10px;
  color: var(--text-muted);
}

.skill-card li + li {
  margin-top: 6px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.projects-note {
  margin-bottom: 16px;
  color: var(--text-muted);
  max-width: 72ch;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

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

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  padding: var(--card-pad);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease,
    opacity 0.2s ease;
}

.project-card::before {
  content: none;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.project-card.is-hidden {
  display: none;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-visual {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--bg-muted) 60%, var(--bg-elevated));
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand) 14%, transparent),
    transparent 42%,
    color-mix(in srgb, #08121c 45%, transparent)
  );
  pointer-events: none;
}

.project-card:hover .project-visual img {
  transform: scale(1.04);
}

.project-visual-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 18%, var(--bg-muted));
  color: var(--brand);
}

.project-year {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.project-card p {
  color: var(--text-muted);
}

.project-points {
  color: var(--text);
}

.project-points li + li {
  margin-top: 5px;
}

.project-stack {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}

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

.project-link {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.project-link:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--bg-elevated));
}

.project-detail-btn {
  background: color-mix(in srgb, var(--brand) 90%, #0c1f33);
  border-color: color-mix(in srgb, var(--brand) 80%, transparent);
  color: #fff;
  cursor: pointer;
}

.project-detail-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--brand) 90%, #0c1f33),
    color-mix(in srgb, var(--accent) 55%, #0c1f33)
  );
}

.project-link.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.project-main {
  padding-bottom: 20px;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand);
}

.project-hero-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    130deg,
    color-mix(in srgb, var(--brand) 14%, var(--bg-elevated)),
    color-mix(in srgb, var(--accent) 10%, var(--bg-elevated))
  );
  box-shadow: var(--shadow-md);
  padding: var(--card-pad);
}

.project-nav-section {
  padding-top: 16px;
  padding-bottom: 18px;
}

.project-case-nav {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 95%, transparent);
  box-shadow: var(--shadow-sm);
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-case-nav a {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.project-case-nav a:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--brand) 9%, var(--bg-elevated));
}

.project-case-nav a.is-active {
  color: white;
  border-color: color-mix(in srgb, var(--brand) 78%, transparent);
  background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--accent) 68%, black));
}

.project-case-badge {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line));
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand);
}

.project-hero-card h1 {
  margin-top: 8px;
  max-width: 22ch;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
}

.project-case-summary {
  margin-top: 10px;
  color: var(--text-muted);
  max-width: 72ch;
}

.project-case-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-case-meta span {
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
}

.project-hero-media {
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-muted) 54%, var(--bg-elevated));
  min-height: 170px;
}

.project-hero-media img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  display: block;
}

.project-hero-media-fallback {
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 18px;
}

.project-media-section {
  padding-top: 24px;
}

.project-story-section {
  padding-top: 26px;
  padding-bottom: 14px;
}

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

.project-proof-section {
  padding-top: 22px;
  padding-bottom: 20px;
}

.project-security-section {
  padding-top: 18px;
}

.project-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.proof-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.proof-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  color: var(--brand);
}

.proof-item span {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

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

.project-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
}

.project-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.06rem;
  margin-bottom: 10px;
}

.project-panel p {
  color: var(--text-muted);
}

.project-panel ul {
  margin: 0;
  color: var(--text-muted);
}

.project-panel li + li {
  margin-top: 6px;
}

.architecture-diagram {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-muted) 52%, var(--bg-elevated));
}

.architecture-diagram img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}

.architecture-diagram figcaption {
  border-top: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-video {
  border: 1px dashed color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 14px;
  min-height: 230px;
  background: color-mix(in srgb, var(--bg-muted) 50%, var(--bg-elevated));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.project-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.project-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
}

.video-placeholder strong {
  display: block;
  color: var(--text);
  font-family: var(--font-heading);
  margin-bottom: 6px;
}

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

.gallery-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-muted) 42%, var(--bg-elevated));
  padding: 10px;
  min-height: 110px;
  margin: 0;
}

.gallery-item-media {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
}

.gallery-item-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
}

.gallery-item-caption {
  padding: 10px;
}

.gallery-item strong {
  display: block;
  font-size: 0.93rem;
  font-family: var(--font-heading);
}

.gallery-item span {
  display: block;
  margin-top: 5px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.project-panel-note {
  margin-top: 10px;
  font-size: 0.9rem;
}

.project-impact-list li {
  color: var(--text);
  font-weight: 500;
}

.project-panel-wide {
  grid-column: 1 / -1;
}

.project-footer-section {
  padding-top: 26px;
}

.project-footer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
  display: grid;
  gap: 12px;
}

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

.project-footer-links a,
.project-footer-links span {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.project-footer-links span {
  opacity: 0.72;
}

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

.timeline {
  display: grid;
  gap: 14px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 89px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand) 85%, transparent),
    color-mix(in srgb, var(--accent) 85%, transparent)
  );
  opacity: 0.5;
}

.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  position: relative;
}

.timeline-period {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand);
  position: relative;
  padding-left: 24px;
}

.timeline-period::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
}

.timeline-company {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-main p {
  margin-top: 8px;
  color: var(--text-muted);
}

.timeline-main ul {
  margin-top: 10px;
}

.timeline-main li + li {
  margin-top: 6px;
}

.process-section {
  padding-top: var(--subsection-gap);
}

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

.process-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: var(--card-pad);
  box-shadow: var(--shadow-sm);
}

.process-card span {
  font-size: 0.8rem;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-card h3 {
  margin-top: 6px;
  font-size: 1rem;
}

.process-card p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.contact-lead {
  margin-top: 10px;
  color: var(--text-muted);
  max-width: 58ch;
}

.contact-quick-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.contact-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.contact-list span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-list a {
  font-weight: 600;
  text-align: right;
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  padding: var(--card-pad);
  display: grid;
  gap: 12px;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.field {
  display: grid;
  gap: 5px;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.field input,
.field textarea {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
}

.field input:focus,
.field textarea:focus {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
}

.form-status {
  min-height: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 18px 0 26px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
}

.back-top {
  font-weight: 600;
  color: var(--text);
}
