@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  color-scheme: light;
  --navy: #0f3d52;
  --navy-deep: #0a2d3e;
  --navy-line: #2a5a70;
  --ink: #12303f;
  --muted: #526c7a;
  --paper: #ffffff;
  --tint: #f2f8fa;
  --line: #dbe7ec;
  --blue: #1b87b6;
  --green: #259a7e;
  --amber: #f0a030;
  --yellow: #fbd21e;
  --on-dark: #e6f1f5;
  --on-dark-muted: #a9c4d0;
  --series-1: #1679a8;
  --neutral: #a9bbc4;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.08; font-weight: 700; color: var(--navy); }
h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 650; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: #fff; padding: 8px 14px; border-radius: 8px; }

.eyebrow { font-weight: 700; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: #14729b; margin-bottom: 14px; }
.eyebrow--light { color: #8fd3ea; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 650 1rem var(--body); text-decoration: none; cursor: pointer; border: 2px solid var(--navy); background: var(--navy); color: #fff; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: var(--navy-deep); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn--amber { background: var(--amber); border-color: var(--amber); color: var(--navy-deep); }
.btn--amber:hover { background: #f7b24d; }
.btn--ghost { background: transparent; border-color: #6e98aa; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem var(--display); color: var(--navy); }
.nav__brand + .btn { margin-left: auto; }
.nav__links { display: flex; gap: 24px; margin-left: auto; font-size: .95rem; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--muted); }
.nav__links a:hover { color: var(--navy); }

/* Hero */
.hero { background: radial-gradient(1000px 600px at 85% -10%, #1b5c78 0%, transparent 70%), var(--navy); color: var(--on-dark); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; padding-block: clamp(56px, 8vw, 104px); }
h1 { font-size: clamp(2.7rem, 1.6rem + 4.6vw, 5rem); line-height: 1; font-weight: 700; color: #fff; }
h1 em { font-style: normal; color: var(--yellow); }
.hero__lead { margin-top: 24px; font-size: 1.2rem; line-height: 1.5; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__motto { margin-top: 28px; font-size: .95rem; color: var(--on-dark-muted); }

.bricks { display: grid; gap: 14px; }
.brick { position: relative; display: grid; grid-template-columns: calc(46% - 30px) minmax(0, 1fr); column-gap: 18px; align-items: center; padding: 20px 34px 20px 30px; border-radius: 999px; border: 5px solid var(--navy-deep); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 12px 0 -4px rgba(10,45,62,.45); text-decoration: none; color: var(--navy-deep); transition: transform .2s; }
.brick:hover { transform: translateX(6px); }
.brick--blue { background: linear-gradient(90deg, #7fd0e4 0 46%, #58b7d6 46% 100%); }
.brick--green { background: linear-gradient(90deg, #c6dc7c 0 46%, #74c79f 46% 100%); }
.brick--amber { background: linear-gradient(90deg, #fdd631 0 46%, #f8bb4c 46% 100%); }
.brick__tag { grid-column: 1; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.brick__num { grid-column: 1; font: 750 clamp(1.45rem, 1rem + 1.4vw, 2rem)/1.1 var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.brick__text { grid-column: 2; grid-row: 1 / span 2; font-size: .93rem; line-height: 1.32; font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .bricks li { animation: drop .7s cubic-bezier(.2,1.25,.4,1) both; }
  .bricks li:nth-child(3) { animation-delay: .1s; }
  .bricks li:nth-child(2) { animation-delay: .3s; }
  .bricks li:nth-child(1) { animation-delay: .5s; }
  @keyframes drop { from { opacity: 0; transform: translateY(-70px); } to { opacity: 1; transform: none; } }
}

/* Sections */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 780px; margin-bottom: 44px; }
.section__lead { margin-top: 18px; font-size: 1.14rem; color: var(--muted); }
.section--dark .section__lead { color: var(--on-dark); }
.source { margin-top: 22px; font-size: .86rem; color: var(--muted); }
.source--light { color: var(--on-dark-muted); }

/* Panels and bar charts */
.panel { margin: 0; padding: 26px 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; min-width: 0; }
.panel figcaption { margin-bottom: 18px; }
.panel figcaption p { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.panel__note { margin-top: 14px; font-size: .84rem; color: var(--muted); }

.hbars { display: grid; gap: 4px; flex: 1; align-content: space-around; }
.hbar { display: grid; grid-template-columns: 96px minmax(0, 1fr) 68px; align-items: center; gap: 10px; min-height: 36px; padding: 3px 8px; margin-inline: -8px; font-size: .92rem; border-radius: 8px; }
.hbar.is-selected { background: #e7f3f8; }
.is-selected .hbar__name { font-weight: 700; }
.hbar__track { display: block; height: 16px; background: #eef4f6; border-radius: 0 4px 4px 0; }
.hbar__fill { display: block; height: 100%; background: var(--neutral); border-radius: 0 4px 4px 0; }
.is-selected .hbar__fill { background: var(--series-1); }
.hbar__value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.tooltip { position: fixed; z-index: 40; max-width: 240px; padding: 7px 11px; border-radius: 8px; background: var(--navy-deep); color: #fff; font-size: .86rem; line-height: 1.35; pointer-events: none; box-shadow: 0 6px 18px rgba(10,45,62,.3); }
.tooltip b { font-variant-numeric: tabular-nums; }

/* Featured sweep */
.surplus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.surplus__figure { margin: 0; }
.surplus__figure img { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 24px 50px -28px rgba(15,61,82,.45); }
.surplus__figure figcaption { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.picker { margin-top: 28px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 14px; }
.picker fieldset { border: 0; margin: 0; padding: 0; }
.picker legend { padding: 0; margin-bottom: 7px; font-size: .84rem; font-weight: 650; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 40px; min-width: 76px; padding: 0 12px; border-radius: 999px; border: 1.5px solid #b9cdd6; background: #fff; color: var(--ink); font: 600 .94rem var(--body); cursor: pointer; }
.chips button:hover { border-color: var(--navy); }
.chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.picker__out { display: flex; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.picker__num { font: 750 2.9rem/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; min-width: 2.1em; }
.picker__text { font-size: .96rem; line-height: 1.35; color: var(--muted); }
.readings { display: grid; gap: 10px; margin-top: 24px; font-size: .98rem; }
.readings li { padding-left: 16px; border-left: 4px solid var(--blue); }
.readings li:nth-child(2) { border-color: var(--green); }
.readings li:nth-child(3) { border-color: var(--amber); }

/* Tools */
.tool { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.tool__controls { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.slider { display: block; width: 100%; }
.slider__label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-weight: 500; }
.slider output { font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: var(--amber); cursor: pointer; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; width: 100%; margin: 4px 0 0; padding-top: 22px; border-top: 1px solid var(--navy-line); }
.tiles__main { grid-column: 1 / -1; }
.tiles dt { font-size: .84rem; color: var(--on-dark-muted); }
.tiles dd { margin: 2px 0 0; font: 700 1.45rem/1.15 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.tiles__main dd { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; color: var(--yellow); }
.tool__chart { margin: 0; padding: 22px 22px 14px; background: #fff; border-radius: 18px; color: var(--ink); min-width: 0; }
.tool__chart figcaption { font-weight: 650; font-size: .95rem; color: var(--navy); margin-bottom: 8px; }
.plot { position: relative; width: 100%; touch-action: pan-y; }
.plot svg { display: block; width: 100%; height: auto; }
.plot text { font: 500 12.5px var(--body); fill: var(--muted); font-variant-numeric: tabular-nums; }
.plot .lbl { font-weight: 700; fill: var(--ink); font-size: 13px; }
.plot .grid { stroke: #e3ecf0; }
.plot .axis { stroke: #8fa6b2; }

.duration { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.duration__question { font-weight: 650; color: var(--navy); margin-bottom: 10px; }
.duration__answer { margin-top: 22px; color: var(--muted); }
.duration__answer strong { display: block; font: 750 clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem)/1.1 var(--display); color: var(--navy); }
.duration__unit { margin: 18px 0 6px; font-size: .86rem; color: var(--muted); }

/* Gallery */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card a { display: flex; flex-direction: column; height: 100%; padding-bottom: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.card a:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(15,61,82,.5); }
.card__img { display: block; position: relative; aspect-ratio: 1080 / 545; overflow: hidden; background: #f8fbfb; border-bottom: 1px solid var(--line); }
.card__img img { position: absolute; left: 0; top: -72.5%; width: 100%; max-width: none; }
.card__tag { margin: 16px 20px 6px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #14729b; }
.card h3 { margin: 0 20px; font-size: 1.08rem; }
.card p { margin: 9px 20px 0; font-size: .93rem; line-height: 1.42; color: var(--muted); }
.card p strong { color: var(--ink); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { padding: 26px; border: 1px solid var(--line); border-radius: 16px; border-top: 5px solid var(--blue); }
.service:nth-child(3n+2) { border-top-color: var(--green); }
.service:nth-child(3n) { border-top-color: var(--amber); }
.service__for { margin-top: 8px; font-size: .94rem; color: var(--muted); }
.service ul { display: grid; gap: 10px; margin-top: 16px; font-size: .94rem; line-height: 1.42; }
.service--portal { background: var(--navy); border-color: var(--navy); border-top-color: var(--yellow); color: var(--on-dark); }
.service--portal h3 { color: #fff; }
.service--portal .service__for { color: var(--on-dark); }
.badge { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: var(--navy-deep); font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--yellow); text-underline-offset: 3px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.about__text { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }
.creds { display: grid; gap: 14px; }
.creds li { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: .97rem; line-height: 1.42; }
.creds strong { display: block; font: 700 1.2rem/1.3 var(--display); color: var(--navy); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.form { display: grid; gap: 14px; padding: 26px; background: var(--navy-deep); border-radius: 18px; }
.form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 550; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--navy-line); border-radius: 10px; background: #fff; color: var(--ink); font: 400 1rem var(--body); }
.form textarea { resize: vertical; }
.form__note { font-size: .84rem; color: var(--on-dark-muted); }
.form__note a { color: #fff; text-underline-offset: 3px; }
.form__trap { position: absolute; left: -9999px; }
.form__status { padding: 10px 14px; border-radius: 10px; background: #d9f2e6; color: var(--navy-deep); font-weight: 550; font-size: .94rem; }
.form__status.is-error { background: #fbe3dc; }
.form button:disabled { opacity: .7; cursor: wait; }

/* Footer */
.footer { padding-block: 0 28px; font-size: .86rem; color: var(--muted); }
.footer__inner { display: grid; gap: 4px; }
.footer__stripe { display: block; height: 6px; margin: 0 calc(50% - 50vw) 24px; background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--green) 33.3% 66.6%, var(--yellow) 66.6%); }

/* Privacy notice */
.legal { max-width: 720px; margin-inline: auto; padding-block: clamp(48px, 7vw, 88px); }
.legal h1 { color: var(--navy); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); }
.legal h2 { margin-top: 40px; font-size: 1.35rem; line-height: 1.25; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 22px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal__date { color: var(--muted); font-size: .94rem; }

/* Lightbox */
.lightbox { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 16px; background: #f8fbfb; overflow: auto; }
.lightbox::backdrop { background: rgba(6,28,39,.78); }
.lightbox__bar { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.lightbox__bar h2 { flex: 1 1 100%; font-size: 1.02rem; line-height: 1.25; letter-spacing: 0; }
.lightbox__bar button { min-width: 40px; min-height: 40px; padding: 0 12px; border: 1.5px solid #b9cdd6; border-radius: 999px; background: #fff; color: var(--ink); font: 600 .92rem var(--body); cursor: pointer; }
.lightbox__bar button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.lightbox__tabs, .lightbox__nav { display: flex; gap: 6px; }
.lightbox__nav { margin-left: auto; }

@media (max-width: 1180px) {
  .brick { grid-template-columns: minmax(0, 1fr); border-radius: 36px; padding: 16px 24px; row-gap: 3px; }
  .brick__text { grid-column: 1; grid-row: auto; }
  .brick--blue { background: #6cc4dd; }
  .brick--green { background: #a4d38f; }
  .brick--amber { background: #fbc93f; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__inner .btn { margin-left: auto; }
  .hero__grid, .surplus, .tool, .duration, .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cards, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  body { font-size: 16px; }
  .cards, .services { grid-template-columns: minmax(0, 1fr); }
  .panel, .picker, .service { padding: 20px 16px; }
  .hbar { grid-template-columns: 94px minmax(0, 1fr) 58px; gap: 6px; font-size: .86rem; }
  .tool__chart { padding: 16px 12px 10px; }
  .chips button { min-width: 0; flex: 1; padding: 0 4px; white-space: nowrap; font-size: .88rem; }
}
@media (max-width: 380px) {
  #hours-chips button { flex: 1 0 auto; min-width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
