/* Buko Studio — colourful, playful, and led by the work.
   Big rounded photographs and films sit on a living field of light (bg.js);
   everything you can press is a bubbly pill. Colours are tokens below. */
:root {
  --bg: #05060f;
  --ink: #f4f3ff;
  --soft: rgba(244, 243, 255, .80);
  --muted: rgba(244, 243, 255, .58);
  --line: rgba(244, 243, 255, .18);
  --turq: #2ff5d0;
  --purple: #b06bff;
  --orange: #ff8a3d;
  --pink: #ff9ad5;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --edge: clamp(10px, 1.6vw, 24px);          /* the border of background left around every image */
  --radius: clamp(16px, 2vw, 28px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--display); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
::selection { background: var(--turq); color: #000; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 8px; }
.eyebrow { margin: 0 0 14px; font: 500 13px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ── Ground: the live light field ─────────────────── */
.ground { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.no-gpu .ground { display: none; }
.no-gpu body::before {
  content: ""; position: fixed; inset: -25%; z-index: -1;
  background:
    radial-gradient(45% 35% at 28% 30%, rgba(47, 245, 208, .22), transparent 70%),
    radial-gradient(40% 35% at 74% 62%, rgba(176, 107, 255, .26), transparent 70%),
    radial-gradient(30% 25% at 55% 85%, rgba(255, 138, 61, .16), transparent 70%),
    radial-gradient(60% 50% at 40% 50%, rgba(28, 58, 160, .55), transparent 75%),
    var(--bg);
  animation: drift 50s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(7%, -5%, 0) rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .no-gpu body::before { animation: none; } }

/* ── Pills: every button and link ─────────────────── */
.pill {
  --pill-bg: #fff;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer;
  padding: 7px 15px 8px; border-radius: 99px; border: 1.5px solid transparent;
  background: var(--pill-bg); color: #000; text-decoration: none;
  font: 400 clamp(15px, 1.25vw, 19px)/1.2 var(--display);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.pill--ghost { background: rgba(255, 255, 255, .08); color: var(--ink); border-color: var(--line); box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pill--solid { --pill-bg: var(--turq); }
.pill--glow { background: linear-gradient(100deg, var(--turq), var(--purple) 55%, var(--orange)); color: #000; box-shadow: none; }
.pill--round { width: 44px; height: 44px; padding: 0; justify-content: center; flex: none; }
.pill--sound { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
.pill--sound[aria-pressed="true"] { --pill-bg: var(--pink); }

/* Aura on hover: a soft ring of the background's own colours (turquoise, purple, orange)
   turning slowly around the button, after daisyUI's aura. The fill lives on ::after so the
   ring only shows outside the button; the ring itself is ::before. */
@property --aura { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes aura { to { --aura: 360deg; } }
a.pill, button.pill { background: transparent; }
a.pill::after, button.pill::after {
  content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; background: var(--pill-bg);
}
a.pill::before, button.pill::before {
  content: ""; position: absolute; inset: -5px; z-index: -2; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--aura), var(--turq), var(--purple), var(--orange), var(--turq));
  filter: blur(7px) brightness(1.2); opacity: 0; transition: opacity .9s ease;
  animation: aura 16s linear infinite; animation-play-state: paused;
}
a.pill:hover, button.pill:hover, a.pill:focus-visible, button.pill:focus-visible { transform: translateY(-1px); }
a.pill:hover::before, button.pill:hover::before, a.pill:focus-visible::before, button.pill:focus-visible::before { opacity: 1; animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
  a.pill::before, button.pill::before { animation: none; }
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }

/* ── Logo: pinned top left, slides away with the nav on the way down ── */
.logo { position: fixed; left: var(--edge); top: 0; z-index: 61; height: var(--nav-h); display: flex; align-items: center; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.logo.is-hidden { transform: translateY(-110%); }
.logo img { height: clamp(34px, 3.4vw, 46px); width: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55)); }
.logo:not(.is-hidden):hover { transform: rotate(-4deg) scale(1.06); }

/* ── Nav ──────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 var(--edge);
  transition: transform .4s cubic-bezier(.2,.7,.2,1); pointer-events: none;
}
.nav .pill { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-110%); }
@media (max-width: 560px) {
  .nav { gap: 4px; justify-content: flex-end; padding-left: 96px; }
  .nav .pill { padding: 6px 10px 7px; font-size: 14px; }
  .nav .pill[href="#studio"] { display: none; }
}

/* ── Hero: the film, framed by the light field ────── */
.hero { padding: var(--nav-h) var(--edge) 0; }
.hero__frame { position: relative; height: calc(100svh - var(--nav-h) - 74px); min-height: 280px; border-radius: var(--radius); overflow: hidden; background: #000; }
.hero__frame video { width: 100%; height: 100%; object-fit: cover; }
.hero__line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin: 0; padding: 18px 4px 0; font-size: clamp(15px, 1.25vw, 19px); }
.hero__line span:first-child { font-weight: 600; }
@media (max-width: 700px) { .hero__frame { height: calc(100svh - var(--nav-h) - 130px); } }

/* ── Studio statement ─────────────────────────────── */
.studio { padding: clamp(80px, 12vw, 190px) var(--edge) clamp(40px, 6vw, 90px); }
.studio__big { max-width: 21em; margin: 0 0 .9em; font: 400 clamp(28px, 4vw, 64px)/1.08 var(--display); font-variation-settings: "wdth" 96; letter-spacing: -.02em; text-wrap: pretty; }
.studio__small { max-width: 44em; margin: 0; font-size: clamp(17px, 1.4vw, 21px); color: var(--soft); }

/* ── Work ─────────────────────────────────────────── */
.work, .with { padding-top: clamp(70px, 10vw, 150px); }
.work__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 0 var(--edge) 16px; }
.work__title { margin: 0; font: 400 clamp(40px, 7vw, 116px)/1 var(--display); font-variation-settings: "wdth" 94; letter-spacing: -.03em; }
.work__meta { margin: 0; color: var(--soft); font-size: clamp(15px, 1.25vw, 19px); }

/* stage: one large image or film, thumbnails underneath */
.stage { padding: 0 var(--edge); }
.stage__view { position: relative; height: calc(100svh - var(--nav-h) - 96px); min-height: 300px; border-radius: var(--radius); overflow: hidden; }
.stage__item { position: absolute; inset: 0; margin: 0; display: none; }
.stage__item.is-on { display: block; }
.stage__item > img, .stage__item > video { width: 100%; height: 100%; object-fit: cover; }
/* portrait work is shown whole, with the light field visible either side */
.stage__item--portrait > img, .stage__item--portrait > video { object-fit: contain; }
.stage__bar { display: flex; align-items: center; gap: 10px; padding-top: 12px; }
.thumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; flex: 1; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { position: relative; flex: none; width: clamp(56px, 6vw, 84px); aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; opacity: .6; transition: opacity .2s, transform .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.is-on { opacity: 1; border-color: var(--turq); }
.thumb__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.stage__cap { margin: 8px 2px 0; color: var(--muted); font-size: 14px; }
.stage__cap [data-count] { color: var(--ink); margin-right: 8px; }
@media (max-width: 700px) {
  /* phones: nothing is cropped */
  .stage__view { height: auto; min-height: 0; overflow: visible; border-radius: 0; }
  .stage__item { position: static; }
  .stage__item > img, .stage__item > video { width: auto; max-width: 100%; height: auto; max-height: 80svh; margin: 0 auto; object-fit: contain; border-radius: var(--radius); }
  .stage__item { position: relative; }
  .pill--round { display: none; }
}

/* project text */
.info { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: start; padding: clamp(40px, 5vw, 80px) var(--edge) 0; }
.info__text { max-width: 64ch; }
.info__text p:not(.lede):not(.pills) { color: var(--soft); }
.lede { margin: 0 0 1em; font: 400 clamp(22px, 2.3vw, 36px)/1.16 var(--display); font-variation-settings: "wdth" 96; letter-spacing: -.015em; text-wrap: pretty; }
.details { margin: 0; border-top: 1px solid var(--line); font-size: 15px; }
.details div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
@media (max-width: 900px) { .info { grid-template-columns: 1fr; } }

/* ── Work with us / services ──────────────────────── */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc li { display: grid; grid-template-columns: 2.2em 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.svc__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #000; font-size: 14px; }
.svc__title { margin: 0 0 2px; font: 500 clamp(18px, 1.5vw, 22px)/1.25 var(--display); }
.svc li p { margin: 0; color: var(--soft); font-size: 15.5px; }
.credits { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(28px, 5vw, 90px); padding: clamp(40px, 5vw, 72px) var(--edge) 0; }
.credits .pills { margin-top: 0; }
@media (max-width: 800px) { .credits { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────── */
.foot { padding: clamp(100px, 14vw, 220px) var(--edge) 22px; overflow: hidden; }
.foot__mail { display: block; width: fit-content; max-width: 100%; text-decoration: none; overflow-wrap: anywhere; font: 400 clamp(32px, 6.4vw, 112px)/1 var(--display); font-variation-settings: "wdth" 94; letter-spacing: -.03em; transition: color .2s; }
.foot__mail:hover { color: var(--turq); }
.foot__logo { display: block; width: clamp(160px, 22vw, 300px); height: auto; margin: clamp(48px, 7vw, 110px) auto 0; filter: drop-shadow(0 10px 28px rgba(176, 107, 255, .28)); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot__base p { margin: 0; max-width: 60ch; }

/* 404 */
.lost__main { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 12px; padding: var(--edge); }
.lost__main .big { font: 400 clamp(90px, 22vw, 280px)/1 var(--display); margin: 0; }
