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

:root {
  --navy-900: #141c2e;
  --navy-800: #1e2840;
  --navy-700: #293657;
  --navy-600: #334270;
  --slate: #8696b8;
  --light: #c8d4e8;
  --white: #f0f4fa;
  --accent: #4a7cff;
  --accent-glow: rgba(74, 124, 255, 0.15);
  --font: "Albert Sans", system-ui, sans-serif;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  height: 100%;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

/* ── Snap panels ── */
.panel {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.panel-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.panel:first-of-type .panel-inner {
  padding-top: 5rem;
}

.panel:nth-child(odd) {
  box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.025);
}

.panel-border {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 100% - 4rem);
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.panel:first-of-type .panel-border {
  display: none;
}

/* ── Header ── */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  background: transparent;
  border-bottom: none;
  transition: opacity 0.3s ease;
}

header .logo {
  height: 26px;
  display: block;
}

/* ── Hero ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#node-graph {
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  opacity: 0.7;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-text h1 span {
  color: var(--slate);
  font-weight: 300;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--slate);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy-900);
}

.btn-primary:hover {
  background: #5d8bff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-ghost {
  color: var(--light);
  margin-left: 1rem;
}

.btn-ghost:hover {
  color: var(--white);
}

/* ── Panel background textures ── */
#hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(74, 124, 255, 0.03) 0%,
    rgba(74, 124, 255, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

#services::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(74, 124, 255, 0.035) 0%,
    rgba(74, 124, 255, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

#services::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(74, 124, 255, 0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
}

#work::after {
  content: "";
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(74, 124, 255, 0.03) 0%,
    rgba(74, 124, 255, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
}

#work::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(74, 124, 255, 0.03) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

#contact::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(74, 124, 255, 0.03) 0%,
    rgba(74, 124, 255, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
}

#contact::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(74, 124, 255, 0.035) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* ── Section common ── */
.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.panel-inner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.lead {
  color: var(--slate);
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── Services ── */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.service {
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.25s,
    background 0.25s;
}

.service:hover {
  border-color: rgba(74, 124, 255, 0.25);
  background: rgba(74, 124, 255, 0.04);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 8px;
}

.service-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.service p {
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 300;
}

/* ── Track Record / Timeline ── */
.track-record {
  position: relative;
  margin-left: 1rem;
  padding-left: 2.5rem;
  border-left: 1px solid rgba(74, 124, 255, 0.2);
}

.record {
  position: relative;
  padding-bottom: 2.5rem;
}

.record:last-child {
  padding-bottom: 0;
}

/* Timeline dot */
.record::before {
  content: "";
  position: absolute;
  left: -2.85rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 4px var(--accent-glow),
    0 0 12px rgba(74, 124, 255, 0.3);
}

.record-year {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.record h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.record .client {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.4rem;
}

.record .desc {
  font-size: 0.9rem;
  color: var(--light);
  font-weight: 300;
}

/* ── Contact ── */
.contact-layout {
  max-width: 480px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-row a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s;
}

.contact-row a:hover {
  color: var(--accent);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.contact-row a:hover .contact-icon {
  border-color: rgba(74, 124, 255, 0.3);
  background: var(--accent-glow);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-details {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-details .availability {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
}

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.scroll-hint.visible {
  opacity: 1;
  pointer-events: auto;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 28px;
  height: 28px;
  stroke: var(--slate);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.scroll-hint:hover svg {
  opacity: 0.8;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Footer ── */
footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.78rem;
  color: var(--slate);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  body {
    scroll-snap-type: y proximity;
  }

  .panel-inner {
    padding: 4.5rem 1.5rem 3rem;
  }

  #node-graph {
    width: 500px;
    height: 500px;
    left: 50%;
    opacity: 0.4;
  }

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

  .btn-ghost {
    margin-left: 0;
    margin-top: 0.5rem;
    display: inline-block;
  }
}
