/* ==========================================================================
   Cambridge Commercialisation
   Editorial / refined-minimal aesthetic
   ========================================================================== */

:root {
  /* Palette: deep Cambridge ink, warm paper, single oxblood accent */
  --ink:        #0e1a2b;     /* deep navy-ink — primary text & dark sections */
  --ink-soft:   #2a3a52;
  --ink-mute:   #6a7589;

  --paper:      #f4ede1;     /* warm cream — primary background */
  --paper-deep: #e9dfcb;
  --paper-edge: #d8caaf;

  --bone:       #fbf7ef;     /* lightest background — for cards on cream */

  --accent:     #8b2e2a;     /* oxblood — on light/cream backgrounds */
  --accent-deep:#6b201d;
  --accent-pale:#c4604e;    /* lighter red-brown — legible on dark navy (#22) */

  --rule:       rgba(14, 26, 43, 0.18);
  --rule-soft:  rgba(14, 26, 43, 0.10);

  /* Type */
  --serif: "Fraunces", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max:    1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* keep section heads clear of the sticky nav */
}
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper texture — very subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(139,46,42,0.04) 0, transparent 40%),
    radial-gradient(circle at 85% 88%, rgba(14,26,43,0.05) 0, transparent 45%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
em { font-style: italic; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(244, 237, 225, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
}

.nav__mark {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  letter-spacing: 0.01em;
}
.nav__mark-cc {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav__mark-full {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

@media (max-width: 720px) {
  .nav__mark-full { display: none; }
  .nav { padding: 1rem 1rem; gap: 0.75rem; }
  .nav__links { gap: 0.85rem; }
  .nav__links a { font-size: 0.66rem; letter-spacing: 0.08em; }
}
@media (max-width: 380px) {
  .nav { padding: 0.85rem 0.85rem; }
  .nav__links { gap: 0.55rem; }
  .nav__links a { font-size: 0.6rem; letter-spacing: 0.06em; }
}

/* ==========================================================================
   SHARED — eyebrows, section heads, buttons
   ========================================================================== */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
}
.eyebrow--hero { color: var(--accent); }
.eyebrow--inverse { color: var(--accent-pale); }   /* pale on dark bg (#22) */
.eyebrow--mid { margin-top: 3rem; }

.section-head { max-width: 880px; margin-bottom: 4rem; }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.section-title--inverse { color: var(--bone); }
.section-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.4;
  color: var(--paper-edge);
  margin: 1.5rem 0 0;
  max-width: 56ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  border: 1px solid var(--ink);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 9rem var(--gutter) 0;
  max-width: var(--max);
  margin: 0 auto;
}

/* hero__rule removed */

.hero__inner {
  max-width: 1100px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 8.5vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 3rem;
  color: var(--ink);
}
.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero__line--1 { animation-delay: 0.25s; }
.hero__line--2 { animation-delay: 0.45s; padding-left: clamp(0px, 8vw, 6rem); }
.hero__line--3 { animation-delay: 0.65s; padding-left: clamp(0px, 18vw, 12rem); color: var(--accent); font-style: italic; }
.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 0.95s forwards;
}
.hero__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.55vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}
.hero__lede strong {
  font-weight: 500;
  color: var(--ink);
}
.hero__lede em {
  font-style: italic;
  color: var(--accent);
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* hero__credentials removed */

@media (max-width: 760px) {
  .hero { padding-top: 7rem; min-height: auto; }
  .hero__meta { grid-template-columns: 1fr; }
  .hero__cta { justify-content: flex-start; }
  .hero__line--2, .hero__line--3 { padding-left: 0; }
}

/* ==========================================================================
   HERO PHOTOS — portrait + Cambridge cityscape strip
   Both images are INLINE SVG (in index.html) — they cannot fail to load.
   ========================================================================== */
.hero__photos {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  overflow: hidden;
  max-width: var(--max);
}

.hero__photo {
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  /* Lock a clean ratio so the image always has a visible canvas */
  height: 360px;
}

/* Portrait headshot */
.hero__photo--portrait {
  background: var(--paper-deep);
  border-right: 1px solid var(--rule);
}
/* Both <svg> (inline) and <img> get the same treatment.
   object-position keeps the face in view when the image is cropped. */
.hero__portrait-svg,
.hero__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Cambridge cityscape */
.hero__photo--cambridge {
  background: #1a2d45;
  position: relative;
}
.hero__cityscape-svg,
.hero__cityscape {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero__photo-caption {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(251, 247, 239, 0.55);
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .hero__photos {
    grid-template-columns: 200px 1fr;
  }
  .hero__photo { height: 300px; }
}
@media (max-width: 600px) {
  .hero__photos {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .hero__photo--portrait {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    height: 360px;     /* taller on mobile so the portrait shows fully */
  }
  .hero__photo--cambridge {
    height: 200px;     /* landscape image — shorter is fine */
  }
}

/* ==========================================================================
   APPROACH
   ========================================================================== */
.approach {
  padding: 7rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.approach__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.theme {
  padding: 3.5rem 2.5rem;
  position: relative;
}
.theme--primary {
  background: var(--ink);
  color: var(--bone);
  border-right: 1px solid var(--ink);
}
.theme--secondary {
  background: var(--bone);
  color: var(--ink);
}
/* theme__tag removed per item #5 */
.theme__title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);   /* reduced so each title fits on one line (#6) */
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  white-space: nowrap;
}
/* single-line variant — used in updated HTML */
.theme__title--single {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme--primary .theme__title { color: var(--bone); }
.theme--secondary .theme__title { color: var(--accent); }
.theme__body {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 42ch;
  margin: 0;
}
.theme--primary .theme__body { color: rgba(251, 247, 239, 0.78); }
.theme--secondary .theme__body { color: var(--ink-soft); }

.capabilities {
  margin-top: 4rem;
}
.capabilities__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.capabilities__list li {
  background: var(--paper);
  padding: 2rem 1.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cap-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .approach__grid { grid-template-columns: 1fr; }
  .theme--primary { border-right: none; border-bottom: 1px solid var(--ink); }
  .capabilities__list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PILLARS  — dark inverted section
   ========================================================================== */
.pillars {
  background: var(--ink);
  color: var(--bone);
  padding: 7rem var(--gutter);
  position: relative;
  overflow: hidden;
}
.pillars::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 80% 0%, rgba(139,46,42,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(139,46,42,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.pillars > * { position: relative; z-index: 1; }
.pillars .section-head { margin: 0 auto 4.5rem; max-width: var(--max); }

.section-head--inverse .section-title { color: var(--bone); }

.pillars__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid rgba(251, 247, 239, 0.15);
}

.pillar {
  padding: 3rem 2.25rem;
  border-right: 1px solid rgba(251, 247, 239, 0.15);
  position: relative;
  transition: background 0.35s ease;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(251, 247, 239, 0.025); }

.pillar--featured {
  background: rgba(251, 247, 239, 0.04);
}
.pillar--featured::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: var(--accent-pale);   /* lighter on dark bg (#22) */
}

.pillar__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent-pale);         /* lighter on dark bg (#22) */
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
}

.pillar__role {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-edge);
  margin: 0 0 0.5rem;
  opacity: 0.75;
}
.pillar__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--bone);
}
.pillar__years {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--paper-edge);
  opacity: 0.7;
  margin: 0 0 1.5rem;
}
.pillar__body {
  font-size: 0.97rem;
  line-height: 1.6;
  color: rgba(251, 247, 239, 0.78);
  margin: 0 0 1.75rem;
}
.pillar__body em {
  font-style: italic;
  color: var(--bone);
  font-weight: 500;
}
.pillar__pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pillar__pills li {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(251, 247, 239, 0.2);
  color: var(--paper-edge);
  border-radius: 999px;
}

@media (max-width: 960px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid rgba(251, 247, 239, 0.15); }
  .pillar:last-child { border-bottom: none; }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  padding: 7rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.service {
  grid-column: span 2;
  padding: 3rem 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  transition: background 0.3s ease;
}
.service:hover { background: var(--bone); }

/* When there are 5 service cards + 1 quote: row 1 is 3 cards (span 2 each),
   row 2 is 2 cards spanning 3 columns each, then quote spans full row. */
.service:nth-of-type(4),
.service:nth-of-type(5) {
  grid-column: span 3;
}

.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0 0 1.5rem;
  letter-spacing: 0.05em;
}
.service__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.service__body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.service--quote {
  grid-column: 1 / -1;
  padding: 4.5rem 3rem;
  background: var(--ink);
  color: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service--quote:hover { background: var(--ink); }
.service--quote blockquote {
  margin: 0;
  max-width: 880px;
  text-align: center;
}
.service--quote p {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  color: var(--bone);
}
.service--quote cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 960px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service { grid-column: span 1 !important; }
  .service--quote { grid-column: 1 / -1 !important; }
}
@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .service { grid-column: span 1 !important; }
  .service--quote { grid-column: 1 !important; padding: 3rem 1.5rem; }
}

/* Notable Work section removed per item #19 */

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  background: var(--ink);
  color: var(--bone);
  padding: 8rem var(--gutter);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 50%, rgba(139,46,42,0.22) 0%, transparent 50%);
  pointer-events: none;
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact__lead { max-width: 24rem; }

.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  color: var(--bone);
}
.contact__title em {
  font-style: italic;
  color: var(--accent-pale);   /* pale on dark bg (#22) */
}

.contact__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--paper-edge);
  opacity: 0.85;
  margin: 0;
  max-width: 36ch;
}

.contact__card {
  background: rgba(251, 247, 239, 0.04);
  border: 1px solid rgba(251, 247, 239, 0.15);
  padding: 3rem 2.5rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.contact__label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-edge);
  margin: 0 0 1.25rem;
  opacity: 0.7;
}

/* Email reveal — anti-bot interaction button */
.email-reveal {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px dashed rgba(251, 247, 239, 0.3);
  padding: 1.25rem 1.5rem;
  color: var(--bone);
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.005em;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 4rem;
  min-width: 0;          /* allow shrinking inside grid/flex parents */
  overflow: hidden;
}
.email-reveal:hover {
  border-color: var(--accent-pale);
  background: rgba(139, 46, 42, 0.12);
}
.email-reveal.is-revealed {
  border-style: solid;
  border-color: var(--accent-pale);
  background: rgba(139, 46, 42, 0.12);
  cursor: text;
  user-select: text;
}
.email-reveal__cover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}
.email-reveal__dots {
  color: var(--paper-edge);
  opacity: 0.6;
  font-family: monospace;
  letter-spacing: 0.05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 0;
}
.email-reveal__cta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-pale);   /* pale on dark bg (#22) */
  flex-shrink: 0;
  white-space: nowrap;
}
.email-reveal__value {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bone);
  word-break: break-all;
}
.email-reveal__value a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--accent-pale);
  text-underline-offset: 4px;
}
.email-reveal__value a:hover { color: var(--accent-pale); }

.contact__meta {
  list-style: none;
  padding: 2rem 0 0;
  margin: 2.25rem 0 0;
  border-top: 1px solid rgba(251, 247, 239, 0.12);
  display: grid;
  gap: 0.85rem;
  font-size: 0.92rem;
}
.contact__meta li {
  display: flex;
  gap: 1rem;
  color: var(--bone);
}
.contact__meta li span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-edge);
  opacity: 0.6;
  min-width: 6rem;
  padding-top: 2px;
}
.contact__meta a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--accent-pale);   /* pale on dark (#22) */
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.contact__meta a:hover { color: var(--accent-pale); }

@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact__lead { max-width: 100%; }
}
@media (max-width: 600px) {
  .contact { padding: 5rem var(--gutter); }
  .contact__card { padding: 2rem 1.5rem; }
  .contact__meta li { flex-direction: column; gap: 0.15rem; }
  .contact__meta li span { min-width: 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--paper-deep);
  padding: 3.5rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--rule);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.footer__mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.footer__tag {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  font-style: italic;
}
.footer__legal {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin: 0;
}
.footer__legal a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 0.5rem;
  transition: opacity 0.2s ease;
}
.footer__legal a:hover { opacity: 0.7; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Scroll reveal helper (added by JS)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Print */
@media print {
  .nav, .contact::before, .pillars::before, body::before { display: none; }
  body { background: white; color: black; }
}
