/* ─────────────────────────────────────────────
   PINPOINT — Research Project Website
   CSS: pinpoint.css
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,200;0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

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

:root {
  --white:        #FAFAF8;
  --off-white:    #F3F1ED;
  --paper:        #EDE9E1;
  --ink:          #1A1917;
  --ink-mid:      #5A5750;
  --ink-light:    #9A9590;
  --pin:          #C23B3B;
  --pin-dark:     #962E2E;
  --string:       #C23B3B;
  --pastel-blue:  #C5D5E0;
  --pastel-gold:  #E5D5A8;
  --pastel-sage:  #C4D1C0;
  --erc-blue:     #003F7F;

  --font-display: 'Inter', 'Helvetica Neue', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;

  --nav-h:        72px;
  --max-w:        1120px;
  --col-gap:      clamp(16px, 3vw, 48px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── TYPOGRAPHY ───────────────────────────────── */
.display-xl {
  
  font-weight: 300;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.display-lg {
  
  font-weight: 300;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.display-md {
  
  font-weight: 300;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.15;
}
.display-sm {
  
  font-weight: 300;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.3;
}
.label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.label-red {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pin);
}
.body-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-mid);
  max-width: 60ch;
}

/* ── LAYOUT UTILITIES ─────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section-sm { padding: clamp(40px, 6vw, 80px) 0; }
.divider {
  width: 100%;
  height: 1px;
  background: var(--paper);
}

/* ── PIN SVG ──────────────────────────────────── */
.pin-icon {
  display: inline-block;
  width: 18px;
  height: 28px;
  flex-shrink: 0;
}
.pin-icon-sm { width: 12px; height: 18px; }
.pin-icon-lg { width: 24px; height: 38px; }

/* ── NAVIGATION ───────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
#nav.scrolled { border-color: var(--paper); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.nav-logo-name {
  
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.nav-logo-sub {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-link {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--pin);
  transition: width 0.25s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--ink); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: all 0.3s;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--paper);
    padding: 16px 0;
  }
  .nav-menu.open { display: flex; }
  .nav-link {
    padding: 12px clamp(24px, 5vw, 80px);
    font-size: 11px;
  }
  .nav-hamburger { display: flex; }
}

/* ── HERO ─────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.hero-eyebrow-line {
  width: 32px; height: 1px;
  background: var(--pin);
}
.hero-title {
  
  font-weight: 300;
  font-size: clamp(72px, 12vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.hero-title span { color: var(--pin); }
.hero-subtitle {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.hero-subtext {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-mid);
  max-width: 560px;
  margin-bottom: clamp(32px, 5vw, 64px);
  line-height: 1.6;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--paper);
  padding-bottom: 4px;
  transition: border-color 0.25s, color 0.25s;
}
.hero-cta:hover { color: var(--pin); border-color: var(--pin); }
.hero-cta svg { transition: transform 0.25s; }
.hero-cta:hover svg { transform: translateX(4px); }

.hero-meta {
  position: absolute;
  bottom: 48px; right: clamp(24px, 5vw, 80px);
  z-index: 2;
  text-align: right;
}
.hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.erc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--erc-blue);
}
.hero-scroll {
  position: absolute;
  bottom: 48px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bobScroll 2s ease-in-out infinite;
}
.hero-scroll span {
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ink-light), transparent);
}
@keyframes bobScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── INTRO / WHAT IS PINPOINT ─────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}
@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; }
}
.intro-left {}
.intro-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.intro-title {
  
  font-weight: 300;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.005em;
  margin-bottom: 32px;
}
.intro-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-mid);
  margin-bottom: 20px;
}
.intro-right {}
.pillars-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--off-white);
}
.pillar-item:first-child { border-top: 1px solid var(--off-white); }
.pillar-number {
  
  font-size: 11px;
  font-weight: 300;
  color: var(--pin);
  letter-spacing: 0.1em;
  min-width: 28px;
  padding-top: 3px;
}
.pillar-content {}
.pillar-title {
  
  font-weight: 300;
  font-size: 18px;
  margin-bottom: 6px;
}
.pillar-text {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
}

/* ── KEY FACTS BAND ───────────────────────────── */
.facts-band {
  background: var(--ink);
  padding: clamp(40px, 6vw, 80px) 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
}
@media (max-width: 600px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
}
.fact-item {
  padding: 32px 40px;
  background: var(--ink);
}
.fact-value {
  
  font-weight: 300;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.fact-label {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.fact-item.accent .fact-value { color: var(--pin); }

/* ── LATEST NEWS / BLOG ───────────────────────── */
.news-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.news-header-right {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pin);
  border-bottom: 1px solid var(--pin);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.news-header-right:hover { opacity: 0.6; }

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--col-gap);
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card { cursor: pointer; }
.news-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--off-white);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}
.news-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-image img { transform: scale(1.04); }
.news-card-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
}
.news-card:first-child .news-card-image { aspect-ratio: 16/8; }

.news-card-tag {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pin);
  margin-bottom: 8px;
}
.news-card-title {
  
  font-weight: 300;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.25;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.news-card:hover .news-card-title { color: var(--pin); }
.news-card:first-child .news-card-title { font-size: clamp(20px, 3vw, 32px); }
.news-card-excerpt {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}
.news-card-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-light);
}

/* Small news cards */
.news-card-sm .news-card-image { aspect-ratio: 4/3; }

/* ── PAGE HEADER (inner pages) ────────────────── */
.page-header {
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 100px));
  padding-bottom: clamp(32px, 5vw, 64px);
}
.page-header-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 768px) {
  .page-header-inner { grid-template-columns: 1fr; gap: 24px; }
}
.page-header-label { margin-bottom: 16px; }
.page-header-title {
  
  font-weight: 300;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.page-header-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-mid);
  max-width: 50ch;
  align-self: end;
}

/* ── ABOUT PAGE ───────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 80px;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
.about-body { font-size: 14px; font-weight: 300; line-height: 1.9; color: var(--ink-mid); }
.about-body p + p { margin-top: 1.4em; }

.about-sidebar {}
.sidebar-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--off-white);
}
.sidebar-block:first-child { padding-top: 0; border-top: none; }
.sidebar-title {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.sidebar-content {
  
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.sidebar-content a { border-bottom: 1px solid var(--paper); transition: border-color 0.2s, color 0.2s; }
.sidebar-content a:hover { color: var(--pin); border-color: var(--pin); }

.address-block {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-mid);
}
.address-block strong { color: var(--ink); font-weight: 400; }

.erc-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--paper);
  border-radius: 2px;
}
.erc-badge-dot {
  width: 36px; height: 36px;
  background: var(--erc-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.erc-badge-dot span {
  color: white;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.erc-badge-text { font-size: 11px; font-weight: 300; line-height: 1.5; color: var(--ink-mid); }
.erc-badge-text strong { display: block; color: var(--ink); font-weight: 400; font-size: 12px; }

/* ── RESEARCH PAGE ────────────────────────────── */
.research-themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper);
  border: 1px solid var(--paper);
  margin-bottom: clamp(48px, 7vw, 96px);
}
@media (max-width: 768px) {
  .research-themes { grid-template-columns: 1fr; }
}
.theme-card {
  background: var(--white);
  padding: 40px 36px;
}
.theme-number {
  
  font-size: 48px;
  font-weight: 300;
  color: var(--off-white);
  line-height: 1;
  margin-bottom: 16px;
}
.theme-title {
  
  font-weight: 300;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.theme-text {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-mid);
}

.publications-list {}
.pub-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--off-white);
  align-items: start;
}
.pub-year {
  
  font-size: 13px;
  font-weight: 300;
  color: var(--pin);
  min-width: 44px;
  padding-top: 2px;
}
.pub-details {}
.pub-title {
  
  font-weight: 300;
  font-size: 18px;
  margin-bottom: 6px;
}
.pub-authors {
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-mid);
  margin-bottom: 4px;
}
.pub-journal {
  font-size: 11px;
  font-weight: 300;
  font-style: italic;
  
  color: var(--ink-light);
}

/* ── PORTRAITS PAGE ───────────────────────────── */
.portraits-stage {
  position: relative;
  padding-bottom: 80px;
}

/* PI row */
.portraits-pi {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}
/* Team rows */
.portraits-row {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* String canvas overlay */
#string-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Portrait card */
.portrait-card {
  position: relative;
  z-index: 2;
  width: 200px;
  perspective: 1000px;
  cursor: pointer;
}
.portrait-card.pi-card { width: 220px; }

.pin-top {
  display: flex;
  justify-content: center;
  margin-bottom: -6px;
  position: relative;
  z-index: 3;
}

.card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}
.portrait-card:hover .card-inner,
.portrait-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--paper);
  border-radius: 2px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
}
.card-front {
  padding-bottom: 24px;
}
.card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portrait-photo {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--off-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 2px 2px 0 0;
}
.portrait-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.portrait-initials {
  
  font-size: 36px;
  font-weight: 300;
  color: var(--ink-light);
  letter-spacing: 0.05em;
}
.pi-card .portrait-initials { font-size: 42px; }

.card-info {
  padding: 16px 16px 0;
  text-align: center;
}
.card-name {
  
  font-weight: 300;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 4px;
}
.pi-card .card-name { font-size: 18px; }
.card-role {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pin);
}

.card-back-name {
  
  font-weight: 300;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.card-back-role {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pin);
  margin-bottom: 14px;
}
.card-bio {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
  flex: 1;
  margin-bottom: 16px;
}
.card-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-link {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  border-bottom: 1px solid var(--paper);
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s, border-color 0.2s;
}
.card-link:hover { color: var(--pin); border-color: var(--pin); }
.card-link-arrow { opacity: 0.5; }
.flip-hint {
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: center;
  margin-top: 8px;
  opacity: 0.6;
}

/* ── CONTACT PAGE ─────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {}
.form-group {
  margin-bottom: 28px;
}
.form-label {
  display: block;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--paper);
  padding: 8px 0 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--ink-light); font-weight: 300; }
.form-input:focus,
.form-textarea:focus { border-color: var(--pin); }
.form-textarea { min-height: 100px; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}
.btn-submit:hover { background: var(--pin); }

.contact-info {}
.contact-info-block {
  margin-bottom: 40px;
}
.contact-map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--off-white);
  border: 1px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,200,195,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,200,195,0.4) 1px, transparent 1px);
  background-size: 30px 30px;
}
.map-pin-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.map-address-text {
  font-size: 10px;
  font-weight: 300;
  text-align: center;
  color: var(--ink-mid);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── BLOG / POST PAGE ─────────────────────────── */
.blog-hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(32px, 5vw, 64px);
}
.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.blog-tag {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pin);
  border: 1px solid var(--pin);
  padding: 3px 10px;
}
.blog-date {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--ink-light);
}
.blog-read-time {
  font-size: 10px;
  font-weight: 300;
  color: var(--ink-light);
}
.blog-title-large {
  
  font-weight: 300;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: 820px;
}
.blog-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-light);
  border: 1px solid var(--paper);
}
.author-name {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink);
}
.author-affil {
  font-size: 10px;
  font-weight: 300;
  color: var(--ink-light);
}

.blog-featured-image {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/7;
  background: var(--off-white);
  overflow: hidden;
  margin: 0 auto clamp(48px, 7vw, 80px);
  border: 1px solid var(--paper);
}
.blog-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: clamp(40px, 7vw, 96px);
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
}

.blog-content {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-mid);
}
.blog-content p { margin-bottom: 1.5em; }
.blog-content h2 {
  
  font-weight: 300;
  font-size: 28px;
  color: var(--ink);
  margin: 2.5em 0 0.75em;
  letter-spacing: -0.01em;
}
.blog-content h3 {
  
  font-weight: 300;
  font-size: 21px;
  color: var(--ink);
  margin: 2em 0 0.6em;
}
.blog-content blockquote {
  border-left: 2px solid var(--pin);
  padding: 4px 0 4px 24px;
  margin: 2em 0;
  
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.blog-content a {
  border-bottom: 1px solid var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}
.blog-content a:hover { color: var(--pin); border-color: var(--pin); }

.blog-sidebar {}
.blog-sidebar-section { margin-bottom: 40px; }
.blog-sidebar-title {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--off-white);
}
.blog-toc-list { display: flex; flex-direction: column; gap: 8px; }
.blog-toc-item {
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-mid);
  padding-left: 12px;
  border-left: 1px solid transparent;
  line-height: 1.4;
  transition: color 0.2s, border-color 0.2s;
}
.blog-toc-item:hover,
.blog-toc-item.active { color: var(--pin); border-color: var(--pin); }
.blog-toc-item a { display: block; }

.blog-author-card {
  margin-top: clamp(48px, 7vw, 96px);
  padding: 32px;
  border: 1px solid var(--paper);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.blog-author-avatar-lg {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: 24px;
  font-weight: 300;
  color: var(--ink-light);
  flex-shrink: 0;
  border: 1px solid var(--paper);
}
.blog-author-info {}
.blog-author-name-lg {
  
  font-weight: 300;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
}
.blog-author-role-lg {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pin);
  margin-bottom: 12px;
}
.blog-author-bio-lg {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
}

/* Related posts */
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}
@media (max-width: 640px) {
  .related-posts-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--ink);
  padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 4vw, 48px);
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(32px, 5vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: clamp(24px, 4vw, 40px);
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand {}
.footer-logo-name {
  
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 0.18em;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand-desc {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.35);
  max-width: 28ch;
  margin-bottom: 24px;
}
.footer-erc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.footer-erc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--erc-blue);
}
.footer-col-title {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-link {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col-link:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  font-size: 10px;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-link {
  font-size: 10px;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.footer-bottom-link:hover { color: rgba(255,255,255,0.6); }

/* ── UTILITIES ────────────────────────────────── */
.text-pin { color: var(--pin); }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 48px; }

/* page entrance animation */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 480px) {
  .portrait-card { width: 160px; }
  .portrait-card.pi-card { width: 180px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact-item { padding: 24px 20px; }
}
