* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
button { font: inherit; }

html, body {
  background: oklch(0.978 0.004 260);
}

html, body { overflow-x: hidden; }

body {
  color: oklch(0.24 0.02 265);
  font-family: 'Archivo', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Hamburger (hidden on desktop) */
.mobile-toggle {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  margin-left: auto;
  background: transparent; border: none; cursor: pointer;
  padding: 10px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.mobile-toggle__bar {
  display: block; height: 2.5px; width: 100%; border-radius: 2px;
  background: #012169; transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-toggle.open .mobile-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mobile-toggle.open .mobile-toggle__bar:nth-child(2) { opacity: 0; }
.mobile-toggle.open .mobile-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav panel (hidden on desktop) */
.mobile-nav {
  display: none;
  border-bottom: 1px solid oklch(0.89 0.006 260);
  background: oklch(0.99 0.002 260);
  max-height: calc(100dvh - 74px);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav__inner { padding: 14px 20px 22px; }
.mobile-nav__section-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: oklch(0.5 0.015 265);
  padding: 14px 6px 8px;
}
.mobile-nav__item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 6px; border-radius: 12px;
}
.mobile-nav__item:active { background: oklch(0.95 0.008 260); }
.mobile-nav__mono {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; letter-spacing: 0.03em;
}
.mobile-nav__text { min-width: 0; }
.mobile-nav__name { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.mobile-nav__role {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: oklch(0.5 0.015 265); margin-top: 2px;
}
.mobile-nav__search {
  display: flex; align-items: center; justify-content: center;
  background: #012169; color: white; font-weight: 700; font-size: 15px;
  padding: 14px; border-radius: 12px; margin: 8px 6px 4px;
}

/* Utility bar */
.utility-bar {
  background: #012169;
  color: oklch(0.95 0.008 260);
  position: relative;
  z-index: 70;
}
.utility-bar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}
.utility-bar__left { display: flex; align-items: center; gap: 10px; }
.utility-bar__group { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.utility-bar__sep { opacity: 0.4; }
.utility-bar__tagline { opacity: 0.85; }
.utility-bar__right { display: flex; align-items: center; gap: 20px; }
.utility-bar__contact { opacity: 0.85; font-weight: 500; }

.signin { position: relative; }
.signin-btn {
  display: flex; align-items: center; gap: 7px;
  background: oklch(0.35 0.1 265);
  border: 1px solid oklch(0.47 0.09 265);
  color: inherit;
  font-weight: 700; font-size: 12.5px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.signin-btn__caret { font-size: 9px; opacity: 0.8; }
.signin-dropdown {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 280px;
  background: white;
  color: oklch(0.24 0.02 265);
  border: 1px solid oklch(0.89 0.006 260);
  border-radius: 12px;
  box-shadow: 0 20px 40px -16px rgb(0 0 0 / 0.25);
  padding: 8px;
  z-index: 80;
}
.signin-dropdown.open { display: block; }
.signin-dropdown__label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: oklch(0.5 0.015 265);
  padding: 8px 10px 6px;
}
.signin-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
}
.signin-item:hover { background: oklch(0.96 0.006 260); }
.signin-item__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.signin-item__label { font-size: 13px; font-weight: 600; flex: 1; }
.signin-item__org { font-size: 11.5px; color: oklch(0.5 0.015 265); }

/* Header + nav */
.header-wrap { position: sticky; top: 0; z-index: 60; }
.header { background: oklch(0.99 0.002 260); border-bottom: 1px solid oklch(0.89 0.006 260); }
.header__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 28px; height: 74px;
}
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; }
.logo__word { font-weight: 800; font-size: 19px; letter-spacing: -0.015em; line-height: 1; }
.logo__word .navy { color: #012169; }
.logo__word .red { color: #C8102E; }
.logo__sub {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: oklch(0.5 0.015 265); margin-top: 3px;
}

.nav { display: flex; align-items: stretch; flex: 1; height: 74px; }
.nav__btn {
  background: transparent;
  border: none;
  font-weight: 600; font-size: 14px; color: inherit;
  cursor: pointer;
  padding: 0 13px;
  height: 74px;
  box-shadow: inset 0 -3px 0 transparent;
  white-space: nowrap;
}
.nav__btn.active { background: oklch(0.95 0.008 260); }

.search-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: #012169; color: white; font-weight: 700; font-size: 13.5px;
  padding: 10px 18px; border-radius: 999px;
}
.search-btn:hover { background: oklch(0.3 0.11 265); }

/* Mega menu */
.mega {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: white;
  border-top: 3px solid var(--accent, transparent);
  border-bottom: 1px solid oklch(0.89 0.006 260);
  box-shadow: 0 32px 56px -28px rgb(0 0 0 / 0.22);
}
.mega.open { display: block; }
.mega__inner {
  max-width: 1240px; margin: 0 auto; padding: 34px 32px 38px;
  display: grid; grid-template-columns: 300px 1fr; gap: 56px;
}
.mega__left { display: flex; flex-direction: column; gap: 16px; }
.mega__head { display: flex; align-items: center; gap: 13px; }
.mega__mono {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; letter-spacing: 0.03em; flex: none;
}
.mega__name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.mega__role {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: oklch(0.5 0.015 265); margin-top: 2px;
}
.mega__desc { font-size: 13.5px; line-height: 1.6; color: oklch(0.42 0.015 265); }
.mega__actions { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.mega__cta {
  background: var(--accent); color: var(--ink);
  font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 999px;
}
.mega__login {
  border: 1.5px solid oklch(0.85 0.008 260); color: oklch(0.32 0.015 265);
  font-weight: 600; font-size: 13px; padding: 8px 15px; border-radius: 999px;
}
.mega__login:hover { border-color: oklch(0.6 0.015 265); }
.mega__groups {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  border-left: 1px solid oklch(0.92 0.005 260); padding-left: 48px;
}
.mega__group-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: oklch(0.5 0.015 265);
  margin-bottom: 13px; padding-bottom: 9px; border-bottom: 1px solid oklch(0.92 0.005 260);
}
.mega__link { display: block; padding: 5.5px 0; font-size: 13.5px; font-weight: 500; color: oklch(0.3 0.015 265); }
.mega__link:hover { color: var(--accent); }

/* Hero — full-width background video */
.vhero {
  position: relative;
  width: 100%;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #011a52;           /* fallback shown until the video loads */
  isolation: isolate;
}
.vhero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.vhero__video {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;          /* 16:9 keyed off width */
  min-width: 177.78vh; min-height: 100%;  /* …grown to fully cover tall/narrow viewports */
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.vhero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(1,18,52,0.86), rgba(1,18,52,0.55) 46%, rgba(1,18,52,0.25)),
    linear-gradient(0deg, rgba(1,18,52,0.60), rgba(1,18,52,0.05) 42%);
}
.vhero__inner { max-width: 1240px; width: 100%; margin: 0 auto; padding: 104px 32px; }
.vhero__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #ff8ea0; margin-bottom: 18px;
}
.vhero__title {
  margin: 0 0 22px; font-size: 56px; line-height: 1.03;
  font-weight: 800; letter-spacing: -0.025em; color: #fff;
  max-width: 17ch; text-wrap: balance;
  text-shadow: 0 2px 34px rgba(0,0,0,0.35);
}
.vhero__desc {
  margin: 0 0 32px; font-size: 17px; line-height: 1.6;
  color: rgba(255,255,255,0.9); max-width: 56ch;
  text-shadow: 0 1px 18px rgba(0,0,0,0.3);
}
.vhero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-primary { background: #012169; color: white; font-weight: 700; font-size: 14.5px; padding: 13px 24px; border-radius: 999px; }
.btn-primary:hover { background: oklch(0.3 0.11 265); }
.btn-secondary { border: 1.5px solid oklch(0.85 0.008 260); color: oklch(0.3 0.015 265); font-weight: 600; font-size: 14.5px; padding: 12px 23px; border-radius: 999px; }
.btn-secondary:hover { border-color: oklch(0.6 0.015 265); }

/* Hero CTAs on the dark video: red primary pops, ghost outline for secondary */
.vhero .btn-primary { background: #C8102E; }
.vhero .btn-primary:hover { background: #a50d25; }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.55); color: #fff;
  font-weight: 600; font-size: 14.5px; padding: 12px 23px; border-radius: 999px;
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.14); }

@media (prefers-reduced-motion: reduce) {
  .vhero__media { display: none; }
}

/* Explore / brand directory */
.explore { background: oklch(0.95 0.008 260); border-top: 1px solid oklch(0.89 0.007 260); border-bottom: 1px solid oklch(0.89 0.007 260); }
.explore__inner { max-width: 1240px; margin: 0 auto; padding: 64px 32px 72px; }
.explore__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 34px; }
.explore__title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.explore__note { font-size: 13.5px; color: oklch(0.45 0.015 265); }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.brand-card {
  background: white; border: 1px solid oklch(0.89 0.007 260); border-radius: 16px;
  padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgb(0 0 0 / 0.25); }
.brand-card__mono {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; letter-spacing: 0.03em;
}
.brand-card__name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.brand-card__role {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: oklch(0.5 0.015 265); margin-top: 3px;
}
.brand-card__short { font-size: 12.5px; line-height: 1.55; color: oklch(0.45 0.015 265); flex: 1; }
.brand-card__link { font-size: 13px; font-weight: 700; color: var(--link); }
.brand-card--note {
  border: 1.5px dashed oklch(0.82 0.015 265); border-radius: 16px; padding: 22px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.brand-card--note__title { font-weight: 700; font-size: 14.5px; color: oklch(0.33 0.08 265); }
.brand-card--note__desc { font-size: 12.5px; line-height: 1.55; color: oklch(0.45 0.015 265); }

/* Breed societies */
.breeds {
  max-width: 1240px; margin: 0 auto; padding: 68px 32px 8px;
  display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start;
}
.breeds__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #C8102E; margin-bottom: 14px;
}
.breeds__title { margin: 0 0 16px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.breeds__desc { font-size: 14px; line-height: 1.65; color: oklch(0.42 0.015 265); }
.breed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.breed-card {
  display: flex; align-items: center; gap: 14px;
  background: white; border: 1px solid oklch(0.89 0.007 260); border-radius: 14px;
  padding: 15px 18px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.breed-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgb(0 0 0 / 0.25); }
.breed-card__swatch {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: var(--swatch);
  box-shadow: inset 0 0 0 3px oklch(0.978 0.004 260);
}
.breed-card__body { flex: 1; min-width: 0; }
.breed-card__top { display: flex; align-items: baseline; gap: 8px; }
.breed-card__name { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.breed-card__society { font-size: 11.5px; color: oklch(0.55 0.015 265); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breed-card__blurb { display: block; font-size: 12.5px; line-height: 1.5; color: oklch(0.45 0.015 265); margin-top: 3px; }
.breed-card__arrow { flex: none; font-size: 13px; font-weight: 700; color: #012169; }

/* News + events */
.news-events { max-width: 1240px; margin: 0 auto; padding: 68px 32px 80px; display: grid; grid-template-columns: 2fr 1fr; gap: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.section-head a { font-size: 13.5px; font-weight: 700; color: #012169; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { display: flex; flex-direction: column; gap: 12px; }
.news-card__thumb {
  aspect-ratio: 3 / 2; border-radius: 12px;
  background: repeating-linear-gradient(135deg, oklch(0.93 0.008 260), oklch(0.93 0.008 260) 10px, oklch(0.9 0.01 260) 10px, oklch(0.9 0.01 260) 20px);
  border: 1px solid oklch(0.89 0.006 260);
  display: flex; align-items: center; justify-content: center;
}
.news-card__thumb span { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: oklch(0.55 0.015 265); }
.news-card__thumb--img { background: none; border: 1px solid oklch(0.89 0.006 260); overflow: hidden; padding: 0; }
.news-card__thumb--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__meta { display: flex; align-items: center; gap: 8px; }
.news-card__tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  color: var(--tag-color); background: var(--tag-bg);
}
.news-card__date { font-size: 12px; color: oklch(0.55 0.015 265); }
.news-card__title { font-weight: 700; font-size: 15.5px; line-height: 1.35; letter-spacing: -0.01em; }

.events-list { display: flex; flex-direction: column; }
.event-row { display: flex; align-items: center; gap: 16px; padding: 15px 4px; border-top: 1px solid oklch(0.9 0.006 260); }
.event-row:hover { background: oklch(0.96 0.006 260); }
.event-row__date { flex: none; width: 52px; text-align: center; background: white; border: 1px solid oklch(0.89 0.006 260); border-radius: 10px; padding: 7px 0; }
.event-row__day { font-weight: 800; font-size: 16px; line-height: 1; }
.event-row__month { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.5 0.015 265); margin-top: 3px; }
.event-row__name { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.event-row__meta { font-size: 12px; color: oklch(0.5 0.015 265); margin-top: 3px; }

/* Footer */
.footer { background: oklch(0.25 0.1 265); color: oklch(0.94 0.006 260); }
.footer__inner { max-width: 1240px; margin: 0 auto; padding: 56px 32px 28px; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid oklch(0.35 0.09 265); }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__mark { width: 34px; height: 34px; border-radius: 10px; background: white; display: flex; align-items: center; justify-content: center; }
.footer__wordmark { font-weight: 800; font-size: 17px; }
.footer__desc { font-size: 13px; line-height: 1.65; opacity: 0.75; max-width: 34ch; }
.footer__col-title { font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; opacity: 0.6; margin-bottom: 14px; }
.footer__link { display: block; opacity: 0.85; font-size: 13px; font-weight: 500; padding: 4px 0; }
.footer__link:hover { opacity: 1; }
.footer__contact { font-size: 13px; line-height: 2; opacity: 0.85; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; font-size: 12px; opacity: 0.65; }
.footer__legal { display: flex; gap: 22px; }

/* ============================================================
   Responsive
   ============================================================ */

/* Medium screens — tighten desktop layout before the mobile break */
@media (max-width: 1080px) {
  .vhero__title { font-size: 48px; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .mega__inner { gap: 36px; }
  .mega__groups { gap: 28px; padding-left: 32px; }
}

/* Tablet & below — switch to the mobile menu */
@media (max-width: 900px) {
  .nav, .search-btn { display: none; }
  .mega { display: none !important; }
  .mobile-toggle { display: flex; }
  .header__inner { gap: 16px; height: 66px; }

  .utility-bar__tagline, .utility-bar__sep { display: none; }
  .utility-bar__inner { padding: 0 20px; height: 36px; }

  .vhero { min-height: min(80vh, 620px); }
  .vhero__inner { padding: 72px 24px; }
  .vhero__title { font-size: 40px; }

  .breeds { grid-template-columns: 1fr; gap: 28px; padding: 52px 24px 8px; }
  .news-events { grid-template-columns: 1fr; gap: 48px; padding: 52px 24px 64px; }

  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .explore__inner { padding: 48px 24px 56px; }
}

/* Phones */
@media (max-width: 620px) {
  .vhero { min-height: min(78vh, 560px); }
  .vhero__inner { padding: 56px 20px; }
  .vhero__eyebrow { font-size: 11px; margin-bottom: 12px; }
  .vhero__title { font-size: 32px; margin-bottom: 16px; max-width: 100%; }
  .vhero__desc { font-size: 15px; margin-bottom: 24px; }
  .vhero__actions { gap: 10px; }
  .vhero .btn-primary, .vhero .btn-ghost { flex: 1; min-width: 0; text-align: center; padding: 13px 18px; }

  .explore__head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 24px; }
  .explore__title, .breeds__title { font-size: 24px; }
  .brand-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-grid { grid-template-columns: 1fr; gap: 24px; }
  .breed-grid { grid-template-columns: 1fr; }
  .breed-card__society { white-space: normal; }

  .section-head h2 { font-size: 21px; }

  .footer__inner { padding: 44px 20px 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer__legal { flex-wrap: wrap; gap: 14px 20px; }

  .signin-dropdown { width: min(280px, calc(100vw - 40px)); }
}
