/* Berloga Group: one stylesheet for the whole site. Typography led, no images. */

:root {
  --navy-950: #060c18;
  --navy-900: #0a1428;
  --navy-800: #0f1d36;
  --navy-700: #1a2b4a;
  --paper: #ffffff;
  --stone: #f6f4ef;
  --ink: #0d1524;
  --body: #2b3343;
  --muted: #5c6577;
  --rule: #e3dfd6;
  --rule-dark: rgba(255, 255, 255, 0.12);
  --on-dark: #ffffff;
  --on-dark-muted: #a9b2c3;
  --accent: #3d7eff;       /* the period in the wordmark, rules, focus */
  --accent-ink: #1d58d4;   /* accent used as text on white (4.5:1) */
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 11vw, 152px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.012em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; }

/* ------------------------------------------------------------ header */

.site-header {
  background: var(--navy-950);
  color: var(--on-dark);
  border-bottom: 1px solid var(--rule-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: 0.005em;
  color: var(--on-dark);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.wordmark .dot { color: var(--accent); }
.nav-inline { display: flex; gap: 34px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-inline a, .nav-menu a {
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-inline a:hover, .nav-inline a[aria-current="page"], .nav-menu a:hover { color: var(--on-dark); }
.nav-inline .ext::after, .nav-menu .ext::after { content: " \2197"; font-size: 0.85em; }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  padding: 10px 0;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu ul {
  position: absolute;
  right: calc(-1 * var(--gutter));
  top: 52px;
  width: 100vw;
  max-width: 420px;
  margin: 0;
  padding: 18px var(--gutter) 26px;
  list-style: none;
  background: var(--navy-950);
  border-bottom: 1px solid var(--rule-dark);
}
.nav-menu li { border-top: 1px solid var(--rule-dark); }
.nav-menu li a { display: block; padding: 14px 0; font-size: 16px; }
@media (max-width: 960px) {
  .nav-inline { display: none; }
  .nav-menu { display: block; }
}

/* ------------------------------------------------------------ type helpers */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex: none; }
.on-dark .eyebrow { color: var(--on-dark-muted); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 0; margin-bottom: clamp(48px, 6vw, 80px); max-width: 820px; }
.section-head .num { font-variant-numeric: tabular-nums; }
.h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.65; color: var(--muted); max-width: 640px; margin-top: 26px; }

.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 5px;
}
.arrow-link .arr { transition: transform 0.25s ease; }
.arrow-link:hover .arr { transform: translateX(4px); }
.on-dark .arrow-link, .hero .arrow-link, .page-hero .arrow-link { color: var(--on-dark); }

/* ------------------------------------------------------------ sections */

.section { padding: var(--section) 0; }
[id] { scroll-margin-top: 76px; }
.section.stone { background: var(--stone); }
.on-dark { background: var(--navy-900); color: var(--on-dark-muted); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }

/* hero */
.hero {
  background:
    radial-gradient(1100px 620px at 88% -10%, rgba(61, 126, 255, 0.13), transparent 60%),
    radial-gradient(900px 600px at -10% 120%, rgba(26, 43, 74, 0.9), transparent 60%),
    var(--navy-900);
  color: var(--on-dark-muted);
  padding: clamp(96px, 14vw, 184px) 0 0;
}
.hero h1 {
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  max-width: 18ch;
}
.hero h1 .dot { color: var(--accent); }
.hero .lede { color: var(--on-dark-muted); max-width: 600px; margin-top: 34px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 18px 44px; margin-top: 52px; }
.hero-meta {
  margin-top: clamp(80px, 11vw, 140px);
  border-top: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-meta div { padding: 26px 0 30px; font-size: 13px; letter-spacing: 0.06em; }
.hero-meta div + div { padding-left: 28px; border-left: 1px solid var(--rule-dark); }
.hero-meta strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: 0; color: var(--on-dark); margin-bottom: 4px; }
@media (max-width: 640px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-dark); }
}

/* companies */
.companies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.company { padding: 48px 40px 56px; display: flex; flex-direction: column; }
.company:first-child { padding-left: 0; }
.company:last-child { padding-right: 0; }
.company + .company { border-left: 1px solid var(--rule); }
.company .kind { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.company h3 { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; margin-bottom: 22px; }
.company p { color: var(--body); max-width: 520px; }
.company .tags { list-style: none; padding: 0; margin: 10px 0 40px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--muted); }
.company .tags li::before { content: "\2014\00a0"; color: var(--rule); }
.company .arrow-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 980px) {
  .companies { grid-template-columns: 1fr; }
  .company, .company + .company, .company:first-child, .company:last-child { padding: 44px 0 52px; border-left: 0; }
  .company + .company { border-top: 1px solid var(--rule); }
}

/* two column prose */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.split .prose p { font-size: 18.5px; line-height: 1.75; }
.split .aside { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 26px; margin-top: 36px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* numbered grid (principles, services, standards) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.grid-3 > * { padding: 40px 40px 44px 0; border-bottom: 1px solid var(--rule); }
.grid-3 > *:not(:nth-child(3n + 1)) { padding-left: 40px; border-left: 1px solid var(--rule); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); }
.grid-2 > * { padding: 40px 48px 44px 0; border-bottom: 1px solid var(--rule); }
.grid-2 > *:nth-child(2n) { padding-left: 48px; border-left: 1px solid var(--rule); }
.item .n { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--accent-ink); margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.item h3 { font-size: 25px; line-height: 1.2; margin-bottom: 14px; }
.item p { margin: 0; color: var(--muted); font-size: 16px; }
.item p a { color: var(--accent-ink); }
.on-dark .grid-3, .on-dark .grid-2, .on-dark .grid-3 > *, .on-dark .grid-2 > * { border-color: var(--rule-dark); }
.on-dark .item .n { color: var(--accent); }
.on-dark .item p { color: var(--on-dark-muted); }
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > * { padding: 36px 32px 40px 0 !important; border-left: 0 !important; }
  .grid-3 > *:nth-child(2n) { padding-left: 32px !important; border-left: 1px solid var(--rule) !important; }
  .on-dark .grid-3 > *:nth-child(2n) { border-left-color: var(--rule-dark) !important; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 > *, .grid-2 > *, .grid-3 > *:nth-child(2n), .grid-2 > *:nth-child(2n) { padding: 32px 0 36px !important; border-left: 0 !important; }
}

/* presence */
.cities { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-dark); }
.city { padding: 40px 32px 8px 0; }
.city + .city { padding-left: 32px; border-left: 1px solid var(--rule-dark); }
.city h3 { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 10px; }
.city p { margin: 0; font-size: 14px; letter-spacing: 0.06em; color: var(--on-dark-muted); }
.city .role { color: var(--accent); }
@media (max-width: 760px) {
  .cities { grid-template-columns: 1fr; }
  .city, .city + .city { padding: 32px 0; border-left: 0; }
  .city + .city { border-top: 1px solid var(--rule-dark); }
}

/* steps */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 120px 1fr 1.4fr; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.steps .n { font-family: var(--serif); font-size: 34px; color: var(--accent-ink); }
.steps h3 { font-size: 26px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps li { grid-template-columns: 1fr; gap: 8px; } }

/* engagement lines */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.line { padding: 32px 32px 8px 0; }
.line + .line { padding-left: 32px; border-left: 1px solid var(--rule); }
.line h3 { font-size: 24px; margin-bottom: 12px; }
.line p { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  .lines { grid-template-columns: 1fr; }
  .line, .line + .line { padding: 28px 0 8px; border-left: 0; }
  .line + .line { border-top: 1px solid var(--rule); }
}

/* page hero (inner pages) */
.page-hero { background: var(--navy-900); color: var(--on-dark-muted); padding: clamp(80px, 11vw, 150px) 0 clamp(72px, 9vw, 120px); }
.page-hero h1 { font-size: clamp(42px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.02em; color: var(--on-dark); max-width: 16ch; }
.page-hero h1 .dot { color: var(--accent); }
.page-hero .lede { color: var(--on-dark-muted); }
.crumbs { font-size: 13px; letter-spacing: 0.04em; margin-bottom: 44px; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; border-bottom: 1px solid var(--rule-dark); }
.crumbs a:hover { color: var(--on-dark); }

/* ------------------------------------------------------------ contact form */

.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #bfbab0;
  border-radius: 0;
  padding: 10px 0 12px;
  transition: border-color 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; border: 1px solid #bfbab0; padding: 14px; }
.field select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c6577' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 28px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent-ink); flex: none; }
.consent a { color: var(--accent-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--navy-900);
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 18px 30px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s;
}
.button:hover { background: var(--navy-700); }
.button .arr { color: var(--accent); }

/* ------------------------------------------------------------ prose pages (privacy) */

.doc { max-width: 760px; }
.doc h2 { font-size: 28px; margin: 52px 0 14px; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 20px; }
.doc .meta { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ footer */

.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 88px 0 40px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid var(--rule-dark); }
.foot .wordmark { font-size: 26px; }
.foot p { margin-top: 18px; max-width: 320px; line-height: 1.6; }
.foot h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 10px; }
.foot a { color: var(--on-dark-muted); text-decoration: none; }
.foot a:hover { color: var(--on-dark); }
.foot .ext::after { content: " \2197"; font-size: 0.85em; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; font-size: 12.5px; letter-spacing: 0.03em; }
@media (max-width: 880px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
