/* ─────────────────────────────────────────────────────────
   AniHive Homepage styles
   Honey/white palette, Fraunces + Inter, playful + editorial
   ───────────────────────────────────────────────────────── */

:root {
  --ah-honey: #F5B800;
  --ah-honey-deep: #E09A00;
  --ah-honey-dark: #7A4A00;
  --ah-ink: #1A1410;
  --ah-cream: #FAF6EC;
  --ah-paper: #FFFEFA;
}

.ah-homepage * { box-sizing: border-box; }
.ah-homepage {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ah-ink);
  background: var(--ah-paper);
  line-height: 1.5;
}
.ah-homepage h1, .ah-homepage h2, .ah-homepage h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}
.ah-homepage em { font-style: italic; }
.ah-homepage a { color: inherit; text-decoration: none; }
.ah-homepage img { max-width: 100%; display: block; }

.ah-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ah-honey-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
.ah-eyebrow--ink { color: var(--ah-ink); letter-spacing: 0.15em; }
.ah-highlight { background: rgba(245,184,0,.8); color: var(--ah-ink); padding: 0 4px; }

.ah-cta {
  display: inline-block;
  padding: 18px 28px;
  border: 2.5px solid var(--ah-ink);
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.ah-cta:hover { transform: scale(1.04); }
.ah-cta--ghost { border-color: var(--ah-honey); color: var(--ah-honey); background: transparent; }
.ah-cta--ghost:hover { background: var(--ah-honey); color: var(--ah-ink); }
.ah-cta--big {
  padding: 20px 36px; font-size: 18px;
  background: var(--ah-honey); color: var(--ah-ink);
  box-shadow: 6px 6px 0 var(--ah-ink);
}
.ah-cta--big:hover { transform: translateY(-3px) scale(1.02); box-shadow: 8px 8px 0 var(--ah-ink); }

.ah-badge {
  display: inline-block; padding: 8px 18px;
  background: var(--ah-honey); color: var(--ah-ink);
  border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 2px solid var(--ah-ink);
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 var(--ah-ink);
  margin-bottom: 32px;
}

/* ─── HERO ─── */
.ah-hero {
  position: relative; min-height: 820px;
  overflow: hidden; color: var(--ah-paper);
  isolation: isolate;
}
.ah-hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.ah-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(26,20,16,.8) 0%, rgba(26,20,16,.65) 40%, rgba(26,20,16,.85) 100%);
}
.ah-hero__vignette {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 80% 20%, rgba(245,184,0,.2), transparent 50%);
}
.ah-hero__sticker { position: absolute; z-index: 2; }
.ah-hero__sticker--1 { top: 240px; left: 60px; opacity: .85; transform: rotate(-15deg); }
.ah-hero__sticker--2 { bottom: 100px; left: 200px; opacity: .5; transform: rotate(20deg); }

.ah-hero__content {
  position: relative; z-index: 5;
  padding: 60px 60px 100px;
  max-width: 1280px;
}
.ah-hero__title {
  font-size: clamp(56px, 10vw, 156px);
  line-height: .92;
  color: var(--ah-paper);
}
.ah-hero__buzz { position: relative; display: inline-block; }
.ah-hero__buzz em { color: var(--ah-honey); font-weight: 400; }
.ah-hero__underline {
  position: absolute; bottom: -10px; left: 0; width: 100%;
}
.ah-hero__row {
  display: flex; align-items: flex-start; gap: 60px;
  margin-top: 64px; flex-wrap: wrap;
}
.ah-hero__lede {
  font-size: 19px; line-height: 1.55; max-width: 46ch;
  margin: 0; color: #EFE4D2;
}
.ah-hero__lede strong { color: var(--ah-paper); }
.ah-hero__spinner {
  position: absolute; top: 160px; right: 80px; z-index: 5;
  animation: ah-spin 30s linear infinite;
}

@keyframes ah-spin { to { transform: rotate(360deg); } }
@keyframes ah-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ah-marquee-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ah-marquee-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes ah-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ah-modal-slide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes ah-pop-in { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.1) rotate(5deg); } 100% { transform: scale(1) rotate(-3deg); opacity: 1; } }

/* ─── SERVICES ─── */
.ah-services { padding: 120px 60px; background: var(--ah-paper); }
.ah-services__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; max-width: 1280px; margin: 0 auto; }
.ah-services__heading { position: sticky; top: 100px; align-self: start; }
.ah-services__heading h2 { font-size: 56px; }
.ah-service-row {
  display: grid; grid-template-columns: 60px 1fr 1fr 60px;
  align-items: center; padding: 32px 0;
  border-bottom: 1px solid rgba(26,20,16,.13);
  transition: padding .3s ease, background .3s ease;
  color: var(--ah-ink); text-decoration: none;
}
.ah-service-row:first-child { border-top: 1px solid rgba(26,20,16,.13); }
.ah-service-row--linked { cursor: pointer; }
.ah-service-row--linked:hover { padding-left: 20px; background: var(--ah-cream); }
.ah-service-row__num { font-family: "Fraunces", serif; font-size: 14px; color: var(--ah-honey-dark); font-weight: 600; }
.ah-service-row__name { font-family: "Fraunces", serif; font-size: 32px; font-weight: 400; transition: font-size .3s, font-style .3s; }
.ah-service-row--linked:hover .ah-service-row__name { font-size: 36px; font-style: italic; }
.ah-service-row__desc { font-size: 14px; color: #5A4A38; line-height: 1.5; max-width: 38ch; }
.ah-service-row__arrow {
  justify-self: end; color: var(--ah-honey-dark);
  transition: transform .3s ease, color .3s ease;
}
.ah-service-row--linked:hover .ah-service-row__arrow {
  transform: translateX(8px) rotate(-45deg);
  color: var(--ah-honey-deep);
}

/* ─── WORKS ─── */
.ah-works { padding: 40px 60px 120px; background: var(--ah-paper); max-width: 1400px; margin: 0 auto; }
.ah-works__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; gap: 32px; flex-wrap: wrap; }
.ah-works__head h2 { font-size: 80px; line-height: 1; }
.ah-works__head h2 em { color: var(--ah-honey-deep); }
.ah-works__head p { font-size: 14px; color: #5A4A38; max-width: 28ch; margin: 0; }
.ah-works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ah-works__empty { padding: 60px; text-align: center; background: var(--ah-cream); border-radius: 18px; color: var(--ah-honey-dark); }

.ah-work-card {
  display: block; color: var(--ah-ink); text-decoration: none;
  background: var(--ah-paper);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 28px rgba(26,20,16,.12), 0 4px 10px rgba(26,20,16,.08);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
}
.ah-work-card:hover { transform: translateY(-10px) rotate(-1deg) scale(1.02); box-shadow: 0 24px 50px rgba(26,20,16,.30), 0 8px 18px rgba(26,20,16,.18); }
.ah-work-card:nth-child(2n):hover { transform: translateY(-10px) rotate(1deg) scale(1.02); }
.ah-work-card__media {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  position: relative;
}
.ah-work-card__year {
  position: absolute; top: 14px; right: 14px;
  background: var(--ah-paper); color: var(--ah-ink);
  padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  transform: rotate(4deg);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.ah-work-card__hover {
  position: absolute; inset: 0;
  background: rgba(245,184,0,.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.ah-work-card__hover span {
  background: var(--ah-ink); color: var(--ah-paper);
  padding: 12px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}
.ah-work-card:hover .ah-work-card__hover { opacity: 1; }
.ah-work-card:hover .ah-work-card__hover span { animation: ah-pop-in .4s ease-out; }
.ah-work-card__body { padding: 20px 22px; }
.ah-work-card__title { font-family: "Fraunces", serif; font-size: 24px; font-weight: 500; line-height: 1.1; color: var(--ah-ink); margin: 0; }
.ah-work-card__cat { font-size: 13px; color: var(--ah-honey-dark); font-weight: 600; margin-top: 6px; }
.ah-work-card__client { font-size: 13px; color: #5A4A38; margin-top: 2px; }

/* ─── CLIENTS (Marquee) ─── */
.ah-clients {
  padding: 70px 0 60px;
  background: var(--ah-honey);
  border-top: 2.5px solid var(--ah-ink);
  border-bottom: 2.5px solid var(--ah-ink);
  position: relative; overflow: hidden;
}
.ah-clients__head { padding: 0 60px; margin-bottom: 40px; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.ah-clients__head h3 { font-size: 56px; line-height: 1; }
.ah-clients__counter {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; background: var(--ah-paper);
  border: 2px solid var(--ah-ink); border-radius: 999px;
  font-size: 13px; font-weight: 600;
  box-shadow: 3px 3px 0 var(--ah-ink);
}
.ah-dot { width: 8px; height: 8px; border-radius: 999px; background: #2E8B57; }
.ah-clients__empty { padding: 60px; text-align: center; color: var(--ah-ink); }

.ah-marquee { overflow: hidden; white-space: nowrap; padding: 12px 0; }
.ah-marquee--row2 { margin-top: 8px; }
.ah-marquee__track { display: inline-flex; gap: 16px; }
.ah-marquee--row1 .ah-marquee__track { animation: ah-marquee-l 50s linear infinite; }
.ah-marquee--row2 .ah-marquee__track { animation: ah-marquee-r 60s linear infinite; }
.ah-marquee:hover .ah-marquee__track { animation-play-state: paused; }

.ah-logo-card {
  flex-shrink: 0; padding: 24px 32px;
  border: 2.5px solid var(--ah-ink);
  border-radius: 14px;
  min-width: 200px; height: 84px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s;
}
.ah-logo-card:hover { transform: scale(1.08) rotate(-2deg); }
.ah-logo-card--light { background: var(--ah-paper); box-shadow: 3px 3px 0 var(--ah-ink); }
.ah-logo-card--dark  { background: var(--ah-ink); box-shadow: 3px 3px 0 var(--ah-paper); }
.ah-logo-card img { max-height: 48px; max-width: 140px; width: auto; object-fit: contain; }
.ah-logo-card--dark img { filter: brightness(0) invert(1); }

/* ─── CONTACT ─── */
.ah-contact { padding: 120px 60px; text-align: center; background: var(--ah-paper); }
.ah-contact__bee { font-size: 64px; margin-bottom: 24px; animation: ah-bob 4s ease-in-out infinite; }
.ah-contact h2 { font-size: clamp(60px, 9vw, 120px); }
.ah-contact h2 em { color: var(--ah-honey-deep); }
.ah-contact p { font-size: 18px; color: #3A2E22; margin-top: 24px; }
.ah-contact .ah-cta { margin-top: 36px; }

/* ─── MODAL ─── */
.ah-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(20,15,8,.78);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: ah-modal-fade 220ms ease-out;
}
.ah-modal[hidden] { display: none; }
.ah-modal__inner {
  width: min(86%, 980px); max-height: 88vh;
  background: var(--ah-paper); border-radius: 14px; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: ah-modal-slide 320ms cubic-bezier(.2,.8,.2,1);
}
.ah-modal__media {
  background-size: cover; background-position: center;
  min-height: 420px; position: relative;
}
.ah-modal__body {
  padding: 36px 32px; display: flex; flex-direction: column;
  position: relative;
}
.ah-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 999px;
  border: none; background: var(--ah-paper); color: var(--ah-ink);
  cursor: pointer; font-size: 22px; font-weight: 300;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.ah-modal__meta {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ah-honey-dark); font-weight: 600;
}
.ah-modal__title {
  font-family: "Fraunces", serif; font-size: 38px;
  margin: 8px 0 16px; line-height: 1.05;
}
.ah-modal__blurb { font-size: 14.5px; line-height: 1.6; color: #3A2E22; margin: 0 0 24px; }
.ah-modal__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: auto; }
.ah-modal__tags span {
  font-size: 11px; padding: 5px 10px; border-radius: 999px;
  background: var(--ah-cream); color: var(--ah-honey-dark); font-weight: 500;
}
.ah-modal__link {
  margin-top: 24px; padding: 14px 22px;
  background: var(--ah-ink); color: var(--ah-paper);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .ah-hero__spinner { display: none; }
  .ah-services__grid { grid-template-columns: 1fr; gap: 32px; }
  .ah-services__heading { position: static; }
  .ah-works__grid { grid-template-columns: repeat(2, 1fr); }
  .ah-modal__inner { grid-template-columns: 1fr; }
  .ah-modal__media { min-height: 240px; }
}
@media (max-width: 640px) {
  .ah-hero__content, .ah-services, .ah-works, .ah-clients__head, .ah-contact { padding-left: 24px; padding-right: 24px; }
  .ah-hero { min-height: 640px; }
  .ah-hero__title { font-size: 56px; }
  .ah-services { padding-top: 80px; padding-bottom: 80px; }
  .ah-service-row { grid-template-columns: 40px 1fr; }
  .ah-service-row__desc { grid-column: 1 / -1; padding-left: 40px; }
  .ah-works__head h2 { font-size: 48px; }
  .ah-works__grid { grid-template-columns: 1fr; }
  .ah-clients__head h3 { font-size: 36px; }
  .ah-contact { padding: 80px 24px; }
}
