:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f1f5ff;
  --text: #0b1220;
  --muted: #50607a;
  --border: rgba(12, 21, 38, 0.12);
  --shadow: 0 16px 50px rgba(12, 21, 38, 0.08);
  --shadow-soft: 0 8px 24px rgba(12, 21, 38, 0.08);

  --primary: #1e63ff;
  --primary-2: #2bb7ff;
  --focus: #1e63ff;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --ring: 0 0 0 4px rgba(30, 99, 255, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
  color: var(--text);
  background: radial-gradient(1200px 600px at 18% -10%, rgba(30, 99, 255, 0.14), transparent 60%),
    radial-gradient(900px 520px at 92% 10%, rgba(43, 183, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

::selection {
  background: rgba(30, 99, 255, 0.18);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transform: translateY(-150%);
  transition: transform 180ms ease;
  z-index: 9999;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(12, 21, 38, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(12, 21, 38, 0.10);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(12, 21, 38, 0.10);
  background: rgba(255, 255, 255, 0.65);
}

.nav-link {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(11, 18, 32, 0.86);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 120ms ease;
}

.nav-link:hover {
  background: rgba(30, 99, 255, 0.08);
  color: var(--text);
}

.nav-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.hero {
  padding: 56px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(12, 21, 38, 0.10);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 600;
  color: rgba(11, 18, 32, 0.74);
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-title-accent {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  background: linear-gradient(90deg, #1e63ff, #2bb7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 120ms ease, box-shadow 180ms ease, background 180ms ease,
    border-color 180ms ease;
  min-height: 44px;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  box-shadow: var(--ring);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #1e63ff, #2bb7ff);
  box-shadow: 0 12px 26px rgba(30, 99, 255, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(30, 99, 255, 0.28);
}

.btn-secondary {
  background: rgba(30, 99, 255, 0.08);
  border-color: rgba(30, 99, 255, 0.16);
  color: #0b2c7a;
}

.btn-secondary:hover {
  background: rgba(30, 99, 255, 0.12);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(12, 21, 38, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.78);
}

.hero-meta {
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(12, 21, 38, 0.08);
  display: grid;
  gap: 10px;
}

.meta-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
}

.meta-item dt {
  color: rgba(11, 18, 32, 0.70);
  font-weight: 600;
}

.meta-item dd {
  margin: 0;
  color: rgba(11, 18, 32, 0.92);
}

.hero-card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(241, 245, 255, 0.70));
  border: 1px solid rgba(12, 21, 38, 0.10);
  box-shadow: var(--shadow-soft);
}

.hero-card-inner {
  padding: 26px;
}

.card-title {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.checklist {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  color: rgba(11, 18, 32, 0.88);
}

.checklist li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 6px;
  position: absolute;
  left: 0;
  top: 2px;
  background: linear-gradient(135deg, rgba(30, 99, 255, 0.75), rgba(43, 183, 255, 0.75));
  box-shadow: 0 8px 18px rgba(30, 99, 255, 0.18);
}

.muted {
  color: var(--muted);
  margin: 0;
}

.section {
  padding: 42px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(241, 245, 255, 0.45), rgba(255, 255, 255, 0.0));
  border-top: 1px solid rgba(12, 21, 38, 0.06);
  border-bottom: 1px solid rgba(12, 21, 38, 0.06);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.project {
  grid-column: span 6;
  padding: 20px 20px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(12, 21, 38, 0.10);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(30, 99, 255, 0.22), rgba(43, 183, 255, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}

.project > * {
  position: relative;
  z-index: 1;
}

.project:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(30, 99, 255, 0.18);
}

.project:focus-within {
  border-color: rgba(30, 99, 255, 0.30);
}

.project-media {
  margin: 0;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(12, 21, 38, 0.10);
  overflow: hidden;
  background: radial-gradient(900px 240px at 20% 0%, rgba(30, 99, 255, 0.18), transparent 55%),
    radial-gradient(700px 220px at 90% 20%, rgba(43, 183, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(241, 245, 255, 0.9), rgba(255, 255, 255, 0.75));
  aspect-ratio: 16 / 9;
}

.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-top {
  display: grid;
  gap: 4px;
}

.project-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(30, 99, 255, 0.18);
  background: rgba(30, 99, 255, 0.08);
  color: rgba(11, 18, 32, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-title {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.project-domain {
  margin: 0;
  color: rgba(11, 18, 32, 0.66);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.project-desc {
  margin: 0;
  color: rgba(11, 18, 32, 0.84);
}

.project-footer {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(12, 21, 38, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.pill-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(12, 21, 38, 0.10);
  background: rgba(241, 245, 255, 0.70);
  color: rgba(11, 18, 32, 0.84);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.contact-card {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(12, 21, 38, 0.10);
  box-shadow: var(--shadow-soft);
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
}

.contact-row dt {
  font-weight: 700;
  color: rgba(11, 18, 32, 0.72);
}

.contact-row dd {
  margin: 0;
  color: rgba(11, 18, 32, 0.92);
}

.contact-note {
  display: inline-block;
  margin-left: 8px;
  color: rgba(11, 18, 32, 0.62);
  font-size: 13px;
}

.stack {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
}

.site-footer {
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(12, 21, 38, 0.08);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-sub {
  color: var(--muted);
  font-size: 13px;
}

.footer-meta {
  color: rgba(11, 18, 32, 0.72);
  font-size: 13px;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .project {
    grid-column: span 12;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .meta-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
