/* ==========================================================================
   Atlas DataWork — shared site styles
   Light + dark themes, one type scale, one icon style.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: 48px;
  --section-y: 104px;
  --nav-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Dark (default) ---------- */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0A1322;
  --bg-deep:   #070E1A;
  --surface:   #0F1A2C;
  --surface-2: #14223A;
  --line:      #1E2B41;
  --line-soft: #172338;
  --text:      #ECEFF4;
  --muted:     #A2ADBD;
  --faint:     #8590A2;
  --accent:    #CDB07A;           /* champagne */
  --accent-soft: rgba(205,176,122,.12);
  --data-blue: #4FB3E6;
  --data-risk: #F07A45;
  --btn-bg:    #CDB07A;
  --btn-fg:    #0A1322;
  --btn-hover: #DDC392;
  --nav-glass: rgba(10,19,34,.82);
  --shadow:    0 1px 0 rgba(255,255,255,.03), 0 24px 48px -24px rgba(0,0,0,.6);
  --grid-line: rgba(160,180,210,.06);
}

/* ---------- Light ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #F6F3EC;           /* ivory */
  --bg-deep:   #EEE9DE;
  --surface:   #FFFFFF;
  --surface-2: #EEE9DE;
  --line:      #DED7C8;
  --line-soft: #E8E2D5;
  --text:      #0A1F38;           /* Atlas navy */
  --muted:     #4E596A;
  --faint:     #5E6775;
  --accent:    #7E5F24;           /* brass */
  --accent-soft: rgba(126,95,36,.08);
  --data-blue: #0F6FA6;
  --data-risk: #C2410C;
  --btn-bg:    #0A1F38;
  --btn-fg:    #F6F3EC;
  --btn-hover: #163256;
  --nav-glass: rgba(246,243,236,.86);
  --shadow:    0 1px 0 rgba(10,31,56,.04), 0 24px 48px -28px rgba(10,31,56,.25);
  --grid-line: rgba(10,31,56,.05);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.6;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }

/* ---------- Icons ---------- */
.ic {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.35;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; stroke-width: 1.2; }

.icon-badge {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-alt { background: var(--surface); }
:root[data-theme="dark"] .section-alt { background: var(--bg-deep); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); font-weight: 400; }
.display-1 { font-size: clamp(48px, 6.2vw, 92px); line-height: 0.98; letter-spacing: -0.015em; font-weight: 400; }
.display-2 { font-size: clamp(36px, 4vw, 56px); }
.display-3 { font-size: clamp(26px, 2.4vw, 34px); }
.lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 560px; }
.body { font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.num { font-family: var(--font-display); font-variant-numeric: lining-nums tabular-nums; font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.center { justify-content: center; }
.kicker { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }

.section-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end;
  margin-bottom: 48px;
}
.section-head .body { max-width: 460px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 15px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
  transition: border-color .25s var(--ease), color .25s var(--ease), gap .25s var(--ease);
  white-space: nowrap;
}
.link-arrow .ic { color: var(--accent); }
.link-arrow:hover { border-color: var(--accent); gap: 14px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.site-nav.scrolled, .site-nav.solid {
  background: var(--nav-glass);
  border-bottom-color: var(--line-soft);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1320px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.logo-on-light { display: none !important; }
:root[data-theme="light"] .logo-on-dark { display: none !important; }
:root[data-theme="light"] .logo-on-light { display: block !important; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  position: relative;
  font-size: 12.5px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn { padding: 11px 18px; font-size: 11.5px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--bg); padding: 32px var(--gutter);
  display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 30px; color: var(--text); text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a .ic { color: var(--accent); }
.mobile-menu .btn { margin-top: 28px; font-family: var(--font-body); font-size: 12.5px; border-bottom: 0; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 96px) 0 0;
  background:
    radial-gradient(60% 70% at 85% 10%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(80% 80% at 70% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000 30%, transparent 80%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: end; padding-bottom: 80px; }
.hero h1 { margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 32px 32px 28px;
}
.hero-card-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; }
.hero-card-head .kicker { color: var(--faint); }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.live-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-card .spark { width: 100%; height: 88px; margin: 6px 0 22px; }
.spark .spark-area { fill: var(--accent-soft); stroke: none; }
.spark .spark-line { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.spark .spark-base { stroke: var(--line); stroke-width: 1; }
.spark .spark-fc { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .7; }
.hero-card-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.hero-card-rows > div { background: var(--surface); padding: 14px 16px; }
.hero-card-rows .num { font-size: 26px; line-height: 1.1; }
.hero-card-rows .kicker { font-size: 10px; letter-spacing: .14em; margin-top: 4px; display: block; }

.figures {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.figure { padding: 30px 28px 34px 0; }
.figure + .figure { padding-left: 28px; border-left: 1px solid var(--line-soft); }
.figure .num { font-size: 46px; line-height: 1; color: var(--text); }
.figure .num sup { font-size: .5em; color: var(--accent); vertical-align: top; margin-left: 2px; position: relative; top: 4px; }
.figure .kicker { display: block; margin-top: 10px; }

/* ---------- Tabs ---------- */
.tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  margin-bottom: 40px;
}
.tab {
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hairline grids & cards ---------- */
.hairline-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: var(--bg);
  padding: 32px 30px 34px;
  transition: background .3s var(--ease);
  text-decoration: none; color: inherit; display: block;
}
.section-alt .card { background: var(--surface); }
:root[data-theme="dark"] .section-alt .card { background: var(--bg-deep); }
.card::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover { background: var(--surface); }
:root[data-theme="light"] .card:hover { background: #FBFAF6; }
.card:hover::after { transform: scaleX(1); }
.card:hover .icon-badge { border-color: var(--accent); }
.card .icon-badge { margin-bottom: 26px; }
.card h3 { font-size: 23px; line-height: 1.2; margin-bottom: 10px; }
.card p { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.card .kicker { display: block; margin-bottom: 12px; color: var(--accent); }

/* work / engagement card */
.work-card { display: flex; flex-direction: column; min-height: 100%; padding: 36px 32px; }
.work-card .work-figure { display: flex; align-items: baseline; gap: 10px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.work-card .work-figure .num { font-size: 54px; line-height: 1; }
.work-card .work-figure .ic { color: var(--accent); align-self: center; }
.work-card .work-figure span.kicker { margin: 0; color: var(--faint); max-width: 150px; line-height: 1.5; letter-spacing: .1em; }
.work-card h3 { font-size: 22px; }
.work-card .card-foot { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.work-card .card-foot .ic { color: var(--accent); transition: transform .3s var(--ease); }
.work-card:hover .card-foot .ic { transform: translateX(4px); }

/* compact list rows (insights on home) */
.row-list { border-top: 1px solid var(--line); }
.row-item {
  display: grid; grid-template-columns: 160px 1fr auto; gap: 32px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: padding .3s var(--ease);
}
.row-item:hover { padding-left: 10px; }
.row-item h3 { font-size: 24px; line-height: 1.25; }
.row-item .kicker { color: var(--accent); }
.row-item .meta { font-size: 13px; color: var(--faint); margin-top: 6px; font-family: var(--font-body); }
.row-item .go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); transition: border-color .25s, background .25s; }
.row-item:hover .go { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- People ---------- */
.person { background: var(--bg); padding: 40px 40px 36px; }
.section-alt .person { background: var(--surface); }
:root[data-theme="dark"] .section-alt .person { background: var(--bg-deep); }
.person-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.monogram {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 26px; color: var(--accent);
  border: 1px solid var(--line); background: var(--accent-soft);
  flex-shrink: 0;
}
.person h3 { font-size: 30px; line-height: 1.1; }
.person .role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.person p { font-size: 15px; line-height: 1.75; color: var(--muted); }
.person details { margin-top: 22px; border-top: 1px solid var(--line-soft); }
.person summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 0; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text);
}
.person summary::-webkit-details-marker { display: none; }
.person summary .ic { color: var(--accent); transition: transform .3s var(--ease); }
.person details[open] summary .ic { transform: rotate(45deg); }
.creds { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.creds li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.creds li .ic { color: var(--accent); margin-top: 2px; }

/* values (careers) */
.value { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.value:first-child { padding-top: 0; }
.value h4 { font-size: 22px; margin-bottom: 4px; }
.value p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* ---------- Conviction band ---------- */
.conviction { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.conviction > div { padding: 44px 40px 44px 0; }
.conviction > div + div { padding-left: 40px; border-left: 1px solid var(--line-soft); }
.conviction h2 { font-size: clamp(30px, 3vw, 42px); }
.conviction p { font-size: 15px; line-height: 1.75; color: var(--muted); }
.conviction p strong { color: var(--text); font-weight: 500; }
.conviction .sig { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--accent); margin-top: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.quote {
  font-family: var(--font-display); font-style: italic; font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.2; color: var(--text); padding-left: 24px; border-left: 1.5px solid var(--accent);
  margin: 40px 0 14px;
}
.quote-attr { padding-left: 25px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.contact-lines { margin-top: 44px; display: grid; gap: 14px; }
.contact-lines a, .contact-lines span { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); text-decoration: none; }
.contact-lines .ic { color: var(--accent); }
.contact-lines a:hover { color: var(--text); }

.form { background: var(--surface); border: 1px solid var(--line); padding: 40px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; outline: none; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.input::placeholder { color: var(--faint); opacity: .8; }
.input:focus { border-color: var(--accent); }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.input { resize: vertical; min-height: 96px; }
.form-note { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--faint); }
.form-note .ic { color: var(--accent); }
.form-success { display: none; align-items: flex-start; gap: 14px; padding: 18px 20px; border: 1px solid var(--accent); background: var(--accent-soft); font-size: 14px; color: var(--text); }
.form-success .ic { color: var(--accent); margin-top: 1px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line-soft); padding: 64px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid var(--line-soft); }
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--muted); margin-top: 20px; max-width: 280px; line-height: 1.35; }
.footer-col h4 { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 24px; align-items: center; }
.footer-bottom a { color: var(--faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Interior page hero ---------- */
.page-hero { padding: calc(var(--nav-h) + 72px) 0 56px; border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden;
  background: radial-gradient(50% 80% at 90% 0%, var(--accent-soft), transparent 70%), var(--bg); }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.page-hero h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1; }

.crumbs { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; color: var(--faint); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .ic { width: 12px; height: 12px; opacity: .7; }
.crumbs span[aria-current] { color: var(--text); }

/* filter pills */
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.pill {
  font-family: var(--font-body); font-size: 12px; letter-spacing: .08em;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: all .2s var(--ease);
}
.pill:hover { color: var(--text); border-color: var(--muted); }
.pill[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

/* ---------- Article / case study ---------- */
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); }
.toc .kicker { display: block; margin-bottom: 16px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1.5px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--faint); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--accent); }
.toc .toc-meta { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: grid; gap: 12px; font-size: 13px; color: var(--muted); }
.toc .toc-meta span { display: inline-flex; gap: 10px; align-items: center; }
.toc .toc-meta .ic { color: var(--accent); }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(28px, 2.8vw, 38px); margin: 64px 0 18px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 24px; margin: 32px 0 12px; }
.prose p { font-size: 16.5px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }
.prose p strong { color: var(--text); font-weight: 500; }
.prose .callout-quote {
  font-family: var(--font-display); font-style: italic; font-size: 27px; line-height: 1.3; color: var(--text);
  border-left: 1.5px solid var(--accent); padding: 4px 0 4px 26px; margin: 40px 0;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

.meta-bar { display: flex; flex-wrap: wrap; gap: 40px; padding: 22px 0; border-top: 1px solid var(--line); margin-top: 36px; }
.meta-bar .kicker { display: block; margin-bottom: 4px; font-size: 10px; }
.meta-bar .v { font-size: 14px; color: var(--text); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 36px 0 8px; }
.kpi { background: var(--surface); padding: 24px 22px; }
.kpi .kicker { display: block; font-size: 10px; letter-spacing: .14em; margin-bottom: 14px; min-height: 28px; }
.kpi .num { font-size: 38px; line-height: 1; display: flex; align-items: center; gap: 8px; }
.kpi .num .ic { width: 20px; height: 20px; stroke-width: 1.6; }
.kpi .up { color: var(--data-blue); }
.kpi .down { color: var(--data-risk); }
.kpi p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 10px; }

.figure-block { margin: 32px 0 40px; border: 1px solid var(--line); background: var(--surface); }
.figure-block header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 24px 0; }
.figure-block h4 { font-size: 21px; }
.figure-block header p { font-size: 13px; color: var(--faint); line-height: 1.55; margin-top: 6px; max-width: 520px; }
.figure-block .fig-no { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.figure-block .chart { position: relative; height: 320px; padding: 16px 20px 20px; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 32px 0 40px; }
.figure-pair .figure-block { margin: 0; border: 0; }
.figure-pair .chart { height: 280px; }

.finding { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 26px; margin: 28px 0 40px; border: 1px solid var(--line); border-left: 2px solid var(--data-risk); background: var(--surface); }
.finding .ic { color: var(--data-risk); width: 24px; height: 24px; }
.finding .kicker { color: var(--data-risk); display: block; margin-bottom: 6px; }
.finding p { margin: 0 !important; font-size: 15px !important; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 28px 0 40px; counter-reset: step; }
.flow-step { background: var(--surface); padding: 22px 20px 24px; position: relative; }
.flow-step .step-no { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.flow-step .step-no .ic { color: var(--faint); }
.flow-step:last-child .step-no { color: var(--data-risk); }
.flow-step h5 { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.2; margin-bottom: 8px; }
.flow-step p { font-size: 13px !important; line-height: 1.6 !important; margin: 0 !important; }

.conclusion { background: var(--surface); border: 1px solid var(--line); padding: 40px 44px; margin-top: 56px; }
.conclusion h2 { margin-top: 0 !important; }
.conclusion ul { list-style: none; display: grid; gap: 16px; margin-top: 20px; }
.conclusion li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.conclusion li .ic { color: var(--accent); margin-top: 3px; }
.conclusion li strong { color: var(--text); font-weight: 500; }

/* sidebar boxes (case study) */
.side-box { border: 1px solid var(--line); background: var(--surface); padding: 26px 24px; margin-bottom: 16px; }
.side-box .kicker { display: block; margin-bottom: 14px; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.side-links { display: grid; }
.side-links a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.side-links a:last-child { border-bottom: 0; }
.side-links a .ic { color: var(--accent); flex-shrink: 0; }
.side-links a:hover { color: var(--text); }

.outcomes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); box-shadow: var(--shadow); }
.outcome { background: var(--surface); padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.outcome .num { font-size: 40px; line-height: 1; min-width: 92px; color: var(--text); }
.outcome .num em { font-style: normal; color: var(--accent); }
.outcome p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 0; margin: 20px 0 28px; border-top: 1px solid var(--line-soft); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-size: 20px; color: var(--accent); line-height: 1.4; }

/* CTA band */
.cta-band { text-align: center; padding: 88px 0; border-top: 1px solid var(--line-soft); background: radial-gradient(50% 120% at 50% 100%, var(--accent-soft), transparent 70%), var(--bg); }
.cta-band h2 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 18px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 34px; font-size: 16px; line-height: 1.7; }

.disclaimer { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; font-size: 13px; color: var(--faint); line-height: 1.6; max-width: 760px; }
.disclaimer .ic { color: var(--accent); margin-top: 1px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tabpanel { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
  .nav-actions .btn { display: none; }
}
@media (max-width: 960px) {
  :root { --gutter: 24px; --section-y: 72px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero-grid, .section-head, .contact-grid, .page-hero-grid, .article-layout { grid-template-columns: 1fr; gap: 36px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .cols-4 { grid-template-columns: 1fr 1fr; }
  .cols-3, .cols-2, .conviction, .figure-pair, .footer-top { grid-template-columns: 1fr; }
  .conviction > div, .conviction > div + div { padding: 32px 0; border-left: 0; }
  .conviction > div + div { border-top: 1px solid var(--line-soft); }
  .kpis, .flow { grid-template-columns: 1fr 1fr; }
  .row-item { grid-template-columns: 1fr auto; }
  .row-item > .kicker { grid-column: 1 / -1; }
  .toc { position: static; }
  .toc ol { display: none; }
  .form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cols-4 { grid-template-columns: 1fr; }
  .tabs { display: flex; overflow-x: auto; }
  .kpis, .flow { grid-template-columns: 1fr; }
  .figure .num { font-size: 38px; }
}

/* ---------- Portraits ---------- */
.person.has-photo { display: grid; grid-template-columns: 176px 1fr; gap: 36px; align-items: start; }
.person.has-photo .portrait { align-self: start; }
.person.has-photo > div { align-self: start; padding-top: 6px; }

/* round, feathered portrait — pinned to the top so it never shifts when Credentials opens */
.portrait {
  position: relative; margin: 0;
  width: 176px; height: 176px; border-radius: 50%;
  display: grid; place-items: center;
}

.portrait img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: 50% 50%;
  /* feather the edge so the photo dissolves into the page */
  -webkit-mask-image: radial-gradient(closest-side, #000 95%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 95%, transparent 100%);
  filter: grayscale(.55) saturate(.85) contrast(1.04);
  transition: filter .7s var(--ease), transform .9s var(--ease);
}
:root[data-theme="light"] .portrait img { filter: grayscale(.35) saturate(.9) contrast(1.02) brightness(1.03); }
.person.has-photo:hover .portrait img { filter: grayscale(0) saturate(1) contrast(1.03); transform: scale(1.03); }
.person.has-photo .person-head { margin-bottom: 16px; }

@media (max-width: 1100px) and (min-width: 961px) { .person.has-photo { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 560px) { .person.has-photo { grid-template-columns: 1fr; gap: 24px; } .portrait { width: 148px; height: 148px; } }

/* ---------- Footer: Atlas platforms ---------- */
.platforms { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); max-width: 300px; }
.platforms ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.platforms li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.platforms .pf-mark { width: 24px; height: 24px; flex: none; color: var(--accent); opacity: .85; }
.platforms .pf-lynx { display: inline-block; background: currentColor; -webkit-mask: url(../uploads/platforms/lynx-mark.png) center / contain no-repeat; mask: url(../uploads/platforms/lynx-mark.png) center / contain no-repeat; }
.platforms .pf-name { color: var(--text); letter-spacing: .04em; font-size: 15.5px; }

/* ---------- Nav: home icon ---------- */
.nav-links a.nav-home { display: inline-flex; align-items: center; padding: 4px 0; }
.nav-links a.nav-home::after { display: none; }
.nav-links a.nav-home svg { display: block; }

/* ---------- Team sections: hidden unless switched on (?team=on, or type "atlas") ---------- */
html:not(.show-team) [data-team] { display: none !important; }

/* ---------- Locked documents: "Available upon request" ---------- */
.lock-tag {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); text-decoration: none;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.lock-tag .ic { color: var(--accent); width: 14px; height: 14px; }
.lock-tag:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.is-locked { cursor: default; }
.row-item.is-locked:hover { padding-left: 0; }
.work-card.is-locked .card-foot { padding-top: 22px; }
.work-card.is-locked h3, .card.article.is-locked h3 { color: var(--text); }
.locked-link { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--faint); line-height: 1.4; }
.locked-link:last-child { border-bottom: 0; }
.locked-link .ic { color: var(--accent); flex-shrink: 0; }
