/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --navy: #0d1b2a;
  --cream: #f7f4ee;
  --coral: #d97757;
  --navy-70: rgba(13, 27, 42, 0.7);
  --navy-45: rgba(13, 27, 42, 0.45);
  --navy-08: rgba(13, 27, 42, 0.08);
  --navy-14: rgba(13, 27, 42, 0.14);
  --max-width: 1080px;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy);
}

p {
  margin: 0 0 1em;
}

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

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav a {
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  color: var(--coral);
}

.site-nav a.active {
  border-bottom-color: var(--coral);
  color: var(--coral);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 4.5rem 1.5rem 2.5rem;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.hero-sub {
  max-width: 640px;
  color: var(--navy-70);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ==========================================================================
   GEO Work — case study list
   ========================================================================== */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1rem 1.5rem 6rem;
}

.case-card {
  background: #fffdfa;
  border: 1px solid var(--navy-08);
  border-radius: 6px;
  padding: 2rem 2.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.case-card:hover {
  box-shadow: 0 8px 24px var(--navy-08);
  transform: translateY(-2px);
}

.case-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}

.case-gap-label,
.case-fix-label {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}

.case-gap-text,
.case-fix-text {
  color: var(--navy-70);
  margin-bottom: 1.4em;
}

.case-closing {
  margin: 0;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--navy-45);
  border-top: 1px solid var(--navy-08);
  padding-top: 1rem;
}

/* ==========================================================================
   Video Ad Work — grid
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  padding: 1rem 1.5rem 6rem;
}

.video-item {
  background: #fffdfa;
  border: 1px solid var(--navy-08);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.video-item:hover {
  box-shadow: 0 8px 24px var(--navy-08);
  transform: translateY(-2px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
  display: block;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.video-thumb:hover .play-button {
  transform: scale(1.08);
}

.play-button svg {
  width: 18px;
  height: 18px;
  fill: var(--cream);
  margin-left: 3px;
}

.video-caption {
  padding: 0.85rem 1.1rem 1.1rem;
  font-size: 0.9rem;
  color: var(--navy-70);
  margin: 0;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--cream);
  background: var(--navy);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--navy-08);
  padding: 2rem 0;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--navy-45);
}

/* ==========================================================================
   Mobile nav
   ========================================================================== */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav.is-open {
    max-height: 220px;
  }

  .site-nav a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(247, 244, 238, 0.08);
  }

  .site-nav a.active {
    border-bottom: 1px solid rgba(247, 244, 238, 0.08);
  }

  .case-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1.25rem 2rem;
  }

  .case-list,
  .video-grid {
    padding: 1rem 1.25rem 4rem;
  }
}
