/* Joy Digital Media — Midnight (Look A)
   near-black #0B0A09 · panel #14120F · line #2A2622 · cream #F3EBDD · gold #D8B665 · gold-deep #B8933F · muted #B8AA92 */

:root {
  --bg: #0B0A09;
  --panel: #14120F;
  --panel-2: #1B1814;
  --line: #2A2622;
  --cream: #F3EBDD;
  --cream-soft: #D9CEBB;
  --muted: #B8AA92;
  --gold: #D8B665;
  --gold-deep: #B8933F;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--cream); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s, color .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(216, 182, 101, .6); }
.btn-sm { padding: 11px 22px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: #E4C67C; }
.btn-ink { background: var(--bg); color: var(--gold); }
.btn-ink:hover { background: #1B1814; }
.btn-outline-ink { border-color: var(--bg); color: var(--bg); }
.btn-outline-ink:hover { background: rgba(11, 10, 9, .08); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-top: 8px; }
.cta-note { font-size: 15px; color: var(--cream-soft); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { width: 72px; height: 72px; }
.brand-name { display: flex; flex-direction: column; font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1.1; color: var(--cream); letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { font-weight: 500; font-size: 15px; text-decoration: none; color: var(--cream-soft); }
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 1px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu { display: flex; flex-direction: column; padding: 0 var(--gutter) 16px; border-bottom: 1px solid var(--line); }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.mobile-menu a:last-child { border-bottom: 0; color: var(--gold); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px var(--gutter) 80px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(2.4rem, 4.8vw, 4.4rem); line-height: 1.06; letter-spacing: -.01em; color: var(--cream); }
.hero .lede { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--cream-soft); max-width: 38rem; }
.hero .lede-social { font-size: clamp(.95rem, 1.15vw, 1.05rem); color: var(--muted); }
.hero .lede-social b { color: var(--cream); font-weight: 600; }
.platforms { display: flex; gap: 18px; font-size: 15px; color: var(--gold); letter-spacing: .04em; }
.platforms span + span::before { content: "·"; margin-right: 18px; color: var(--muted); }
.hero-photo { margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(216, 182, 101, .25); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-ready { opacity: 1; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .22s; } .hero-copy > :nth-child(5) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

/* Proof bar */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-item { display: flex; flex-direction: column; gap: 4px; padding: 30px var(--gutter); border-right: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.proof-item:last-child { border-right: 0; }
.proof-item:nth-child(2) { transition-delay: .1s; } .proof-item:nth-child(3) { transition-delay: .2s; }
.proof.in-view .proof-item { opacity: 1; transform: none; }
.proof-big { font-family: var(--display); font-weight: 500; font-size: 1.6rem; color: var(--cream); }
.proof-label { font-size: 13px; letter-spacing: .06em; color: var(--muted); }

/* Method */
.method { padding: 96px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.method h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; max-width: 24ch; }
.method-intro { max-width: 46rem; color: var(--cream-soft); font-size: 1.05rem; }
.criteria { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; width: 100%; max-width: 1180px; margin-top: 8px; }
.criteria li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 14px 22px; border: 1px solid var(--gold-deep); border-radius: 10px; background: var(--panel); text-align: center; opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .4s, box-shadow .6s var(--ease); }
.criteria.in-view li { opacity: 1; transform: none; }
.criteria li:nth-child(2) { transition-delay: .07s; } .criteria li:nth-child(3) { transition-delay: .14s; } .criteria li:nth-child(4) { transition-delay: .21s; } .criteria li:nth-child(5) { transition-delay: .28s; } .criteria li:nth-child(6) { transition-delay: .35s; }
.criteria li:hover { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(216, 182, 101, .12), 0 18px 40px -24px rgba(216, 182, 101, .5); }
.criteria b { font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--cream); }
.criteria li > span:last-child { font-size: 13px; line-height: 1.45; color: var(--muted); }
.crit-icon { width: 34px; height: 34px; display: grid; place-items: center; }
.crit-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.method-close { max-width: 50rem; color: var(--cream-soft); border-top: 1px solid var(--line); padding-top: 26px; margin-top: 8px; }

/* Work */
.work { padding: 32px var(--gutter) 96px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.section-sub { color: var(--muted); font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 9 / 16; text-decoration: none; background: var(--panel); isolation: isolate; }

.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 9, 0) 40%, rgba(11, 10, 9, .92) 100%); pointer-events: none; transition: opacity .4s; }
.card.is-playing::after { opacity: .35; }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.card-tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card-body b { font-family: var(--display); font-weight: 500; font-size: 1.1rem; line-height: 1.2; color: var(--cream); }
.card-meta { font-size: 13px; color: var(--cream-soft); }
.card-meta::after { content: " ↗"; color: var(--gold); }

/* Card video player */
.card video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--panel); transition: transform 1.2s var(--ease); }
.card:hover video { transform: scale(1.03); }
.card .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 999px; border: 0; background: rgba(216, 182, 101, .95); display: grid; place-items: center; cursor: pointer; z-index: 2; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .8); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.card .play svg { fill: var(--bg); margin-left: 3px; }
.card:hover .play { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 6px rgba(216, 182, 101, .28), 0 8px 24px -8px rgba(0, 0, 0, .8); }
.card.is-playing .play { opacity: 0; pointer-events: none; }
.card .sound { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(11, 10, 9, .6); color: var(--cream); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.card .sound[hidden] { display: none; }
.card .sound[aria-pressed="false"] .sound-on { display: none; }
.card .sound svg { fill: currentColor; }
.card-out { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 999px; background: rgba(11, 10, 9, .6); color: var(--gold); display: grid; place-items: center; text-decoration: none; font-weight: 700; z-index: 2; }
.card-out:hover { background: var(--gold); color: var(--bg); }
.card.is-playing .card-body { opacity: 0; transition: opacity .4s; }
.card .card-body { transition: opacity .4s; pointer-events: none; }

/* Services */
.services { padding: 88px var(--gutter); background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); margin-bottom: 32px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.service { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--gold-deep); }
.service h3 { font-size: 1.5rem; color: var(--cream); }
.service > p { color: var(--cream-soft); }
.service ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 4px; }
.service li { position: relative; padding-left: 18px; font-size: 15px; color: var(--cream-soft); }
.service li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 99px; background: var(--gold); }
.pipeline { margin-top: 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.venues-wrap { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.venues-label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.venues { display: flex; }
.venues-track { display: flex; flex-wrap: wrap; gap: 10px; }
.venues-track li[aria-hidden] { display: none; }
.venues-wrap > * { min-width: 0; }
.services > * { min-width: 0; }
.venues li { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); border: 1px solid var(--gold-deep); border-radius: 999px; padding: 11px 20px; }
.venues .venue-next { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* Socials band (ivory) */
.socials { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 88px var(--gutter); background: #F6F1E7; color: #1E1A16; }
.socials > * { min-width: 0; }
.socials-photo { margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 30px 60px -30px rgba(43, 29, 22, .45); }
.socials-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.socials-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.socials-video.is-ready { opacity: 1; }
.socials-copy { display: flex; flex-direction: column; gap: 18px; }
.socials-copy .kicker { color: var(--gold-deep); }
.socials-copy h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; color: #1E1A16; }
.socials-copy > p { color: #4A4038; line-height: 1.65; max-width: 36rem; }
.socials-copy .socials-close { font-weight: 600; color: #1E1A16; }
.socials-copy ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 4px 0 8px; }
.socials-copy li { position: relative; padding-left: 18px; font-size: 15px; color: #3A312B; }
.socials-copy li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 99px; background: var(--gold-deep); }
.socials-copy .btn { align-self: flex-start; }

/* Contact: gold-foil band */
.contact { padding: 88px var(--gutter); background: linear-gradient(135deg, #C9A85A 0%, #E8CF8A 28%, #B8933F 55%, #E3C371 80%, #C4A24E 100%); color: var(--bg); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .28), transparent 45%); pointer-events: none; animation: sheen 14s ease-in-out infinite alternate; }
@keyframes sheen { from { transform: translate(0, 0); } to { transform: translate(18%, 12%); } }
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; max-width: 48rem; margin: 0 auto; }
.contact h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.contact p { color: #2B2110; }
.contact .cta-row { justify-content: center; }
.contact-hint { font-size: 14px; color: #4A3A1C; max-width: 40rem; }

/* Footer */
.footer { padding: 40px var(--gutter) 48px; display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); }
.footer-logo { width: 96px; height: 96px; flex-shrink: 0; }
.footer-text { display: flex; flex-direction: column; gap: 4px; }
.footer-mark { font-family: var(--display); font-weight: 500; font-size: 1.2rem; color: var(--cream); }
.footer-mark sup { font-size: .55em; color: var(--gold); vertical-align: top; margin-left: 1px; }
.footer-line { font-size: 14px; color: var(--muted); }
.footer a { color: var(--cream-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > * { animation: none; }
  .proof-item { opacity: 1; transform: none; transition: none; }
  .criteria li { opacity: 1; transform: none; transition: none; }
  .contact::before { animation: none; }
  .venues-track { animation: none; }
  .card img, .btn { transition: none; }
}

/* Tablet */
@media (max-width: 1100px) {
  .socials { grid-template-columns: 1fr; gap: 36px; }
  .criteria { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-height: 420px; aspect-ratio: auto; }
}

/* Mobile */
@media (max-width: 720px) {
  .socials { padding: 56px var(--gutter); }
  .socials-copy ul { grid-template-columns: 1fr; }
  body { font-size: 15px; }
  .nav { padding: 12px var(--gutter); }
  .brand-logo { width: 52px; height: 52px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 1.1rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 44px var(--gutter) 48px; gap: 28px; }
  .hero-photo { max-height: 300px; border-radius: 14px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-note { text-align: center; }
  .proof { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px var(--gutter); }
  .proof-item:last-child { border-bottom: 0; }
  .method { padding: 56px var(--gutter); gap: 20px; }
  .criteria { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .criteria li { padding: 18px 10px 16px; }
  .work { padding: 8px var(--gutter) 56px; }
  .cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 68vw; max-width: 300px; scroll-snap-align: start; }
  .services { padding: 52px var(--gutter); }
  .services-grid { grid-template-columns: 1fr; gap: 32px; }
  .service ul { grid-template-columns: 1fr; }
  .venues-wrap { margin-top: 32px; }
  .venues { flex-wrap: nowrap; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .venues-track { display: flex; flex-wrap: nowrap; gap: 8px; width: max-content; animation: marquee 24s linear infinite; }
  .venues-track li[aria-hidden] { display: block; }
  .venues li { font-size: 13px; padding: 9px 14px; white-space: nowrap; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .contact { padding: 56px var(--gutter); }
  .contact .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
}
