/* ============================================================
   Eduard Blanco — landing
   Built on Claude design tokens (DESIGN.md):
     - Dark canvas: surface-dark + on-dark family
     - Accent: primary coral #cc785c
     - Display serif (Cormorant Garamond = Copernicus substitute)
     - Inter for body, eyebrow, UI
   ============================================================ */

/* ---- Self-hosted display fonts (SIL OFL, see assets/fonts/) ---- */
@font-face {
  font-family: "Bruno Ace";
  src: url("assets/fonts/BrunoAce-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bruno Ace SC";
  src: url("assets/fonts/BrunoAceSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surface */
  --color-canvas:               #faf9f5;
  --color-surface-soft:         #f5f0e8;
  --color-surface-card:         #efe9de;
  --color-surface-dark:         #181715;
  --color-surface-dark-elevated:#252320;
  --color-surface-dark-soft:    #1f1e1b;

  /* Coral */
  --color-primary:        #cc785c;
  --color-primary-active: #a9583e;

  /* Text */
  --color-ink:        #141413;
  --color-body:       #3d3d3a;
  --color-on-dark:    #faf9f5;
  --color-on-dark-soft:#a09d96;

  /* Hairlines */
  --hair-on-dark:        rgba(250, 249, 245, 0.08);
  --hair-on-dark-strong: rgba(250, 249, 245, 0.18);
  --body-on-dark:        rgba(250, 249, 245, 0.55);

  /* Type families */
  --font-display: "Cormorant Garamond", "Tiempos Headline", Garamond, "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Branded display fonts (self-hosted) + system Impact stack */
  --font-bruno:    "Bruno Ace", Impact, "Arial Narrow Bold", sans-serif;
  --font-bruno-sc: "Bruno Ace SC", Impact, "Arial Narrow Bold", sans-serif;
  --font-impact:   Impact, "Haettenschweiler", "Arial Narrow Bold", "Oswald", sans-serif;

  /* Radius */
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  20px;
  --radius-pill: 9999px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --section-pad-x: clamp(20px, 4vw, 48px);

  --container-max: 1400px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-surface-dark);
  color: var(--color-on-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.skip-to-content {
  position: absolute;
  left: -10000px;
  top: auto;
}
.skip-to-content:focus {
  left: 16px;
  top: 16px;
  background: var(--color-canvas);
  color: var(--color-ink);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  z-index: 1000;
}

/* ============================================================
   TOP NAV — mix-blend-mode: difference
   ============================================================ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 40px) 16px;
  font-family: var(--font-bruno);
  mix-blend-mode: difference;
  pointer-events: none;
  color: #ffffff;
}
.top-nav .brand,
.top-nav a,
.top-nav button {
  pointer-events: auto;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-cluster {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { transition: opacity .2s ease; }
.nav-links a:hover { opacity: 0.7; }

.nav-divider {
  width: 1px;
  height: 12px;
  background-color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}
.lang-switcher button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  text-decoration: none;
  transition: opacity .25s ease, text-decoration .25s ease;
}
.lang-switcher button.active {
  opacity: 1;
  text-decoration: underline 1px;
  text-underline-offset: 4px;
}
.lang-switcher button:hover { opacity: 1; }
.lang-sep {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  user-select: none;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-color: #000;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0,0,0,0.18);
  pointer-events: none;
}
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  z-index: 5;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
}

/* Marquee — at vertical center, very large, blended */
.hero-marquee {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 4;
  transform: translateY(-50%);
  overflow: hidden;
  white-space: nowrap;
  mix-blend-mode: difference;
  pointer-events: none;
  color: #ffffff;
}
.hero-marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marqueeScroll 90s linear infinite;
}
.hero-marquee-track > span {
  display: inline-block;
  flex-shrink: 0;
  font-family: var(--font-bruno-sc);
  font-size: clamp(120px, 22vw, 380px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.06em;
  user-select: none;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Bottom-left: location tag */
.hero-location-tag {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 10;
  color: #fff;
  font-family: var(--font-bruno);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Bottom-right: role lines (visual title) */
.hero-role {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 10;
  text-align: right;
  color: rgba(255,255,255,0.95);
}
.hero-role .reveal-line {
  overflow: hidden;
  padding-bottom: 1px;
}
.hero-role .reveal {
  display: block;
  font-family: var(--font-bruno);
  font-size: clamp(26px, 2.4vw, 60px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

@media (max-width: 640px) {
  .hero-location-tag { left: 20px; bottom: 24px; font-size: 11px; }
  .hero-role { right: 20px; bottom: 24px; }
}

/* ============================================================
   SECTION — generic dark band
   ============================================================ */
.section {
  position: relative;
  background-color: var(--color-surface-dark);
  padding-top: 48px;
  padding-bottom: clamp(80px, 8vw, 140px);
  overflow: hidden;
}
.section--last { padding-bottom: clamp(120px, 12vw, 200px); }

.section-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 120px) var(--section-pad-x) 0;
}
.section-inner--wide {
  max-width: var(--container-max);
}

/* ---------- Eyebrow (sticky on the left, 0-height overlay) ---------- */
.eyebrow {
  margin: 0;
}
.eyebrow--sticky {
  position: sticky;
  top: calc(48px + 8px);
  z-index: 10;
  padding-left: var(--section-pad-x);
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.eyebrow-inner {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 0.6vw, 12px);
  font-family: var(--font-sans);
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  pointer-events: auto;
}
.eyebrow .eyebrow-line {
  display: inline-block;
  width: clamp(16px, 1.5vw, 24px);
  height: 1px;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

/* ---------- Block header ---------- */
.block-header {
  max-width: 1000px;
  margin: 0 0 clamp(64px, 8vw, 140px);
}
.lede {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--body-on-dark);
  max-width: 560px;
  margin: clamp(28px, 3vw, 48px) 0 0;
}

/* ---------- Display headline (HUGE serif) ---------- */
.display-xl {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--color-on-dark);
  margin: 0;
}
.display-xl em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-primary);
}

/* Reveal line: ensures the overflow:hidden clip wraps single line */
.reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 2px;
}
.reveal {
  display: inline-block;
  will-change: transform, opacity;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              opacity   1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in {
  transform: translateY(0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; opacity: 1; transition: none; }
}

/* ============================================================
   ABOUT
   ============================================================ */
#about .about-body {
  max-width: 680px;
  margin-top: clamp(40px, 4vw, 64px);
}
#about .about-body p {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--body-on-dark);
  margin: 0 0 clamp(16px, 2vw, 28px);
}
#about .about-body p:last-child { margin-bottom: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.service-list { width: 100%; }

.service-block {
  padding-top: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 80px);
}
.service-hr {
  height: 1px;
  background-color: var(--hair-on-dark);
  width: 100%;
}
.service-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 65px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--color-on-dark);
  margin: 0 0 clamp(24px, 3vw, 48px);
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 80px);
  align-items: start;
}
.service-body {
  max-width: 520px;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--body-on-dark);
  margin: 0;
}

/* Shiny pill tags */
.shiny-tags {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 0.8vw, 12px);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.shiny-tags li {
  display: inline-block;
  position: relative;
  border-radius: var(--radius-pill);
  padding: 1px;
  background: conic-gradient(
    from var(--shiny-angle, 0deg),
    rgba(204, 120, 92, 0.04) 0%,
    rgba(204, 120, 92, 0.12) 4%,
    rgba(204, 120, 92, 0.45) 9%,
    rgba(204, 120, 92, 0.8) 13%,
    rgba(204, 120, 92, 0.45) 17%,
    rgba(204, 120, 92, 0.12) 22%,
    rgba(204, 120, 92, 0.04) 30%,
    rgba(204, 120, 92, 0.04) 100%
  );
  animation: shinyBorderRotate 6s linear infinite;
  box-shadow: 0 0 12px rgba(204, 120, 92, 0.08),
              0 0 28px rgba(204, 120, 92, 0.04);
  transition: box-shadow .5s ease;
}
.shiny-tags li:hover {
  box-shadow: 0 0 18px rgba(204, 120, 92, 0.22),
              0 0 40px rgba(204, 120, 92, 0.10);
}
.shiny-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(250, 249, 245, 0.6);
  background-color: var(--color-surface-dark);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  white-space: nowrap;
  transition: color .4s ease;
}
.shiny-tags li:hover .shiny-tag { color: rgba(250, 249, 245, 0.92); }

@property --shiny-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes shinyBorderRotate {
  0%   { --shiny-angle: 0deg; }
  100% { --shiny-angle: 360deg; }
}

@media (max-width: 768px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-title { white-space: normal; }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 56px);
}
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 32px);
}
.project-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  aspect-ratio: 16 / 10;
  background-color: var(--color-surface-dark-elevated);
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .project-cover img { transform: scale(1.03); }

.project-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.project-stamp {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-on-dark-soft);
  margin: 0;
}
.project-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-on-dark);
  margin: 0;
}
.project-desc {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.55;
  color: var(--body-on-dark);
  margin: 0;
}
.project-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-bullets li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--body-on-dark);
}
.project-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 1px;
  background-color: var(--color-primary);
}

/* "See all projects" CTA below the grid */
.projects-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(48px, 5vw, 80px);
}
.see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-on-dark);
  text-decoration: none;
  padding: 10px 0 10px;
  border-bottom: 1px solid var(--hair-on-dark-strong);
  transition: color .25s ease, border-color .25s ease, gap .25s ease;
}
.see-all-link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  gap: 20px;
}
.see-all-arrow {
  display: inline-block;
  transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1);
}
.see-all-link:hover .see-all-arrow { transform: translateX(4px); }

/* Chip lists (tags + colleague descriptors) */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chip-list li {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-on-dark-soft);
  background-color: rgba(250, 249, 245, 0.05);
  border: 1px solid var(--hair-on-dark);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

/* ============================================================
   TEACHING — cards wrapped in a shiny rotating coral border
   (same pattern as .shiny-tags but scaled to full cards)
   ============================================================ */
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.2vw, 20px);
}
@media (max-width: 900px) { .teaching-grid { grid-template-columns: 1fr; } }

.teach-card {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 1.5px;
  background: conic-gradient(
    from var(--shiny-angle, 0deg),
    rgba(204, 120, 92, 0.04) 0%,
    rgba(204, 120, 92, 0.12) 4%,
    rgba(204, 120, 92, 0.45) 9%,
    rgba(204, 120, 92, 0.80) 13%,
    rgba(204, 120, 92, 0.45) 17%,
    rgba(204, 120, 92, 0.12) 22%,
    rgba(204, 120, 92, 0.04) 30%,
    rgba(204, 120, 92, 0.04) 100%
  );
  animation: shinyBorderRotate 9s linear infinite;
  box-shadow:
    0 0 18px rgba(204, 120, 92, 0.08),
    0 0 36px rgba(204, 120, 92, 0.04);
  transition: box-shadow .5s ease, transform .5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
  display: flex;
  min-height: clamp(360px, 38vw, 560px);
}
.teach-card:hover {
  box-shadow:
    0 0 26px rgba(204, 120, 92, 0.22),
    0 0 56px rgba(204, 120, 92, 0.12),
    0 0 96px rgba(204, 120, 92, 0.06);
  transform: translateY(-4px);
}

.teach-card-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  background-color: var(--color-surface-dark-elevated);
  border-radius: calc(var(--radius-2xl) - 1.5px);
  padding: clamp(24px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 2vw, 32px);
  color: var(--color-on-dark);
  transition: background-color .4s ease, color .4s ease;
}
/* Coral fill on hover (replaces the old permanent .teach-card--coral). */
.teach-card:hover .teach-card-inner {
  background-color: var(--color-primary);
  color: var(--color-canvas);
}

.teach-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.teach-card-body {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.55;
  margin: 0;
  opacity: 0.92;
}
.teach-card-languages {
  font-family: var(--font-sans);
  font-size: clamp(12px, 0.85vw, 14px);
  line-height: 1.55;
  color: var(--color-on-dark-soft);
  margin: clamp(14px, 1.6vw, 20px) 0 0;
  padding-top: clamp(12px, 1.4vw, 18px);
  border-top: 1px solid var(--hair-on-dark);
}
.teach-card-languages strong {
  font-weight: 500;
  color: var(--color-on-dark);
  margin-right: 6px;
}
.teach-card:hover .teach-card-languages {
  color: rgba(250, 249, 245, 0.78);
  border-top-color: rgba(250, 249, 245, 0.22);
}
.teach-card:hover .teach-card-languages strong {
  color: var(--color-canvas);
}

/* ============================================================
   NICE TO MEET YOU
   ============================================================ */
.ntmy-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}
@media (max-width: 900px) {
  .ntmy-grid { grid-template-columns: 1fr; }
}
.ntmy-bio { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); }

.ntmy-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin: 0 0 clamp(12px, 1.5vw, 24px);
  background-color: var(--color-surface-dark-elevated);
}
.ntmy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) contrast(1.05) brightness(0.85);
  transition: filter .8s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.ntmy-image:hover img {
  filter: grayscale(0) contrast(1.0) brightness(1.0);
  transform: scale(1.02);
}
.ntmy-strong {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--color-on-dark);
  margin: 0;
}
.ntmy-soft {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--body-on-dark);
  margin: 0;
}

.ntmy-list {
  margin: 0;
  border-top: 1px solid var(--hair-on-dark);
}
.ntmy-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: clamp(16px, 1.6vw, 24px) 0;
  border-bottom: 1px solid var(--hair-on-dark);
}
.ntmy-row dt {
  font-family: var(--font-sans);
  font-size: clamp(10px, 0.75vw, 12px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-on-dark);
  padding-top: 3px;
}
.ntmy-row dd {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.55;
  color: var(--color-on-dark);
}
.ntmy-row--tags dd { padding-top: 2px; }
@media (max-width: 640px) {
  .ntmy-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ============================================================
   PRINCIPLES
   ============================================================ */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.4vw, 24px);
}
@media (max-width: 768px) { .principles-grid { grid-template-columns: 1fr; } }

.principle-card {
  position: relative;
  overflow: hidden;
  background-color: rgba(250, 249, 245, 0.04);
  border: 1px solid var(--hair-on-dark);
  border-radius: var(--radius-2xl);
  padding: clamp(28px, 2.6vw, 48px);
  display: flex;
  flex-direction: column;
  min-height: clamp(220px, 18vw, 320px);
  transition: background-color .5s cubic-bezier(0.22,1,0.36,1),
              border-color .5s cubic-bezier(0.22,1,0.36,1);
}
.principle-card:hover {
  background-color: rgba(204, 120, 92, 0.06);
  border-color: rgba(204, 120, 92, 0.25);
}
.principle-num-ghost {
  position: absolute;
  top: -16px;
  right: clamp(16px, 2vw, 32px);
  font-family: var(--font-sans);
  font-size: clamp(120px, 10vw, 200px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(250, 249, 245, 0.03);
  pointer-events: none;
  user-select: none;
}
.principle-card:hover .principle-num-ghost { color: rgba(204, 120, 92, 0.10); }

.principle-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: clamp(12px, 0.78vw, 13px);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--body-on-dark);
  margin-bottom: clamp(16px, 1.5vw, 24px);
}
.principle-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-on-dark);
  margin: 0;
}
.principle-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: clamp(20px, 2vw, 40px);
  font-family: var(--font-sans);
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.55;
  color: var(--body-on-dark);
}

/* ============================================================
   LOOKING FOR
   ============================================================ */
.lf-list {
  border-top: 1px solid var(--hair-on-dark);
}
.lf-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: baseline;
  padding: clamp(28px, 2.5vw, 40px) 0;
  border-bottom: 1px solid var(--hair-on-dark);
  cursor: default;
  transition: background-color .4s ease;
}
.lf-row:hover {
  background-color: rgba(204, 120, 92, 0.03);
}
.lf-row-head {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 16px);
}
.lf-line {
  display: inline-block;
  width: 16px;
  height: 1.5px;
  background-color: var(--color-primary);
  flex-shrink: 0;
  opacity: 0.6;
  transition: width .4s ease, opacity .4s ease;
}
.lf-row:hover .lf-line { width: 28px; opacity: 1; }

.lf-row-head h3 {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--color-on-dark);
  margin: 0;
}
.lf-row p {
  font-family: var(--font-sans);
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--body-on-dark);
  max-width: 600px;
  margin: 0;
}
@media (max-width: 700px) {
  .lf-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================================
   TESTIMONIALS — CSS marquee band + simple card grid
   ============================================================ */

/* Marquee band — same mechanism as .hero-marquee: an inline-flex track
   of two identical halves animated with the shared marqueeScroll keyframe
   (translateX 0 → -50%), so text scrolls continuously right-to-left. */
.testi-marquee {
  overflow: hidden;
  white-space: nowrap;
  margin: clamp(40px, 5vw, 80px) 0 clamp(48px, 5vw, 96px);
  pointer-events: none;
  user-select: none;
  color: var(--color-on-dark);
}
.testi-marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marqueeScroll 45s linear infinite;
}
.testi-marquee-track > span {
  display: inline-block;
  flex-shrink: 0;
  font-family: var(--font-bruno-sc);   /* same as hero */
  font-size: clamp(56px, 11vw, 100px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.testi-marquee-sep {
  padding: 0 clamp(24px, 3vw, 56px);
  color: var(--color-primary);
  opacity: 0.6;
}

/* Card grid — normal document flow, default scroll-in via .reveal */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
  position: relative;
  background-color: rgba(250, 249, 245, 0.04);
  border: 1px solid rgba(250, 249, 245, 0.10);
  border-radius: 20px;
  padding: clamp(28px, 2.5vw, 44px) clamp(28px, 2.5vw, 40px) clamp(24px, 2.2vw, 36px);
  display: flex;
  flex-direction: column;
  box-shadow:
    rgba(0, 0, 0, 0.40) 0px 16px 48px,
    rgba(250, 249, 245, 0.06) 0px 1px 0px inset;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.testi-card > * { position: relative; z-index: 1; }
.testi-card:hover {
  border-color: rgba(250, 249, 245, 0.20);
  box-shadow:
    rgba(0, 0, 0, 0.50) 0px 24px 64px,
    rgba(250, 249, 245, 0.08) 0px 1px 0px inset;
}

/* Scroll-in reveal for cards — overrides the text-oriented base .reveal
   (inline-block / translateY(110%)) with a block-level fade-up. */
.testi-card.reveal {
  display: flex;
  transform: translateY(40px);
  opacity: 0;
  transition: transform .9s cubic-bezier(0.22, 1, 0.36, 1),
              opacity   .9s ease;
}
.testi-card.reveal.is-in {
  transform: translateY(0);
  opacity: 1;
}

/* Big decorative quote mark */
.testi-quote-mark {
  position: absolute;
  top: -36px;
  left: clamp(24px, 2.5vw, 44px);
  font-family: var(--font-display);
  font-size: clamp(120px, 9vw, 180px);
  font-weight: 500;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.30;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.testi-quote {
  margin: 0 0 clamp(16px, 1.8vw, 28px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 18px);
}
.testi-quote p {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-on-dark);
  margin: 0;
}

.testi-byline {
  margin-top: auto;   /* pin byline to card bottom regardless of quote length */
  border-top: 1px solid rgba(250, 249, 245, 0.10);
  padding-top: clamp(12px, 1.2vw, 20px);
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1.2vw, 22px);
  flex-wrap: wrap;
}
.testi-name {
  font-family: var(--font-sans);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-on-dark);
}
.testi-role {
  font-family: var(--font-sans);
  font-size: clamp(12px, 0.8vw, 13px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-on-dark-soft);
}

/* Hide empty quote paragraphs + empty roles so testimonials with a single
   quote / no role render cleanly without dead whitespace. */
.testi-quote p:empty { display: none; }
.testi-role:empty,
.testi-name:empty { display: none; }

/* Reduced-motion: show cards without the fade-up. The marquee keeps
   scrolling to match .hero-marquee (which has no reduced-motion override). */
@media (prefers-reduced-motion: reduce) {
  .testi-card.reveal { transform: none; opacity: 1; transition: none; }
}

/* ============================================================
   CONTACT (also serves as footer)
   ============================================================ */
.contact {
  position: relative;
  min-height: 100vh;
  background-color: var(--color-surface-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(80px, 10vh, 140px) var(--section-pad-x) clamp(64px, 7vh, 96px);
  overflow: hidden;
}
.contact-eyebrow {
  position: absolute;
  top: calc(48px + 12px);
  left: var(--section-pad-x);
  margin: 0;
  padding: 0;
}
.contact-title-wrap {
  padding-bottom: clamp(56px, 7vw, 120px);
  overflow: hidden;
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(96px, 16vw, 320px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--color-on-dark);
  margin: 0;
}
.contact-title .reveal-line { line-height: 0.78; }

.contact-links {
  position: absolute;
  bottom: clamp(64px, 7vh, 96px);
  right: var(--section-pad-x);
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
  z-index: 10;
}
.contact-links a {
  font-family: var(--font-bruno);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-on-dark);
  text-decoration: none;
  transition: color .25s ease;
}
.contact-links a:hover { color: var(--color-primary); }

.contact-legal {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
  z-index: 1;
}
.contact-legal a {
  font-family: var(--font-bruno);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-on-dark-soft);
  text-decoration: none;
  transition: color .25s ease;
}
.contact-legal a:hover { color: var(--color-on-dark); }

@media (max-width: 700px) {
  .contact-links {
    position: static;
    margin-top: var(--space-xl);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  .contact-legal {
    margin-top: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
  }
}

/* ============================================================
   Brand override: ALL section + card headings use Impact.
   Higher-specificity than the individual .display-xl / .service-title /
   etc rules above so it cascades over them without !important.
   ============================================================ */
h2[class], h3[class],
.lf-row-head h3 {
  font-family: var(--font-impact);
}

/* EXTRA: Added manually by the user */
.disabled-link {
  pointer-events: none; /* Prevents mouse clicks and hover effects */
  cursor: default;      /* Resets cursor icon */
  opacity: 0.5;         /* Visually indicates disabled state */
  text-decoration: none;
}

.contact-links a {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 10; /* Ensures no invisible overlay is blocking clicks */
}