/* Marigold Studio. All colours live in the token blocks below. */
:root {
  color-scheme: light;
  --plum: #4b1d63; --gold: #ffb020; --coral: #ff5d5d; --cream: #fff9f0;
  --paper: #fff; --deep: #2a1030; --night: #180d1f; --on-coral: #2a0a10;
  --bg: var(--cream); --card: #fff; --ink: var(--deep); --line: #dfd3e0;
  --accent: var(--plum); --on-accent: #fff;
  --shadow: 0 2px 4px rgb(0 0 0 / .12), 0 18px 36px -12px rgb(0 0 0 / .35);
  --scrim: rgb(30 14 34 / .82);
  --r: 20px; --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}
:root[data-theme=dark] { color-scheme: dark; --bg: var(--night); --card: #2a1b31; --ink: #f5f1f7; --line: #4a3752; --accent: var(--gold); --on-accent: var(--deep); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--font); }
a { color: inherit; }
h1, h2 { font-weight: 800; line-height: 1.12; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); letter-spacing: -.02em; margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); margin-bottom: .5rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 2.5rem, 1160px); margin-inline: auto; }
img { display: block; max-width: 100%; }

header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; padding-block: .75rem; }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; font-weight: 800; text-decoration: none; min-height: 2.75rem; }
/* The logo is used as a mask so it takes the theme's text colour. */
.logo { width: 3rem; aspect-ratio: 704 / 580; background: var(--ink); -webkit-mask: url(assets/logo.png) center / contain no-repeat; mask: url(assets/logo.png) center / contain no-repeat; }
nav { display: flex; gap: 1.25rem; }
nav a { text-decoration: none; font-weight: 500; padding-block: .6rem; }
nav a:hover { text-decoration: underline; }
#theme { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
#theme svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#theme .moon, :root[data-theme=dark] #theme .sun { display: none; }
:root[data-theme=dark] #theme .moon { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0 1.25rem; font: 700 .95rem var(--font); color: inherit; background: transparent; border: 1px solid currentColor; border-radius: var(--r); text-decoration: none; cursor: pointer; transition: transform .15s; }
.btn.solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:hover { transform: translateY(-2px); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Colour blocks keep their colours in both themes. */
.block.main { background: var(--plum); color: #fff; --accent: #fff; --on-accent: var(--plum); }
.block.second { background: var(--gold); color: var(--deep); --accent: var(--deep); --on-accent: var(--gold); }
.block.third { background: var(--coral); color: var(--on-coral); --accent: var(--on-coral); --on-accent: var(--coral); }
.block.main .btn.solid { background: var(--coral); border-color: var(--coral); color: var(--on-coral); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: 4rem 5rem; }
.hero p { font-size: 1.15rem; margin-bottom: 1.5rem; }
.sample { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.sample a { text-decoration: none; font-weight: 700; font-size: .9rem; }
.sample a:nth-child(even) { transform: translateY(2rem); }
.sample img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: .35rem; }

.band { padding-block: 4.5rem; scroll-margin-top: 0; }
.band > .wrap > p { margin-bottom: 2rem; }
.rule { border-left: .5rem solid var(--coral); padding-left: .8rem; }
.rule.gold { border-color: var(--gold); }

figure { min-width: 0; }
figcaption { font-size: .9rem; padding-top: .6rem; }
.shot { display: block; position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.shot:hover, .shot:focus-visible { transform: translateY(-6px) scale(1.015); }
.shot img, .shot video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shot video { position: absolute; inset: 0; height: 100%; }
.lead { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.25rem; align-items: start; }
.lead > figure .shot { box-shadow: 1rem 1rem 0 var(--gold); }
.side { display: grid; gap: 1rem; }
/* The big card's offset shadow is 1rem, so its caption starts below it. */
.lead > figure figcaption { padding-top: 1.6rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.lead + .grid { margin-top: 2rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reels .shot img { aspect-ratio: 9 / 16; }
.reels figure:nth-child(even) { margin-top: 2.5rem; }
h3 { font-size: 1.35rem; margin-block: 1.5rem .25rem; }
.posters { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.75rem; padding-block: 1rem; }
.posters figure { max-width: 100%; }
.posters figure:nth-child(odd) { transform: rotate(-2deg); }
.posters figure:nth-child(even) { transform: rotate(2deg); }
.posters .shot img { width: auto; max-width: 100%; height: 17rem; aspect-ratio: auto; object-fit: contain; }
.posters figcaption { contain: inline-size; }
.marks { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.marks .shot { border: .35rem solid var(--gold); }
.marks figure:nth-child(3n+2) .shot { border-color: var(--coral); }
.marks figure:nth-child(3n) .shot { border-color: var(--cream); }
/* See-through artwork always sits on white. */
.shot img, .sample img, #view img { background: var(--paper); }
.marks .shot img { aspect-ratio: 1; object-fit: contain; padding: .75rem; }
.sample .mark img { object-fit: contain; padding: .5rem; }
.sample a[href="#social"] img { object-position: top; }

.grid.centered { display: flex; flex-wrap: wrap; justify-content: center; }
.centered figure { width: calc((100% - 3rem) / 3); }

.clients { padding-block: 2.5rem 0; }
.clients h2 { font-size: 1.35rem; margin-bottom: 1rem; }
/* The ends fade out. */
.strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.strip:focus-visible { outline-offset: -3px; -webkit-mask-image: none; mask-image: none; }
.run { display: flex; width: max-content; animation: run 35s linear infinite; }
.strip.paused .run { animation-play-state: paused; }
@media (hover: hover) { .strip:hover .run { animation-play-state: paused; } }
@keyframes run { to { transform: translateX(-50%); } }
.run ul { display: flex; gap: 1rem; padding-right: 1rem; list-style: none; }
.run li { display: grid; place-items: center; width: 11rem; height: 6rem; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.run li.dark { background: var(--plum); }
.run img { width: 100%; height: 4rem; object-fit: contain; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; align-items: center; }
.about > img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--r); }
.about p { font-size: 1.15rem; margin-top: 1rem; }
#contact p { margin-bottom: 1.5rem; }
footer { padding-block: 1.5rem; font-size: .9rem; }

dialog { margin: auto; width: min(94vw, 960px); max-height: 94vh; border: 0; border-radius: var(--r); background: var(--card); color: var(--ink); padding: 1.25rem; }
dialog::backdrop { background: var(--scrim); }
dialog h2 { font-size: 1.25rem; margin-block: .9rem .35rem; }
dialog form { margin-top: .9rem; }
#view img { max-height: 65vh; margin-inline: auto; }
#view iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
#view iframe.tall { width: auto; height: 65vh; aspect-ratio: 9 / 16; margin-inline: auto; }

@media (max-width: 820px) {
  .hero, .lead, .about { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 2rem 4rem; }
  .grid, .reels, .marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .centered figure { width: calc((100% - 1.5rem) / 2); }
  .about > img { max-width: 20rem; }
}
@media (max-width: 560px) {
  /* Phone header: logo and theme on one line, links under them. */
  .logo { width: 2.5rem; }
  .brand { font-size: .95rem; gap: .5rem; }
  header { column-gap: .5rem; }
  nav { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  /* No motion: show every logo once, wrapped. */
  .run { animation: none; width: auto; }
  .run ul { flex-wrap: wrap; justify-content: center; }
  .run ul[aria-hidden] { display: none; }
  .strip { -webkit-mask-image: none; mask-image: none; }
}
