:root {
  color-scheme: dark;
  --bg: #061126;
  --bg-strong: #030815;
  --panel: rgba(14, 18, 35, 0.78);
  --panel-strong: rgba(18, 24, 45, 0.92);
  --text: #f4f7ff;
  --muted: #aab4ce;
  --cyan: #26f2ff;
  --blue: #5a8dff;
  --blue-soft: #8fb2ff;
  --line: rgba(120, 244, 255, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max-width: 1120px;
  --display-font: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 14%, rgba(42, 152, 255, 0.24), transparent 32rem),
    radial-gradient(circle at 18% 78%, rgba(91, 255, 219, 0.14), transparent 28rem),
    linear-gradient(145deg, #020716 0%, #061126 44%, #0a1c3b 100%),
    var(--bg);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(3, 8, 21, 0.12), rgba(3, 8, 21, 0.7)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 34rem);
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  background: var(--bg-strong);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100vw - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0;
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(38, 242, 255, 0.16);
}

.brand,
.site-nav,
.button,
.status-pill {
  border: 1px solid var(--line);
  background: rgba(8, 10, 20, 0.68);
  box-shadow: 0 0 28px rgba(38, 242, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font-weight: 800;
}

.brand-mark {
  display: block;
  overflow: hidden;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 6px;
  background: var(--bg-strong);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 33%;
  transform: scale(2.45);
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  border-radius: var(--radius);
  padding: 0.35rem;
}

.site-nav a {
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(38, 242, 255, 0.12);
  outline: none;
}

.site-nav a.is-active {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(38, 242, 255, 0.18), rgba(90, 141, 255, 0.18)),
    rgba(38, 242, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(38, 242, 255, 0.34);
  outline: none;
}

.section-shell {
  width: min(calc(100vw - 2rem), var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 3.25rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: 4rem 0 5rem;
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.eyebrow,
.card-kicker {
  color: var(--blue-soft);
  font-family: "Cascadia Mono", "Consolas", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  font-family: var(--display-font);
  font-size: clamp(3rem, 4.45vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
}

h2 {
  max-width: 780px;
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

h3 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 640px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  border-color: rgba(38, 242, 255, 0.64);
  color: #f8fbff;
  background: linear-gradient(135deg, #0573d9, #14bfd7);
  box-shadow: 0 0 28px rgba(20, 191, 215, 0.14);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(90, 141, 255, 0.34);
  background: rgba(4, 10, 24, 0.78);
}

.founder-card,
.feature-card,
.service-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.founder-card {
  overflow: hidden;
  min-width: 0;
  background:
    linear-gradient(145deg, rgba(38, 242, 255, 0.1), rgba(90, 141, 255, 0.11)),
    var(--panel);
}

.founder-photo {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 360px;
  height: clamp(330px, 35vw, 390px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 46%, rgba(38, 242, 255, 0.2), transparent 18rem),
    linear-gradient(180deg, rgba(4, 11, 28, 0.1), rgba(4, 11, 28, 0.82));
}

.founder-photo img {
  position: absolute;
  left: 50%;
  top: 42%;
  display: block;
  width: min(104%, 500px);
  max-height: none;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.42));
  transform: translate(-50%, -50%) scale(1.08);
}

.founder-copy {
  padding: 1.35rem;
}

.founder-copy h2 {
  margin-top: 0.4rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.founder-role {
  margin-top: 0.35rem;
  color: var(--cyan);
  font-weight: 800;
}

.founder-copy p:last-of-type {
  margin-top: 0.9rem;
  color: var(--muted);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.skill-chips span {
  border: 1px solid rgba(38, 242, 255, 0.24);
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  color: var(--text);
  background: rgba(3, 8, 21, 0.48);
  font-size: 0.78rem;
  font-weight: 800;
}

.work,
.services,
.contact {
  padding: 5rem 0;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

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

.feature-card {
  min-height: 17rem;
  padding: 1.35rem;
}

.feature-card p:last-child,
.service-card p,
.contact-panel p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  color: var(--blue-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(38, 242, 255, 0.14), rgba(90, 141, 255, 0.13)),
    var(--panel-strong);
}

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

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-socials a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  color: var(--text);
  background: rgba(8, 10, 20, 0.46);
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--cyan);
  border-color: rgba(38, 242, 255, 0.48);
  outline: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .contact-panel,
  .service-card {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  h1 {
    max-width: 760px;
  }

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

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

@media (max-width: 560px) {
  .section-shell,
  .site-header,
  .site-footer {
    width: min(calc(100vw - 2rem), var(--max-width));
  }

  .brand-text {
    display: none;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .brand {
    align-self: flex-start;
    flex: 0 0 auto;
    padding: 0.45rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .site-nav {
    width: 100%;
    gap: 0.15rem;
    justify-content: space-between;
    min-width: 0;
    padding: 0.25rem;
    overflow: visible;
  }

  .site-nav a {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.48rem 0.2rem;
    text-align: center;
    font-size: 0.74rem;
  }

  .hero {
    gap: 2rem;
    padding-bottom: 3rem;
  }

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

  h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.2rem, 9vw, 2.65rem);
    line-height: 1.04;
    overflow-wrap: break-word;
  }

  .hero-text {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .founder-card {
    width: min(100%, calc(100vw - 2rem));
    min-height: auto;
  }

  .founder-photo {
    min-height: 300px;
    height: clamp(300px, 72vw, 350px);
  }

  .founder-photo img {
    top: 43%;
    width: min(106%, 430px);
    transform: translate(-50%, -50%) scale(1.05);
  }

  .founder-copy {
    padding: 1rem;
  }

  .work,
  .services,
  .contact {
    padding: 3.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
