/* Baffelan — Data Climbing
   Colours come from the logo: deep navy, cobalt, and the logo's cyan. */

:root {
  --navy: #081A3A;
  --navy-2: #0B2F72;
  --navy-3: #0E2A5C;
  --blue: #0E3A8C;
  --cyan: #78F9FF;
  --warm: #B4501A;
  --ink: #0F1A2B;
  --ink-2: #2C3645;
  --muted: #4A5566;
  --muted-2: #5B6574;
  --on-dark: #C5D3EA;
  --on-dark-2: #D6E2F5;
  --on-dark-3: #8FA3C4;
  --paper: #F3F1EB;
  --sand: #EAE7DE;
  --chip: #EDEAE1;
  --line: #DAD6CB;
  --stone: #E3DFD4;
  --stone-ink: #9AA2AE;

  --display: "Archivo", "Helvetica Neue", sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: 120px;
  --section: 120px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  margin: 0;
  line-height: 1.08;
  text-wrap: balance;
}
p { margin: 0; }
:target { scroll-margin-top: 96px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.label-accent { color: var(--cyan); }
.label-warm { color: var(--warm); }
.label-blue { color: var(--blue); letter-spacing: 0.1em; font-size: 12px; }
.lead { font-size: 19px; line-height: 1.6; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--cyan); color: var(--navy); padding: 10px 16px; border-radius: 4px;
}
.skip:focus { left: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-lg { min-height: 52px; padding: 0 30px; }
.btn-accent { background: var(--cyan); color: var(--navy); }
.btn-accent:hover { background: #A6FBFF; color: var(--navy); }
.btn-ghost { border-color: rgba(214, 226, 245, .4); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-dark { background: var(--navy); color: #fff; border: 0; }
.btn-dark:hover { background: var(--blue); color: #fff; }
.icon-inline { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(120, 249, 255, .14);
}
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.wordmark {
  display: flex; align-items: center; gap: 2px;
  color: #fff; text-decoration: none;
  font-family: var(--display); font-stretch: 125%; font-weight: 600;
  font-size: 22px; letter-spacing: .22em;
}
.wordmark:hover { color: #fff; }
.wordmark img { width: 26px; height: 26px; margin: 0 2px 3px; }
.nav { display: flex; align-items: center; gap: 40px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--on-dark-2); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--cyan); }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.menu-panel {
  position: absolute; right: 0; top: 56px; width: min(280px, calc(100vw - 32px));
  background: var(--navy); border: 1px solid rgba(120, 249, 255, .2); border-radius: 8px;
  padding: 12px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.menu-panel a:not(.btn) { color: var(--on-dark-2); text-decoration: none; padding: 12px; border-radius: 6px; }
.menu-panel a:not(.btn):hover { background: var(--navy-3); }
.menu-panel .btn { margin-top: 8px; }

/* ---------- Dark sections ---------- */
.dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.dark .lead, .dark .section-aside, .dark p { color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contours path { fill: none; stroke: var(--cyan); stroke-opacity: .09; stroke-width: 1.2; }

/* ---------- Hero ---------- */
.hero-inner { position: relative; display: flex; gap: 72px; padding-top: 96px; padding-bottom: 96px; align-items: flex-start; }
.hero-copy { flex: 0 0 620px; display: flex; flex-direction: column; gap: 28px; padding-top: 24px; }
.hero h1 { font-size: 68px; line-height: 1.02; letter-spacing: -0.01em; }
.hero .lead { max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 12px; }
.hero-figure { margin: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-figure img { width: 100%; height: 470px; object-fit: cover; border-radius: 4px; }
.hero-figure figcaption { font-size: 12px; letter-spacing: .06em; color: var(--on-dark-3); text-transform: uppercase; }

.page-hero { padding: 104px 0 112px; }
.page-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 24px; }
.page-hero h1 { font-size: 64px; line-height: 1.04; max-width: 820px; }
.page-hero .lead { max-width: 680px; }
.page-hero-tall { min-height: calc(100vh - 88px - 320px); display: flex; align-items: center; }
.page-hero-tall .wrap { width: 100%; }

/* ---------- Grids & sections ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.section { padding: var(--section) 0; }
.sand { background: var(--sand); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 80px; margin-bottom: 56px; }
.section-head > div { display: flex; flex-direction: column; gap: 16px; max-width: 700px; }
.section-head h2 { font-size: 48px; }
.section-aside { max-width: 420px; font-size: 17px; color: var(--muted); }

.pillars { padding: 96px 0; border-bottom: 1px solid var(--line); }
.pillars .grid { gap: 48px; }
.pillar { display: flex; flex-direction: column; gap: 14px; }
.pillar h3 { font-size: 22px; }
.pillar p { font-size: 16px; color: var(--muted); }
.icon { width: 36px; height: 36px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.service { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.service .num { font-size: 13px; color: var(--blue); }
.service h3 { font-size: 28px; }
.service p { color: var(--muted); }
.tags { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--ink-2); }

/* ---------- Ethics ---------- */
.ethic { padding: 32px; display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--blue); }
.ethic .num { font-size: 13px; color: var(--blue); }
.ethic h3 { font-size: 22px; }
.ethic p { font-size: 16px; color: var(--muted); }

/* ---------- Approach ---------- */
.profile { width: 100%; height: auto; display: block; margin-bottom: 48px; }
.profile-fill { fill: var(--navy-3); }
.profile-line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 6 6; }
.profile-camps circle { fill: var(--navy); stroke: var(--cyan); stroke-width: 2.5; }
.profile-summit { fill: var(--cyan); }
.camps { list-style: none; margin: 0; padding: 0; gap: 32px; }
.camp { display: flex; flex-direction: column; gap: 10px; }
.camp .label { font-size: 12px; letter-spacing: .12em; }
.camp h3 { font-size: 20px; }
.camp p:not(.label) { font-size: 15px; }

/* ---------- People ---------- */
.portrait { background: var(--stone); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.initials { font-family: var(--display); font-stretch: 125%; font-weight: 700; color: var(--stone-ink); }
.portrait-md { height: 300px; }
.portrait-md .initials { font-size: 44px; }
.portrait-lg { width: 320px; height: 380px; flex: 0 0 320px; }
.portrait-lg .initials { font-size: 56px; }
.portrait-sm { height: 180px; border-radius: 4px; }
.portrait-sm .initials { font-size: 36px; }
.person-card { display: flex; flex-direction: column; gap: 6px; }
.person-card .portrait { margin-bottom: 12px; }
.person-card h3 { font-size: 24px; }
.person-card p { font-size: 15px; color: var(--muted); }
.role { color: var(--blue) !important; font-weight: 500; }

.profiles { display: flex; flex-direction: column; }
.profile-row { display: flex; gap: 64px; align-items: flex-start; padding: 64px 0; border-top: 1px solid var(--line); }
.profile-row:first-child { border-top: 0; padding-top: 0; }
.profile-row:last-child { padding-bottom: 0; }
.profile-body { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.profile-body .label { font-size: 12px; letter-spacing: .12em; }
.profile-body h2 { font-size: 44px; line-height: 1.05; }
.credentials { font-weight: 500; color: var(--blue); }
.bio { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 760px; }
.links { display: flex; gap: 24px; font-size: 15px; font-weight: 600; }

.mini { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.mini .portrait { margin-bottom: 4px; }
.mini h3 { font-size: 22px; }
.mini p { font-size: 14px; color: var(--muted); }

/* ---------- Work ---------- */
.case { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.case h3 { font-size: 22px; line-height: 1.25; }
.case p:not(.label) { font-size: 15px; color: var(--muted); }
.case .case-client { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--stone); font-size: 14px; color: var(--ink-2); }
.clients { margin-top: 64px; display: flex; flex-direction: column; gap: 20px; }
.clients > .label { font-size: 12px; letter-spacing: .12em; }
.client { height: 72px; border-radius: 4px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.client img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .8; }
.client-empty { border: 1px dashed #B9B3A4; font-size: 12px; color: var(--muted-2); }

/* ---------- Contact ---------- */
.contact-section { padding-top: 0; }
#work + .contact-section { padding-top: var(--section); }
.contact {
  background: var(--blue); color: #fff; border-radius: 8px; padding: 80px;
  display: flex; gap: 72px; align-items: flex-start;
}
.contact-copy { flex: 0 0 440px; display: flex; flex-direction: column; gap: 20px; }
.contact-copy h2 { font-size: 48px; color: #fff; }
.contact-copy p { color: var(--on-dark-2); }
.contact-copy a { color: var(--cyan); font-weight: 600; }
.company { margin-top: 20px; padding: 24px; border-radius: var(--radius); background: var(--navy-2); display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.55; }
.company .label { font-size: 12px; letter-spacing: .12em; margin-bottom: 4px; }
.company .company-name { color: #fff; font-weight: 600; }

.form { flex: 1 1 auto; min-width: 0; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #C9C3B5; border-radius: 4px;
}
.field input, .field select { height: 48px; padding: 0 14px; }
.field textarea { min-height: 160px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 4px; }
.fineprint { font-size: 13px; line-height: 1.5; color: var(--muted-2); max-width: 380px; }
.hp { position: absolute; left: -9999px; }

.cta { background: var(--blue); color: #fff; border-radius: 8px; padding: 80px; display: flex; justify-content: space-between; align-items: center; gap: 64px; }
.cta > div { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.cta h2 { font-size: 48px; color: #fff; }
.cta .lead { color: var(--on-dark-2); font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); padding: 64px 0; }
.footer-top { display: flex; justify-content: space-between; gap: 64px; }
.footer-brand { display: flex; gap: 24px; align-items: center; }
.footer-brand img { width: 112px; height: 112px; border-radius: 4px; flex: 0 0 112px; }
.footer-brand p { max-width: 300px; font-size: 15px; }
.footer-cols { display: flex; gap: 64px; font-size: 15px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 12px; }
.footer-cols .label { font-size: 12px; letter-spacing: .12em; }
.footer-cols a { color: var(--on-dark); text-decoration: none; }
.footer-cols a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(197, 211, 234, .18); display: flex; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--on-dark-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  :root { --gutter: 64px; --section: 104px; }
  .hero-copy { flex-basis: 520px; }
  .hero h1 { font-size: 58px; }
  .contact, .cta { padding: 56px; }
  .contact-copy { flex-basis: 380px; }
}

@media (max-width: 1080px) {
  :root { --gutter: 40px; --section: 88px; }
  .nav { display: none; }
  .menu { display: block; }
  .hero-inner { flex-direction: column; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
  .hero-copy { flex-basis: auto; padding-top: 0; }
  .hero-figure { width: 100%; }
  .hero-figure img { height: 400px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5.camps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .contact { flex-direction: column; gap: 40px; }
  .contact-copy { flex-basis: auto; }
  .form { width: 100%; }
  .footer-top { flex-direction: column; }
  .footer-cols { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --section: 72px; }
  body { font-size: 16px; }
  .header-inner { height: 72px; }
  .wordmark { font-size: 19px; }
  .hero h1 { font-size: 40px; }
  .page-hero { padding: 72px 0 80px; }
  .page-hero h1 { font-size: 40px; }
  .lead { font-size: 17px; }
  .hero-figure img { height: 260px; }
  .section-head { margin-bottom: 40px; }
  .section-head h2, .contact-copy h2, .cta h2 { font-size: 34px; }
  .pillars { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-5.camps { grid-template-columns: minmax(0, 1fr); }
  .grid-5:not(.camps) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars .grid { gap: 40px; }
  .service { padding: 28px; }
  .service h3 { font-size: 24px; }
  .ethic { padding: 28px; }
  .profile { margin-bottom: 32px; }
  .profile-row { flex-direction: column; gap: 28px; padding: 48px 0; }
  .portrait-lg { width: 100%; flex-basis: auto; height: 320px; }
  .profile-body h2 { font-size: 34px; }
  .bio { font-size: 17px; }
  .contact, .cta { padding: 28px 20px; border-radius: 6px; }
  .cta { flex-direction: column; align-items: flex-start; gap: 28px; }
  .form { padding: 24px 20px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .footer-cols { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
