/* EPICITY — art direction layer. Loaded after epicity.css; overrides tokens' look, not its structure. */

h1, h2 { font-family: var(--display); font-weight: 380; letter-spacing: -.025em; font-variation-settings: "opsz" 144; line-height: 1.04; }
h3 { font-weight: 600; }
body { background: var(--mist); font-size: 1.0625rem; }
::selection { background: var(--leaf-soft); color: var(--ink); }
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: .75rem; font: 600 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mangrove); margin: 0 0 1.4rem; }
.kicker::before, .eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; }
.on-dark .kicker, .on-dark .eyebrow, .hero .eyebrow { color: var(--leaf); }

.btn { border-radius: 2px; padding: 1.05rem 1.6rem; letter-spacing: .01em; --bg: var(--ocean-2); }
.btn:hover { --bg: var(--ocean); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(14,38,35,.3); }
.btn--ghost:hover { --bg: var(--paper); }
.cta-band .btn, .on-dark .btn, .hero .btn { --bg: var(--leaf); --fg: #072a25; }
.cta-band .btn:hover, .on-dark .btn:hover, .hero .btn:hover { --bg: #86be70; --fg: #072a25; }
.hero .btn--ghost, .on-dark .btn--ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn--ghost:hover, .on-dark .btn--ghost:hover { --bg: rgba(255,255,255,.08); --fg: #fff; border-color: #fff; }
.nav a.btn, .nav a.btn:hover { color: #fff; }

/* Header + real EPIC logo */
.site-header { background: color-mix(in srgb, var(--mist) 90%, transparent); }
.site-header .wrap { height: 84px; }
.brand { gap: .9rem; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-tag { font: 500 .66rem var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-left: .9rem; border-left: 1px solid var(--rule); line-height: 1.5; }
.site-footer .brand-logo { filter: brightness(0) invert(1); height: 46px; }
.site-footer .brand-tag { color: rgba(255,255,255,.55); border-color: var(--rule-dark); }
@media (max-width: 480px) { .brand-tag { display: none; } }
.nav a { border-radius: 0; position: relative; padding: .55rem .9rem; }
.nav a:hover { background: none; color: var(--mangrove); }
.nav a[aria-current="page"] { background: none; box-shadow: none; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem; height: 2px; background: var(--leaf); }
.nav-services > button { border-radius: 0; }
.header-cta { border-radius: 2px; }
@media (max-width: 1020px) { .site-header .wrap { height: 72px; } .nav { inset: 72px 0 auto 0; } .menu-toggle { border-radius: 2px; } }

/* Home hero: dark, editorial, three arches cropped from the brand triptych */
.hero { background: var(--ocean); color: #cfe0db; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(7rem, 11vw, 9rem); position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); box-shadow: 0 0 0 6vmax rgba(255,255,255,.012), 0 0 0 12vmax rgba(255,255,255,.012); }
.hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: end; gap: clamp(2rem, 5vw, 5rem); }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 5.4vw, 5.2rem); margin-bottom: 1.75rem; }
.hero h1 .line + .line { color: var(--leaf); font-style: italic; font-weight: 340; }
.hero .lead { color: #aec4be; max-width: 31em; font-size: 1.2rem; }
.registry { border-top-color: var(--rule-dark); margin-top: 3.25rem; }
.registry dt { color: #7f9a93; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.registry dd { color: #fff; }

.arches { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.5rem, 1.2vw, .9rem); align-items: end; margin: 0; padding-bottom: 2rem; }
.arch { position: relative; background: var(--ocean-2) var(--img) no-repeat; background-size: 300% 100%; border-radius: 999px 999px 3px 3px; aspect-ratio: 1 / 2.3; }
.arch:nth-child(1) { background-position: 0 50%; transform: translateY(-2.5rem); }
.arch:nth-child(2) { background-position: 50% 50%; }
.arch:nth-child(3) { background-position: 100% 50%; transform: translateY(-1rem); }
.arch::after { content: attr(data-label); position: absolute; left: 0; right: 0; bottom: -1.9rem; text-align: center; font: 600 .66rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #7f9a93; }
@media (prefers-reduced-motion: no-preference) { .arch { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; } .arch:nth-child(2) { animation-delay: .12s; } .arch:nth-child(3) { animation-delay: .24s; } }
@keyframes rise { from { opacity: 0; translate: 0 2rem; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .arches { max-width: 520px; } .hero { padding-bottom: 6rem; } }

/* Credentials ribbon overlapping the hero */
.ribbon { position: relative; z-index: 2; margin-top: -3.5rem; }
.ribbon-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 30px 60px -35px rgba(10,58,53,.45); border-radius: 2px; }
.ribbon-grid > div { padding: 1.6rem 1.8rem; border-left: 1px solid var(--rule); }
.ribbon-grid > div:first-child { border-left: 0; }
.ribbon-grid b { display: block; font: 380 2.1rem/1 var(--display); color: var(--ocean-2); margin-bottom: .45rem; font-variation-settings: "opsz" 144; }
.ribbon-grid span { font: 500 .8rem/1.4 var(--sans); color: var(--muted); }
@media (max-width: 860px) { .ribbon-grid { grid-template-columns: 1fr 1fr; } .ribbon-grid > div:nth-child(3) { border-left: 0; } .ribbon-grid > div:nth-child(n+3) { border-top: 1px solid var(--rule); } }

.section--paper { background: var(--paper); }
.section-head h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); }
.section-head .lead { border-left: 1px solid var(--leaf); padding-left: 1.5rem; }
.on-dark .lead, .on-dark p { color: #a3bbb5; }

.feature { border-radius: 2px; min-height: 520px; }
.feature::after { background: linear-gradient(180deg, rgba(10,58,53,0) 35%, rgba(10,58,53,.94) 100%); }
.feature .where { border-radius: 0; text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; background: var(--leaf); color: #072a25; backdrop-filter: none; }
.feature h3 { font-family: var(--display); font-weight: 380; font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -.02em; }
.pathway-list .thumb { border-radius: 2px; }
.pathway-list h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: -.015em; }
.pathway-list .cat { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--mangrove); font-weight: 600; }
.pathway-list .go { border-radius: 0; }
.pathway-list a:hover .go { background: var(--leaf); border-color: var(--leaf); color: #072a25; }
.pathway-list a:hover h3 { color: var(--mangrove); }

.commit-list svg { color: var(--leaf); }
.commit-list strong { font-family: var(--display); font-weight: 400; font-size: 1.45rem; }

.steps li { padding-top: 5rem; }
.steps li::before { border-radius: 0; font-family: var(--display); font-weight: 400; background: transparent; border: 0; width: auto; height: auto; display: block; font-size: 2.6rem; line-height: 1; color: var(--leaf); }
.steps li::after { top: 1.4rem; left: 3.6rem; border-top: 1px solid var(--rule); }
.section--paper .steps li::before { background: transparent; }

.desk, .form, .contact-card, .aside-card, .principles, .caps, .service-hero figure, .cta-band { border-radius: 2px; }
.chip { border-radius: 2px; }
.cta-band { background: var(--ocean); }
.cta-band h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.cta-band::before { border-color: rgba(110,166,89,.2); }
.desk h3, .principles h3, .caps h3 { font-family: var(--display); font-weight: 400; }
.field input, .field select, .field textarea { border-radius: 2px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--leaf); }
.consent input { accent-color: var(--mangrove); }
.notice { border-radius: 2px; background: #f1f5e8; border-color: #d4e2bd; color: #34502b; }
.notice svg { color: var(--leaf); }
.alert { border-radius: 2px; }

.page-hero { background: var(--paper); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); max-width: 17ch; }
.crumbs { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }

.site-footer { background: var(--ocean); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--leaf), transparent 60%); }
.site-footer h2 { font: 600 .7rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--leaf); }
.site-footer p { font-family: var(--display); font-size: 1.15rem; line-height: 1.5; color: #c4d6d1; }
.wa-float { background: var(--ocean-2); }
.wa-float:hover { background: var(--leaf); color: #072a25; }

/* Hero mosaic: one tall image beside two stacked, bleeding to the right edge, faded into the copy (as on the current site) */
.hero-grid { align-items: stretch; }
.mosaic { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6px; margin-right: calc((var(--wrap) - 100vw) / 2); min-height: 560px; position: relative; padding-block: .5rem; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }
.mosaic .m-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; min-height: 0; }
.mosaic .m-stack img { min-height: 0; }
@media (max-width: 1240px) { .mosaic { margin-right: calc(var(--gutter) * -1); } }
@media (max-width: 900px) { .mosaic { min-height: 0; height: 320px; margin-inline: calc(var(--gutter) * -1); padding: 0; } }

/* Services: three-up image-top cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.card { display: flex; flex-direction: column; background: var(--mist); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(10,58,53,.5); color: var(--ink); }
.card-img { aspect-ratio: 1.6; width: 100%; object-fit: cover; display: block; }
.card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font: 600 .68rem var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--mangrove); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: -.015em; line-height: 1.15; margin: .7rem 0 .6rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0 0 1.2rem; }
.card .text-link { margin-top: auto; display: inline-flex; gap: .5rem; align-items: center; font: 600 .92rem var(--sans); color: var(--mangrove); }
.card .text-link svg { width: 1.1em; transition: transform .2s; }
.card:hover .text-link svg { transform: translateX(4px); }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

/* Flight map: replaces the hero mosaic */
.flightmap { margin: 0; position: relative; align-self: center; border: 1px solid var(--rule-dark); border-radius: 2px; overflow: hidden; background: radial-gradient(120% 90% at 70% 30%, #0a3530, #04201d); aspect-ratio: 1.3 / 1; }
.flightmap svg { width: 100%; height: 100%; display: block; }
.fm-land { fill: #2a8a74; stroke: #6fc9a8; stroke-width: .35; stroke-opacity: .55; }
.fm-route { fill: none; stroke: #d3f8c7; stroke-width: 1; stroke-linecap: round; stroke-dasharray: 2 4; }
.fm-route--back { stroke: #f2c879; opacity: 1; }
.fm-pin circle:not(.fm-ring) { fill: var(--leaf); stroke: #fff; stroke-width: 1.2; }
.fm-ring { fill: none; stroke: var(--leaf); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: fm-ring 2.8s ease-out infinite; }
.fm-city { fill: #fff; font: 650 8px var(--sans); }
.fm-sub { fill: #8fb3aa; font: 500 5.6px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.flightmap figcaption { position: absolute; left: 1.1rem; right: 1.1rem; bottom: .9rem; display: flex; justify-content: space-between; gap: 1rem; font: 600 .66rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8fb3aa; }
.flightmap figcaption span:last-child { text-align: right; letter-spacing: .04em; text-transform: none; font-weight: 500; font-size: .78rem; }
@keyframes fm-ring { from { transform: scale(.8); opacity: .9; } to { transform: scale(4); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { .fm-route { animation: fm-dash 1.6s linear infinite; } }
@keyframes fm-dash { to { stroke-dashoffset: -12; } }
@media (prefers-reduced-motion: reduce) { .fm-plane, .fm-ring { display: none; } }
@media (max-width: 900px) { .flightmap { aspect-ratio: 1.15 / 1; margin-top: 1rem; } .flightmap figcaption span:last-child { display: none; } }
.flightmap::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4.5rem; background: linear-gradient(0deg, #04201d 15%, transparent); pointer-events: none; }
.flightmap figcaption { z-index: 1; color: #b8d6cc; }
.fm-city { paint-order: stroke; stroke: #04201d; stroke-width: 2px; stroke-linejoin: round; }

/* Inner pages: dark editorial header, same language as the home hero */
.page-hero { background: var(--ocean); color: #cfe0db; border-bottom: 0; position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3rem, 6vw, 5rem) clamp(3.5rem, 7vw, 5.5rem); }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 62vmax; height: 62vmax; right: -22vmax; top: -30vmax; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); box-shadow: 0 0 0 6vmax rgba(255,255,255,.012), 0 0 0 12vmax rgba(255,255,255,.012); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--leaf), transparent 55%); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #aec4be; }
.page-hero .kicker, .page-hero .eyebrow { color: var(--leaf); }
.page-hero .crumbs { display: none; }
.page-hero .service-hero .crumbs { display: block; }
.crumbs, .crumbs a { color: #7f9a93; }
.page-hero .btn { --bg: var(--leaf); --fg: #072a25; }
.page-hero .btn:hover { --bg: #86be70; }
.page-hero .btn--ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.3); }
.page-hero .btn--ghost:hover { --bg: rgba(255,255,255,.08); border-color: #fff; }
.service-hero figure { border: 1px solid var(--rule-dark); }
.service-hero figure img { border-radius: 0; }
.service-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); max-width: none; }

/* Partner institutions: logo tiles linking to official sites */
.inst-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.inst-grid:has(li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.inst { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.inst:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(10,58,53,.5); border-color: var(--leaf); color: var(--ink); }
.inst-logo { display: grid; place-items: center; height: 170px; padding: 2rem; background: #fff; border-bottom: 1px solid var(--rule); }
.inst-logo img { max-width: 78%; max-height: 90px; width: auto; height: auto; object-fit: contain; }
.inst-word { font: 400 1.9rem/1.1 var(--display); letter-spacing: -.01em; color: var(--ocean-2); text-align: center; }
.inst-name { font: 400 1.45rem/1.2 var(--display); padding: 1.3rem 1.5rem .3rem; }
.inst-go { display: inline-flex; align-items: center; gap: .5rem; padding: 0 1.5rem 1.5rem; font: 600 .9rem var(--sans); color: var(--mangrove); margin-top: auto; }
.inst-go svg { width: 1.05em; transition: transform .2s; }
.inst:hover .inst-go svg { transform: translateX(4px); }
.inst-note { margin: 1.5rem 0 0; font: 400 .82rem/1.5 var(--sans); color: var(--muted); max-width: 70ch; }
@media (max-width: 860px) { .inst-grid, .inst-grid:has(li:nth-child(2):last-child) { grid-template-columns: 1fr; max-width: none; } }

/* Polish: robust small-screen behaviour */
html, body { overflow-x: clip; }
.hero-grid > *, .detail > *, .two-col > *, .contact-grid > *, .service-hero > * { min-width: 0; }
@media (max-width: 900px) {
  .hero-grid, .service-hero, .detail, .two-col, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
.eyebrow, .kicker { flex-wrap: wrap; row-gap: .4rem; }
@media (max-width: 560px) {
  .eyebrow::before, .kicker::before { width: 1.4rem; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.2rem); }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .ribbon { margin-top: -2.5rem; }
  .ribbon-grid > div { padding: 1.2rem 1.1rem; }
  .ribbon-grid b { font-size: 1.7rem; }
  .section-head .lead { padding-left: 1rem; }
  .flightmap figcaption span:first-child { font-size: .6rem; }
}
a, button, .btn { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline-color: var(--leaf); }

/* ===================== Polish pass ===================== */
/* Rhythm: tighter, more deliberate vertical spacing */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2, .cta-band h2 { max-width: 20ch; }
.two-col h2 { max-width: 16ch; }
p { text-wrap: pretty; }
.hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(6.5rem, 10vw, 8rem); }
.hero .actions { margin-top: 2.25rem; }
.hero-grid { align-items: center; }

/* Credentials ribbon */
.ribbon-grid b { font-size: clamp(1.5rem, 2.2vw, 1.95rem); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.ribbon-grid small { font-size: .74rem; opacity: .75; }
.ribbon-grid > div { transition: background-color .25s; }
.ribbon-grid > div:hover { background: #fff; }

/* Scroll reveal (class added by JS only; no-JS and reduced-motion show everything) */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), translate .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* Cards: image zoom, accent line */
.card-img-wrap, .card { position: relative; }
.card { overflow: hidden; }
.card .card-img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img { transform: scale(1.05); }
.card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--leaf); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.card:hover::after { width: 100%; }
.card-img { aspect-ratio: 1.7; }
.card .card-img { margin-bottom: 0; }
.card:has(.card-img) { isolation: isolate; }
.card-body { background: var(--mist); position: relative; z-index: 1; }

/* Institution tiles */
.inst::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--leaf); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.inst { position: relative; }
.inst:hover::after { width: 100%; }
.inst-logo img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.inst:hover .inst-logo img { transform: scale(1.06); }
.inst-name { font-size: 1.35rem; }

/* Buttons: tactile press + arrow nudge */
.btn { transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(10,58,53,.6); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.nav a:not(.btn)::before { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem; height: 2px; background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.nav a:not(.btn):hover::before { transform: scaleX(1); }

/* Header gains depth once scrolled */
.site-header { transition: box-shadow .25s, background-color .25s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(10,58,53,.5); }

/* Steps, desks, principles: calmer, more refined */
.steps h3 { font-size: 1.12rem; }
.desk { border-top: 3px solid var(--leaf); transition: transform .25s, box-shadow .25s; }
.desk:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgba(10,58,53,.5); }
.chip { transition: background-color .2s, border-color .2s, transform .2s; }
.chip:hover { transform: translateY(-1px); background: var(--leaf-soft); border-color: var(--leaf); }
.principles div { transition: background-color .25s; }
.principles div:hover { background: #fff; }
.caps div:hover { background: #fff; }
.checks li { align-items: start; }
.facts li { transition: padding-left .25s; }
.facts li:hover { padding-left: .5rem; }

/* CTA band: richer */
.cta-band { background: linear-gradient(120deg, var(--ocean) 0%, #0e4a43 100%); border: 1px solid rgba(110,166,89,.25); }
.cta-band::before { width: 520px; height: 520px; right: -140px; top: -220px; border-width: 70px; }
.cta-band::after { content: ""; position: absolute; width: 260px; height: 260px; left: -90px; bottom: -150px; border-radius: 50%; border: 36px solid rgba(110,166,89,.1); }

/* Hero map: graticule glow + softer land edge */
.flightmap { box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); }
.flightmap::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 50% at 62% 48%, rgba(110,166,89,.16), transparent 70%); pointer-events: none; }
.flightmap svg { position: relative; }
.fm-land { stroke-width: .3; filter: drop-shadow(0 0 6px rgba(110,201,168,.12)); }

/* Footer: calmer structure */
.footer-grid { gap: clamp(2rem, 4vw, 3.5rem); }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { transition: color .2s, padding-left .2s; }
.site-footer li a:hover { color: #fff; padding-left: .25rem; text-decoration: none; }

/* Forms */
.field input, .field select, .field textarea { transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(110,166,89,.18); }

/* Page header: quieter crumbs, tighter */
.page-hero h1 { margin-bottom: 1.25rem; }
.page-hero .lead { margin-bottom: 0; }
html { scroll-padding-top: 6rem; }
.section + .section--tight { padding-top: 0; }
.section--tight + .section--tight { padding-top: 0; }

/* ===== Typeface: DM Sans, as on the original EPIC site ===== */
body { font-feature-settings: "ss01" 0; }
h1, h2 { font-weight: 500; letter-spacing: -.035em; font-variation-settings: normal; line-height: 1.06; }
h1 { letter-spacing: -.04em; }
h3 { font-weight: 600; letter-spacing: -.015em; }
.hero h1 .line + .line { font-weight: 500; font-style: italic; }
.feature h3, .pathway-list h3, .card h3, .inst-name, .inst-word, .commit-list strong,
.desk h3, .principles h3, .caps h3, .aside-card h2, .contact-card h2 { font-weight: 600; letter-spacing: -.02em; }
.ribbon-grid b { font-weight: 600; letter-spacing: -.02em; }
.steps li::before { font-weight: 500; }
.site-footer p { font-weight: 400; font-size: 1.05rem; }
.inst-word { font-size: 1.7rem; }
.card h3 { font-size: 1.4rem; }
.pathway-list h3 { font-size: 1.45rem; }
.feature h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.hero h1 { font-size: clamp(2.5rem, 4.3vw, 4.4rem); }
.page-hero h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); }
.section-head h2 { font-size: clamp(2.1rem, 3.7vw, 3.3rem); }
.cta-band h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
@media (max-width: 560px) { .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); } }

/* ---------- Theme toggle + dark theme ---------- */
.theme-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s; }
.theme-toggle:hover { background: var(--paper); border-color: var(--leaf); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.site-header .wrap > .theme-toggle { margin-left: .25rem; }

:root[data-theme="dark"] {
  --mist: #0a1d1b; --paper: #0f2926; --ink: #e9f1ed; --muted: #9bb2aa; --rule: #21443f;
  --leaf-soft: #1d4a2c;
  --tanzanite: #11554f; --tanzanite-deep: #0a3a35;
  color-scheme: dark;
}
:root[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .site-footer .brand-logo { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .nav a:hover { background: rgba(255,255,255,.07); }
:root[data-theme="dark"] .btn--ghost { border-color: rgba(255,255,255,.25); }
:root[data-theme="dark"] .btn--ghost:hover { --bg: rgba(255,255,255,.08); border-color: var(--leaf); }
:root[data-theme="dark"] .btn { --bg: var(--leaf); --fg: #072320; }
:root[data-theme="dark"] .btn:hover { --bg: #86bd72; }
:root[data-theme="dark"] .hero .btn, :root[data-theme="dark"] .page-hero .btn:not(.btn--ghost), :root[data-theme="dark"] .on-dark .btn:not(.btn--ghost), :root[data-theme="dark"] .aside-card .btn:not(.btn--ghost) { --bg: var(--leaf); --fg: #072320; }
:root[data-theme="dark"] .hero .btn--ghost, :root[data-theme="dark"] .page-hero .btn--ghost, :root[data-theme="dark"] .on-dark .btn--ghost, :root[data-theme="dark"] .aside-card .btn--ghost { --fg: #fff; --bg: transparent; border-color: rgba(255,255,255,.3); }
:root[data-theme="dark"] .nav a.btn, :root[data-theme="dark"] .nav a.btn:hover { color: #072320; }
:root[data-theme="dark"] .cta-band .btn { --bg: #fff; --fg: #0a3a35; }
:root[data-theme="dark"] .cta-band { background: #11554f; }
:root[data-theme="dark"] .ribbon-grid > div:hover, :root[data-theme="dark"] .principles div:hover, :root[data-theme="dark"] .caps div:hover { background: #143632; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .card-body { background: var(--paper); }
:root[data-theme="dark"] .card:hover, :root[data-theme="dark"] .inst:hover { box-shadow: 0 28px 50px -30px rgba(0,0,0,.8); }
:root[data-theme="dark"] .ribbon-grid { box-shadow: 0 30px 60px -35px rgba(0,0,0,.8); }
:root[data-theme="dark"] .section--paper, :root[data-theme="dark"] .page-hero { background: var(--paper); }
:root[data-theme="dark"] .chip:hover { background: #143632; border-color: var(--leaf); }
:root[data-theme="dark"] .field input:focus, :root[data-theme="dark"] .field select:focus, :root[data-theme="dark"] .field textarea:focus { background: var(--paper); border-color: var(--leaf); }
:root[data-theme="dark"] .field.has-error input, :root[data-theme="dark"] .field.has-error select, :root[data-theme="dark"] .field.has-error textarea { background: var(--paper); border-color: #ff8a7a; }
:root[data-theme="dark"] .notice { background: #1a2f24; color: #d6ecd0; }
:root[data-theme="dark"] .steps li::before { background: var(--mist); }
:root[data-theme="dark"] .section--paper .steps li::before { background: var(--paper); }
:root[data-theme="dark"] .inst-logo { background: #fff; }
:root[data-theme="dark"] main a:not([class]) { color: var(--leaf); }
:root[data-theme="dark"] .pathway-list a:hover .go { background: var(--leaf); border-color: var(--leaf); color: #072320; }
@media (max-width: 860px) { :root[data-theme="dark"] .nav { background: var(--mist); } }
:root[data-theme="dark"] .kicker, :root[data-theme="dark"] .card-kicker, :root[data-theme="dark"] .pathway-list .cat,
:root[data-theme="dark"] .card .text-link, :root[data-theme="dark"] .text-link, :root[data-theme="dark"] .inst-go,
:root[data-theme="dark"] .checks svg, :root[data-theme="dark"] .nav a:hover, :root[data-theme="dark"] .pathway-list a:hover h3,
:root[data-theme="dark"] .nav-menu .all { color: var(--leaf); }
:root[data-theme="dark"] .ribbon-grid b { color: #d3f8c7; }
:root[data-theme="dark"] .ribbon-grid { background: #123430; }
:root[data-theme="dark"] .inst-word { color: #11554f; }
:root[data-theme="dark"] .nav a, :root[data-theme="dark"] .nav button { color: var(--ink); }
:root[data-theme="dark"] .nav a.btn { color: #072320; }

/* Map: realistic blue ocean, green land */
.flightmap { background: radial-gradient(120% 90% at 70% 30%, #10497c, #082a4d 55%, #061c36); border-color: rgba(255,255,255,.18); }
.flightmap::before { background: radial-gradient(60% 50% at 62% 48%, rgba(120,190,255,.14), transparent 70%); }
.flightmap::after { background: linear-gradient(0deg, #061c36 15%, transparent); }
.fm-land { fill: #4f9a5f; stroke: #a8dcae; stroke-width: .3; stroke-opacity: .6; filter: none; }
.fm-route { stroke: #ffffff; }
.fm-route--back { stroke: #ffd27a; }
.fm-city { stroke: #061c36; }
.fm-sub { fill: #a9c8e6; }
.flightmap figcaption { color: #cfe0f2; }

/* Map: light-blue ocean */
.flightmap { background: radial-gradient(120% 90% at 70% 30%, #d6edfa, #a9d4ee 60%, #8cc2e6); border-color: rgba(255,255,255,.35); }
.flightmap::before { background: radial-gradient(60% 50% at 62% 48%, rgba(255,255,255,.35), transparent 70%); }
.flightmap::after { background: linear-gradient(0deg, #8cc2e6 15%, transparent); }
.fm-land { fill: #5aa468; stroke: #3d8350; stroke-width: .35; stroke-opacity: .8; }
.fm-route { stroke: #0b3a66; stroke-width: 1.1; }
.fm-route--back { stroke: #d9620f; }
.fm-plane path { fill: #0b3a66; }
.fm-pin circle:not(.fm-ring) { fill: #fff; stroke: #0b3a66; stroke-width: 1.4; }
.fm-ring { stroke: #0b3a66; }
.fm-city { fill: #0a2f55; stroke: #eaf6fd; stroke-width: 2.2px; }
.fm-sub { fill: #1f5280; }
.flightmap figcaption { color: #0a2f55; }

/* Process steps — numbered cards */
.steps { gap: 1.25rem; counter-reset: step; }
.steps li { padding: 1.9rem 1.6rem 1.75rem; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--leaf); border-radius: 2px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.section--paper .steps li { background: var(--mist); }
.steps li:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -32px rgba(10,58,53,.5); }
.steps li::before, .section--paper .steps li::before, :root[data-theme="dark"] .steps li::before, :root[data-theme="dark"] .section--paper .steps li::before {
  content: counter(step, decimal-leading-zero); position: static; display: flex; align-items: center; gap: .9rem; width: auto; height: auto;
  background: transparent; border: 0; font: 600 .8rem var(--sans); letter-spacing: .18em; color: var(--mangrove); margin-bottom: 1.4rem;
}
.steps li::after { content: ""; position: static; display: block; order: 0; border: 0; height: 1px; width: 100%; background: var(--rule); margin: 0 0 1.25rem; }
.steps li::before { order: -1; }
.steps li { display: flex; flex-direction: column; }
.steps li::before { display: block; }
.steps li::after { display: block; }
.steps li:last-child::after { display: block; }
.steps h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.steps p { font-size: .98rem; line-height: 1.6; }
:root[data-theme="dark"] .steps li { background: var(--paper); }
:root[data-theme="dark"] .section--paper .steps li { background: var(--mist); }
:root[data-theme="dark"] .steps li::before { color: var(--leaf); }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { padding: 1.5rem 1.25rem; } }
.steps li::before, .section--paper .steps li::before, :root[data-theme="dark"] .steps li::before, :root[data-theme="dark"] .section--paper .steps li::before { order: -2; font: 500 2.2rem/1 var(--display); letter-spacing: -.02em; margin-bottom: 1.1rem; color: var(--mangrove); }
:root[data-theme="dark"] .steps li::before { color: var(--leaf); }
.steps li::after { order: -1; margin: 0 0 1.25rem; }

/* Layout tidy-ups */
.detail-main .steps { grid-template-columns: repeat(2, 1fr); }
.detail-main .steps li { padding: 1.6rem 1.5rem; }
@media (max-width: 560px) { .detail-main .steps { grid-template-columns: 1fr; } }
.section[aria-labelledby="inst-title"] { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.two-col > div:first-child h2 { position: sticky; top: 110px; }
@media (max-width: 980px) { .two-col > div:first-child h2 { position: static; } }
