/* ==========================================================================
   Off2Clipz. All brand colors and fonts live here.
   --accent (#0b5394) is for fills and lines: 2.43:1 on the background, 5.45:1
   behind light text. --accent-light is the same blue lightened for small text
   and accents on the background. #4B4B4B is decorative only. #6E6E6E is for
   large text only.
   ========================================================================== */
/* Only the letters of the wordmark, built into this file so the loader's first frame already has them. */
@font-face {
  font-family: 'Off2Clipz Mark'; font-style: normal; font-weight: 400; font-display: block;
  src: url('data:font/woff2;base64,d09GMgABAAAAAASwAA8AAAAACOwAAARWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGkgbgQYcgnYGYD9TVEFUQABsEQgKhiyFIQE2AiQDOAseAAQgBXIHIBs8BwCeBTkZ2ivxKpbIxfwmfe1KCZ6nvOr96krSUxnAC8A3KKeVeIMb6ytx3GlD1vRaVjwELhG4oSrET7GQqMi92zh+QnI/vCij638Aeu0Dx1QXiZGWDbbZQAc6oOigiLYBT3A0THxEit2OpwNf8ObWxIIgEs9rXtsgqm+XRoBooDxAEFwEgQIWikLhj8ZT0q1GWdKILODAaU8BQzF9kFu33ZCCNXlE1A8WGuAt0zFpTNgPZgS79o0yFFKi0QBIzCD4Rm/kkdsBZFI1M4LGwUX52WchAAgqE0V2i0bxsK+tDbPFwMUaTLWalTKUuZWYuNZpVk2UdxFskMw9BZuW3gqit7d43ZrMvqAQ1BnKB/O+TVrbrStkkbYHHfyjRvmC6GO7Rya7HCbMTA5YvFhi4A2wGKzk1AMEwIoGgg0WsAL7wLrTwiGeIbSv6Vb7EQyKxPuoYhgfOukgSqA9Kggajd9uzeScCptojFV7oDgIcrBWe8TDAitZnwY28mXUdWoqD5AXNH/y/Cm4pSZpZ0OZwF9P/gICoNtaN4F8KEgGUUhmgOJ/wLzRUScJmDfOGSXZCJp4SIASi9EAQUBEPAAU4AOSoSBAMlT6AxLhQEFRk3kE2HHhJUg6IuwbzE3n7LANld9sQwIAeVREcQDEApANiAN+g7RtqGgogqCaL4LbWXIliaw0DSdJjjUZ2bXUEatDIXFWhMPumiD8NhhZcdesvo29/I675p6Iy/JAQOjGtob7rgmvppAaGOgJuo4RV1ZIznYhhXOz+im4GNuNcv0LxYVn3UXuggGjj1t+gFql/YNCTdWwNcfEWnHSrL6OXn7DlUlGYhgfwyK/cYxtnOvNGl81Je4Cs2jjnD0Q1C1hsEluHoxSGxIZ5MaB3jEsEpcxcYOX92yZHzRSvZBf0WvAvKt3Td4cniNgc9UhHS3THeaOQGPnZpctN7BNfnmva0wDmUqeHThSs5Dr9oEGtQPA8r2P5fPmWs2ttXNNjXX1BRD0xl4c2/jQOzwn8zp8umn5Ss+4PH2x0KNxW6Jt9P6/gZvujcwEtJuqHqHGvP2V2/eS9DcNLEzVmQZv6hSZFyf72gQD4ts2JcXrFfamxeKir5yxJf/U3J/y6fPl2+3bUi9TsXhpifB2evfj6pLZm+trPprY39YhZBbvjtmbeOdZWpUGQd+W4uYebUOtJ2x/Gv+1ybshLUtDXV2lwXn7x9j+VZlWI339AsH4peYNVQe9Ro19Dv857ybj5G+kJz/cv38fVQoNcIgpewIKoDuQTGsdAihaTlut/BpG439+n/MU4M25vwB8SJiVxZStVHutx4CNAkDgcXWpLxXx/8ICBDDHzsbaqod9pwQw0pIJmYiwSLZkQg2nT3WnvMeowGEh2gJZgQCxlHwYZn3rbZIWLaEgOioWC+cCAobYeZljWESTfnubaIoRY8NBDC8mwihwYSWKky0CNefDhPeg2HDh+KEoFACIbK8mAAAA') format('woff2');
}
@font-face {
  font-family: 'League Gothic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/league-gothic.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/instrument-sans.woff2') format('woff2');
}
:root {
  --bg: #02111e;
  --accent: #0b5394;
  --accent-light: #6fa8dc;
  --text: #d7d7d7;
  --gray-1: #4b4b4b;
  --gray-2: #6e6e6e;
  --gray-3: #919191;
  --gray-4: #b4b4b4;

  --panel: color-mix(in srgb, var(--accent) 12%, var(--bg));
  --line: color-mix(in srgb, var(--gray-2) 45%, var(--bg));
  --word-fill: linear-gradient(90deg, var(--accent) 0%, var(--text) 72%);

  --font-display: 'League Gothic', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(1rem, 3vw, 2.5rem);
  --section: clamp(5rem, 13vw, 11rem);
  --header-h: 4.5rem;
  --max: 130rem;
  /* The word is 2.47em wide, so this fills the width on phones and is limited by height on desktop. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --word-size: min(calc((100vw - 2 * var(--gutter)) / 2.56), 44svh);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  background: var(--bg);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(1.0625rem, 0.98rem + 0.35vw, 1.3125rem) / 1.55 var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: 0.005em; text-wrap: balance; }

html.menu-open, html.is-loading { overflow: hidden; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Links and focus */
a { color: inherit; }
.link {
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: background-color 0.25s ease;
}
.link:hover { background: var(--accent); text-decoration-color: transparent; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: fixed; left: var(--gutter); top: 0.5rem; z-index: 200;
  padding: 0.75rem 1.25rem; background: var(--accent); color: var(--text);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.title { font-size: clamp(3.5rem, 2rem + 8vw, 9rem); }
.lede { max-width: 34em; color: var(--gray-4); }

/* Buttons: fill sweeps left to right, the same move as the loader */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 3.5rem; padding: 0.75rem 2rem;
  border-radius: 6px;
  background-color: var(--accent);
  background-image: linear-gradient(var(--text), var(--text));
  background-repeat: no-repeat; background-size: 0% 100%;
  color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-size 0.45s cubic-bezier(0.65, 0, 0.35, 1), color 0.25s ease;
}
.btn:hover { background-size: 100% 100%; color: var(--bg); }
.btn--big {
  min-height: 5.5rem; padding: 1rem clamp(2.5rem, 6vw, 5rem);
  font: 400 clamp(2.5rem, 1.8rem + 3vw, 4.5rem) / 1 var(--font-display);
  letter-spacing: 0.01em;
}
.btn--line {
  background-color: transparent;
  background-image: linear-gradient(var(--accent), var(--accent));
  box-shadow: inset 0 0 0 2px var(--accent);
}
.btn--line:hover { color: var(--text); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.35s ease;
}
.site-header.is-scrolled, .menu-open .site-header { background: var(--bg); }
.site-header__row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 400 2rem / 1 var(--font-display); letter-spacing: 0.015em; text-decoration: none;
}
.nav { display: none; }
.nav ul { display: flex; gap: 0.25rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.25rem 0.9rem;
  border-radius: 6px; font-size: 1rem; font-weight: 500; text-decoration: none;
  transition: background-color 0.25s ease;
}
.nav a:hover { background: var(--accent); }
.nav a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 6px 6px 0 0; }
.nav a[aria-current='page']:hover { box-shadow: none; border-radius: 6px; }

.menu-toggle {
  position: relative; width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; color: inherit; cursor: pointer; border-radius: 6px;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--header-h) var(--gutter) 2rem;
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.6s;
}
.mobile-menu.is-open { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
.mobile-menu a.mobile-menu__link {
  display: block; padding: 0.25rem 0;
  font: 400 clamp(3.75rem, 19vw, 6rem) / 1.1 var(--font-display); text-decoration: none;
  opacity: 0; transform: translateY(1.25rem);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.is-open a.mobile-menu__link { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i) * 0.06s); }
.mobile-menu a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 0.1em; }

@media (min-width: 860px) {
  .nav { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* Loader */
.loader { display: none; --font-display: 'Off2Clipz Mark', 'League Gothic', Impact, 'Arial Narrow', sans-serif; }
.is-loading .loader { display: block; position: fixed; inset: 0; z-index: 100; --p: 0; }
.loader__panel { position: absolute; inset: 0; background: var(--bg); }
.loader__center { position: absolute; inset: 0; display: grid; place-items: center; }
.loader__word { position: relative; }
.loader.is-leaving { opacity: 0; transition: opacity 0.35s ease; }
.loader__base { color: transparent; -webkit-text-stroke: 1.5px var(--gray-2); }
.loader__fill {
  position: absolute; inset: 0;
  clip-path: inset(-10% calc((1 - var(--p)) * 100%) -10% -1%);
}
.loader__head {
  position: absolute; top: 12%; bottom: 8%; left: calc(var(--p) * 100%); width: 2px;
  background: var(--text);
}

/* The wordmark: same size in the loader and the hero, so the move into place stays sharp */
.wordmark {
  display: block; width: max-content;
  font: 400 var(--word-size) / 1.2 var(--font-display);
  letter-spacing: 0;
  white-space: nowrap;
}
.wordmark--fill {
  background: var(--word-fill);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* Hero */
.hero {
  overflow-x: clip;
  padding-top: var(--header-h);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero__word { margin: 0 auto; margin-block: -0.15em -0.2em; }
.is-loading .hero__word { visibility: hidden; }
.hero__grid { display: grid; gap: 1.5rem; margin-top: calc(var(--word-size) * 0.2 + 0.75rem); }
.hero__tagline { font: 400 clamp(2.25rem, 1.8rem + 2vw, 3.25rem) / 1.08 var(--font-display); letter-spacing: 0.005em; text-wrap: balance; }
.hero__stage { position: relative; z-index: 1; }
.hero__aside { display: flex; }
@media (min-width: 1100px) {
  .hero__grid {
    margin-top: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, min(calc(min(100vw, var(--max)) * 0.58), calc((100svh - var(--header-h) - var(--word-size) * 0.85 - 1rem) * 16 / 9))) minmax(0, 1fr);
    align-items: end; gap: clamp(1.5rem, 3vw, 3rem);
  }
  .hero__tagline { font-size: clamp(2.25rem, 1rem + 2.4vw, 4rem); }
  .hero__aside { justify-content: flex-end; }
  .hero__aside .btn { padding-inline: 1.25rem; }
}

/* Players */
.player {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  border-radius: 8px; background: var(--panel);
}
.player video, .player iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--panel); object-fit: contain;
}
.player--vertical iframe { left: 50%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); right: auto; }
.player__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center;
  background: none; border: 0; color: var(--text); cursor: pointer;
}
.player__play:focus-visible { outline-offset: -6px; }
.player__icon {
  display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--accent);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.player__play:hover .player__icon { background: var(--text); color: var(--bg); }
.player__icon svg { width: 2rem; fill: currentColor; }
.player__note {
  position: absolute; left: 1rem; bottom: 0.75rem;
  font: 400 clamp(1.5rem, 1.2rem + 1vw, 2.25rem) / 1.1 var(--font-display); letter-spacing: 0.01em;
}
.reel-toggle {
  position: absolute; right: 0.75rem; bottom: 0.75rem;
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--text); cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.reel-toggle:hover { background: var(--text); color: var(--bg); }
.reel-toggle svg { width: 22px; fill: currentColor; }

/* Placeholder artwork */
.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-bar { fill: var(--gray-1); }
.art-hit { fill: var(--gray-4); }
.art-box { fill: var(--bg); fill-opacity: 0.55; }
.art-cut { fill: var(--accent); }
.art-frame { fill: var(--accent); }

/* What I do */
.do__head { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); color: var(--gray-4); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.do__lead h3 { font-size: clamp(4.5rem, 2rem + 15.5vw, 17rem); line-height: 0.95; }
.do__lead p { margin-top: 1.5rem; }
.do__rest { display: grid; gap: 2.5rem; margin-top: clamp(3.5rem, 7vw, 6.5rem); }
.do__rest li { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.do__rest h3 { font-size: clamp(2.5rem, 2rem + 2.2vw, 4rem); margin-bottom: 0.5rem; }
.do__rest p { color: var(--gray-4); }
@media (min-width: 760px) { .do__rest { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); } }

/* Skills, drawn as clips on an edit timeline */
.skills__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.timeline {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 1.25rem;
  background: repeating-linear-gradient(90deg, var(--gray-2) 0 1px, transparent 1px 48px) top left / 100% 9px no-repeat;
}
.clip {
  position: relative; flex: 1 1 100%; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(5rem, 8vw, 8.5rem);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: var(--panel);
  font: 400 clamp(2.25rem, 1.8rem + 2.1vw, 4.25rem) / 1.05 var(--font-display);
}
.clip__name { position: relative; }
.clip__tc { position: absolute; top: 0.6rem; left: 1rem; font: 500 0.75rem / 1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: var(--text); }
.clip__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; }
@media (min-width: 760px) {
  .clip { flex: 1 1 28%; }
  .clip:nth-child(1) { flex-grow: 1.5; }
  .clip:nth-child(4) { flex-grow: 1; }
  .clip:nth-child(5) { flex-grow: 1.5; }
}

/* Video grid */
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.work-head .link { display: inline-flex; align-items: center; min-height: 44px; }
/* Hold the space until the player script fills these, so nothing below them jumps. */
.js [data-videos]:not(.is-built) { min-height: 100svh; }
.js .hero__stage:empty { aspect-ratio: 16 / 9; }
.grid { display: grid; gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--three { grid-template-columns: repeat(3, 1fr); } }
.tile { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline; align-content: start; }
.tile .player { grid-column: 1 / -1; margin-bottom: 1rem; }
.tile__title { font-size: clamp(2rem, 1.7rem + 1.2vw, 3rem); }
.tile__type { color: var(--accent-light); font-size: 0.9375rem; }
.tile__desc { grid-column: 1 / -1; color: var(--gray-4); margin-top: 0.35rem; max-width: 34em; }

/* CTA */
.cta { text-align: center; }
.cta .title { margin-bottom: 1.25rem; }
.cta .lede { margin: 0 auto clamp(2rem, 4vw, 3rem); }

/* Page headers */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)); }
.page-head .lede { margin-top: clamp(1.5rem, 3vw, 2.75rem); }
.page-title { font-size: clamp(5rem, 2rem + 16vw, 16rem); line-height: 1.02; }
.work-section { padding-block: clamp(3rem, 6vw, 5rem) var(--section); }

/* About */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(2.5rem, 5vw, 4rem); }
.about-intro p + p { margin-top: 1em; }
.about-intro { max-width: 34em; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.4; }
.slot {
  /* Photo or logo goes here later: replace the span with an <img>. */
  display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 8px; background: var(--panel);
}
.slot span { font: 400 clamp(6rem, 22vw, 15rem) / 1 var(--font-display); }
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: 0.15rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--gray-3); }
.facts dd { font: 400 clamp(1.75rem, 1.5rem + 1vw, 2.5rem) / 1.15 var(--font-display); letter-spacing: 0.005em; }
@media (min-width: 760px) { .facts > div { grid-template-columns: 12rem 1fr; align-items: baseline; } }
@media (min-width: 1000px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .slot { aspect-ratio: 4 / 3; }
}
.section-title { font-size: clamp(3rem, 2rem + 5vw, 7rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.do-list { display: grid; gap: 1.5rem; }
.do-list h3 { font-size: clamp(2rem, 1.7rem + 1.5vw, 3.25rem); }
.do-list p { color: var(--gray-4); }
.do-list li:first-child h3 { font-size: clamp(3.5rem, 2rem + 8vw, 8rem); }
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: clamp(4rem, 12vw, 11rem) 1fr; align-items: baseline;
  padding-block: clamp(1.25rem, 2.5vw, 2.25rem); border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font: 400 clamp(3.5rem, 2rem + 6vw, 7.5rem) / 1 var(--font-display); color: var(--accent-light); }
.step h3 { font-size: clamp(2.25rem, 1.8rem + 2.2vw, 4rem); }
.step p { margin-top: 0.4rem; color: var(--gray-4); max-width: 34em; }

/* Contact */
.contact { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 2rem) clamp(3rem, 6vw, 5rem); }
.contact .lede { margin-block: clamp(1.5rem, 3vw, 2.75rem) clamp(2.5rem, 6vw, 5rem); font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.4; }
.email {
  display: inline-block; max-width: 100%; padding-top: 0.05em;
  border-radius: 8px;
  font: 400 min(calc((100vw - 2 * var(--gutter)) / 6.5), 13rem) / 1.1 var(--font-display);
  text-decoration: none; white-space: nowrap;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-size: 0% 100%;
  box-shadow: inset 0 -3px 0 var(--accent);
  transition: background-size 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.email:hover { background-size: 100% 100%; }
.email-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.copy-email {
  min-height: 44px; min-width: 7.5rem; padding: 0.5rem 1rem;
  border: 0; border-radius: 6px; background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 2px var(--accent);
  font: 500 0.9375rem / 1.2 var(--font-body); cursor: pointer;
  transition: background-color 0.25s ease;
}
.copy-email:hover { background: var(--accent); }
html:not(.js) .copy-email { display: none; }
.socials { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(2rem, 5vw, 4rem); }
.socials .btn { flex: 1 1 14rem; max-width: 22rem; min-height: 4.5rem; font-size: 1.125rem; }
.socials svg { width: 1.6rem; height: 1.6rem; fill: currentColor; flex: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem); }
.site-footer__row { display: grid; gap: 1.5rem; }
.site-footer .logo { font-size: 2.75rem; }
.site-footer__tag { color: var(--gray-4); margin-top: 0.25rem; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; }
.site-footer__links a.link { display: inline-flex; align-items: center; min-height: 44px; }
.icon-link {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  transition: background-color 0.25s ease;
}
.icon-link:hover { background: var(--accent); }
.icon-link svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
@media (min-width: 760px) { .site-footer__row { grid-template-columns: 1fr auto; align-items: end; } }

/* Word masks for split headings */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.03em 0.24em; margin: -0.06em -0.03em -0.24em; }
.w__in { display: inline-block; }

/* Page transition: blue wipe with the brand name */
.wipe {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  background: var(--accent); color: var(--text);
  transform: translateX(-101%); visibility: hidden; pointer-events: none;
  transition: transform 0.5s var(--ease-in-out), visibility 0s linear 0.5s;
}
.wipe::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: var(--text); }
.wipe__word { font: 400 clamp(4rem, 14vw, 13rem) / 1 var(--font-display); }
.is-leaving-page .wipe { transform: none; visibility: visible; transition: transform 0.5s var(--ease-in-out), visibility 0s; pointer-events: auto; }
.is-arriving .wipe { visibility: visible; transform: none; transition: none; animation: wipe-off 0.75s var(--ease-in-out) 0.08s both; }
@keyframes wipe-off { from { transform: none; visibility: visible; } to { transform: translateX(101%); visibility: hidden; } }

/* Film grain and glow */
.grain { position: fixed; inset: 0; z-index: 80; pointer-events: none; background: url('../img/grain.png'); }
.hero__stage::before, .cta::before {
  content: ''; position: absolute; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent);
}
.hero__stage::before { inset: -18% -14%; }
.cta { position: relative; isolation: isolate; overflow-x: clip; }
.cta::before { left: 50%; top: 50%; width: min(70rem, 110%); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); opacity: 0.55; }

/* Services marquee */
.marquee { overflow: hidden; padding-block: clamp(0.75rem, 1.5vw, 1.5rem); border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee span { padding-inline: clamp(1rem, 2vw, 2.25rem); font: 400 clamp(2.5rem, 1.5rem + 5vw, 7.5rem) / 1.1 var(--font-display); white-space: nowrap; color: var(--gray-4); }
.marquee i { flex: none; width: 2px; height: 0.9em; font-size: clamp(2.5rem, 1.5rem + 5vw, 7.5rem); background: var(--accent-light); }

/* Timecode readout and playhead bar tied to scroll */
.hud { display: none; }
.has-motion .hud { display: block; position: fixed; inset: auto 0 0; z-index: 45; height: 2px; pointer-events: none; }
.hud__bar { position: absolute; inset: 0; background: var(--accent-light); transform: scaleX(0); transform-origin: left; }
.hud__time {
  position: absolute; right: var(--gutter); bottom: 0.75rem; display: none;
  font: 500 0.8125rem / 1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: var(--accent-light);
}
@media (min-width: 760px) { .hud__time { display: block; } }

/* Custom cursor (mouse only, added by JS) */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor dialog, .has-cursor dialog * { cursor: auto !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
.cursor.is-on { opacity: 1; }
.cursor__dot {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--text); transition: transform 0.3s var(--ease-out);
}
.cursor__tag {
  position: absolute; left: 14px; top: 14px; padding: 0.3rem 0.65rem; border-radius: 999px;
  background: var(--accent); color: var(--text); font: 500 0.8125rem / 1.2 var(--font-body); white-space: nowrap;
  opacity: 0; transform: scale(0.7); transform-origin: left top;
  transition: opacity 0.2s ease, transform 0.35s var(--ease-out);
}
.cursor.has-tag .cursor__tag { opacity: 1; transform: none; }
.cursor.is-link .cursor__dot { transform: scale(2.2); }
.cursor.is-play .cursor__dot { transform: scale(0); }
.cursor.is-play .cursor__tag {
  left: -3rem; top: -3rem; display: grid; place-items: center; width: 6rem; height: 6rem; padding: 0;
  font: 400 1.75rem / 1 var(--font-display); letter-spacing: 0.01em; transform-origin: center;
}
.has-cursor .player__icon { opacity: 0; }
.has-cursor .player__play:focus-visible .player__icon { opacity: 1; }

/* Tile hover: a playhead runs across the placeholder, covers and clips ease in */
.art-head { fill: var(--text); opacity: 0; }
.player__cover, .tile__clip { transition: transform 0.9s var(--ease-out); }
@media (hover: hover) {
  .player:hover .art-head { opacity: 1; animation: art-sweep 2.6s linear infinite; }
  .player:hover .player__cover, .player:hover .tile__clip { transform: scale(1.035); }
}
@keyframes art-sweep { from { transform: translateX(0); } to { transform: translateX(640px); } }
.player .tile__clip { object-fit: cover; }
.player--vertical .tile__clip { object-fit: contain; }

/* Full-screen player */
.theater {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--text); overflow: hidden;
}
.theater::backdrop { background: transparent; }
.theater__bg { position: absolute; inset: 0; background: var(--bg); }
.theater__center { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(3.75rem, 6vw, 5rem) var(--gutter) var(--gutter); }
.theater__frame { position: relative; width: min(100%, calc((100dvh - 7rem) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--panel); transform-origin: left top; }
.theater__frame--vertical { width: auto; height: min(100%, calc(100dvh - 7rem)); aspect-ratio: 9 / 16; }
.theater__frame iframe, .theater__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.theater__close {
  position: absolute; right: var(--gutter); top: 0.6rem; z-index: 1;
  min-width: 48px; min-height: 48px; padding: 0.5rem 1.25rem; border: 0; border-radius: 6px;
  background: var(--accent); color: var(--text); font: 600 1rem / 1 var(--font-body);
}
.theater__close:hover { background: var(--text); color: var(--bg); }

/* Reduced motion: no big movement anywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .wipe { display: none; }
}
