:root {
  --bg: #ffffff;
  --tint: #eef1f5;
  --ink: #16202e;
  --muted: #475263;
  --line: #e2e5ea;
  --navy: #0b2545;
  --navy-2: #13315c;
  --gold: #b08d57;
  --gold-2: #cfae78;
  --max: 1160px;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --green: #2e8b57;
  --shadow: 0 1px 2px rgba(11,37,69,.06), 0 8px 24px -12px rgba(11,37,69,.18);
  --line-strong: #cfd6e0;
  --shadow-card: 0 1px 2px rgba(11,37,69,.05), 0 6px 18px -12px rgba(11,37,69,.16);
  --on-navy: #c3cddd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .45em; letter-spacing: -0.01em; color: var(--navy); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.wrap { max-width: calc(var(--max) + 40px); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.sel { user-select: all; font-weight: 600; color: var(--navy); }
.email-line { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.email-big { margin: 0; font-family: var(--serif); font-size: 1.35rem; text-align: center; }
.email-big .sel { color: #fff; }
button.btn { font-family: inherit; cursor: pointer; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 200; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--navy); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 500; padding: 8px 12px; transition: color .2s; }
.nav a:hover { color: var(--navy); }
.nav .nav-cta { background: var(--navy); color: #fff; margin-left: 8px; padding: 9px 18px; }
.nav .nav-cta:hover { background: var(--navy-2); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--navy); padding: 8px 14px; font: 600 .9rem var(--sans); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin: 12px 0 0; text-align: center; border: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
:where(button.btn) { background: transparent; font-family: inherit; cursor: pointer; } /* drop the browser's grey button fill */
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9c7b48; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e6ebf2; }
.case-doc { display: inline-flex; gap: 6px; align-self: flex-start; margin-top: 18px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.case.dark .case-doc { color: var(--gold); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 44px 0 48px; background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.hero-chart { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); margin-bottom: 14px; }
.hero-line { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--navy-2); line-height: 1.35; max-width: 30ch; margin-bottom: 20px; padding-left: 18px; border-left: 3px solid var(--gold); }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 56ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.status { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: .88rem; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.hero-photo { position: relative; justify-self: center; width: min(340px, 100%); }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); z-index: 0; }
.hero-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; box-shadow: var(--shadow); }
.hero-photo figcaption { position: relative; z-index: 1; margin-top: 26px; font: .74rem var(--sans); color: var(--muted); letter-spacing: .04em; }
@media (max-width: 900px) {
  .hero { padding: 32px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { width: min(240px, 66%); }
  .hero-photo img { aspect-ratio: 1 / 1; object-position: center 45%; }
}

/* Key figures */
.figures { background: var(--navy); color: #fff; padding: 28px 0 30px; }
.figures-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.figures-grid div { padding: 6px 28px; border-left: 1px solid rgba(255,255,255,.16); }
.figures-grid div:first-child { border-left: 0; padding-left: 0; }
.figures-grid b { display: block; font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--gold-2); line-height: 1.1; }
.figures-grid span { font-size: .88rem; color: var(--on-navy); }
@media (max-width: 800px) {
  .figures-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .figures-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* Sections */
section { padding: 48px 0; }
.tint { background: var(--tint); }
.label { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.label::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.label.light { color: var(--gold-2); }
.label.light::before { background: var(--gold-2); }
.head { max-width: 780px; margin-bottom: 24px; }
.head h2 { margin-bottom: 10px; }
.head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* About */

/* Experience */
.jobs { border-top: 2px solid var(--navy); }
.job { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.when { font-family: var(--sans); font-weight: 500; color: var(--navy); margin: 0 0 4px; font-size: .86rem; }
.where { color: var(--muted); font-size: .9rem; margin: 0; }
.job h3 { font-size: 1.5rem; margin-bottom: 4px; }
.role { color: var(--gold); font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.job ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.job li::marker { color: var(--gold); }
.job li strong { color: var(--ink); }
@media (max-width: 800px) { .job { grid-template-columns: 1fr; gap: 10px; } }

/* Agents */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.agent { position: relative; padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background .25s; }
.agent:hover { background: var(--tint); }
.metric { font-family: var(--sans); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.02em; color: var(--navy); line-height: 1.1; margin-bottom: 10px; }
.metric span { font: 500 .74rem var(--sans); color: var(--gold); letter-spacing: .04em; text-transform: uppercase; margin-left: 6px; }
.agent h3 { font-size: 1.15rem; margin-bottom: 8px; }
.agent p:last-child { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 980px) { .agents { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .agents { grid-template-columns: 1fr; } }

/* Selected work */
.tag { font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.visit { display: inline-flex; gap: 8px; margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .92rem; color: var(--navy); }
a:hover .visit { color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 0; }
.chips li { font-size: .76rem; font-weight: 600; padding: 4px 10px; border: 1px solid var(--line); color: var(--muted); background: #fff; }

.featured { display: grid; gap: 20px; margin-bottom: 20px; }
.feature { display: grid; grid-template-columns: 1.3fr 1fr; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.feature:nth-child(even) { grid-template-columns: 1fr 1.3fr; }
.feature:nth-child(even) .feature-img { order: 2; }
.feature:hover, .card[href]:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(11,37,69,.06), 0 18px 40px -16px rgba(11,37,69,.3); }
.feature-img { background: var(--tint); overflow: hidden; min-height: 280px; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.feature-body { padding: 30px 32px; display: flex; flex-direction: column; }
.feature-body h3 { font-size: 1.9rem; }
.feature-body > p:not(.tag) { color: var(--muted); }
@media (max-width: 860px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-img { order: 0; }
  .feature-img { min-height: 0; aspect-ratio: 16 / 10; }
  .feature-body { padding: 28px; }
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.25rem; }
.card-body > p:not(.tag) { color: var(--muted); font-size: .95rem; margin: 0; }
.tile { display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #0b2545, #1d4275); }
.tile.vc { background: linear-gradient(135deg, #1b2a3f, #3b4f6b); }
.flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.flow span { padding: 8px 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(207,174,120,.6); color: #fff; font-size: .85rem; font-weight: 600; }
.flow i { color: var(--gold-2); font-style: normal; font-weight: 700; }
.tile.sig { background: #fff; place-items: center start; padding: 24px 26px; }
.sig-mock { border-left: 3px solid #d31f3a; padding-left: 12px; font-family: Arial, Helvetica, sans-serif; font-size: 11px; line-height: 1.55; color: #0e1e38; }
.sig-mock p { margin: 0; }
.sig-mock .sig-name { font-family: Georgia, serif; font-size: 16px; font-weight: 700; color: #012c61; }
.sig-mock em { color: #d31f3a; font-style: normal; }
.sig-mock b { color: #005095; }
.sig-mock .sig-sub { color: #5a6a85; }
.sig-links { margin-top: 6px !important; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #005095; font-weight: 700; }
.sig-btn { background: #012c61; color: #fff; padding: 2px 8px; border-radius: 3px; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Case studies */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case { padding: 30px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.case > p:not(.tag) { color: var(--muted); }
.case.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.case.dark h3 { color: #fff; }
.case.dark > p:not(.tag) { color: var(--on-navy); }
.case.dark .tag { color: var(--gold-2); }
.case .slide { margin-bottom: 22px; border: 1px solid var(--line); }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: auto 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.case.dark .nums { border-top-color: rgba(255,255,255,.16); }
.nums dt { font-family: var(--sans); font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 500; color: var(--navy); line-height: 1.1; }
.case.dark .nums dt { color: var(--gold-2); }
.nums dd { margin: 4px 0 0; font-size: .82rem; color: var(--muted); }
.case.dark .nums dd { color: var(--on-navy); }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } .case { padding: 28px; } }

/* Leadership band */
.band { position: relative; overflow: hidden; color: #fff; padding: 64px 0 48px; }
.band-bg { position: absolute; inset: -12% 0; background: url(images/golf-sunset.jpg) center / cover; z-index: -2; will-change: transform; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,37,69,.92) 0%, rgba(11,37,69,.72) 55%, rgba(11,37,69,.35) 100%); }
.band h2 { color: #fff; max-width: 18ch; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.band-inner > p:not(.label) { max-width: 60ch; color: #dbe2ec; font-size: 1.05rem; }
.band-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid rgba(255,255,255,.25); max-width: 860px; }
.band-stats div { padding: 22px 24px 0 0; }
.band-stats b { display: block; font-family: var(--sans); font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 500; color: var(--gold-2); line-height: 1.1; }
.band-stats span { font-size: .88rem; color: var(--on-navy); }
@media (max-width: 700px) { .band-stats { grid-template-columns: 1fr 1fr; } }

/* Gallery */

/* Education */
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.school { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.muted { color: var(--muted); margin: 0 0 6px; }
.small-label { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin: 0 0 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.pills:last-child { margin-bottom: 0; }
.pills li { padding: 7px 14px; background: #fff; border: 1px solid var(--line); font-size: .88rem; }
.pills.strong li { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
@media (max-width: 860px) { .edu { grid-template-columns: 1fr; gap: 36px; } }

/* Contact */
.contact { background: var(--navy); color: #fff; padding: 56px 0; }
.contact-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.contact h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.contact p:not(.label) { color: var(--on-navy); max-width: 52ch; margin: 0; font-size: 1.05rem; }
.contact-actions { display: grid; gap: 12px; justify-items: stretch; max-width: 340px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } .contact-actions { justify-self: start; } }

.site-footer { background: #081b33; color: #8f9bb0; font-size: .85rem; padding: 22px 0; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Ticker */
.ticker { background: #081b33; color: var(--on-navy); overflow: hidden; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--sans); font-size: .8rem; }
.ticker-track { display: inline-flex; animation: tick 50s linear infinite; }
.ticker-track span { padding: 11px 26px; border-right: 1px solid rgba(255,255,255,.08); }
.ticker-track b { color: #8f9bb0; font-weight: 500; margin-right: 6px; letter-spacing: .06em; }
.ticker-track i { font-style: normal; color: #4cc38a; margin-left: 4px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Sparklines in the key figures */
.figures-grid div { position: relative; }
.spark { display: block; width: 96px; height: 30px; margin-bottom: 6px; overflow: visible; }
.spark path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.spark-line { stroke: rgba(207,174,120,.45); stroke-width: 1.5; }
.spark-glow { stroke: var(--gold-2); stroke-width: 2; stroke-dasharray: 18 140; animation: flow 3.2s linear infinite; filter: drop-shadow(0 0 3px rgba(207,174,120,.8)); }
.figures-grid div:nth-child(2) .spark-glow { animation-delay: -.8s; }
.figures-grid div:nth-child(3) .spark-glow { animation-delay: -1.6s; }
.figures-grid div:nth-child(4) .spark-glow { animation-delay: -2.4s; }
@keyframes flow { from { stroke-dashoffset: 158; } to { stroke-dashoffset: 0; } }

/* Agent status lights */
.live { display: inline-flex; align-items: center; gap: 7px; font: 500 .7rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; padding: 3px 9px; border: 1px solid var(--line); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5b5; }
.live.on { color: var(--green); border-color: rgba(46,139,87,.3); background: rgba(46,139,87,.06); }
.live.on i { background: var(--green); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46,139,87,.55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(46,139,87,0); } }
.agent::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--gold), var(--navy-2)); transition: width .5s ease; }
.agent:hover::after { width: 100%; }

/* Motion on project cards and photos */
.feature, .card { position: relative; }
.feature::after, .card[href]::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid transparent; background: linear-gradient(110deg, transparent 30%, rgba(207,174,120,.9) 50%, transparent 70%) border-box; background-size: 250% 100%; -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .3s; }
.feature:hover::after, .card[href]:hover::after { opacity: 1; animation: sheen 1.6s linear infinite; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.feature-img img, .card-img img, .gallery img, .about-photos img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature-img img, .card:hover .card-img img, .gallery figure:hover img, .about-photos figure:hover img { transform: scale(1.04); }
.flow span { animation: pulseBox 4.5s ease-in-out infinite; }
.flow span:nth-of-type(2) { animation-delay: 1.5s; }
.flow span:nth-of-type(3) { animation-delay: 3s; }
@keyframes pulseBox { 0%, 70%, 100% { border-color: rgba(207,174,120,.5); background: rgba(255,255,255,.08); } 20% { border-color: var(--gold-2); background: rgba(207,174,120,.22); } }
.btn-primary, .btn-gold { position: relative; overflow: hidden; }
.btn-primary::after, .btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); transform: translateX(-100%); animation: shine 4s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }


/* ---------- Section breaks and card contrast ---------- */
main > section, main > .orgs, main > .ticker { border-top: 1px solid var(--line); }
main > .figures, main > .band, main > .contact, main > .dark-sec { border-top: 0; }
.card, .feature, .case:not(.dark) { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.head h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 16px; background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); background-size: 200% 100%; animation: bar 4s linear infinite; }
.dark-sec .head h2::after, .band h2::after, .contact h2::after { display: none; }
@keyframes bar { to { background-position: -200% 0; } }

/* Reading progress */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

/* Hero headshot with a rotating gold ring */
.hero-photo::before { display: none; }
.photo-frame { position: relative; padding: 6px; border-radius: 50%; aspect-ratio: 1; }
.photo-frame::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--gold), transparent 30%, var(--navy-2) 50%, transparent 70%, var(--gold)); animation: spin 8s linear infinite; }
.photo-frame img { position: relative; z-index: 1; width: 100%; height: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: center 30%; border: 6px solid #fff; box-shadow: var(--shadow); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-photo figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; }
.hero-photo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 1.8s ease-out infinite; }
@media (max-width: 900px) { .hero-photo img { aspect-ratio: 1; } }

/* Organizations strip */
.orgs { background: #fff; padding-block: 20px; display: flex; align-items: center; gap: 24px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.orgs-label { margin: 0; flex: none; font: 500 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.orgs-mask { overflow: hidden; flex: 1; min-width: 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.orgs-track { display: inline-flex; white-space: nowrap; animation: tick 36s linear infinite; }
.orgs-track span { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: #8a96a8; padding: 0 30px; transition: color .3s; }
.orgs-track span:hover { color: var(--navy); }
@media (max-width: 700px) { .orgs { flex-direction: column; align-items: stretch; gap: 10px; } .orgs-label { text-align: center; } }

/* AI agents: dark band with a glowing grid */
.dark-sec { position: relative; overflow: hidden; background: #060d1a; color: #c9d2e0; }
.dark-sec .wrap { position: relative; z-index: 1; }
.dark-sec h2, .dark-sec h3 { color: #fff; }
.dark-sec .head p { color: #9fabbe; }
.dark-sec .label { color: var(--gold-2); }
.dark-sec .label::before { background: var(--gold-2); }
.grid-glow { position: absolute; inset: -40px; z-index: 0; background-image: linear-gradient(rgba(207,174,120,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(207,174,120,.09) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 65%); mask: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 65%); animation: gridmove 14s linear infinite; }
.dark-sec::before { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(207,174,120,.22), transparent 65%); animation: breathe 7s ease-in-out infinite; }
@keyframes gridmove { to { transform: translate(40px, 40px); } }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.dark-sec .agents { border-color: rgba(255,255,255,.1); }
.dark-sec .agent { background: radial-gradient(420px circle at var(--x, -200px) var(--y, -200px), rgba(207,174,120,.16), transparent 45%), rgba(255,255,255,.025); border-color: rgba(255,255,255,.1); }
.dark-sec .agent:hover { background-color: rgba(255,255,255,.05); }
.dark-sec .metric { color: #fff; }
.dark-sec .agent p:last-child { color: #9fabbe; }
.dark-sec .live { border-color: rgba(255,255,255,.14); color: #9fabbe; }
.dark-sec .live.on { color: #5fd197; border-color: rgba(95,209,151,.35); background: rgba(95,209,151,.08); }
.dark-sec .live.on i { background: #5fd197; }
@keyframes floaty { 50% { transform: translateY(-3px); } }

/* Apple-style showcase: images ease up in scale as they scroll in, and tilt with the cursor */
.feature-img { perspective: 900px; }
.feature-img img { transform: scale(var(--s, 1)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; will-change: transform; }
.feature:hover .feature-img img { transform: scale(calc(var(--s, 1) * 1.03)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* Gallery: one large photo, four squares, two wide */


/* ---------- Bento grid in About ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(132px, auto); gap: 14px; }
.bt { position: relative; overflow: hidden; margin: 0; padding: 22px; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); transition: transform .3s; }
.bt:hover { transform: translateY(-3px); }
.bt h3 { font-size: 1.12rem; margin-bottom: 6px; }
.bt p { margin: 0; color: var(--muted); font-size: .94rem; }
.bt .num { display: block; font-family: var(--serif); color: var(--gold); font-size: 1.3rem; margin-bottom: 8px; }
.bt .big { font-family: var(--sans); font-weight: 500; font-size: clamp(2.4rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.bt.navy { background: var(--navy); border-color: var(--navy); }
.bt.navy .big { color: var(--gold-2); }
.bt.navy p:not(.big) { color: var(--on-navy); }
.bt.gold { background: linear-gradient(135deg, #c9a66b, #a9844d); border-color: #a9844d; }
.bt.gold .big { color: #fff; }
.bt.gold p:not(.big) { color: rgba(255,255,255,.92); }
.bt.photo { padding: 0; }
.bt.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.bt.photo:hover img { transform: scale(1.06); }
.bt.photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; background: rgba(255,255,255,.94); font: 500 .72rem var(--sans); color: var(--navy); }

/* ---------- Moving photo reel ---------- */
.reel-wrap { display: grid; gap: 14px; }
.reel { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.reel-track { display: flex; gap: 14px; width: max-content; animation: tick 55s linear infinite; }
.reel.rev .reel-track { animation-direction: reverse; animation-duration: 62s; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel figure { position: relative; margin: 0; width: 300px; height: 210px; flex: none; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 10px 24px -14px rgba(11,37,69,.4); }
.reel figure:nth-child(odd) { transform: rotate(-1deg); }
.reel figure:nth-child(even) { transform: rotate(1deg) translateY(6px); }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.reel figure:hover img { transform: scale(1.07); }
.reel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 9px; color: #fff; font: 500 .74rem var(--sans); background: linear-gradient(transparent, rgba(6,13,26,.85)); }
@media (max-width: 700px) { .reel figure { width: 220px; height: 160px; } }

/* ---------- Large headshot with the stat cards in a row beneath it ---------- */
.hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.hero-photo { width: min(500px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "photo photo photo" "cap cap cap" "left left right"; gap: 14px; align-items: stretch; }
.photo-frame { grid-area: photo; width: min(420px, 100%); justify-self: center; }
.hero-photo figcaption { grid-area: cap; margin-top: 4px; }
.float-col { display: flex; gap: 14px; }
.float-col.left { grid-area: left; }
.float-col.right { grid-area: right; }
.float-col .float { flex: 1; }
.float { position: relative; padding: 12px 14px; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 16px 32px -18px rgba(11,37,69,.45); animation: bob 6s ease-in-out infinite; }
.float b { display: block; font: 500 1.25rem var(--sans); color: var(--navy); line-height: 1.1; }
.float span { display: block; font-size: .74rem; line-height: 1.35; color: var(--muted); margin-top: 4px; }
.float.f1 b { color: var(--gold); }
.float.f2 { background: var(--navy); border-color: var(--navy); animation-delay: -2s; }
.float.f2 b { color: var(--gold-2); }
.float.f2 span { color: var(--on-navy); }
.float.f3 { animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { width: min(440px, 100%); gap: 10px; }
  .photo-frame { width: min(300px, 82%); }
  .float { animation: none; padding: 10px; }
  .float b { font-size: 1.05rem; }
}

/* Profile panel: the tagline and intro sit on solid white so they read clearly over the chart */
.hero-bubble { position: relative; padding: 22px 26px 24px; margin: 6px 0 2px; background: #fff; border: 1px solid #d5dbe4; border-top: 3px solid var(--navy); box-shadow: 0 20px 44px -26px rgba(11,37,69,.5); max-width: 620px; }
.bubble-label { margin: 0 0 10px; font: 500 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero-bubble .hero-line { font-family: var(--serif); font-style: normal; font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.35; color: var(--navy); border-left: 0; padding-left: 0; max-width: none; margin: 0 0 12px; }
.hero-bubble .lead { margin: 0; color: #3f4a5a; font-size: 1rem; line-height: 1.7; }

/* ---------- Section dividers ---------- */
.sec-break { position: relative; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--navy); overflow: hidden; border-top: 2px solid var(--gold); border-bottom: 1px solid rgba(207,174,120,.4); }
.sec-break::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(207,174,120,.10) 14px 15px); animation: slide-stripes 12s linear infinite; }
.sec-break::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(207,174,120,.7) 20%, rgba(207,174,120,.7) 80%, transparent); }
.sec-break span { position: relative; z-index: 1; padding: 3px 16px; background: var(--navy); border: 1px solid var(--gold); color: var(--gold-2); font: 500 .68rem var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.sec-break span::before, .sec-break span::after { content: "◆"; font-size: .5rem; margin: 0 10px; vertical-align: 2px; color: var(--gold); }
@keyframes slide-stripes { to { background-position: 160px 0; } }
main > .sec-break + section { border-top: 0; }

/* Six agent cards share one row height */
.agents { grid-auto-rows: 1fr; }
.agent { display: flex; flex-direction: column; }
.agent .live { align-self: flex-start; }
@media (min-width: 621px) { .agent h3 { min-height: 2.6em; display: flex; align-items: flex-end; } }

/* ---------- Logo from the business card ---------- */
:root { --logo-accent: var(--gold); --logo-ball: #fff; }
.brand-logo { width: 44px; height: 44px; color: var(--navy); flex: none; }
.contact-brand { display: flex; align-items: center; gap: 28px; }
.contact-logo { width: 150px; height: 150px; flex: none; color: #fff; --logo-accent: var(--gold-2); --logo-ball: var(--navy); }
@media (max-width: 700px) { .contact-brand { flex-direction: column; align-items: flex-start; gap: 16px; } .contact-logo { width: 110px; height: 110px; } }

/* ---------- Jobs separated by quiet rules ---------- */
.jobs { border-top: 1px solid #d5dbe4; display: block; }
.job { padding: 28px 0; border-bottom: 1px solid #d5dbe4; }
.job-side { padding-right: 20px; }
@media (max-width: 800px) { .job { padding: 22px 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Readability: no tiny labels ---------- */
h1, h2, h3 { letter-spacing: 0; }
.label, .eyebrow, .tag, .small-label, .bubble-label, .orgs-label { font-size: .82rem; font-weight: 600; letter-spacing: .1em; }
.lead, .hero-bubble .lead, .head p { font-size: 1.08rem; }
.job ul, .agent p:last-child, .card-body > p:not(.tag), .feature-body > p:not(.tag), .case > p:not(.tag), .pillar p, .bt p { font-size: 1rem; }
.figures-grid span, .band-stats span, .nums dd, .float span, .metric span, .role, .when, .where { font-size: .95rem; }
.ticker, .chips li, .pills li, .live, .reel figcaption, .gallery figcaption, .sec-break span { font-size: .85rem; }
.figures-grid b, .metric, .band-stats b, .nums dt, .float b, .bt .big { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Bigger laptop beside the Selected Work heading ---------- */
.head.work-head { display: grid; max-width: none; grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; align-items: center; }
.laptop3d { width: 440px; height: 320px; }
@media (max-width: 980px) { .head.work-head { grid-template-columns: 1fr; } .laptop3d { width: min(420px, 100%); height: 300px; justify-self: center; } }

/* ---------- Key figures as stat tiles (dataviz rules) ---------- */
.figures-grid b { font-family: var(--sans); font-weight: 600; font-size: clamp(2.2rem, 3.8vw, 3rem); letter-spacing: -0.01em; font-variant-numeric: proportional-nums; color: #fff; }
.figures-grid span { color: var(--on-navy); }
.spark { width: 110px; height: 32px; margin-bottom: 10px; }
.spark-line { stroke: rgba(195,205,221,.45); stroke-width: 2; }
.spark-glow { stroke: var(--gold-2); stroke-width: 2; }
.spark-end { fill: var(--gold-2); stroke: var(--navy); stroke-width: 2; }

/* ---------- Small 3D accents beside section headings ---------- */
.head.side-head { display: grid; max-width: none; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: center; }
.side-text { max-width: 720px; }
.model3d { display: block; width: 380px; height: 250px; }
.model3d.terminal3d { width: 380px; height: 270px; }
@media (max-width: 980px) { .head.side-head { grid-template-columns: 1fr; } .model3d { width: min(380px, 100%); justify-self: center; } }

/* ---------- Certification badges ---------- */
.badges { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.badges li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line-strong); }
.badges li b { display: block; font-size: .92rem; color: var(--ink); line-height: 1.25; }
.badges li span:last-child { font-size: .8rem; color: var(--muted); }
.badge-mark { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: .8rem; color: #fff; }
.b-bbg { background: #111; color: #ff9f1a; border: 2px solid #ff9f1a; }
.b-ms { background: #1d6f42; border: 2px solid #b7e1c8; }
@media (max-width: 520px) { .badges { grid-template-columns: 1fr; } }

/* ---------- Insights ---------- */
.post { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 36px; background: #fff; border: 1px solid var(--line-strong); border-left: 4px solid var(--gold); padding: 28px 32px; box-shadow: var(--shadow-card); }
.post h3 { font-size: 1.5rem; }
.post p { color: #3f4a5a; }
.post-sign { margin: 0; font-family: var(--serif); font-style: italic; color: var(--navy) !important; }

.post-head h3 { margin-bottom: 14px; }
.post-body p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .post { grid-template-columns: 1fr; gap: 8px; padding: 24px; } }

/* Certifications link to LinkedIn */
.badges a { display: flex; align-items: center; gap: 12px; width: 100%; text-decoration: none; color: inherit; }
.badges li { transition: border-color .2s, box-shadow .2s; }
.badges li:hover { border-color: var(--gold); box-shadow: var(--shadow-card); }
.cert-link { display: inline-flex; gap: 8px; margin-top: 14px; font-weight: 600; font-size: .92rem; color: var(--navy); text-decoration: none; }
.cert-link:hover { color: var(--gold); }

/* ---------- Markets ---------- */
.small-label.light { color: var(--gold-2); }
.mkt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; }
.quotes, .news { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.14); }
.quotes li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto 92px; gap: 12px; align-items: baseline; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.1); font-variant-numeric: tabular-nums; }
.q-sym { font: 700 .82rem ui-monospace, Menlo, monospace; color: #ff9f1a; }
.q-name { color: #9fabbe; font-size: .95rem; }
.q-last { color: #fff; font-weight: 600; font-size: 1.05rem; }
.q-chg { text-align: right; font-weight: 700; font-size: .92rem; }
.quotes .up .q-chg { color: #5fd197; }
.quotes .down .q-chg { color: #ff7b7b; }
.news li { border-bottom: 1px solid rgba(255,255,255,.1); }
.news a { display: grid; gap: 2px; padding: 11px 4px; text-decoration: none; color: inherit; transition: background .2s; }
.news a:hover { background: rgba(255,255,255,.04); }
.news b { color: #fff; font-size: 1.02rem; }
.news span { color: #9fabbe; font-size: .93rem; }
.news em { font-style: normal; font: 600 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.mkt-live { margin: 14px 0 0; font-size: .9rem; color: #9fabbe; }
.mkt-live a { color: var(--gold-2); }
@media (max-width: 900px) { .mkt { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .quotes li { grid-template-columns: 70px minmax(0, 1fr) 84px; } .q-name { display: none; } }

/* Case study margin bridge (a small waterfall; bars run from --a to --b on a 0-12% scale) */
.bridge { margin: auto 0; padding: 22px 0; display: grid; gap: 8px; }
.bridge-title { margin: 0 0 4px !important; font: 600 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2) !important; }
.bridge-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: .9rem; }
.bridge-row span { color: var(--on-navy); }
.bridge-row b { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.bridge-row i { position: relative; height: 18px; background: rgba(255,255,255,.06); }
.bridge-row i::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--a) / 12 * 100%); width: calc((var(--b) - var(--a)) / 12 * 100%); background: #8fa3c0; border-radius: 0 3px 3px 0; }
.bridge-row.add i::after { background: var(--gold-2); }
.bridge-row.goal i::after { background: #5fd197; }
.bridge-row.goal span, .bridge-row.goal b { font-weight: 700; color: #fff; }
@media (max-width: 480px) { .bridge-row { grid-template-columns: 112px minmax(0, 1fr) 56px; font-size: .84rem; } }

/* Markets: daily change as diverging bars around zero */
.mkt-bars { margin-top: 18px; display: grid; gap: 7px; }
.mkt-bar { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: center; font: 700 .78rem ui-monospace, Menlo, monospace; color: #9fabbe; }
.mkt-bar i { position: relative; height: 14px; background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.3) calc(50% - 1px), rgba(255,255,255,.3) calc(50% + 1px), transparent calc(50% + 1px)); }
.mkt-bar i::after { content: ""; position: absolute; top: 2px; bottom: 2px; left: 50%; width: calc(var(--v) * 50% / 1.6); background: #5fd197; border-radius: 0 3px 3px 0; }
.mkt-bar.down i::after { left: auto; right: 50%; width: calc(var(--v) * -50% / 1.6); background: #ff7b7b; border-radius: 3px 0 0 3px; }
/* Let the slide image take any extra height so the two case cards stay balanced */
.case .slide { flex: 1 1 auto; min-height: 160px; overflow: hidden; }
.case .slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* Certificate thumbnails and the shared document viewer */
.badges button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cert { display: flex; flex-direction: column; padding: 0; background: #fff; border: 1px solid var(--line-strong); font: inherit; text-align: left; cursor: zoom-in; transition: border-color .2s, box-shadow .2s, transform .2s; }
.cert:hover { border-color: var(--gold); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.cert img { width: 100%; aspect-ratio: 1.38; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.cert span { padding: 8px 10px 10px; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.cert b { display: block; font-size: .82rem; color: var(--ink); margin-bottom: 3px; }
@media (max-width: 520px) { .certs { grid-template-columns: 1fr 1fr; } }
.viewer { width: min(980px, 94vw); max-height: 92vh; padding: 0; border: 0; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.viewer::backdrop { background: rgba(6,13,26,.72); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--tint); }
.viewer-bar b { font-family: var(--serif); color: var(--navy); font-size: .98rem; }
.viewer-bar span { display: flex; gap: 8px; }
.viewer-bar .btn { padding: 8px 16px; }
.viewer-body { overflow: auto; background: #dfe3ea; padding: 14px; }
.viewer-body img { display: block; width: 100%; height: auto; margin: 0 auto; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.15); }
.viewer-body img + img { margin-top: 14px; }
[hidden] { display: none !important; }

/* A project card with no link (Internship Pipeline) */
.feature.static:hover { transform: none; box-shadow: var(--shadow-card); }
.feature.static::after { display: none; }
.feature.static:hover .feature-img img { transform: none; }

/* ---------- Skills dropdown ---------- */
.sf { position: relative; max-width: 760px; border: 1px solid var(--line-strong); background: #fff; }
.sf:focus-within { border-color: var(--navy); }
.sf-bar { display: flex; align-items: center; gap: 12px; padding-left: 18px; }
.sf-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.sf-bar input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: none; font: 400 1rem var(--sans); color: var(--ink); }
.sf-bar input::placeholder { color: #7a8494; }
.sf-toggle { display: inline-flex; align-items: center; gap: 8px; align-self: stretch; padding: 0 20px; border: 0; border-left: 1px solid var(--line); background: var(--navy); font: 600 .92rem var(--sans); color: #fff; cursor: pointer; white-space: nowrap; }
.sf-toggle:hover { background: var(--navy-2); }
.sf-toggle span { color: var(--on-navy); font-weight: 500; }
.sf-toggle svg { width: 12px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.sf-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sf-list { position: absolute; z-index: 30; top: 100%; left: -1px; right: -1px; max-height: 420px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 28px; padding: 20px 22px 22px; background: #fff; border: 1px solid var(--navy); border-top-color: var(--line); box-shadow: 0 18px 40px -16px rgba(11,37,69,.35); }
.sf-cat { margin: 0 0 6px; font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.sf-group ul { margin: 0; padding: 0; list-style: none; }
.sf-group li { padding: 3px 0; font-size: .95rem; color: var(--ink); border-bottom: 1px solid #f0f2f5; }
.sf-empty { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .sf-toggle span { display: none; } }

/* ---------- Calmer motion: keep the page steady and professional ---------- */
.btn-primary::after, .btn-gold::after, .photo-frame::before, .float, .flow span, .grid-glow, .dark-sec::before, .sec-break::before, .head h2::after, .feature:hover::after, .card[href]:hover::after { animation: none; }
.feature::after, .card[href]::after { display: none; }
.btn-primary::after, .btn-gold::after { display: none; }
.bt:hover, .feature:hover, .card[href]:hover { transform: none; }

/* ---------- About: photos, award and speaking story in two even rows ---------- */
.bento { grid-auto-rows: 330px; }
.bento .s3 { grid-column: span 3; } .bento .s4 { grid-column: span 4; } .bento .s6 { grid-column: span 6; }
.bt-kicker { margin: 0 0 10px !important; font: 600 .74rem var(--sans) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--gold) !important; }
.bt.award, .bt.story { display: flex; flex-direction: column; padding: 26px; }
.bt.award h3 { color: #fff; font-size: 1.5rem; }
.bt.award blockquote { margin: auto 0 0; padding-left: 14px; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: .95rem; line-height: 1.5; color: #fff; }
.bt.story h3 { font-size: 1.35rem; }
.bt.story p:last-child { line-height: 1.65; }
@media (max-width: 1100px) { .bento .s3, .bento .s4, .bento .s6 { grid-column: span 6; } }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento .s3, .bento .s4, .bento .s6, .bento .story { grid-column: auto; }
  .bento .bt.photo { aspect-ratio: 4 / 3; }
}

/* ---------- Agent detail and Claude skills ---------- */
.agent { display: flex; flex-direction: column; }
.agent .agent-sum { margin: 0 0 12px; font-size: .95rem; }
.dark-sec .agent .agent-sum { color: #c9d2e0; }
.how { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; }
.how li { display: grid; grid-template-columns: 72px 1fr; gap: 10px; font-size: .88rem; line-height: 1.45; color: #9fabbe; }
.how b { font: 600 .68rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); padding-top: 2px; }
.agent .guard { margin-top: auto !important; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem !important; color: #8f9bb0 !important; }
.cskills-wrap { margin-top: 56px; }
.cskills-title { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.cskills-lead { max-width: 720px; margin: 0 0 22px; color: #c3cddd; }
.cskills { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.1); border-left: 1px solid rgba(255,255,255,.1); }
.cskill { padding: 20px 22px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025); }
.cskill-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 10px; }
.cskill code { font: 600 .9rem ui-monospace, "SF Mono", Menlo, monospace; color: var(--gold-2); }
.cskill-top span { font: 600 .64rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8f9bb0; border: 1px solid rgba(255,255,255,.18); padding: 2px 7px; }
.cskill p:last-child { margin: 0; font-size: .9rem; line-height: 1.55; color: #9fabbe; }
@media (max-width: 1100px) { .cskills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cskills { grid-template-columns: 1fr; } .cskill code { font-size: .82rem; } }
/* seven agents: the last one spans the row so no gap is left */
.agents .agent:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 980px) { .agents .agent:last-child:nth-child(3n+1) { grid-column: auto; } .agents .agent:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 620px) { .agents .agent:last-child { grid-column: auto; } }

/* ---------- Tidy text: even line lengths, no stray last words ---------- */
h1, h2, h3, .hero-line, .bt h3, .agent h3 { text-wrap: balance; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }
.head p, .lead, .band-inner > p:not(.label) { max-width: 62ch; }
.status { white-space: nowrap; font-size: .86rem; }
@media (max-width: 600px) { .status { white-space: normal; align-items: flex-start; font-size: .82rem; } .status i { margin-top: 6px; } }

/* ==========================================================================
   Spacing system (whitespace-density): one 4px scale, one section gap,
   tight groups (internal <= 50% of external), whitespace before borders
   ========================================================================== */
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;
  --section-gap: var(--space-12); /* compact density: a content-heavy portfolio */
}
@media (max-width: 600px) { :root { --section-gap: var(--space-10); } }

/* Macro: every section uses the same gap, so the page keeps one rhythm */
main > section { padding-top: var(--section-gap) !important; padding-bottom: var(--section-gap) !important; }
.figures { padding-block: var(--space-8); }
.orgs { padding-block: var(--space-6); }

/* Separation: background shifts already split most sections, so their borders go.
   A line stays only where two neighbours share a background. */
main > section, main > .orgs { border-top: 0; }
#about, #education { border-top: 1px solid var(--line); }

/* Section headings: heading to its text 12px, heading block to content 32px */
.head { margin-bottom: var(--space-8); }
.head h2 { margin-bottom: var(--space-3); }
.head h2::after { margin-top: var(--space-3); }

/* Micro: component padding and gaps on the scale */
.bento { gap: var(--space-4); }
.bt, .bt.award, .bt.story { padding: var(--space-6); }
.agent { padding: var(--space-6); }
.how { gap: var(--space-2); margin-bottom: var(--space-4); }
.cskills-wrap { margin-top: var(--space-12); }
.cskills-lead { margin-bottom: var(--space-6); }
.cskill { padding: var(--space-5) var(--space-6); }
.hero-bubble { padding: var(--space-6) var(--space-8); }
.status { gap: var(--space-2); margin-top: var(--space-6); }
.job { gap: var(--space-8); }
.post { gap: var(--space-8); }
.chips { gap: var(--space-2); }
.case-doc { gap: var(--space-2); margin-top: var(--space-4); }
.bridge { padding: var(--space-6) 0; }
.mkt-bars { margin-top: var(--space-4); }
.badges { margin-top: var(--space-2); }
.viewer-bar { gap: var(--space-2); }
.sf-list { gap: var(--space-4) var(--space-8); padding: var(--space-6); }

/* ---------- Skill buttons and the detail card ---------- */
.sf-group li { padding: 0; }
.sf-group li button { display: block; width: 100%; padding: var(--space-1) 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sf-group li button:hover, .sf-group li button:focus-visible { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.sf-group li button.on { color: var(--navy); font-weight: 600; }
.sf-detail { position: relative; padding: var(--space-5) var(--space-12) var(--space-6) var(--space-6); border-top: 1px solid var(--line); background: var(--tint); }
.sf-d-cat { margin: 0 0 var(--space-1); font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.sf-detail h3 { margin: 0 0 var(--space-1); font-size: 1.3rem; }
.sf-d-when { margin: 0 0 var(--space-3); font-size: .88rem; font-weight: 600; color: var(--navy-2); }
.sf-d-what { margin: 0; max-width: 62ch; color: var(--ink); }
.sf-d-close { position: absolute; top: var(--space-3); right: var(--space-3); width: 32px; height: 32px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; }
.sf-d-close:hover { color: var(--navy); }
.sf-d-prompt { display: none; margin: 0; color: var(--muted); font-size: 1rem; }
.sf-detail.is-empty { padding-block: var(--space-4); }
.sf-detail.is-empty .sf-d-prompt { display: block; }
.sf-detail.is-empty > :not(.sf-d-prompt) { display: none; }

/* ---------- Hero: photo on top, then the "Currently" row, then the three stats ---------- */
.hero-photo { width: min(640px, 100%); grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "photo photo photo" "cap cap cap" "now now now" "left left right"; gap: var(--space-4); }
.photo-frame { width: 300px; justify-self: center; }
.hero-photo figcaption { margin-top: 0; font-size: .74rem; }
.now-card { grid-area: now; padding: var(--space-4) var(--space-5); background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); }
.now-label { margin: 0 0 var(--space-3); font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.now-card ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.now-card li { padding-left: var(--space-3); border-left: 2px solid var(--gold); line-height: 1.3; }
.now-card b { display: block; font: 600 .84rem var(--sans); color: var(--navy); }
.now-card span { display: block; margin-top: 2px; font-size: .76rem; color: var(--muted); }
@media (max-width: 900px) { .hero-photo { justify-self: stretch; } }
@media (max-width: 600px) {
  .photo-frame { width: 220px; }
  .now-card ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
