:root {
  --bg: #1c1c1c;
  --bg-dark: #121212;
  --surface: #0d0d0d;        /* filter tiles and project cards: darker than the background */
  --surface-hover: #161616;
  --line: #333333;
  --text: #ffffff;
  --muted: #a3a3a3;
  --accent: #ffb12b;
  --accent-text: #141414;
  --radius: 6px;
  --gutter: 16px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
}
.skip:focus { top: 12px; }

.accent { color: var(--accent); }

/* "— Label" above headings */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .04em;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--muted);
}

.arrow-link {
  display: inline-flex;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.arrow-link [aria-hidden] { transition: transform .3s var(--ease); }
.arrow-link:hover [aria-hidden] { transform: translateX(4px); }

/* ---------- Hero ---------- */

.hero { background: var(--bg); overflow: hidden; }

/* Phones: logo left, menu right. Wider screens: three columns keep the menu exactly centred. */
.hero__bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
  animation: fade-in .8s var(--ease) both;
}
.logo {
  justify-self: start;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .2s;
}
.logo:hover { opacity: .8; }
.nav { display: flex; justify-self: end; gap: 16px; font-size: 14px; }
@media (min-width: 700px) {
  .hero__bar { grid-template-columns: 1fr auto 1fr; }
  .logo { font-size: 22px; }
  .nav { justify-self: center; gap: 28px; font-size: 15px; }
}
.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(0);
  transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: translateX(-50%) scale(1); }

.hero__grid {
  display: grid;
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 56px;
}

.hero__name {
  font-size: clamp(52px, 15vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.hero__line {
  display: block;
  animation: rise 1s var(--ease) both;
  animation-delay: calc(.2s + var(--i) * .12s);
}
.hero__rule {
  display: block;
  width: 56px;
  height: 4px;
  margin: 28px 0 32px;
  background: var(--accent);
  transform-origin: left;
  animation: grow .8s var(--ease) .6s both;
}

.socials {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  animation: fade-up .8s var(--ease) .8s both;
}
.socials a { display: flex; color: var(--text); text-decoration: none; transition: color .2s, transform .3s var(--ease); }
.socials a:hover { color: var(--accent); transform: translateY(-2px); }
.socials svg { display: block; width: 24px; height: 24px; }

.hero__portrait {
  position: relative;
  justify-self: center;
  width: min(calc(100% - 20px), 360px); /* room for the offset accent block */
  margin: 0 20px 20px 0;
  animation: fade-up 1.1s var(--ease) .35s both;
}
/* Accent block offset behind the photo. */
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: 32px -20px -20px 32px;
  border-radius: var(--radius);
  background: var(--accent);
}
.hero__portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: var(--radius);
}

.hero__intro { animation: fade-up .9s var(--ease) .6s both; }
.hero__intro h2 { margin-bottom: 16px; font-size: 26px; line-height: 1.3; }
.hero__intro p:not(.eyebrow) { margin: 0 0 24px; color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Bands ---------- */

.band { padding: 96px 0; }
.band--dark { background: var(--bg-dark); }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- About ---------- */

.about { display: grid; gap: 48px; }
.about__text p:not(.eyebrow) { margin: 0 0 16px; color: var(--muted); }
.awards { margin-top: 48px; }
.awards__list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.awards__list li { display: flex; align-items: flex-start; gap: 16px; }
.awards__icon { flex: none; width: 36px; height: 36px; color: var(--accent); }
.awards__icon svg { display: block; width: 100%; height: 100%; }
.awards__list p { margin: 0; }
.awards__year { color: var(--accent); font-size: 14px; font-weight: 600; }
.awards__title { font-size: 18px; font-weight: 500; line-height: 1.3; }
.awards__prize { color: var(--muted); font-size: 15px; }

.tools { margin-top: 36px; }
.tools__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 88px));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tools__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.tools__icon { display: block; width: min(56px, 100%); aspect-ratio: 240 / 234; transition: transform .4s var(--ease); }
.tools__icon svg { display: block; width: 100%; height: 100%; }
.tools__icon text { font-family: "Outfit", system-ui, sans-serif; font-size: 118px; font-weight: 600; letter-spacing: -2px; }
.tools__list li:hover .tools__icon { transform: translateY(-4px); }
.tools__name { color: var(--muted); font-size: 12px; line-height: 1.3; }

.about__statement {
  margin: 0 0 40px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.3;
}
.stats { display: flex; gap: 48px; margin: 0; padding: 0; list-style: none; }
.stats li { display: flex; align-items: center; gap: 14px; }
.stats__value { color: var(--accent); font-size: 48px; font-weight: 600; line-height: 1; }
.stats__label { color: var(--muted); font-size: 13px; line-height: 1.35; white-space: pre-line; }

/* ---------- Work ---------- */

.work__head { margin-bottom: 40px; }
.work__head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.2; }

/* Category tiles double as filters. */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 150px;
  padding: 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.tile:hover { background: var(--surface-hover); transform: translateY(-4px); }
.tile__icon { display: block; width: 56px; height: 56px; margin-bottom: 14px; color: var(--accent); transition: transform .4s var(--ease); }
.tile__icon svg { display: block; width: 100%; height: 100%; }
.tile:hover .tile__icon { transform: scale(1.12) rotate(-4deg); }
.tile__label { font-size: 19px; font-weight: 500; line-height: 1.25; }
.tile__meta { color: var(--muted); font-size: 13px; }
.tile[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.tile[aria-pressed="true"] .tile__icon,
.tile[aria-pressed="true"] .tile__meta { color: var(--accent-text); }

/*
 * Columns are sized for vertical cards. Wide (16:9) videos span several columns so their
 * height roughly matches a 9:16 card; "dense" lets later vertical cards fill any gaps.
 */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: row dense;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid > .is-landscape { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
  .grid > .is-landscape { grid-column: span 3; }
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { background: var(--surface-hover); transform: translateY(-4px); box-shadow: 0 20px 40px rgb(0 0 0 / .25); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.card__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card__thumb { transform: scale(1.05); }
/* Shorts and TikToks get a 9:16 card, matching the video. */
.card__media.is-vertical { aspect-ratio: 9 / 16; }
/* Your own thumbnails are shown whole (over a blurred copy) rather than cropped. */
.card__thumb.is-custom { position: relative; object-fit: contain; }
.card__backdrop {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(18px) brightness(.5);
}
.card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--line), var(--surface));
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .04em;
}
.card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(.8);
  opacity: 0;
  transition: opacity .3s, transform .4s var(--ease);
}
.card__play::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 16px;
  border-style: solid;
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent var(--accent-text);
}
.card:hover .card__play,
.card:focus-visible .card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .card__play { opacity: .95; transform: translate(-50%, -50%) scale(.8); } }

.card__body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 18px; }
.card__title { font-size: 16px; font-weight: 500; line-height: 1.35; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.platform { display: inline-flex; width: 22px; height: 22px; }
.platform svg { display: block; width: 100%; height: 100%; }
/* TikTok's cyan/red offset edge. */
.platform--tiktok svg { filter: drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55); }

.empty { color: var(--muted); }

/* ---------- Contact ---------- */

.contact { display: grid; gap: 48px; }
.contact h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.2; margin-bottom: 18px; }
.contact__text { margin: 0; color: var(--muted); }
.contact__list { margin: 0; padding: 0; list-style: none; align-self: end; }
.contact__list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact__label { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */

.footer { background: var(--bg-dark); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 32px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* ---------- Player ---------- */

.player {
  width: min(960px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100dvh - 2 * var(--gutter));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-dark);
  color: var(--text);
}
.player[open] { animation: pop .45s var(--ease); }
.player::backdrop { background: rgb(0 0 0 / .8); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.player__inner { position: relative; }

.player__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.player__frame { aspect-ratio: 16 / 9; background: #000; }
.player__frame.is-vertical {
  aspect-ratio: 9 / 16;
  width: auto;
  height: min(75dvh, 760px);
  max-width: 100%;
  margin: 0 auto;
}
.player__frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.player__info { padding: 22px 24px 26px; }
.player__info h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.25; }
.player__info p { margin: 0 0 12px; color: var(--muted); }
.player__info .player__category { margin-bottom: 6px; color: var(--accent); font-size: 13px; }

.player__details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0 0 16px;
  font-size: 15px;
}
.player__details dt { color: var(--muted); }
.player__details dd { margin: 0; }

/* ---------- Larger screens ---------- */

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr minmax(280px, 360px) 1fr;
    align-items: center;
    gap: 56px;
    padding-top: 40px;
    padding-bottom: 96px;
  }
  .hero__name { font-size: clamp(64px, 6.6vw, 92px); }
  .hero__intro { align-self: start; padding-top: 48px; }

  /* Awards sit at the bottom of the right column, level with Tools on the left. */
  .about { grid-template-columns: 5fr 6fr; gap: 96px; align-items: stretch; }
  .about__side { display: flex; flex-direction: column; }
  .about__side .awards { margin-top: auto; padding-top: 48px; }
  .contact { grid-template-columns: 1fr 1fr; gap: 96px; }

  /* Vertical videos sit beside their details instead of above them. */
  .player:has(.is-vertical) { width: min(820px, calc(100% - 2 * var(--gutter))); }
  .player__inner:has(.is-vertical) { display: flex; }
  .player__inner:has(.is-vertical) .player__frame { flex: none; margin: 0; }
  .player__inner:has(.is-vertical) .player__info { padding-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
