/* Proposal site: components that sit on top of the FTL design system (style.css).
   Uses the system's tokens (colours, type, square dot language, sharp corners). */

html { scroll-padding-top: 76px; }
body { font-size: 1.0625rem; }
.section { overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section .dots { z-index: 0; }

.lede { max-width: 52ch; }
.hero-split .lede { color: var(--text-muted-on-dark); }
.dotfade { position: absolute; top: 0; right: 0; bottom: 0; width: 45%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 20%, transparent 100%); mask-image: linear-gradient(to left, #000 0%, #000 20%, transparent 100%); }
.dotfade .dots { position: absolute; inset: 0; }
.section--dark .lede { color: var(--text-muted-on-dark); }
h2 { max-width: 24ch; }
.sub { font-size: 1.35rem; font-weight: 600; line-height: 1.3; margin-bottom: 1.1rem; }
.body { color: var(--text); margin-top: .9rem; max-width: 62ch; }
.block { margin-top: 3rem; }
.src { font-size: .85rem; color: var(--text-muted); margin-top: 1.1rem; line-height: 1.5; max-width: 74ch; }
.dl { margin-top: 2.25rem; font-size: .95rem; font-weight: 600; }
.dl a { color: var(--night-sky); border-bottom: 2px solid var(--horizon); padding-bottom: 2px; }
.dl a:hover { color: var(--horizon); }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.cols3--six { grid-template-columns: repeat(3, 1fr); }
.cols4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }

/* numerals: system uses 600 for stats */
.num { font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--night-sky); }

/* cards: bordered, no shadow, horizon top rule */
.card { background: #f1f4f7; border-top: 4px solid var(--horizon); padding: 1.5rem 1.5rem 1.75rem; }
.section--concrete .card { background: #fff; }
.card p { font-size: .95rem; margin-top: .5rem; line-height: 1.5; color: var(--text); }
.card .big { font-size: clamp(2rem, 3.2vw, 2.6rem); display: block; }
.card .k { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--horizon); display: block; margin-bottom: .45rem; }
.card h3 { font-size: 1.2rem; }
.plain { border-top: 2px solid var(--night-sky); padding-top: 1.1rem; }
.plain h3 { font-size: 1.15rem; }
.plain p { font-size: .95rem; margin-top: .5rem; color: var(--text); line-height: 1.5; }

/* square pictograms */
.grid { display: grid; gap: 4px; }
.grid i { display: block; aspect-ratio: 1; background: rgba(70,130,180,.16); }
.grid i.a { background: var(--night-sky); }
.grid i.b { background: var(--horizon); }
.grid i.c { background: #dbe6ee; }
.pict { width: 40px; margin-bottom: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.people { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 280px; margin-top: 1.1rem; }
.people i { aspect-ratio: 1; background: var(--horizon); }

/* dark proposal band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 2.75rem; border-top: 1px solid var(--border-on-dark); }
.stats > div { padding: 1.75rem 1.5rem .5rem 0; }
.stats .num { font-size: clamp(2.2rem, 4.4vw, 3.4rem); color: #fff; }
.stats p { font-size: .95rem; color: var(--text-muted-on-dark); margin-top: .65rem; line-height: 1.4; max-width: 18em; }
.section--dark .src { color: #8fa6ba; }

/* charts */
.panel { background: #f1f4f7; padding: 1.75rem 1.75rem 1.5rem; border-top: 4px solid var(--horizon); }
.section--concrete .panel { background: #fff; }
.chart { position: relative; }
.crow { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.crow:first-child { border-top: 1px solid var(--border); }
.crow .l { font-size: .95rem; color: var(--text); line-height: 1.3; }
.crow .l b { display: block; color: var(--night-sky); font-weight: 600; font-size: 1rem; }
.crow .t { position: relative; height: 36px; }
.crow .b { height: 100%; background: #c9d4dc; display: flex; align-items: center; padding-left: .75rem; font-weight: 600; font-size: .9rem; white-space: nowrap; color: var(--night-sky); min-width: 6px; }
.crow.hi .b { background: var(--horizon); color: #fff; }
.crow.hi .l, .crow.hi .l b { font-weight: 600; color: var(--night-sky); }
.crow.soft .b { background: repeating-linear-gradient(45deg, #fff 0, #fff 6px, #e8eef3 6px, #e8eef3 12px); color: #6b7a85; border: 1px solid var(--border); }
.crow.soft .l, .crow.soft .l b { color: #6b7a85; font-weight: 400; }
.crow .b.cut { position: relative; }
.crow .b.cut::after { content: ''; position: absolute; right: 18%; top: 0; bottom: 0; width: 10px; background: #f1f4f7; transform: skewX(-20deg); }
.section--concrete .crow .b.cut::after { background: #fff; }
.refline { position: absolute; top: 0; bottom: 0; border-left: 3px dotted var(--night-sky); left: calc(236px + (100% - 236px) * var(--p)); pointer-events: none; }
.refline span { position: absolute; top: -26px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.refline.n span { right: 6px; }
.refline.d span { left: 6px; }

/* step flow */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); counter-reset: st; }
.flow > div { padding: 1.25rem 1.5rem 1.25rem 0; border-top: 4px solid var(--horizon); margin-right: 1.25rem; }
.flow > div::before { content: counter(st, decimal-leading-zero); counter-increment: st; display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--horizon); margin-bottom: .5rem; }
.flow > div:last-child { margin-right: 0; }
.flow h3 { font-size: 1.15rem; }
.flow p { font-size: .95rem; color: var(--text); margin-top: .4rem; line-height: 1.5; }

.call { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.call .card .big { font-size: clamp(2rem, 4.2vw, 3rem); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.tbl th, .tbl td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl thead th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid var(--night-sky); }
.tbl td:first-child { font-weight: 600; width: 26%; }
.tbl .amt { text-align: right; font-weight: 600; font-size: 1.15rem; white-space: nowrap; }
.tbl tr.tot td { border-top: 2px solid var(--night-sky); border-bottom: none; font-weight: 600; }
.tbl td.us { background: #eaf1f7; font-weight: 500; }
.scroll { overflow-x: auto; }

/* downloads */
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; margin-top: 1.75rem; }
.dgrid a { background: #f1f4f7; border-top: 4px solid var(--horizon); padding: 1rem 1.1rem; color: var(--night-sky); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: .75rem; transition: border-color .15s ease; }
.dgrid a span { font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.dgrid a:hover { border-top-color: var(--night-sky); }

/* footer */
.foot { background: var(--night-sky); color: var(--text-muted-on-dark); padding: 3rem 0 3.5rem; font-size: .95rem; }
.foot b, .foot a { color: #fff; }
.foot a { border-bottom: 1px solid rgba(255,255,255,.4); }
.foot p + p { margin-top: .6rem; }

@media (max-width: 860px) {
  .cols3--six { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr !important; }
  .crow { grid-template-columns: 1fr; gap: .35rem; }
  .refline { display: none; }
  .call { grid-template-columns: 1fr; }
  .flow > div { margin-right: 0; padding-right: 0; margin-bottom: .5rem; }
  .tbl th, .tbl td { padding: .7rem .6rem; }
}

/* eight-subject index and the two part dividers */
.idx-h { margin: 2.75rem 0 1rem; }
.card--link { display: block; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.card--link:hover { border-top-color: var(--night-sky); }
.card--link .more { display: inline-block; margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--night-sky); border-bottom: 2px solid var(--horizon); padding-bottom: 1px; }
.card--link .big { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.section.part { padding: clamp(2.5rem, 5vw, 3.75rem) 0; }
.section.part h2 { margin-top: .6rem; }
.section.part .lede { margin-top: .8rem; }

/* about: three aligned text columns */
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2rem; }
.about-cols p { color: var(--text); font-size: 1.02rem; line-height: 1.6; }

/* index tile icons */
.ico { width: 44px; height: 44px; display: block; margin-bottom: 1rem; }
.card--link h3 { font-size: 1.3rem; }

/* jobs: people pictograms and the dark salary panel */
.jobs { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: stretch; }
.jobs__row { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--border); }
.jobs__row:last-child { border-bottom: 1px solid var(--border); }
.jobs__lab .num { font-size: clamp(1.7rem, 2.6vw, 2.2rem); display: block; }
.jobs__lab b { display: block; font-size: 1rem; font-weight: 600; margin-top: .5rem; line-height: 1.25; }
.jobs__lab small { display: block; font-size: .82rem; color: var(--text-muted); margin-top: .3rem; line-height: 1.4; }
.jobs__people { display: flex; flex-wrap: wrap; gap: 6px 5px; }
.jobs__people svg { width: 20px; height: 27px; fill: var(--horizon); flex: none; }
.jobs__people.build svg { fill: #b6cbe0; }
.jobs__people.perm svg.f { fill: var(--night-sky); }
.jobs__pay { position: relative; overflow: hidden; background: var(--night-sky); color: #fff; padding: 2rem 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.jobs__pay > *:not(.dotfade) { position: relative; z-index: 1; }
.jobs__pay .eyebrow { color: #8fc1e6; }
.jobs__pay .num { color: #fff; font-size: clamp(2.2rem, 4vw, 3rem); display: block; margin-top: 1rem; }
.jobs__pay p { color: var(--text-muted-on-dark); margin-top: .9rem; font-size: .95rem; line-height: 1.5; }
.jobs__pay .dotfade { width: 100%; }

/* economy: first phase against the full campus */
.invest { margin-top: 1.75rem; max-width: 520px; }
.invest__bar { display: flex; height: 44px; background: #dbe6ee; }
.invest__bar .first { background: var(--night-sky); }
.invest__bar .rest { flex: 1; background: var(--horizon); }
.invest__lab { display: flex; justify-content: space-between; gap: 1rem; margin-top: .75rem; font-size: .85rem; color: var(--text-muted); }
.invest__lab b { display: block; font-size: 1.1rem; font-weight: 600; color: var(--night-sky); }
.invest__lab span:last-child { text-align: right; }

/* sovereignty: national, regional, local as nested squares */
.nest { max-width: 360px; width: 100%; aspect-ratio: 1; }
.nest span { position: absolute; top: .75rem; left: .9rem; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nest__a, .nest__b, .nest__c { position: relative; }
.nest__a { width: 100%; height: 100%; background: #dbe6ee; color: var(--night-sky); }
.nest__b { position: absolute; left: 15%; right: 15%; top: 25%; bottom: 5%; background: var(--horizon); color: #fff; }
.nest__c { position: absolute; left: 25%; right: 25%; top: 40%; bottom: 10%; background: var(--night-sky); color: #fff; }

@media (max-width: 860px) {
  .about-cols { grid-template-columns: 1fr; gap: 1rem; }
  .jobs { grid-template-columns: 1fr; }
  .jobs__row { grid-template-columns: 1fr; gap: .75rem; }
}

/* accessibility: skip link, screen-reader-only text, visible focus */
:root { --horizon-text: #2f6a9d; --horizon-bar: #3b76a9; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: #fff; color: var(--night-sky); padding: .75rem 1.1rem; font-weight: 600; border: 2px solid var(--night-sky); }
.skip:focus { left: 1rem; top: 1rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible { outline: 3px solid #8fc1e6; outline-offset: 3px; }
.section:not(.section--dark) a:focus-visible, .foot a:focus-visible { outline-color: var(--horizon-text); }
.foot a:focus-visible { outline-color: #8fc1e6; }

/* contrast: darker blue for small text on light backgrounds, deeper fill behind white labels */
.section:not(.section--dark) .eyebrow, .card .k, .flow > div::before { color: var(--horizon-text); }
.hero-split .eyebrow { color: #8fc1e6; }
.crow.hi .b, .nest__b { background: var(--horizon-bar); }
.crow.soft .b, .crow.soft .l, .crow.soft .l b { color: #55646f; }

/* accessibility: skip link, screen-reader-only text, visible focus */
:root { --horizon-text: #2f6a9d; --horizon-bar: #3b76a9; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: #fff; color: var(--night-sky); padding: .75rem 1.1rem; font-weight: 600; border: 2px solid var(--night-sky); }
.skip:focus { left: 1rem; top: 1rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible { outline: 3px solid #8fc1e6; outline-offset: 3px; }
.section:not(.section--dark) a:focus-visible { outline-color: var(--horizon-text); }

/* contrast: darker blue for small text on light backgrounds, deeper fill behind white labels */
.section:not(.section--dark) .eyebrow, .card .k, .flow > div::before { color: var(--horizon-text); }
.hero-split .eyebrow { color: #8fc1e6; }
.crow.hi .b, .nest__b { background: var(--horizon-bar); }
.crow.soft .b, .crow.soft .l, .crow.soft .l b { color: #55646f; }
.section:not(.section--dark) .jobs__pay .eyebrow { color: #8fc1e6; }

/* analytics consent banner (only appears on the live site when analytics is switched on) */
#ftl-consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 400; max-width: 760px; margin: 0 auto; background: var(--night-sky); color: #eef3f7; padding: 1.1rem 1.25rem; display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; box-shadow: 0 6px 24px rgba(6,39,66,.35); border-top: 4px solid var(--horizon); }
#ftl-consent p { margin: 0; font-size: .9rem; line-height: 1.45; }
#ftl-consent a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }
.ftl-consent__btns { display: flex; gap: .6rem; flex: none; }
.ftl-consent__btns button { font: inherit; font-size: .88rem; font-weight: 600; padding: .6rem 1.1rem; border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; cursor: pointer; }
.ftl-consent__btns button.is-primary { background: var(--twilight); border-color: rgba(255,255,255,.55); }
.ftl-consent__btns button:hover { background: rgba(255,255,255,.14); }
.ftl-consent__btns button.is-primary:hover { background: var(--horizon); }
@media (max-width: 640px) { #ftl-consent { flex-direction: column; align-items: stretch; } .ftl-consent__btns { justify-content: flex-end; } }

/* contact band */
.section.contact { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.contact .eyebrow { color: #c9b8e6; }
.contact h2 { color: #fff; }
.contact .lede { color: #e2dcef; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact__facts { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact__facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #c9b8e6; }
.contact__facts dd { font-size: 1.1rem; font-weight: 600; color: #fff; margin-top: .2rem; }
.contact__facts a { color: #fff; border-bottom: 2px solid rgba(255,255,255,.55); }
.contact__facts a:hover { border-bottom-color: #fff; }
.contact__card { background: #fff; color: var(--night-sky); padding: 2rem 2rem 2.25rem; border-top: 4px solid var(--horizon); }
.contact__card h3 { font-size: 1.4rem; }
.contact__card p { color: var(--text); margin: .75rem 0 1.5rem; font-size: 1rem; line-height: 1.55; }
.contact .btn--primary:hover { background: var(--night-sky); }
.contact a:focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
.section.contact .eyebrow { color: #d9ccef; }
.contact__facts dd, .contact__facts dt { margin-left: 0; margin-right: 0; }

/* contact: three routes (sales, media, public) */
.contact__routes { list-style: none; background: #fff; color: var(--night-sky); border-top: 4px solid var(--horizon); }
.contact__routes li { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 1.75rem; border-bottom: 1px solid var(--line, #d7e0e6); }
.contact__routes li:last-child { border-bottom: 0; }
.contact__routes h3 { font-size: 1.2rem; }
.contact__routes p { margin: .25rem 0 0; font-size: .92rem; color: var(--text); line-height: 1.4; }
.contact__routes a { flex: none; font-weight: 600; font-size: .98rem; color: var(--night-sky); border-bottom: 2px solid var(--horizon); padding-bottom: 2px; }
.contact__routes a:hover { color: var(--horizon-text); }
.contact__routes a:focus-visible { outline-color: var(--horizon-text); }
@media (max-width: 640px) { .contact__routes li { flex-direction: column; align-items: flex-start; gap: .75rem; } }
