/* ============================================
   H&H MARKETING AGENCY — design tokens
   Palette: navy, black, white, grey — no other hues.
     --bg          #FFFFFF  white
     --ink         #0E1116  near-black, primary text / dark sections
     --navy        #16294F  deep navy, primary accent
     --navy-soft   #3B587F  softer navy, secondary labels
     --navy-light  #6C89B3  light navy, for use on dark backgrounds
     --muted       #6B7280  grey, secondary text
     --line        #E3E5E9  hairline grey borders
   Type:
     Display  — "Big Shoulders Display": condensed, poster-weight, confident
     Wordmark — "Libre Baskerville": classic serif, banking-grade
     Body     — "Inter": clean, quiet workhorse
     Utility  — "IBM Plex Mono": eyebrows, labels, nav
   ============================================ */

:root {
  --bg: #FFFFFF;
  --ink: #0E1116;
  --navy: #16294F;
  --navy-soft: #3B587F;
  --navy-light: #6C89B3;
  --muted: #6B7280;
  --line: #E3E5E9;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-wordmark: 'Libre Baskerville', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.contact :focus-visible { outline-color: var(--bg); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 400px) {
  .nav-logo { font-size: 16px; }
  .nav-cta { font-size: 12px; padding: 8px 14px; }
  .nav-inner { padding: 16px 20px; }
}

/* ---------- HERO ---------- */
.hero {
  padding: 120px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-inner { max-width: 820px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--navy);
  margin: 0 0 20px;
}
.eyebrow-dark { color: var(--navy-soft); }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.5px;
  margin: 0 0 28px;
  background-image: linear-gradient(105deg,
    var(--ink) 0%,
    var(--ink) 20%,
    var(--navy-light) 45%,
    var(--navy) 65%,
    var(--ink) 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.mark {
  position: relative;
  white-space: nowrap;
}
.mark::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 6%;
  height: 0.28em;
  background: var(--navy-light);
  z-index: -1;
  transform: skewX(-8deg);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 40px;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); }

/* Gradient shimmer sweep — CSS-only equivalent of the React component,
   scoped to CTA labels only so it stays a flourish, not a distraction. */
.shimmer-text {
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer-sweep 2.8s ease-in-out infinite;
}
.btn-submit .shimmer-text {
  background-image: linear-gradient(105deg,
    var(--bg) 35%,
    color-mix(in oklab, var(--bg) 40%, var(--navy-light)) 47%,
    color-mix(in oklab, var(--bg) 25%, var(--navy-light)) 53%,
    var(--bg) 65%);
}
@keyframes shimmer-sweep {
  0% { background-position: 160% 0; }
  100% { background-position: -60% 0; }
}

.hero-headline.shimmer-text {
  background-image: linear-gradient(105deg,
    var(--ink) 40%,
    color-mix(in oklab, var(--ink) 45%, var(--navy)) 48%,
    color-mix(in oklab, var(--ink) 30%, var(--navy-light)) 52%,
    var(--ink) 60%);
  background-size: 260% 100%;
  animation-duration: 3.6s;
}

/* On phone-width screens the sweeping gradient only covers part of the headline,
   leaving the rest of the letters transparent — so "attention"/other words looked
   cut off. Below 600px, render the headline as a solid, always-visible fill.
   Desktop keeps the animated shimmer above, unchanged. */
@media (max-width: 600px) {
  .hero-headline,
  .hero-headline.shimmer-text {
    background: none;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
    animation: none;
    font-size: 40px;
    line-height: 1.03;
  }
  .mark { -webkit-text-fill-color: var(--ink); }
}

/* ---------- MARQUEE (signature element) ---------- */
.marquee {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: scroll-left 26s linear infinite;
}
.marquee-track span { padding: 0 6px; }
.marquee-track .dot { color: var(--navy-light); padding: 0 18px; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- ABOUT / FOUNDERS ---------- */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 32px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  max-width: 700px;
  margin: 0 0 64px;
}

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 720px) {
  .founders { grid-template-columns: 1fr; gap: 48px; }
}

.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.founder-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.12;
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}
.founder-photo span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 120px;
  color: var(--bg);
  opacity: 0.9;
}

.founder h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 4px;
}
.founder-role {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy);
  margin: 0 0 16px;
}
.founder-bio {
  color: var(--muted);
  max-width: 420px;
  margin: 0;
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--ink);
  color: var(--bg);
  padding: 100px 32px;
}
.contact-inner {
  max-width: 720px;
  margin: 0 auto;
}
.contact-title { color: var(--bg); margin-bottom: 16px; }
.contact-sub {
  color: #A9AEB8;
  margin: 0 0 48px;
}

.inquiry-form { display: flex; flex-direction: column; gap: 24px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: #A9AEB8;
}
.field input,
.field select,
.field textarea {
  background: #1A1E29;
  border: 1px solid #2C3140;
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy-light);
  outline: none;
}
.field textarea { resize: vertical; }

.btn-submit {
  align-self: flex-start;
  background: var(--navy);
  color: var(--bg);
}
.btn-submit:hover { background: var(--bg); color: var(--ink); }

.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy-light);
  min-height: 20px;
  margin: 0;
}

/* ---------- FOOTER ---------- */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.footer a { text-decoration: none; border-bottom: 1px solid var(--muted); }
