:root {
  --blue: #07549a;
  --blue-deep: #064785;
  --blue-dark: #073862;
  --blue-soft: #edf5fb;
  --pink: #e42062;
  --yellow: #f2c51d;
  --ink: #16364f;
  --muted: #60788d;
  --line: #dce7ef;
  --white: #ffffff;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(5, 66, 118, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 42px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: #fff; padding: 10px 14px; }
.skip-link:focus { left: 10px; top: 10px; }

.topline { background: var(--blue-deep); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.topline-inner { min-height: 34px; display: flex; align-items: center; gap: 9px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(242,197,29,.18); }
.site-header { position: relative; background: #fff; border-bottom: 1px solid rgba(8,75,130,.1); z-index: 30; }
.nav-wrap { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { width: 300px; flex: 0 0 auto; }
.brand img { width: 100%; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 700; color: #31536f; }
.main-nav a { text-decoration: none; transition: color .2s ease; }
.main-nav a:hover { color: var(--blue); }
.main-nav .nav-cta { background: var(--blue); color: #fff; padding: 11px 17px; border-radius: 999px; }
.main-nav .nav-cta:hover { color: #fff; background: var(--blue-deep); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--blue-dark); margin: 5px 0; }

.hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.hero::after { content: ""; position: absolute; right: -130px; bottom: -170px; width: 560px; height: 560px; border: 44px solid rgba(242,197,29,.17); border-radius: 50%; }
.hero-pattern { position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(circle at center, #fff 1.25px, transparent 1.5px); background-size: 29px 29px; mask-image: linear-gradient(90deg, transparent 10%, #000 70%, #000); }
.hero-grid { position: relative; z-index: 2; min-height: 610px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: center; padding-block: 90px; }
.eyebrow { margin: 0 0 13px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: #b9dcf5; }
.hero h1 { margin: 0; max-width: 820px; font-size: clamp(44px, 5.2vw, 70px); line-height: .99; letter-spacing: -.045em; font-weight: 800; }
.hero-lead { max-width: 760px; margin: 28px 0 0; color: #eaf4fc; font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 7px; text-decoration: none; font-weight: 800; font-size: 14px; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-light { background: #fff; color: var(--blue); }
.button-outline-light { border: 1px solid rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.05); }
.hero-card { align-self: stretch; max-height: 395px; margin-block: auto; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); border-radius: 18px; padding: 27px; box-shadow: 0 20px 55px rgba(0,31,69,.18); }
.hero-card-label { margin-bottom: 16px; color: #cde6f8; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.hero-card-item { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: center; min-height: 88px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-card-number { color: var(--yellow); font-size: 13px; font-weight: 900; }
.hero-card-item strong { font-size: 18px; }

.section { padding: 92px 0; }
.section-white { background: #fff; }
.section-soft { background: var(--blue-soft); }
.split-intro { display: grid; grid-template-columns: .82fr 1.18fr; gap: 95px; align-items: start; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.035em; color: var(--blue-dark); }
h3 { margin: 0; line-height: 1.2; color: var(--blue-dark); }
.prose p { margin-top: 0; margin-bottom: 18px; color: #49657b; }
.lead-prose { font-size: 17px; }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 58px; }
.value-card { padding: 28px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.value-icon { display: inline-grid; place-items: center; width: 39px; height: 39px; margin-bottom: 20px; border-radius: 50%; color: var(--blue); background: #eaf4fb; font-size: 20px; font-weight: 900; }
.value-card:nth-child(2) .value-icon { color: var(--pink); background: #fdebf2; }
.value-card:nth-child(3) .value-icon { color: #8a6a00; background: #fff7d6; }
.value-card h3 { font-size: 18px; }
.value-card p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

.purpose-grid { display: grid; grid-template-columns: 1.03fr 1fr 1fr; gap: 22px; align-items: stretch; }
.purpose-heading { padding: 20px 38px 20px 0; }
.purpose-card { background: #fff; border: 1px solid #d7e6f1; border-radius: var(--radius); padding: 33px; box-shadow: 0 8px 26px rgba(7,76,135,.05); }
.purpose-card.accent-card { border-top: 5px solid var(--pink); }
.purpose-kicker { display: block; margin-bottom: 18px; color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 0 0 13px 27px; color: #536c80; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 900; }

.platform-section { background: #fff; }
.section-heading { max-width: 790px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.pillar-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 50px; }
.pillar-card { min-height: 430px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(7,74,128,.06); }
.pillar-card:nth-child(2) { border-top: 5px solid var(--yellow); }
.pillar-card:nth-child(3) { border-top: 5px solid var(--pink); }
.pillar-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; }
.pillar-number { color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.pillar-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 22px; }
.pillar-card h3 { font-size: 24px; }
.pillar-card p { color: var(--muted); font-size: 15px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.tag-row span { padding: 5px 8px; border-radius: 4px; background: #f0f5f9; color: #577085; font-size: 11px; font-weight: 800; }

.audience-section { background: #f7fafc; }
.audience-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 45px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience-grid article { padding: 34px 27px 30px 0; margin-right: 27px; border-right: 1px solid var(--line); }
.audience-grid article:last-child { border-right: 0; margin-right: 0; }
.audience-grid span { display: block; margin-bottom: 19px; color: var(--pink); font-size: 12px; font-weight: 900; }
.audience-grid h3 { font-size: 18px; }
.audience-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.journey-section { position: relative; overflow: hidden; background: var(--blue-deep); color: #fff; }
.journey-section::before { content:""; position:absolute; left:-190px; top:-250px; width: 520px; height: 520px; border: 38px solid rgba(228,32,98,.18); border-radius:50%; }
.journey-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; align-items: center; }
.journey-logo-wrap { background: #fff; border-radius: 15px; min-height: 310px; display: grid; place-items: center; padding: 45px; box-shadow: 0 24px 55px rgba(0,25,55,.25); }
.journey-logo-wrap img { width: 100%; max-width: 460px; height: auto; display: block; }
.journey-caption { margin: -10px 0 0; color: #688098; font-size: 13px; font-weight: 700; }
.journey-copy h2 { color: #fff; }
.journey-copy p:not(.eyebrow) { color: #dcecf8; font-size: 16px; }
.text-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; font-weight: 850; text-decoration: none; }
.light-link { color: #fff; }
.light-link span { color: var(--yellow); }

.partners-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.partner-list { border-top: 1px solid var(--line); }
.partner-list > div { min-height: 62px; display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.partner-list span { display: grid; place-items: center; width: 38px; height: 27px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 900; }
.partner-list strong { font-size: 15px; font-weight: 750; }
.partner-list .partner-more span { background: #fff5cd; color: #866900; }

.cta-section { padding: 68px 0; background: var(--blue); color: #fff; }
.cta-inner { display: flex; justify-content: space-between; gap: 50px; align-items: center; }
.cta-inner h2 { color: #fff; max-width: 700px; }
.cta-inner p:not(.eyebrow) { max-width: 760px; margin-bottom: 0; color: #dcecf8; }
.cta-inner .button { flex: 0 0 auto; }

.site-footer { padding: 60px 0 26px; background: #082f50; color: #d4e1eb; }
.footer-top { display: grid; grid-template-columns: 1.35fr .55fr .6fr .9fr; gap: 50px; align-items: start; }
.footer-brand img { width: 260px; filter: brightness(0) invert(1); opacity: .96; }
.footer-brand p { max-width: 320px; color: #a9bfce; font-size: 13px; }
.footer-nav, .footer-project { display: flex; flex-direction: column; gap: 8px; }
.footer-nav strong, .footer-project strong { margin-bottom: 4px; color: #fff; font-size: 13px; }
.footer-nav a, .footer-project a { color: #b5c9d7; text-decoration: none; font-size: 13px; }
.eu-funding img { width: 240px; }
.disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #90a9ba; font-size: 11px; line-height: 1.55; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; color: #7894a8; font-size: 11px; }

@media (max-width: 1050px) {
  .brand { width: 255px; }
  .main-nav { gap: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; min-height: auto; padding-block: 75px; }
  .hero-card { max-width: 620px; }
  .purpose-grid { grid-template-columns: 1fr 1fr; }
  .purpose-heading { grid-column: 1 / -1; }
  .values-grid, .audience-grid { grid-template-columns: repeat(2,1fr); }
  .audience-grid article:nth-child(2) { border-right: 0; }
  .audience-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: auto; }
  .footer-top { grid-template-columns: 1.2fr .8fr .8fr; }
  .eu-funding { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-wrap { min-height: 82px; }
  .brand { width: 240px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 116px; left: 0; right: 0; padding: 22px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,44,79,.12); flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 0; }
  .main-nav .nav-cta { margin-top: 7px; text-align: center; padding: 12px 17px; }
  .section { padding: 72px 0; }
  .split-intro, .journey-grid, .partners-grid { grid-template-columns: 1fr; gap: 42px; }
  .journey-logo-wrap { min-height: 220px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .topline { font-size: 11px; }
  .brand { width: 210px; }
  .hero-grid { padding-block: 58px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 17px; }
  .hero-card { padding: 20px; }
  .values-grid, .purpose-grid, .audience-grid, .footer-top { grid-template-columns: 1fr; }
  .audience-grid article, .audience-grid article:nth-child(2) { margin-right: 0; border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .audience-grid article:last-child { border-bottom: 0; }
  .journey-logo-wrap { padding: 30px; }
  .footer-bottom { flex-direction: column; }
}

/* --- V3: temporary-site / next-chapter emphasis --- */
.temporary-topline { background: #053d71; }
.temporary-topline .topline-inner { min-height: 40px; flex-wrap: wrap; }
.temporary-topline strong { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.temporary-topline a { margin-left: auto; color: #fff; font-weight: 800; text-underline-offset: 3px; }
.topline-separator { opacity: .55; }

.hero-next { background: linear-gradient(122deg, #07549a 0%, #064785 58%, #073862 100%); }
.hero-grid-next { grid-template-columns: 1.15fr .85fr; min-height: 690px; gap: 68px; }
.temporary-badge { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.09); color: #fff; font-size: 12px; font-weight: 850; letter-spacing: .04em; }
.temporary-badge span { color: var(--yellow); font-size: 9px; }
.hero-next h1 { max-width: 800px; }
.hero-notice { max-width: 760px; margin-top: 28px; padding: 17px 19px; border-left: 4px solid var(--yellow); background: rgba(255,255,255,.08); border-radius: 0 10px 10px 0; display: grid; gap: 3px; }
.hero-notice strong { color: #fff; font-size: 15px; }
.hero-notice span { color: #dfeefa; font-size: 14px; }
.next-card { position: relative; border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.09); backdrop-filter: blur(8px); border-radius: 20px; padding: 30px 29px; box-shadow: 0 24px 60px rgba(0,31,69,.22); }
.next-card-kicker { margin: 0 0 24px; color: #cde6f8; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.next-step { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: start; }
.next-step strong { display: block; color: #fff; font-size: 19px; line-height: 1.25; }
.next-step p { margin: 6px 0 0; color: #d9ebf8; font-size: 13px; line-height: 1.5; }
.next-year { display: inline-grid; place-items: center; min-height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 11px; font-weight: 900; }
.next-step.complete .next-year { background: rgba(255,255,255,.08); }
.next-step.current .next-year { background: var(--pink); border-color: var(--pink); }
.next-step.future .next-year { background: var(--yellow); border-color: var(--yellow); color: #5f4a00; }
.next-line { width: 1px; height: 34px; margin: 6px 0 6px 44px; background: rgba(255,255,255,.27); }

.next-chapter-section { background: #fff; }
.next-chapter-intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 92px; align-items: start; }
.transition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 55px; }
.transition-card { min-height: 250px; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(7,74,128,.05); }
.transition-card.highlighted { border-top: 5px solid var(--pink); background: #fbfdff; }
.transition-label { display: inline-block; margin-bottom: 25px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.transition-card h3 { font-size: 23px; }
.transition-card p { color: var(--muted); font-size: 14px; }
.journey-section-prominent { padding-top: 102px; padding-bottom: 102px; }
.journey-callout { margin: 24px 0 10px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.07); display: grid; gap: 2px; }
.journey-callout strong { color: #fff; }
.journey-callout span { color: #dcecf8; font-size: 14px; }
.temporary-footer { color: #d6b93c; }

/* --- Contact page --- */
.contact-hero { position: relative; overflow: hidden; padding: 82px 0 86px; background: linear-gradient(120deg, #07549a, #064785 65%, #073862); color: #fff; }
.contact-hero::after { content: ""; position: absolute; width: 350px; height: 350px; right: -100px; top: -155px; border-radius: 50%; border: 34px solid rgba(242,197,29,.16); }
.contact-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.contact-hero h1 { margin: 0; color: #fff; font-size: clamp(43px, 5vw, 68px); line-height: 1.02; letter-spacing: -.04em; }
.contact-hero p:last-child { max-width: 700px; margin: 22px 0 0; color: #dcecf8; font-size: 18px; }
.contact-section { background: #f7fafc; }
.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: start; }
.contact-info { position: sticky; top: 30px; }
.contact-info h2, .contact-form-wrap h2 { font-size: clamp(31px, 3vw, 44px); }
.contact-info > p:not(.eyebrow) { color: var(--muted); }
.contact-facts { margin-top: 30px; border-top: 1px solid var(--line); }
.contact-facts > div { display: grid; grid-template-columns: 105px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-facts span { color: #7890a4; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.contact-facts strong, .contact-facts a { color: var(--blue-dark); font-size: 14px; font-weight: 750; text-decoration: none; }
.contact-facts a:hover { text-decoration: underline; }
.contact-note { margin-top: 30px; padding: 20px; border-radius: 12px; background: var(--blue); color: #fff; }
.contact-note strong { display: block; margin-bottom: 6px; }
.contact-note p { margin: 0; color: #dcecf8; font-size: 13px; }
.contact-form-wrap { padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.contact-form { margin-top: 28px; }
.form-row { display: grid; gap: 18px; margin-bottom: 18px; }
.form-row.two-cols { grid-template-columns: repeat(2, 1fr); }
.contact-form > label { display: block; margin-bottom: 18px; }
.contact-form label { color: #31536f; font-size: 13px; font-weight: 800; }
.contact-form label > span { color: var(--pink); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-top: 7px; border: 1px solid #cfdde7; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input, .contact-form select { min-height: 48px; padding: 0 13px; }
.contact-form textarea { padding: 12px 13px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,84,154,.1); }
.form-submit { border: 0; background: var(--blue); color: #fff; cursor: pointer; padding-inline: 24px; }
.form-submit:hover { background: var(--blue-deep); }
.form-privacy { max-width: 720px; margin: 17px 0 0; color: #7b90a1; font-size: 11px; line-height: 1.55; }
.form-status { min-height: 18px; margin: 8px 0 0; color: var(--blue); font-size: 12px; font-weight: 750; }

@media (max-width: 1050px) {
  .hero-grid-next { grid-template-columns: 1fr; min-height: auto; }
  .next-card { max-width: 680px; }
  .transition-grid { grid-template-columns: 1fr; }
  .transition-card { min-height: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; }
}

@media (max-width: 820px) {
  .temporary-topline .topline-inner { padding-block: 7px; }
  .temporary-topline a { width: 100%; margin-left: 17px; }
  .next-chapter-intro { grid-template-columns: 1fr; gap: 38px; }
  .form-row.two-cols { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 22px; }
}

@media (max-width: 580px) {
  .temporary-topline .topline-separator { display: none; }
  .temporary-topline .topline-inner > span:not(.status-dot):not(.topline-separator) { width: calc(100% - 18px); }
  .hero-grid-next { padding-top: 48px; }
  .next-step { grid-template-columns: 76px 1fr; gap: 12px; }
  .next-line { margin-left: 38px; }
  .contact-facts > div { grid-template-columns: 1fr; gap: 3px; }
}

/* --- V4: link to the existing Edu4Health platform during transition --- */
.existing-platform-hero {
  max-width: 790px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.existing-platform-hero > div { display: grid; gap: 4px; }
.existing-platform-hero strong { color: #fff; font-size: 14px; }
.existing-platform-hero > div > span { color: #cfe3f2; font-size: 13px; line-height: 1.5; }
.existing-platform-hero > a {
  flex: 0 0 auto;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.existing-platform-hero > a span { color: var(--yellow); margin-left: 5px; }
.existing-platform-hero > a:hover { text-decoration: underline; text-underline-offset: 3px; }

.existing-platform-callout {
  margin-top: 52px;
  padding: 31px 34px;
  border: 1px solid #cfe0ec;
  border-left: 5px solid var(--yellow);
  border-radius: 14px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 46px;
}
.existing-platform-copy { max-width: 760px; }
.existing-platform-copy .eyebrow { margin-bottom: 8px; }
.existing-platform-copy h3 { font-size: 25px; }
.existing-platform-copy p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.existing-platform-button {
  flex: 0 0 auto;
  min-width: 238px;
  background: var(--blue);
  color: #fff;
}
.existing-platform-button:hover { background: var(--blue-deep); }
.existing-platform-button span { margin-left: 7px; color: var(--yellow); }

@media (max-width: 820px) {
  .existing-platform-hero,
  .existing-platform-callout { align-items: flex-start; flex-direction: column; }
  .existing-platform-hero > a { white-space: normal; }
  .existing-platform-callout { gap: 22px; padding: 27px; }
  .existing-platform-button { min-width: 0; }
}



/* --- V5 strong: final visual polish --- */
:focus-visible { outline: 3px solid rgba(242,197,29,.95); outline-offset: 3px; border-radius: 4px; }
.site-header { box-shadow: 0 1px 0 rgba(7,56,98,.04); }
.brand img { transition: transform .2s ease; }
.brand:hover img { transform: translateY(-1px); }
.main-nav a:not(.nav-cta) { position: relative; padding-block: 8px; }
.main-nav a:not(.nav-cta)::after { content:""; position:absolute; left:0; right:100%; bottom:3px; height:2px; background:var(--pink); transition:right .2s ease; }
.main-nav a:not(.nav-cta):hover::after { right:0; }
.main-nav .nav-cta { box-shadow: 0 7px 18px rgba(7,84,154,.16); }

.temporary-topline { box-shadow: inset 0 -1px rgba(255,255,255,.08); }
.temporary-topline a { text-decoration-thickness: 1px; }
.status-dot { animation: statusPulse 2.6s ease-in-out infinite; }
@keyframes statusPulse { 0%,100% { box-shadow:0 0 0 4px rgba(242,197,29,.14); } 50% { box-shadow:0 0 0 7px rgba(242,197,29,.04); } }

.hero-next { background: linear-gradient(125deg,#07549a 0%,#064a89 52%,#073862 100%); }
.hero-grid-next { min-height: 720px; gap: 74px; }
.hero-copy { padding-block: 4px; }
.hero h1 { text-wrap: balance; }
.hero-lead { max-width: 780px; }
.temporary-badge { box-shadow: inset 0 1px rgba(255,255,255,.06); }
.hero-notice { box-shadow: inset 0 1px rgba(255,255,255,.035); }
.button { box-shadow: 0 7px 20px rgba(0,32,66,.08); }
.button-light { box-shadow: 0 9px 24px rgba(0,31,69,.18); }
.button-outline-light:hover { background: rgba(255,255,255,.12); }

.next-card { overflow:hidden; padding: 32px; }
.next-card::before { content:""; position:absolute; width:190px; height:190px; right:-95px; top:-95px; border:25px solid rgba(242,197,29,.08); border-radius:50%; pointer-events:none; }
.next-card-head { position:relative; z-index:1; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:26px; }
.next-card-head .next-card-kicker { margin:4px 0 0; }
.development-status { display:inline-flex; align-items:center; gap:7px; flex:0 0 auto; padding:6px 9px; border:1px solid rgba(255,255,255,.18); border-radius:999px; color:#eef8ff; background:rgba(255,255,255,.07); font-size:10px; font-weight:800; }
.development-status i { width:6px; height:6px; border-radius:50%; background:var(--yellow); box-shadow:0 0 0 4px rgba(242,197,29,.12); }
.next-step { position:relative; z-index:1; }
.next-step.current div { padding:14px 15px; margin:-14px -15px; border-radius:10px; background:rgba(255,255,255,.055); }

.next-chapter-section { position:relative; }
.next-chapter-section::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,var(--line),transparent); }
.next-chapter-intro h2 { max-width:560px; }
.lead-prose strong { color:var(--blue-dark); }
.transition-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.transition-card:hover { transform:translateY(-3px); box-shadow:0 18px 42px rgba(7,74,128,.09); border-color:#c8dce9; }
.transition-card.highlighted { box-shadow:0 14px 36px rgba(7,74,128,.08); }
.transition-card.highlighted .transition-label { color:var(--pink); }
.existing-platform-callout { box-shadow:0 12px 34px rgba(7,74,128,.06); }

.journey-section-prominent::after { content:""; position:absolute; right:-175px; bottom:-250px; width:500px; height:500px; border:36px solid rgba(242,197,29,.08); border-radius:50%; }
.journey-grid { z-index:3; }
.journey-logo-wrap { position:relative; overflow:hidden; }
.journey-logo-wrap::after { content:none; }
.journey-caption { text-align:center; }
.journey-callout { border-left:4px solid var(--yellow); border-radius:0 10px 10px 0; }

.value-card, .pillar-card { transition:transform .2s ease, box-shadow .2s ease; }
.value-card:hover, .pillar-card:hover { transform:translateY(-2px); box-shadow:0 16px 38px rgba(7,74,128,.08); }
.pillar-card:first-child { border-top:5px solid var(--blue); }
.cta-section { position:relative; overflow:hidden; }
.cta-section::after { content:""; position:absolute; width:280px; height:280px; right:-90px; top:-150px; border:28px solid rgba(242,197,29,.11); border-radius:50%; pointer-events:none; }
.cta-inner { position:relative; z-index:1; }

.site-footer { box-shadow: inset 0 1px rgba(255,255,255,.04); }
.footer-nav a:hover, .footer-project a:hover { color:#fff; }
.temporary-footer { display:inline-flex; align-items:center; gap:7px; }
.temporary-footer::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--yellow); }

.contact-hero::before { content:"Temporary website · collaboration continues"; position:absolute; top:20px; left:50%; transform:translateX(-50%); width:min(calc(100% - 42px),var(--max)); color:#cde6f8; font-size:11px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.contact-form-wrap { box-shadow:0 22px 55px rgba(5,66,118,.10); }
.form-submit { min-width:170px; }

@media (max-width: 1050px) {
  .hero-grid-next { min-height:auto; }
  .next-card { max-width:720px; }
}
@media (max-width: 820px) {
  .main-nav { top:100%; }
  .temporary-topline a { margin-left:auto; width:auto; }
  .next-card-head { flex-direction:column; }
  .existing-platform-hero { margin-top:24px; }
}
@media (max-width: 640px) {
  .temporary-topline .topline-inner { gap:7px 9px; }
  .temporary-topline .topline-inner > span:not(.status-dot):not(.topline-separator) { width:auto; }
  .temporary-topline a { width:100%; margin-left:17px; }
  .hero h1 { font-size:clamp(38px,12vw,48px); }
  .hero-actions .button { width:100%; }
  .next-card { padding:25px 21px; }
  .next-step { grid-template-columns:72px 1fr; }
  .existing-platform-callout { padding:24px 21px; }
  
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}
