/* Palette from William's Radian Brand Visualizer: #003366, #6B8E23, #F5F5F5 */
:root {
  --navy: #003366;
  --navy-900: #001f3d;
  --navy-700: #0d4677;
  --navy-300: #7f99b3;
  --navy-100: #d9e2ec;
  --navy-50: #eef2f7;
  --olive: #6B8E23;
  --olive-700: #55711c;
  --olive-300: #b5c98a;
  --olive-100: #e6edd6;
  --paper: #F5F5F5;
  --white: #ffffff;
  --ink: #18222d;
  --muted: #586473;
  --line: #dce2e8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 31, 61, .06), 0 8px 24px rgba(0, 31, 61, .07);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 31, 61, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav__inner { width: min(1160px, 100% - 48px); margin-inline: auto; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brand__mark {
  font-family: var(--serif); font-size: 15px; letter-spacing: .04em;
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1.5px solid var(--olive-300); border-radius: 50%;
}
.brand__name { font-family: var(--serif); font-size: 19px; }
.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__links a {
  color: rgba(245, 245, 245, .82); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav__links a.nav__cta { background: var(--olive); color: var(--white); margin-left: 6px; padding-inline: 18px; }
.nav__links a.nav__cta:hover { background: var(--olive-700); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav__toggle span:not(.sr) { display: block; height: 2px; background: var(--paper); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15.5px/1 var(--sans); letter-spacing: .01em;
  padding: 14px 24px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--olive { background: var(--olive); color: var(--white); }
.btn--olive:hover { background: var(--olive-700); }
.btn--ghost { color: var(--paper); border-color: rgba(245, 245, 245, .45); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, .06); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-900); }
.btn--outline { color: var(--navy); border-color: var(--navy-300); background: var(--white); }
.btn--outline:hover { border-color: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 10%, #0a4a82 0%, var(--navy) 45%, var(--navy-900) 100%); color: var(--paper); }
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(110deg, transparent 10%, #000 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; padding: 88px 0 96px; }
.hero h1 { color: var(--white); font-size: clamp(2.8rem, 6.4vw, 4.9rem); letter-spacing: -.01em; margin-bottom: .3em; }
.hero__lede { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.5; max-width: 34ch; color: rgba(245, 245, 245, .92); margin-bottom: .6em; font-weight: 300; }
.hero__sub { color: var(--olive-300); font-weight: 500; margin-bottom: 1.8em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin: 0; border-top: 1px solid rgba(245, 245, 245, .18); padding-top: 22px; justify-content: start; }
.stats div { padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(245, 245, 245, .18); }
.stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(245, 245, 245, .6); margin-bottom: 4px; }
.stats dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; color: var(--white); }
.hero__photo { margin: 0; position: relative; justify-self: end; width: min(380px, 100%); }
.hero__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--olive); border-radius: var(--radius);
}
.hero__photo img { position: relative; border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 846 / 1100; object-fit: cover; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--tint { background: var(--white); }
.section__head { max-width: 820px; margin-bottom: 48px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-700); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.eyebrow--light { color: var(--olive-300); }
.eyebrow .num { font-family: var(--serif); font-weight: 400; letter-spacing: 0; font-size: 14px; padding: 2px 9px; border: 1px solid currentColor; border-radius: 999px; }
.lead { font-size: 1.15rem; color: var(--muted); line-height: 1.7; }

/* ---------- Bio ---------- */
.bio { display: grid; grid-template-columns: 1.35fr .9fr; gap: 64px; align-items: start; }
.bio__text p { font-size: 1.1rem; line-height: 1.8; }
.bio__text h2 + p::first-letter { font-family: var(--serif); float: left; font-size: 3.6em; line-height: .9; padding: 6px 10px 0 0; color: var(--navy); }
.bio__quote { background: var(--navy); color: var(--paper); border-radius: var(--radius); padding: 40px 36px; position: relative; box-shadow: var(--shadow); margin-top: 52px; }
.bio__mark { font-family: var(--serif); font-size: 110px; line-height: .6; color: var(--olive); display: block; height: 44px; }
.bio__quote blockquote { margin: 0 0 28px; font-family: var(--serif); font-size: 1.65rem; line-height: 1.35; color: var(--white); }
.traits { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.traits li { font-size: 13px; font-weight: 500; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; background: rgba(107, 142, 35, .25); color: #dfe9c8; }

/* ---------- Video ---------- */
.video { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); max-width: 980px; }
.video video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ---------- Sources ---------- */
.sources { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sources li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 8px; font-size: 14px; color: var(--muted); }
.sources strong { background: var(--navy); color: var(--white); border-radius: 999px; padding: 3px 10px; margin-right: 8px; font-size: 12.5px; letter-spacing: .04em; }

/* ---------- CER blocks ---------- */
.cer { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 40px; margin-bottom: 36px; box-shadow: var(--shadow); }
.cer__head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.cer__tag { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-700); margin-bottom: 10px; }
.cer__head h3 { margin: 0; }
.cer__body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.cer__body--two { grid-template-columns: 1fr 1fr; }
.cer__side { display: grid; gap: 20px; }
.cer__foot { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; margin-top: 24px; align-items: stretch; }

.card { border-radius: var(--radius); padding: 24px; background: var(--paper); }
.card--chart { background: var(--white); border: 1px solid var(--line); }
.card__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700); margin-bottom: 14px; }
.card--reason p { margin-bottom: .8em; }
.card--reason p:last-child { margin-bottom: 0; }
.card--reason q, .card--quote q { font-style: italic; color: var(--navy); }
.card--quote { background: var(--navy-50); border-left: 4px solid var(--navy); }
.card--quote q { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }

.strategy { background: var(--olive-100); border-left: 4px solid var(--olive); border-radius: var(--radius); padding: 22px 24px; }
.strategy__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-700); margin-bottom: 8px; }
.strategy p { margin: 0; }
.strategy strong { color: var(--navy-900); }

.kpis { display: grid; gap: 12px; }
.kpi { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--navy-50); }
.kpi__n { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); white-space: nowrap; }
.kpi__t { font-size: 15px; color: var(--muted); line-height: 1.45; }

.photo-card { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); color: var(--paper); }
.photo-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.static-key { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--olive-700); padding: 8px 4px; }
.photo-card figcaption { padding: 16px 20px; font-size: 15px; line-height: 1.5; }
.photo-card strong { color: var(--olive-300); }

/* Conclusion */
.cer--wrap { background: linear-gradient(180deg, var(--white), var(--white) 60%, var(--navy-50)); }
.conclusion { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.takeaways { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 12px; }
.takeaways li { counter-increment: t; position: relative; padding: 14px 16px 14px 56px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.takeaways li::before { content: counter(t); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--white); font: 500 14px/28px var(--sans); text-align: center; }
.steps { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--olive-300); display: grid; gap: 18px; }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; left: -26px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 4px var(--olive-100); }
.steps span { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-700); }

/* ---------- Charts ---------- */
.chart { width: 100%; position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart--square { max-width: 560px; margin-inline: auto; }
.chart-note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.chart-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font: 500 13.5px/1 var(--sans); color: var(--muted); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: all .2s;
}
.chip:hover { border-color: var(--navy-300); color: var(--navy); }
.chip.is-on { border-color: var(--navy); color: var(--navy); background: var(--navy-50); }
.key { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.key--self { background: var(--olive); }
.key--rev { background: var(--navy); }
.key--avg { background: var(--white); border: 2px solid var(--navy); transform: rotate(45deg); border-radius: 2px; }
.key--sw { border-radius: 3px; }

.pt { cursor: pointer; transition: opacity .3s, transform .3s; transform-box: fill-box; transform-origin: center; }
.pt:hover, .pt:focus { transform: scale(1.25); outline: none; }
.series-off { opacity: 0; pointer-events: none; }
.quad-label { font: 500 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.axis-text { font: 11px var(--sans); fill: var(--muted); }
.axis-title { font: 500 12px var(--sans); fill: var(--navy-700); letter-spacing: .04em; }
.bar { transition: opacity .3s, width .7s cubic-bezier(.2, .8, .2, 1), x .7s cubic-bezier(.2, .8, .2, 1); cursor: pointer; }
.bar-label { font: 13px var(--sans); fill: var(--ink); }
.bar-value { font: 500 12.5px var(--sans); fill: var(--navy); }
.dim { opacity: .22; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Spectrums */
.spectrums { display: grid; gap: 6px; }
.spec { border: 1px solid transparent; border-radius: 12px; padding: 10px 12px 12px; cursor: pointer; background: none; text-align: left; font: inherit; color: inherit; width: 100%; transition: background .2s, border-color .2s; }
.spec:hover, .spec[aria-expanded="true"] { background: var(--navy-50); border-color: var(--navy-100); }
.spec__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.spec__name { font-weight: 700; font-size: 14.5px; color: var(--navy-900); }
.spec__pref { font-size: 12.5px; color: var(--olive-700); font-weight: 500; text-align: right; }
.spec__track { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--navy-100), var(--olive-100)); }
.spec__me, .spec__team { position: absolute; top: 50%; transition: left 1s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.spec__me { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--olive); border: 3px solid var(--white); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); z-index: 2; }
.spec__team { width: 12px; height: 12px; margin: -6px 0 0 -6px; transform: rotate(45deg); background: var(--white); border: 2px solid var(--navy); z-index: 1; }
.spectrums.no-team .spec__team { opacity: 0; }
.spec__ends { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 7px; }
.spec__ends span:last-child { text-align: right; }
.spec__detail { display: none; font-size: 14px; color: var(--ink); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--navy-100); }
.spec[aria-expanded="true"] .spec__detail { display: block; }

/* Tooltip */
.tip {
  position: fixed; z-index: 80; pointer-events: none; max-width: 260px;
  background: var(--navy-900); color: var(--paper); font-size: 13.5px; line-height: 1.45;
  padding: 10px 12px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translate(-50%, calc(-100% - 14px));
}
.tip strong { color: var(--white); display: block; margin-bottom: 2px; }
.tip em { color: var(--olive-300); font-style: normal; }

/* ---------- Portfolio ---------- */
.work { display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.work:first-of-type { border-top: 0; padding-top: 0; }
.work__meta h3 { margin-bottom: .6em; }
.work__meta p { color: var(--ink); }
.work__meta p strong { color: var(--navy); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font: 500 15.5px var(--sans); color: var(--olive-700);
  text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; border-bottom: 1.5px solid var(--olive-300);
}
.link-arrow::after { content: "\2192"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.work__embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.work--wide { grid-template-columns: 1fr; gap: 24px; }
.work--wide .work__meta { display: grid; grid-template-columns: .8fr 1.2fr; gap: 0 40px; }
@media (max-width: 1020px) { .work--wide .work__meta { grid-template-columns: 1fr; } }
.work__embed--tableau { overflow-x: auto; }
.work__embed--tableau iframe { width: 100%; min-width: 1100px; height: 900px; border: 0; }
@media (min-width: 1190px) { .work__embed--tableau iframe { min-width: 0; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { background: var(--navy); color: var(--paper); border-radius: var(--radius); padding: 28px 22px; }
.fact:nth-child(2) { background: var(--olive-700); }
.fact:nth-child(3) { background: var(--navy-700); }
.fact__n { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1.1; color: var(--white); margin-bottom: 8px; }
.fact__t { font-size: 14.5px; line-height: 1.45; color: rgba(245, 245, 245, .85); }
.portfolio__end { margin-top: 12px; padding: 28px 32px; background: var(--paper); border-radius: var(--radius); border-left: 4px solid var(--navy); }
.portfolio__end p { margin: 0; font-size: 1.08rem; }

/* ---------- Resume ---------- */
.resume__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.resume { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; max-width: 900px; margin-inline: auto; }
.resume__pdf { width: 100%; height: 1120px; border: 0; }
.resume__img { display: none; width: 100%; height: auto; }

/* ---------- Contact ---------- */
.contact { background: var(--navy-900); color: var(--paper); }
.contact h2 { color: var(--white); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__copy > p { color: rgba(245, 245, 245, .85); font-size: 1.1rem; max-width: 44ch; }
.contact__links { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact__links a {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  color: var(--white); text-decoration: none; transition: background .2s, border-color .2s;
}
.contact__links a:hover { background: rgba(107, 142, 35, .18); border-color: var(--olive); }
.contact__links svg { width: 26px; height: 26px; fill: var(--olive-300); flex: none; }
.contact__links small { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 245, 245, .6); }
.form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.form h3 { margin: 0 0 4px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--navy-900); }
.form input, .form textarea {
  font: 16px var(--sans); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); transition: border-color .2s, background .2s; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.form .invalid { border-color: #b3261e; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(245, 245, 245, .6); border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; }
.footer a { color: var(--olive-300); text-decoration: none; }

/* ---------- Viewer ---------- */
.viewer { width: min(980px, 94vw); height: 90vh; padding: 0; border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .4); }
.viewer::backdrop { background: rgba(0, 20, 40, .7); backdrop-filter: blur(3px); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 22px; background: var(--navy); color: var(--white); }
.viewer__bar > div { display: flex; align-items: center; gap: 14px; }
.viewer__open { color: var(--olive-300); font-size: 14px; }
.viewer__close { background: rgba(255, 255, 255, .1); color: var(--white); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.viewer iframe { flex: 1; width: 100%; border: 0; background: var(--paper); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding: 64px 0 72px; }
  .hero__photo { justify-self: start; width: min(300px, 70%); order: -1; }
  .bio, .cer__body, .cer__body--two, .cer__foot, .conclusion, .work, .contact__inner { grid-template-columns: 1fr; }
  .bio { gap: 32px; }
  .bio__quote { margin-top: 0; }
  .stats { grid-template-columns: repeat(2, auto); row-gap: 18px; }
  .stats div:nth-child(2) { border-right: 0; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--navy-900); padding: 12px 24px 24px; gap: 4px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; }
  .nav__links a.nav__cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .cer { padding: 24px 18px; border-radius: 16px; }
  .card { padding: 18px; }
  .facts { grid-template-columns: 1fr; }
  .resume__pdf { display: none; }
  .resume__img { display: block; }
  .kpi { grid-template-columns: 76px 1fr; gap: 12px; }
  .kpi__n { font-size: 1.35rem; }
  .work__embed--tableau iframe { min-height: 520px; aspect-ratio: auto; }
  .form { padding: 24px; }
  .stats dd { font-size: 1.15rem; }
  .stats div { padding-right: 18px; margin-right: 18px; }
}
