:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0b0d12;
  --muted: rgba(11, 13, 18, 0.65);
  --accent: #0071e3;
  --border: rgba(11, 13, 18, 0.08);
  --radius: 30px;
  --transition: 0.4s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 22px;
}

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

.skip {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -140%);
  background: var(--ink);
  color: #fff;
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s ease;
  z-index: 40;
}

.skip:focus {
  transform: translate(-50%, 20%);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.modern-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  position: sticky;
  top: 0;
  background: rgba(245, 246, 248, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.logo-stack {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.theme-switch {
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modern-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.modern-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color var(--transition);
}

.modern-nav a:hover {
  color: var(--ink);
}

.ghost-btn,
.solid-btn {
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.solid-btn {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

.solid-btn.light {
  background: #fff;
  color: var(--ink);
}

.ghost-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.solid-btn:hover {
  filter: brightness(1.1);
}

.modern-main {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 0 4rem;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08);
  transition: transform 0.9s ease, opacity 0.9s ease, box-shadow 0.4s ease;
}

.chip {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.modern-hero {
  text-align: center;
  overflow: hidden;
}

.modern-hero .hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 auto 1.2rem;
  max-width: 860px;
  font-weight: 600;
  transition: opacity 0.45s ease;
}

.modern-hero .hero-title.is-transitioning {
  opacity: 0;
}

.hero-font-montserrat {
  font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #12284a;
}

.hero-font-titular {
  font-family: 'Titular', 'Montserrat', 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4b100;
  text-shadow: 4px 4px 0 rgba(10, 37, 64, 0.85);
}

.hero-font-highest {
  font-family: 'Highest Praise', 'Playfair Display', 'Inter', serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #ff5c99;
}

.hero-font-legitima {
  font-family: 'Legitima', 'Playfair Display', serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #0a7d83;
}

.hero-divider {
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 113, 227, 0), rgba(0, 113, 227, 0.8), rgba(0, 113, 227, 0));
  margin: 0 auto 1.5rem;
}

.hero-brandgen-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-subhead {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 auto 2rem;
  max-width: 640px;
}

.hero-video-gallery {
  border-radius: 30px;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.hero-video-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 0.75rem;
  animation: video-loop 40s linear infinite;
}

.hero-video {
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}

.hero-video video {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

@keyframes video-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0.2rem 0 0;
  max-width: 560px;
}

.pill-link {
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.pill-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.case-rail-wrapper {
  overflow: hidden;
}

.case-rail {
  display: flex;
  gap: 1rem;
  animation: case-scroll 40s linear infinite;
}

.case-card {
  min-width: 240px;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-card div {
  padding: 1.1rem 1.2rem 1.5rem;
}

.case-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.case-card img {
  border-radius: 0;
  height: 320px;
  object-fit: cover;
}

@keyframes case-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.modern-arts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.arts-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.story-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.story-rail article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.05);
}

.story-rail img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 16px;
}

.story-rail strong {
  display: block;
  font-size: 0.95rem;
}

.endcap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.endcap-links {
  display: flex;
  gap: 1rem;
  font-weight: 600;
}

.meta-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.75rem;
  z-index: 30;
}

.chat-launcher {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  background: #10131a;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.28);
}

.chat-panel {
  width: min(380px, 92vw);
  height: 520px;
  border-radius: 26px;
  border: 1px solid rgba(16, 19, 26, 0.1);
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.22);
  background: #f6f7fb;
  position: relative;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.chat-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-panel__close {
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.2rem;
  color: var(--ink);
  border: 1px solid rgba(16, 19, 26, 0.12);
  cursor: pointer;
  z-index: 2;
}

.chat-panel__iframe-wrapper {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.chat-panel__iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
}

.chat-launcher.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.is-observe {
  opacity: 0;
  transform: translateY(30px);
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modern-footer {
  width: min(1100px, 92vw);
  margin: 0 auto 3rem;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 720px) {
  .modern-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .modern-nav {
    flex-wrap: wrap;
  }
  .ghost-btn {
    justify-self: center;
  }
  .story-list article {
    grid-template-columns: 1fr;
  }
  .chat-widget {
    right: 1rem;
    left: 1rem;
    align-items: stretch;
  }
  .chat-panel {
    width: 100%;
    height: min(80vh, 500px);
  }
}
