/* ---------- Tokens ---------- */
:root {
  --navy: #0f1b2d;
  --navy-2: #172a45;
  --gold: #b48a3e;
  --gold-light: #d4b06a;
  --ivory: #f8f6f1;
  --paper: #ffffff;
  --sand: #efebe2;
  --ink: #1b2433;
  --muted: #5d6675;
  --line: #e2ddd0;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 30px rgba(15, 27, 45, .07);
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--navy); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  margin: 0 0 .9rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 40rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 27, 45, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: .8rem;
}

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: #fff; }
.brand-logo { width: auto; height: 3.3rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; }
.brand-text small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

.tabs { display: flex; gap: .25rem; }
.tabs a {
  position: relative;
  padding: .6rem 1.1rem;
  font-size: .95rem; font-weight: 500; text-decoration: none;
  color: rgba(255, 255, 255, .72);
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.tabs a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.tabs a[aria-current="page"] { color: var(--navy); background: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.6rem;
  font: 600 .95rem/1 var(--sans);
  text-decoration: none;
  border: 1.5px solid transparent; border-radius: 999px;
  transition: transform .2s, background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-light); color: var(--navy); }
.btn-gold:hover { background: #e2c283; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- Panels ---------- */
.panel { animation: fade .45s ease both; scroll-margin-top: 4.5rem; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(180, 138, 62, .22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.01em; margin-bottom: 1.4rem; }
.hero .lead { color: rgba(255, 255, 255, .78); }
.hero-media { margin: 0; }
.hero-media img {
  width: 100%; aspect-ratio: 6 / 7; object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  border: 1px solid rgba(212, 176, 106, .35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

/* ---------- Section heads ---------- */
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2, .cta h2, .bio-copy h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p:last-child { margin-bottom: 0; margin-top: .8rem; }

.page-head {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.page-head .lead { color: rgba(255, 255, 255, .75); margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1.25rem; }
.card {
  padding: 1.75rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.card h3 { margin: 1.1rem 0 .5rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.icon {
  display: grid; place-items: center; flex: none;
  width: 3rem; height: 3rem;
  border-radius: 12px; background: var(--sand); color: var(--gold);
}
.icon svg {
  width: 1.4rem; height: 1.4rem;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Band + steps ---------- */
.band { background: var(--sand); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { padding: 1.75rem 1.5rem; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.step-num { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--gold); line-height: 1; }
.steps h3 { margin: .9rem 0 .4rem; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: calc(var(--radius) + 6px);
  color: rgba(255, 255, 255, .78);
}
.cta h2 { color: #fff; margin-bottom: .5rem; }
.cta p { margin: 0; max-width: 32rem; }

/* ---------- Biography ---------- */
.bio { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.portrait { margin: 0; position: sticky; top: 6rem; }
.portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.bio-copy h2 { margin-bottom: 1.2rem; }
.bio-copy p { color: var(--muted); }
.sub { margin: 2.2rem 0 1rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }

.values { display: grid; gap: .75rem; }
.values li {
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1rem 1.2rem;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px;
}
.values span { color: var(--muted); font-size: .95rem; }

.achievements { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.25rem; }
.achievements li { padding: 1.75rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.ach-value { display: block; margin-bottom: .9rem; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.achievements h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.achievements p { margin: 0; color: var(--muted); font-size: .95rem; }

.section-flush { padding-bottom: 0; }
.training { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; }
.training li {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.4rem 1.5rem;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px;
}
.training .tag { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.training h3 { font-size: 1.02rem; line-height: 1.4; }
.training p { margin: auto 0 0; padding-top: .25rem; color: var(--muted); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.contact-list { display: grid; gap: 1rem; align-content: start; }
.contact-list li {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.3rem 1.4rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-list h3 { margin-bottom: .25rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list p { margin: 0; }
.contact-list a { font-size: 1.15rem; font-weight: 500; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--gold); }

.map { min-height: 22rem; background: var(--sand); border-radius: var(--radius); overflow: hidden; }
.map iframe { width: 100%; height: 100%; min-height: inherit; border: 0; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .6); font-size: .85rem; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding-block: 2.5rem;
  text-align: center;
}
.footer-inner p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .bio, .contact { grid-template-columns: 1fr; }
  .hero-media { max-width: 22rem; }
  .portrait { position: static; max-width: 24rem; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner { padding-block: .65rem; }
  .panel { scroll-margin-top: 7.4rem; }
  .tabs {
    order: 3; width: 100%;
    padding: .25rem;
    background: rgba(255, 255, 255, .07); border-radius: 999px;
  }
  .tabs a { flex: 1; text-align: center; padding: .55rem .5rem; font-size: .9rem; }
  .brand-text strong { font-size: 1.2rem; }
  .btn-row .btn, .cta .btn { width: 100%; }
  .map { min-height: 16rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel { animation: none; }
  .btn, .card { transition: none; }
}
