:root {
  color-scheme: dark;
  --paper: #fff5e8;
  --ink: #151116;
  --accent: #ffae98;
  --red: #8b2b40;
  --gutter: clamp(1.25rem, 5vw, 5.75rem);
  --line: color-mix(in srgb, currentColor 34%, transparent);
  font-family: 'Inter', system-ui, sans-serif;
  background: #110d13;
  color: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; }
h1,h2,h3,p,figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button { color: inherit; font: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
section[id], main { scroll-margin-top: 6rem; }
.wrap { width: min(100% - 2 * var(--gutter), 91rem); margin-inline: auto; }
.stage { position: fixed; inset: 0; background: var(--scene, #110d13); pointer-events: none; }
.stage::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 90% 32%, #e1725f24, transparent 62%); }
.scene { position: relative; padding-block: clamp(5rem, 11vw, 11rem); background: var(--fallback, #110d13); }
body.has-scenes .scene { background: transparent; }
.light { --fallback: #f2ece3; color: var(--ink); color-scheme: light; }
.press { --fallback: #651b30; }
.solutions { --fallback: #601e31; }
.clients { --fallback: #73253d; }
.team { --fallback: #521b2b; }
.closing { --fallback: #241019; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 20; padding: .75rem; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.header { position: sticky; top: 0; z-index: 10; height: 5.5rem; margin-bottom: -5.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-inline: var(--gutter); pointer-events: none; color: var(--paper); }
.header > * { pointer-events: auto; }
.brand { justify-self: start; display: grid; place-items: center; width: 4.25rem; height: 4rem; border: 1px solid #fff3; border-radius: 1rem; background: #161018eb; }
.brand img { width: 3rem; height: auto; }
.header nav { display: flex; align-items: center; gap: clamp(1rem, 3.5vw, 3rem); min-height: 3rem; padding: .35rem .4rem .35rem 1.25rem; background: #161018eb; border: 1px solid #fff3; border-radius: 2.2rem; box-shadow: 0 .5rem 2rem #0003; }
.header nav > a { text-decoration: none; font-size: .9rem; font-weight: 650; }
.header nav > a:not(.pill):is(:hover, :focus-visible) { color: var(--accent); }
.menu-toggle { display: none !important; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: .62rem 1.22rem; border: 1px solid var(--line); border-radius: 5rem; background: transparent; text-decoration: none; font-size: .94rem; font-weight: 650; cursor: pointer; transition: background-color .22s, color .22s, border-color .22s; }
.pill:is(:hover, :focus-visible), .destinations .pill[aria-pressed="true"] { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.light .pill:is(:hover, :focus-visible), .light .pill[aria-pressed="true"] { color: var(--paper); background: var(--red); border-color: var(--red); }
.header nav .nav-contact { background: var(--paper); color: var(--ink); padding-inline: 1rem; min-height: 2.55rem; white-space: nowrap; }
.header nav .nav-contact:hover { background: var(--accent); }

.hero { display: grid; align-items: end; min-height: clamp(43rem, 100svh, 66rem); isolation: isolate; padding: 11rem 0 6.75rem; }
.hero-frame { position: absolute; z-index: -1; inset: .8rem clamp(.65rem,2.2vw,2rem) 2rem; overflow: hidden; border-radius: clamp(1.2rem,3vw,2.4rem); }
.hero-frame img, .ambient { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-frame picture, .ambient, .hero-frame::after { position: absolute; inset: 0; }
.ambient { opacity: 0; transition: opacity .65s; }
.ambient.is-visible { opacity: 1; }
.hero-frame::after { content: ''; background: linear-gradient(90deg,#0d0a10e5 0%,#100b12a5 25%,transparent 72%), linear-gradient(0deg,#100b12ef,transparent 60%),linear-gradient(180deg,#110d1392,transparent 30%); }
.kicker { font-size: .875rem; font-weight: 740; text-transform: uppercase; letter-spacing: .11em; color: var(--accent); margin-bottom: 1.25rem; }
.kicker::before { content: ''; display: inline-block; width: 1.6rem; height: 1px; margin-right: .7rem; vertical-align: .28em; background: currentColor; }
.light .kicker { color: var(--red); }
h1 { font-size: clamp(4rem,10.6vw,11rem); line-height: .86; font-weight: 780; letter-spacing: -.083em; }
h1 > span, h1 > em, .display > em { display: block; }
h1 em, .display em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.065em; }
h1 em { font-size: 1.035em; margin: .03em 0 .19em; }
.hero-desc { font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.45; }
.hero-link { margin-top: 1.65rem; background: #290f22ae; border-color: #fff8; }
.reel-actions { position: absolute; display: grid; justify-items: center; gap: .75rem; right: calc(var(--gutter) + 1rem); bottom: 7.15rem; }
.reel { display: grid; justify-items: center; gap: .5rem; text-align: center; text-decoration: none; font-weight: 700; }
.reel small { font-size: .875rem; font-weight: 500; }
.play-icon { display: grid; place-items: center; width: clamp(3.2rem,8vw,6rem); aspect-ratio: 1; border-radius: 50%; border: 1px solid #fff9; background: #190e186e; transition: background .25s, scale .25s; }
.play-icon::before { content: ''; width: 1rem; height: 1.1rem; background: currentColor; clip-path: polygon(0 0,100% 50%,0 100%); margin-inline-start: .15rem; }
.reel:hover .play-icon { background: var(--red); scale: 1.05; }
.motion-toggle { min-height: 2.5rem; font-size: .82rem; background: #180f18a0; }
.scroll-link { position: absolute; bottom: 3.5rem; right: var(--gutter); font-size: .9rem; text-decoration: none; }

.display { font-size: clamp(3.3rem,8.3vw,8.9rem); font-weight: 780; letter-spacing: -.075em; line-height: .93; }
.display em { margin-top: .04em; }
.light .display em { color: var(--red); }
.scene p:not([class]), .about-copy > p:not(.kicker), .press-copy > p:not(.kicker), .solution-cover > p:not(.kicker), .client-copy > p:not(.kicker) { max-width: 36ch; font-size: clamp(1.05rem,1.6vw,1.35rem); line-height: 1.55; margin-block: 1.35rem; }
.consultancy { padding-block-end: clamp(3rem,7vw,8rem); }
.consultancy .display em { margin-inline-start: min(7vw,8rem); }
.consultancy-bottom { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 2rem; margin-block-start: 2rem; }
.film-frame { width: min(82%, 26rem); justify-self: center; margin-top: -1rem; margin-bottom: -4rem; position: relative; z-index: 2; padding: .8rem .8rem 1.4rem; background: #1b1116; box-shadow: 0 1.2rem 3rem #0005; rotate: 8deg; transition: rotate .45s ease; }
.film-frame::after { content: ''; position: absolute; bottom: .4rem; left: .8rem; right: .8rem; height: .3rem; background: repeating-linear-gradient(90deg,#c69382 0 .45rem,transparent .45rem 1.2rem); }
.film-frame img { width: 100%; height: auto; aspect-ratio: 1.72; object-fit: cover; object-position: center 48%; }

.work { padding-block: clamp(6rem,10vw,10rem) clamp(3rem,7vw,7rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem; margin-bottom: 2rem; }
.section-head > a { flex: none; }
.gallery { display: flex; align-items: center; gap: 1.45rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; padding: .25rem var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.case-card { position: relative; isolation: isolate; flex: 0 0 min(75vw,75rem); min-width: 0; height: clamp(24rem,37vw,39rem); border-radius: clamp(1rem,2vw,1.75rem); overflow: hidden; scroll-snap-align: start; background: #2f1b2d; color: var(--paper); display: flex; align-items: end; }
.case-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale .5s ease; }
.case-card:hover img { scale: 1.035; }
.case-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#0e0a11ec 0,transparent 70%); }
.case-portrait { flex-basis: min(42vw,42rem); height: clamp(21rem,30vw,32rem); }
.case-portrait img { object-position: center 26%; }
.case-copy { padding: clamp(1.15rem,3.2vw,3.25rem); }
.case-copy .kicker { margin-bottom: .55rem; }
.case-copy h3 { font: 400 clamp(2.25rem,4.5vw,5rem)/.99 Georgia, serif; letter-spacing: -.055em; margin-bottom: 1.05rem; }
.case-copy .pill { background: #171018a0; border-color: #fff8; }
.case-copy .pill:hover { background: var(--paper); }
.gallery-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.gallery-progress { height: 2px; background: #fff4; }
.gallery-progress span { display: block; width: var(--progress,33%); height: 100%; background: var(--accent); transition: width .35s; }
.gallery-count { font-variant-numeric: tabular-nums; font-size: .875rem; white-space: nowrap; }
.controls { display: flex; gap: .55rem; }
.circle { display: inline-grid; place-items: center; width: 3rem; aspect-ratio: 1; background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.circle:hover:not(:disabled) { color: var(--ink); background: var(--paper); }
.circle:disabled { opacity: .36; cursor: default; }
.media-note { font-size: .875rem; opacity: .78; margin-top: 1rem; }

.split { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: clamp(2rem,6vw,7rem); }
.press-inner { position: relative; isolation: isolate; min-height: clamp(30rem,49vw,49rem); }
.press-copy { z-index: 2; grid-column: 1 / -1; grid-row: 1; }
.press-copy em { font-size: .86em; }
.press-art { position: absolute; z-index: -1; inset: -3rem calc(-1 * var(--gutter)) -3rem 39%; clip-path: polygon(0 0,100% 0,100% 100%,9% 100%,0 90%); }
.press-art::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg,#3c0f24c9,transparent 72%); }
.press-art > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.press-art .press-inset { position: absolute; z-index: 2; top: 25%; right: 12%; width: 33%; height: 63%; object-fit: cover; border-radius: 55% 55% .5rem .5rem / 31% 31% .5rem .5rem; }
.global { --fallback: #f4e6da; }
.global .split { grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(1rem,4vw,5rem); }
.global .display { font-size: clamp(3rem, 7.2vw, 7.65rem); font-family: Georgia,serif; font-weight: 400; letter-spacing: -.065em; }
.destinations { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.7rem; }
.destinations .pill { min-height: 2.8rem; }
.atlas { background: linear-gradient(160deg,#f9dfcf,#fff4e754); border-radius: 48% 48% 1.25rem 1.25rem / 48% 48% 1.25rem 1.25rem; padding: clamp(.15rem,1.2vw,1.2rem); padding-top: clamp(2rem,7vw,6rem); color: #78253a; }
.atlas svg { display: block; width: 100%; overflow: visible; }
.route { fill: none; stroke: #9a4b59; stroke-width: 2.2; stroke-dasharray: 5 7; opacity: .68; }
.route.is-active { stroke: #812039; stroke-width: 3.2; opacity: 1; }
.pins text { fill: #672138; paint-order: stroke; stroke: #feeee4; stroke-width: 4px; font-size: 18px; font-weight: 750; }
.aircraft path { fill: #86273c; stroke: #ffecde; stroke-width: 2; }
.route-caption { text-align: center; font-weight: 750; font-size: .9rem; padding: .4rem .7rem 1rem; }

.solution-cover { position: relative; isolation: isolate; padding-block: 4.5rem; }
.solution-cover::before { content: ''; position: absolute; z-index: -1; inset: 0 -1rem 0 calc(-1 * var(--gutter)); background: linear-gradient(85deg,#170d18ba,#1d101726),url(film.webp) center / cover; clip-path: polygon(0 0,100% 0,100% 100%,8% 100%,0 92%); }
.solution-cover .display, .team .display { font-size: clamp(2.9rem,6.2vw,6.5rem); }
details { border-top: 1px solid var(--line); padding-block: 1rem; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; gap: 1rem; align-items: center; justify-content: space-between; font: 400 clamp(1.4rem,2.45vw,2.6rem)/1.15 Georgia,serif; letter-spacing: -.025em; min-height: 2.4rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: center;
  background-size: .75rem 2px, 2px .75rem;
  transition: background-size .22s ease;
}
details[open]:not([data-panel-target="closed"]) summary::after { background-size: .75rem 2px, 2px 0; }
.scene .accordion-content p { line-height: 1.55; max-width: 46ch; margin: 0; padding-top: .7rem; }

.about-layout { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; }
.editorial-image { position: relative; overflow: hidden; border-radius: 1.25rem; }
.editorial-image img { width: 100%; height: auto; object-fit: cover; transition: scale .65s cubic-bezier(.2,.7,.25,1); }
.about-layout .editorial-image img { aspect-ratio: 1.38; }
.about-copy { position: relative; margin-inline-start: -3.25rem; padding: 1.2rem 0 1.2rem 2rem; background: linear-gradient(90deg,#100f1275,transparent 95%); }
.insights .editorial-image { margin-top: 1.5rem; }
.insights .editorial-image img { aspect-ratio: 2.2; }
.insights .display { font-size: clamp(3rem,6.2vw,7rem); }
.clients { padding-block: clamp(5rem,8vw,9rem); }
.client-copy { border-bottom: 1px solid var(--line); padding-bottom: clamp(3rem,6vw,6rem); }
.client-copy .display em { display: inline; }
.team { padding-top: 1rem; }
.team-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.5rem,1.4vw,1.2rem); align-items: start; }
.team-strip figure:nth-child(2) { margin-top: clamp(1.25rem, 3.2vw, 3.2rem); }
.team-strip figure:nth-child(3) { margin-top: .65rem; }
.portrait {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 50% 50% .4rem .4rem / 34% 34% .4rem .4rem;
  background: #321d28;
  border: 1px solid #eeb8a235;
  box-shadow: 0 1rem 2rem #130a1080;
  transition: translate .4s ease, box-shadow .4s ease;
}
.portrait img { width: 100%; height: auto; aspect-ratio: .78; object-fit: cover; object-position: center 24%; transition: scale .7s cubic-bezier(.2,.7,.25,1); }
.portrait::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(152deg,#fbb38f70,transparent 57%,#8d314b88); opacity: .23; transition: opacity .4s ease; }
.team-strip figcaption { margin-top: .85rem; font-size: .94rem; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .team-strip figure:hover .portrait { translate: 0 -.45rem; box-shadow: 0 1.3rem 2.45rem #110810b0; }
  .team-strip figure:hover img, .editorial-image:hover img { scale: 1.06; }
  .team-strip figure:hover .portrait::after { opacity: .85; }
  .team-strip figure:hover figcaption { color: var(--accent); }
  .film-frame:hover { rotate: 4deg; }
}
.team-strip .media-note { grid-column: 1 / -1; margin-top: .3rem; }
.team .pill { margin-top: 1.8rem; }
.closing { padding-top: 0; padding-bottom: 3rem; }
.closing .wrap { border-top: 1px solid var(--line); padding-top: clamp(2rem,5vw,5rem); }
.closing .display { font-size: clamp(3.5rem,8vw,8.5rem); }
.closing .pill { margin-top: 2.1rem; background: #88283d; border-color: #ffcfb489; }
.closing .pill:hover { background: var(--paper); }
.footer { padding-block: 1.2rem 2.5rem; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); gap: 1rem; padding-top: 1.4rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer img { width: 4rem; height: auto; }

@media (max-width: 830px) {
  .work .section-head { align-items: start; flex-direction: column; }
  .global .split, .split { grid-template-columns: minmax(0,1fr); }
  .press-copy { padding-block: 2.5rem; }
  .press-art { left: 25%; }
  .press-art .press-inset { width: 34%; height: 54%; top: 30%; }
  .press-art::after { background: linear-gradient(90deg,#351122ed,#35112270 80%); }
  .global .atlas { max-width: 45rem; margin-inline: auto; width: 100%; }
  .about-layout { grid-template-columns: 1fr 1fr; }
  .about-copy { margin-inline-start: -1.5rem; padding-left: .75rem; }
}
@media (max-width: 680px) {
  :root { --gutter: 1.25rem; }
  .header { height: 4.6rem; margin-bottom: -4.6rem; display: flex; justify-content: space-between; align-items: center; }
  .brand { width: 3.45rem; height: 3.4rem; }
  .brand img { width: 2.55rem; }
  .header nav { gap: .6rem; padding: .35rem .65rem; }
  .header nav .nav-contact { display: none; }
  .has-ui .menu-toggle { display: inline-flex !important; background: #161018eb; border-color: #fff5; }
  .has-ui .header nav { display: none; position: absolute; top: calc(100% + .2rem); right: var(--gutter); left: var(--gutter); border-radius: 1rem; padding: 1rem; }
  .has-ui .header nav.is-open { display: grid; }
  .has-ui .header nav a { display: block; padding: .55rem; }
  .has-ui .header nav .nav-contact { display: inline-flex; width: fit-content; padding-inline: .9rem; margin-top: .25rem; }
  .hero { min-height: max(43rem,100svh); align-items: center; padding: 7rem 0 12rem; }
  .hero-frame { inset: .45rem .5rem 1.1rem; }
  .hero-frame::after { background: linear-gradient(0deg,#100b12f8 5%,#100b126b 58%,#130b1650 90%),linear-gradient(90deg,#100b1260,transparent 80%); }
  h1 { font-size: clamp(3.25rem,12vw,5.3rem); }
  .hero .kicker { margin-bottom: 1.3rem; }
  .reel-actions { left: var(--gutter); right: var(--gutter); bottom: 4.5rem; display: flex; justify-content: space-between; align-items: end; gap: .5rem; }
  .reel { grid-template: auto auto / 3.15rem auto; align-items: center; text-align: start; justify-items: start; column-gap: .55rem; row-gap: .12rem; }
  .play-icon { grid-row: 1 / 3; }
  .reel small { font-size: .78rem; }
  .motion-toggle { max-width: 7.85rem; padding-inline: .6rem; text-align: center; font-size: .78rem; }
  .scroll-link { bottom: 2.25rem; }
  .display { font-size: clamp(3rem,11vw,5rem); }
  .consultancy-bottom { grid-template-columns: 1fr; margin-top: 1rem; gap: 2.2rem; }
  .film-frame { justify-self: end; margin-top: 0; margin-bottom: -3rem; margin-right: 1.3rem; width: 68%; }
  .case-card { flex-basis: 84vw; height: 25rem; }
  .case-portrait { flex-basis: 76vw; height: 23rem; }
  .gallery { gap: .9rem; }
  .case-copy .kicker::before { display: none; }
  .gallery-footer { gap: .65rem; }
  .press-inner { min-height: 33rem; }
  .press-art { left: 17%; }
  .press-art .press-inset { right: 6%; top: auto; bottom: 6%; opacity: .8; }
  .press-copy { align-self: start; max-width: 97%; }
  .global .split { gap: 2.2rem; }
  .global .display { font-size: clamp(3.3rem,12vw,5.5rem); }
  .atlas { margin-inline: -.2rem; }
  .pins text { font-size: 25px; }
  .solution-cover { padding-block: 3.8rem; }
  .about-layout { grid-template-columns: 1fr; gap: 1rem; }
  .about-copy { margin-left: 0; margin-top: -4rem; padding: .8rem .8rem 0; background: linear-gradient(180deg,#100f1260,transparent 25%); }
  .team-strip figcaption { font-size: .85rem; }
  .footer .wrap { align-items: start; flex-wrap: wrap; }
  .footer nav { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
body.has-scenes .scene::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--fallback, #110d13);
  mask-image: linear-gradient(transparent, black 15%, black 89%, transparent);
  pointer-events: none;
}
body.has-scenes .scene { isolation: isolate; }
body.has-scenes .hero::before { z-index: -2; }
body.has-scenes .closing::before, body.has-scenes .team::before { display: none; }

.work-screen.is-pinned .section-head { margin-bottom: 1.15rem; }
.work-screen.is-pinned .kicker { margin-bottom: .8rem; }
.work-screen.is-pinned .display { font-size: clamp(3.65rem, min(7.4vw, 11svh), 6.5rem); }

/* Programmatic horizontal movement while the browser scrolls through the pin. */
.work-screen.is-pinned .gallery { overflow-x: hidden; scroll-snap-type: none; }
.work-screen.is-pinned .case-card { height: min(37vw, calc(100svh - 20.5rem), 39rem); }
.work-screen.is-pinned .case-portrait { height: min(30vw, calc(100svh - 22.25rem), 32rem); }
.work-screen.is-pinned .gallery-footer { margin-top: .9rem; }
.work-screen.is-pinned .media-note { margin-top: .7rem; }

[data-image-reveal], .portrait { --entry-shadow: 0; }
[data-image-reveal]::before, .portrait::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: var(--entry-shadow, 0);
  background: linear-gradient(115deg, #09060c 2%, #140a14 44%, #d3906924 73%, transparent 96%);
}
.film-frame::before { inset: .8rem .8rem 1.4rem; }

.press-line {
  display: block;
  overflow: clip;
  overflow-clip-margin: .12em;
  padding-bottom: .07em;
  margin-bottom: -.07em;
}
.press-line > :is(span, em) { display: block; }
.press-line em { margin-top: .04em; }

.map-canvas { position: relative; }
.map-markers { position: absolute; inset: 0; pointer-events: none; }
.map-pin {
  position: absolute;
  top: var(--pin-y);
  left: var(--pin-x);
  width: clamp(1.25rem, 2.35vw, 2.25rem);
  aspect-ratio: 1 / 1.24;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -94%);
  pointer-events: auto;
  cursor: pointer;
}
.map-pin-drop { display: block; width: 70%; filter: drop-shadow(0 3px 3px #44102250); }
.map-pin-drop svg { width: 100%; height: auto; fill: #86253b; stroke: #fff0e4; stroke-width: 1.5; transition: scale .2s ease, fill .2s ease; transform-origin: center bottom; }
.map-pin[data-selected] .map-pin-drop svg, .map-pin:is(:hover, :focus-visible) .map-pin-drop svg { fill: #c34351; scale: 1.16; }
.map-pin:is(:hover, :focus-visible) { z-index: 2; }
.map-pin:focus-visible { outline-offset: 1px; border-radius: .4rem; }
.map-popover {
  position: absolute;
  z-index: 3;
  bottom: calc(100% - var(--popover-y) + 2.9rem);
  left: clamp(6.15rem, var(--popover-x), calc(100% - 6.15rem));
  width: 12rem;
  transform: translateX(-50%);
  border: 1px solid #f8ba9e80;
  border-radius: .8rem;
  background: linear-gradient(135deg,#4d1528,#25111a);
  box-shadow: 0 .65rem 1.6rem #43122559;
  padding: .7rem .9rem;
  color: #fff5e8;
  animation: map-pop-in .24s cubic-bezier(.2,.7,.3,1) both;
}
.map-popover::after {
  content: '';
  position: absolute;
  left: calc(50% - .3rem);
  bottom: -.33rem;
  width: .6rem;
  height: .6rem;
  background: #381423;
  border-right: 1px solid #f8ba9e80;
  border-bottom: 1px solid #f8ba9e80;
  transform: rotate(45deg);
  pointer-events: none;
}
.map-popover strong, .map-popover > span { display: block; }
.map-popover > span { margin-top: .25rem; font-size: .875rem; line-height: 1.35; }
@keyframes map-pop-in { from { opacity: 0; translate: 0 .5rem; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }

body.has-scenes .scene[data-enter-dark]::before {
  display: block;
  background: var(--entry-background, var(--fallback));
}
@media (max-width: 680px) {
  .map-popover { bottom: calc(100% - var(--popover-y) + 1.95rem); }
}

[data-panel-target] .accordion-content { overflow: clip; }
