/* ─── Reset ─── */
*, ::after, ::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Variables — forest green palette ─── */
:root {
  --bg:           #f0f5f2;   /* light sage — green-tinted base       */
  --bg-alt:       #e6eeea;   /* slightly deeper sage                 */
  --ink:          #1a1917;   /* warm near-black                      */
  --muted:        #5a6e66;   /* green-toned mid-gray                 */
  --accent:       #2d5a4f;   /* deep forest green                    */
  --accent-dark:  #1e3f37;   /* darker forest green                  */
  --accent-tint:  rgba(45, 90, 79, 0.07);
  --border:       #c8d8d2;   /* sage green border                    */
  --surface:      #ffffff;   /* card / panel surface                 */

  /* Typography */
  --font-display: 'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Layout */
  --nav-h:        3.75rem;
  --max-w:        1100px;
  --pad-x:        clamp(1.5rem, 5vw, 4rem);
  --section-y:    clamp(5rem, 10vw, 8rem);
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  user-select: none;
  -webkit-user-select: none;
  line-height: 1.6;
}

svg { display: block; }

/* ─── Container ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background .3s, box-shadow .3s;
}

.site-nav.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity .2s;
}

.nav-cta:hover { opacity: .6; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) var(--pad-x) 6rem;
  overflow: hidden;
}

/* Dot grid — forest green */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(45, 90, 79, 0.2) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 40% 60% at 50% 50%, transparent 20%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse 40% 60% at 50% 50%, transparent 20%, black 100%);
}

/* Watermark S */
.hero::before {
  content: 'S';
  position: absolute;
  right: -4%;
  top: -10%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 68vw;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(45, 90, 79, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-dots-glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(45, 90, 79, 0.8) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle 130px at var(--gx, -300px) var(--gy, -300px), black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle 130px at var(--gx, -300px) var(--gy, -300px), black 0%, transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hero-location,
.hero-name,
.hero-tagline,
.hero-actions {
  opacity: 0;
  animation: fadeUp .7s calc(var(--d, 0) * .16s + .05s) forwards ease-out;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .35rem 1rem;
}

.hero-location svg {
  width: .8rem;
  height: .8rem;
  fill: var(--accent);
  flex-shrink: 0;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.8rem, 11vw, 8rem);
  line-height: .92;
  letter-spacing: -.02em;
  display: flex;
  flex-direction: column;
  gap: .04em;
}

/* Italic serif first name — DM Serif Display italic is stunning */
.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-name span {
  color: var(--ink);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(.8rem, 1.8vw, 1rem);
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .04em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: .25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .75rem 1.75rem;
  border-radius: 4px;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.btn-primary:hover {
  background: #3d7a6a;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(45, 90, 79, .28);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .75rem 1.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}

.btn-ghost:hover {
  border-color: #adc4bc;
  background: var(--bg-alt);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(45, 90, 79, .1);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-decoration: none;
  color: var(--muted);
  z-index: 1;
  opacity: 0;
  animation: fadeUpCentered .6s .75s forwards ease-out, bounce 2.4s 1.4s ease-in-out infinite;
}

.hero-scroll-cue span {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero-scroll-cue svg {
  width: 1rem;
  height: 1rem;
  fill: var(--muted);
}

/* ═══════════════════════════════════════
   SECTION COMMONS
═══════════════════════════════════════ */
.section-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.reveal,
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.section-about {
  padding: var(--section-y) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 5rem;
  align-items: end;  /* anchor both columns to the bottom */
}

/* Space above so the overflowing head isn't clipped */
.about-aside {
  padding-top: 3rem;
}

.about-content h2 {
  margin-bottom: 1.75rem;
}

.bio-text p {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.bio-text p:last-child { margin-bottom: 0; }

.bio-text em {
  font-style: italic;
  color: var(--ink);
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}

.inline-link:hover { opacity: .65; }

/* Portrait photo card */
.photo-frame {
  position: relative;
  aspect-ratio: 3 / 3.9;
  overflow: visible; /* lets photo pop above the frame */
  width: 100%;
}

/* Clipped background layer — border, shadow, gradient all live here */
.photo-bg {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(170deg, #dff0eb 0%, #cce6db 55%, #b5d9cc 100%);
  border: 1px solid var(--border);
  box-shadow:
    0 24px 64px rgba(26, 25, 23, .13),
    0 0 0 1px var(--border);
  z-index: 0;
}

/* Top-edge accent glow on the background layer */
.photo-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.portrait-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 12px;
  display: block;
  z-index: 1;            /* floats above the background layer */
  filter: drop-shadow(0 -8px 18px rgba(26, 25, 23, .10));
}

/* Caption sits at the bottom, above the photo */
.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem 1.2rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px) saturate(160%);
  -webkit-backdrop-filter: blur(2px) saturate(160%);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  margin: 16px;
  z-index: 2;
  box-shadow:
    0 4px 24px rgba(26, 25, 23, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.photo-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
  margin-bottom: .15rem;
}

.photo-role {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .65rem;
}

.photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.photo-tags span {
  font-family: var(--font-mono);
  font-size: .58rem;
  padding: .18rem .55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: .04em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════
   EXPERTISE
═══════════════════════════════════════ */
.section-expertise {
  padding: var(--section-y) 0;
  background: var(--bg-alt);
}

.expertise-header {
  max-width: 1100px;
  margin-bottom: 2rem;
}

.expertise-header h2 { margin-bottom: .75rem; }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.exp-card {
  background: var(--bg-alt);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: background .18s ease;
}

.exp-card:hover {
  background: var(--bg);
}

.exp-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--accent-tint);
  border: 1px solid rgba(45, 90, 79, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .18s, border-color .18s;
}

.exp-card:hover .exp-card-icon {
  background: rgba(45, 90, 79, 0.12);
  border-color: rgba(45, 90, 79, 0.26);
}

.exp-card-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: var(--accent);
}

.exp-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .8rem;
}

.exp-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.2;
}

.exp-card-desc {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.section-contact {
  padding: var(--section-y) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5rem;
  align-items: end;
}

.contact-left .section-label { margin-bottom: .8rem; }

.section-contact h2 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  margin-bottom: 1.25rem;
}

.contact-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 100%;
}

.contact-options {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  margin-bottom: .75rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: background .2s;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child { border-bottom: none; }

.contact-row:hover { background: rgba(45, 90, 79, 0.05); }

.contact-row:hover .cr-arrow {
  transform: translateX(5px);
  color: var(--accent);
}

.cr-icon {
  width: 2.4rem;
  height: 2.4rem;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cr-icon svg {
  width: .92rem; height: .92rem;
  fill: #ffffff;
}

.cr-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cr-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cr-val {
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
}

.cr-arrow {
  font-size: 1.15rem;
  color: var(--muted);
  transition: transform .2s, color .2s;
  flex-shrink: 0;
}

/* Social icons */
.social-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  gap: .75rem;
  margin-bottom: .4rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: 0 .85rem;
  height: 2.5rem;
  background: rgba(45, 90, 79, 0.10);
  border: 1px solid rgba(45, 90, 79, 0.22);
  border-radius: 6px;
  transition: border-color .2s, background .2s;
  text-decoration: none;
  width: 100%;
}

.social-link svg {
  width: .9rem; height: .9rem;
  fill: var(--accent);
  flex-shrink: 0;
  transition: fill .2s;
}

.social-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .01em;
  transition: color .2s;
}

.social-link:hover {
  border-color: var(--accent);
  background: rgba(45, 90, 79, 0.18);
}

.social-link:hover svg { fill: var(--accent-dark); }

.social-link:hover .social-label { color: var(--accent-dark); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-inner a:hover { color: var(--accent); }

.footer-inner span {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}

.footer-nav a:hover { color: var(--accent); }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUpCentered {
  from { opacity: 0; transform: translateX(-50%) translateY(22px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ═══════════════════════════════════════
   RESPONSIVE — tablet
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .about-aside {
    display: flex;
    justify-content: center;
    padding-top: 0;       /* no extra room needed — pop-out disabled below */
  }

  /* Disable pop-out on stacked layouts — photo stays within the frame */
  .photo-frame {
    max-width: 340px;
    width: 100%;
    aspect-ratio: 3 / 4.5;
  }

  .portrait-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    transform: none;
    left: 0;
    bottom: 0;
    filter: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-row{
    margin-bottom: 0;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ═══════════════════════════════════════
   RESPONSIVE — mobile
═══════════════════════════════════════ */
@media (max-width: 640px) {
  .nav-links { display: none; }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-name {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(320px, 100%);
  }

  .contact-options { max-width: 100%; }

  .expertise-grid {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }

  .about-aside {
    width: 100%;
  }

  .photo-frame {
    max-width: 380px;
    width: 100%;
  }

  .social-row{
    flex-direction: column;
  }
}

/* ── Photo protection overlay ── */
.photo-protect {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}


/* ═══════════════════════════════════════
   PRINT — JS-injected #print-page
═══════════════════════════════════════ */
#print-page { display: none; }
.print-bio  { display: none; }

@media print {
  @page {
    size: letter portrait;
    margin: 10mm 12mm 10mm 12mm;
  }

  * { box-shadow: none !important; text-shadow: none !important; }

  body > *:not(#print-page) { display: none !important; }

  #print-page {
    display: flex !important;
    flex-direction: column;
    width: 186mm;
    height: 257mm;
    font-family: 'DM Sans', sans-serif;
    font-size: 9.5pt;
    line-height: 1.6;
    color: #1a1917;
    background: #fff;
    overflow: hidden;
  }

  /* Expertise section grows to fill remaining space */
  .pi-exp-section {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    /* No border-top — remove the stray line above expertise */
    border-top: none !important;
    padding-top: 0 !important;
  }

  /* ── Header ── */
  .pi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 7pt;
    border-bottom: 1.5pt solid #2d5a4f;
    margin-bottom: 13pt;
    flex-shrink: 0;
  }

  .pi-name {
    font-family: 'DM Serif Display', serif;
    font-size: 30pt;
    font-weight: 400;
    line-height: 1;
    color: #1a1917;
  }
  .pi-name em { font-style: italic; color: #2d5a4f; }

  .pi-header-right { text-align: right; }

  .pi-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9pt;
    color: #5a6e66;
    letter-spacing: .04em;
  }

  .pi-location {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7pt;
    color: #8a9e98;
    margin-top: 2pt;
  }

  /* ── Sections — only a rule BETWEEN about and expertise ── */
  .pi-section {
    padding-bottom: 12pt;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* Single divider between About and Expertise only */
  .pi-about {
    padding-bottom: 12pt;
    border-bottom: .5pt solid #c8d8d2;
    margin-bottom: 12pt;
  }

  .pi-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 6.5pt;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #2d5a4f;
    margin-bottom: 4pt;
    display: block;
  }

  .pi-section-h {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 17pt;
    color: #1a1917;
    line-height: 1.1;
    margin-bottom: 7pt;
  }

  .pi-sub {
    font-size: 8.5pt;
    color: #5a6e66;
    line-height: 1.5;
    margin-bottom: 9pt;
  }

  /* ── About: text left, photo right ── */
  .pi-about {
    display: flex !important;
    gap: 18pt;
    align-items: flex-start;
  }

  .pi-about-text { flex: 1; min-width: 0; }

  .pi-body-text {
    font-size: 9pt;
    color: #3a4e47;
    line-height: 1.7;
    margin-bottom: 6pt;
  }
  .pi-body-text:last-child { margin-bottom: 0; }
  .pi-body-text em { font-style: italic; color: #1a1917; }

  .pi-photo {
    width: 95pt;
    height: 116pt;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center 5%;
    border-radius: 6pt;
    border: .75pt solid #c8d8d2;
    display: block;
    margin-top: 22pt;
  }

  /* ── Expertise: 2-column grid, NO internal lines ── */
  .pi-exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 0 16pt;
    border-top: .5pt solid #c8d8d2;
    flex: 1;
  }

  /* Vertical divider between columns via left border on right column items */
  .pi-exp-item {
    padding: 8pt 0 6pt;
    border-bottom: none;
  }

  .pi-exp-item:nth-child(even) {
    padding-left: 16pt;
    border-left: .5pt solid #c8d8d2;
  }

  .pi-exp-header {
    display: flex;
    align-items: center;
    gap: 5pt;
    margin-bottom: 4pt;
  }

  .pi-exp-icon {
    width: 13pt;
    height: 13pt;
    flex-shrink: 0;
    background: rgba(45,90,79,.08);
    border: .5pt solid rgba(45,90,79,.2);
    border-radius: 3pt;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pi-exp-icon svg {
    width: 7.5pt;
    height: 7.5pt;
    fill: #2d5a4f;
    display: block;
  }

  .pi-exp-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 10.5pt;
    color: #1a1917;
    line-height: 1.2;
  }

  .pi-exp-desc {
    font-size: 8pt;
    color: #5a6e66;
    line-height: 1.6;
    padding-left: 18pt;
    margin: 0;
  }

  /* ── Contact — single line, equal 4 columns, no word-break ── */
  .pi-contact-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
    border-top: .5pt solid #c8d8d2;
    padding-top: 10pt;
    margin-top: 0;
  }

  .pi-contact-section .pi-label {
    margin-bottom: 6pt;
  }

  .pi-contact-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .pi-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2pt;
  }

  .pi-contact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 6pt;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8a9e98;
  }

  .pi-contact-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8pt;
    color: #2d5a4f;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ── Footer ── */
  .pi-footer {
    margin-top: auto;
    padding-top: 7pt;
    border-top: .5pt solid #c8d8d2;
    font-family: 'JetBrains Mono', monospace;
    font-size: 6.5pt;
    color: #8a9e98;
    display: flex;
    justify-content: center;
    letter-spacing: .04em;
    flex-shrink: 0;
  }

  .pi-footer strong {
    color: #2d5a4f;
    font-weight: 600;
  }
}

  /* ── Header ── */
  .pi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 5pt;
    border-bottom: 1.5pt solid #2d5a4f;
    margin-bottom: 9pt;
  }

  .pi-name {
    font-family: 'DM Serif Display', serif;
    font-size: 26pt;
    font-weight: 400;
    line-height: 1;
    color: #1a1917;
  }
  .pi-name em { font-style: italic; color: #2d5a4f; }

  .pi-header-right { text-align: right; }

  .pi-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7.5pt;
    color: #5a6e66;
    letter-spacing: .04em;
  }

  .pi-location {
    font-family: 'JetBrains Mono', monospace;
    font-size: 6pt;
    color: #8a9e98;
    margin-top: 2pt;
  }

  /* ── Sections ── */
  .pi-section {
    padding-bottom: 8pt;
    margin-bottom: 8pt;
  }

  .pi-section + .pi-section {
    border-top: .5pt solid #c8d8d2;
    padding-top: 8pt;
  }

  .pi-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5.5pt;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #2d5a4f;
    margin-bottom: 3pt;
    display: block;
  }

  .pi-section-h {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 14pt;
    color: #1a1917;
    line-height: 1.1;
    margin-bottom: 5pt;
  }

  .pi-sub {
    font-size: 7pt;
    color: #5a6e66;
    line-height: 1.5;
    margin-bottom: 7pt;
  }

  /* ── About: text left, photo right ── */
  .pi-about {
    display: flex !important;
    gap: 14pt;
    align-items: flex-start;
  }

  .pi-about-text { flex: 1; min-width: 0; }

  .pi-body-text {
    font-size: 7.5pt;
    color: #3a4e47;
    line-height: 1.65;
    margin-bottom: 4pt;
  }
  .pi-body-text:last-child { margin-bottom: 0; }
  .pi-body-text em { font-style: italic; color: #1a1917; }

  .pi-photo {
    width: 88pt;
    height: 108pt;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center 5%;
    border-radius: 5pt;
    border: .75pt solid #c8d8d2;
    display: block;
    margin-top: 18pt;
  }

  /* ── Expertise: 2-column grid ── */
  .pi-exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12pt;
    border-top: .5pt solid #c8d8d2;
  }

  .pi-exp-item {
    border-bottom: .5pt solid #c8d8d2;
    padding: 5pt 0 4.5pt;
  }

  .pi-exp-header {
    display: flex;
    align-items: center;
    gap: 4pt;
    margin-bottom: 2.5pt;
  }

  .pi-exp-icon {
    width: 11pt;
    height: 11pt;
    flex-shrink: 0;
    background: rgba(45,90,79,.08);
    border: .5pt solid rgba(45,90,79,.2);
    border-radius: 3pt;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pi-exp-icon svg {
    width: 6pt;
    height: 6pt;
    fill: #2d5a4f;
    display: block;
  }

  .pi-exp-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 8.5pt;
    color: #1a1917;
    line-height: 1.2;
  }

  .pi-exp-desc {
    font-size: 6.5pt;
    color: #5a6e66;
    line-height: 1.55;
    padding-left: 15pt;
    margin: 0;
  }

  /* ── Contact: 4-col row ── */
  .pi-contact-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .pi-contact-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8pt;
    padding-top: 6pt;
  }

  .pi-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2pt;
  }

  .pi-contact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5.5pt;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8a9e98;
  }

  .pi-contact-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7pt;
    color: #2d5a4f;
    font-weight: 600;
    word-break: break-all;
  }

  /* ── Footer ── */
  .pi-footer {
    margin-top: 8pt;
    padding-top: 5pt;
    border-top: .5pt solid #c8d8d2;
    font-family: 'JetBrains Mono', monospace;
    font-size: 6pt;
    color: #8a9e98;
    display: flex;
    justify-content: center;
    letter-spacing: .04em;
  }

  .pi-footer strong {
    color: #2d5a4f;
    font-weight: 600;
  }