:root {
  --bg: #06070a;
  --bg-soft: #10131a;
  --text: #f4f1eb;
  --muted: #a4a9b6;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #d9e4ff;
  --accent-soft: #8de1ff;
  --card: rgba(13, 16, 22, 0.78);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(141, 225, 255, 0.14), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(217, 228, 255, 0.12), transparent 20%),
    linear-gradient(135deg, #030406 0%, #090b10 48%, #05060a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 13, 22, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 24px rgba(255, 122, 24, 0.65);
}

.site-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-cta:hover,
.button:hover,
.button:focus-visible {
  opacity: 0.9;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.header-cta {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 36px;
  align-items: center;
  min-height: min(calc(100vh - 132px), 860px);
  padding: 52px 0 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 0.95;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.3rem, 4.6vw, 4.6rem);
  line-height: 1.02;
}

.hero-text,
.section-heading,
.service-card p,
.showcase-card p,
.timeline-item p,
.contact-card p {
  color: var(--muted);
}

.hero-text {
  max-width: 64ch;
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  font-weight: 700;
}

.button-primary {
  color: #111;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}

.button-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel {
  position: relative;
  min-height: 460px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(155deg, rgba(141, 225, 255, 0.12), rgba(8, 10, 14, 0.28) 50%, rgba(217, 228, 255, 0.08));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 4, 6, 0.08), rgba(3, 4, 6, 0.24)),
    radial-gradient(circle at 18% 18%, rgba(141, 225, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(3, 4, 6, 0.04), rgba(3, 4, 6, 0.18));
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.04);
}

.panel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.1;
}

.hero-overlay-bar {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(10, 14, 20, 0.26);
  backdrop-filter: blur(10px);
}

.hero-overlay-bar span,
.card-meta,
.timeline-item span,
.service-card span,
.feature-strip span {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

.hero-overlay-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.floating-card strong,
.showcase-card h3,
.service-card h3,
.timeline-item h3 {
  display: block;
  margin-top: 12px;
  font-size: 1.4rem;
}

.feature-strip,
.service-grid,
.showcase-grid,
.timeline {
  display: grid;
  gap: 18px;
}

.feature-strip {
  grid-template-columns: repeat(4, 1fr);
  margin: 10px 0 80px;
}

.feature-strip div,
.service-card,
.showcase-card,
.timeline-item,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(11, 21, 35, 0.64);
  box-shadow: var(--shadow);
}

.feature-strip div {
  padding: 18px 20px;
}

.feature-strip p {
  margin: 8px 0 0;
}

.services,
.showcase,
.process,
.contact {
  padding: 64px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.contact-card h2 {
  display: block;
  margin: 0;
  overflow: visible;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(1.32rem, 1.8vw, 1.8rem);
  line-height: 1.34;
  letter-spacing: 0.01em;
  max-width: 34ch;
  padding-bottom: 0.28em;
}

.contact-card p {
  max-width: 68ch;
}

.section-heading.narrow {
  max-width: 620px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.timeline-item {
  padding: 24px;
}

.accent-card {
  background:
    linear-gradient(160deg, rgba(141, 225, 255, 0.12), rgba(14, 18, 24, 0.9));
}

.showcase-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
}

.showcase-card {
  min-height: 280px;
  padding: 26px;
}

.posts-grid {
  grid-template-columns: repeat(2, 1fr);
}

.post-link-card {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.post-link-card:hover,
.post-link-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(141, 225, 255, 0.35);
}

.post-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-copy {
  padding: 24px;
}

.showcase-card.large {
  min-height: 360px;
  background:
    radial-gradient(circle at top right, rgba(141, 225, 255, 0.14), transparent 40%),
    rgba(11, 21, 35, 0.7);
}

.timeline {
  grid-template-columns: repeat(3, 1fr);
}

.contact-card {
  position: relative;
  padding: 34px;
  overflow: visible;
  isolation: isolate;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.6fr);
  gap: 28px;
  align-items: start;
}

.contact-copy-block {
  min-width: 0;
}

.contact-aside {
  display: grid;
  gap: 14px;
  align-self: stretch;
}

.contact-stat {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-stat span {
  display: block;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.contact-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 1.02rem;
}

.contact-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 180px;
  height: 180px;
  top: -28px;
  right: -20px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.18), transparent 70%);
  pointer-events: none;
}

.article-page .page-shell {
  width: min(1100px, calc(100% - 32px));
}

.article-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  margin-top: 16px;
}

.article-hero {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  padding: 72px 0 28px;
  align-items: center;
}

.article-copy,
.article-summary,
.article-body,
.article-footer-nav {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(11, 21, 35, 0.64);
  box-shadow: var(--shadow);
}

.article-copy,
.article-summary,
.article-body,
.article-footer-nav {
  padding: 28px;
}

.article-copy h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1;
}

.article-deck,
.article-meta,
.article-body p,
.article-body li,
.article-summary li,
.back-link,
.footer-link {
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
  font-size: 0.95rem;
}

.article-cover {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: rgba(11, 21, 35, 0.64);
}

.article-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  padding-bottom: 56px;
}

.article-summary {
  align-self: start;
  position: sticky;
  top: 116px;
}

.article-summary h2,
.article-body h2 {
  margin: 0 0 16px;
  font-family: "Syne", sans-serif;
}

.article-summary ul,
.article-body ul {
  margin: 0;
  padding-left: 18px;
}

.article-body p,
.article-body li {
  line-height: 1.8;
}

.article-body h3 {
  margin: 28px 0 12px;
  font-size: 1.2rem;
}

.article-note {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(141, 225, 255, 0.18);
  border-radius: 20px;
  background: rgba(141, 225, 255, 0.06);
}

.article-note p {
  margin: 0;
}

.article-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.footer-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-delay {
  animation: drift 6s ease-in-out infinite alternate;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-12px);
  }
}

@media (max-width: 1024px) {
  .hero,
  .showcase-grid,
  .timeline,
  .service-grid,
  .feature-strip,
  .article-hero,
  .article-layout,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .hero-panel {
    min-height: 360px;
  }

  .feature-strip {
    margin: 0 0 56px;
  }

  .showcase,
  .contact {
    padding: 48px 0;
  }

  .article-summary {
    position: static;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-bottom: 28px;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    top: 8px;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 0.95rem;
  }

  .header-cta {
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .brand {
    gap: 10px;
    font-size: 0.95rem;
  }

  .hero {
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.9rem, 8.6vw, 3rem);
    line-height: 1.06;
  }

  .hero-text {
    margin-top: 14px;
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
  }

  .hero-panel {
    min-height: 240px;
    border-radius: 24px;
  }

  .hero-overlay-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(10, 14, 20, 0.22);
  }

  .hero-overlay-bar span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .feature-strip {
    gap: 12px;
    margin-bottom: 40px;
  }

  .feature-strip div,
  .post-copy,
  .contact-card {
    padding: 18px;
  }

  .showcase,
  .contact {
    padding: 36px 0;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .showcase-card h3 {
    font-size: 1.2rem;
  }

  .post-copy p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .contact-card h2 {
    max-width: none;
    font-size: clamp(1.18rem, 5.2vw, 1.55rem);
  }

  .contact-card p {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .contact-aside {
    gap: 10px;
  }

  .contact-stat {
    padding: 14px 16px;
  }

  .contact-aside .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-delay,
  .button,
  .header-cta {
    transition: none;
    animation: none;
  }
}