/* ============================================================
   Corvus Talent - Editorial Light Theme
   ============================================================ */

/* Google Fonts are loaded via <link rel="preconnect"> + <link rel="stylesheet"> in each page head.
   Loading them here with @import chained a second blocking request behind this stylesheet. */
:root {
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --muted-soft: #9a9a9a;
  --paper: #fafaf7;
  --paper-warm: #f4f1ea;
  --rule: #e6e3dc;
  --rule-soft: #efece5;
  --accent: #B23A3A;
  --accent-deep: #8a2b2b;

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-name {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-name em {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 0.4rem;
  position: relative;
  top: -0.1em;
}

nav.primary ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

nav.primary a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

nav.primary a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav.primary a:hover { color: var(--accent); }
nav.primary a:hover::after,
nav.primary a.active::after { width: 100%; }
nav.primary a.active { color: var(--accent); }

/* Contact button-style treatment on desktop */
nav.primary li.nav-cta {
  margin-left: 0.6rem;
}

nav.primary li.nav-cta a {
  padding: 0.55rem 1.2rem;
  border: 1.5px solid #7a7a7a;
  color: var(--ink);
  background: transparent;
  font-weight: 500;
  transition: all 0.2s ease;
}

nav.primary li.nav-cta a:hover {
  background: var(--ink);
  color: var(--paper);
}

nav.primary li.nav-cta a::after {
  display: none;
}

nav.primary li.nav-cta a.active {
  background: transparent;
  color: var(--ink);
  border-color: #7a7a7a;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

@media (max-width: 760px) {
  nav.primary { display: none; }
  nav.primary.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  nav.primary.open ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem var(--gutter);
  }
  nav.primary.open li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  nav.primary.open li:last-child { border-bottom: none; }

  /* Reset nav-cta button styling on mobile - revert to normal dropdown link */
  nav.primary li.nav-cta { margin-left: 0; }
  nav.primary li.nav-cta a {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    font-weight: 400;
  }
  nav.primary li.nav-cta a:hover {
    background: transparent;
    color: var(--accent);
  }
  nav.primary li.nav-cta a.active {
    background: transparent;
    color: var(--accent);
  }
  .nav-toggle { display: block; }
}

/* ---------- Type Scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

h2.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2.section-title em {
  font-style: italic;
  color: var(--accent);
}

h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  letter-spacing: -0.005em;
}

p { margin-bottom: 1.1rem; color: var(--ink-soft); }

p.lede {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 4rem;
  }
}

.hero-meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.hero-meta strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.3rem;
}

/* ---------- Video Hero ---------- */
.hero-video {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0d0d0d;
  color: var(--paper);
  margin-top: 0;
}

.hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  /* Fallback background - shows during initial load before video plays */
  background-image: url("assets/lab-poster.jpg");
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}

.hero-video__media video,
.hero-video__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.85);
  transform: scale(1.04);
  /* Subtle Ken Burns drift - used both for video (extra motion) and as fallback for static image */
  animation: hero-drift 28s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.hero-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Bottom shadow for legibility of text */
    linear-gradient(180deg,
      rgba(13, 13, 13, 0.45) 0%,
      rgba(13, 13, 13, 0.30) 25%,
      rgba(13, 13, 13, 0.55) 70%,
      rgba(13, 13, 13, 0.85) 100%),
    /* Subtle warm tint to keep it from feeling dead grey */
    radial-gradient(ellipse 90% 60% at 70% 30%, rgba(178, 58, 58, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-video__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

.hero-video .container {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: clamp(5rem, 12vw, 8rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-video .display,
.hero-video h1 {
  color: var(--paper);
}

.hero-video .display em {
  color: var(--accent);
}

.hero-video .lede {
  color: rgba(250, 250, 247, 0.82);
}

.hero-video .eyebrow {
  color: var(--accent);
}

.hero-video .eyebrow::before {
  background: var(--accent);
}

.hero-video .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.hero-video .btn:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.hero-video .btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250, 250, 247, 0.5);
}

.hero-video .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.hero-video .hero-meta {
  color: rgba(250, 250, 247, 0.6);
  border-top-color: rgba(250, 250, 247, 0.2);
}

.hero-video .hero-meta strong {
  color: var(--paper);
}

/* Caption tag - subtle credit/label in corner of hero */
.hero-video__caption {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  top: clamp(5.5rem, 12vw, 7.5rem);
  z-index: 3;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.55);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

@media (max-width: 800px) {
  .hero-video__caption { display: none; }
}

/* Reduced-motion: stop drift and pause video */
@media (prefers-reduced-motion: reduce) {
  .hero-video__media video,
  .hero-video__media img {
    animation: none;
    transform: scale(1.02);
  }
}

/* ---------- Sections ---------- */
section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

section.divider-top {
  border-top: 1px solid var(--rule);
}

section.warm {
  background: var(--paper-warm);
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: end;
}

@media (min-width: 800px) {
  .section-intro {
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
  }
}

.section-intro p {
  font-size: 1.05rem;
  color: var(--muted);
}

/* ---------- Framework grid (How We Work) ---------- */
.framework {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
}

@media (min-width: 760px) {
  .framework {
    grid-template-columns: 1fr 1fr;
  }
}

.framework-card {
  padding: 2.4rem 2rem 2.4rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

@media (min-width: 760px) {
  .framework-card {
    padding: 2.6rem 2.4rem 2.6rem 0;
  }
  .framework-card:nth-child(odd) {
    border-right: 1px solid var(--rule);
    padding-right: 2.4rem;
  }
  .framework-card:nth-child(even) {
    padding-left: 2.4rem;
  }
}

.framework-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 1.4rem;
  opacity: 0.9;
}

.framework-icon svg {
  width: 100%;
  height: 100%;
}

.framework-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  display: block;
  letter-spacing: 0.02em;
}

.framework-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.framework-body {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  max-width: 50ch;
}

/* ---------- Testimonials page ---------- */
.testimonials-section {
  padding: 1rem 0;
}

.testimonials-header {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.testimonials-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
}

.testimonials-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}

.testimonials-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}

@media (min-width: 800px) {
  .testimonials-list {
    grid-template-columns: 1fr 1fr;
    gap: 2.8rem 4rem;
  }
  /* First quote spans full width and reads larger */
  .testimonials-list .quote:first-child {
    grid-column: 1 / -1;
  }
}

.quote {
  padding-left: 1.4rem;
  border-left: 2px solid var(--rule);
  transition: border-color 0.3s ease;
}

.quote:hover {
  border-left-color: var(--accent);
}

.quote-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 60ch;
}

@media (min-width: 800px) {
  .testimonials-list .quote:first-child .quote-text {
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    line-height: 1.4;
    font-weight: 300;
    max-width: 30ch;
  }
}

.quote-attrib {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Pillars / 3-up grid ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 800px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  padding: 2.2rem 1.8rem 2.4rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

@media (min-width: 800px) {
  .pillar {
    padding: 2.4rem 2rem 2.4rem 0;
    border-bottom: none;
    border-right: 1px solid var(--rule);
  }
  .pillar:last-child { border-right: none; }
  .pillar:not(:first-child) { padding-left: 2rem; }
}

.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: block;
}

.pillar h3 {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

/* ---------- Quote / Pullquote ---------- */
.pullquote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 28ch;
  color: var(--ink);
  position: relative;
  padding-left: 1.4rem;
}

.pullquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--accent);
}

.pullquote em {
  font-style: italic;
  color: var(--accent);
}

.pullquote-attrib {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.2rem;
  font-weight: 500;
}

/* ---------- Buttons / Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.7rem;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid #7a7a7a;
  transition: all 0.25s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
  transition: all 0.2s ease;
}

.arrow-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.arrow-link svg { transition: transform 0.25s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Team Cards ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 800px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
  }
}

@media (min-width: 1100px) {
  .team-grid {
    gap: 3.5rem;
  }
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--paper-warm);
  margin-bottom: 1.8rem;
  position: relative;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.02);
  transition: filter 0.4s ease, transform 0.6s ease;
}

.team-card:hover .team-photo img {
  filter: grayscale(0%) contrast(1.02);
  transform: scale(1.02);
}

.team-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--paper-warm) 0%, #ebe6dc 100%);
}

.team-photo-placeholder svg {
  width: 40%;
  opacity: 0.35;
}

.team-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 0.2rem;
}

.team-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1.3rem;
}

.team-bio p {
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.team-bio {
  flex: 1;
}

.team-meta {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.team-meta a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s ease;
}

.team-meta a:hover { border-color: var(--accent); }

/* ---------- Capabilities Grid ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 700px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
}

.cap-item {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .cap-item:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--rule); }
  .cap-item:nth-child(even) { padding-left: 2rem; }
}

.cap-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 2rem;
}

.cap-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
}

/* ---------- CTA banner ---------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 90% 0%, rgba(178, 58, 58, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 600px 300px at 0% 100%, rgba(178, 58, 58, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 800px) {
  .cta-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
}

.cta h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.cta h2 em {
  font-style: italic;
  color: var(--accent);
}

.cta p {
  color: rgba(250, 250, 247, 0.7);
  margin-top: 1.2rem;
  font-size: 1.02rem;
}

.cta .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  margin-top: 1.5rem;
}

.cta .btn:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

/* ---------- Form ---------- */
.contact-form {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 38ch;
  margin-top: 1rem;
  margin-bottom: 0;
}

footer h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

footer ul { list-style: none; }
footer li { margin-bottom: 0.6rem; }

footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
}

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

/* ---------- Subtle entrance animation ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }

/* ---------- Decorative crow mark ---------- */
.mark-watermark {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 22vw, 320px);
  opacity: 0.04;
  pointer-events: none;
}

@media (max-width: 800px) {
  .mark-watermark { display: none; }
}

