:root {
  color-scheme: light;
  --bg: #f4f7ff;
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --surface-raised: rgba(255, 255, 255, 0.92);
  --line: #d7e3ff;
  --line-strong: rgba(31, 102, 255, 0.24);
  --text: #14264a;
  --muted: #2f4368;
  --faint: #6d7ea1;
  --blue: #1f66ff;
  --mint: #23b9ff;
  --violet: #5a35ff;
  --amber: #de2f62;
  --coral: #0ea75a;
  --shadow: 0 24px 52px rgba(20, 38, 74, 0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(700px 420px at 5% -15%, rgba(35, 185, 255, 0.18), transparent 70%),
    radial-gradient(700px 420px at 95% -10%, rgba(90, 53, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #f7faff 0%, #eef3ff 100%);
  background-size: auto;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(320px 200px at 14% 24%, rgba(31, 102, 255, 0.15), transparent 72%),
    radial-gradient(360px 220px at 86% 30%, rgba(90, 53, 255, 0.12), transparent 76%);
}

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

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-150%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  transition: transform 160ms ease;
}

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

.page-shell {
  width: min(100% - 24px, 1040px);
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid rgba(31, 102, 255, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--text);
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.profile-mark {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(31, 102, 255, 0.08), rgba(90, 53, 255, 0.08)),
    var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.brand-logo {
  width: min(48vw, 176px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(31, 102, 255, 0.16));
}

.topbar-cta,
.commercial-cta,
.secondary-links a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topbar-cta {
  min-height: 40px;
  padding: 10px 14px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 18px 0 20px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0;
  padding: 0.35rem 0.85rem;
  background: rgba(31, 102, 255, 0.1);
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-mark {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  padding: 4px;
  object-fit: contain;
}

h1,
h2 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 12vw, 3.3rem);
  line-height: 0.94;
}

.hero-role {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft, var(--muted));
  font-size: 1.02rem;
  line-height: 1.55;
}

.primary-links {
  display: grid;
  gap: 10px;
}

.link-card,
.project-card,
.offer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 12px 24px rgba(20, 38, 74, 0.08);
}

.link-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 14px 14px 16px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-card-primary {
  min-height: 82px;
  border-color: rgba(31, 102, 255, 0.42);
  background:
    linear-gradient(120deg, rgba(31, 102, 255, 0.1), rgba(90, 53, 255, 0.11)),
    var(--surface);
}

.link-copy,
.project-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.link-card strong,
.project-body strong,
.offer-card strong {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.08rem;
  line-height: 1.1;
}

.link-card small,
.project-body small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.link-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31, 102, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(31, 102, 255, 0.08);
  color: var(--blue);
}

.link-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.link-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.link-card-primary .link-icon {
  border-color: rgba(14, 167, 90, 0.28);
  background: rgba(14, 167, 90, 0.08);
}

.link-card em {
  display: grid;
  place-items: center;
  justify-self: end;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(31, 102, 255, 0.26);
  border-radius: var(--radius);
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

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

.secondary-links a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.proof-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0 36px;
}

.proof-strip div {
  border-left: 3px solid var(--coral);
  padding: 2px 0 2px 12px;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  color: var(--text);
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.08rem;
}

.proof-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.projects,
.commercial {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.section-heading {
  display: grid;
  gap: 8px;
}

h2 {
  max-width: 15ch;
  font-size: clamp(1.9rem, 8vw, 3.3rem);
  line-height: 0.98;
}

.project-grid,
.offer-grid {
  display: grid;
  gap: 10px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 132px;
  padding: 14px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-card::after {
  align-self: start;
  justify-self: end;
  content: "->";
  color: var(--blue);
  font-weight: 900;
}

.project-card-featured {
  border-color: rgba(31, 102, 255, 0.34);
  background:
    linear-gradient(120deg, rgba(31, 102, 255, 0.1), rgba(90, 53, 255, 0.08)),
    var(--surface);
}

.project-icon {
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  padding: 5px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(31, 102, 255, 0.05);
}

.project-icon-text {
  display: grid;
  place-items: center;
  color: var(--text);
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag-row span {
  border: 1px solid rgba(31, 102, 255, 0.12);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(31, 102, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
}

.offer-card {
  min-height: 138px;
  padding: 18px;
}

.offer-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.48;
}

.commercial-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 0 16px;
  border-color: rgba(31, 102, 255, 0.18);
  background: linear-gradient(120deg, var(--blue), var(--violet));
  color: #ffffff;
  font-weight: 900;
}

.footer {
  display: grid;
  gap: 7px;
  padding: 34px 0 0;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 700;
}

.topbar-cta:hover,
.secondary-links a:hover,
.commercial-cta:hover,
.link-card:hover,
.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 102, 255, 0.38);
  background-color: rgba(31, 102, 255, 0.08);
}

.topbar-cta:focus-visible,
.secondary-links a:focus-visible,
.commercial-cta:focus-visible,
.link-card:focus-visible,
.project-card:focus-visible {
  outline: 3px solid rgba(58, 168, 255, 0.42);
  outline-offset: 3px;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease, transform 480ms ease;
}

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

@media (min-width: 720px) {
  .page-shell {
    width: min(100% - 40px, 1040px);
    padding-top: 18px;
  }

  .topbar {
    min-height: 66px;
  }

  .brand-logo {
    width: 188px;
    max-height: 62px;
  }

  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    column-gap: 28px;
    align-items: start;
    padding: 44px 0 24px;
  }

  .hero .eyebrow,
  .hero-profile,
  .lead,
  .secondary-links {
    grid-column: 1;
  }

  .primary-links {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
  }

  .profile-mark {
    width: 96px;
    height: 96px;
  }

  .lead {
    font-size: 1.12rem;
  }

  .proof-strip {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0;
  }

  .projects,
  .commercial {
    margin-top: 54px;
  }

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

  h2 {
    max-width: 680px;
  }

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

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

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

  .footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
  }
}

@media (min-width: 980px) {
  h1 {
    font-size: 4.35rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
    min-height: 560px;
    align-content: center;
    column-gap: 42px;
  }

  .link-card {
    min-height: 78px;
  }

  .link-card-primary {
    min-height: 92px;
  }

  .project-card {
    min-height: 146px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    width: min(100% - 18px, 1040px);
  }

  .hero-profile {
    align-items: flex-start;
  }

  .profile-mark {
    width: 68px;
    height: 68px;
  }

  h1 {
    font-size: 2rem;
  }

  .secondary-links {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .project-icon {
    width: 48px;
    height: 48px;
  }
}

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

  .js .reveal,
  .topbar-cta,
  .secondary-links a,
  .commercial-cta,
  .link-card,
  .project-card,
  .skip-link {
    transition: none;
  }

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