/* 09 Frame by Frame: white and charcoal contact-sheet portfolio with grease-pencil marks and media filters. */

.v09 {
  --bg: #ffffff;
  --fg: #1e1e1e;
  --muted: #646464;
  --surface: #f6f6f4;
  --surface-2: #ececea;
  --line: rgb(30 30 30 / 0.14);
  --accent: #c9341d;
  --accent-ink: #ffffff;
  --accent-2: #1e1e1e;
  --focus: #c9341d;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Geist", system-ui, sans-serif;
  --radius: 0px;
  --radius-sm: 0px;
}
.v09 .design-bar { background: #1e1e1e; }
.v09 .site-nav a { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.v09 .btn { border-radius: 0; font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; }

/* Hero: the contact sheet */
.hero--sheet { background: #1e1e1e; color: #f2f2ef; --fg: #f2f2ef; --muted: #a9a9a4; --line: rgb(242 242 239 / 0.2); --bg: #1e1e1e; }
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 1400px;
  margin: 0 auto 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e7a28f;
}
.sheet-head p { margin: 0; }
.sheet-grid { display: grid; gap: 10px; max-width: 1400px; margin: 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet-key { position: relative; grid-column: 1 / -1; padding: 8px; background: #fff; }
.sheet-key img { aspect-ratio: 4 / 3; max-height: 40vh; object-fit: cover; object-position: 50% 15%; }
.sheet-key figcaption { display: flex; gap: 0.5rem; padding-top: 6px; color: #1e1e1e; font-family: var(--font-mono); font-size: 0.72rem; }
.sheet-key::after {
  content: "";
  position: absolute;
  left: 18%;
  top: 4%;
  width: 64%;
  height: 52%;
  border: 3px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-5deg);
  pointer-events: none;
}
.motion-ready .sheet-key::after { animation: wipe 900ms 400ms var(--ease-in-out) both; }
.frame-no { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }
.sheet-copy { grid-column: 1 / -1; padding: 1rem 0; }
.sheet-frames { display: contents; }
.sheet-frame a { position: relative; display: block; padding: 5px 5px 22px; background: #fff; text-decoration: none; }
.sheet-frame img { aspect-ratio: 1; object-fit: cover; filter: grayscale(0.2); transition: filter 300ms; }
.sheet-frame a:hover img { filter: none; }
.sheet-frame .frame-no { position: absolute; left: 6px; bottom: 3px; }
.sheet-frame:nth-child(n + 4) { display: none; }
.v09 .hero h1 { font-weight: 400; font-size: clamp(3rem, 1.4rem + 6vw, 7.5rem); letter-spacing: -0.03em; line-height: 0.88; }
.v09 .n-middle { font-style: italic; color: #e7a28f; }
.v09 .kicker { color: #e7a28f; }
.v09 .hero .btn--primary { background: #fff; color: #1e1e1e; border-color: #fff; }
.v09 .hero .btn--ghost { border-color: #fff; }
.v09 .hero .btn--ghost:hover { background: #fff; color: #1e1e1e; }
@media (min-width: 921px) {
  .sheet-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sheet-key { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .sheet-key img { aspect-ratio: 3 / 4; max-height: 70vh; }
  .sheet-copy { grid-column: 3 / -1; grid-row: 1; align-self: end; padding: 0 0 0 1.5rem; }
  .sheet-frame:nth-child(n + 4) { display: block; }
  .sheet-frame:nth-child(5) { display: none; }
}

/* Sections: index-card rules and frame counters */
.v09 .sec { border-top: 1px solid var(--fg); }
.v09 .sec-kicker { color: var(--accent); }
.v09 .sec-head h2 { font-weight: 400; font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); letter-spacing: -0.02em; }
.v09 .clip-frame { border: 6px solid #1e1e1e; border-bottom-width: 18px; }
.v09 .clip-cap { border-bottom: 1px solid var(--line); }

/* The gallery becomes a film contact sheet */
.v09 .sec--gallery { background: #1e1e1e; color: #f2f2ef; --fg: #f2f2ef; --muted: #b0b0aa; --line: rgb(242 242 239 / 0.2); --surface: #2a2a2a; --bg: #1e1e1e; }
.v09 .gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: 8px;
  padding: 26px 10px;
  background:
    radial-gradient(circle, #1e1e1e 3px, transparent 3.5px) 0 6px / 20px 12px repeat-x,
    radial-gradient(circle, #1e1e1e 3px, transparent 3.5px) 0 calc(100% - 6px) / 20px 12px repeat-x,
    #0d0d0d;
}
.v09 .g-link { padding: 4px 4px 0; background: #fff; color: #1e1e1e; }
.v09 .g-link img { aspect-ratio: 4 / 3; }
.v09 .g-cap { padding: 0.35rem 0.2rem 0.5rem; color: #3b3b3b; font-size: 0.72rem; font-family: var(--font-mono); }
.v09 .g-no { color: var(--accent); }
.v09 .g-link:hover { outline: 3px solid var(--accent); outline-offset: 2px; }
.v09 .chip { border-radius: 0; background: transparent; color: var(--fg); font-family: var(--font-mono); text-transform: uppercase; font-size: 0.75rem; }
.v09 .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.v09 .trait { border-radius: 0; border-color: var(--fg); }
.v09 .stat-value { font-weight: 400; }
.v09 .bar--l .bar-fill { background: #1e1e1e; }
.v09 .bar--r .bar-fill { background: var(--accent); }
.v09 .rep-card { border-radius: 0; }
.v09 .site-footer { background: #1e1e1e; }

@media (max-width: 600px) {
  .sheet-head p:last-child { display: none; }
  .sheet-key img { max-height: 22vh; }
  .sheet-key::after { left: 22%; width: 56%; height: 48%; }
  .v09 .hero h1 { font-size: clamp(2.3rem, 1rem + 7vw, 3.2rem); }
  .sheet-copy { padding: 0.5rem 0; }
}
