/* ============================================================
   Red Ridge Ventures site styles
   Palette: charcoal ink / white / deep crimson accent
   Type: Archivo (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@1,500&display=swap');

:root {
  --ink: #12151a;
  --ink-soft: #1c2129;
  --ink-mute: #4d545e;
  --paper: #ffffff;
  --paper-warm: #f5f4f2;
  --line: #e5e3e0;
  --line-dark: #2a303a;
  --red: #c41230;
  --red-deep: #8f0e24;
  --red-tint: #fbeaee;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 21, 26, 0.06);
  --shadow-md: 0 10px 30px rgba(18, 21, 26, 0.10);
  --font-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text {
  font-family: var(--font-head);
  line-height: 1.05;
}
.brand-text .brand-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-text .brand-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--red);
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-mute);
  padding: 10px 14px;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--paper-warm); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  background: var(--red);
  border-radius: 2px;
}
.site-nav .btn { margin-left: 10px; }
.site-nav a.btn-primary { color: #fff; }
.site-nav a.btn-primary:hover { background: var(--red-deep); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-ghost-light { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-light { background: #fff; color: var(--red-deep); }
.btn-light:hover { background: var(--ink); color: #fff; }

/* ---------- shared section bits ---------- */

section { padding: 96px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}
.on-dark .eyebrow { color: #ff5f7a; }
.on-dark .eyebrow::before { background: #ff5f7a; }

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  max-width: 20ch;
}
.section-intro {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--ink-mute);
  font-size: 18px;
}
.on-dark .section-intro { color: #aab2bf; }

.section-head { margin-bottom: 56px; }
.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.bg-warm { background: var(--paper-warm); }
.on-dark { background: var(--ink); color: #fff; }

/* ---------- hero (home, pixel canvas) ---------- */

.phero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  color: #fff;
  padding: 150px 24px 130px;
  overflow: hidden;
  isolation: isolate;
}

.phero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.phero-canvas { display: block; width: 100%; height: 100%; }
.phero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--ink) 100%);
  opacity: 0.8;
}

.phero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  text-align: center;
}

.phero-title {
  font-size: clamp(2.6rem, 7.5vw, 6.2rem);
  line-height: 1.06;
  letter-spacing: normal;
  color: transparent;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.4) 25%, rgba(255,255,255,0.1) 45%, rgba(255,255,255,0.9) 55%, rgba(255,255,255,0.2) 75%, rgba(255,255,255,1) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.4)) drop-shadow(0 5px 10px rgba(0,0,0,0.2));
  animation: phero-shimmer 8s linear infinite;
}
.phero-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}
.phero-bold {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.phero-dot {
  color: var(--red);
  -webkit-text-stroke: 0;
}

@keyframes phero-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

.phero-desc {
  margin: 34px auto 0;
  max-width: 40rem;
  font-size: 19px;
  font-weight: 400;
  color: rgba(232, 235, 240, 0.85);
}

.phero-cta {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.phero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 32px;
  border-radius: 13px;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.phero-btn:hover { transform: scale(1.02); }
.phero-btn:active { transform: scale(0.98); }
.phero-btn svg { width: 17px; height: 17px; }
.phero-btn-primary {
  background: linear-gradient(to bottom, #d31637, #a80f29);
  color: #fff;
  border: 1px solid rgba(196, 18, 48, 0.45);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), 0 2px 4px rgba(0,0,0,0.15), 0 12px 24px rgba(0,0,0,0.15);
}
.phero-btn-secondary {
  background: linear-gradient(to bottom, rgba(40, 46, 57, 0.8), #1c2129);
  color: #e8ebf0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.05), 0 12px 24px rgba(0,0,0,0.05);
  backdrop-filter: blur(12px);
}

/* ridge backdrop (inner page heroes) */
.hero-ridges {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 62%;
  pointer-events: none;
}

/* ---------- inner page hero ---------- */

.page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 180px 0 88px;
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.page-hero p {
  margin-top: 20px;
  max-width: 58ch;
  font-size: 18.5px;
  color: #b6bdc9;
}
.page-hero .hero-ridges { height: 80%; opacity: 0.8; }
.page-hero .hero-content { position: relative; }

/* ---------- big statement ---------- */

.statement {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
  max-width: 34ch;
}
.statement .accent { color: var(--red); }

/* ---------- service cards ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: var(--red-tint);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 23px; height: 23px; }

.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-mute); flex: 1; }

.card-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--red);
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- approach steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  border-top: 1px solid var(--line-dark);
  padding-top: 26px;
}
.step-num {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: #ff5f7a;
  letter-spacing: 0.08em;
}
.step h3 { font-size: 21px; font-weight: 700; margin: 12px 0 10px; }
.step p { font-size: 15.5px; color: #aab2bf; }

/* ---------- perspectives ---------- */

.persp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.persp {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: box-shadow 0.25s ease;
}
.persp:hover { box-shadow: var(--shadow-md); }
.persp .kicker {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.persp h3 { font-size: 20px; font-weight: 700; margin: 14px 0 12px; }
.persp p { font-size: 15.5px; color: var(--ink-mute); }

/* ---------- value list (about) ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.value {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper);
  padding: 30px 30px 26px;
}
.value h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.value p { font-size: 15.5px; color: var(--ink-mute); }

/* ---------- service detail sections ---------- */

.svc {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc:last-of-type { padding-bottom: 0; }

.svc-head { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.svc-head h2 { font-size: 26px; font-weight: 700; }

.svc-body p { color: var(--ink-mute); max-width: 60ch; }
.svc-body ul {
  margin-top: 22px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
.svc-body li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--ink);
}
.svc-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 8px;
  background: var(--red);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

/* ---------- detail table (about) ---------- */

.detail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 20px 30px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.detail-row:first-child { border-top: 0; }
.detail-row dt {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink-mute);
}
.detail-row dd { font-weight: 500; }
.detail-row dd a { color: var(--red); text-decoration: none; }
.detail-row dd a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--red-deep), var(--red) 65%);
  color: #fff;
  padding: 84px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.cta-inner p { margin-top: 12px; color: rgba(255,255,255,0.85); max-width: 48ch; }

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: start;
}

.contact-item { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-item:first-child { border-top: 0; padding-top: 0; }
.contact-item .label {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.contact-item .val { font-size: 18px; font-weight: 600; }
.contact-item .val a { color: var(--red); text-decoration: none; }
.contact-item .val a:hover { text-decoration: underline; }
.contact-item .note { margin-top: 4px; font-size: 14.5px; color: var(--ink-mute); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-mute); }
.hidden { display: none; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #aab2bf;
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-text .brand-name { color: #fff; }
.footer-brand p { font-size: 14.5px; max-width: 34ch; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  text-decoration: none;
  font-size: 15px;
  color: #aab2bf;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #7d8694;
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover svg, .card:hover .card-link svg { transform: none; }
  .phero-title { animation: none; }
  .phero-btn:hover, .phero-btn:active { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .cards-grid, .persp-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .svc { grid-template-columns: 1fr; gap: 26px; padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 72px 0; }
  .phero { padding: 130px 20px 90px; }
  .phero-title { -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); }
  .phero-desc { font-size: 16.5px; }
  .page-hero { padding: 150px 0 72px; }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 14px 20px 22px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 14px; font-size: 16.5px; }
  .site-nav .btn { margin: 10px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }

  .cards-grid, .persp-grid, .values-grid, .steps { grid-template-columns: 1fr; }
  .svc-body ul { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .detail-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
