/* Claire Glare — portfolio */
:root {
  --bg: #F0F0F0; --fg: #111111; --muted: #5F5F5F; --rule: #CFCFCF;
  --web-bg: #FFFFFF; --logo-filter: none;
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
:root[data-theme="dark"] {
  --bg: #1E1E1E; --fg: #EDEDED; --muted: #A3A3A3; --rule: #3A3A3A;
  --web-bg: #000000; --logo-filter: invert(1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background-color: var(--bg); color: var(--fg);
  font-family: var(--sans); transition: background-color 0.3s, color 0.3s;
}
a { color: inherit; }
a:hover { opacity: 0.7; }
img, video { display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.muted { color: var(--muted); }

.wrap { max-width: 1448px; margin: 0 auto; padding: 0 24px 96px; }

/* Nav */
.site-header { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 22px 0 18px; }
.site-header a { text-decoration: none; }
.brand, .site-nav { font-size: 18px; font-weight: 500; letter-spacing: -0.2px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.site-nav a.current, .link { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.icon-btn { background: none; border: none; padding: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: inherit; cursor: pointer; }
.icon-btn.ig { margin-left: -12px; }

/* Two columns */
.cols { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.home .cols { padding-top: 32px; }
main { flex: 999 1 560px; min-width: 0; }
.side { flex: 1 1 300px; min-width: 0; max-width: 460px; display: flex; flex-direction: column; gap: 36px; }
.cols > .side { align-self: stretch; border-left: 1px solid var(--rule); padding-left: 32px; }
.cols:has(> .side) { column-gap: 32px; }
@media (max-width: 939px) { .cols > .side { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 40px; } }
/* Prev / next project */
.proj-nav { display: flex; justify-content: space-between; gap: 24px; margin: 0 0 12px; font-family: var(--mono); font-size: 14px; }
.proj-nav a { display: flex; align-items: baseline; gap: 1ch; text-decoration: none; color: var(--muted); padding: 6px 0; }
.proj-nav a:hover { color: var(--fg); opacity: 1; }
.proj-nav .arw { flex: none; }
.proj-nav .lbl span { white-space: nowrap; }
.proj-nav .next .lbl { text-align: right; }
.thumb { display: block; text-decoration: none; }
.thumb img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-top: 14px solid #000000; border-bottom: 14px solid #000000; }
.thumb .name { margin: 12px 0 0; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.thumb .tag { margin: 4px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Media viewer */
.stage { position: relative; background-color: #000000; aspect-ratio: 16 / 10; width: 100%; overflow: hidden; touch-action: pan-y; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.slide[hidden] { display: none; }
/* Slides crossfade: site.js toggles .on and [hidden] */
.slide { opacity: 0; pointer-events: none; transition: opacity 0.9s ease-in-out; }
.slide.on { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
.slide img { -webkit-user-drag: none; }

.s-pair { gap: 4%; padding: 7% 6%; }
.single-card { height: 100%; aspect-ratio: 10 / 12.6; flex: none; background-color: #181818; border-radius: 10px; padding: 5%; display: flex; flex-direction: column; justify-content: flex-start; gap: 6%; overflow: hidden; color: #FFFFFF; }
.single-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 28px rgba(0,0,0,0.55); }
.single-card .t { margin: 0; font-size: clamp(14px, 1.4vw, 22px); font-weight: 500; letter-spacing: -0.3px; line-height: 1.2; }
.single-card .a { margin: 3px 0 0; font-size: clamp(11px, 0.95vw, 14px); color: #B3B3B3; }
.s-pair > video { height: 100%; aspect-ratio: 9 / 16; object-fit: cover; flex: none; background-color: #111111; }

.s-trio { gap: 16px; padding: 5% 4%; }
.s-trio img { height: 100%; width: auto; min-width: 0; max-width: calc((100% - 32px) / 3); object-fit: contain; flex: 0 1 auto; }
.s-shot img { width: 100%; height: 100%; object-fit: cover; }
.s-studio { gap: 2.5%; padding: 6% 5%; align-items: flex-end; }
.s-studio img { width: auto; object-fit: contain; flex: none; }
.s-studio .photo { height: 100%; max-width: 40%; }
.s-studio .logo { height: 24%; max-width: 12%; }
.s-contain { padding: 5%; }
.s-contain img { max-width: 100%; max-height: 100%; object-fit: contain; }
.s-contain img.shadow { box-shadow: 0 16px 40px rgba(0,0,0,0.6); }
.s-loop video { height: 100%; max-width: 100%; object-fit: contain; }
.s-square { padding: 6%; }
.s-square img { height: 100%; width: auto; max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 16px 40px rgba(0,0,0,0.6); }

.s-duo { gap: 3%; padding: 6%; }
.s-duo.wide { padding: 6% 5%; }
.s-duo img { height: 100%; width: auto; object-fit: contain; flex: none; }
.s-duo video.tall { height: 100%; aspect-ratio: 9 / 16; object-fit: cover; flex: none; }
.s-web { background-color: var(--web-bg); gap: 2.5%; padding: 4%; }
.s-web img { height: 62%; width: auto; object-fit: contain; flex: none; }
.s-station { gap: 8%; padding: 6% 5%; }
.s-station img { width: auto; object-fit: contain; flex: none; }
.s-station .logo { height: 62%; max-width: 38%; }
.s-station .photo { height: 100%; max-width: 50%; }

.s-grid { display: grid; gap: 10px; padding: 4%; }
.s-grid img { width: 100%; height: 100%; object-fit: cover; }

.s-clips { gap: 3%; padding: 6% 5%; }
.s-clips figure { position: relative; margin: 0; height: 62%; aspect-ratio: 16 / 9; max-width: 68%; flex: none; }
.s-clips figure video { width: 100%; height: 100%; object-fit: cover; }
.s-clips figcaption { position: absolute; top: 100%; left: 0; margin-top: 10px; font-family: var(--mono); font-size: 14px; color: #A3A3A3; }
.s-clips > video { height: 62%; aspect-ratio: 9 / 16; object-fit: cover; flex: none; }

.s-full video { width: 100%; height: 100%; object-fit: cover; }

/* Phone slideshow: one item per slide (.m-show replaces .d-show at phone width) */
.m-show { display: none; }
.m-one { padding: 16px; }
.m-one img, .m-one video { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.m-one.m-web { background-color: var(--web-bg); }
.m-one img.m-logo { max-width: 45%; }
.m-one.m-wide { padding: 0; }
.m-one.m-wide video { width: 100%; max-height: none; transform: scale(1.3); }
.m-two { gap: 8px; padding: 16px; }
.m-two img { height: 100%; width: auto; max-width: calc(50% - 4px); object-fit: contain; flex: none; }
@media (max-width: 640px) { .d-show { display: none; } .m-show { display: block; } }

/* Counter and arrows */
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.stage-bar p { margin: 0; }
.stage-bar .arrows { display: flex; gap: 4px; flex: none; }
.stage-bar button { background: none; border: none; width: 44px; height: 44px; color: var(--muted); font-size: 20px; cursor: pointer; font-family: var(--sans); }
.stage-bar.stacked { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding-top: 8px; }
.stage-bar.stacked .arrows { gap: 4px; margin-left: -10px; }
.stage-bar.stacked button { width: 44px; height: 44px; color: var(--fg); font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.stage-bar.stacked button:hover { opacity: 0.6; }
.stage-bar.stacked p { flex: 1 1 0; min-width: 0; padding-top: 0; }

/* Text */
.title { margin: 28px 0 28px; font-size: clamp(40px, 5.4vw, 72px); font-weight: 500; letter-spacing: -2.5px; line-height: 1; }
.title.roomy { margin-bottom: 32px; }
.title .year { font-family: var(--mono); font-size: 17px; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.bar { margin: 0 0 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 44px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bar.second { margin: 56px 0 28px; }
.bar dl { margin: 0; display: flex; flex-wrap: wrap; gap: 20px 44px; }
.bar dt { font-size: 34px; font-weight: 500; letter-spacing: -1px; line-height: 1.1; }
.bar dd { margin: 4px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.bar .cta { margin-left: auto; }
.bar .station-logo { height: 52px; width: auto; filter: var(--logo-filter); }
.link { font-size: 18px; font-weight: 500; }
.prose { max-width: 880px; font-family: var(--mono); font-size: 16px; line-height: 1.8; }
.prose p { margin: 0 0 22px; }
.prose > :last-child { margin-bottom: 0; }
.prose blockquote { margin: 0 0 22px; padding-left: 20px; border-left: 2px solid var(--muted); font-style: italic; }
.prose blockquote span { font-style: normal; color: var(--muted); }
.after-prose { display: inline-block; margin-top: 30px; }

.sponsors { margin-top: 56px; }
.sponsors h2 { margin: 0 0 16px; font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--muted); }
.sponsors ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.sponsors li { height: 100px; display: flex; align-items: center; justify-content: center; padding: 12px 0; }
.sponsors img { max-width: 100%; max-height: 100%; object-fit: contain; filter: var(--logo-filter); }

.posters { margin-top: 56px; }
.posters h2 { margin: 0 0 16px; font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--muted); }
.poster-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.poster-grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 640px) { .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.tt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.tt-grid video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background-color: #111111; }

/* Home */
.headline { margin: 0 0 56px; font-size: clamp(44px, 6vw, 92px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; }
.portrait { margin: 0; max-width: 720px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.portrait figcaption { margin-top: 10px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin-bottom: 88px; }
.about { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.about .portrait { flex: 1 1 420px; }
.about-text { flex: 1 1 380px; min-width: 0; }

@media (min-width: 900px) { .headline span { display: block; } }

/* Phones */
@media (max-width: 640px) {
  .wrap { padding: 0 16px 72px; }
  .site-header { padding: 14px 0 12px; }
  .site-nav { gap: 14px; }
  .cols { gap: 56px; }
  .side { max-width: none; }
  .stage { aspect-ratio: 4 / 5; }
  .title { letter-spacing: -1.5px; }
  .headline { margin-bottom: 36px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; margin-bottom: 56px; }
  .work-grid .name { font-size: 13px; }
  .work-grid .tag { font-size: 10px; }
  .work-grid .thumb img { border-width: 9px 0; }
  .bar .cta { margin-left: 0; }

  /* cover + teaser: compact "now playing" row above the video */
  .s-pair { flex-direction: column; gap: 12px; padding: 16px; }
  .single-card { height: auto; width: 100%; aspect-ratio: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px; }
  .single-card img { width: 56px; flex: none; box-shadow: none; }
  .s-pair > video { height: auto; flex: 1 1 0; min-height: 0; }

  .s-square img { height: auto; width: 100%; }
  .s-full video { object-fit: contain; }
  .sponsors ul { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .sponsors li { height: 84px; }
  .s-duo, .s-duo.wide { padding: 16px; }
  .s-duo img { max-width: 48%; }
  .s-duo video.tall { height: auto; width: 36%; }
  .s-duo:has(video.tall) img { max-width: 58% !important; }
  .s-web { flex-direction: column; gap: 12px; padding: 16px; }
  .s-web img { height: auto; width: auto; max-width: 100% !important; max-height: 48%; }
  .s-clips { flex-direction: column; gap: 40px; padding: 16px; }
  .s-clips figure { height: auto; width: 100%; max-width: none; }
  .s-clips > video { height: auto; flex: 1 1 0; min-height: 0; }
  .s-trio { gap: 8px; padding: 16px; }
  .s-trio img { max-width: calc((100% - 16px) / 3); }
  .s-studio { padding: 16px; gap: 8px; }
  .s-studio .photo { height: auto; max-height: 100%; max-width: 42%; }
  .s-studio .logo { height: auto; max-width: 12%; }
}
