/* ---------------------------------------------
   Plumbellum — grayscale / zen one-pager
--------------------------------------------- */

:root{
  --ink:        #141413;
  --ink-soft:   #3a3a37;
  --paper:      #f5f4f1;
  --paper-dim:  #e9e7e2;
  --line:       rgba(20,20,19,0.14);
  --line-soft:  rgba(20,20,19,0.08);
  --accent:     #2f5fa8; /* Plumbellum blue — appears only as a quiet accent */

  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 92px;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1, h2, h3{
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

p{ margin: 0; line-height: 1.7; color: var(--ink-soft); }

/* subtle film grain, sits above everything, never blocks input */
.grain{
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Reveal-on-scroll ---------------- */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Header / Nav ---------------- */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), height 0.4s var(--ease), backdrop-filter 0.5s var(--ease);
}
.site-header.scrolled{
  background: rgba(245,244,241,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
  height: 76px;
}
.header-inner{
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
}

.brand{ display: flex; align-items: center; height: 40px; }
.brand-mark{
  height: 30px; width: auto;
  filter: grayscale(1) contrast(1.05) brightness(0.35);
  transition: filter 0.5s var(--ease);
}
.site-header:not(.scrolled) .brand-mark{
  filter: grayscale(1) contrast(1.1) brightness(2.2);
}
.brand:hover .brand-mark{ filter: grayscale(0); }

.nav{
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
}
.nav a{
  position: relative;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 2px;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header:not(.scrolled) .nav a{ color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.nav a::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 1px; background: currentColor;
  transition: right 0.35s var(--ease);
}
.nav a:hover::after,
.nav a.active::after{ right: 0; }
.nav a.active{ opacity: 1; }

.nav-toggle{
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  z-index: 600;
}
.nav-toggle span{
  display: block; height: 1px; width: 100%;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), background 0.35s;
}
.site-header:not(.scrolled) .nav-toggle span{ background: #fff; }
.nav-toggle.open span{ background: var(--ink); }
.nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-media{ position: absolute; inset: 0; }
.hero-img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.82);
  transform: scale(1.08);
  animation: heroIn 2.4s var(--ease) forwards;
}
@keyframes heroIn{
  from{ transform: scale(1.14); filter: grayscale(1) contrast(1.08) brightness(0.6); }
  to{ transform: scale(1.03); filter: grayscale(1) contrast(1.08) brightness(0.82); }
}
.hero-veil{
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.15) 40%, rgba(10,10,10,0.55) 78%, var(--paper) 100%);
}
.hero-content{
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) 96px;
  color: #fdfdfc;
}
.eyebrow{
  font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); margin-bottom: 18px;
}
.hero h1{
  font-size: clamp(56px, 11vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  font-weight: 500;
  color: #fdfdfc;
}
.hero-line{
  font-family: var(--serif);
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  max-width: 620px;
  line-height: 1.5;
}
.scroll-cue{
  position: absolute; right: clamp(20px, 4vw, 56px); bottom: 40px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 56px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
}
.scroll-line{
  width: 1px; height: 10px; background: #fff;
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse{
  0%{ transform: translateY(-6px); opacity: 0; }
  40%{ opacity: 1; }
  100%{ transform: translateY(10px); opacity: 0; }
}

/* ---------------- Sections (shared) ---------------- */
.section{ position: relative; padding: clamp(90px, 14vw, 168px) 0; }
.section-inner{
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.section-inner.narrow{ max-width: 860px; }
.section-inner.center{ text-align: center; }

.section-label{
  font-size: 12px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::before{
  content: ""; display: inline-block; width: 34px; height: 1px; background: var(--ink-soft);
}
.center .section-label{ justify-content: center; }
.center .section-label::before{ display: none; }

.section-title{
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  margin-bottom: 48px;
  max-width: 720px;
}

/* ---------------- Bio ---------------- */
.bio{ background: var(--paper); }
.lead{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 48px;
  padding-left: 22px;
  border-left: 1px solid var(--ink);
}
.bio-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-bottom: 88px;
}
.bio-grid p{ font-size: 16px; }

.services{
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.service{
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.service:first-child{ border-left: none; padding-left: 0; }
.service:last-child{ padding-right: 0; }
.service-index{
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-soft);
  opacity: 0.6;
  margin-bottom: 18px;
}
.service h3{
  font-size: 21px;
  margin-bottom: 12px;
}
.service p{ font-size: 14.5px; }

/* ---------------- Pics ---------------- */
.pics{ background: var(--paper-dim); }
.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
.gallery-item{
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: default;
}
.gallery-item.span-2{ grid-column: span 2; aspect-ratio: 16/11; }
.gallery-item img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.98);
  transform: scale(1.01);
  transition: filter 0.8s var(--ease), transform 1.4s var(--ease), opacity 0.8s var(--ease);
  -webkit-mask-image: linear-gradient(#000 92%, transparent 100%);
          mask-image: linear-gradient(#000 92%, transparent 100%);
}
.gallery-item:hover img{
  filter: grayscale(0.18) contrast(1.05) brightness(1);
  transform: scale(1.06);
}
.gallery-item::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.72) 100%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.gallery-item:hover::after{ opacity: 1; }
.gallery-item figcaption{
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 14px rgba(0,0,0,0.85);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-item:hover figcaption{ opacity: 1; transform: translateY(0); }

/* ---------------- Headshot ---------------- */
.headshot{
  background: var(--ink);
  color: var(--paper);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.headshot-media{
  position: relative;
  min-height: 560px;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
}
.headshot-media img{
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}
.headshot-content{
  padding: clamp(56px, 8vw, 110px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 20px;
}
.headshot-content .section-label{ color: rgba(245,244,241,0.55); }
.headshot-content .section-label::before{ background: rgba(245,244,241,0.55); }
.headshot-content h2{ color: var(--paper); font-size: clamp(34px, 4vw, 52px); margin-bottom: 4px; }
.headshot-role{
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245,244,241,0.65); margin-bottom: 6px;
}
.headshot-content p{ color: rgba(245,244,241,0.78); font-size: 16px; max-width: 480px; }

/* ---------------- Contact ---------------- */
.contact{ background: var(--paper); }
.contact h2{
  font-size: clamp(32px, 5vw, 56px);
  max-width: 640px;
  margin: 0 auto 56px;
}
.contact-links{
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  margin-bottom: 30px;
}
.contact-link{
  font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 32px);
  font-style: italic;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-link:hover{ border-color: var(--ink); color: var(--accent); }
.contact-name{
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------------- Footer ---------------- */
.site-footer{
  background: var(--ink);
  color: rgba(245,244,241,0.55);
  padding: 40px clamp(20px, 4vw, 56px) 46px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(245,244,241,0.1);
}
.footer-mark{ height: 20px; width: auto; filter: grayscale(1) brightness(2.4); opacity: 0.8; }
.site-footer p{ color: rgba(245,244,241,0.5); font-size: 12.5px; letter-spacing: 0.03em; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px){
  .bio-grid{ grid-template-columns: 1fr; gap: 24px; }
  .services{ grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .service{ border-left: 1px solid var(--line); padding: 0 28px; }
  .service:nth-child(odd){ border-left: none; padding-left: 0; }
  .headshot{ grid-template-columns: 1fr; }
  .headshot-media{ min-height: 46vh; -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, #000 88%, transparent 100%); }
  .gallery{ grid-template-columns: 1fr 1fr; }
  .gallery-item.span-2{ grid-column: span 2; aspect-ratio: 16/9; }
}

@media (max-width: 680px){
  :root{ --header-h: 74px; }
  .nav{
    position: fixed; inset: 0; top: 0;
    flex-direction: column; justify-content: center; align-items: center; gap: 34px;
    background: var(--paper);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
    z-index: 550;
  }
  .nav.open{ transform: translateY(0); }
  .nav a{ color: var(--ink) !important; text-shadow: none !important; font-size: 22px; }
  .nav-toggle{ display: flex; }
  .hero h1{ font-size: 20vw; }
  .services{ grid-template-columns: 1fr; row-gap: 0; }
  .service{
    border-left: none !important; padding: 0 !important;
    padding-bottom: 28px !important; padding-top: 28px !important;
    border-bottom: 1px solid var(--line);
  }
  .service:first-child{ padding-top: 0 !important; }
  .service:last-child{ border-bottom: none; padding-bottom: 0 !important; }
  .gallery{ grid-template-columns: 1fr; }
  .gallery-item.span-2{ grid-column: span 1; aspect-ratio: 4/5; }
  .gallery-item::after{ opacity: 1; }
  .gallery-item figcaption{ opacity: 1; transform: none; }
  .site-footer{ flex-direction: column; text-align: center; }
}
