:root {
  --mist: #f2f5f4;
  --paper: #ffffff;
  --ink: #0f1e2b;
  --ink-soft: #46576a;
  --harbour: #1d4e6b;
  --ferry: #1f7a5a;
  --lamp: #e8a33d;
  --rule: #d5dcdc;
  --radius: 6px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--harbour); text-underline-offset: 3px; }
a:hover { color: var(--ferry); }

:focus-visible {
  outline: 3px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus { left: 8px; }

/* Header: dark, continues into the hero */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 30, 43, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand-mark { display: block; flex: none; }
.site-header .brand-mark rect:first-child { fill: #fff; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
nav { display: flex; align-items: center; gap: 22px; }
nav a {
  color: #dfe8e7;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}
nav a:hover { color: #fff; text-decoration: underline; }
.nav-cta {
  background: var(--ferry);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
}
nav .nav-cta:hover { background: #176248; color: #fff; text-decoration: none; }

/* Headings: regular body font at normal weight */
h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 24px;
  max-width: 26ch;
  text-wrap: balance;
}

/* Hero: one big, aspirational statement */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(86vh, 760px);
  padding: 96px 0;
  background: var(--ink);
  color: #fff;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.hero-copy { min-width: 0; }
.hero-art {
  display: block;
  width: clamp(260px, 33vw, 430px);
  height: auto;
  justify-self: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.5rem);
  line-height: 1.1;
  max-width: none;
  margin-bottom: 28px;
}
.hero h1 .soft { color: #9fb4bd; }
.hero .lead { color: #c4d2d4; }
.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 36px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-dot { animation: arrive 2.4s cubic-bezier(.3, 0, .2, 1) .5s both; }
  @keyframes arrive {
    from { transform: translateX(-330px); opacity: 0; }
    25% { opacity: 1; }
    to { transform: none; opacity: 1; }
  }
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--ferry); color: #fff; }
.btn-primary:hover { background: #176248; color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Sections */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 32px;
  max-width: 24ch;
}

/* What we do */
.services { background: var(--mist); padding: 96px 0; }
.service {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  padding: 40px 0;
  border-top: 2px solid var(--ink);
}
.service h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 12px;
}
.service-head p { margin: 0; color: var(--ink-soft); max-width: 38ch; }
.service ul { margin: 0; padding: 0; list-style: none; }
.service li {
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.service li:last-child { border-bottom: 0; }
.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--ferry);
}

/* The line: a route map in the style of a transit line, one station per project stage */
.how-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 56px 0 0;
  padding-top: 40px;
  border-top: 2px solid var(--ink);
}
.line {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  height: 10px;
  background: var(--ferry);
  border-radius: 5px;
}
.line li { position: relative; padding: 44px 20px 0 0; }
.line li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  border: 6px solid var(--ink);
}
.line li:last-child::before { border-color: var(--lamp); }
.line h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 6px;
}
.line p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55; }

/* Insights: research, articles, videos */
.insights { background: var(--paper); padding: 96px 0; border-top: 1px solid var(--rule); }
.insights .section-title { max-width: 26ch; margin-bottom: 14px; }
.insights-note { margin: 0 0 44px; color: var(--ink-soft); max-width: 62ch; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--mist);
  border-radius: 4px;
  overflow: hidden;
}
.card-art { height: 160px; }
.card-art svg { display: block; width: 100%; height: 100%; }
.card-art.research { background: var(--harbour); }
.card-art.article { background: var(--ferry); }
.card-art.video { background: var(--ink); }
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 22px 22px 26px;
}
.card-body p { margin: 0; font-size: 0.98rem; line-height: 1.55; }
.card-kind { color: var(--ferry); font-weight: 500; font-size: 0.9rem !important; }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card:focus-within { outline: 3px solid var(--lamp); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }
.card-src { color: var(--ink-soft); font-size: 0.9rem !important; }
.card-link { margin-top: auto; padding-top: 10px; color: var(--harbour); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* About and contact */
.about, .contact { padding: 96px 0; }
.contact { background: var(--paper); border-top: 1px solid var(--rule); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.prose p { margin: 0 0 18px; max-width: 62ch; }
.prose .about-lead { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.3; margin-bottom: 20px; }
.principles { list-style: none; margin: 28px 0 0; padding: 0; }
.principles li { padding: 14px 0; border-top: 1px solid var(--rule); max-width: 62ch; }
.principles strong { font-family: var(--font-display); font-weight: 700; }

.contact-intro { color: var(--ink-soft); max-width: 36ch; margin: 0 0 20px; }
.contact-direct { margin: 0 0 6px; }

/* Form */
form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
label { font-weight: 500; font-size: 0.97rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--mist);
  border: 1.5px solid #b9c4c5;
  border-radius: var(--radius);
  padding: 12px 14px;
}
input:focus, textarea:focus { border-color: var(--harbour); outline: 3px solid rgba(29, 78, 107, 0.25); outline-offset: 0; }
textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.93rem; color: var(--ink-soft); }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--ferry); }
form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: var(--ferry); }
.form-status.err { color: #a63a2b; }
input.invalid, textarea.invalid { border-color: #a63a2b; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c7c9; padding: 28px 0; font-size: 0.93rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #dfe8e7; margin-left: 18px; }
.site-footer a:first-child { margin-left: 0; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

/* Privacy and 404 pages */
.doc { padding: 72px 0 88px; }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: none; margin-bottom: 8px; }
.doc h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 36px 0 8px; }
.doc p, .doc li { max-width: 68ch; }

/* Responsive */
@media (max-width: 900px) {
  .service, .two-col { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .line { grid-template-columns: 1fr; }
  .line::before { left: 13px; right: auto; top: 0; bottom: 0; width: 10px; height: auto; }
  .line li { padding: 0 0 28px 56px; }
  .line li::before { top: 0; }
  .line li:last-child { padding-bottom: 0; }
}
@media (max-width: 600px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; min-height: 0; }
  nav { gap: 14px; }
  nav a:not(.nav-cta) { display: none; }
  .services, .insights, .about, .contact { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
