/* Charlie Murillo — v2. Structure + motion modeled on openresidency.com;
   type and color strictly from Charlie's brand guide (invoice/brand_guide_template.html):
   Space Grotesk 500 (display) + Inter 400/500/600 (body/labels), ink #181a1d, paper #f5f5f7, clay #8a5a44. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500&display=swap');

@property --glow-r { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --tc { syntax: '<color>'; inherits: true; initial-value: #f5f5f7; }
@property --hl { syntax: '<color>'; inherits: true; initial-value: #bb8a6f; }

:root {
  --ink: #181a1d;
  --bg: #111214;            /* ink, one step deeper for the full-bleed dark layout */
  --bg-2: #1c1e21;
  --paper: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.52);
  --faint: rgba(245, 245, 247, 0.12);
  --line: rgba(245, 245, 247, 0.16);
  --clay: #8a5a44;          /* brand accent — fills */
  --clay-hi: #bb8a6f;       /* clay lifted for text on dark (AA contrast) */
  --snap: cubic-bezier(0.2, 0.9, 0.25, 1);
  --gutter: 48px;
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
/* Brand "eyebrow" style — Inter 600, tracked caps (replaces OR's mono font). */
.label { font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ---------- Fixed background (hero photo, dimmed + halftone) ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1) contrast(1.05); opacity: 0.32; }
.bg::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(17,18,20,0.2) 0%, rgba(17,18,20,0.55) 45%, rgba(17,18,20,0.96) 88%); }
.bg::after { content: ''; position: absolute; inset: 0; z-index: 2; background-image: radial-gradient(rgba(0,0,0,0.5) 1px, transparent 1px); background-size: 3px 3px; opacity: 0.45; }

/* Fog: fades in over the hero photo as About/Contact scroll into view (opacity driven by --fog, 0→1). */
.fog { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: rgba(12,13,15,0.72); backdrop-filter: blur(16px) saturate(0.8); -webkit-backdrop-filter: blur(16px) saturate(0.8); opacity: var(--fog, 0); will-change: opacity; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 var(--gutter); }
.top-name { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; justify-self: start; }
.top-logo { justify-self: center; display: block; }
.top-logo img { height: 34px; width: auto; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.top-tag { white-space: nowrap; }
.topbar::before { content: ''; position: absolute; inset: 0 0 -24px 0; background: linear-gradient(180deg, rgba(17,18,20,0.88), transparent); z-index: -1; pointer-events: none; }
.wordmark { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: 0.06em; white-space: nowrap; }
.wordmark .mark { height: 28px; width: auto; flex-shrink: 0; }
.search-btn { width: 32px; height: 32px; display: grid; place-items: center; }
.search-btn svg { width: 15px; height: 15px; }

/* ---------- Menu ("+ MENU" with clay bar) ---------- */
.menu { position: fixed; top: 84px; left: calc(var(--gutter) - 20px); z-index: 40; transition: opacity 0.2s ease; }
.menu-toggle { display: flex; align-items: center; gap: 10px; padding: 8px 0 8px 12px; border-left: 3px solid var(--clay); }
.menu-toggle .plus { display: inline-block; transition: transform 0.2s var(--snap); font-size: 15px; line-height: 1; font-weight: 500; }
.menu.open .menu-toggle .plus { transform: rotate(45deg); }
.menu-list { list-style: none; margin: 0; padding: 10px 0 0 15px; display: flex; flex-direction: column; gap: 14px; }
.menu-list a { display: block; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity 0.18s ease, transform 0.22s var(--snap), color 0.12s ease; pointer-events: none; }
.menu.open .menu-list a { opacity: 1; transform: none; pointer-events: auto; }
.menu-list a:hover, .menu-list a[aria-current] { color: var(--paper); }
body.sub.scrolled .menu:not(.open) { opacity: 0; pointer-events: none; }

/* ---------- Search overlay ---------- */
.search { position: fixed; inset: 0; z-index: 60; background: rgba(17,18,20,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: none; padding: 120px var(--gutter) 40px; }
.search.open { display: block; }
.search input { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--paper); font-family: var(--display); font-weight: 500; font-size: clamp(28px, 5vw, 56px); padding: 8px 0 14px; outline: none; }
.search-results { margin-top: 24px; display: flex; flex-direction: column; max-height: 60vh; overflow: auto; }
.search-results a { display: flex; gap: 16px; align-items: baseline; padding: 10px 0; font-family: var(--display); font-weight: 500; font-size: 22px; border-bottom: 1px solid var(--faint); }
.search-results a:hover { color: var(--clay-hi); }
.search-close { position: absolute; top: 22px; right: var(--gutter); }

/* ---------- Home: logo strip (continuous marquee over the hero) ---------- */
.marquee { position: relative; margin: 0 calc(-1 * var(--gutter)) 44px; padding: 26px 0; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(17,18,20,0.35), rgba(17,18,20,0.15) 50%, rgba(17,18,20,0.35));
  backdrop-filter: blur(6px) saturate(0.9); -webkit-backdrop-filter: blur(6px) saturate(0.9);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track img { display: block; height: var(--h); width: auto; opacity: 0.88; flex-shrink: 0; margin-right: 84px; } /* margin, not gap, so the -50% loop lands exactly */
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: 160s; } }

/* ---------- Home: section tabs ---------- */
.home { position: relative; z-index: 2; padding: 0 var(--gutter) 22vh; }
/* Info + Contact sit on the home page, right after the work sections. */
.home-block { position: relative; z-index: 2; padding: 96px var(--gutter); border-top: 1px solid var(--faint); scroll-margin-top: 40px; }

/* Trusted by — logo grid of glass tiles; tilt toward the cursor, clay spotlight follows it. */
.trusted { max-width: 1180px; margin: 0 auto; }
.trusted-head { margin-bottom: 36px; }
.trusted-head h2 { margin-top: 14px !important; }
.trusted-head h2 em { font-style: normal; color: var(--clay-hi); }
.trusted-head p { margin: 0 0 6px; }
.trusted-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; perspective: 900px; }
.brand { position: relative; height: 164px; border-radius: 18px; border: 1px solid var(--line); background: rgba(245,245,247,0.035); display: grid; place-items: center; overflow: hidden; color: var(--paper); cursor: pointer;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transform-style: preserve-3d;
  transition: transform 0.25s var(--snap), border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease, opacity 0.5s ease;
  opacity: 0; }
.brand.in { opacity: 1; }
.brand::before { content: ''; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(187,138,111,0.24), transparent 62%); opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.brand:hover, .brand:focus-visible { --ty: -5px; border-color: rgba(187,138,111,0.6); background: rgba(245,245,247,0.06); box-shadow: 0 22px 44px rgba(0,0,0,0.45); outline: none; }
.brand:hover::before, .brand:focus-visible::before { opacity: 1; }
.brand:active { --ty: -1px; transition-duration: 0.08s; }
.brand img.logo { max-height: 58px; max-width: 62%; width: auto; height: auto; object-fit: contain; transition: transform 0.35s var(--snap); }
.brand:hover img.logo { transform: scale(1.07); }
.brand .word { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; transition: transform 0.35s var(--snap), color 0.2s; }
.brand:hover .word { transform: scale(1.05); }
.brand .creator { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 10px; transition: transform 0.35s var(--snap); }
.brand .creator img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; margin-bottom: 8px; box-shadow: 0 0 0 1px rgba(245,245,247,0.12); }
.brand .creator b { display: block; font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.15; }
.brand .creator .label { font-size: 10px; }
.brand:hover .creator { transform: scale(1.04); }
.brand .tag { position: absolute; left: 16px; bottom: 12px; color: var(--clay-hi); opacity: 0; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.3s var(--snap); }
.brand:hover .tag, .brand:focus-visible .tag { opacity: 1; transform: none; }

/* Info — same placement as the old site: copy left, rounded B&W portrait right on a clay offset. */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; max-width: 1180px; margin: 0 auto; }
.about-copy { max-width: 440px; }
.home-block .about-copy h2 { margin: 14px 0 26px; }
.about-copy p { font-size: 16px; line-height: 1.75; color: rgba(245,245,247,0.82); margin: 0 0 34px; }
.about-cta { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); }
.about-cta { border-bottom: 1px solid var(--clay-hi); padding-bottom: 4px; transition: color 0.15s, gap 0.2s var(--snap); }
.about-cta span { color: var(--clay-hi); }
.about-cta:hover { color: var(--clay-hi); gap: 16px; }
.about-photo { position: relative; justify-self: end; width: min(100%, 500px); aspect-ratio: 4 / 5; }
.about-photo { display: block; border-radius: 44px; transition: transform 0.35s var(--snap), box-shadow 0.35s ease; box-shadow: 0 0 0 1px rgba(245,245,247,0.06); }
.about-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; border-radius: 44px; filter: grayscale(1); transition: transform 0.5s var(--snap); }
.about-photo .about-photo-cue { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 8px); padding: 11px 18px; border-radius: 999px; background: rgba(17,18,20,0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--paper); opacity: 0; transition: opacity 0.25s ease, transform 0.35s var(--snap); white-space: nowrap; }
.about-photo:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(187,138,111,0.6); }
.about-photo:hover img { transform: scale(1.04); }
.about-photo { overflow: hidden; }
.about-photo:hover .about-photo-cue { opacity: 1; transform: translate(-50%, 0); }
.kind-words { max-width: 1180px; margin: 110px auto 0; }
.kind-words > .label { display: block; margin-bottom: 30px; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.testimonial-grid .quote { margin: 0; }
.home-block .info-grid { margin-left: 68px; }
.home-block h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1; margin: 0; }
.home-block .info-block:last-child { margin-bottom: 0; padding-bottom: 0; }
.home-top { height: 40vh; min-height: 260px; }
.tabs-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px 68px; }
.chip { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); color: var(--muted); transition: color 0.12s ease, border-color 0.2s ease, background 0.12s ease, transform 0.25s var(--snap), box-shadow 0.25s ease; }
.chip::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(187,138,111,0.38), transparent 70%); opacity: 0; transition: opacity 0.25s ease; pointer-events: none; z-index: -1; }
.chip:hover::before, .chip:focus-visible::before { opacity: 1; }
.chip:hover { transform: translateY(-2px); border-color: rgba(187,138,111,0.6); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.chip .count { font-size: 10px; opacity: 0.6; }
.chip:hover { color: var(--paper); border-color: rgba(245,245,247,0.4); }
.chip[aria-pressed="true"] { color: var(--paper); border-color: var(--clay-hi); background: rgba(138,90,68,0.28); }

/* ---------- Home: the list ---------- */
.work-list { display: flex; flex-direction: column; }
.row { opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.4s var(--snap); }
.row.in { opacity: 1; transform: none; }
.row-link { display: block; padding: 3px 0; }
.row-head { display: flex; align-items: center; gap: 16px; }
.row-num { width: 52px; flex-shrink: 0; text-align: right; font-weight: 600; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; transition: color 0.1s linear; }
.row-title { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 6.5vw, 5.5rem); line-height: 0.98; letter-spacing: -0.035em;
  --tc: var(--paper); --hl: var(--clay-hi);
  color: var(--tc);
  background-image: radial-gradient(var(--glow-r) circle at var(--mx, 50%) var(--my, 50%), var(--hl) 0%, var(--tc) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transition: --glow-r 0.35s var(--snap), --tc 0.25s ease, --hl 0.25s ease; padding-bottom: 0.06em; }
.row-head { position: relative; }
.row-head:hover .row-title { --glow-r: 260px; }
.row.active .row-title { --tc: var(--clay-hi); --hl: #f1d2bd; }
.row.pending .row-title { --tc: #d9c3b6; }
.row-title { flex-shrink: 0; }
.row-meta { position: relative; flex: 1; min-width: 0; align-self: center; margin-top: 0.6em; white-space: nowrap; }
.row-meta .idle, .row-meta .typed { display: inline-block; transition: opacity 0.12s linear, transform 0.16s var(--snap); }
.row-meta .typed { position: absolute; left: 0; right: 0; top: 50%; margin-top: -0.75em; white-space: normal; line-height: 1.5; max-width: 42ch; opacity: 0; transform: translateX(-4px); color: var(--paper); }
.row-meta .typed span { opacity: 0; transition: opacity 0.06s linear; }
/* Dwell cue: while the cursor rests on a title, it warms toward clay before opening. */
.row.pending .row-num { color: #d9c3b6; transition: color 0.5s linear; }
.row-detail { height: 0; overflow: hidden; transition: height 0.5s var(--snap); margin-left: 68px; }
.row-detail-inner { padding: 12px 0 24px; max-width: min(600px, 64vh); }
.row-blurb { display: none; }
.row-thumb { position: relative; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 0.6s var(--snap); }
.row-thumb::after { content: ''; position: absolute; inset: auto 0 0 0; height: 56px; background: linear-gradient(transparent, rgba(17,18,20,0.65)); }
.row-thumb .open-cue { position: absolute; right: 12px; bottom: 11px; z-index: 2; }

.row.active .row-num { color: var(--clay-hi); }
.row.active .row-meta .idle { opacity: 0; transform: translateX(4px); }
.row.active .row-meta .typed { opacity: 1; transform: none; }
.row.active .row-meta .typed span { opacity: 1; }
.row.active .row-thumb img { transform: scale(1.012); } /* never exactly 1: keeps sub-pixel edges from peeking */
.row-link:hover .row-thumb img { transform: scale(1.03); }

/* Short Form section: 9:16 grid in place of the list */
.reel-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-left: 68px; }
.reel-grid a { position: relative; aspect-ratio: 9/16; overflow: hidden; border-radius: 4px; background: var(--bg-2); opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.4s var(--snap); }
.reel-grid a.in { opacity: 1; transform: none; }
.reel-grid img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 0.45s var(--snap), filter 0.35s ease; filter: grayscale(0.3) brightness(0.8) blur(3px); }
.reel-grid a:hover img { transform: scale(1.1); filter: none; }
/* Client-logo watermark: bold at rest; on hover it fades back and grows so the reel shows through. */
.reel-grid img.mark { position: absolute; left: 50%; top: 50%; width: 62%; height: auto; max-height: 38%; object-fit: contain; transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 4px 18px rgba(0,0,0,0.55)); opacity: 1; transition: opacity 0.3s ease, transform 0.45s var(--snap); pointer-events: none; }
.reel-grid a:hover img.mark { opacity: 0; transform: translate(-50%, -50%) scale(1.12); }

.list-end { margin: 44px 0 0 68px; }

/* ---------- Short Form player (lightbox) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10,11,12,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; gap: 28px; animation: lb-in 0.18s ease; }
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
.lb-stage { position: relative; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lb-stage.yt { height: min(86vh, 820px); aspect-ratio: 9 / 16; }
.lb-stage.ig { width: min(420px, 92vw); height: min(88vh, 760px); background: #fff; }
.lb-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-close { position: absolute; top: 22px; right: var(--gutter); }
.lb-out { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--muted); }
.lb-out:hover { color: var(--paper); }
.lb-nav { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; transition: border-color 0.12s, background 0.12s; }
.lb-nav:hover { border-color: var(--paper); background: rgba(245,245,247,0.08); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--faint); padding: 40px var(--gutter) 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.25fr 1.35fr; gap: 40px; align-items: start; }
.footer h4 { font-family: var(--display); font-weight: 500; font-size: 15px; margin: 0 0 16px; }
.footer .wordmark { margin-bottom: 12px; }
.footer ul.nav-cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 28px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer ul a { color: var(--muted); transition: color 0.12s; }
.footer ul a:hover { color: var(--paper); }
.footer-cta { display: flex; border-bottom: 1px solid var(--line); margin-top: 10px; }
.footer-cta a { margin-left: auto; padding: 10px 0; }
.footer-cta span { padding: 10px 0; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--faint); font-size: 12px; color: var(--muted); }

/* ---------- Detail page ---------- */
.detail { position: relative; z-index: 2; }
.player { position: relative; margin-top: 68px; height: min(78vh, 56.25vw); min-height: 240px; background: #000; overflow: hidden; }
body.sub .topbar { background: var(--bg); }
body.sub .topbar::before { display: none; }
body.playing .menu { opacity: 0; pointer-events: none; }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: 0.78; transform: scale(1.01); }
.player::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(245,245,247,0.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; transition: transform 0.18s var(--snap), background 0.12s ease; }
.play:hover { transform: scale(1.08); background: var(--clay); }
.play svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.player.playing img, .player.playing .play, .player.playing::after { display: none; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; padding: 56px var(--gutter) 40px; max-width: 1360px; }
.eyebrow { color: var(--muted); margin-bottom: 18px; display: block; }
.detail h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 20px; }
.detail .meta-line { color: var(--muted); margin-bottom: 36px; }
.detail .body p { font-size: 17px; line-height: 1.75; margin: 0 0 22px; color: rgba(245,245,247,0.88); }
.detail .body p + p { font-size: 15px; color: rgba(245,245,247,0.7); }
.btn-row { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 22px; }
.btn-row > .label { display: block; margin-bottom: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; padding: 14px 20px; border: 1px solid rgba(245,245,247,0.28); transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease; }
.btn:hover { border-color: var(--paper); }
.btn.cat:hover, .btn.cat.current { border-color: var(--clay-hi); color: var(--clay-hi); }
.btn.solid { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn.solid:hover { background: #6f4836; border-color: #6f4836; color: #fff; }

.side h3 { margin: 6px 0 16px; }
.side-list { display: flex; flex-direction: column; }
.side-list a { display: block; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--faint); font-size: 14px; transition: color 0.12s ease; }
.side-list a:hover { color: var(--clay-hi); }

.gallery { padding: 40px var(--gutter) 100px; }
.gallery h3 { margin: 0 0 22px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.012); transition: transform 0.35s var(--snap), opacity 0.15s; opacity: 0.85; }
.gallery-grid a:hover img { transform: scale(1.04); opacity: 1; }
.gallery-grid .label { position: absolute; left: 10px; bottom: 8px; z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,0.8); }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--faint); }
.pager a { padding: 36px var(--gutter); display: flex; flex-direction: column; gap: 10px; transition: background 0.12s ease; }
.pager a:hover { background: var(--bg-2); }
.pager a + a { text-align: right; border-left: 1px solid var(--faint); }
.pager .t { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.pager a:hover .t { color: var(--clay-hi); }

/* ---------- Info (about + testimonials + contact) ---------- */
.page { position: relative; z-index: 2; padding: 150px var(--gutter) 100px; }
.info-grid { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 48px; max-width: 1200px; }
.info-grid h1 { font-family: var(--display); font-weight: 500; font-size: 28px; margin: 0; letter-spacing: -0.02em; }
.info-block { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--faint); }
.info-block:last-child { border-bottom: 0; }
.info-block .lead { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; letter-spacing: -0.015em; margin: 0; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 14px 20px; margin-top: 26px; }
.kv .label { color: var(--muted); padding-top: 3px; }
.quote { margin: 0 0 34px; }
.quote blockquote { margin: 0 0 18px; font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.5; letter-spacing: -0.01em; }
.who { display: flex; align-items: center; gap: 14px; }
.who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.who .n { font-weight: 600; font-size: 14px; }
.who .label { font-size: 10px; margin-top: 2px; }

.tabs { display: flex; gap: 22px; margin-bottom: 28px; }
.tabs button { padding-bottom: 8px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--paper); border-color: var(--clay-hi); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bracket { display: flex; align-items: flex-start; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; font-family: var(--body); font-weight: 500; font-size: 15px; }
.bracket::before, .bracket::after { color: var(--muted); padding-top: 9px; }
.bracket::before { content: '['; }
.bracket::after { content: ']'; }
.bracket input, .bracket textarea { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--paper); font: inherit; letter-spacing: 0.1em; text-transform: uppercase; padding: 9px 2px 11px; resize: vertical; }
.bracket:focus-within { border-color: var(--clay-hi); }
.bracket input::placeholder, .bracket textarea::placeholder { color: var(--muted); }
.send { margin-top: 8px; padding: 14px 22px; background: var(--paper); color: var(--ink); transition: background 0.12s, color 0.12s; }
.send:hover { background: var(--clay); color: #fff; }
.contact-direct { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.contact-direct a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .trusted-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .brand .creator b { font-size: 14px; }
  .detail-grid, .info-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reel-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar { padding-left: 56px; }
  .top-name, .top-tag { display: none; }
  .top-logo img { height: 30px; }
  .menu { top: 17px; left: 14px; }
  .menu-toggle { border-left: 0; padding: 6px; font-size: 20px; }
  .menu-word { display: none; }
  .menu-list { background: rgba(17,18,20,0.96); padding: 16px 20px; margin-top: 12px; border-left: 3px solid var(--clay); gap: 18px; }
  .menu:not(.open) .menu-list { display: none; }
  body.sub.scrolled .menu:not(.open) { opacity: 1; pointer-events: auto; }
  .bg img { object-position: 64% top; } /* keep the face in frame on tall/narrow screens */
  .home-top { height: 38vh; }
  .marquee { margin-bottom: 30px; padding: 18px 0; }
  .marquee-track { animation-duration: 36s; }
  .marquee-track img { height: calc(var(--h) * 0.72); margin-right: 44px; }
  .tabs-row, .reel-grid, .list-end, .row-detail, .home-block .info-grid { margin-left: 0; }
  .about, .testimonial-grid { grid-template-columns: 1fr; gap: 44px; }
  .trusted-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand { height: 150px; border-radius: 14px; }
  .brand .creator img { width: 54px; height: 54px; }
  .brand .creator b { font-size: 15px; }
  .about-photo { justify-self: start; width: calc(100% - 18px); }
  .kind-words { margin-top: 72px; }
  .home-block { padding: 64px var(--gutter); }
  .row-link { padding: 7px 0; }
  .row-head { gap: 10px; }
  .row-num { width: 20px; font-size: 10px; text-align: left; }
  .row-title { font-size: clamp(2rem, 9vw, 3rem); }
  .row-meta { display: none; }
  .row-blurb { display: block; color: var(--muted); margin: 0 0 12px; font-size: 13px; line-height: 1.6; }
  .reel-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer ul.nav-cols { grid-template-columns: repeat(3, auto); }
  .lb-nav { display: none; }
  .lb-stage.ig { width: 94vw; }
  .pager a { padding: 26px var(--gutter); }
  .player { height: 56.25vw; min-height: 0; }
  .detail-grid { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
