:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #53606c;
  --line: #dce5e9;
  --paper: #f7faf9;
  --white: #ffffff;
  --cyan: #1d8ea7;
  --blue: #204f8f;
  --green: #2f7f66;
  --amber: #b56a2c;
  --graphite: #18212a;
  --shadow: 0 22px 60px rgba(16, 24, 32, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.74;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border-radius: var(--radius);
  padding: 9px 12px;
  color: currentColor;
  font-size: 0.92rem;
  font-weight: 650;
  opacity: 0.86;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(29, 142, 167, 0.12);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  color: var(--white);
  background: var(--graphite);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 18, 26, 0.88), rgba(10, 18, 26, 0.56) 42%, rgba(10, 18, 26, 0.12)),
    linear-gradient(180deg, rgba(10, 18, 26, 0.22), rgba(10, 18, 26, 0.52));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(760px, calc(100% - 40px));
  min-height: 88vh;
  margin-left: clamp(20px, 8vw, 112px);
  padding: 110px 0 78px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #80d7e4;
}

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

h1 {
  max-width: 9ch;
  margin-bottom: 18px;
  font-size: clamp(4rem, 12vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
}

.hero-actions,
.link-row,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--cyan);
  box-shadow: 0 16px 34px rgba(29, 142, 167, 0.28);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.button-light {
  border-color: rgba(32, 79, 143, 0.18);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.section {
  padding: clamp(72px, 9vw, 130px) clamp(20px, 4vw, 56px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 36px;
}

.section-heading p:last-child,
.section-intro p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-actions {
  margin-top: 22px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
}

.section-intro {
  background: var(--white);
}

.research-grid,
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.research-item,
.book-card {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(16, 24, 32, 0.04);
}

.research-item {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

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

.item-number {
  margin-bottom: auto;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
}

.section-books {
  background: #eef5f3;
}

.section-energy {
  background:
    linear-gradient(135deg, rgba(181, 106, 44, 0.13), rgba(47, 127, 102, 0.13)),
    var(--white);
}

.solar-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.solar-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.solar-panel article {
  border-left: 3px solid var(--amber);
  padding: 16px 16px 14px;
  background: var(--white);
}

.solar-panel article:nth-child(2) {
  border-left-color: var(--cyan);
}

.solar-panel article:nth-child(3) {
  border-left-color: var(--green);
}

.solar-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.book-card {
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 22px;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  border: 1px solid rgba(32, 79, 143, 0.18);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--blue);
  background: rgba(32, 79, 143, 0.07);
  font-size: 0.76rem;
  font-weight: 800;
}

.book-card a {
  color: var(--green);
  font-weight: 850;
}

.section-sciveo {
  color: var(--white);
  background:
    radial-gradient(circle at 8% 0%, rgba(29, 142, 167, 0.28), transparent 28%),
    linear-gradient(135deg, #18212a 0%, #25313a 48%, #12232f 100%);
}

.sciveo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.68fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.sciveo-copy p:not(.section-kicker) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
}

.terminal-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(5, 10, 14, 0.62);
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d76962;
}

.terminal-bar span:nth-child(2) {
  background: #d6a647;
}

.terminal-bar span:nth-child(3) {
  background: #53b783;
}

pre {
  margin: 0;
  padding: 34px 22px 76px;
  overflow-x: auto;
}

code {
  color: #bceff5;
  font: 700 1.05rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.copy-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-weight: 800;
}

.section-contact {
  background: var(--white);
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(32px, 5vw, 56px) 0;
}

.contact-panel h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.section-projects {
  padding-top: 48px;
  padding-bottom: 64px;
  background: #eef5f3;
}

.compact-heading {
  margin-bottom: 22px;
}

.compact-heading h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

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

.project-widget {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(16, 24, 32, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.project-widget:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.widget-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
}

.project-widget strong,
.project-widget small {
  display: block;
}

.project-widget strong {
  margin-bottom: 4px;
  font-size: 1.02rem;
  line-height: 1.15;
}

.project-widget small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.sciveo-widget {
  border-color: rgba(29, 142, 167, 0.18);
}

.sciveo-widget .widget-mark {
  background: var(--cyan);
}

.smiveo-widget {
  border-color: rgba(32, 79, 143, 0.18);
}

.smiveo-widget .widget-mark {
  background: var(--blue);
}

.games-widget {
  border-color: rgba(181, 106, 44, 0.2);
}

.games-widget .widget-mark {
  background: var(--amber);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.74);
  background: #101820;
  font-size: 0.9rem;
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px;
  }

  .intro-grid,
  .solar-layout,
  .sciveo-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 70px;
    padding: 12px 16px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    top: 70px;
    right: 16px;
    left: 16px;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding-top: 96px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 18, 26, 0.9), rgba(10, 18, 26, 0.66)),
      linear-gradient(180deg, rgba(10, 18, 26, 0.08), rgba(10, 18, 26, 0.62));
  }

  .hero-actions,
  .link-row,
  .section-actions,
  .contact-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 16px;
  }

  .research-grid,
  .book-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .research-item,
  .book-card {
    min-height: 220px;
  }
}
