/* Clear, photo-forward refresh for EBC's public pages */
:root {
  --modern-ink: #171714;
  --modern-gold: #d8ad50;
  --modern-paper: #f6f5f1;
}
html { scroll-behavior: smooth; }
body { background: var(--modern-paper); color: var(--modern-ink); }
.topbar {
  background: rgba(18, 18, 16, .96);
  backdrop-filter: blur(12px);
}
.nav { min-height: 78px; }
.brand img { width: 142px; }
.navlinks > a { font-size: .94rem; }
.navlinks > a:hover { background: rgba(255,255,255,.11); }
.navlinks > .nav-cta, .btn.primary {
  background: var(--modern-gold);
  color: #171714;
  box-shadow: 0 8px 24px rgba(216,173,80,.17);
}
.btn { min-height: 48px; border-radius: 10px; }
.hero {
  height: min(790px, calc(100svh - 78px));
  min-height: 620px;
}
.hero-inner {
  height: 100%;
  min-height: 0;
  padding-top: 122px;
  padding-bottom: 38px;
  align-items: center;
}
.hero-copy-wrap {
  width: min(760px, 100%);
  padding: clamp(24px, 3vw, 38px);
  border-radius: 16px;
  background: linear-gradient(125deg, rgba(12,12,11,.82), rgba(12,12,11,.56));
  backdrop-filter: blur(5px);
}
.hero h1 { font-size: clamp(48px, 6.3vw, 84px); line-height: .98; }
.hero-copy { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.55; }
.hero-stats { margin-top: 24px; }
.hero-stat { background: rgba(255,255,255,.1); }
.section-head { max-width: 820px; }
.media-wall { gap: 14px; }
.media-wall .media-tile {
  min-height: 270px;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(17,17,15,.12);
}
.media-tile img, .video-card img, .service-photo-strip img {
  display: block;
  object-fit: cover;
}
.service-photo-strip { gap: 14px; }
.service-photo-strip img { border-radius: 16px; }
.service-row { border-radius: 12px; }
.video-card, .portfolio-card { border-radius: 16px; }
.portfolio-hero {
  min-height: min(650px, calc(78svh - 78px));
  padding: 132px 0 70px;
}
.portfolio-hero-inner { width: min(1180px, calc(100% - 40px)); }
.portfolio-intro, .portfolio-work { padding-block: clamp(54px, 7vw, 92px); }
.portfolio-filter { position: static; top: auto; }
.portfolio-filter button { min-height: 44px; }
.portfolio-grid { gap: 16px; }
.portfolio-card { min-height: 280px; }
.gallery-more { min-height: 48px; border-radius: 999px; }
.gallery-contact {
  margin: 24px 0 30px;
  padding: 18px 20px;
  border: 1px solid rgba(23,23,20,.12);
  border-radius: 14px;
  background: #fff;
}
.gallery-contact p { margin: 0; }
.footer { background: #171714; }
.mobile-actions a { min-height: 48px; }
:focus-visible { outline: 3px solid #e2b756; outline-offset: 3px; }
@media (max-width: 760px) {
  .nav { min-height: 70px; }
  .brand img { width: 118px; }
  .hero { height: auto; min-height: calc(100svh - 70px); }
  .hero-inner { height: auto; min-height: calc(100svh - 70px); padding: 128px 0 28px; }
  .hero-copy-wrap { padding: 23px 20px; border-radius: 14px; }
  .hero h1 { font-size: clamp(44px, 12vw, 68px); }
  .hero-stats { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
  .hero-stat { padding: 11px 13px; }
  .hero-stat strong { font-size: 13px; }
  .hero-stat span { font-size: 13px; }
  .service-photo-strip { grid-template-columns: 1fr; }
  .service-photo-strip img { height: 250px; min-height: 0; }
  .media-wall { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .media-wall .media-tile, .media-wall .media-tile:nth-child(n) {
    grid-column: span 1;
    min-height: 220px;
  }
  .portfolio-hero { min-height: 500px; padding: 118px 0 52px; }
  .portfolio-filter { display: flex; overflow-x: auto; flex-wrap: nowrap; }
  .portfolio-filter button { flex: 0 0 auto; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { height: 300px; }
  .gallery-contact { display: grid; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.faq-cta { margin-top: 1.75rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgba(17,16,13,.12); border-radius: 1.25rem; background: rgba(255,255,255,.58); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.faq-cta > p { margin: 0; color: #171613; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
.faq-cta .actions { margin: 0; }
@media (max-width: 760px) { .faq-cta { align-items: stretch; flex-direction: column; gap: 1rem; } .faq-cta .actions { flex-direction: column; } }

/* Homepage brand intro: once per tab session; reduced-motion visitors skip it. */
.site-intro { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #292315 0%, #12110e 52%, #080807 100%); opacity: 1; visibility: visible; transition: opacity .6s ease, visibility .6s ease; }
html:not(.site-intro-active) .site-intro { display: none; }
.site-intro img { display: block; width: min(440px, 72vw); max-height: 48vh; object-fit: contain; filter: drop-shadow(0 18px 48px rgba(212,166,78,.16)); animation: ebc-logo-intro 1.85s cubic-bezier(.2,.7,.25,1) forwards; }
.site-intro.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes ebc-logo-intro { 0% { opacity: 0; transform: scale(.82); } 18% { opacity: 1; transform: scale(1); } 48% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.32); } }
.about-hero { min-height: 0 !important; padding: 142px 0 42px !important; }
.founder-photo.portrait { min-height: 620px; }
@media (max-width: 760px) {
  .about-hero { min-height: 0 !important; padding: 116px 0 34px !important; }
  .founder-photo.portrait { min-height: 480px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-intro { display: none !important; transition: none; }
  .site-intro img { animation: none; }
}

/* Founder portrait entrance uses the same shrink and fade as the homepage logo. */
.site-intro--portrait img {
  width: min(420px, 78vw);
  height: auto;
  max-height: 72svh;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  animation: none;
}
.site-intro--portrait.is-ready img {
  animation: ebc-logo-intro 1.85s cubic-bezier(.2,.7,.25,1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .site-intro--portrait.is-ready img { animation: none; }
}
