:root {
  --bg: #081626;
  --bg-deep: #040b14;
  --cyan-900: #0d2438;
  --cyan-800: #12324b;
  --cyan-700: #17435f;
  --text: #eef6ff;
  --muted: #b7c8dc;
  --soft: #e8f3ff;
  --line: rgba(232, 243, 255, 0.17);
  --surface: rgba(13, 36, 56, 0.82);
  --surface-strong: rgba(18, 50, 75, 0.94);
  --accent: #86d7ff;
  --accent-warm: #f4c76b;
  --accent-coral: #ff9a8a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(145deg, var(--bg-deep) 0%, var(--bg) 42%, #0c243a 72%, #0a1725 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--bg-deep);
  color: var(--text);
  padding: 0.7rem 0.9rem;
}

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

.site-shell {
  width: min(1160px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
  padding: 1rem 0;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.link-grid,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.8rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(100, 244, 223, 0.5);
  border-radius: 8px;
  background: rgba(100, 244, 223, 0.1);
  color: var(--accent);
  font-size: 0.84rem;
}

.site-nav {
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 16, 18, 0.42);
  padding: 0.35rem;
}

.site-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(100, 244, 223, 0.1);
  color: var(--text);
}

.hero {
  padding: 4rem 0;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 560px) 235px;
  grid-template-areas:
    "title portrait"
    "statement portrait"
    "actions portrait";
  align-items: center;
  justify-content: center;
  column-gap: 2rem;
  row-gap: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  grid-area: title;
  margin-bottom: 0.8rem;
  color: var(--soft);
  font-size: 2.05rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-statement {
  grid-area: statement;
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 450;
  line-height: 1.65;
}

.hero-statement a {
  color: var(--accent);
  text-decoration-color: rgba(100, 244, 223, 0.5);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.hero-statement a:hover,
.hero-statement a:focus-visible {
  color: var(--accent-warm);
  text-decoration-color: rgba(244, 199, 107, 0.65);
}

.lede {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions {
  grid-area: actions;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.52rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.work-item:hover,
.work-item:focus-visible,
.link-grid a:hover,
.link-grid a:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
}

.portrait {
  grid-area: portrait;
  position: relative;
  margin: 0;
}

.portrait::before {
  display: none;
}

.portrait img {
  position: relative;
  width: min(100%, 235px);
  margin-left: 0;
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: 52% 28%;
}

.section {
  border-top: 1px solid var(--line);
  padding: 4.5rem 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

h2 {
  margin-bottom: 0;
  color: var(--soft);
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

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

.research-card,
.work-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.research-card {
  padding: 1.25rem;
}

.research-card p,
.work-item p,
.site-footer {
  color: var(--muted);
}

.card-kicker,
.work-type {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 800;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.work-item {
  display: block;
  min-height: 230px;
  padding: 1.35rem;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.work-item:hover,
.work-item:focus-visible {
  border-color: rgba(100, 244, 223, 0.55);
  background: var(--surface-strong);
}

.work-item:nth-child(2n) .work-type {
  color: var(--accent-coral);
}

.link-grid {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-weight: 700;
  padding: 0.8rem 0.95rem;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-grid a:hover,
.link-grid a:focus-visible {
  border-color: rgba(244, 199, 107, 0.55);
  background: rgba(244, 199, 107, 0.08);
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "portrait"
      "statement"
      "actions";
    justify-items: center;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    row-gap: 1rem;
  }

  .portrait img {
    margin-left: auto;
    margin-right: auto;
    width: min(100%, 220px);
  }

  h1 {
    width: 100%;
    margin-bottom: 0;
    font-size: 2.05rem;
    text-align: center;
  }

  .portrait {
    justify-self: center;
    margin: 0;
  }

  .hero-statement {
    max-width: 620px;
    font-size: 1.05rem;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 0;
  }

  .research-grid,
  .work-list {
    grid-template-columns: 1fr;
  }

  .work-item {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 32px, 1160px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 1rem 0 0.8rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    justify-items: center;
    gap: 0;
    padding: 2rem 0;
    text-align: center;
  }

  .hero-copy {
    grid-template-areas:
      "title"
      "portrait"
      "statement"
      "actions";
    row-gap: 1rem;
    max-width: 34rem;
  }

  h1 {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1.9rem;
    line-height: 1.04;
    text-align: center;
  }

  .portrait {
    justify-self: center;
    margin: 0 0 1rem;
  }

  .portrait img {
    width: min(58vw, 170px);
    margin: 0 auto;
  }

  .hero-statement {
    max-width: 34rem;
    font-size: 0.94rem;
    line-height: 1.55;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.55rem;
    margin-top: 1rem;
    width: auto;
  }

  h2 {
    font-size: 2rem;
  }

  .lede {
    font-size: 1rem;
  }

  .button {
    width: auto;
    padding: 0.46rem 0.6rem;
    font-size: 0.78rem;
    text-align: center;
    white-space: nowrap;
  }

  .section {
    padding: 3.25rem 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
