/* Calvella — Boardroom theme */
:root {
  --navy: #10203A;
  --ink-soft: #4A5872;
  --line: #E3E7EE;
  --line-mist: #D5DBE4;
  --mist: #F4F6F9;
  --accent: #0F766E;
  --accent-dark: #0B5C56;
  --on-navy-accent: #8FD8CE;
  --on-navy-soft: #C5CEDC;
  --navy-line: #3B4D6B;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--navy); }
a:hover { color: #000000; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--navy); color: #FFFFFF; padding: 10px 16px; border-radius: 4px; z-index: 10;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: relative; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { font-family: var(--serif); font-size: 38px; line-height: 1; letter-spacing: -0.01em; font-weight: 500; text-decoration: none; color: var(--navy); }
.brand-dot { color: var(--accent); }
@media (max-width: 640px) { .brand { font-size: 30px; } }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.site-nav a, .mobile-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.mobile-nav { display: none; }
.mobile-nav summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line-mist); border-radius: 4px; padding: 10px 16px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav {
  position: absolute; left: 0; right: 0; top: 100%; background: #FFFFFF;
  border-bottom: 1px solid var(--line); z-index: 5;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.mobile-nav li a { display: block; padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; text-decoration: none; border: 0; border-radius: 4px;
  padding: 16px 28px; min-height: 48px; cursor: pointer;
}
.btn--accent { background: var(--accent); color: #FFFFFF; }
.btn--accent:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn--navy { background: var(--navy); color: #FFFFFF; font-size: 15px; padding: 12px 20px; min-height: 44px; }
.btn--navy:hover { background: #000000; color: #FFFFFF; }
.link-arrow { color: var(--accent); font-weight: 600; text-decoration: none; }
.link-arrow:hover { color: var(--accent-dark); text-decoration: underline; }
.band-navy .link-arrow { color: var(--on-navy-accent); }

/* Type */
.label {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 24px;
}
.label--muted { color: var(--ink-soft); }
.band-navy .label { color: var(--on-navy-accent); }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.tag--accent { color: var(--accent); }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; }
.display { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -0.015em; }
.title { font-size: clamp(38px, 5vw, 68px); line-height: 1.05; letter-spacing: -0.01em; max-width: 960px; }
.h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; }
.h2-lg { font-size: clamp(36px, 4vw, 52px); line-height: 1.08; }
.h2-sm { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }
.sub { font-family: var(--serif); font-size: 24px; line-height: 1.3; margin: 8px 0 20px; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 0 0 12px; }
.lead { font-size: 19px; color: var(--ink-soft); margin: 0; }
.muted { color: var(--ink-soft); }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.band-navy .lead, .band-navy .muted, .band-navy p.muted { color: var(--on-navy-soft); }

/* Sections */
.section { padding-block: 112px; }
.section--md { padding-block: 96px; }
.section--sm { padding-block: 88px; }
.section--hero { padding-block: 88px 88px; }
.band-mist { background: var(--mist); }
.band-navy { background: var(--navy); color: #FFFFFF; }
.rule-top { border-top: 1px solid var(--line); }
.stack-gap { margin-bottom: 56px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 56px; }

/* Layouts */
.hero-split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.hero-split > :first-child { flex: 999 1 560px; min-width: 0; }
.hero-split > :last-child { flex: 1 1 320px; min-width: 0; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split--narrow-left > :first-child { flex: 1 1 300px; }
.split--narrow-left > :last-child { flex: 2 1 560px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px; }
.cta-row > div { flex: 1 1 560px; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 32px; }
.grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--tight { gap: 24px; }

/* Components */
.rule-item { border-top: 2px solid var(--navy); padding-top: 28px; }
.rule-item--accent { border-top-color: var(--accent); }
.band-navy .rule-item { border-top: 1px solid var(--navy-line); padding-top: 24px; }
.rule-item p { color: var(--ink-soft); margin: 0; }
.band-navy .rule-item p { color: var(--on-navy-soft); }

.lines { list-style: none; margin: 0; padding: 0; }
.lines li { border-top: 1px solid var(--line); padding: 16px 0; }
.lines li:last-child { border-bottom: 1px solid var(--line); }
.band-mist .lines li { border-color: var(--line-mist); }

.card { display: block; background: #FFFFFF; border: 1px solid var(--line); padding: 32px; text-decoration: none; color: var(--navy); }
a.card:hover { border-color: var(--navy); color: var(--navy); }
.card .tag { margin-bottom: 40px; }
.card-title { font-family: var(--serif); font-size: 26px; line-height: 1.25; margin: 0 0 24px; }
.card .more { font-weight: 600; color: var(--accent); margin: 0; }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--accent); margin: 0 0 16px; }

.stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--navy-line); margin-top: 56px; }
.stage { padding: 24px 20px 0; border-right: 1px solid var(--navy-line); display: flex; flex-direction: column; gap: 10px; }
.stage:first-child { padding-left: 0; }
.stage:last-child { border-right: 0; padding-right: 0; }
.stage .n { font-family: var(--mono); font-size: 12px; color: var(--on-navy-soft); margin: 0; }
.stage .name { font-family: var(--serif); font-size: 26px; margin: 0; }
.stage .what { font-size: 15px; color: var(--on-navy-soft); margin: 0; }
.stage .gate { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--on-navy-accent); margin: 6px 0 0; }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.duo > div { padding: 32px; }
.duo .light { background: var(--mist); }
.duo .dark { background: var(--navy); color: #FFFFFF; }
.duo .dark .tag { color: var(--on-navy-accent); }
.duo .tag { margin-bottom: 16px; }

.case { border: 1px solid var(--line); padding: 40px; }
.case + .case { margin-top: 24px; }
.case h2 { font-size: 34px; line-height: 1.2; margin: 0 0 32px; }
.case .tag { margin-bottom: 12px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.case-grid h3 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 0 0 8px; }
.placeholder { color: var(--ink-soft); font-style: italic; }

.portrait {
  aspect-ratio: 4 / 5; max-width: 400px; width: 100%; background: #DDE2EA;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--ink-soft);
}
.split--portrait > :first-child { flex: 1 1 300px; max-width: 400px; }
.split--portrait > :last-child { flex: 2 1 520px; }

.sectors { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; margin: 0; }

/* Form */
.form-card { background: #FFFFFF; border: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font: inherit; color: var(--navy); padding: 12px 14px; border: 1px solid #C9D0DB; border-radius: 4px; min-height: 44px; width: 100%; background: #FFFFFF;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.help { font-size: 13px; color: var(--ink-soft); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { align-self: flex-start; }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; line-height: 1.2; margin: 48px 0 16px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 32px; font-size: 14px; color: var(--ink-soft); }
.footer-inner p { margin: 0; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-inner a { color: var(--ink-soft); }

/* Responsive */
@media (max-width: 1020px) {
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage { padding: 24px 20px 24px 0; border-right: 0; border-bottom: 1px solid var(--navy-line); }
  .stage:first-child { padding-left: 0; }
}
@media (max-width: 900px) {
  .site-nav, .header-cta { display: none; }
  .mobile-nav { display: block; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .section { padding-block: 72px; }
  .section--md, .section--sm { padding-block: 64px; }
  .section--hero { padding-block: 64px 56px; }
  .hero-split, .split { gap: 32px; }
  .head-row { margin-bottom: 36px; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .case, .form-card { padding: 24px; }
  .case h2 { font-size: 28px; }
  .lead { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Utilities */
.bt-mist { border-top:1px solid var(--line-mist); }
.c-on-navy-accent { color:var(--on-navy-accent); }
.fs-15 { font-size:15px; }
.fs-18 { font-size:18px; }
.fw-600 { font-weight:600; }
.gap-32 { gap:32px; }
.list-reset { list-style:none;padding-left:0; }
.mb-16 { margin-bottom:16px; }
.mb-20 { margin-bottom:20px; }
.mb-24 { margin-bottom:24px; }
.mb-28 { margin-bottom:28px; }
.mb-32 { margin-bottom:32px; }
.mb-4 { margin-bottom:4px; }
.mb-40 { margin-bottom:40px; }
.mb-48 { margin-bottom:48px; }
.mb-8 { margin-bottom:8px; }
.mt-16 { margin-top:16px; }
.mt-28 { margin-top:28px; }
.mt-32 { margin-top:32px; }
.mt-56 { margin-top:56px; }
.mw-640 { max-width:640px; }
.mw-720 { max-width:720px; }
.mw-760 { max-width:760px; }
.mw-800 { max-width:800px; }
.pb-104 { padding-bottom:104px; }
.pb-96 { padding-bottom:96px; }
.pt-24 { padding-top:24px; }
@media (max-width: 640px) { .pb-96, .pb-104 { padding-bottom: 64px; } .mt-56 { margin-top: 40px; } .mb-48 { margin-bottom: 32px; } }

/* Photography: navy-tinted, used sparingly */
.photo-band { position: relative; background: var(--navy); }
.photo-band img { display: block; width: 100%; height: auto; min-height: 280px; object-fit: cover; }
.photo-band__caption { position: absolute; inset: auto 0 0 0; padding-block: 64px 40px; background: linear-gradient(to top, rgba(10, 21, 38, 0.85), rgba(10, 21, 38, 0)); color: #FFFFFF; }
.photo-band__caption .label { color: var(--on-navy-accent); margin-bottom: 12px; }
.photo-band__line { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; margin: 0; max-width: 720px; }
.cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cities li { position: relative; margin: 0; }
.cities img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cities span { position: absolute; left: 0; bottom: 0; padding: 10px 14px; background: var(--navy); color: #FFFFFF; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.portrait-img { display: block; width: 100%; max-width: 400px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 760px) { .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.grid--six { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.grid--five { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.deploy { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.deploy .card h3 { margin-bottom: 12px; }

/* Home page photo hero */
.hero-photo { position: relative; color: #FFFFFF; background-color: var(--navy); background-image: url("band-london-1200.jpg"); background-size: cover; background-position: center 60%; }
@media (min-width: 900px) { .hero-photo { background-image: url("band-london-2400.jpg"); } }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 21, 38, 0.92) 0%, rgba(10, 21, 38, 0.75) 45%, rgba(10, 21, 38, 0.35) 100%); }
.hero-photo__inner { position: relative; padding-block: 96px 88px; }
.hero-photo__name { font-family: var(--serif); font-size: clamp(64px, 9vw, 120px); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.hero-photo__name span { color: var(--on-navy-accent); }
.hero-photo__tag { font-family: var(--mono); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: #C9D3E0; margin: 18px 0 40px; }
.hero-photo__title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; max-width: 680px; margin: 0; }
.hero-photo .link-arrow { color: #FFFFFF; }
.hero-photo .link-arrow:hover { color: var(--on-navy-accent); }
.where-line { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; margin: 0; max-width: 760px; color: var(--navy); }
@media (max-width: 640px) { .hero-photo__inner { padding-block: 64px 56px; } }
