/* ==========================================================================
   Robert Ebo Hinson — Phase 1 brand site
   Editorial / cinematic / premium-restrained design system
   ========================================================================== */

:root {
  --bg: #0b0b0d;
  --bg-alt: #121114;
  --bg-elevated: #1a191d;
  --text: #f4f1ea;
  --text-muted: #a9a49c;
  --text-faint: #726d66;
  --border: rgba(244, 241, 234, 0.09);
  --border-strong: rgba(244, 241, 234, 0.18);
  --accent: #c9a24b;
  --accent-bright: #e3c578;
  --accent-soft: rgba(201, 162, 75, 0.12);
  --accent-contrast: #0b0b0d;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --container-narrow: 820px;
  --gutter: clamp(24px, 5vw, 72px);
  --section-y: clamp(72px, 10vw, 140px);

  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --dur: 700ms;
}

/* ---- Reset ---- */
.ebh * ,
.ebh *::before,
.ebh *::after { box-sizing: border-box; margin: 0; padding: 0; }

.ebh {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.ebh h1, .ebh h2, .ebh h3, .ebh h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.ebh .eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 18px;
}

.ebh .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ebh .container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ebh section { padding: var(--section-y) 0; position: relative; }
.ebh .section-tight { padding: clamp(48px, 6vw, 88px) 0; }

/* ---- Buttons ---- */
.ebh .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.ebh .btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.ebh .btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); transform: translateY(-2px); }

.ebh .btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.ebh .btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.ebh .btn-row { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Nav ---- */
.ebh-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.ebh-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.ebh-nav .brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.ebh-nav .brand span { color: var(--accent); }

.ebh-nav .nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.ebh-nav .nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 300ms var(--ease);
  position: relative;
  padding-bottom: 4px;
}
.ebh-nav .nav-links a:hover,
.ebh-nav .nav-links a.is-active { color: var(--text); }
.ebh-nav .nav-links a.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
}
.ebh-nav .nav-links .btn { margin-left: 8px; }

.ebh-nav-toggle {
  display: none;
  width: 28px; height: 20px;
  position: relative;
}
.ebh-nav-toggle span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--text);
  transition: all 300ms var(--ease);
}
.ebh-nav-toggle span:nth-child(1) { top: 0; }
.ebh-nav-toggle span:nth-child(2) { top: 9px; }
.ebh-nav-toggle span:nth-child(3) { top: 18px; }
.ebh-nav-toggle.is-open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.ebh-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.ebh-nav-toggle.is-open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ---- Hero (split) ---- */
.ebh-hero {
  padding: clamp(48px, 7vw, 90px) 0 var(--section-y);
}
.ebh-hero .grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.ebh-hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  margin-bottom: 26px;
}
.ebh-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.ebh-hero .descriptor {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 40px;
  font-weight: 300;
}
.ebh-hero .figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
}
.ebh-hero .figure img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: top center;
}
.ebh-hero .figure::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 -40px 80px rgba(0,0,0,0.35);
  pointer-events: none;
}
.ebh-hero .figure-frame {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(244,241,234,0.25);
  pointer-events: none;
  z-index: 2;
}

/* ---- Positioning strip ---- */
.ebh-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ebh-strip .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ebh-strip .item {
  padding: 40px var(--gutter);
  border-right: 1px solid var(--border);
}
.ebh-strip .item:last-child { border-right: none; }
.ebh-strip .item .num {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}
.ebh-strip .item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 32ch;
}

/* ---- Section headers ---- */
.ebh .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.ebh .section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}
.ebh .section-head .link-more {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: all 300ms var(--ease);
}
.ebh .section-head .link-more:hover { color: var(--accent); border-color: var(--accent); }

/* ---- About preview (split) ---- */
.ebh-about-preview .grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.ebh-about-preview .figure {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-alt);
}
.ebh-about-preview .figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ebh-about-preview p { color: var(--text-muted); margin-bottom: 20px; max-width: 54ch; }
.ebh-about-preview p:last-of-type { margin-bottom: 32px; }

/* ---- Cards grid (services) ---- */
.ebh-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.ebh-card {
  background: var(--bg);
  padding: 44px 36px;
  transition: background 400ms var(--ease);
}
.ebh-card:hover { background: var(--bg-alt); }
.ebh-card .idx {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 22px;
}
.ebh-card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.ebh-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---- Books row ---- */
.ebh-books-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.ebh-book {
  display: flex;
  flex-direction: column;
}
.ebh-book .cover {
  aspect-ratio: 2/3;
  background: linear-gradient(155deg, var(--bg-elevated), var(--bg-alt));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.ebh-book .cover span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.3;
}
.ebh-book .cover .mark {
  position: absolute; top: 16px; left: 16px;
  width: 22px; height: 2px; background: var(--accent);
}
.ebh-book h4 { font-size: 1.02rem; margin-bottom: 6px; }
.ebh-book .tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---- Media / gallery grid ---- */
.ebh-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 6px;
}
.ebh-gallery a {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--bg-alt);
}
.ebh-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--ease);
  filter: grayscale(35%);
}
.ebh-gallery a:hover img { transform: scale(1.05); filter: grayscale(0%); }
.ebh-gallery .tall { grid-row: span 2; }

.ebh-press-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}
.ebh-press-strip span {
  border: 1px solid var(--border-strong);
  padding: 14px 26px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---- Contact CTA band ---- */
.ebh-cta-band {
  background: var(--bg-alt);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ebh-cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 16ch;
  margin: 0 auto 30px;
}
.ebh-cta-band .btn-row { justify-content: center; }

/* ---- Footer ---- */
.ebh-footer {
  padding: 70px 0 40px;
}
.ebh-footer .top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.ebh-footer .brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.ebh-footer .brand span { color: var(--accent); }
.ebh-footer p { color: var(--text-muted); font-size: 0.92rem; max-width: 34ch; }
.ebh-footer h5 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
  font-weight: 600;
}
.ebh-footer li { margin-bottom: 10px; }
.ebh-footer a { color: var(--text-muted); font-size: 0.92rem; transition: color 300ms var(--ease); }
.ebh-footer a:hover { color: var(--accent); }
.ebh-footer .bottom {
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Inner page header (About/Services/Books/Media/Contact) ---- */
.ebh-page-head {
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--border);
}
.ebh-page-head h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  max-width: 18ch;
}
.ebh-page-head .lede {
  color: var(--text-muted);
  max-width: 60ch;
  margin-top: 22px;
  font-size: 1.05rem;
  font-weight: 300;
}

/* ---- About page body ---- */
.ebh-about-body .grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
}
.ebh-about-body .figure {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-alt);
  position: sticky;
  top: 120px;
  align-self: start;
}
.ebh-about-body .figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ebh-about-body .prose p { color: var(--text-muted); margin-bottom: 22px; font-size: 1.02rem; }
.ebh-about-body .prose h3 {
  font-size: 1.5rem;
  margin: 40px 0 18px;
  color: var(--text);
}
.ebh-about-body .credentials {
  margin-top: 10px;
  border-top: 1px solid var(--border);
}
.ebh-about-body .credentials li {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.ebh-about-body .credentials .yr { color: var(--accent); font-family: var(--font-display); white-space: nowrap; }
.ebh-about-body .credentials .desc { color: var(--text-muted); text-align: right; }

/* ---- Services page list ---- */
.ebh-services-list { display: flex; flex-direction: column; }
.ebh-service-row {
  display: grid;
  grid-template-columns: 100px 1.2fr 1.6fr;
  gap: 30px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.ebh-service-row .idx { font-family: var(--font-display); color: var(--accent); font-size: 1.2rem; }
.ebh-service-row h3 { font-size: 1.6rem; }
.ebh-service-row p { color: var(--text-muted); max-width: 58ch; }

/* ---- Books page grid ---- */
.ebh-books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

/* ---- Contact page ---- */
.ebh-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
}
.ebh-contact-info h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.ebh-contact-info h3:first-child { margin-top: 0; }
.ebh-contact-info p, .ebh-contact-info a { color: var(--text-muted); }
.ebh-contact-info .social { display: flex; gap: 16px; margin-top: 8px; }
.ebh-contact-info .social a {
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 300ms var(--ease);
}
.ebh-contact-info .social a:hover { border-color: var(--accent); color: var(--accent); }

.ebh-form .field { margin-bottom: 24px; }
.ebh-form label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.ebh-form input, .ebh-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 2px;
  transition: border-color 300ms var(--ease);
}
.ebh-form input:focus, .ebh-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.ebh-form textarea { resize: vertical; min-height: 120px; }
.ebh-form .notice {
  padding: 16px 20px;
  border: 1px solid var(--border-strong);
  margin-bottom: 28px;
  font-size: 0.92rem;
}
.ebh-form .notice.success { border-color: var(--accent); color: var(--accent-bright); }
.ebh-form .notice.error { border-color: #b5533f; color: #d98a77; }

/* ---- Reveal-on-scroll ---- */
.ebh-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.ebh-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .ebh-reveal { opacity: 1; transform: none; transition: none; }
  .ebh .btn-primary:hover, .ebh .btn-ghost:hover { transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .ebh-strip .row { grid-template-columns: 1fr; }
  .ebh-strip .item { border-right: none; border-bottom: 1px solid var(--border); }
  .ebh-strip .item:last-child { border-bottom: none; }
  .ebh-grid-3 { grid-template-columns: 1fr; }
  .ebh-books-row, .ebh-books-grid { grid-template-columns: repeat(2, 1fr); }
  .ebh-gallery { grid-template-columns: repeat(2, 1fr); }
  .ebh-about-body .grid, .ebh-contact-grid { grid-template-columns: 1fr; }
  .ebh-about-body .figure { position: static; max-width: 420px; }
  .ebh-footer .top { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 820px) {
  .ebh-hero .grid, .ebh-about-preview .grid { grid-template-columns: 1fr; }
  .ebh-hero .figure { order: -1; max-width: 420px; margin: 0 auto; }
  .ebh-nav .nav-links {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 50px var(--gutter);
    gap: 30px;
    transform: translateX(100%);
    transition: transform 500ms var(--ease);
  }
  .ebh-nav .nav-links.is-open { transform: translateX(0); }
  .ebh-nav-toggle { display: block; }
  .ebh-service-row { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 640px) {
  .ebh-books-row, .ebh-books-grid { grid-template-columns: repeat(2, 1fr); }
  .ebh-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .ebh-section-head, .ebh .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}
