/* liamhastey.com — "Everyday Filmmaking"
   Palette and type lifted from Liam's YouTube banner: olive, cream, tan labels,
   heavy condensed caps. */
:root {
  --ink:        #15170f;
  --olive-900:  #1b1e14;
  --olive-800:  #23271a;
  --olive-700:  #30351f;
  --olive-600:  #434a2e;
  --olive:      #5a6340;
  --cream:      #f2ecdf;
  --cream-dim:  #cfc9b8;
  --muted:      #9a9c86;
  --tan:        #e8c39a;
  --tan-deep:   #b98a5c;
  --red:        #e0493a;
  --line:       rgba(242, 236, 223, 0.12);
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--olive-900);
  color: var(--cream);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain over everything, very faint. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--tan); text-decoration: none; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3, .display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  line-height: .95; letter-spacing: .01em; margin: 0;
}
h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h3 { font-size: 1.5rem; line-height: 1.05; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--cream-dim); max-width: 60ch; }

/* The tan "sticker" label from the banner. */
.tag {
  display: inline-block; background: var(--tan); color: var(--ink);
  font: 600 .95rem/1 var(--body); padding: .4em .6em .45em; border-radius: 2px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.tag--tilt-l { transform: rotate(-4deg); }
.tag--tilt-r { transform: rotate(3deg); }
.tag--small { font-size: .75rem; padding: .35em .5em; box-shadow: none; }

.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 1rem/1 var(--body); padding: .95em 1.4em; border-radius: var(--radius);
  border: 1.5px solid var(--tan); background: var(--tan); color: var(--ink);
  cursor: pointer; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 30, 20, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--cream); }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--tan); }
.brand span { font: 400 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.nav { display: flex; gap: .3rem; align-items: center; }
.nav a { color: var(--cream-dim); padding: .5rem .8rem; border-radius: var(--radius); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); background: var(--olive-700); }
.nav .btn, .nav .btn:hover { margin-left: .5rem; padding: .7em 1.1em; color: var(--ink); }
.nav .btn:hover { background: var(--cream); }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); padding: .5rem; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--olive-800); border-bottom: 1px solid var(--line); padding: .8rem var(--gutter) 1.2rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem; }
  .nav .btn { margin: .4rem 0 0; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero::before { /* olive vignette like the banner backdrop */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 80% at 70% 40%, var(--olive-600), var(--olive-900) 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-kicker { display: flex; align-items: center; gap: .6rem; color: var(--muted); margin-bottom: 1.4rem; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: rec 1.6s infinite; }
@keyframes rec { 50% { opacity: .25; } }
.hero h1 { font-size: clamp(3.6rem, 11vw, 8.5rem); line-height: .86; }
.hero h1 .accent { color: var(--tan); display: block; }
.hero .lede { margin: 1.6rem 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-photo { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-photo .frame {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* viewfinder corners */
.hero-photo .frame::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  background:
    linear-gradient(var(--cream), var(--cream)) top left / 22px 2px no-repeat,
    linear-gradient(var(--cream), var(--cream)) top left / 2px 22px no-repeat,
    linear-gradient(var(--cream), var(--cream)) top right / 22px 2px no-repeat,
    linear-gradient(var(--cream), var(--cream)) top right / 2px 22px no-repeat,
    linear-gradient(var(--cream), var(--cream)) bottom left / 22px 2px no-repeat,
    linear-gradient(var(--cream), var(--cream)) bottom left / 2px 22px no-repeat,
    linear-gradient(var(--cream), var(--cream)) bottom right / 22px 2px no-repeat,
    linear-gradient(var(--cream), var(--cream)) bottom right / 2px 22px no-repeat;
  opacity: .8;
}
.hero-photo .hud { position: absolute; left: 26px; right: 26px; bottom: 24px; display: flex; justify-content: space-between; color: var(--cream); text-shadow: 0 1px 4px #000; }
.hero-photo .tag { position: absolute; }
.hero-photo .t1 { top: 12%; left: -14%; }
.hero-photo .t2 { top: 46%; right: -10%; }
.hero-photo .t3 { bottom: 16%; left: -8%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { width: min(78%, 360px); }
  .hero-photo .t1 { left: -8%; } .hero-photo .t2 { right: -6%; } .hero-photo .t3 { left: -4%; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--olive-800); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--cream .lede { color: #4a4a3c; }
.section--cream .mono { color: var(--olive); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .mono { color: var(--tan); display: block; margin-bottom: .8rem; }
.section-head .lede { margin: 1rem 0 0; }

/* letterbox bars on the showcase */
.letterbox { position: relative; }
.letterbox::before, .letterbox::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background: #000; }
.letterbox::before { top: 0; } .letterbox::after { bottom: 0; }

/* ---------- live showcase ---------- */
.live-pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 99px;
  background: rgba(224, 73, 58, .12); color: #ffb1a8; border: 1px solid rgba(224, 73, 58, .35);
}
.live-pill.stale { background: var(--olive-700); color: var(--muted); border-color: var(--line); }
.live-pill.stale .rec { background: var(--muted); animation: none; }
.showcase { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 960px) { .showcase { grid-template-columns: 1fr; } }

.now-playing .player {
  aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; position: relative;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.player .poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .4s; }
.player .poster:hover img { opacity: 1; transform: scale(1.02); }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; background: var(--tan); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.now-playing .meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: var(--muted); flex-wrap: wrap; }
.now-playing h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: .6rem; }
.now-playing p { color: var(--cream-dim); margin-top: .7rem; }

.up-next { display: flex; flex-direction: column; gap: 10px; }
.up-next .label { color: var(--muted); margin-bottom: 4px; }
.vid-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; padding: 8px;
  border-radius: var(--radius); background: transparent; border: 1px solid transparent; color: var(--cream);
  text-align: left; cursor: pointer; font: inherit; width: 100%;
}
.vid-row:hover, .vid-row[aria-current="true"] { background: var(--olive-700); border-color: var(--line); color: var(--cream); }
.vid-row .thumb { aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #000; }
.vid-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-row strong { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.vid-row small { color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; }

.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 960px) { .social-grid { grid-template-columns: 1fr; } }
.panel { background: var(--olive-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section--alt .panel { background: var(--olive-900); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head .who { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.panel-head svg { width: 22px; height: 22px; }
.fb-post { display: block; padding: 14px 0; border-top: 1px solid var(--line); color: var(--cream); }
.fb-post:first-of-type { border-top: 0; padding-top: 0; }
.fb-post img { border-radius: 4px; margin-bottom: 10px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.fb-post p { margin: 0 0 6px; font-size: .95rem; color: var(--cream-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fb-post small { color: var(--muted); font-family: var(--mono); font-size: .7rem; }
.fb-embed { width: 100%; border: 0; border-radius: 4px; background: #fff; }
.stat-row { display: flex; gap: 28px; margin: 6px 0 18px; }
.stat b { display: block; font: 400 2.4rem/1 var(--display); color: var(--tan); }
.stat span { color: var(--muted); font-size: .85rem; }
.empty-note { color: var(--muted); font-size: .95rem; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.service { border-top: 3px solid var(--ink); padding-top: 22px; }
.service .num { color: var(--olive); }
.service h3 { font-size: 2.3rem; margin: .5rem 0 .8rem; }
.service ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.service li { padding: .45rem 0; border-top: 1px solid rgba(21,23,15,.12); font-size: .95rem; }
.service li::before { content: "→ "; color: var(--tan-deep); font-weight: 700; }

/* ---------- gear / affiliate ---------- */
.gear-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .gear-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .gear-grid { grid-template-columns: 1fr; } }
.gear {
  display: flex; flex-direction: column; gap: .6rem; padding: 20px; border-radius: var(--radius);
  background: var(--olive-700); border: 1px solid var(--line); color: var(--cream); transition: transform .15s, border-color .15s;
}
.gear:hover { transform: translateY(-3px); border-color: var(--tan); color: var(--cream); }
.gear .cat { color: var(--tan); }
.gear h3 { font-size: 1.6rem; }
.gear p { color: var(--cream-dim); font-size: .92rem; margin: 0; flex: 1; }
.gear .go { font-weight: 600; color: var(--tan); display: flex; align-items: center; gap: .4em; }
.gear .go svg { width: 1.1em; height: 1.1em; flex: none; }
.gear-more { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.gear-more a { color: var(--cream-dim); border-bottom: 1px dashed var(--muted); font-size: .95rem; }
.gear-more a:hover { color: var(--tan); border-color: var(--tan); }
.disclosure { margin-top: 22px; font-size: .82rem; color: var(--muted); max-width: 80ch; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.8rem, 8vw, 6rem); }
.cta-band h2 .accent { color: var(--tan); }
.cta-band .lede { margin: 1.2rem auto 2rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: start; }
.footer-grid .display { font-size: 2rem; color: var(--cream); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--cream);
}
.socials a:hover { background: var(--tan); color: var(--ink); border-color: var(--tan); }
.socials svg { width: 20px; height: 20px; }
.footer-small { margin-top: 28px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }

/* ---------- page header (subpages) ---------- */
.page-head { padding: clamp(56px, 8vw, 100px) 0 clamp(32px, 5vw, 56px); position: relative; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 90% at 80% 0%, var(--olive-600), var(--olive-900) 70%);
}
.page-head .mono { color: var(--tan); }
.page-head h1 { font-size: clamp(3.4rem, 10vw, 7.5rem); margin: .8rem 0 1rem; line-height: .88; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { position: sticky; top: 100px; }
.about-photo img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-photo .tag { position: absolute; bottom: -14px; right: 20px; }
@media (max-width: 900px) { .about-photo { position: relative; top: 0; max-width: 420px; } }
.prose h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 2.2rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--cream-dim); font-size: 1.08rem; }
.prose strong { color: var(--cream); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 2rem 0; }
.facts div { background: var(--olive-800); padding: 20px; }
.facts b { display: block; font: 400 2.6rem/1 var(--display); color: var(--tan); }
.facts span { color: var(--muted); font-size: .85rem; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--olive-600); }
.timeline li { padding: 0 0 1.4rem 1.4rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--tan); }
.timeline b { display: block; color: var(--cream); }
.timeline span { color: var(--cream-dim); }

/* ---------- portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 500 .95rem/1 var(--body); padding: .7em 1.1em; border-radius: 99px; cursor: pointer;
  background: transparent; color: var(--cream-dim); border: 1px solid var(--line);
}
.filters button:hover { color: var(--cream); border-color: var(--cream-dim); }
.filters button[aria-pressed="true"] { background: var(--tan); color: var(--ink); border-color: var(--tan); }
.filters button .count { opacity: .6; margin-left: .3em; font-family: var(--mono); font-size: .75rem; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .work-grid { grid-template-columns: 1fr; } }
.work .player { aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; position: relative; }
.work .play-btn { width: 58px; height: 58px; }
.work .play-btn svg { width: 22px; height: 22px; }
.work .info { padding: 14px 2px 0; }
.work .info .mono { color: var(--tan); }
.work h3 { margin: .45rem 0 .5rem; font-size: 1.45rem; }
.work p { color: var(--cream-dim); font-size: .93rem; margin: 0 0 .4rem; }
.work small { color: var(--muted); font-size: .82rem; }
.work.featured { grid-column: span 2; }
@media (max-width: 600px) { .work.featured { grid-column: auto; } }
.work.featured h3 { font-size: 2rem; }

/* ---------- contact ---------- */
.contact-grid > * { min-width: 0; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .45rem; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--cream); background: var(--olive-800);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .85em 1em;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tan); box-shadow: 0 0 0 3px rgba(232, 195, 154, .18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: .6em 1em; border-radius: 99px; border: 1px solid var(--line);
  color: var(--cream-dim); cursor: pointer; font-weight: 500; font-size: .95rem;
}
.chips input:checked + span { background: var(--tan); color: var(--ink); border-color: var(--tan); }
.chips input:focus-visible + span { outline: 2px solid var(--tan); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: rgba(120, 160, 90, .18); border: 1px solid rgba(140, 180, 100, .4); }
.form-status.err { display: block; background: rgba(224, 73, 58, .12); border: 1px solid rgba(224, 73, 58, .4); }
.contact-side .panel + .panel { margin-top: 18px; }
.contact-side h3 { margin-bottom: .6rem; }
.contact-side p { color: var(--cream-dim); font-size: .95rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }
.link-list a { display: flex; align-items: center; gap: .8rem; padding: .85rem 0; color: var(--cream); }
.link-list a:hover { color: var(--tan); }
.link-list svg { width: 20px; height: 20px; flex: none; }
.link-list small { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: .7rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rec { animation: none; }
  html { scroll-behavior: auto; }
}
