/* ================================================================
   GIORGIO MANFREDI — v4 Editorial Monolith
   Reference: Wallpaper* / ZHA / deep-tech portfolio
   ================================================================ */



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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #151515;
  color: #fff;
  font-family: "Calibri", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
}

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --nav-h: 60px;
  --px: clamp(24px, 6vw, 80px);
  --sec-py: 48px;
  --grey: #b0b7c3;
  --grey-dim: #888;
  --display: "Calibri", sans-serif;
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(21, 21, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--px);
}

.nav-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 200;
  font-style: italic;
  letter-spacing: .08em;
  text-transform: none;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 2.5vw, 40px);
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a1a1aa;
  text-decoration: none;
  transition: color .18s;
}

.nav-links a:hover {
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background: #fff;
  transition: transform .28s, opacity .2s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: #151515;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--px);
  gap: clamp(22px, 4vw, 38px);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: clamp(26px, 6vw, 48px);
  font-weight: 300;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #777;
  text-decoration: none;
  transition: color .18s;
}

.nav-mobile a:hover {
  color: #fff;
}

/* ── HERO — full-screen background portrait ──────────────── */
#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
}

/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(8%) contrast(1.04);
}

/* Dark overlay + vignette */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* deep darken */
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.55) 100%),
    /* vignette */
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
}

/* Particle canvas */
#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Centered text overlay */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
  padding: 0 var(--px);
  max-width: 860px;
  margin-right: auto;
}

.hero-eyebrow {
  font-family: var(--display);
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: clamp(20px, 3vw, 36px);
}

.hero-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7.5vw, 96px);
  font-weight: 200;
  font-style: italic;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: none;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.hero-intro {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.85;
  max-width: 60ch;
}

/* ── SECTION BASE (no borders — whitespace only) ───────────── */
.sec {
  padding: var(--sec-py) var(--px);
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.sec-num {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 16px;
}

.sec-title {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.15;
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* ── CARD base ─────────────────────────────────────────────── */
.card {
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 36px);
  transition: border-color .25s ease, background .25s ease;
}

.card:hover {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.14);
}

/* ── 01 ABOUT — wide 50/50 grid ────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 4vw, 72px);
  align-items: start;
}

.about-header .sec-num {
  margin-bottom: 20px;
}

.about-header .sec-title {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -.015em;
}

.about-body {}

.about-body p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #c8cdd8;
  margin-bottom: 20px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* ── 02 PATENTS — timeline grid ────────────────────────────── */
.patents-list {
  display: flex;
  flex-direction: column;
}

.patent-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(28px, 3vw, 48px);
  align-items: start;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.patent-item:first-child {
  border-top: none;
  padding-top: 0;
}

.patent-period {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #999;
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}

.patent-content h4 {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.patent-content p {
  font-size: 16px;
  font-weight: 400;
  color: #b0b7c3;
  line-height: 1.75;
}

/* ── 03 TECH-ART — card grid ───────────────────────────────── */
.techart-intro {
  font-size: 16px;
  font-family: "Calibri", sans-serif;
  font-style: normal;
  font-weight: 400;
  color: #b8bdc8;
  line-height: 1.75;
  max-width: 80ch;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.techart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.techart-year {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 12px;
}

.techart-item h4 {
  font-size: 20px;
  font-weight: 500;
  font-family: var(--display);
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.techart-item p {
  font-size: 16px;
  font-weight: 400;
  color: #b0b7c3;
  line-height: 1.75;
  margin-bottom: 16px;
  flex-grow: 1;
}

.techart-item {
  display: flex;
  flex-direction: column;
}

.techart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #aab;
  text-decoration: none;
  margin-top: auto;
  cursor: pointer;
  transition: color .2s ease;
}

.techart-link:hover {
  color: #fff;
}

.techart-link::after {
  content: "↗";
  font-size: 11px;
}

.techart-link.disabled {
  cursor: default;
  opacity: .5;
}

.techart-link.disabled:hover {
  color: #aab;
}

.techart-link.disabled::after {
  display: none;
}

.coming-soon {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #555;
  margin-top: 4px;
  font-style: italic;
}

/* ── 04 VENTURES — card grid ───────────────────────────────── */
.venture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.venture-item {
  display: flex;
  flex-direction: column;
}

.venture-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 14px;
}

.venture-item h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.venture-item h3 em {
  font-style: normal;
  font-family: var(--display);
  font-weight: 600;
}

.venture-item p {
  font-size: 16px;
  font-weight: 400;
  color: #b0b7c3;
  line-height: 1.75;
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  width: 100%;
  padding: 32px var(--px);
  border-top: 1px solid #2a2a2a;
  scroll-margin-top: calc(var(--nav-h) + 20px);
  margin-top: 64px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-link {
  font-size: 24px;
  font-weight: 400;
  color: #9ca3af;
  text-decoration: none;
  transition: color .3s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-sep {
  font-size: 24px;
  color: #444;
  user-select: none;
}

/* ── Scroll animations ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */

/* Tablet 768–1099px */
@media (max-width: 1099px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
  }

  .about-header .sec-title {
    position: static;
    margin-bottom: clamp(24px, 3vw, 36px);
  }

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

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

/* Mobile < 768px */
@media (max-width: 767px) {
  :root {
    --px: 5vw;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  #hero {
    min-height: 100svh;
  }

  .hero-name {
    font-size: clamp(32px, 10vw, 56px);
  }

  .patent-item {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }

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

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

  .footer-inner {
    flex-direction: column;
    align-items: center;
  }
}

/* Ultrawide */
@media (min-width: 1600px) {
  :root {
    --px: 6vw;
  }

  .techart-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}