/* CR Advisory — site styles. Tokens mirror the CR Advisory design system. */
:root {
  --paper: #f3f3f3;
  --white: #ffffff;
  --ink: #434343;
  --ink-strong: #262626;
  --ink-muted: #5b5b5b;
  --rule: #dddddd;
  --panel: #434343;
  --dark: #262626;
  --on-dark: #f3f3f3;
  --on-dark-muted: #cccccc;
  --brand: #1a5fb4;
  --brand-hover: #134a8c;
  --brand-light: #7cb3f2;
  --font-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-serif: Georgia, Gelasio, "Times New Roman", serif;
  --max: 1240px;
  --gutter: 48px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { color: var(--ink-strong); font-weight: 400; line-height: 1.15; margin: 0; }
p, ul { margin: 0; }
.serif { font-family: var(--font-serif); }
.accent { font-family: var(--font-serif); font-style: italic; color: var(--brand); }
.dark .accent { color: var(--brand-light); }
.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: 96px var(--gutter); }
.section--white { background: var(--white); }
.stack { display: flex; flex-direction: column; gap: 40px; }
.eyebrow { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.dark .eyebrow { color: var(--on-dark-muted); }
.h-xl { font-size: clamp(52px, 8vw, 96px); line-height: 1; }
.h-l { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; }
.h-m { font-size: clamp(30px, 3.4vw, 40px); }
.lede { font-size: 20px; line-height: 1.5; max-width: 660px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.dark :focus-visible { outline-color: var(--brand-light); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); padding: 0 var(--gutter); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 12px 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav-toggle { display: none; font: inherit; font-size: 15px; background: none; border: 1px solid var(--ink); padding: 10px 16px; min-height: 44px; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px; padding: 16px 28px; border: 1px solid transparent; }
.btn--primary, .nav a.btn--primary { background: var(--brand); color: var(--white); padding: 12px 20px; }
.btn--primary:hover, .nav a.btn--primary:hover { background: var(--brand-hover); color: var(--white); }
.section .btn--primary { padding: 16px 28px; }
.btn--ghost { border-color: var(--on-dark); color: var(--on-dark); font-weight: 400; }
.btn--ghost:hover { background: var(--on-dark); color: var(--dark); }
.btn--white { background: var(--white); color: var(--brand); }
.btn--white:hover { color: var(--brand-hover); }
.actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Dark / photo bands */
.dark { background: var(--dark); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }
.dark a { color: var(--brand-light); }
.photo { background-color: var(--dark); background-size: cover; background-position: center; background-repeat: no-repeat; }
.photo--towers { background-image: url(../img/photos/towers-upward.jpg); }
.photo--angle { background-image: url(../img/photos/tower-angle.jpg); }
.photo--skyline { background-image: url(../img/photos/skyline.jpg); }
.photo--columns { background-image: url(../img/photos/columns.jpg); }
.hero .wrap { position: relative; min-height: 620px; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 96px 0; }
.hero .frame { position: absolute; right: 0; top: 64px; width: 420px; height: 440px; border: 1px solid var(--on-dark); pointer-events: none; }
.band .wrap { padding: 88px 0; display: flex; flex-direction: column; gap: 20px; }

/* Grids and cards */
.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)); }
.card { background: var(--white); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 22px; font-weight: 700; }
.card ul { padding-left: 20px; line-height: 1.7; }
.card--dark { background: var(--dark); color: var(--on-dark); }
.card--dark h3 { color: var(--on-dark); }
a.card { text-decoration: none; color: inherit; }
a.card:hover h3 { color: var(--brand); }
.card .tag { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.card .think { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--rule); font-family: var(--font-serif); font-size: 18px; line-height: 1.5; }
.card .think em { color: var(--brand); }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-bottom: 2px solid var(--ink-strong); padding-bottom: 20px; }
.split-head p { font-family: var(--font-serif); font-size: 18px; }
.split-head em { color: var(--brand); }
.ruled { border-top: 2px solid var(--ink-strong); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.ruled h3 { font-size: 22px; font-weight: 700; }
.ruled p { color: var(--ink-muted); }
.step { border-top: 2px solid var(--brand); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step .num { font-family: var(--font-serif); font-size: 32px; color: var(--brand); line-height: 1; }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { color: var(--ink-muted); font-size: 16px; }

/* Mission */
.mission { display: flex; gap: 64px; align-items: flex-start; }
.mission .eyebrow { flex: 0 0 220px; }
.mission blockquote { margin: 0; flex: 1; font-family: var(--font-serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; color: var(--ink-strong); }

/* Video tiles */
.video { display: flex; flex-direction: column; gap: 14px; }
.video .screen { aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid #5b5b5b; display: flex; align-items: center; justify-content: center; }
.video .ep { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-light); }
.video .title { font-size: 20px; }

/* CTA band */
.cta { background: var(--brand); color: var(--white); padding: 80px var(--gutter); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { color: var(--white); font-family: var(--font-serif); font-size: clamp(32px, 3.6vw, 44px); }
.cta a.tel { color: var(--white); font-size: 18px; }

/* Insights */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 15px; padding: 10px 18px; min-height: 44px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--on-dark); }
.list { background: var(--white); }
.list-row { display: flex; gap: 32px; align-items: baseline; padding: 22px 32px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.list-row:hover h3 { color: var(--brand); }
.list-row .date { flex: 0 0 180px; font-size: 14px; color: var(--ink-muted); }
.list-row h3 { flex: 1; font-size: 20px; line-height: 1.35; }
.list-row .cat { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.list-row[hidden] { display: none; }

/* Team */
.person { background: var(--white); padding: 28px; display: flex; gap: 20px; align-items: flex-start; }
.person img, .person .initials { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); outline: 1px solid var(--rule); }
.person .initials { background: var(--ink-muted); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 32px; }
.person h3 { font-size: 22px; font-weight: 700; }
.person .role { font-style: italic; color: var(--brand); font-size: 16px; }
.person p.bio { margin-top: 8px; font-size: 16px; color: var(--ink-muted); }
.team-photo { min-height: 460px; background: #5b5b5b url(../img/photos/team.jpg) center 20% / cover no-repeat; }

/* Form */
.form { background: var(--white); padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink-strong); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; min-height: 44px; border: 1px solid var(--ink-muted); background: var(--white); color: var(--ink-strong); width: 100%; }
.form button { font: inherit; font-weight: 700; font-size: 16px; background: var(--brand); color: var(--white); border: 0; padding: 16px 32px; min-height: 48px; cursor: pointer; }
.form button:hover { background: var(--brand-hover); }
.aside-photo { position: relative; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; }
.aside-photo::before { content: ""; position: absolute; inset: 28px; border: 1px solid var(--on-dark); }
.aside-photo > div { position: relative; display: flex; flex-direction: column; gap: 14px; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 64px var(--gutter) 40px; font-size: 15px; }
.site-footer a { color: var(--brand-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .top { display: flex; justify-content: space-between; gap: 40px; }
.site-footer .logo img { height: 36px; width: auto; margin-bottom: 16px; }
.site-footer nav { display: flex; gap: 56px; line-height: 2; }
.site-footer nav div { display: flex; flex-direction: column; }
.site-footer .bottom { margin-top: 40px; border-top: 1px solid var(--panel); padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero .frame { display: none; }
}
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--rule); }
  .nav a.btn--primary { margin-top: 12px; text-align: center; border: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .mission, .split-head, .cta .wrap, .site-footer .top, .stack-sm { flex-direction: column; align-items: flex-start; }
  .mission .eyebrow { flex-basis: auto; }
  .list-row { flex-direction: column; gap: 6px; padding: 20px; }
  .list-row .date { flex-basis: auto; }
  .site-footer nav { flex-wrap: wrap; gap: 32px; }
}
