/* ==========================================================
   Randy Keeler | randykeeler.com
   Version 03
   Static site. No frameworks, no build step.
   ========================================================== */

:root {
  --black: #000;
  --ink: #0b0b0b;
  --panel: #141414;
  --line: #262626;
  --white: #fff;
  --muted: #a8a8a8;
  --soft: #dcdcdc;
  --red: #e0211d;
  --red-dark: #b5170f;

  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Arimo", Arial, Helvetica, sans-serif;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 100px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0 0 1.2em; }

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

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-header .wrap {
  height: 100%;
  max-width: 1600px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: block; padding: 5px; margin-left: -5px; }
.logo img { height: 66px; width: auto; }

.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a {
  font-family: var(--display);
  font-size: 16px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--soft);
  padding: 6px 0; position: relative;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #fff; }

.menu-btn {
  display: none;
  background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
}
.menu-btn span {
  display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0;
  transition: transform .25s, opacity .25s;
}

@media (max-width: 1023px) {
  :root { --header-h: 88px; }
  .logo img { height: 56px; }
}

@media (max-width: 760px) {
  :root { --header-h: 76px; }
  .logo img { height: 46px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(0,0,0,.97);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--red); }
  body.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 15px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: var(--red);
  padding: 16px 30px;
  border: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Zoom on scroll ----------
   JS sets the scale. Images settle at exactly 1:1 (no transform)
   when centered on screen, so they always come to rest crisp.
   transform-origin is the top edge, so heads are never cropped. */
.zoom-img { transform-origin: 50% 0; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  width: 100%;
  aspect-ratio: 2500 / 1864;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: #111;
}
.hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 22%;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 30px; z-index: 2;
  transform: translateX(-50%);
  font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: .34em;
  color: #fff; text-decoration: none; text-transform: uppercase;
  padding-left: .34em; /* balances letter-spacing so the word centers */
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-shadow: 0 1px 10px rgba(0,0,0,.8);
}
.hero-scroll::after {
  content: ""; width: 2px; height: 56px; background: var(--red);
  margin-right: .34em;
  animation: drip 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drip { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(1);opacity:0} }
@media (max-width: 700px) { .hero-scroll { display: none; } }

/* ---------- Statement ---------- */
.statement { padding: clamp(72px, 11vw, 150px) 0; }
.statement p {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 4.2vw, 58px); line-height: 1.12;
  max-width: 1050px; margin: 0;
}

/* ---------- Pillars (Speaker / Filmmaker / Designer) ----------
   Desktop: full-bleed photo, text on the right over a dark fade.
   Tablet and phone: full photo on top (never cropped), text below. */
.pillar { position: relative; background: #000; overflow: hidden; }
/* Phones and tablets: each photo shows in full at its own shape, nothing cropped */
.pillar-media { position: relative; overflow: hidden; background: #111; }
.pillar-media img { width: 100%; height: auto; }
.pillar-body {
  padding: clamp(40px, 7vw, 64px) var(--pad) clamp(64px, 10vw, 96px);
  text-align: center;
  max-width: 760px; margin: 0 auto;
}
.pillar h2 { font-size: clamp(48px, 9vw, 92px); margin-bottom: 24px; }
.pillar p { color: var(--soft); text-align: left; }
.pillar .btn { margin-top: 18px; }

@media (min-width: 1100px) {
  .pillar-media img { height: 100%; object-fit: cover; object-position: 50% 0; }
  /* Filmmaker photo is taller (4:3): frame face and camera together on very wide screens */
  .pillar-media img.pos-film { object-position: 50% 28%; transform-origin: 50% 28%; }
  .pillar-media {
    height: 56.25vw;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
    min-height: 620px;
  }
  .pillar-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(to right, rgba(0,0,0,0) 38%, rgba(0,0,0,.55) 58%, rgba(0,0,0,.78) 100%),
      linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,.35));
  }
  .pillar-body {
    position: absolute; top: 0; bottom: 0; right: 0;
    width: 42%; max-width: 760px; margin: 0;
    padding: 48px clamp(40px, 5vw, 110px) 48px 24px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-shadow: 0 1px 12px rgba(0,0,0,.6);
  }
  .pillar h2 { font-size: clamp(64px, 6vw, 110px); }
  .pillar p { color: #f0f0f0; font-size: clamp(16px, 1.05vw, 19px); }
}

/* ---------- Videos banner ---------- */
.banner {
  position: relative;
  margin-top: var(--header-h);
  height: min(calc(100vw / 1.75), calc(85vh - var(--header-h)));
  min-height: 300px;
  display: flex; align-items: flex-end;
  overflow: hidden; background: #111;
}
.banner img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 0;
}
.banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,.85));
}
.banner .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(24px, 5vw, 64px); }
.banner h1 { font-size: clamp(56px, 10vw, 150px); text-shadow: 0 2px 20px rgba(0,0,0,.5); }

/* ---------- Videos ---------- */
.videos { padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 10vw, 140px); }
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.filter {
  font-family: var(--display); font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  background: transparent; color: var(--soft);
  border: 1px solid #3a3a3a; border-radius: 4px; padding: 10px 22px; cursor: pointer;
  transition: all .2s;
}
.filter:hover { border-color: #fff; color: #fff; }
.filter[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.filter .count { opacity: .6; margin-left: 6px; }

.grid {
  display: grid; gap: clamp(20px, 2.4vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}

/* Red-line card: dark rounded box with a thin red rule across the top */
.card {
  background: var(--panel);
  display: flex; flex-direction: column;
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--red);
  border-radius: 6px;
  overflow: hidden;
}
.card[hidden] { display: none; }
.card-play {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; overflow: hidden;
  padding: 0; border: 0; cursor: pointer; background: #000;
}
.card-play img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s, opacity .3s; opacity: .9;
}
.card-play::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(224,33,29,.92)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E")
    center / 28px no-repeat;
  transition: transform .25s;
}
.card-play:hover img { transform: scale(1.04); opacity: 1; }
.card-play:hover::after { transform: scale(1.1); }
.card-body { padding: 22px 24px 26px; }
.tags { display: flex; gap: 12px; margin-bottom: 10px; }
.tag {
  font-family: var(--display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red);
}
.card h3 { font-size: 22px; line-height: 1.2; margin-bottom: 10px; text-transform: none; }
.card p {
  color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner { width: min(1200px, 100%); }
.lightbox-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-top: 3px solid var(--red); }
.lightbox-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-title {
  font-family: var(--display); font-size: clamp(18px, 2.4vw, 26px); text-transform: uppercase;
  margin-top: 18px;
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 40px; line-height: 1; padding: 8px;
}
.lightbox-close:hover { color: var(--red); }

/* ---------- About / Contact split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px);
  align-items: start;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) var(--pad) clamp(80px, 10vw, 140px);
}
.split-media { position: sticky; top: calc(var(--header-h) + 32px); }
.split-media img { width: 100%; height: auto; } /* full photo, never cropped */
.split h1 { font-size: clamp(52px, 8vw, 110px); margin-bottom: 32px; }
.lede {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(21px, 2.2vw, 28px); line-height: 1.4; color: #fff;
}
.prose p { color: var(--soft); }
.prose .btn { margin-top: 16px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-media { position: static; max-width: 760px; }
}

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 40px 0; border-top: 1px solid var(--line); }
.contact-list li {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.contact-list .label {
  font-family: var(--display); font-size: 13px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted); padding-top: 4px;
}
.contact-list .value { font-size: 20px; }
.contact-list .value + .value { margin-top: 10px; }
.contact-list .kind { color: var(--muted); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--red); }
@media (max-width: 520px) {
  .contact-list li { grid-template-columns: 1fr; gap: 6px; }
  .contact-list .value { font-size: 18px; }
}

/* ---------- CTA band ---------- */
.cta {
  border-top: 1px solid var(--line);
  padding: clamp(72px, 10vw, 130px) 0;
  text-align: center;
}
.cta h2 { font-size: clamp(40px, 6vw, 80px); margin-bottom: 18px; }
.cta p { color: var(--muted); max-width: 48ch; margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 64px 0 36px; }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start;
  padding-bottom: 44px; border-bottom: 1px solid var(--line);
}
.footer-name { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: .04em; }
.footer-tag { color: var(--muted); font-size: 14px; margin: 6px 0 0; letter-spacing: .08em; text-transform: uppercase; }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(40px, 7vw, 100px); }
.footer-cols h4 {
  font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--red); margin: 0 0 14px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--soft); text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { padding-top: 26px; color: #6f6f6f; font-size: 13px; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--header-h);
}
.notfound h1 { font-size: clamp(90px, 18vw, 220px); color: var(--red); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::after { animation: none; }
  * { transition-duration: 0s !important; }
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
