:root {
  color-scheme: dark;

  --background: #07110f;
  --background-soft: #0a1714;
  --surface: #0d1c18;
  --surface-strong: #11241f;
  --surface-hover: #152b25;

  --text: #f1f7f4;
  --text-soft: #d4e0db;
  --muted: #98aaa3;
  --muted-strong: #b7c7c1;

  --accent: #5eead4;
  --accent-strong: #2dd4bf;
  --accent-dark: #0f766e;
  --accent-darker: #134e4a;

  --warning: #fbbf24;

  --line: rgba(167, 243, 208, 0.13);
  --line-strong: rgba(94, 234, 212, 0.28);

  --shadow-small: 0 12px 32px rgba(0, 0, 0, 0.18);
  --shadow-large: 0 30px 80px rgba(0, 0, 0, 0.32);

  --radius-small: 10px;
  --radius-medium: 16px;
  --radius-large: 24px;

  --content-width: 1180px;
  --header-height: 78px;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(15, 118, 110, 0.18),
      transparent 28rem
    ),
    radial-gradient(
      circle at 88% 22%,
      rgba(19, 78, 74, 0.2),
      transparent 32rem
    ),
    linear-gradient(180deg, #081411 0%, var(--background) 40%, #050b0a 100%);
  color: var(--text);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--accent);
  color: #06201b;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

p {
  color: var(--muted);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  border-radius: var(--radius-small);
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--accent);
  color: #06201b;
  font-weight: 800;
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: min(var(--content-width), calc(100% - 40px));
  min-height: var(--header-height);
  margin: 0 auto;
}

.site-header::before {
  position: absolute;
  z-index: -1;
  inset: 8px -14px;
  border: 1px solid rgba(94, 234, 212, 0.09);
  border-radius: 18px;
  background: rgba(7, 17, 15, 0.76);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(94, 234, 212, 0.16), rgba(15, 118, 110, 0.06)),
    var(--surface);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.nav a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--accent);
  content: "";
  transition: transform 160ms ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 1rem;
  background: rgba(94, 234, 212, 0.06);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.header-action:hover {
  border-color: rgba(94, 234, 212, 0.52);
  transform: translateY(-1px);
  background: rgba(94, 234, 212, 0.11);
  color: var(--text);
}

main {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.hero-copy {
  position: relative;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.15rem, 4.5vw, 4rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

h3 {
  margin-bottom: 0.9rem;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.accent-text {
  display: block;
  background: linear-gradient(90deg, var(--accent), #99f6e4);
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 2rem;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 1.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #06201b;
  box-shadow: 0 14px 34px rgba(45, 212, 191, 0.18);
}

.button.primary:hover {
  background: #99f6e4;
  box-shadow: 0 18px 42px rgba(45, 212, 191, 0.25);
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
}

.button.secondary:hover {
  border-color: rgba(94, 234, 212, 0.48);
  background: rgba(94, 234, 212, 0.07);
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-meta span[aria-hidden="true"] {
  color: var(--accent-dark);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: 1.25rem;
  background:
    linear-gradient(145deg, rgba(94, 234, 212, 0.055), transparent 45%),
    rgba(13, 28, 24, 0.8);
  box-shadow: var(--shadow-large);
}

.hero-panel::before {
  position: absolute;
  top: -140px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.11);
  filter: blur(65px);
  content: "";
  pointer-events: none;
}

.panel-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid var(--line);
  padding: 0.15rem 0 1rem;
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 700;
}

.status-indicator {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(94, 234, 212, 0.1);
}

.focus-list {
  position: relative;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.focus-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 1rem;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.focus-list article:hover {
  border-color: var(--line);
  transform: translateX(3px);
  background: rgba(94, 234, 212, 0.035);
}

.focus-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.focus-list strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-size: 0.94rem;
}

.focus-list p {
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading > p:not(.eyebrow) {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.introduction {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.introduction .section-heading {
  margin-bottom: 0;
}

.introduction-copy {
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(1.5rem, 4vw, 3rem);
}

.introduction-copy p {
  margin-bottom: 1.4rem;
  color: var(--muted-strong);
  font-size: 1.04rem;
  line-height: 1.8;
}

.introduction-copy p:last-child {
  margin-bottom: 0;
}

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

.project-card {
  position: relative;
  display: flex;
  min-height: 590px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    linear-gradient(160deg, rgba(94, 234, 212, 0.035), transparent 32%),
    var(--surface);
  box-shadow: var(--shadow-small);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-card:hover {
  border-color: rgba(94, 234, 212, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
}

.project-card-featured {
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(45, 212, 191, 0.13),
      transparent 18rem
    ),
    linear-gradient(150deg, rgba(15, 118, 110, 0.1), transparent 48%),
    var(--surface-strong);
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.project-status,
.project-visibility {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 0.7rem;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-status {
  background: rgba(94, 234, 212, 0.08);
  color: var(--accent);
}

.project-status.paused {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.07);
  color: var(--warning);
}

.project-visibility {
  border-color: var(--line);
  color: var(--muted);
}

.project-content {
  flex: 1;
}

.project-index {
  margin-bottom: 1.2rem;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 800;
}

.project-content h3 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}

.project-content p {
  color: var(--muted-strong);
  line-height: 1.75;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted-strong);
  font-size: 0.7rem;
  font-weight: 650;
}

.project-note {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.project-links {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.text-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
  transition:
    color 160ms ease,
    gap 160ms ease;
}

.text-link:hover {
  gap: 0.75rem;
  color: #99f6e4;
}

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

.capability-card {
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  padding: 1.5rem;
  background: rgba(13, 28, 24, 0.64);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.capability-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  background: var(--surface-strong);
}

.capability-index {
  display: block;
  margin-bottom: 3.2rem;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.capability-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

.capability-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
  margin: clamp(4rem, 8vw, 8rem) 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  padding: clamp(2rem, 6vw, 4.5rem);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(94, 234, 212, 0.13),
      transparent 24rem
    ),
    linear-gradient(135deg, rgba(15, 118, 110, 0.11), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-large);
}

.contact-copy {
  max-width: 760px;
}

.contact h2 {
  max-width: 720px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 1.02rem;
}

.contact-actions {
  justify-content: flex-end;
}

.footer {
  display: flex;
  width: min(var(--content-width), calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(94, 234, 212, 0.42);
  outline-offset: 4px;
}

@media (min-width: 1021px) and (max-height: 760px) {
  .hero {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  h1 {
    font-size: clamp(3rem, 5.5vw, 4.75rem);
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
    padding-top: 7rem;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero-panel {
    max-width: 720px;
  }

  .introduction {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .introduction-copy {
    max-width: 760px;
  }

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

  .contact {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

@media (max-width: 800px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
  }

  .nav {
    display: none;
  }

  .header-action {
    justify-self: end;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  main,
  .site-header,
  .footer {
    width: min(100% - 24px, var(--content-width));
  }

  .site-header {
    gap: 0.7rem;
  }

  .site-header::before {
    inset: 7px -4px;
  }

  .brand > span:last-child {
    display: none;
  }

  .header-action {
    min-height: 39px;
    padding: 0 0.75rem;
    font-size: 0.76rem;
  }

  .hero {
    padding-top: 5.5rem;
    padding-bottom: 4.5rem;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.25rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .hero-meta span[aria-hidden="true"] {
    display: none;
  }

  .hero-panel {
    border-radius: 19px;
    padding: 0.9rem;
  }

  .focus-list article {
    padding: 0.85rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .introduction-copy {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
    padding-top: 1.5rem;
    padding-left: 0;
  }

  .project-card {
    border-radius: 19px;
    padding: 1.15rem;
  }

  .project-topline {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 2rem;
  }

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

  .capability-card {
    min-height: auto;
  }

  .capability-index {
    margin-bottom: 2rem;
  }

  .contact {
    margin: 3.5rem 0;
    border-radius: 19px;
    padding: 1.4rem;
  }
}

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

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