:root {
  --bg: #0b0b0a;
  --ink: #ebe7df;
  --muted: #8b867d;
  --line: #2a2926;
  --amber: #ffffff;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scrollbar-width: thin; scrollbar-color: var(--muted) var(--bg); color-scheme: dark; scroll-padding-top: 64px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--muted); border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }
body { overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: baseline; padding: 22px 0 18px; font-family: var(--mono); font-size: 13px; background: var(--bg); }
/* full-width bar behind the header (a plain strip, safe in Safari) */
header.top::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; background: var(--bg); }
header.top > a { font-weight: 500; }
header.top nav a { margin-left: 28px; color: var(--muted); }
header.top nav a:hover { color: var(--amber); }

/* banner */
.intro { position: relative; margin: 0 calc(50% - 50vw); height: calc(100vh - 60px); height: calc(100svh - 60px); min-height: 420px; }
.banner { position: absolute; inset: 0; background: #000; }
.banner::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }
.banner .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.banner .track::-webkit-scrollbar { display: none; }
.banner .track.drag { cursor: grabbing; scroll-snap-type: none; }
.banner .track img { height: 100%; width: 100%; flex: 0 0 100%; display: block; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; user-select: none; }
.banner .cap { position: absolute; z-index: 1; right: 32px; top: 16px; font-family: var(--mono); font-size: 12px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); pointer-events: none; }

/* intro */
.hero { position: absolute; z-index: 2; left: max(32px, calc((100vw - 1240px) / 2 + 32px)); right: max(32px, calc((100vw - 1240px) / 2 + 32px)); bottom: 28px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; pointer-events: none; }
.hero h1 { font-weight: 600; font-size: clamp(40px, 6.4vw, 88px); line-height: .95; letter-spacing: -0.02em; }
.hero p { color: var(--ink); text-align: right; line-height: 1.45; padding-bottom: 6px; }

/* section labels */
.section-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; padding: 10px 0; }
.section-label span:last-child { color: var(--muted); }

/* work */
.featured { padding: 28px 0 112px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 32px; margin-top: 20px; }
.card { display: block; }
.card .ph { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .3s; }
.card img { filter: brightness(.88); }
.card:hover img { filter: brightness(1.05); }
.card .meta { margin-top: 14px; }
.card .num { color: var(--amber); padding-top: 4px; }
.card h3 { font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.card .show { font-size: 17px; }
.card .role { color: var(--muted); margin-top: 6px; }
a.card:hover h3 { color: var(--amber); }

/* about + contact (original v1 sections) */
.contact { padding: 0 0 120px; }
.contact .big { display: inline-block; margin-top: 10px; font-size: clamp(28px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; border-bottom: 2px solid transparent; transition: border-color .2s; }
.contact .lede { margin-top: 12px; color: var(--muted); max-width: 520px; }
.form { margin-top: 36px; max-width: 720px; display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.form input, .form textarea { font: inherit; font-size: 16px; text-transform: none; letter-spacing: normal; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; outline: none; transition: border-color .2s; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--ink); }
.form input::placeholder { color: var(--muted); opacity: .6; }
.form button { justify-self: start; margin-top: 8px; font: inherit; font-size: 15px; cursor: pointer; color: var(--bg); background: var(--ink); border: 0; border-radius: 999px; padding: 12px 28px; transition: opacity .2s; }
.form button:hover { opacity: .8; }
.form .sent { color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.about { padding: 0 0 120px; }
.about p { margin-top: 28px; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.45; letter-spacing: -0.01em; }
.skills { margin-top: 56px; }
.skills h3 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.skills ul { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.skills li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.skills .name { display: flex; align-items: center; gap: 16px; }
.skills .logo { width: 72px; height: 30px; object-fit: contain; object-position: center; filter: grayscale(1) invert(1) brightness(1.6); opacity: .85; flex: none; }
.skills li { align-items: center; }
.skills .what { color: var(--muted); font-size: 15px; text-align: right; }
.about p + p { margin-top: 16px; color: var(--muted); font-size: 16px; letter-spacing: 0; }
@media (max-width: 680px) { .form .row { grid-template-columns: 1fr; } }

footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0 28px; color: var(--muted); }

/* gig pages */
.gig-head { padding: 56px 0 36px; }
.gig-head .back { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.gig-head .back:hover { color: var(--ink); }
.gig-head h1 { margin-top: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: .98; font-size: clamp(40px, 7vw, 92px); }
.gig-head .sub { margin-top: 12px; font-size: clamp(18px, 2.2vw, 24px); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 48px; margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); }
.facts div { font-size: 16px; }
.facts span { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.video { padding-bottom: 12px; }
.video .frame { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer; }
.video .frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.7); transition: filter .3s; }
.video .frame:hover img { filter: brightness(.85); }
.video .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 1.5px solid #fff; border-radius: 50%; }
.video .play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.video p a { color: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video p { margin: 10px 0 28px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 40px; align-items: start; }
.gallery img { width: 100%; height: auto; display: block; background: var(--line); }
.gallery img:not(.wide) { aspect-ratio: 3 / 2; object-fit: cover; }
.gallery img.wide { grid-column: 1 / -1; max-height: 90vh; object-fit: cover; }
.credits { padding: 8px 0 48px; }
.credits h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.credits ul { list-style: none; margin-top: 14px; border-top: 1px solid var(--line); }
.credits li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.credits li span:first-child { white-space: nowrap; }
.credits li span:last-child { color: var(--muted); font-size: 15px; text-align: right; }
.gig-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 0 80px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.gig-foot a:hover { color: var(--ink); }

@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  header.top nav a { margin-left: 14px; }
  .banner .cap { font-size: 11px; }
  .hero { grid-template-columns: 1fr; gap: 10px; left: 16px; right: 16px; bottom: 16px; }
  .banner .cap { right: auto; left: 16px; top: 12px; bottom: auto; }
  .hero p { text-align: left; }
  .featured { padding: 20px 0 88px; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .form .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; gap: 10px; }
}
