:root {
  --bg: #081018;
  --bg-soft: #101a23;
  --panel: rgba(10, 18, 26, 0.84);
  --panel-strong: rgba(9, 15, 22, 0.94);
  --line: rgba(183, 157, 97, 0.24);
  --text: #f4efe5;
  --muted: #b3b7bc;
  --gold: #d0b06f;
  --blue: #5dc5d1;
  --green: #6fb38d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI Variable", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(93, 197, 209, 0.14), transparent 22rem),
    radial-gradient(circle at top left, rgba(111, 179, 141, 0.12), transparent 18rem),
    linear-gradient(180deg, #0d1620 0%, #081018 48%, #05090d 100%);
}

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

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

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

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(32px);
}

.page-shell::before {
  top: 7rem;
  right: -8rem;
  width: 16rem;
  height: 16rem;
  background: rgba(208, 176, 111, 0.13);
}

.page-shell::after {
  bottom: 14rem;
  left: -8rem;
  width: 18rem;
  height: 18rem;
  background: rgba(93, 197, 209, 0.1);
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(7, 12, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, #f2d7a4, var(--gold) 55%, rgba(208, 176, 111, 0.08) 56%);
  box-shadow: 0 0 0 0.4rem rgba(208, 176, 111, 0.08);
  flex: 0 0 auto;
}

.brand-text,
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.brand-text {
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.site-nav {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.2rem;
  padding: 0.5rem;
  background: rgba(7, 12, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.site-nav a {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.site-header.is-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: inline-grid;
  gap: 0.3rem;
  padding: 0.4rem;
  background: transparent;
  border: 0;
  color: var(--text);
}

.nav-toggle span {
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-open .nav-toggle span:first-child {
  transform: translateY(0.22rem) rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  transform: translateY(-0.22rem) rotate(-45deg);
}

.section {
  padding: 4.5rem 0;
}

.hero {
  display: grid;
  gap: 2rem;
  padding-top: 3.5rem;
  align-items: center;
}

.hero-copy,
.hero-media,
.project-card,
.special-panel,
.platform-card {
  position: relative;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

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

h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.6rem, 9vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 4vw, 1.55rem);
  color: #dce7ec;
}

.hero-text,
.section-heading p,
.about-copy p,
.special-panel > p {
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

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

.button-primary {
  color: #071018;
  background: linear-gradient(135deg, var(--gold), #f0d4a0);
  box-shadow: 0 12px 28px rgba(208, 176, 111, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(208, 176, 111, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.hero-media {
  max-width: 30rem;
  margin: 0 auto;
}

.hero-media::before,
.about-media::before {
  content: "";
  position: absolute;
  inset: auto;
  width: 55%;
  height: 55%;
  right: -0.5rem;
  bottom: -0.8rem;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(93, 197, 209, 0.18), rgba(208, 176, 111, 0.14));
  z-index: -1;
}

.hero-media img,
.about-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 6vw, 3.1rem);
}

.platform-grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

.platform-card,
.project-card,
.special-panel {
  overflow: hidden;
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.platform-card::before,
.project-card::before,
.special-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(93, 197, 209, 0.06), transparent 45%, rgba(208, 176, 111, 0.08));
  opacity: 0;
  transition: opacity 180ms ease;
}

.platform-card:hover::before,
.project-card:hover::before,
.special-panel:hover::before {
  opacity: 1;
}

.platform-card > *,
.project-card > *,
.special-panel > * {
  position: relative;
  z-index: 1;
}

.platform-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.platform-meta {
  color: var(--muted);
  line-height: 1.6;
}

.project-cover {
  display: grid;
  place-items: center;
  min-height: 10.5rem;
  margin-bottom: 1.15rem;
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px dashed rgba(208, 176, 111, 0.28);
  background:
    radial-gradient(circle at top, rgba(93, 197, 209, 0.11), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: rgba(244, 239, 229, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  text-align: center;
}

.project-card h3,
.special-panel h3 {
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
}

.project-card p,
.special-highlight p {
  margin-bottom: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.project-card-featured {
  background:
    linear-gradient(180deg, rgba(208, 176, 111, 0.1), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
}

.section-about {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-media {
  position: relative;
  max-width: 28rem;
}

.special-panel {
  padding: 1.6rem;
}

.special-highlight {
  margin: 1.5rem 0 1.8rem;
  padding: 1.2rem;
  border-left: 3px solid var(--gold);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.special-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(93, 197, 209, 0.08);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-footer {
  display: grid;
  gap: 1rem;
  padding: 0 0 2.5rem;
  color: var(--muted);
}

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

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .site-header {
    padding-inline: 1.4rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .hero,
  .section-about {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  }

  .hero {
    padding-top: 4.5rem;
  }

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

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

@media (min-width: 1024px) {
  .section {
    padding: 5.5rem 0;
  }

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

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

  .project-card-featured {
    grid-column: span 2;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
