/* ═══════════════════════════════════════════════════════════════════════════
   BHCR CAPITAL — Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #0C0C0C;
  --surface:    #141414;
  --surface-2:  #1C1C1C;
  --border:     rgba(255,255,255,0.12);
  --accent:     #FFFFFF;
  --accent-mid: #B0B0B0;
  --accent-dim: rgba(255,255,255,0.22);
  --white:      #FFFFFF;
  --off-white:  #E8E4DC;
  --muted:      rgba(255,255,255,0.62);
  --muted-2:    rgba(255,255,255,0.40);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --nav-h:     80px;
  --container: 1140px;
  --radius:    4px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a       { color: inherit; text-decoration: none; }
img     { display: block; max-width: 100%; }
button  { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Focus styles ──────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ─── Selection ─────────────────────────────────────────────────────────────── */
::selection { background: rgba(255,255,255,0.15); color: var(--white); }

/* ─── Container ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
}

/* ─── Section Eyebrow ───────────────────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 24px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-primary { background: var(--accent); color: var(--black); }
.btn-primary:hover {
  background: #E8E8E8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── Scroll Reveal ─────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(12,12,12,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--nav-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  transition: all 0.22s;
  flex-shrink: 0;
  touch-action: manipulation;
}
.nav-cta:hover { background: var(--accent); color: var(--black); }

/* ─── Hamburger ─────────────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  touch-action: manipulation;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Mobile Drawer ─────────────────────────────────────────────────────────── */
.mobile-drawer {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  background: rgba(12,12,12,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: max-height 0.4s var(--ease-out);
  border-top: 1px solid transparent;
}
.mobile-drawer.open {
  max-height: 320px;
  border-top-color: var(--border);
}
.mobile-link {
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
  touch-action: manipulation;
}
.mobile-link:hover { color: var(--white); padding-left: 48px; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: var(--nav-h);
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 280px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
  width: 100%;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 28px;
  max-width: 820px;
  animation: fadeUp 0.9s var(--ease-out) 0.2s both;
}

.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 44px;
  animation: fadeUp 0.9s var(--ease-out) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s var(--ease-out) 0.4s both;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.scroll-bar {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.scroll-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════════════════ */
#about {
  padding: 140px 0 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
  align-items: start;
}

.about-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
}

.about-right p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-right p:last-child { margin-bottom: 0; }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pillar {
  padding: 44px 40px;
  background: var(--surface);
  transition: background 0.25s;
}
.pillar:hover { background: var(--surface-2); }

.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 24px;
  transition: border-color 0.25s, background 0.25s;
}
.pillar:hover .pillar-icon {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
}

.pillar h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 12px;
}
.pillar p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APPROACH
   ═══════════════════════════════════════════════════════════════════════════ */
#approach {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.approach-header {
  max-width: 740px;
  margin-bottom: 80px;
}
.approach-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
}

.step-connector {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.28), transparent);
  margin: 20px 48px 0;
  align-self: start;
}

.step {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--black);
  transition: border-color 0.25s, transform 0.25s;
}
.step:hover {
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  transition: color 0.25s;
}
.step:hover .step-number { color: rgba(255,255,255,0.38); }

.step-body h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.step-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════════════════════════════════════ */
#portfolio {
  padding: 140px 0;
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 60px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.portfolio-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ─── Small Portfolio Card (no internal two-column) ─────────────────────────── */
.pcard-sm {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.pcard-sm:hover {
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-3px);
}
.pcard-sm .pcard-desc { flex: 1; }
.pcard-sm .pcard-link { margin-top: 24px; }

.pcard-sm-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}
.pcard-sm-stats .pstat-value { font-size: 30px; }

/* ─── Portfolio Card ────────────────────────────────────────────────────────── */
.pcard {
  padding: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0 56px;
  transition: border-color 0.3s, transform 0.3s;
}
.pcard:hover {
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-3px);
}

.pcard-header {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.pcard-desc {
  grid-column: 1;
  grid-row: 2;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  align-self: start;
}

.pcard-link {
  grid-column: 1;
  grid-row: 3;
  margin-top: 32px;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: gap 0.2s;
  touch-action: manipulation;
}
.pcard-link:hover { gap: 10px; }

.pcard-stats {
  grid-column: 2;
  grid-row: 1 / 4;
  border-left: 1px solid var(--border);
  padding-left: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
}

.pcard-wordmark {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
}
.pcard-dot { color: var(--accent-mid); }

.pcard-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.30);
  color: var(--accent-mid);
  border-radius: 2px;
}

.pstat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pstat-value {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pstat-plus {
  font-size: 22px;
  color: var(--accent-mid);
}
.pstat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════════════ */
#contact {
  padding: 140px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 100px;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}
.contact-left p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
  touch-action: manipulation;
}
.contact-item:hover { color: var(--white); }
.contact-item svg { color: var(--accent-mid); flex-shrink: 0; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--muted-2);
}

.form-group input,
.form-group textarea {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-2); }
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(255,255,255,0.50); }

.form-note {
  font-size: 13px;
  text-align: center;
  min-height: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
#footer {
  padding: 60px 0 40px;
  background: var(--surface);
}

.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  opacity: 1;
  transition: opacity 0.2s;
}
.footer-logo:hover .footer-logo-img { opacity: 0.75; }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--muted-2);
}
.footer-address { text-align: right; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 960px
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .container { padding-inline: 28px; }

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-bottom: 1px solid var(--border); }
  .pillar:last-child { border-bottom: none; }

  /* Approach */
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step-connector { display: none; }

  /* Portfolio */
  .portfolio-pair { grid-template-columns: 1fr; }

  /* Portfolio card — collapse to single column */
  .pcard {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 0;
    padding: 40px;
  }
  .pcard-header { margin-bottom: 20px; }
  .pcard-link   { grid-row: auto; margin-top: 24px; }
  .pcard-stats  {
    grid-column: 1;
    grid-row: auto;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 32px;
    margin-top: 32px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: flex-start;
  }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 640px
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  .container { padding-inline: 20px; }

  /* Nav */
  .nav-logo-img   { height: 44px; }
  .mobile-link    { padding-inline: 20px; }

  /* Hero */
  .hero-content   { padding-inline: 20px; }
  .hero-headline  { font-size: clamp(34px, 9vw, 48px); }
  .hero-sub       { font-size: 15px; max-width: 100%; }
  .hero-actions   { flex-direction: column; }
  .btn            { width: 100%; justify-content: center; }
  .hero-scroll    { right: 20px; bottom: 24px; }

  /* About */
  #about          { padding: 80px 0; }
  .about-grid     { margin-bottom: 60px; gap: 36px; }

  /* Approach */
  #approach       { padding: 80px 0; }
  .approach-header { margin-bottom: 48px; }

  /* Portfolio */
  #portfolio      { padding: 80px 0; }
  .pcard          { padding: 28px; }
  .pcard-sm       { padding: 28px; }
  .pstat-value    { font-size: 30px; }
  .pcard-stats    { gap: 24px; padding-top: 24px; margin-top: 24px; }
  .pcard-sm-stats { padding-top: 20px; margin-top: 20px; gap: 28px; }
  .pcard-sm-stats .pstat-value { font-size: 24px; }

  /* Contact */
  #contact        { padding: 80px 0; }
  .form-row       { grid-template-columns: 1fr; }

  /* Footer */
  #footer         { padding: 48px 0 32px; }
  .footer-logo-img { height: 40px; }
  .footer-top     { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-nav     { flex-wrap: wrap; gap: 12px 20px; }
  .footer-bottom  { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-address { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
