:root {
  --teal: #0E7C7B;
  --teal-dark: #0A5F5E;
  --navy: #1B2A4A;
  --navy-deep: #111C33;
  --gold: #C89630;
  --gold-light: #D4A844;
  --wash: #E8F6F6;
  --canvas: #FAFAF8;
  --warm: #F5F3EE;
  --white: #FFFFFF;
  --ink: #1B2A4A;
  --ink-2: #4A5568;
  --on-dark: #B8C5D6;
  --hairline: #E2E0DB;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink-2); background: var(--canvas); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); font-weight: 500; line-height: 1.2; }
h2 { font-size: 28px; margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 6px; font-family: var(--body); font-weight: 600; }
p + p { margin-top: 12px; }
a { color: var(--teal); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold-light); }

/* header */
header { background: var(--white); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--display); font-weight: 600; font-size: 20px; }
.brand img { height: 34px; width: auto; }
nav { display: flex; align-items: center; gap: 26px; }
nav a.link { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
nav a.link:hover, nav a.current { color: var(--navy); }
nav a.current { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* buttons */
.btn { display: inline-block; background: var(--teal); color: var(--white); padding: 11px 22px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 14px; }
.btn:hover { background: var(--teal-dark); }
nav .btn { padding: 8px 16px; }
.btn-ghost { display: inline-block; padding: 9px 20px; border: 1.5px solid currentColor; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.on-dark .btn, .panel.dark .btn { background: var(--gold); color: var(--navy-deep); }
.on-dark .btn:hover, .panel.dark .btn:hover { background: var(--gold-light); }
.on-dark .btn-ghost { color: var(--white); }
.on-dark .btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
section { padding: 48px 0; }
.on-dark { background: var(--navy); color: var(--on-dark); }
.on-dark h1, .on-dark h2 { color: var(--white); }
.on-dark a:not(.btn):not(.btn-ghost) { color: var(--gold-light); }
.on-warm { background: var(--warm); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }

.hero { padding: 64px 0 56px; background: var(--navy-deep); }
.hero h1 { font-size: 44px; max-width: 680px; margin-bottom: 16px; color: var(--white); }
.hero .lead { font-size: 18px; max-width: 600px; color: var(--on-dark); margin-bottom: 24px; }
.hero .intro { margin-top: 24px; font-size: 14px; color: var(--on-dark); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.card { background: var(--white); border: 1px solid var(--hairline); border-top: 3px solid var(--teal); border-radius: 4px; padding: 20px; }
.card p { font-size: 15px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; counter-reset: s; }
.steps li { counter-increment: s; font-size: 15px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--display); color: var(--gold); font-size: 18px; }
.steps strong { display: block; color: var(--navy); }

.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-row h2 { margin-bottom: 6px; }
.small { font-size: 14px; }

footer { padding: 20px 0; font-size: 13px; background: var(--navy-deep); color: var(--on-dark); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer a { color: var(--on-dark); }

/* personal page */
.pagehead { padding: 48px 0 40px; background: var(--navy-deep); }
.pagehead h1 { font-size: 40px; color: var(--white); margin-bottom: 8px; }
.pagehead .lead { font-size: 18px; max-width: 640px; color: var(--on-dark); }
.profile { display: grid; grid-template-columns: 7fr 4fr; gap: 48px; align-items: start; }
.block + .block { margin-top: 32px; }
.rows { margin-top: 8px; }
.row { padding: 14px 0; border-top: 1px solid var(--hairline); }
.row:last-child { border-bottom: 1px solid var(--hairline); }
.row h3 { margin-bottom: 2px; }
.row p { font-size: 15px; }
.side { position: sticky; top: 84px; display: grid; gap: 16px; }
.panel { background: var(--white); border: 1px solid var(--hairline); border-radius: 4px; padding: 20px; }
.stat + .stat { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.stat strong { display: block; font-family: var(--display); font-size: 30px; color: var(--navy); line-height: 1.1; }
.stat span { font-size: 14px; }
.panel .note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 14px; }
.panel.dark { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.panel.dark h3 { color: var(--white); font-family: var(--display); font-weight: 500; font-size: 20px; }
.panel.dark .btn { margin-top: 14px; }

@media (max-width: 760px) {
  section { padding: 36px 0; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .split, .profile, .cards, .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps { gap: 14px; }
  nav a.link { display: none; }
  .cta-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .side { position: static; }
  .pagehead h1 { font-size: 32px; }
}

/* premium layer */
h1, h2 { letter-spacing: -0.01em; }
section { padding: 60px 0; }
.hero { padding: 88px 0 80px; background: radial-gradient(circle at 82% 45%, rgba(14,124,123,.30), transparent 42%), var(--navy-deep); }
.hero h1 { font-size: 52px; line-height: 1.12; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; }
.closing { padding: 52px 0; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); }

/* orbit graphic (people around a shared center) */
.orbit { width: 100%; max-width: 340px; justify-self: end; }
.orbit .ring { fill: none; stroke: rgba(184,197,214,.22); stroke-width: 1; }
.orbit .spokes line { stroke: rgba(212,168,68,.35); stroke-width: 1; }
.orbit .people circle { fill: var(--navy-deep); stroke: var(--gold-light); stroke-width: 2; }
.orbit .core { fill: rgba(14,124,123,.25); stroke: var(--teal); stroke-width: 1.5; transform-origin: 160px 160px; animation: pulse 4s ease-in-out infinite; }
.orbit .core-dot { fill: var(--gold-light); }
.orbit .spin { transform-origin: 160px 160px; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: .7; } }

/* scroll reveal: content only hides when JS is running */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .12s; }
.js .reveal.d2 { transition-delay: .24s; }

/* cards */
.card { transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27,42,74,.10); }

/* process line draws itself, dots appear in turn */
.steps { position: relative; border-top: 0; margin-top: 28px; }
.steps::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--hairline); }
.steps::after { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; margin-top: -0.5px; background: linear-gradient(90deg, var(--teal), var(--gold)); transform-origin: left; }
.js .steps::after { transform: scaleX(0); transition: transform 1.6s cubic-bezier(.65,0,.35,1) .2s; }
.js .steps.in::after { transform: scaleX(1); }
.steps li { border-top: 0; padding-top: 28px; position: relative; }
.steps li::after { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--white); border: 2px solid var(--gold); }
.js .steps li::after { transform: scale(0); transition: transform .4s ease; }
.js .steps.in li::after { transform: scale(1); }
.js .steps.in li:nth-child(1)::after { transition-delay: .2s; }
.js .steps.in li:nth-child(2)::after { transition-delay: .6s; }
.js .steps.in li:nth-child(3)::after { transition-delay: 1.0s; }
.js .steps.in li:nth-child(4)::after { transition-delay: 1.4s; }
.js .steps.reveal { transform: none; }

@media (max-width: 760px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 34px; }
  .hero-grid { grid-template-columns: 1fr; }
  .orbit { max-width: 220px; justify-self: start; }
  .steps::before, .steps::after { display: none; }
  .steps li { border-top: 1px solid var(--hairline); padding-top: 12px; }
  .steps li::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit .spin, .orbit .core { animation: none; }
  .card { transition: none; }
}

/* free tools */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.narrow-tool { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.fields { display: grid; gap: 14px; margin: 14px 0 18px; }
label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; color: var(--ink); }
input[type=number], input[type=url] { font: inherit; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 4px; background: var(--white); color: var(--ink); width: 100%; }
input:focus-visible, .btn:focus-visible, .btn-ghost:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.result strong { display: block; font-family: var(--display); font-size: 44px; color: var(--white); line-height: 1.1; }
.scan-form { display: flex; gap: 10px; margin-top: 16px; }
.scan-form input { flex: 1; }
.scan-form .btn { border: 0; cursor: pointer; font-family: inherit; }
.score { text-align: center; margin-top: 16px; }
.score strong { display: block; font-family: var(--display); font-size: 56px; color: var(--white); line-height: 1.1; }
.score strong span { font-size: 22px; color: var(--on-dark); }
.checks { display: grid; gap: 12px; margin-top: 16px; }
.check { background: var(--white); border: 1px solid var(--hairline); border-left: 4px solid var(--hairline); border-radius: 4px; padding: 16px; }
.check.pass { border-left-color: var(--teal); }
.check.warn { border-left-color: var(--gold); }
.check.fail { border-left-color: #B3372F; }
.check-head { display: flex; justify-content: space-between; gap: 12px; }
.check-head h3 { margin: 0; font-size: 16px; }
.check p { font-size: 14px; margin-top: 6px; }
.check .fix { color: var(--ink); }
.tools-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.tool-card { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--hairline); border-top: 3px solid var(--gold); border-radius: 4px; padding: 20px; transition: transform .3s ease, box-shadow .3s ease; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27,42,74,.10); }
.tool-card h3 { color: var(--navy); }
.tool-card p { font-size: 15px; color: var(--ink-2); }
.tool-card .go { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--teal); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--wash); padding: 2px 8px; border-radius: 3px; margin-bottom: 10px; }
@media (max-width: 760px) { .tool-grid, .tools-cards { grid-template-columns: 1fr; } .scan-form { flex-direction: column; } }

/* video band */
.band { position: relative; padding: 0; min-height: 340px; display: flex; align-items: center; overflow: hidden; background: #FBF8F0; }
.band-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,248,240,.96) 0%, rgba(251,248,240,.85) 38%, rgba(251,248,240,0) 62%); }
.band-copy { position: relative; width: 100%; padding-top: 56px; padding-bottom: 56px; }
.band-copy h2 { max-width: 420px; }
.band-copy p:last-child { max-width: 420px; }
@media (max-width: 760px) {
  .band { min-height: 0; flex-direction: column; align-items: stretch; }
  .band-video { position: static; height: 200px; order: 2; }
  .band-shade { display: none; }
  .band-copy { padding-top: 36px; padding-bottom: 28px; }
}

/* hero video card */
.hero-media { border-radius: 12px; overflow: hidden; border: 1px solid rgba(184,197,214,.25); box-shadow: 0 24px 60px rgba(0,0,0,.35); aspect-ratio: 4 / 3; background: #FBF8F0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; display: block; }
@media (max-width: 760px) { .hero-media { max-width: 420px; aspect-ratio: 16 / 10; } }

/* hero video blended into the background */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; background: var(--navy-deep); }
.hero .hero-grid { grid-template-columns: 1fr; }
.hero .hero-grid > div:first-child { max-width: 540px; position: relative; z-index: 2; }
.hero .hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; background: transparent; z-index: 0; }
.hero .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-deep) 40%, rgba(17,28,51,.88) 52%, rgba(17,28,51,.35) 68%, rgba(17,28,51,0) 85%), linear-gradient(0deg, var(--navy-deep) 0%, rgba(17,28,51,0) 22%); }
@media (max-width: 760px) {
  .hero { padding: 48px 0 56px; }
  .hero .hero-media { width: 100%; opacity: .55; }
  .hero .hero-media video { object-position: 68% center; }
  .hero::before { background: linear-gradient(180deg, rgba(17,28,51,.55) 0%, var(--navy-deep) 85%); }
}

/* menu polish */
section[id] { scroll-margin-top: 64px; }
nav a.link { position: relative; padding-bottom: 2px; }
nav a.link::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
nav a.link:hover::after, nav a.current::after { transform: scaleX(1); }
nav a.current { border-bottom: 0; padding-bottom: 2px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  .menu-btn { display: flex; }
  header { position: sticky; }
  .nav { position: relative; }
  nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--hairline); flex-direction: column; align-items: flex-start; gap: 0; padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.16,1,.3,1), padding .3s ease; box-shadow: 0 16px 24px rgba(27,42,74,.08); }
  nav.open { max-height: 380px; padding: 8px 24px 20px; }
  nav a.link { display: block; padding: 12px 0; width: 100%; font-size: 16px; opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
  nav a.link::after { bottom: 6px; width: 40px; }
  nav.open a.link { opacity: 1; transform: none; }
  nav.open a.link:nth-child(1) { transition-delay: .05s; } nav.open a.link:nth-child(2) { transition-delay: .1s; }
  nav.open a.link:nth-child(3) { transition-delay: .15s; } nav.open a.link:nth-child(4) { transition-delay: .2s; }
  nav .btn { margin-top: 12px; padding: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) { nav, nav a.link, nav a.link::after, .menu-btn span { transition: none; } }

.pagehead h1 { max-width: 760px; line-height: 1.15; }
@media (max-width: 760px) { .pagehead h1 { font-size: 28px; } }
.pagehead h1 { margin-bottom: 16px; }

/* personal page (layout from the concise resume page, site branding) */
.p-hero { padding: 88px 0 80px; background: radial-gradient(circle at 85% 30%, rgba(200,150,48,.20), transparent 30%), radial-gradient(circle at 70% 85%, rgba(14,124,123,.30), transparent 34%), var(--navy-deep); }
.p-hero h1 { font-size: 52px; line-height: 1.12; max-width: 760px; margin-bottom: 18px; color: var(--white); }
.p-hero .lead { font-size: 18px; max-width: 620px; color: var(--on-dark); margin-bottom: 26px; }
.p-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.p-card { color: var(--on-dark); padding: 32px; border-radius: 12px; background: linear-gradient(145deg, var(--teal), var(--navy)); min-height: 340px; }
.p-card.alt { background: linear-gradient(145deg, var(--navy), var(--navy-deep)); }
.p-card h3 { color: var(--white); font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
.p-card p { font-size: 15px; color: rgba(255,255,255,.82); }
.p-label { display: block; margin-bottom: 40px; color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { padding: 5px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 12px; color: rgba(255,255,255,.9); }
.flow { margin-top: 20px; padding: 24px; background: var(--white); border: 1px solid var(--hairline); border-left: 3px solid var(--gold); border-radius: 4px; }
.flow strong { color: var(--teal); }
.flow p { font-size: 15px; margin-top: 6px; }
.p-about { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); }
.difference { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.difference strong { color: var(--white); }
.difference p { margin-top: 6px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 14px; }
.metric { padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.04); }
.metric strong { display: block; font-family: var(--display); font-size: 34px; font-weight: 500; color: var(--gold-light); line-height: 1.1; }
.metric span { font-size: 13px; line-height: 1.4; display: block; margin-top: 6px; }
.p-contact { background: var(--teal); color: #E9F6F6; text-align: center; padding: 56px 0; }
.p-contact h2 { color: var(--white); max-width: 720px; margin-left: auto; margin-right: auto; }
.p-contact .eyebrow { justify-content: center; color: #F2E2B8; }
.p-contact .eyebrow::before { background: #F2E2B8; }
.p-contact p { max-width: 620px; margin: 0 auto 14px; }
.p-contact .btn { background: var(--navy-deep); color: var(--white); }
.p-contact .btn:hover { background: var(--navy); }
.p-contact a:not(.btn) { color: var(--white); }
@media (max-width: 760px) {
  .p-hero { padding: 48px 0 52px; }
  .p-hero h1 { font-size: 30px; }
  .p-cards, .metrics { grid-template-columns: 1fr; }
  .p-card { min-height: 0; padding: 24px; }
  .p-label { margin-bottom: 24px; }
}
