/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --navy-950: #0d2138;
  --navy-900: #142c46;
  --navy-800: #1e3c5c;
  --paper: #f6f3ec;
  --paper-dim: #ece7da;
  --ink: #23303d;
  --ink-soft: #55636f;
  --gold: #a9814a;
  --gold-light: #c9a56e;
  --maroon: #7a2e2e;

  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max-w: 1120px;
  --radius: 2px;
}

/* =========================================================
   RESET
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); margin: 0; color: var(--navy-900); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

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

/* =========================================================
   BACKGROUND WATERMARK SEAL (signature element, faint, fixed)
   ========================================================= */
.seal-watermark {
  position: fixed;
  top: 50%;
  right: -8vw;
  transform: translateY(-50%);
  width: 60vw;
  max-width: 720px;
  aspect-ratio: 1;
  border: 1.5px solid var(--navy-900);
  border-radius: 50%;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}
.seal-watermark::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1.5px solid var(--navy-900);
  border-radius: 50%;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(20, 44, 70, 0.12);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-seal {
  width: 30px;
  height: 30px;
  display: inline-flex;
}
.brand-seal svg { width: 100%; height: 100%; }
.brand-seal svg circle { fill: none; stroke: var(--gold); stroke-width: 3; }
.brand-seal svg path { fill: var(--navy-900); }
.brand-seal.small { width: 24px; height: 24px; }
.brand-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-900);
  letter-spacing: 0.02em;
}
.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--navy-900); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--navy-900);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero-position {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--maroon);
  margin-bottom: 1.3rem;
}
.hero-lead {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid var(--navy-900);
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--paper);
}
.btn-primary:hover { background: var(--navy-800); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
}
.btn-ghost:hover { background: var(--navy-900); color: var(--paper); }

.hero-portrait { display: flex; justify-content: center; }
.portrait-ring {
  position: relative;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background:
    repeating-conic-gradient(from 0deg, var(--gold) 0deg 2deg, transparent 2deg 10deg);
}
.portrait-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid var(--navy-900);
  z-index: 1;
}
.portrait-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-dim);
  position: relative;
}
.portrait-fallback {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.hero-divider {
  height: 1px;
  margin-top: 3.5rem;
  background: linear-gradient(to right, transparent, var(--navy-900) 20%, var(--navy-900) 80%, transparent);
  opacity: 0.25;
}

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section {
  position: relative;
  padding: 4.5rem 1.5rem;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}
.section-sub {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 2.4rem;
}

/* About */
.about-section { background: var(--paper-dim); }
.bio-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.65;
  max-width: 68ch;
  color: var(--navy-900);
  border-left: 3px solid var(--gold);
  padding-left: 1.6rem;
  margin: 1.5rem 0 0;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.project-card {
  background: #fff;
  border: 1px solid rgba(20,44,70,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20,44,70,0.12);
}
.project-media {
  aspect-ratio: 16/10;
  background: var(--paper-dim);
  overflow: hidden;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.project-date {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.project-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.project-body p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  flex: 1;
}
.project-link {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  border-bottom: 1px solid var(--gold);
  align-self: flex-start;
}

/* News */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.8rem;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(20,44,70,0.12);
}
.news-item:last-child { border-bottom: 1px solid rgba(20,44,70,0.12); }
.news-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  color: var(--navy-900);
  position: relative;
}
.news-date-badge .day { font-size: 1.7rem; font-weight: 600; line-height: 1; }
.news-date-badge .month { font-size: 0.75rem; color: var(--ink-soft); text-transform: uppercase; }
.news-item h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.news-item p { color: var(--ink-soft); margin: 0; }

.empty-note {
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
}

/* Contact */
.contact-section { background: var(--navy-900); color: var(--paper); }
.contact-section h2 { color: var(--paper); }
.contact-section .section-sub { color: rgba(246,243,236,0.7); }
.contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-list { margin-top: 1.6rem; }
.contact-list li {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(246,243,236,0.15);
  font-size: 0.96rem;
}
.contact-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold-light);
  text-transform: uppercase;
  min-width: 90px;
}
.contact-seal { width: 130px; height: 130px; flex-shrink: 0; opacity: 0.9; }
.contact-seal svg { width: 100%; height: 100%; }
.contact-seal svg circle { fill: none; stroke: var(--gold-light); stroke-width: 2; }
.contact-seal svg path { fill: var(--gold-light); }

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(246,243,236,0.6);
  padding: 1.6rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
}
.footer-inner .brand-seal svg circle { stroke: var(--gold-light); }
.footer-inner .brand-seal svg path { fill: var(--gold-light); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-portrait { order: 1; }
  .hero-actions { justify-content: center; }
  .hero-lead { max-width: none; margin: 0 auto 1em; }
  .bio-quote { margin-left: auto; margin-right: auto; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .contact-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 860px) {
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(20,44,70,0.12);
    gap: 1rem;
  }
}
