/* maxieharrington.me — dark, editorial, kinetic */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&display=swap');
:root {
  --bg: #000;
  --ink: #fff;
  --mut: #999;
  --dim: #555;
  --line: #222;
  --chip: #161616;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 32px;
  mix-blend-mode: difference;
}
nav .wordmark { font-weight: 700; letter-spacing: .14em; font-size: 13px; }
nav .links a {
  margin-left: 26px; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mut); transition: color .25s;
}
nav .links a:hover, nav .links a.active { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 32px 56px;
  position: relative; overflow: hidden;
}
.hero .bg {
  position: absolute; inset: 0; z-index: -1;
  background: #0a0a0a center/cover no-repeat;
  /* swap in: background-image: url('../img/hero.jpg'); */
  animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.1) 55%);
}
.hero video.herovid {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero .veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.15) 50%, rgba(0,0,0,.35));
}
.coverline {
  position: absolute; top: 74px; font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
}
.coverline.l { left: 32px; } .coverline.r { right: 32px; text-align: right; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 11vw, 150px);
  font-weight: 400; letter-spacing: -.02em; line-height: .92;
}
.hero h1 em { font-style: italic; font-weight: 300; }
.hero .cta {
  display: inline-block; margin-top: 30px; font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; border: 1px solid rgba(255,255,255,.35);
  padding: 12px 26px; border-radius: 99px; transition: all .3s; width: fit-content;
}
.hero .cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero .tag { margin-top: 18px; color: var(--mut); font-size: 15px; letter-spacing: .02em; }
.hero .scroll-cue {
  position: absolute; right: 32px; bottom: 56px; color: var(--dim);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  writing-mode: vertical-rl; animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translateY(0); opacity:.5 } 50% { transform: translateY(8px); opacity:1 } }

/* ---------- shared layout ---------- */
.page { padding: 140px 32px 80px; max-width: 1200px; margin: 0 auto; }
.section { padding: 90px 32px; max-width: 1200px; margin: 0 auto; }
h2.sec {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 42px;
}

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- work index ---------- */
.filters { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filters button {
  background: none; border: 1px solid var(--line); color: var(--mut);
  padding: 7px 16px; border-radius: 99px; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; transition: all .25s; font-family: inherit;
}
.filters button:hover { border-color: var(--mut); color: var(--ink); }
.filters button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.work-row {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: opacity .3s;
}
.work-row .yr { color: var(--dim); font-size: 13px; }
.work-row .ttl { font-size: clamp(20px, 3vw, 30px); font-weight: 600; letter-spacing: -.01em; transition: color .25s; }
.work-row:hover .ttl { color: var(--mut); }
.work-row .meta { color: var(--dim); font-size: 13px; margin-top: 4px; }
.chips { display: flex; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--chip); color: var(--mut);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px; white-space: nowrap;
}
.work-row.hide { display: none; }

/* ---------- selected works (home) ---------- */
.sel { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.sel a { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #0d0d0d; }
.sel a .ph { position: absolute; inset: 0; background: #101010 center/cover; transition: transform .8s ease, opacity .4s; opacity: .85; }
.sel a:hover .ph { transform: scale(1.045); opacity: 1; }
.sel a .lbl { position: absolute; left: 18px; bottom: 16px; z-index: 1; }
.sel a .lbl b { display: block; font-size: 17px; font-weight: 600; }
.sel a .lbl span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }

/* ---------- project page ---------- */
.proj-head { padding-top: 150px; }
.proj-head .k { display:flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.proj-head h1 { font-size: clamp(34px, 6vw, 72px); font-weight: 700; letter-spacing: -.015em; line-height: 1.02; }
.video-frame { margin: 48px 0; aspect-ratio: 16/9; background: #0c0c0c; border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color: var(--dim); font-size: 12px; letter-spacing:.15em; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.proj-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; margin: 24px 0 64px; }
.proj-cols .making p { font-size: 17px; line-height: 1.7; color: #ddd; }
.facts dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-top: 18px; }
.facts dd { font-size: 14px; color: #ccc; margin-top: 4px; }
.credits { border-top: 1px solid var(--line); padding-top: 42px; margin-bottom: 64px; }
.credits .row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 7px 0; font-size: 14px; }
.credits .row span:first-child { color: var(--dim); }
.stills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stills .ph { aspect-ratio: 16/10; background: #0e0e0e; }

/* ---------- photography wall ---------- */
.wall { columns: 3 300px; column-gap: 14px; }
.wall .ph { break-inside: avoid; margin-bottom: 14px; background: #0e0e0e; width: 100%; }
.wall .ph.r45 { aspect-ratio: 4/5; } .wall .ph.r32 { aspect-ratio: 3/2; } .wall .ph.r11 { aspect-ratio: 1/1; }

/* ---------- info ---------- */
.info-wrap { max-width: 640px; }
.info-wrap p { font-size: 19px; line-height: 1.7; color: #ddd; margin-bottom: 24px; }
.info-wrap .contact { margin-top: 48px; }
.info-wrap .contact a { color: var(--mut); border-bottom: 1px solid var(--line); transition: color .25s; }
.info-wrap .contact a:hover { color: var(--ink); }

/* ---------- footer ---------- */
footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 40px 32px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: 12px; letter-spacing: .06em;
  max-width: 1200px; margin: 60px auto 0;
}
footer .socials a { margin-left: 18px; color: var(--dim); transition: color .25s; }
footer .socials a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .sel { grid-template-columns: 1fr; }
  .proj-cols { grid-template-columns: 1fr; gap: 32px; }
  .work-row { grid-template-columns: 50px 1fr; }
  .work-row .chips { grid-column: 2; margin-top: 8px; }
  .stills { grid-template-columns: 1fr; }
  nav .links a { margin-left: 14px; }
}

/* ---------- marquee ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker .track {
  display: flex; gap: 0; white-space: nowrap; width: max-content;
  animation: tick 28s linear infinite;
}
.ticker:hover .track { animation-play-state: paused; }
.ticker span {
  font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--mut);
  padding: 14px 0; letter-spacing: .04em;
}
.ticker span::after { content: "·"; margin: 0 26px; color: var(--dim); font-style: normal; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* editorial headline treatment elsewhere */
.work-row .ttl, .proj-head h1, .info-wrap p { font-family: var(--serif); font-weight: 400; }
.work-row .num { color: var(--dim); font-size: 12px; letter-spacing: .1em; }
.runfoot { text-align: center; padding: 26px 0 34px; color: var(--dim); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }

/* ---------- cover page ---------- */
body.coverpage { overflow: hidden; }
.cover { position: fixed; inset: 0; display: block; cursor: pointer; }
.cover .cover-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 34px;
}
.cover h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(56px, 12vw, 170px); line-height: .92;
}
.cover h1 em { font-style: italic; font-weight: 300; }
.cover .enter {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.35); padding: 13px 34px; border-radius: 99px;
  transition: all .3s; animation: pulse 3s ease-in-out infinite;
}
.cover:hover .enter { background: #fff; color: #000; border-color: #fff; animation: none; }
@keyframes pulse { 0%,100% { opacity:.65 } 50% { opacity:1 } }
.runfoot-cover {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.35); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
}
.cover .herovid, .cover .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cover .veil { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.25), rgba(0,0,0,.75)); }

/* ---------- work video grid ---------- */
.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
.vcard .thumb {
  aspect-ratio: 16/9; background: #0d0d0d center/cover; overflow: hidden;
  transition: opacity .35s; opacity: .88;
}
.vcard:hover .thumb { opacity: 1; }
.vcard .vmeta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.vcard .vmeta b { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -.01em; }
.vcard .vmeta .sub { color: var(--dim); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 760px) { .vgrid { grid-template-columns: 1fr; } }

/* ---------- team list (project pages) ---------- */
.team { list-style: none; }
.team li { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid #111; }
.team li span { color: var(--dim); }
.myrole { margin-top: 18px; color: var(--mut); font-size: 15px; font-style: italic; font-family: var(--serif); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; padding-top: 20px; }
.headshot { aspect-ratio: 4/5; background: #0e0e0e; overflow: hidden; }
.headshot img { width: 100%; height: 100%; object-fit: cover; }
.about-copy .big { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 38px); font-weight: 400; line-height: 1.25; margin-bottom: 22px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* beyond-the-frame: quieter secondary grid */
.also-sec { margin-top: 90px; }
.vgrid.small { grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.vgrid.small .thumb { aspect-ratio: 3/2; opacity: .78; }
.vgrid.small .vmeta b { font-size: 17px; }
.vgrid.small .vmeta .sub { font-size: 11px; }
@media (max-width: 760px) { .vgrid.small { grid-template-columns: 1fr; } }

.vcard.hide { display: none; }
