@font-face {
  font-family: font01;
  src: url(T-StarPro-Bold.ttf);
}
@font-face {
  font-family: font02;
  src: url(T-StarPro-Heavy.ttf);
}
@font-face {
  font-family: font03;
  src: url(T-StarPro-Light.ttf);
}
@font-face {
  font-family: font04;
  src: url(T-StarPro-Medium.ttf);
}

/* ---------- Base reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: #f2f2f2;
  overflow-x: hidden;
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
a { text-decoration: none; }
ul, li { list-style: none; }

/* ---------- Variables ---------- */
:root{
  --nav-h: 64px;
  --pad: 16px;
  --card-max: 520px;

  --hero-block: 90svh;   /* nav + hero image target */
  --spill: 18px;         /* how much card spills into grey */
  --card-spill-vp: 12svh;
}

/* =========================================================
   TOP NAV (fixed, stable layout)
   ========================================================= */
header.grey01{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #242424;
  z-index: 1000;
}

/* Make nav a flex row and reorder items to:
   [logo] [title grows] [hamburger] */
nav.menu{
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--pad);
}

/* Reorder without changing HTML */
.logo01{ order: 1; }
.topTitle{ order: 2; }
.nav-toggle{ order: 3; }
.hamburger{ order: 4; }
.navContainer{ order: 5; }

.logo01{
  width: 44px;
  height: auto;
  position: static;
  z-index: 2;
}

/* Title sits next to logo, wraps nicely, never overlaps */
.topTitle{
  color: #fff;
  font-family: font03;
  font-size: 14px;
  line-height: 1.15;
  position: static;
  flex: 1 1 auto;
  min-width: 0;          /* allows wrapping inside flex */
}

/* Hide the checkbox (so it never appears as a visible square) */
.nav-toggle{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Hamburger on the far right */
.hamburger{
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin-left: auto;
  z-index: 1100;
}
.hamburger span{
  height: 2px;
  width: 100%;
  background: #fff;
  display: block;
}

/* Dropdown menu: directly under the bar, aligned to the right */
.navContainer{
  position: fixed;
  top: var(--nav-h);
  right: 0;
  background: #242424;
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px;
  z-index: 1200;
  border: 1px solid rgba(255,255,255,0.08);
}
.navContainer li{ margin: 0; list-style: none; }
.navContainer a{
  color: #fff;
  font-family: font01;
  font-size: 16px;
  letter-spacing: 2px;
}
.navContainer a:hover{ color: #959595; }

/* Toggle open */
.nav-toggle:checked ~ .navContainer{ display: flex; }

/* =========================================================
   MAIN LAYOUT
   ========================================================= */
main{
  padding-top: var(--nav-h); /* ensure content begins below fixed bar */
}

/* =========================================================
   HERO (image fills viewport minus the top bar)
   ========================================================= */
.hero{
  position: relative;
  height: calc(var(--hero-block) - var(--nav-h));
  overflow: visible;            /* key: allow card to spill */
  margin-bottom: calc(var(--card-spill-vp) + 6svh);  /* creates visible grey strip below hero */
  background: #000; /* avoids gray flashes while image loads */
}
.mainImgContainer{
  height: 100%;
  overflow: hidden;
}
.mainImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  margin-top: 0; /* IMPORTANT: remove the old 90px margin */
}

/* =========================================================
   HERO CARD (your HTML has an empty .introBack div, so we
   use it as the white panel background and pad on the section)
   ========================================================= */
.heroCard{
  position: absolute;

  right: 0;      /* flush to screen edge */
  bottom: 0;     /* attach to hero bottom */

  width: min(85vw, var(--card-max));
  padding:
    clamp(16px, 1.2em, 28px)
    clamp(16px, 1.2em, 28px)
    clamp(20px, 1.5em, 36px);
  z-index: 10;
  transform: translateY(var(--card-spill-vp));
}

/* white panel */
.heroCard .introBack{
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 0;
}

/* put text above the panel */
.heroCard h1,
.heroCard h4,
.heroCard h5,
.heroCard h6{
  position: relative;
  z-index: 1;
}

/* NII/japan: top-right inside card */
.heroCard h5{
  position: absolute;
  top: 34px;
  right: 18px;
  font-family: font02;
  font-size: 32px;
  color: #000;
}
.heroCard h6{
  position: absolute;
  top: 66px;
  right: 18px;
  font-family: font01;
  font-size: 13px;
  color: #000;
}

/* QUANTUM / CENTER: keep within card; reduce “over-breaking” feel */
.heroCard h1{
  margin-top: 124px;               /* clears NII/japan block */
  font-family: font01;
  font-size: clamp(47px, 14.6vw, 73px);
  letter-spacing: 0.15em;            /* slightly tighter to stay inside */
  line-height: 0.95;
  color: #000;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: keep-all;
}

/* Subtitle: airy spacing below it */
.heroCard h4{
  margin-top: 1px;
  padding-bottom: 160px;            /* “more air below Global Research…” */
  font-family: font03;
  font-size: clamp(18px, 5.6vw, 28px);
  line-height: 1.2;
  color: #9f9f9f;
  max-width: 28ch;
}

/* =========================================================
   SECTION TITLE + CARDS (mobile readability)
   ========================================================= */
.introText{
  text-align: center;
  font-family: font01;
  color: #9f9f9f;
  font-size: 32px;
  letter-spacing: 6px;
  margin: 36px 0 18px;
}

.baseline{
  background: #fff;
  margin: 0 var(--pad);
  padding: 24px 22px;
}
.baseline2{
  margin: 22px var(--pad);
  padding: 24px 22px;
}

.introtext h2{
  font-family: font01;
  font-size: clamp(20px, 7vw, 40px);

  /* Reduce “too many short lines” a bit by slightly tightening tracking
     and allowing a touch more measure via padding above. */
  letter-spacing: 0.5px;
  line-height: 1.08;
  color: #000;
}
.introtext p{
  margin-top: 14px;
  font-family: font03;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.35px;
  color: #000;
}

/* =========================================================
   HIDE BOTTOM IMAGE ON MOBILE (show footer after 2nd card)
   ========================================================= */
.imgContain{
  display: none;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer{
  background: #7d7d7d;
  padding: 48px var(--pad) 28px;
}
#alllink{
  display: flex;
  justify-content: center;
}
#alllink p{
  color: #fff;
  font-family: font04;
  font-size: 20px;
  text-align: center;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
  width: 150px;
  padding: 6px 0;
}
#alllink p:hover{ color:#4f4f4f; }
#legal p{
  margin-top: 28px;
  color: #fff;
  font-family: font03;
  font-size: 18px;
  text-align: center;
}