/* =================================================================
   RED TITAN RESOURCES
   Custom static site — dark editorial industrial
   ================================================================= */

:root {
  /* Color tokens */
  --bg-primary: #0A0B0E;
  --bg-card: #14171C;
  --bg-elevated: #1A1E25;
  --text-primary: #F5F5F5;
  --text-secondary: #A0A4AB;
  --text-tertiary: #6B7079;
  --brand-red: #A01010;
  --brand-red-hover: #B82020;
  --rule: #2A2F38;

  /* Layout */
  --max-content: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-pad: clamp(80px, 12vh, 160px);

  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--brand-red); color: #fff; }

/* =================================================================
   TYPOGRAPHY
   ================================================================= */

.h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.kicker {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.kicker::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--brand-red);
}

.kicker.no-rule::before { display: none; }

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
}

p { color: var(--text-secondary); }

/* =================================================================
   LAYOUT
   ================================================================= */

.wrap {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

/* =================================================================
   HEADER / NAV
   ================================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 280ms ease, border-color 280ms ease, padding 280ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 11, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--rule);
  padding: 14px 0;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-footer .logo-img { height: 64px; }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 180ms ease;
  position: relative;
}

.nav a:hover, .nav a.active { color: var(--text-primary); }

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 1px;
  background: var(--brand-red);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

/* =================================================================
   BUTTONS
   ================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--brand-red);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.btn.solid {
  background: var(--brand-red);
  color: #fff;
}

.btn.solid:hover { background: var(--brand-red-hover); border-color: var(--brand-red-hover); }

.btn.ghost {
  border-color: var(--rule);
  color: var(--text-secondary);
}

.btn.ghost:hover {
  border-color: var(--brand-red);
  color: var(--text-primary);
  background: transparent;
}

.btn .arrow {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 200ms ease;
}

.btn .arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn:hover .arrow { width: 22px; }

/* =================================================================
   HERO
   ================================================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(60px, 10vh, 120px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,14,0.55) 0%, rgba(10,11,14,0.35) 35%, rgba(10,11,14,0.78) 78%, rgba(10,11,14,0.97) 100%),
    linear-gradient(90deg, rgba(10,11,14,0.55) 0%, rgba(10,11,14,0.0) 60%);
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content .kicker { margin-bottom: 32px; }

.hero h1 {
  max-width: 18ch;
  margin-bottom: 28px;
}

.hero .lead {
  max-width: 52ch;
  color: rgba(245,245,245,0.78);
  margin-bottom: 44px;
  font-size: clamp(18px, 1.4vw, 22px);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.hero-scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent 0%, var(--text-tertiary) 100%);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -28px;
  left: 0;
  width: 100%;
  height: 28px;
  background: linear-gradient(180deg, transparent 0%, var(--text-primary) 100%);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(84px); opacity: 0; }
}

/* =================================================================
   SECTION FRAMING
   ================================================================= */

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 860px;
  margin-bottom: clamp(48px, 8vh, 96px);
}

.section-head .kicker { margin-bottom: 4px; }

/* =================================================================
   HOME — STAT STRIP
   ================================================================= */

.stat-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(56px, 9vh, 96px) 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  padding: 0 clamp(20px, 4vw, 48px);
  border-right: 1px solid var(--rule);
}

.stat-item:last-child { border-right: 0; }

.stat-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-primary);
  display: block;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.stat-num .red-dot { color: var(--brand-red); }

.stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 14px;
}

.stat-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =================================================================
   HOME — POSITIONING SECTION
   ================================================================= */

.positioning {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.positioning-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-card);
}

.positioning-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,11,14,0.5) 100%);
  pointer-events: none;
}

.positioning-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}

.positioning-text h2 { margin-bottom: 28px; }

.positioning-text p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.75;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.positioning-text p:last-of-type { margin-bottom: 40px; }

/* =================================================================
   HOME — CTA BAND
   ================================================================= */

.cta-band {
  padding: clamp(80px, 14vh, 160px) 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
}

.cta-band-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(160,16,16,0.12) 0%, transparent 60%);
  z-index: 0;
}

.cta-band .wrap { position: relative; z-index: 1; }

.cta-band-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-band h2 { margin-bottom: 28px; }

.cta-band p {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 44px;
}

/* =================================================================
   LEADERSHIP
   ================================================================= */

.page-hero {
  padding-top: 200px;
  padding-bottom: clamp(60px, 10vh, 120px);
}

.page-hero .kicker { margin-bottom: 32px; }

.page-hero h1 { margin-bottom: 32px; }

.page-hero .lead { max-width: 60ch; }

.leadership-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-card);
  margin: clamp(60px, 10vh, 120px) 0;
  position: relative;
}

.leadership-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leadership-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,11,14,0.15) 0%, rgba(10,11,14,0.45) 100%);
}

.leadership-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(48px, 8vw, 120px);
  margin-bottom: clamp(60px, 10vh, 120px);
}

.leadership-body .label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding-top: 8px;
}

.leadership-body .prose p {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.75;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.leadership-body .prose p:last-child { margin-bottom: 0; }

.leadership-footnote {
  border-top: 1px solid var(--rule);
  padding-top: clamp(40px, 6vh, 72px);
  margin-top: clamp(40px, 6vh, 72px);
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* =================================================================
   APPROACH
   ================================================================= */

.principle-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  margin: clamp(40px, 8vh, 100px) 0;
}

.principle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principle-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,11,14,0.25) 0%, rgba(10,11,14,0.55) 100%);
}

.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.principle {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(48px, 8vh, 88px) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.principle:last-child { border-bottom: 1px solid var(--rule); }

.principle-num {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--brand-red);
  padding-top: 12px;
}

.principle h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
}

.principle .principle-body p {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.principle .principle-body p:last-child { margin-bottom: 0; }

/* =================================================================
   CONTACT
   ================================================================= */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.contact-info p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contact-info a.email-link {
  color: var(--text-primary);
  border-bottom: 1px solid var(--brand-red);
  padding-bottom: 2px;
  transition: color 180ms ease;
}

.contact-info a.email-link:hover { color: var(--brand-red); }

.contact-meta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.contact-meta dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.contact-meta dd {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* Form */

.form {
  display: grid;
  gap: 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  font-family: inherit;
  font-size: 17px;
  color: var(--text-primary);
  transition: border-color 200ms ease;
  outline: none;
  border-radius: 0;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-tertiary);
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--brand-red);
  box-shadow: 0 1px 0 0 var(--brand-red);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
}

.form-note {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.form-success {
  display: none;
  padding: 24px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand-red);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
}

.form-success.visible { display: block; }

/* =================================================================
   FOOTER
   ================================================================= */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(60px, 8vh, 96px) 0 32px;
  background: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: clamp(48px, 7vh, 80px);
}

.footer-brand .logo-word {
  margin-top: 18px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 20px;
  max-width: 28ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 22px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 12px; }

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 180ms ease;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}

/* =================================================================
   REVEAL ANIMATION
   ================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll-line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 960px) {
  .stat-grid { grid-template-columns: 1fr; gap: 0; }
  .stat-item { border-right: 0; border-bottom: 1px solid var(--rule); padding: 28px 0; }
  .stat-item:last-child { border-bottom: 0; }
  .positioning { grid-template-columns: 1fr; }
  .positioning-media { aspect-ratio: 16 / 10; }
  .leadership-body { grid-template-columns: 1fr; }
  .leadership-body .label { padding-top: 0; }
  .principle { grid-template-columns: 1fr; gap: 18px; }
  .principle-num { padding-top: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .logo-img { height: 42px; }
  .site-footer .logo-img { height: 52px; }

  .nav { display: none; }
  .nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 90;
  }
  .nav.open a { font-size: 20px; }
  .nav-toggle { display: block; z-index: 101; position: relative; }

  .hero { padding-top: 110px; min-height: 92vh; }
  .hero .lead { font-size: 17px; }
  .hero-ctas .btn { padding: 14px 22px; font-size: 12px; }

  .section { padding: 80px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
}
