/* ==========================================================================
   Monash VISTA — site styles
   Built from the VISTA Design System (colours, type, spacing, components).
   Used by every page: index.html, team.html, projects.html
   Sections:
     1. Tokens (colours, spacing, fonts)  – change brand values here
     2. Base
     3. Components (button, link, label, tracking frame, chevron cuts, glow)
     4. Layout helpers
     5. Header & nav
     6. Homepage sections (hero, about, vision/mission/purpose, team, projects, get involved)
     7. Inner pages (page header, team cards, project rows, closing band)
     7b. MSI Lab page
     7c. Partner / Sponsor page
     8. Footer
     9. Placeholders (remove once the team's text is in)
    10. Phone / tablet adjustments
    11. Reduced motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root,
[data-theme="light"] {
  --mint: #05F2AF;
  --mint-deep: #027353;     /* mint for TEXT on light backgrounds (Mint itself is too light) */
  --mint-wash: #e1fef6;
  --black: #000000;
  --white: #ffffff;
  --off-white: #e9eeec;     /* the soft light background used for light sections */
  --body-dark: #2a2e31;     /* very dark grey body text on light sections */
  --body-light: #c4cbcf;    /* light grey body text on dark sections */

  --surface: #ffffff;
  --surface-raised: #f2f6f8;
  --ink: #000000;
  --ink-muted: #5a6268;
  --line: #c9d1d6;
  --accent: var(--mint-deep);
  --accent-fill: var(--mint);
  --on-accent-fill: var(--black);
  --track: var(--mint-deep);
  --on-track: var(--white);
  --focus: var(--black);

  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-6: 24px; --space-8: 32px;  --space-12: 48px; --space-16: 64px;
  --space-24: 96px; --space-32: 128px;

  --radius-tip: 6px;
  --cut-sm: 10px;
  --cut-lg: 32px;

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --page-max: 1280px;

  /* The green glow used behind headers and closing bands */
  --glow: radial-gradient(ellipse 75% 85% at 50% 100%, #073f2f 0%, #052e22 30%, #021a13 55%, #000 80%);
}

/* Any element with data-theme="dark" flips these */
[data-theme="dark"] {
  --surface: #000000;
  --surface-raised: #0d1114;
  --ink: #ffffff;
  --ink-muted: #9aa3a9;
  --line: #2b3236;
  --accent: var(--mint);
  --track: var(--mint);
  --on-track: var(--black);
  --focus: var(--mint);
}
/* Light sections use the soft off-white instead of pure white */
[data-theme="light"].soft { --surface: var(--off-white); }

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--black);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
/* Every themed block paints its own ground and text colour */
[data-theme] { background: var(--surface); color: var(--ink); }

.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 100;
  background: var(--mint); color: var(--black);
  padding: var(--space-2) var(--space-4); font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

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

/* Big bold, extra-wide headings */
.display {
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -0.015em;
  line-height: 0.98;
  text-wrap: balance;
}
.h-section { font-size: 48px; }           /* About us, Meet our team, Get involved … */
.h-page    { font-size: 58px; line-height: 0.96; letter-spacing: -0.025em; }  /* Meet the team, Our projects */
.mono { font-family: var(--font-mono); }

/* 3. COMPONENTS ------------------------------------------------------------ */

/* Signpost label: 01.ABOUT US */
.label {
  display: inline-flex; align-items: baseline; align-self: flex-start;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase;
  color: var(--ink-muted);
}
.label__index { color: var(--accent); }
.label::after {
  content: ""; width: var(--space-12); height: 1px;
  margin-left: var(--space-3); background: var(--line); align-self: center;
}

/* Button: chevron-cut corner (the cut deepens on hover) */
.btn {
  --btn-bg: var(--accent-fill);
  --btn-fg: var(--on-accent-fill);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: var(--space-3);
  min-height: 48px;
  padding: 14px var(--space-6);
  color: var(--btn-fg);
  font: 600 15px/1.2 var(--font-sans);
  text-decoration: none; cursor: pointer;
  border: 0; background: none;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-bg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%);
  transition: clip-path 220ms var(--ease);
}
.btn:hover::before {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm) * 2), calc(100% - var(--cut-sm) * 2) 100%, 0 100%);
}
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--surface); }
.btn--small { min-height: 40px; padding: 10px 18px; font-size: 14px; }

.chev { width: 14px; height: 10px; flex: none; transition: transform 220ms var(--ease); }
.btn:hover .chev, .link:hover .chev { transform: translateX(3px); }

/* Text link with chevron */
.link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  align-self: flex-start;
  color: var(--ink); font: 600 15px/1.3 var(--font-sans);
  text-decoration: none; padding: 6px 0 4px;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1.5px no-repeat;
  transition: background-size 220ms var(--ease);
}
.link:hover { background-size: 35% 1.5px; }
.link .chev { color: var(--accent); }

/* Tracking frame: detection-box corner brackets + mono tag */
.track {
  --b: 18px; --w: 1.5px;
  position: relative; display: block; padding: var(--space-2);
  background:
    linear-gradient(var(--track), var(--track)) 0 0 / var(--b) var(--w) no-repeat,
    linear-gradient(var(--track), var(--track)) 0 0 / var(--w) var(--b) no-repeat,
    linear-gradient(var(--track), var(--track)) 100% 0 / var(--b) var(--w) no-repeat,
    linear-gradient(var(--track), var(--track)) 100% 0 / var(--w) var(--b) no-repeat,
    linear-gradient(var(--track), var(--track)) 0 100% / var(--b) var(--w) no-repeat,
    linear-gradient(var(--track), var(--track)) 0 100% / var(--w) var(--b) no-repeat,
    linear-gradient(var(--track), var(--track)) 100% 100% / var(--b) var(--w) no-repeat,
    linear-gradient(var(--track), var(--track)) 100% 100% / var(--w) var(--b) no-repeat;
}
.track__tag {
  position: absolute; left: 0; bottom: 100%; margin-bottom: var(--space-1);
  padding: 2px 6px;
  border-radius: var(--radius-tip) var(--radius-tip) var(--radius-tip) 0;
  background: var(--track); color: var(--on-track);
  font: 400 11px/1.4 var(--font-mono); letter-spacing: 0.02em; white-space: nowrap;
}
/* Brackets ease in when scrolled into view (added by main.js) */
.js .track[data-reveal] { --b: 0px; transition: --b 400ms var(--ease); }
.js .track[data-reveal].is-in { --b: 18px; }
@property --b { syntax: "<length>"; inherits: false; initial-value: 18px; }

/* Chevron cuts: photo crops from the logo's geometry */
.cut { overflow: hidden; }
.cut img { width: 100%; height: 100%; object-fit: cover; }
.cut--corner {
  clip-path: polygon(var(--cut-lg) 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%, 0 var(--cut-lg));
}
.cut--notch { clip-path: polygon(0 0, 44% 0, 50% var(--cut-lg), 56% 0, 100% 0, 100% 100%, 0 100%); }
.cut--blade { clip-path: polygon(0 0, 100% 0, 100% 72%, 78% 100%, 0 100%); }

/* Green glow background (headers, closing bands, homepage team section) */
.glow { background-color: var(--black); background-image: var(--glow); }

/* Photo placeholder (until real photos arrive) */
.photo-todo {
  display: flex; align-items: center; justify-content: center;
  background-color: var(--surface-raised);
  background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  font: 400 13px/1.4 var(--font-mono); color: var(--ink-muted); text-align: center; padding: var(--space-4);
}

/* 4. LAYOUT HELPERS -------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-8); }
.stack { display: flex; flex-direction: column; }
.lead { font-size: 19px; line-height: 1.55; font-weight: 300; }
.muted { color: var(--ink-muted); }
.caption { margin-top: 10px; font: 400 13px/1.4 var(--font-mono); color: var(--ink-muted); }

/* 5. HEADER & NAV ---------------------------------------------------------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding-top: 28px; padding-bottom: 28px;
  color: var(--white);
}
.site-header--static { position: relative; }      /* inner pages: header sits in the flow */
.site-header__logo img { width: 100px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__link {
  color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 12px 4px; transition: color 160ms var(--ease);
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] { color: var(--mint); }
.menu-toggle {
  display: none;
  min-height: 44px; padding: 0 var(--space-4);
  background: none; border: 1px solid #2b3236; color: var(--white);
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
}

/* 6. HOMEPAGE SECTIONS ----------------------------------------------------- */

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 860px; display: flex; align-items: center; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__boxes { position: absolute; inset: 0; pointer-events: none; }
.hero__boxes .track { position: absolute; left: 0; top: 0; padding: 0; will-change: transform; }
.hero__content { position: relative; padding-top: 168px; padding-bottom: 120px; }
.hero__title { display: flex; flex-direction: column; font-stretch: 118%; line-height: 0.86; }
.hero__monash { font-size: clamp(38px, 8vw, 81px); font-weight: 400; letter-spacing: -0.02em; }
.hero__vista  { font-size: clamp(75px, 16.4vw, 140px); font-weight: 600; letter-spacing: -0.035em; margin-left: -0.03em; }
.hero__name { margin-top: 36px; max-width: 660px; font-size: clamp(19px, 2vw, 26px); line-height: 1.35; font-weight: 200; }
.hero__name b { font-weight: 600; color: var(--mint); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-12); }

/* About us (off-white) */
.about { padding: 56px 0 48px; }
.about__grid { display: flex; flex-wrap: wrap; gap: var(--space-12) var(--space-16); align-items: flex-start; }
.about__text { flex: 7 1 520px; min-width: 0; gap: var(--space-6); }
.about__text p { max-width: 46ch; color: var(--body-dark); }
.about__photo { flex: 5 1 340px; min-width: 0; margin: -112px 0 -40px; position: relative; z-index: 2; }
.about__photo .cut { aspect-ratio: 6 / 7; }

/* Vision / Mission / Purpose (black) */
.vmp { padding: 168px 0 64px; }
.vmp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vmp__item { padding: 0 32px; display: flex; flex-direction: column; gap: 18px; text-align: center; }
.vmp__item h3 { font-size: 30px; line-height: 1; color: var(--white); }
.vmp__rule { width: 160px; height: 1px; background: var(--mint); align-self: center; }
.vmp__item p { color: var(--ink-muted); }

/* Meet our team (green glow) */
.home-team { padding: 128px 0 144px; }
.home-team__grid,
.home-projects__grid { display: flex; flex-wrap: wrap; gap: 64px 80px; align-items: center; }
.home-team__photos { flex: 7 1 520px; min-width: 0; position: relative; padding-bottom: 96px; }
.home-team__photos > .cut:first-child { aspect-ratio: 3 / 2; width: 88%; }
.home-team__inset { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 4 / 3; }
.home-team__text { flex: 5 1 340px; min-width: 0; gap: 20px; }
.home-team__text p { max-width: 44ch; color: var(--body-light); }
.home-team__text .btn,
.home-projects__text .btn { align-self: flex-start; margin-top: var(--space-3); }

/* Learn about our projects (black) */
.home-projects { padding: 128px 0 160px; }
.home-projects__text { flex: 5 1 340px; min-width: 0; gap: 20px; }
.home-projects__text h2 { font-size: 54px; line-height: 0.95; letter-spacing: -0.02em; }
.home-projects__text p { max-width: 42ch; }
.home-projects__photos { flex: 7 1 520px; min-width: 0; position: relative; padding: 24px 0 120px; }
.home-projects__photos > .track { width: 78%; }
.home-projects__photos > .track .cut { aspect-ratio: 3 / 2; }
.home-projects__inset { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 3; outline: 10px solid var(--black); }

/* Get involved (off-white) */
.involve { padding: var(--space-8) 0 var(--space-32); }
.involve h2 { margin-top: var(--space-4); }
.involve__grid { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-8); align-items: flex-start; }
.involve__kicker { font: 500 12px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.partner {
  flex: 0 1 600px; min-width: 0; gap: 20px;
  background: #dcf5e6; padding: 56px 56px 64px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%);
}
.partner h3 { font-size: 32px; line-height: 1.1; font-weight: 600; }
.partner p { max-width: 52ch; font-size: 16px; line-height: 1.6; color: var(--body-dark); }
.partner .btn { align-self: flex-start; margin-top: var(--space-3); }
.partner__photo { margin: 28px -56px -64px; aspect-ratio: 16 / 9; overflow: hidden; }   /* runs to the card's edges */
.partner__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.join { flex: 5 1 340px; min-width: 0; margin-top: 88px; }
.join .cut { aspect-ratio: 3 / 2; }
.join__body { padding: var(--space-8) 36px 40px; gap: var(--space-4); }
.join h3 { font-size: 32px; line-height: 1.1; font-weight: 600; }
.join p { font-size: 16px; line-height: 1.6; font-weight: 300; color: var(--body-light); }
.join .btn { align-self: flex-start; margin-top: var(--space-2); }

/* 7. INNER PAGES (team.html, projects.html) -------------------------------- */

/* Page header with the green glow */
.page-header__body { padding-top: 112px; padding-bottom: 120px; gap: 20px; }
.page-header__body p { margin-top: var(--space-2); max-width: 46ch; color: var(--body-light); }

/* Team page header: the team photo under a soft dark overlay, fading into black */
.t-hero { position: relative; overflow: hidden; background: var(--black); }
.t-hero__bg { position: absolute; left: 0; top: -12.5vw; width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }   /* the photo melts into black at its own bottom edge */
.t-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background-color: rgba(0, 0, 0, 0.3);
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.3) 72%, rgba(0, 0, 0, 0.65) 84%, rgba(0, 0, 0, 0.9) 94%, #000 100%);
}
.t-hero .site-header, .t-hero .page-header__body { position: relative; z-index: 2; }
.t-hero .page-header__body { padding-top: max(240px, calc(28vw - 110px)); padding-bottom: 72px; }
.t-hero .page-header__body p { color: #e4e9eb; }

/* Section on an inner page */
.page-section { padding: 96px 0 112px; }
.page-section h2 { margin-top: var(--space-4); }

/* People cards (Team page) */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 40px; margin-top: 56px; align-items: stretch; list-style: none; padding: 0; }
.person { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.person__photo { width: 78%; aspect-ratio: 4 / 5; background: var(--surface-raised); }
.person__name { margin-top: 10px; font-size: 24px; line-height: 1.2; font-weight: 600; }
.person__role { font: 400 13px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--accent); }
.person__title { margin-top: -6px; font-size: 14px; line-height: 1.4} /*; color: var(--ink-muted); }*/
.person__bio p { font-size: 13px; line-height: 1.6; font-weight: 300; }
[data-theme="dark"] .person__bio p { color: var(--body-light); }
[data-theme="light"] .person__bio p { color: var(--body-dark); }
.person__bio { display: flex; flex-direction: column; gap: 14px; }
.person__social {
  align-self: flex-start; margin-top: auto; padding-top: 8px;
  font: 400 13px/1.4 var(--font-mono); letter-spacing: 0.08em; text-decoration: none; color: var(--ink);
}
.person__social:hover { color: var(--accent); }

/* Supervisors: first ~11 lines, fading out, then "Read more" */
.js .person__bio--clamp { gap: 10px; height: 222px; margin-bottom: -8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.js .person__bio--clamp.is-open { height: auto; margin-bottom: 0; -webkit-mask-image: none; mask-image: none; }
.read-more {
  align-self: flex-start; margin-top: auto; padding: 0 0 2px;
  background: none; border: 0; border-bottom: 1.5px solid var(--accent); cursor: pointer;
  color: var(--accent); font: 600 15px/1.3 var(--font-sans);
}
.person__bio--clamp.is-open + .read-more { margin-top: 0; }
html:not(.js) .read-more { display: none; }
.read-more ~ .person__social { margin-top: 0; }

/* "This could be you" card */
.join-card {
  width: 78%; aspect-ratio: 4 / 5; min-height: 260px; align-self: start;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: 28px; border: 1px dashed var(--mint); color: var(--white); text-decoration: none;
}
.join-card__kicker { font: 500 13px/1.3 var(--font-mono); letter-spacing: 0.08em; color: var(--mint); }
.join-card__title { font-size: 28px; line-height: 1.05; }
.join-card__cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--mint); }

/* Project rows (Projects page) */
.project-list { padding: 112px 0 144px; overflow: hidden; }
.project-list .wrap { display: flex; flex-direction: column; gap: 176px; }
.prow { display: flex; gap: 72px; align-items: center; }
.prow__text { flex: 5 1 0; min-width: 0; gap: 18px; position: relative; }
.prow__kicker { font: 500 14px/1.3 var(--font-mono); letter-spacing: 0.08em; color: var(--mint); }
.prow__text h2 { font-size: 30px; line-height: 1.1; }
.prow__text .lead { max-width: 42ch; color: var(--body-light); }
.prow__media { flex: 7 1 0; min-width: 0; position: relative; }
.prow__media .cut, .prow__media .photo-todo { position: relative; aspect-ratio: 4 / 3; }
.prow__glow { position: absolute; inset: -90px -60px; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at var(--gx, 35%) 55%, rgba(7,92,66,.55) 0%, rgba(5,46,34,.35) 40%, rgba(0,0,0,0) 72%); }
.prow--flip .prow__glow { --gx: 65%; }
.prow__text .person__bio--clamp { display: flex; flex-direction: column; gap: 14px; }   /* "Read more" on a project description: space between paragraphs */
.prow__media .prow__wide { aspect-ratio: 16 / 9; }           /* LiDAR photo */
.prow__media .prow__platform { aspect-ratio: 1600 / 994; }   /* platform and capybara photos, uncropped */
/* Exoskeleton: front and back views side by side, one chevron cut on each outer corner */
.prow__pair { position: relative; display: flex; gap: 20px; }
.prow__media .prow__pair .cut { flex: 1 1 0; min-width: 0; aspect-ratio: 402 / 424; background: #0d1114; }
.prow__pair-left  { clip-path: polygon(var(--cut-lg) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut-lg)); }
.prow__pair-right { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%); }

/* Closing band (green glow) */
.closing { padding: 120px 0 128px; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.closing__text { max-width: 34ch; font-stretch: 112%; font-size: 33px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }

/* 7b. MSI LAB PAGE (msi-lab.html) ------------------------------------------ */

/* A lighter off-white used on the MSI Lab page */
[data-theme="light"].soft-light { --surface: #f2f5f4; }

/* Header: title, lead, then the full-width digital twin scan */
.msi-header__body { padding-bottom: 72px; }
.msi-header__title { max-width: 16ch; }
.msi-header__media { padding-bottom: 112px; }
.msi-header__media img { display: block; width: 100%; height: auto; }

/* 01 About the lab */
.msi-about { padding: 112px 0 120px; }
.msi-about__grid { display: grid; grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; }
.msi-about__text { gap: 20px; }
.msi-about__text p { font-size: 19px; line-height: 1.55; color: var(--body-dark); }
.msi-about__text .msi-about__lead { margin-top: 12px; font-style: italic; }
.msi-about__link {
  align-self: flex-start; margin-top: 8px;
  font: 400 13px/1.4 var(--font-mono); letter-spacing: 0.08em;
  color: var(--mint-deep); text-decoration: none;
}
.msi-about__link:hover { text-decoration: underline; }
.msi-about__photo { aspect-ratio: 4 / 5; }

/* Thin green line between About and Digital infrastructure */
.msi-rule { margin: 0; border: 0; border-top: 1px solid var(--mint-deep); }

/* 02 Digital infrastructure */
.msi-infra { padding: 112px 0 128px; }
.msi-intro { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--body-dark); }
.msi-intro--dark { max-width: 92ch; font-weight: 300; color: var(--body-light); }

.msi-pillars { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 64px; }
.msi-pillar { display: flex; flex-direction: column; gap: 10px; }
/* whole-pixel line heights keep the 1px lines crisp and identical */
.msi-pillar h3 { font-size: 24px; line-height: 30px; font-weight: 600; color: var(--black); }
.msi-pillar__rule { display: block; width: 160px; height: 1px; margin: 4px 0 6px; background: var(--mint-deep); }
.msi-pillar p { font-size: 15px; line-height: 24px; color: var(--body-dark); }

.msi-stat {
  display: flex; align-items: baseline; gap: 20px;
  margin-top: 88px; padding-top: 28px; border-top: 1px solid var(--mint-deep);
}
.msi-stat__num { font-stretch: 118%; font-size: 56px; line-height: 1; font-weight: 700; color: var(--mint-deep); }
.msi-stat__label { font: 400 13px/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--body-dark); }

.msi-sensors {
  list-style: none; margin: 32px 0 0; padding: 20px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px;
}
.msi-sensors li { display: flex; flex-direction: column; gap: 12px; }
.msi-sensors span { font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--body-dark); text-align: center; }
.msi-sensors__tile {
  aspect-ratio: 1 / 1; background: var(--white);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.msi-sensors__tile img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.msi-sensors__tile--photo { padding: 0; overflow: hidden; }
.msi-sensors__tile--photo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: 47% center; }

/* 03 Lab projects */
.msi-projects { padding: 112px 0 136px; }
.msi-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px 56px; margin-top: 64px; }
.msi-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.msi-card h3 { margin-top: 10px; font-stretch: 112%; font-size: 24px; line-height: 1.15; font-weight: 700; color: var(--white); }
.msi-card p { font-size: 15px; line-height: 24px; font-weight: 300; color: var(--body-light); }

/* Every project image sits in the same 16:10 frame so the tracking brackets line up */
.msi-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.msi-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.msi-frame--contain img { object-fit: contain; }

/* Smart Cities: hazard photos linked to their map markers */
.city { background: #0d1114; }
.city img { position: absolute; }
.city__aerial { left: 0; top: 44%; width: 100%; height: 56% !important; }
.city__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.city__lines line { stroke: #ff3b30; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.city__dot {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px var(--black);
}
.city__hazard { top: 1px; width: 20% !important; height: calc(36.8% - 1px) !important; box-shadow: 0 0 0 1px #ff3b30; }
.city__car { left: 0; top: 0; width: 19% !important; height: 22.08% !important; }
.city__popup {
  right: 2%; bottom: 2.88%; width: 34% !important; height: 22% !important;
  border-radius: 4px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}
.city__key {
  position: absolute; left: 0; top: 33.6%; max-width: 19%;
  display: flex; align-items: flex-start; gap: 6px;
  font: 400 8px/1.3 var(--font-mono); letter-spacing: 0.02em; color: #9aa3a9;
}
.city__key-dot { flex: 0 0 7px; height: 7px; margin-top: 1px; border-radius: 50%; background: #ff3b30; }

/* Healthcare: digital twin strip above three pose shots */
.health { display: flex; flex-direction: column; gap: 8px; }
.health__twin { flex: 38 1 0; min-height: 0; overflow: hidden; background: #0d1114; }
.health__poses { flex: 62 1 0; min-height: 0; display: flex; gap: 8px; }
.health__poses figure { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.health__poses figure > div { flex: 1 1 0; min-height: 0; overflow: hidden; background: #0d1114; }
.health__poses img { object-position: center top; }
.health__poses figcaption { font: 400 10px/1 var(--font-mono); letter-spacing: 0.04em; color: #9aa3a9; text-align: center; }

/* Smart Factories: ratchet detection beside the production line */
.factory { display: flex; gap: 8px; }
.factory__ratchet { flex: 0 0 auto; height: 100%; aspect-ratio: 444 / 621; overflow: hidden; background: #0d1114; }
.factory__line { flex: 1 1 0; min-width: 0; height: 100%; overflow: hidden; background: #0d1114; }

@media (max-width: 860px) {
  .msi-header__body { padding-bottom: 48px; }
  .msi-header__media { padding-bottom: 72px; }
  .msi-about, .msi-infra, .msi-projects { padding: var(--space-16) 0; }
  .msi-about__grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .msi-sensors { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .msi-cards { grid-template-columns: 1fr; gap: 64px; }
  .msi-pillars { grid-template-columns: 1fr; gap: 40px; }
  .msi-stat__num { font-size: 44px; }
}

/* 7c. PARTNER / SPONSOR PAGE (partner.html) --------------------------------- */

/* Hero: text over the lab photo, under a soft dark overlay */
.p-hero { position: relative; min-height: 820px; background: var(--black); color: var(--white); overflow: hidden; }
.p-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.p-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background-color: rgba(0, 0, 0, 0.55);
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.85) 100%);
}
.p-hero__header { position: relative; z-index: 3; }
.p-hero__body { position: relative; z-index: 2; }
.p-hero__text { max-width: 640px; padding: 150px 0 120px; gap: 22px; }
.p-hero__title { font-size: 72px; line-height: 0.94; letter-spacing: -0.005em; }
.p-hero__accent { display: block; color: var(--mint); }
.p-hero__monash { display: block; margin-top: 0.12em; font-size: 0.62em; letter-spacing: -0.02em; }
.p-hero__text .btn { align-self: flex-start; margin-top: 10px; }
.p-hero__lead { margin-top: 6px; max-width: 40ch; font-size: 19px; line-height: 1.55; color: #e4e9eb; }

/* 01 Partnership benefits */
.p-benefits { padding: 112px 0 120px; }
.p-rule { display: block; width: 160px; height: 1px; margin: 4px 0 6px; background: var(--mint-deep); }
.p-feature { display: grid; grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; margin-top: 64px; }
.p-feature__text { gap: 16px; }
.p-feature__text h3, .p-benefit h3 { font-size: 24px; line-height: 30px; font-weight: 600; color: var(--black); }
.p-feature__text p { font-size: 19px; line-height: 1.55; color: var(--body-dark); }
.p-feature__photo { aspect-ratio: 4 / 3; }

.p-three {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 48px;
  margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--mint-deep);
}
.p-benefit { display: flex; flex-direction: column; gap: 10px; }
.p-benefit h3 { min-height: 60px; }            /* two lines, so the green lines stay level */
.p-benefit p { font-size: 15px; line-height: 24px; color: var(--body-dark); }
.p-benefit__link {
  align-self: flex-start; margin-top: 6px;
  font: 400 13px/1.4 var(--font-mono); letter-spacing: 0.08em;
  color: var(--mint-deep); text-decoration: none;
}
.p-benefit__link:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }

/* Full-width photo band that fades into the closing section */
.p-band { position: relative; background: var(--black); }
.p-band img { display: block; width: 100%; height: clamp(320px, 31vw, 620px); object-fit: cover; object-position: 50% 52%; }   /* height scales with screen width so heads are never cut off */
.p-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, #000 100%);
}

/* Closing */
.p-closing { padding: 136px 0 128px; }
.p-closing .wrap { gap: 24px; }
.p-closing__sub { max-width: 52ch; font-size: 19px; line-height: 1.55; font-weight: 300; color: var(--body-light); }

@media (max-width: 1100px) {
  .p-hero__title { font-size: 60px; }
}
@media (max-width: 860px) {
  .p-hero { min-height: 0; }
  .p-hero__text { max-width: none; padding: 72px 0 80px; }
  .p-hero__title { font-size: 52px; }
  .p-benefits { padding: var(--space-16) 0; }
  .p-feature { grid-template-columns: 1fr; gap: var(--space-12); }
  .p-three { grid-template-columns: 1fr; gap: 40px; margin-top: 64px; }
  .p-benefit h3 { min-height: 0; }
  .p-band img { height: 240px; }
}

/* 7d. JOIN PAGE (join.html) ------------------------------------------------ */
.join-soon { min-height: 900px; display: flex; flex-direction: column; background: var(--black); }
.join-soon__body { flex: 1 1 auto; justify-content: center; gap: 24px; padding-top: 64px; padding-bottom: 160px; }
.join-soon__title { max-width: 14ch; font-size: 72px; line-height: 0.96; letter-spacing: -0.025em; color: var(--white); }
.join-soon__sub { margin-top: 4px; font-size: 22px; line-height: 1.5; font-weight: 300; color: #e4e9eb; }
/* thin mint line above the footer, fading to black at both ends */
.fade-rule { height: 1px; background: linear-gradient(90deg, rgba(5, 242, 175, 0) 0%, rgba(5, 242, 175, 0.6) 30%, rgba(5, 242, 175, 0.6) 70%, rgba(5, 242, 175, 0) 100%); }
@media (max-width: 860px) {
  .join-soon { min-height: 80vh; }
  .join-soon__body { padding-top: 48px; padding-bottom: 96px; }
  .join-soon__title { font-size: 48px; }
}

/* 8. FOOTER ---------------------------------------------------------------- */
.site-footer { padding: 80px 0 40px; }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: var(--space-12) 80px; align-items: flex-start; }
.site-footer__lockup { width: 100px; }   /* the chevron mark on its own, same as the header logo */
.site-footer__col { flex: 1 1 200px; gap: 10px; }
.site-footer__heading { font: 500 12px/1.3 var(--font-mono); letter-spacing: 0.08em; color: var(--ink-muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.site-footer__email { color: var(--mint); }
.site-footer__email-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.copy-email {
  padding: 3px 8px; background: none; border: 1px solid #2b3236; cursor: pointer;
  font: 400 11px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.copy-email:hover { color: var(--mint); border-color: var(--mint); }
.site-footer__social { font: 400 13px/1.6 var(--font-mono); letter-spacing: 0.08em; }
.site-footer__base {
  margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  font: 400 12px/1.5 var(--font-mono); color: var(--ink-muted);
}

/* 9. PLACEHOLDERS — delete this block once all team text is in ------------- */
.todo {
  display: inline-block;
  font: 400 14px/1.5 var(--font-mono);
  letter-spacing: 0; color: var(--accent);
  border: 1px dashed currentColor; padding: 10px 14px;
}
.todo--sm { font-size: 13px; }
.todo--match { color: inherit; }   /* placeholder takes the colour of the text it stands in for */

/* 10. PHONE / TABLET ------------------------------------------------------- */
@media (max-width: 1000px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .wrap { padding: 0 var(--space-4); }
  .site-nav {
    position: absolute; top: 100%; left: var(--space-4); right: var(--space-4); z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border: 1px solid #2b3236; padding: var(--space-2) var(--space-4) var(--space-4);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__link { padding: 14px 0; border-bottom: 1px solid #2b3236; }
  .site-nav .btn { margin-top: var(--space-4); justify-content: center; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-header__logo img { width: 72px; }
  .hero { min-height: 720px; }
  .hero__content { padding-top: 140px; padding-bottom: 88px; }
  .h-section { font-size: 38px; }
  .h-page { font-size: 44px; }
  .about { padding: var(--space-16) 0; }
  .about__photo { margin: 0; }
  .vmp { padding: var(--space-16) 0; }
  .vmp__grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .vmp__item { padding: 0; }
  .home-team, .home-projects { padding: var(--space-16) 0 var(--space-24); }
  .home-team__photos, .home-projects__photos { padding-bottom: 0; }
  .home-team__inset, .home-projects__inset { position: static; width: 70%; margin: 16px 0 0 auto; }
  .home-projects__text h2 { font-size: 40px; }
  .partner { padding: 40px 24px 48px; }
  .partner__photo { margin: 20px -24px -48px; }
  .join { margin-top: 0; }
  .join__body { padding: var(--space-6) var(--space-6) var(--space-8); }
  .page-header__body { padding-top: 64px; padding-bottom: 72px; }
  .t-hero__bg { top: 0; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }   /* phones: fade the photo's own bottom edge */
  .t-hero .page-header__body { padding-top: max(180px, calc(62vw - 40px)); padding-bottom: 56px; }
  .page-section { padding: var(--space-16) 0; }
  .project-list { padding: var(--space-16) 0 var(--space-24); }
  .project-list .wrap { gap: var(--space-24); }
  .prow, .prow--flip { flex-direction: column; align-items: stretch; gap: var(--space-8); }
  .prow--flip .prow__media { order: 2; }
  .prow__text, .prow__media { flex: none; }
  .closing__text { font-size: 24px; }
}
@media (max-width: 640px) {
  .people { grid-template-columns: 1fr; }
  .person__photo, .join-card { width: 100%; }
}

/* 11. REDUCED MOTION ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
