/* Hooper Data. Palette and type follow brand/brand_sheet.md. */

:root {
  --ink: #1d2d3d; --steel-deep: #416180; --steel: #5980a6; --steel-light: #94bce3;
  --steel-tint: #d6ebff; --paper: #f2f2f3; --graphite: #1d1f20; --rule: #d4d4d7;
  --bg: var(--paper); --fg: var(--graphite); --head: var(--ink); --muted: #424244;
  --faint: #5d5d60; --line: var(--rule); --accent: var(--steel-deep);
  --band-bg: var(--ink); --band-fg: #ffffff; --band-sub: #d6ebff; --band-line: var(--steel-deep);
  --wash-bg: var(--steel-tint); --wash-fg: var(--ink);
  --font-h: "Barlow Condensed", system-ui, sans-serif;
  --font-b: "Barlow", system-ui, sans-serif;
  --gut: 40px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14202b; --fg: #e7eef5; --head: #ffffff; --muted: #c3d3e2; --faint: #93a7ba;
    --line: #2c455d; --accent: var(--steel-light);
    --band-bg: #0e1720; --band-fg: #ffffff; --band-sub: #b5d9fd; --band-line: #2c455d;
    --wash-bg: #2c455d; --wash-fg: #ffffff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-b); font-size: 16px; line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-h); margin: 0;
  letter-spacing: -0.022em; line-height: 1; color: var(--head);
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--head); }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
::selection { background: var(--steel-tint); color: var(--ink); }

.kicker {
  font-family: var(--font-h); font-size: 12px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent);
}

/* Blueprint corner ticks. */
.bp { position: relative; border: 1px solid var(--line); }
.bp > i { position: absolute; width: 9px; height: 9px; color: var(--steel); }
.bp > i::before, .bp > i::after { content: ""; position: absolute; background: currentColor; }
.bp > i::before { left: 0; right: 0; top: 4px; height: 1px; }
.bp > i::after { top: 0; bottom: 0; left: 4px; width: 1px; }
.bp > i.tl { top: -5px; left: -5px; }
.bp > i.tr { top: -5px; right: -5px; }
.bp > i.bl { bottom: -5px; left: -5px; }
.bp > i.br { bottom: -5px; right: -5px; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  gap: 28px; padding: 14px var(--gut); background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; margin-right: auto; }
.nav-logo svg { height: 34px; width: auto; }
/* var() is unreliable in SVG presentation attributes, so the logo type is set here. */
.logo text { font-family: var(--font-h); }
.nav-links {
  display: flex; gap: 22px; font-family: var(--font-h); font-size: 15px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-links a { color: var(--fg); padding-bottom: 2px; }
.nav-links a[aria-current="page"] { color: var(--head); border-bottom: 1.5px solid var(--accent); }

.btn {
  display: inline-flex; align-items: center; font-family: var(--font-h);
  font-size: 14px; padding: 9px 16px;
  background: var(--steel); color: #fff; border: 1px solid var(--steel);
}
.btn:hover { background: var(--steel-deep); border-color: var(--steel-deep); color: #fff; }
.btn-lg { font-size: 15px; padding: 11px 20px; }
.btn-outline { background: transparent; color: var(--head); border: 1px solid var(--line); }
.btn-outline:hover { background: var(--wash-bg); color: var(--wash-fg); border-color: var(--steel); }

/* Sections */
.sec { padding: 72px var(--gut); border-bottom: 1px solid var(--line); }
.sec-stack { display: flex; flex-direction: column; gap: 34px; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.sec-head > div { display: flex; flex-direction: column; gap: 10px; }
.sec h2, .band h2 { font-size: 44px; max-width: 26ch; }
.link-more {
  font-family: var(--font-h); font-size: 16px; letter-spacing: 0.08em;
  text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 2px;
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; border-bottom: 1px solid var(--line); }
.hero-main {
  padding: 76px var(--gut) 66px; display: flex; flex-direction: column;
  gap: 24px; border-right: 1px solid var(--line);
}
.hero-main h1 { font-size: 76px; line-height: 0.98; max-width: 20ch; }
.hero-lede { font-size: 19px; max-width: 56ch; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-index { display: grid; grid-template-rows: repeat(3, 1fr); }
.hero-index a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 32px; border-bottom: 1px solid var(--line);
  font-family: var(--font-h); color: var(--fg);
}
.hero-index a:last-child { border-bottom: none; }
.hero-index a span:first-child { font-size: 24px; }
.hero-index a span:last-child { font-size: 12px; letter-spacing: 0.18em; color: var(--accent); }

/* Page header (case studies) */
.page-head {
  padding: 68px var(--gut) 54px; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
}
.page-head h1 { font-size: 64px; max-width: 22ch; }
.note {
  font-family: var(--font-h); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 28px; }
.card p { font-size: 15.5px; color: var(--muted); }
.card .kicker { font-size: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.tag {
  font-family: var(--font-b); font-size: 11px; padding: 3px 10px;
  border: 1px solid var(--line); color: var(--faint);
}

/* Case study placeholder cards */
.slot { min-height: 240px; }
.slot .kicker { font-size: 11px; }
.slot h3 { font-size: 26px; color: var(--faint); }
.slot-body { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--faint); }
.slot-body .kicker { font-size: 12px; }

/* Dark bands */
.band { background: var(--band-bg); color: var(--band-fg); padding: 76px var(--gut); }
.band h2 { color: var(--band-fg); }
.band .kicker { color: var(--band-sub); }
.band-stack { display: flex; flex-direction: column; gap: 28px; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.split > div:first-child { display: flex; flex-direction: column; gap: 18px; }
.split p { font-size: 17px; color: var(--band-sub); max-width: 44ch; }

.row {
  display: grid; grid-template-columns: 78px 1fr; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--band-line);
}
.row:last-child { border-bottom: 1px solid var(--band-line); }
.row .yr { font-family: var(--font-h); font-size: 34px; line-height: 1; color: var(--band-sub); }
.row .yr span { font-size: 15px; letter-spacing: 0.08em; }
.row .t { font-family: var(--font-h); font-size: 22px; color: var(--band-fg); }
.row .d { font-size: 15px; color: var(--band-sub); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.step {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 14px; border-top: 1px solid var(--band-line);
}
.step .t { font-family: var(--font-h); font-size: 24px; }
.step .d { font-size: 15px; color: var(--band-sub); }

/* Contact */
.contact {
  padding: 82px var(--gut) 74px; display: flex; flex-direction: column;
  gap: 26px; align-items: flex-start;
}
.contact h2 { font-size: 56px; max-width: 26ch; letter-spacing: -0.025em; }
.contact p { font-size: 18px; color: var(--muted); max-width: 58ch; }
.ctiles { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 8px; }
.ctile { padding: 20px 28px; display: flex; flex-direction: column; gap: 2px; }
.ctile .l {
  font-family: var(--font-h); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}
.ctile .v { font-family: var(--font-h); font-size: 26px; color: var(--head); }
.ctile.solid { background: var(--ink); border-color: var(--ink); }
.ctile.solid .l { color: var(--steel-light); }
.ctile.solid .v { color: #fff; }

/* Footer */
footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  padding: 24px var(--gut) 34px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--faint);
}
.footer-logo { height: 30px; width: auto; margin-right: auto; }

@media (max-width: 900px) {
  :root { --gut: 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-main { border-right: none; }
  .hero-main h1 { font-size: 52px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .nav { flex-wrap: wrap; gap: 14px; padding: 12px var(--gut); }
  .contact h2 { font-size: 38px; }
  .page-head h1 { font-size: 44px; }
}
