/* Fat Hippo Design Group — stylesheet
   Minimal, modern, mobile-first. */

:root {
  --pink: #e3007d;
  --dark: #232323;
  --grey: #6f6f6f;
  --light-grey: #ececec;
  --bg: #ffffff;
  --max-width: 1320px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--light-grey);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}
.logo-mark { height: 48px; width: auto; display: block; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo .fat, .logo .group { color: var(--dark); }
.logo .hippo { color: var(--pink); }
.logo .sub {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--grey);
  font-weight: 600;
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--dark);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--pink); border-color: var(--pink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 30px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
}

@media (max-width: 800px) {
  nav.main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 90px 32px 32px;
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.08);
  }
  nav.main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(0,0,0,0.35);
    z-index: 90; opacity: 0; visibility: hidden; transition: opacity .2s;
  }
  .nav-scrim.show { opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 78vh;
  min-height: 420px;
  max-height: 760px;
  overflow: hidden;
  background: #111;
}
.hero img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 24px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  color: #fff;
  z-index: 2;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-content p {
  font-size: 1.05rem;
  max-width: 540px;
  opacity: 0.92;
  margin: 0 0 18px;
}

.btn {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  padding: 12px 26px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
  transition: opacity .15s;
}
.btn:hover { opacity: 0.85; }
.btn.outline {
  background: transparent;
  border: 1.5px solid currentColor;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { margin-bottom: 40px; max-width: 640px; }
.section-head .eyebrow {
  color: var(--pink);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 12px; }
.section-head p { color: var(--grey); font-size: 1.05rem; line-height: 1.6; margin: 0; }

.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 800px) { .intro-split { grid-template-columns: 1fr; gap: 28px; } }
.intro-split p { color: var(--grey); line-height: 1.7; font-size: 1.05rem; }

/* ---------- Project grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }

.project-card { display: block; group: hover; }
.project-card .thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light-grey);
  border-radius: 3px;
}
.project-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.project-card:hover .thumb img { transform: scale(1.05); }
.project-card .meta { padding: 14px 2px 0; }
.project-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.project-card .loc { color: var(--grey); font-size: 0.85rem; }

.view-all { text-align: center; margin-top: 44px; }

/* ---------- Project detail ---------- */
.project-hero {
  padding: 48px 0 0;
}
.project-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 6px; }
.project-hero .loc { color: var(--pink); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }
.project-hero .blurb { color: var(--grey); max-width: 680px; margin-top: 16px; font-size: 1.05rem; line-height: 1.6; }
.back-link { color: var(--grey); font-size: 0.85rem; display: inline-block; margin-bottom: 18px; }
.back-link:hover { color: var(--pink); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; gap: 10px; } }
.gallery figure {
  margin: 0; cursor: zoom-in; overflow: hidden; border-radius: 3px; background: var(--light-grey);
  aspect-ratio: 4/3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery figure:hover img { transform: scale(1.04); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,10,10,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox .close, .lightbox .nav-arrow {
  position: absolute; background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer; padding: 10px; line-height: 1;
}
.lightbox .close { top: 16px; right: 20px; }
.lightbox .prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- About ---------- */
.bio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin-top: 40px; }
.bio-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.bio-card p { color: var(--grey); line-height: 1.65; }
.services-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 32px; }
.services-list li { padding: 6px 0 6px 18px; position: relative; color: var(--grey); }
.services-list li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: var(--pink); border-radius: 50%; }

/* ---------- Awards ---------- */
.awards-list { margin-top: 30px; border-top: 1px solid var(--light-grey); }
.award-item {
  padding: 22px 0; border-bottom: 1px solid var(--light-grey);
  display: flex; gap: 24px; align-items: flex-start;
}
.award-meta {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; min-width: 72px; flex-shrink: 0;
}
.award-item .year { color: var(--pink); font-weight: 800; font-size: 1.1rem; }
.award-logo { height: 30px; width: auto; max-width: 72px; object-fit: contain; opacity: 0.65; filter: grayscale(20%); }
.award-body .title { font-weight: 600; }
.award-body .org { color: var(--grey); font-size: 0.92rem; margin-top: 2px; }
.award-body .note { color: var(--grey); font-size: 0.88rem; font-style: italic; margin-top: 2px; }
.award-medals { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.award-medals img { height: 80px; width: auto; }
@media (max-width: 560px) { .award-item { flex-direction: column; gap: 4px; } }

/* Testimonial on dark scene-bg */
.scene-bg .testimonial { background: rgba(0,0,0,0.25); border-color: var(--pink); }
.scene-bg .testimonial blockquote { color: #fff; }
.scene-bg .testimonial cite { color: rgba(255,255,255,0.72); }

/* ---------- Contact ---------- */
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; }
@media (max-width: 800px) { .office-grid { grid-template-columns: 1fr; } }
.office-card {
  border: 1px solid var(--light-grey); border-radius: 4px; padding: 28px;
}
.office-card h3 { margin: 0 0 14px; font-size: 1.15rem; }
.office-card p { margin: 0 0 8px; color: var(--grey); line-height: 1.5; }
.office-card a { color: var(--dark); font-weight: 600; }
.office-card a:hover { color: var(--pink); }
.office-card .social-row { margin-top: 0; }

/* Contact hero — full-bleed photo with overlay cards */
.contact-hero { padding-bottom: 100px; }
.contact-hero::before {
  background: linear-gradient(160deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.5) 100%);
}
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 680px; }
@media (max-width: 640px) { .contact-cols { grid-template-columns: 1fr; } }
.contact-card-dark {
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
  padding: 28px;
  backdrop-filter: blur(3px);
}
.contact-card-dark h3 { color: #fff; margin: 0 0 14px; font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }
.contact-card-dark p { color: rgba(255,255,255,0.82) !important; margin: 0 0 6px; line-height: 1.55; font-size: 0.97rem; }
.contact-card-dark a { color: #fff !important; font-weight: 600; }
.contact-card-dark a:hover { color: var(--pink) !important; }
.contact-card-dark .social-row { margin-top: 0; }
.contact-card-dark .social-row a { background: rgba(255,255,255,0.14); color: #fff; }
.contact-card-dark .social-row a:hover { background: var(--pink); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--dark);
  color: #cfcfcf;
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col p, .footer-col a { font-size: 0.9rem; color: #b6b6b6; line-height: 1.7; }
.footer-col a:hover { color: var(--pink); }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%; background: #353535;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.95rem;
}
.social-row a:hover { background: var(--pink); }
.footer-bottom {
  border-top: 1px solid #3a3a3a; margin-top: 36px; padding-top: 20px;
  font-size: 0.8rem; color: #8a8a8a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Scene background ---------- */
.scene-bg {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.scene-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 0;
}
.scene-bg > .wrap { position: relative; z-index: 1; }
.scene-bg .eyebrow { color: rgba(255,255,255,0.7) !important; }
.scene-bg h1, .scene-bg h2 { color: #fff !important; }
.scene-bg p { color: rgba(255,255,255,0.85) !important; }

/* ---------- Testimonial ---------- */
.testimonial {
  border-left: 4px solid var(--pink);
  padding: 18px 28px;
  margin: 40px 0 0;
  background: #fafafa;
  border-radius: 0 4px 4px 0;
}
.testimonial blockquote {
  margin: 0; font-size: 1.1rem; font-style: italic;
  color: var(--dark); line-height: 1.65;
}
.testimonial cite {
  display: block; margin-top: 12px;
  font-size: 0.88rem; color: var(--grey); font-style: normal;
  font-weight: 600;
}

/* ---------- Utility ---------- */
.bg-light { background: #fafafa; }
.text-center { text-align: center; }
