/* =========================
   Base / Reset
========================= */
:root {
  --bg-dark: #090b12;
  --bg-dark-soft: #101422;
  --bg-light: #f7f8fc;
  --surface-light: #ffffff;
  --text-light: #e9eefb;
  --text-dark: #12141d;
  --muted-dark: #98a2bc;
  --muted-light: #5f667a;
  --accent: #5f5bff;
  --accent-soft: #8a86ff;
  --border-dark: rgba(255, 255, 255, 0.15);
  --border-light: rgba(18, 20, 29, 0.1);
  --radius: 18px;
  --shadow: 0 20px 55px rgba(8, 11, 26, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: linear-gradient(180deg, #f6f8ff 0%, #f4f4f7 100%);
}

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

ul,
ol {
  padding: 0;
  list-style-position: inside;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 2.3rem;
  height: 2px;
  background: currentColor;
  opacity: 0.55;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
}

/* =========================
   Header / Navigation
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 11, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-list a {
  text-decoration: none;
  color: #b7c0d8;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: #fff;
}

/* =========================
   Shared Section Styles
========================= */
.light-section {
  background: linear-gradient(180deg, #f8f9ff 0%, #f2f4fa 100%);
  color: var(--text-dark);
}

.dark-section {
  background:
    radial-gradient(circle at 10% 0%, rgba(99, 93, 255, 0.2), transparent 42%),
    radial-gradient(circle at 90% 10%, rgba(0, 145, 255, 0.14), transparent 30%),
    linear-gradient(180deg, var(--bg-dark) 0%, #07080d 100%);
  color: var(--text-light);
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.55rem, 3.8vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  margin-bottom: 0.7rem;
  line-height: 1.25;
}

.lead {
  max-width: 64ch;
  font-size: 1.06rem;
  color: inherit;
  opacity: 0.9;
}

/* =========================
   Hero
========================= */
.hero {
  padding-top: 7.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.hero-copy h2 {
  font-size: clamp(1.1rem, 2vw, 1.48rem);
  font-weight: 500;
  color: #c7d0e9;
}

.hero-copy .lead {
  color: #aeb7cf;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1a5eff 0%, #5e5bff 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 12px 24px rgba(26, 94, 255, 0.35);
}

.btn-secondary {
  color: #dbe5ff;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-dark);
}

.hero-panel {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.hero-panel h3 {
  margin-bottom: 1rem;
}

.hero-panel ol {
  display: grid;
  gap: 0.8rem;
  color: #d9e1f8;
  margin-bottom: 1.2rem;
}

.hero-headshot {
  width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

/* =========================
   About
========================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-grid p + p {
  margin-top: 1rem;
}

.link-groups {
  display: grid;
  gap: 1rem;
}

.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--surface-light);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(20, 29, 53, 0.06);
}

.card ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.card a {
  color: #2d50ff;
  text-decoration: none;
  font-weight: 600;
}

.card a:hover,
.card a:focus-visible {
  text-decoration: underline;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.social-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

/* =========================
   Featured Work
========================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.experience-card {
  border: 1px solid var(--border-dark);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border-radius: var(--radius);
  padding: 1.2rem;
}

.experience-card .label {
  color: #b6c2de;
  margin-bottom: 0.65rem;
  font-weight: 550;
}

.experience-card p + p {
  margin-top: 0.75rem;
}

/* =========================
   Case Studies / Timeline
========================= */
.timeline {
  margin-top: 1rem;
  border-left: 2px solid rgba(95, 91, 255, 0.3);
  padding-left: 1rem;
  display: grid;
  gap: 1.25rem;
}

.timeline article {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #fff;
  padding: 1rem 1.1rem;
}

/* =========================
   Brand / Enterprise
========================= */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tag-list li {
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.94rem;
}

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

/* =========================
   Contact / Footer
========================= */
.contact-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.contact-list a {
  text-decoration: none;
  color: #e4ebff;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.site-footer {
  padding: 1.2rem 0;
  background: #06070b;
  color: #9ea9c8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================
   Placeholder blocks
========================= */
.placeholder-block {
  margin-top: 0.9rem;
  min-height: 140px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  font-size: 0.93rem;
  color: rgba(240, 245, 255, 0.86);
  text-align: center;
  padding: 1rem;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .section {
    padding: 4.2rem 0;
  }

  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .nav-wrap {
    min-height: 68px;
    padding: 0.7rem 0;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: none;
    background: rgba(9, 11, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.8rem;
    backdrop-filter: blur(14px);
  }

  .site-header nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cards-grid,
  .enterprise-grid {
    grid-template-columns: 1fr;
  }
}
