/* ============================================================
   SUSTAIN.ALL — Partner & Mentor site
   Brand tokens pulled from the Sustain.ALL Project Directory:
   cream field, ink black, and the logo's exact magenta dot.
   ============================================================ */

/* Arial is a system font — no @import needed */

:root{
  --cream:        #F3EEE4;
  --cream-deep:   #EAE2D3;
  --ink:          #16161A;
  --ink-soft:     #3B3B40;
  --magenta:      #E8006A;
  --magenta-deep: #B60052;
  --tu-red:       #C40D1E;
  --pink-tint:    #FBDCE9;
  --white:        #FFFFFF;
  --line:         rgba(22,22,26,0.14);
  --line-soft:    rgba(22,22,26,0.08);

  --display: Arial, Helvetica, sans-serif;
  --body:    Arial, Helvetica, sans-serif;

  --maxw: 1180px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* cluster category colours */
  --enabler-tint:  #DCF1E1;
  --enabler-text:  #1C7A43;
  --enabler-line:  rgba(28,122,67,0.28);

  --cluster-tint:  #DCEAF9;
  --cluster-text:  #1B5FA0;
  --cluster-line:  rgba(27,95,160,0.28);

  --human-tint:    #FBDCDC;
  --human-text:    #B3271E;
  --human-line:    rgba(179,39,30,0.28);

  --all-tint:      #FBDCE9;
  --all-text:      #B60052;
  --all-line:      rgba(182,0,82,0.28);
}

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

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a{ color:inherit; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

section{ position: relative; }

h1,h2,h3,h4{
  font-family: var(--display);
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.eyebrow{
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--magenta-deep);
  text-transform: uppercase;
}

.lede{
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 60ch;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--magenta);
  color: var(--white);
}
.btn-primary:hover{ background: var(--magenta-deep); }

.btn-ghost{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--cream); }

.btn-dark{
  background: var(--ink);
  color: var(--pink-tint);
}
.btn-dark:hover{ background:#000; }

/* ---------------- NAV ---------------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243,238,228,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-logo{ display:flex; align-items:center; gap:14px; }
.nav-logo img{ height: 72px; width:auto; }
.nav-links{
  display:flex;
  align-items:center;
  gap: 30px;
  list-style:none;
  margin:0; padding:0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14.5px;
}
.nav-links a{
  text-decoration:none;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover{ color: var(--ink); border-color: var(--magenta); }
.nav-cta{ display:flex; align-items:center; gap:16px; }
.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  flex-direction:column; gap:5px; padding:6px;
}
.nav-toggle span{ width:24px; height:2px; background:var(--ink); display:block; }

/* ---------------- HERO ---------------- */
.hero{
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1{
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
  font-weight: 700;
  text-transform: uppercase;
}
.hero h1 .hl{ color: var(--magenta); }
.hero .lede{ margin-top: 22px; font-size: 20px; }
.hero-actions{
  margin-top: 34px;
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats{
  margin-top: 46px;
  display:flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-stat b{
  display:block;
  font-family: var(--display);
  font-size: 30px;
  color: var(--ink);
}
.hero-stat span{
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.hero-art{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  width: 100%;
}
.hero-grid > *{ min-width: 0; }

/* the 3-node flow diagram: diagonal cascade on tablet/laptop/desktop */
.flow{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.flow-node{
  flex-shrink: 0;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(22, 22, 26, 0.12);
}
.flow-node--dark{ background: var(--ink); color: var(--pink-tint); }
.flow-node--magenta{ background: var(--magenta); color: var(--white); }
/* diagonal stagger: fixed, modest offsets — NOT flex-start/end, which spans
   the full column width and is why the circles ended up far apart. Using
   nth-of-type(1/3/5) here because the arrows are also <div>s and sit at
   positions 2 and 4 in the same sibling sequence — targeting (2) or (3)
   for a circle was landing on an arrow or the wrong circle entirely. */
.flow > .flow-node:nth-of-type(1){ transform: translateX(-60px); }
.flow > .flow-node:nth-of-type(3){ transform: translateX(0); }
.flow > .flow-node:nth-of-type(5){ transform: translateX(60px); }
.flow-arrow{
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  color: var(--magenta);
  line-height: 1;
  align-self: center;
}
/* each arrow nudged to the midpoint between the two circles it sits between */
.flow > .flow-arrow:nth-of-type(2){ transform: translateX(-30px) rotate(60deg); }
.flow > .flow-arrow:nth-of-type(4){ transform: translateX(30px) rotate(60deg); }

/* ---------------- SECTION SHELLS ---------------- */
.section{ padding: 96px 0; }
.section-alt{ background: var(--cream-deep); }
.section-dark{ background: var(--ink); color: var(--cream); }
.section-dark h2, .section-dark h3{ color: var(--cream); }
.section-dark .lede{ color: rgba(243,238,228,0.72); }

.section-head{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2{
  font-size: clamp(28px, 3.4vw, 40px);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 10px;
  max-width: 16ch;
}
.rule{
  border:0; height:1px;
  background: var(--line);
  margin: 0 0 40px;
}

/* ---------------- ABOUT ---------------- */
.about-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items:start;
}
.about-points{
  display:grid;
  gap: 22px;
}
.about-point{
  display:grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.about-point:last-child{ border-bottom:none; }
.about-point .dot{
  width: 12px; height:12px; border-radius:50%;
  background: var(--magenta);
  margin-top: 6px;
}
.about-point h4{ font-size: 17px; text-transform: uppercase; margin-bottom:6px; }
.about-point p{ margin:0; color: var(--ink-soft); font-size:15px; }

/* ---------------- HOW IT WORKS ---------------- */
.steps{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step{
  padding: 30px 24px;
  border-right: 1px solid var(--line);
  position:relative;
}
.step:first-child{
  padding-left: 0;
}
.step:last-child{ border-right:none; }
.step .num{
  font-family: var(--display);
  font-size: 15px;
  color: var(--magenta);
  font-weight: 700;
  margin-bottom: 18px;
  display:block;
}
.step h4{
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height:1.25;
}
.step p{ color: var(--ink-soft); font-size: 14.5px; margin:0; }

/* ---------------- MODEL DIAGRAM ---------------- */
.model-diagram{
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px) 1fr;
  grid-template-rows: auto auto 36px auto auto;
  grid-template-areas:
    "badge-l .   badge-r"
    "card-tl hub card-tr"
    ".       hub .      "
    "card-bl hub card-br"
    ".       transfer . ";
  column-gap: 28px;
  row-gap: 20px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 0 6px;
}
.model-arrows{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.model-card, .model-hub, .model-badge{ position: relative; z-index: 1; }

.model-card{
  background: var(--white);
  border-radius: var(--radius-md);
  border: 2px solid var(--line);
  padding: 20px 22px;
}
.model-card h3{
  font-size: 19px;
  text-transform: none;
  margin: 6px 0 6px;
  line-height: 1.2;
}
.model-card p{ margin:0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.model-eyebrow{
  font-family: var(--display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.model-card--academic{ border-color: var(--cluster-line); }
.model-card--academic .model-eyebrow{ color: var(--cluster-text); }
.model-card--challenges{ border-color: var(--enabler-line); }
.model-card--challenges .model-eyebrow{ color: var(--enabler-text); }
.model-card--cocreation{ border-color: var(--all-line); }
.model-card--cocreation .model-eyebrow{ color: var(--all-text); }
.model-card--experiment{ border-color: var(--human-line); }
.model-card--experiment .model-eyebrow{ color: var(--human-text); }
.model-card--transfer{
  border-color: var(--ink);
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}
.model-card--transfer .model-eyebrow{ color: var(--ink); }

.model-hub{
  grid-area: hub;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--cream);
  border: 2.5px solid var(--magenta);
  box-shadow: 0 16px 34px rgba(22,22,26,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
}
.model-hub img{ width: 78%; height: auto; }
.model-hub span{
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.5;
}

.model-badge{
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2px solid var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--magenta-deep);
  padding: 0 10px;
}
.model-badge--blue{ border-color: var(--cluster-text); color: var(--cluster-text); }

/* ---------------- CLUSTERS ---------------- */
.cluster-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cluster-chip{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  cursor:pointer;
  text-align:left;
  font-family: var(--body);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.cluster-chip:hover{ transform: translateY(-3px); border-color: var(--magenta); }
.cluster-chip .cluster-name{
  display:block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cluster-chip .cluster-desc{
  font-size: 13px;
  color: var(--ink-soft);
}

/* category colour coding — chips */
.cluster-chip{ border-left: 4px solid var(--line); }
.cluster-chip[data-category="enabler"]{ background: var(--enabler-tint); border-color: var(--enabler-line); border-left-color: var(--enabler-text); }
.cluster-chip[data-category="enabler"] .cluster-desc{ color: var(--enabler-text); font-weight: 600; }
.cluster-chip[data-category="cluster"]{ background: var(--cluster-tint); border-color: var(--cluster-line); border-left-color: var(--cluster-text); }
.cluster-chip[data-category="cluster"] .cluster-desc{ color: var(--cluster-text); font-weight: 600; }
.cluster-chip[data-category="human"]{ background: var(--human-tint); border-color: var(--human-line); border-left-color: var(--human-text); }
.cluster-chip[data-category="human"] .cluster-desc{ color: var(--human-text); font-weight: 600; }
.cluster-chip[data-category="all"]{ background: var(--all-tint); border-color: var(--all-line); border-left-color: var(--all-text); }
.cluster-chip[data-category="all"] .cluster-desc{ color: var(--all-text); font-weight: 600; }
.cluster-chip.active{ background: var(--ink) !important; border-color: var(--ink) !important; }
.cluster-chip.active .cluster-name, .cluster-chip.active .cluster-desc{ color: var(--cream) !important; }

/* category colour coding — project card tags */
.tag.tag-enabler{ background: var(--enabler-tint); color: var(--enabler-text); }
.tag.tag-cluster{ background: var(--cluster-tint); color: var(--cluster-text); }
.tag.tag-human{ background: var(--human-tint); color: var(--human-text); }
.tag.tag-all{ background: var(--all-tint); color: var(--all-text); }

/* ---------------- PORTFOLIO / CHALLENGES ---------------- */
.filter-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn{
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor:pointer;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.filter-btn:hover{ border-color: var(--magenta); color: var(--ink); }
.filter-btn.active{ background: var(--magenta); border-color: var(--magenta); color: var(--white); }

.card-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pcard{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.pcard:hover{ transform: translateY(-4px); box-shadow: 0 18px 34px rgba(22,22,26,0.10); }
.pcard-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px;}
.tag{
  display:inline-block;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--pink-tint);
  color: var(--magenta-deep);
  padding: 5px 10px;
  border-radius: 999px;
}
.pcard h3{
  font-size: 21px;
  text-transform: uppercase;
  line-height:1.2;
}
.pcard .origin{
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--display);
  white-space:nowrap;
}
.pcard-challenge{
  font-size: 14.5px;
  color: var(--ink-soft);
  min-height: 66px;
}
.pcard-partner{
  font-size: 13px;
  color: var(--ink-soft);
  font-style: normal;
}
.pcard-partner b{ color: var(--ink); font-weight:600; }

/* maturity stepper */
.stepper{ margin-top: 4px; }
.stepper-track{
  display:flex;
  align-items:center;
  gap: 4px;
  margin-bottom: 8px;
}
.stepper-seg{
  flex:1;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
}
.stepper-seg.done{ background: var(--magenta); }
.stepper-label{
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.stepper-label span{ color: var(--ink-soft); font-weight: 500; text-transform:none; letter-spacing:0; }

.pcard-more{
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--magenta-deep);
  display:flex; align-items:center; gap:6px;
  margin-top: auto;
}

/* ---------------- MODAL ---------------- */
.modal-overlay{
  position: fixed; inset:0;
  background: rgba(22,22,26,0.62);
  display:none;
  align-items:center; justify-content:center;
  z-index: 100;
  padding: 24px;
}
.modal-overlay.open{ display:flex; }
.modal{
  background: var(--cream);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width:100%;
  max-height: 86vh;
  overflow-y:auto;
  padding: 40px;
  position:relative;
  border: 1px solid var(--line);
}
.modal-close{
  position:absolute; top:20px; right:20px;
  width:36px; height:36px; border-radius:50%;
  background: var(--white); border:1px solid var(--line);
  cursor:pointer;
  font-size:18px; line-height:1;
  display:flex; align-items:center; justify-content:center;
}
.modal h3{ font-size:26px; text-transform:uppercase; margin-bottom:4px; padding-right:40px;}
.modal .tag{ margin-bottom: 16px; }
.modal-row{ margin-top: 18px; }
.modal-row h5{
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta-deep);
  margin: 0 0 6px;
}
.modal-row p{ margin:0; color: var(--ink-soft); font-size:15px; }
.modal-link{
  display:inline-flex; margin-top:22px;
  font-family: var(--display); font-weight:600; font-size:14px;
  color: var(--ink); text-decoration:none;
  border-bottom: 2px solid var(--magenta);
  padding-bottom: 2px;
}

/* ---------------- CTA / FORM ---------------- */
.cta-wrap{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}
.cta-copy .lede{ color: rgba(243,238,228,0.72); }
.cta-list{ margin-top:32px; display:grid; gap:16px; list-style:none; padding:0; }
.cta-list li{
  display:flex; gap:12px; align-items:flex-start;
  font-size: 15px; color: rgba(243,238,228,0.85);
}
.cta-list li::before{
  content:"→";
  color: var(--magenta);
  font-weight:700;
}

.form-card{
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--ink);
}
.field{ margin-bottom: 20px; }
.field label{
  display:block;
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea{
  width:100%;
  font-family: var(--body);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.field textarea{ min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none; border-color: var(--magenta);
}
.radio-row{ display:flex; gap: 18px; flex-wrap:wrap; }
.radio-opt{
  display:flex; align-items:center; gap:8px;
  font-size: 14px;
  background: var(--white);
  border: 1.5px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  cursor:pointer;
}
.radio-opt input{ accent-color: var(--magenta); }
.form-foot{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px; flex-wrap:wrap; margin-top: 8px;
}
.form-note{ font-size: 12.5px; color: var(--ink-soft); max-width: 32ch; }
.form-success{
  display:none;
  background: var(--ink);
  color: var(--pink-tint);
  border-radius: var(--radius-md);
  padding: 26px;
  font-family: var(--display);
  text-transform: uppercase;
  font-weight:600;
}
.form-success.show{ display:block; }

/* ---------------- EVENTS / RSVP ---------------- */
.event-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  margin: 0 auto;
}
.event-card .form-success{ margin-top: 0; }
.event-card .radio-row{ flex-direction: column; align-items: stretch; }
.event-card .radio-opt{ width: 100%; }

/* ---------------- FOOTER ---------------- */
.footer{
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 28px;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 40px;
  flex-wrap:wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(243,238,228,0.15);
}
.footer-logos{ display:flex; align-items:center; gap:18px; flex-wrap: wrap; row-gap: 14px; }
.footer-logos img{ height:45px; width:auto; }
.footer-logos img.tu{ height:57px; }
.footer-logos img.ecdf{ height:57px; width:auto; }
.footer-divider{ width:1px; height:42px; background: rgba(243,238,228,0.25); }
.footer-tagline{
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  display:flex; gap:18px; flex-wrap:wrap;
}
.footer-tagline span:nth-child(2){ color: var(--magenta); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 24px; flex-wrap:wrap; gap:12px;
  font-size: 13px; color: rgba(243,238,228,0.55);
}
.footer-bottom a{ text-decoration:none; color: rgba(243,238,228,0.75); }
.footer-bottom a:hover{ color: var(--magenta); }

/* ---------------- RESPONSIVE ---------------- */
/* Update your existing max-width: 980px media query */
@media (max-width: 980px){
  .hero-grid{ 
    grid-template-columns: 1fr; 
  }
  .about-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: repeat(2,1fr); }
  .step{ border-right:none; border-bottom:1px solid var(--line); padding: 26px 0; }
  .cluster-grid{ grid-template-columns: repeat(2,1fr); }
  .card-grid{ grid-template-columns: repeat(2,1fr); }
  .cta-wrap{ grid-template-columns: 1fr; }
}

@media (max-width: 680px){
   html, body{ overflow-x: hidden;}
  .wrap{ padding: 0 20px; }
  .nav-inner{ padding: 14px 20px; }
  .nav-links, .nav-cta .btn-ghost{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-logo img{ height: 40px; }
  .footer-logos img{ height: 34px; }
  .footer-logos img.tu{ height: 42px; }
  .footer-logos img.ecdf{ height: 42px; }
  .footer-divider{ height: 32px; }
  /* flow diagram: horizontal on phones instead of vertical */
  .flow{ flex-direction: row; gap: 10px; }
  .flow-node{ width: 96px; height: 96px; font-size: 10.5px; padding: 0 8px; }
  .flow > .flow-node:nth-of-type(1),
  .flow > .flow-node:nth-of-type(3),
  .flow > .flow-node:nth-of-type(5){ transform: none; align-self: center; }
  .flow-arrow{ font-size: 18px; }
  .flow > .flow-arrow:nth-of-type(2),
  .flow > .flow-arrow:nth-of-type(4){ transform: none; }

  /* model diagram: simple stacked list on phones — no arrows, no badges */
  .model-arrows{ display: none; }
  .model-badge{ display: none; }
  .model-diagram{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-width: 100%;
    padding: 0;
  }
  .model-hub{ order: 1; max-width: 220px; }
  .model-card--academic{ order: 2; }
  .model-card--challenges{ order: 3; }
  .model-card--cocreation{ order: 4; }
  .model-card--experiment{ order: 5; }
  .model-card--transfer{ order: 6; max-width: 100%; }
  .nav.open .nav-links{
    display:flex; flex-direction:column;
    position:absolute; top:100%; left:0; right:0;
    background: var(--cream); padding: 20px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .hero{ padding: 56px 0 40px; }
  .hero-stats{ gap: 24px; }
  .section{ padding: 64px 0; }
  .cluster-grid{ grid-template-columns: 1fr 1fr; }
  .card-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .section-head{ flex-direction:column; align-items:flex-start; }
  .footer-top{ flex-direction:column; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}
