/* ==========================================================================
   HTBK HOLDINGS — design tokens
   Change colors, fonts, and spacing here to restyle the whole site.
   ========================================================================== */
:root {
  /* fonts */
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  /* light mode palette */
  --color-bg: #FBF7F2;
  --color-bg-alt: #F4EADF;
  --color-surface: #FFFFFF;
  --color-text: #2A1D13;
  --color-text-muted: #6E5C4B;
  --color-accent: #C1701E;
  --color-accent-strong: #8F4E17;
  --color-line: rgba(42, 29, 19, 0.10);

  --nav-bg: rgba(251, 247, 242, 0.72);

  --dark-section-bg: #180F08;
  --dark-section-text: #FBF3EA;
  --dark-section-muted: #C4AD98;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #150E08;
    --color-bg-alt: #1E140B;
    --color-surface: #1E140B;
    --color-text: #FBF3EA;
    --color-text-muted: #C4AD98;
    --color-accent: #F0A050;
    --color-accent-strong: #F7C27E;
    --color-line: rgba(255, 235, 215, 0.12);

    --nav-bg: rgba(21, 14, 8, 0.72);

    --dark-section-bg: #0E0904;
    --dark-section-text: #FBF3EA;
    --dark-section-muted: #B9A493;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: var(--nav-bg);
  box-shadow: 0 1px 0 var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
}
.site-header:not(.scrolled) .wordmark { color: #FBF3EA; }

.wordmark-mark { width: 30px; height: 30px; flex-shrink: 0; }

.wordmark-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark-sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  opacity: 0.65;
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}
.site-header:not(.scrolled) .nav-list a { color: #FBF3EA; }
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: currentColor;
  transition: right 0.25s var(--ease);
}
.nav-list a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  color: var(--color-text);
}
.site-header:not(.scrolled) .nav-toggle span { background: #FBF3EA; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #FBF3EA;
}

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

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 14, 7, 0.55) 0%, rgba(24, 14, 7, 0.12) 32%, rgba(20, 11, 5, 0.35) 68%, rgba(15, 8, 4, 0.90) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(4rem, 10vh, 7rem);
  padding-top: 8rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.25rem;
}

.hero-headline {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  color: #FFFFFF;
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 40ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(251, 243, 234, 0.88);
}

.hero-credit {
  position: absolute;
  right: 1.25rem;
  bottom: 1.75rem;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s var(--ease);
}
.hero-credit:hover { color: rgba(255, 255, 255, 0.9); }

.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  background: var(--color-bg);
}
.section-alt { background: var(--color-bg-alt); }

.section-dark {
  background: var(--dark-section-bg);
  color: var(--dark-section-text);
}
.section-dark .eyebrow { color: var(--color-accent); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 16ch;
  margin-bottom: 2.5rem;
}

.about-copy { max-width: 62ch; }
.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
}
.section-dark .lead,
.section-dark p { color: var(--dark-section-muted); }

/* what we do */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  overflow: hidden;
}
.split-card {
  background: var(--color-surface);
  padding: clamp(2rem, 4vw, 3rem);
}
.split-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.split-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.split-kicker {
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.split-card p:not(.split-kicker) { color: var(--color-text-muted); }

/* values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.value-card {
  padding: 2rem 0 0;
  border-top: 1px solid var(--color-line);
}
.value-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.value-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--color-text-muted); margin: 0; }

/* contact */
.contact-wrap { text-align: left; max-width: 60ch; }
.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-accent-strong);
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.15rem;
  transition: opacity 0.2s var(--ease);
}
.contact-email:hover { opacity: 0.75; }

/* footer */
.site-footer {
  background: var(--dark-section-bg);
  color: var(--dark-section-muted);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.75rem var(--gutter);
}
.footer-dot { opacity: 0.5; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue span { animation: none; opacity: 1; top: 12px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .nav-list.open { max-height: 320px; }
  .nav-list li { border-top: 1px solid var(--color-line); }
  .nav-list a {
    display: block;
    padding: 1rem var(--gutter);
    color: var(--color-text) !important;
  }
  .hero-content { padding-top: 6rem; }
}

@media (max-width: 480px) {
  .header-inner { height: 66px; }
  .nav-list { top: 66px; }
}
