/* === Reset & Base === */
@import url('variables.css');
@import url('animations.css');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-teal-dark); }

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

:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

/* === Scroll Progress Bar === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
  z-index: 1001;
  width: 0%;
  transition: none;
}

/* ================================================
   NAVBAR — Ultra-minimal
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(24, 29, 35, 0.95);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(0, 180, 160, 0.1);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  transition: color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: var(--space-sm);
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: var(--space-sm);
}
.lang-switch a {
  color: rgba(255,255,255,0.4);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.lang-switch a.active,
.lang-switch a:hover { color: #fff; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  height: 100dvh;
  background: var(--color-dark);
  padding: calc(var(--nav-height) + var(--space-lg)) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mobile-menu a:hover { color: #fff; }

/* ================================================
   HERO — Overlapping portrait, bold type
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  overflow: visible;
  padding: var(--nav-height) 0 0;
  z-index: 2;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: end;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-lg);
}

.hero-content {
  max-width: 700px;
  padding-bottom: var(--space-md);
}

.hero-prefix {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-dark);
  background: var(--color-teal);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: var(--space-sm);
}

.hero-name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  color: #fff;
  line-height: 0.92;
  margin-bottom: var(--space-md);
}
.hero-name em {
  font-style: normal;
  color: var(--color-teal);
  display: block;
}

.hero-subtitle {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
  border-left: 2px solid var(--color-teal);
  padding-left: var(--space-sm);
}

.hero-affiliation {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-lg);
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Portrait — bleeds out of hero into next section */
.hero-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: -6rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 60%,
    rgba(24, 29, 35, 0.4) 100%
  );
  pointer-events: none;
}
.hero-portrait-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-graphite), var(--color-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(255,255,255,0.15);
  font-weight: 700;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce-down 2s infinite;
}
.scroll-indicator svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-teal-light);
  opacity: 0.4;
}

/* ================================================
   MARQUEE — Scrolling keywords
   ================================================ */
.marquee-wrap {
  background: var(--color-dark);
  border-top: 1px solid rgba(0, 180, 160, 0.08);
  border-bottom: 1px solid rgba(0, 180, 160, 0.08);
  overflow: hidden;
  padding: var(--space-sm) 0;
  position: relative;
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}
.marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-dark), transparent);
}
.marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-dark), transparent);
}
.marquee {
  display: flex;
  gap: var(--space-lg);
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}
.marquee span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.marquee span::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--color-teal);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--color-teal);
  color: #fff;
  border-color: var(--color-teal);
}
.btn-primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--color-teal);
  color: #fff;
  background: rgba(0, 180, 160, 0.08);
}
.btn-gold {
  background: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: #C09530;
  border-color: #C09530;
  color: var(--color-dark);
  transform: translateY(-1px);
}

/* ================================================
   SECTIONS — Chapter-based layout
   ================================================ */
.section {
  padding: var(--space-xl) 0;
  position: relative;
}
.section--dark {
  background: var(--color-dark);
  color: #fff;
}
.section--graphite {
  background: var(--color-graphite);
  color: #fff;
}
.section--light {
  background: var(--color-warm-white);
}
.section--white {
  background: #fff;
}

/* Section header — distinctive per section */
.section-header {
  margin-bottom: var(--space-lg);
  position: relative;
}
.section-number { display: none; }
.section-rule { display: none; }

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
  display: inline-block;
  background: rgba(0, 180, 160, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}
.section--dark .section-label,
.section--graphite .section-label {
  color: var(--color-teal);
  background: rgba(0, 180, 160, 0.1);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, var(--text-4xl));
  color: var(--color-dark);
  max-width: 640px;
  line-height: 1.1;
}
.section--dark .section-title,
.section--graphite .section-title { color: #fff; }

/* First light section needs extra top padding for overlapping portrait */
#o-mnie, #about { padding-top: 8rem; }

/* ================================================
   ABOUT — Editorial two-column
   ================================================ */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-bio {
  font-size: var(--text-lg);
  line-height: 1.9;
  color: var(--color-text);
  max-width: 640px;
}
.about-bio strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Stats — horizontal band */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  padding: var(--space-md);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.35rem;
}

/* Timeline — horizontal */
.timeline-section {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.timeline-row {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
}
.timeline-item {
  flex: 0 0 auto;
  width: 200px;
  padding-right: var(--space-md);
  border-right: 1px solid rgba(0, 180, 160, 0.1);
  scroll-snap-align: start;
}
.timeline-item:last-child { border-right: none; }
.timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-teal-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.timeline-text {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.5;
}

/* ================================================
   RESEARCH — Horizontal strips
   ================================================ */
.research-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.research-strip {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0, 180, 160, 0.08);
  transition: background 0.3s ease, padding 0.3s ease;
}
.research-strip:first-child {
  border-top: 1px solid rgba(0, 180, 160, 0.08);
}
.research-strip:hover {
  background: rgba(0, 180, 160, 0.05);
  border-left: 3px solid var(--color-teal);
  padding-left: calc(var(--space-sm) - 3px);
}
.research-strip .strip-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  color: var(--color-teal);
  flex-shrink: 0;
  margin-top: 4px;
}
.research-strip .strip-icon svg {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  display: block;
}
.research-strip .strip-icon svg path,
.research-strip .strip-icon svg rect,
.research-strip .strip-icon svg circle {
  fill: none;
  stroke: inherit;
}
.strip-content h3 {
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: 0.5rem;
}
.strip-content p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 560px;
}
.strip-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  padding-top: 6px;
}

/* ================================================
   PROJECTS
   ================================================ */
.project-flagship {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-graphite) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: #fff;
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 180, 160, 0.1);
}
.project-flagship::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-teal), var(--color-teal-dark));
}
.project-flagship h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xs);
}
.project-badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
}
.project-flagship > p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin-bottom: var(--space-md);
}
.project-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem var(--space-lg);
}
.project-features li {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  padding-left: 1.25rem;
  position: relative;
}
.project-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-teal);
  font-weight: 700;
}
.project-status {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.project-card {
  background: #fff;
  border: 1px solid rgba(0, 180, 160, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.project-card h4 {
  font-size: var(--text-lg);
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}
.project-card p {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* FAQ */
.faq-list {
  max-width: var(--max-w-narrow);
  margin-top: var(--space-xl);
  border-top: 1px solid rgba(0, 180, 160, 0.15);
}
.faq-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0, 180, 160, 0.1);
}
.faq-item h4 {
  font-size: var(--text-base);
  color: var(--color-dark);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.25rem 0;
  transition: color var(--transition);
}
.faq-item h4:hover { color: var(--color-teal); }
.faq-item h4::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-teal);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open h4::after {
  content: '−';
}
.faq-item p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding-top: 0;
}
.faq-item.open p {
  max-height: 200px;
  padding-top: 0.5rem;
}

/* ================================================
   PATENTS — Data sheet layout
   ================================================ */
.patents-intro {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: var(--space-lg);
  border-left: 3px solid var(--color-teal);
  padding-left: var(--space-sm);
}

.patents-table {
  width: 100%;
  border-collapse: collapse;
}
.patents-table thead th {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted);
  text-align: left;
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 0;
  border-bottom: 1px solid rgba(0, 180, 160, 0.15);
}
.patents-table tbody td {
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 0;
  border-bottom: 1px solid rgba(0, 180, 160, 0.06);
  vertical-align: top;
}
.patents-table tbody tr {
  transition: background 0.2s ease;
}
.patents-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.patent-id {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-teal);
  white-space: nowrap;
}
.patent-title-cell {
  font-size: var(--text-sm);
  color: #fff;
}
.patent-use-cell {
  font-size: var(--text-xs);
  color: var(--color-muted);
  white-space: nowrap;
}

/* ================================================
   AWARDS — Horizontal scroll
   ================================================ */
.awards-scroll-wrap {
  position: relative;
  margin: 0 calc(-1 * var(--space-md));
  padding: 0 var(--space-md);
}
.awards-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-xs) 0 var(--space-md);
  scrollbar-width: none;
}
.awards-scroll::-webkit-scrollbar { display: none; }

.award-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: transform 0.3s ease, background 0.3s ease;
}
.award-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
}
.award-year {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.award-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.award-org {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* ================================================
   INDUSTRY (B2B)
   ================================================ */
.b2b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.b2b-card {
  padding: var(--space-md);
  border: 1px solid rgba(0, 180, 160, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.b2b-card:hover {
  border-color: var(--color-teal);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 180, 160, 0.08);
}
.b2b-card h3 {
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-sm);
}
.b2b-card ul { list-style: none; }
.b2b-card li {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  padding: 0.35rem 0;
  padding-left: 1rem;
  position: relative;
}
.b2b-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-teal);
}
.b2b-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ================================================
   TEACHING — Tabs
   ================================================ */
.tabs {
  max-width: var(--max-w-narrow);
}
.tab-buttons {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(0, 180, 160, 0.15);
  margin-bottom: var(--space-md);
}
.tab-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}
.tab-btn.active { color: var(--color-dark); }
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-teal);
}
.tab-content {
  display: none;
  animation: fadeIn 0.4s var(--ease-out);
}
.tab-content.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.tab-content ul { list-style: none; }
.tab-content li {
  padding: 0.5rem 0;
  padding-left: 1rem;
  position: relative;
  font-size: var(--text-base);
  border-bottom: 1px solid rgba(0, 180, 160, 0.08);
}
.tab-content li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-teal);
}

/* ================================================
   PUBLICATIONS
   ================================================ */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-lg);
}
.pub-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pub-item h4 {
  font-size: var(--text-base);
  color: #fff;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}
.pub-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: color var(--transition);
}
.pub-item a:hover h4 {
  color: var(--color-teal);
}
.pub-meta {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: 0.35rem;
}
.pub-links {
  display: flex;
  gap: var(--space-sm);
}

/* ================================================
   CONTACT
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.contact-info h3 {
  font-size: var(--text-2xl);
  color: var(--color-dark);
  margin-bottom: var(--space-md);
}
.contact-detail {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
}
.contact-detail svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--color-teal);
  fill: none;
  stroke-width: 1.5;
  margin-top: 3px;
}
.contact-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.contact-links a {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-ivory);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}
.contact-links a:hover {
  background: var(--color-teal);
  color: #fff;
  border-color: var(--color-teal);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-group label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 180, 160, 0.1);
  outline: none;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ================================================
   FOOTER — Minimal
   ================================================ */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.6);
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid rgba(0, 180, 160, 0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-brand .nav-logo {
  margin-bottom: var(--space-xs);
  display: block;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-teal);
  font-size: var(--text-lg);
  opacity: 0.7;
}
.footer h4 {
  color: #fff;
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.3rem; }
.footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: var(--text-sm);
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  flex-wrap: wrap;
  gap: var(--space-xs);
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: #fff; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-portrait {
    max-width: 280px;
    margin-bottom: -3rem;
  }
  .hero-name { font-size: clamp(2.5rem, 8vw, 4rem); }

  .about-layout { flex-direction: column; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
  #o-mnie, #about { padding-top: 6rem; }

  .research-strip { grid-template-columns: 48px 1fr; }
  .strip-tag { grid-column: 2; }

  .b2b-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

@media (max-width: 768px) {
  .section { padding: var(--space-lg) 0; }
  .section-number { font-size: 3.5rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-features { grid-template-columns: 1fr; }

  .timeline-row { gap: 0; }
  .timeline-item { width: 170px; }

  .award-card { flex: 0 0 220px; }

  .hero-portrait { max-width: 240px; }

  .patents-table { font-size: var(--text-sm); }
  .patents-table thead { display: none; }
  .patents-table tbody td {
    display: block;
    padding: 0.25rem 0;
    border: none;
  }
  .patents-table tbody tr {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0, 180, 160, 0.08);
    display: block;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-sm); }
  .hero-cta { flex-direction: column; align-items: center; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .pub-item { padding: var(--space-xs) 0; }
}

/* ================================================
   PRINT — show everything
   ================================================ */
@media print {
  [data-animate],
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-name, .hero-prefix, .hero-subtitle,
  .hero-affiliation, .hero-cta, .hero-portrait {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .marquee-wrap { display: none; }
  .scroll-progress { display: none; }
  .navbar { position: static; background: var(--color-dark); }
  .section { padding: 2rem 0; }
  .hero { min-height: auto; padding: 2rem 0; }
}
