/* =====================================================
   BASSAM E. KARAM — SITE STYLES
   Clean static build for Netlify.
   Fonts are loaded from <link> tags in index.html — no
   CSS @import here (avoids render-blocking).
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink:        #15171A;
  --ink-soft:   #2A2D33;
  --paper:      #F4EEE2;
  --paper-deep: #ECE3D0;
  --rule:       #C9BFA8;
  --brass:      #9C7C3C;
  --brass-deep: #74591F;
  --muted:      #6B6657;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  margin: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07  0 0 0 0 0.07  0 0 0 0 0.07  0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.bk-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}

/* ---------- TOP NAV ---------- */
.bk-nav {
  padding: 28px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.bk-monogram {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.bk-monogram em {
  font-style: italic;
  color: var(--brass-deep);
}
.bk-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
  padding: 0;
}
.bk-nav-links a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.bk-nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.3s ease;
}
.bk-nav-links a:hover { color: var(--brass-deep); }
.bk-nav-links a:hover::after { width: 100%; }

/* ---------- HERO ---------- */
.bk-hero {
  padding: 32px 0 40px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.bk-eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 600;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.bk-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--brass);
}
.bk-hero h1 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(54px, 7.4vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 36px;
}
.bk-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--brass-deep);
}
.bk-tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: 24px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  line-height: 1.3;
}
.bk-hero-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 44px;
}
.bk-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.bk-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--ink);
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.bk-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brass-deep);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  z-index: 0;
}
.bk-btn span, .bk-btn svg { position: relative; z-index: 1; }
.bk-btn:hover { border-color: var(--brass-deep); }
.bk-btn:hover::before { transform: translateY(0); }

.bk-contacts {
  display: flex;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.bk-contacts a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  transition: border-color 0.25s, color 0.25s;
}
.bk-contacts a:hover {
  color: var(--brass-deep);
  border-color: var(--brass-deep);
}

.bk-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}
.bk-portrait .bk-frame {
  position: absolute;
  inset: 0;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  transform: translate(18px, 18px);
}
.bk-portrait img,
.bk-portrait picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.bk-portrait img {
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02) sepia(0.12);
}

/* ---------- SECTION CHROME ---------- */
.bk-section { padding: 40px 0; position: relative; }
.bk-section-meta {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  margin-bottom: 72px;
  align-items: baseline;
}
.bk-section-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 36px;
  color: var(--brass-deep);
}
.bk-section-num::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--brass);
  margin-bottom: 18px;
}
.bk-section h2 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 820px;
  margin: 0;
}
.bk-section h2 em {
  font-style: italic;
  color: var(--brass-deep);
  font-weight: 300;
}

/* ---------- WHERE I INTERVENE ---------- */
.bk-intervene {
  background: linear-gradient(180deg, transparent 0, var(--paper-deep) 24px, var(--paper-deep) calc(100% - 24px), transparent 100%);
}
.bk-intervene-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 12px 0 0;
  font-weight: 300;
}
.bk-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.bk-pillar {
  padding: 56px 36px 56px 0;
  position: relative;
  transition: transform 0.4s ease;
}
.bk-pillar:not(:last-child) {
  border-right: 1px solid var(--rule);
  padding-right: 36px;
}
.bk-pillar:not(:first-child) { padding-left: 36px; }
.bk-pillar:hover { transform: translateY(-6px); }
.bk-pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  color: var(--brass-deep);
  margin-bottom: 24px;
  display: inline-block;
}
.bk-pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  color: var(--ink);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
.bk-pillar ul { list-style: none; padding: 0; margin: 0; }
.bk-pillar li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color 0.25s;
}
.bk-pillar li::before {
  content: "—";
  color: var(--brass);
  font-family: var(--serif);
  font-weight: 300;
}
.bk-pillar:hover li { color: var(--ink); }

/* ---------- HOW I WORK ---------- */
.bk-work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}
.bk-work-text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 520px;
  font-weight: 300;
}
.bk-work-text p { margin: 0; }
.bk-work-text p + p { margin-top: 20px; }

.bk-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 48px;
  position: relative;
  border: 1px solid var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  text-decoration: none;
}
.bk-cta::after {
  content: "BK";
  position: absolute;
  bottom: -40px;
  right: -10px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 220px;
  color: rgba(156, 124, 60, 0.12);
  line-height: 1;
  pointer-events: none;
}
.bk-cta-eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.bk-cta-headline {
  font-family: var(--serif);
  font-weight: 350;
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 36px;
  color: var(--paper);
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
.bk-cta-headline em { font-style: italic; color: var(--brass); }
.bk-cta-link {
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brass);
  width: fit-content;
  position: relative;
  z-index: 1;
  transition: gap 0.3s ease, color 0.25s;
}
.bk-cta-link:hover { gap: 22px; color: var(--brass); }

/* ---------- FOOTER ---------- */
.bk-footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 48px;
  position: relative;
  z-index: 2;
}
.bk-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.bk-footer-row a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 18px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.bk-footer-row a:hover { border-color: var(--brass); }

/* ---------- NAV CTA ---------- */
.bk-nav-links .bk-nav-cta {
  color: var(--brass-deep);
}
.bk-nav-links .bk-nav-cta::after {
  width: 100%;
  background: var(--brass);
}
.bk-nav-links .bk-nav-cta:hover {
  color: var(--ink);
}

/* ---------- EMAIL COPY TOAST ---------- */
.bk-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 26px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  box-shadow: 0 14px 44px rgba(21, 23, 26, 0.28);
  display: flex;
  align-items: center;
  gap: 14px;
}
.bk-toast::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}
.bk-toast.bk-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- ENTRANCE ANIMATIONS ---------- */
@keyframes bk-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bk-eyebrow    { animation: bk-rise 0.9s ease both; animation-delay: 0.05s; }
.bk-hero h1    { animation: bk-rise 1.1s ease both; animation-delay: 0.15s; }
.bk-tag        { animation: bk-rise 1.0s ease both; animation-delay: 0.35s; }
.bk-hero-body  { animation: bk-rise 1.0s ease both; animation-delay: 0.5s; }
.bk-actions    { animation: bk-rise 1.0s ease both; animation-delay: 0.65s; }
.bk-portrait   { animation: bk-rise 1.2s ease both; animation-delay: 0.4s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .bk-container { padding: 0 28px; }
  .bk-hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 24px 0 32px;
  }
  .bk-portrait { max-width: 420px; }
  .bk-section { padding: 28px 0; }
  .bk-section-meta {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }
  .bk-pillars { grid-template-columns: 1fr; }
  .bk-pillar {
    padding: 40px 0 !important;
    border-right: none !important;
    border-top: 1px solid var(--rule);
  }
  .bk-pillar:first-child { border-top: none; }
  .bk-work { grid-template-columns: 1fr; gap: 48px; }
  .bk-nav-links { gap: 18px; font-size: 11px; }
  .bk-hero h1 { font-size: 56px; }
}
@media (max-width: 560px) {
  .bk-container { padding: 0 20px; }
  .bk-nav-links { display: none; }
  .bk-nav { padding: 20px 0; }
  .bk-actions { flex-direction: column; align-items: flex-start; gap: 24px; }
  .bk-cta { padding: 40px 28px; }
  .bk-cta-headline { font-size: 28px; }
  .bk-hero h1 { font-size: 44px; }
}
