@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #f7f9fc;
  --bg-secondary: #eef3f9;
  --bg-surface: #ffffff;
  --bg-soft: #f1f6fb;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border-color: #d8e1ec;
  --border-strong: #b9c8d8;

  --accent-primary: #2d8cff;
  --accent-secondary: #4db4ff;
  --accent-soft: #69c7ff;
  --accent-violet: #6f78d8;
  --accent-teal: #53c2b0;

  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.07);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --content-width: 1120px;
  --article-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(77, 180, 255, 0.10), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg-primary) 32%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: clip;
  max-width: 100%
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("matrix-grid.svg");
  background-size: 900px auto;
  background-position: top right;
  background-repeat: no-repeat;
  opacity: 0.42;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: auto auto -80px -100px;
  width: 520px;
  height: 520px;
  background-image: url("hex-corner.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--accent-violet);
}

img {
  max-width: 100%;
  height: auto;
}

.site-shell {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 249, 252, 0.78);
  border-bottom: 1px solid rgba(216, 225, 236, 0.8);
}

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

.brand-mini {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 4rem;
  align-items: center;
  padding: 5.5rem 0 5rem;
  border-bottom: 1px solid var(--border-color);
}

.hero::before {
  content: "";
  position: absolute;
  top: 4rem;
  right: -12rem;
  width: 640px;
  height: 640px;
  background-image: url("hex-field.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.34;
  z-index: -1;
}

.hero-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  color: var(--accent-violet);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-eyebrow::before,
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.hero-logo {
  width: min(440px, 100%);
  margin: 0 0 2rem;
  display: block;
}

.hero h1 {
  margin: 0 0 1.4rem;
  max-width: 780px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero h1 span {
  display: block;
}

.hero-lede {
  max-width: 650px;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.74);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-violet));
  border-color: transparent;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.hero-visual {
  position: relative;
  min-height: 440px;
  border-left: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(247,249,252,0.92)),
    url("matrix-panel.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.94;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 5%;
  background-image: url("hex-network.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.72;
}

.visual-caption {
  position: absolute;
  right: 1.4rem;
  bottom: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: right;
}

.section {
  position: relative;
  padding: 5rem 0;
}

.section.hex-accent::after {
  content: "";
  position: absolute;
  right: -7rem;
  top: 4rem;
  width: 340px;
  height: 340px;
  background-image: url("hex-corner.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.09;
  pointer-events: none;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section h2 {
  margin: 0 0 1rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-intro {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.card,
.article-card,
.project-card {
  position: relative;
  padding: 1.55rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
  overflow: hidden;
}

.card::before,
.article-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-teal));
  opacity: 0.8;
}

.card h3,
.article-card h3,
.project-card h3 {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.card p,
.article-card p,
.project-card p {
  margin: 0;
  color: var(--text-secondary);
}

.meta,
.tag,
.category {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--accent-violet);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-layout {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 5rem 0;
}

.article-layout h1 {
  margin: 0 0 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.article-layout h2 {
  margin-top: 3.4rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.article-layout h3 {
  margin-top: 2.2rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.article-layout p,
.article-layout li {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.9;
}

.article-layout blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent-primary);
  background: rgba(77, 180, 255, 0.06);
  color: var(--text-primary);
}

.article-layout code,
pre {
  font-family: var(--font-mono);
}

pre {
  overflow: auto;
  padding: 1rem;
  background: #0b1220;
  color: #e8eef7;
  border: 1px solid #23324a;
}

.site-footer {
  position: relative;
  margin-top: 4rem;
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-color);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4), rgba(238,243,249,0.95)),
    url("footer-hex.svg");
  background-size: 680px auto;
  background-repeat: no-repeat;
  background-position: right bottom;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.footer-logo {
  width: 260px;
  max-width: 100%;
  margin-bottom: 1rem;
}

.footer-note {
  max-width: 560px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* Disney experiment accents */
.disney-callout,
.disney-meta {
  border-left: 4px solid var(--accent-soft, #69C7FF);
  background: rgba(105, 199, 255, 0.08);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}

.pull-quote {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  border-left: 4px solid #69C7FF;
  padding-left: 1rem;
  margin: 2rem 0;
}

.article-layout .disney-callout p,
.article-layout .disney-meta p {
  margin: 0;
}


/* Council page header */
.council-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(105, 199, 255, 0.22);
}

.council-role-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft, #69C7FF);
}

.council-header h1 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.council-subtitle {
  max-width: 48rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.council-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.council-keywords span {
  border: 1px solid rgba(105, 199, 255, 0.35);
  background: rgba(105, 199, 255, 0.08);
  padding: 0.35rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.council-header-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.council-header-visual img {
  width: 100%;
  max-width: 220px;
  height: auto;
}

@media (max-width: 900px) {
  .council-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .council-header-visual {
    justify-content: flex-start;
  }

  .council-header-visual img {
    max-width: 150px;
  }
}


@media (max-width: 900px) {
  body::after,
  .hero::before,
  .section.hex-accent::after { 
    display: none;
  } 
  
  .hero-visual { 
	overflow: hidden; 
  } 
  
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0;
  }

  .hero-visual {
    min-height: 260px;
    border-left: 0;
    border-top: 1px solid var(--border-color);
  }

  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 28px, var(--content-width));
  }

  .navbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }
}


.nav-link.active {
  color: var(--accent-primary);
}

.page-title {
  margin: 0 0 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 2rem;
}

.skill-pill {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.article-back {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

