/* Byron Werner — shared site styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: #1c1b19; color: #ece9e3; font-family: 'Inter', -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }

header { padding: 56px 56px 34px; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid rgba(255,255,255,0.09); }
.logo-block { display: flex; align-items: center; gap: 16px; }
a.wrap { display:flex; align-items:center; gap:16px; text-decoration:none; color:inherit; }
.logo-text { display: flex; flex-direction: column; gap: 8px; }
.logo { font-family: 'Fraunces', serif; font-weight: 600; font-size: 32px; letter-spacing: 0.06em; text-transform: uppercase; color: #f5f2ec; }
.role-line { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #948f86; }
nav { display: flex; gap: 28px; flex-wrap: wrap; }
nav a { color: #b7b2a9; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
nav a:hover, nav a.active { color: #f5f2ec; border-color: #c99a6b; }

main { padding: 44px 56px 90px; }
.eyebrow { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #7d786f; margin-bottom: 22px; }

/* Category header row: eyebrow label + inline search toggle */
.category-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.category-head .eyebrow { margin-bottom: 0; }

#search-mount { display: flex; align-items: center; }
.search-toggle { display: flex; align-items: center; gap: 6px; background: transparent; border: none; color: #7d786f; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; cursor: pointer; padding: 4px 2px; transition: color 0.2s ease; }
.search-toggle svg { width: 13px; height: 13px; }
.search-toggle:hover { color: #f5f2ec; }
#search-mount.open .search-toggle { display: none; }

.search-inline { display: none; align-items: center; gap: 8px; }
#search-mount.open .search-inline { display: flex; }
.search-inline input { background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.16); color: #ece9e3; font-size: 12px; padding: 4px 0; outline: none; width: 190px; font-family: 'Inter', sans-serif; }
.search-inline input::placeholder { color: #7d786f; }
.search-inline input:focus { border-color: #c99a6b; }
.search-close { background: transparent; border: none; color: #948f86; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; font-family: 'Inter', sans-serif; }
.search-close:hover { color: #f5f2ec; }
@media (max-width: 600px) { .search-inline input { width: 120px; } }

.empty-state { font-size: 13px; color: #7d786f; padding: 30px 0; }

/* Global (site-wide) search — small nav icon + overlay */
#global-search-toggle { display: inline-flex; align-items: center; color: #b7b2a9; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: color 0.2s ease; }
#global-search-toggle svg { width: 13px; height: 13px; }
#global-search-toggle:hover { color: #f5f2ec; }

#global-search-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 12vh 20px 0; background: rgba(10,9,8,0.72); backdrop-filter: blur(3px); }
#global-search-overlay.open { display: flex; }
body.gs-lock { overflow: hidden; }

.gs-panel { width: 100%; max-width: 560px; background: #232220; border: 1px solid rgba(255,255,255,0.09); border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); overflow: hidden; }
.gs-input-row { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.gs-input-row svg { width: 15px; height: 15px; color: #7d786f; flex-shrink: 0; }
.gs-input-row input { flex: 1; background: transparent; border: none; outline: none; color: #ece9e3; font-size: 14px; font-family: 'Inter', sans-serif; }
.gs-input-row input::placeholder { color: #7d786f; }
#gs-close { background: transparent; border: none; color: #7d786f; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; font-family: 'Inter', sans-serif; }
#gs-close:hover { color: #f5f2ec; }

.gs-results { max-height: 58vh; overflow-y: auto; }
.gs-results.has-results { padding: 6px 0; }
.gs-empty { padding: 22px 18px; font-size: 13px; color: #7d786f; }
.gs-row { display: flex; align-items: center; gap: 12px; padding: 8px 18px; text-decoration: none; color: inherit; transition: background 0.15s ease; }
.gs-row:hover { background: rgba(255,255,255,0.05); }
.gs-thumb { width: 64px; height: 36px; flex-shrink: 0; border-radius: 3px; background-size: cover; background-position: center; background-color: #2a2926; }
.gs-meta { min-width: 0; }
.gs-title { font-size: 13px; color: #f5f2ec; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-sub { font-size: 11px; color: #948f86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { #global-search-overlay { padding: 8vh 14px 0; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* Simple video-collection pages (Video Archive, Performance Videos) */
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
.archive-card .media { aspect-ratio: 16/9; width: 100%; background: #000; border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.archive-card .media iframe { width: 100%; height: 100%; border: none; display: block; }
.archive-card .archive-title { font-size: 13px; font-weight: 500; color: #f5f2ec; }
@media (max-width: 760px) { .archive-grid { grid-template-columns: 1fr; } }

/* Tablet (iPad) */
@media (max-width: 1024px) and (min-width: 769px) {
  header { padding: 44px 40px 28px; }
  main { padding: 36px 40px 80px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .logo { font-size: 28px; }
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } header{padding:36px 24px 26px} main{padding:32px 24px 70px} }

.tile { position: relative; cursor: pointer; overflow: hidden; border-radius: 3px; opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.tile.visible { opacity: 1; transform: translateY(0); }
.tile.hidden-by-filter { display: none; }

.thumb { aspect-ratio: 16 / 9; width: 100%; position: relative; background-size: cover; background-position: center; background-color: #2a2926; }
.thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%); z-index: 2; }
.thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease-in-out; }
.thumb video.playing { opacity: 1; }
.thumb .bg-embed { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s ease-in-out; pointer-events: none; }
.thumb .bg-embed.playing { opacity: 1; }
.thumb .still {
  position: absolute; inset: -3%; width: 106%; height: 106%;
  background-size: cover; background-position: center;
  transition: transform 0.35s cubic-bezier(0.2,0.7,0.3,1), opacity 0.45s ease;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1);
}
.tile:hover .still { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1.05); }

/* Play badge: fades in on hover for desktop, always visible on touch */
.play-badge { position: absolute; top: 14px; right: 14px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.85); transition: opacity 0.25s ease, transform 0.25s ease; background: rgba(10,9,8,0.35); }
.play-badge svg { width: 9px; height: 9px; fill: #f5f2ec; margin-left: 2px; }

@media (hover: hover) and (pointer: fine) {
  .tile:hover .play-badge { opacity: 1; transform: scale(1); }
}
@media (hover: none), (pointer: coarse) {
  .play-badge { opacity: 1; transform: scale(1); }
  .tile:hover .still { transform: none; }
}

.laurel { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; align-items: center; gap: 5px; font-size: 9px; letter-spacing: 0.09em; text-transform: uppercase; color: #f5f2ec; background: rgba(10,9,8,0.55); border: 1px solid rgba(245,242,236,0.28); padding: 5px 10px 5px 8px; border-radius: 20px; backdrop-filter: blur(2px); }
.laurel svg { width: 11px; height: 11px; flex-shrink: 0; }

.caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px 18px 14px; }
.caption .title { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 500; color: #f5f2ec; margin-bottom: 3px; }
.caption .credit { font-size: 10.5px; color: #cdc8bf; letter-spacing: 0.08em; text-transform: uppercase; }

footer { padding: 34px 56px 56px; border-top: 1px solid rgba(255,255,255,0.09); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .socials { display: flex; gap: 22px; }
footer a { color: #948f86; font-size: 12px; text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; }
footer a:hover { color: #f5f2ec; }
footer .copy { font-size: 11px; color: #6b665e; }

/* CV / Bio page */
.cv-wrap { max-width: 880px; }
.cv-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.laurel-static { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: #c99a6b; border: 1px solid rgba(201,154,107,0.4); padding: 6px 12px 6px 10px; border-radius: 20px; }
.laurel-static svg { width: 12px; height: 12px; flex-shrink: 0; }

.cv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,0.09); border-bottom: 1px solid rgba(255,255,255,0.09); margin: 8px 0 44px; }
.cv-stat { padding: 22px 20px; border-right: 1px solid rgba(255,255,255,0.09); }
.cv-stat:last-child { border-right: none; }
.cv-stat .num { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 500; color: #f5f2ec; line-height: 1; margin-bottom: 6px; }
.cv-stat .label { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #7d786f; }

.cv-bio p { font-size: 15px; line-height: 1.75; color: #cdc8bf; margin-bottom: 20px; max-width: 720px; }
.cv-bio p:last-child { margin-bottom: 0; }

.cv-section { margin-top: 56px; }
.cv-section .eyebrow { margin-bottom: 18px; }
.cv-section .eyebrow .sub { color: #6b665e; text-transform: none; letter-spacing: 0; font-size: 11px; margin-left: 8px; }

.cv-credit-list { display: flex; flex-direction: column; gap: 16px; }
.cv-credit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 14px; }
.cv-credit:last-child { border-bottom: none; padding-bottom: 0; }
.cv-credit .ct-title { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 500; color: #f5f2ec; }
.cv-credit .ct-meta { font-size: 12.5px; color: #948f86; }

.cv-flow { font-size: 13.5px; line-height: 2; color: #b7b2a9; }
.cv-flow strong { color: #ece9e3; font-weight: 500; }

.cv-press { display: flex; flex-direction: column; gap: 10px; }
.cv-press a { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #cdc8bf; text-decoration: none; transition: color 0.2s ease; }
.cv-press a:hover { color: #c99a6b; }
.cv-press a .arrow { color: #6b665e; transition: transform 0.2s ease; }
.cv-press a:hover .arrow { transform: translateX(3px); color: #c99a6b; }

@media (max-width: 700px) {
  .cv-stats { grid-template-columns: repeat(2, 1fr); }
  .cv-stat:nth-child(2) { border-right: none; }
}

/* Contact page */
.contact-wrap { max-width: 780px; }
.contact-primary { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 48px; }
.contact-primary a.big-link { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 500; color: #f5f2ec; text-decoration: none; line-height: 1.3; transition: color 0.2s ease; }
.contact-primary a.big-link:hover { color: #c99a6b; }
.contact-primary .contact-sub { display: flex; gap: 16px; margin-top: 14px; }
.contact-primary .contact-sub a { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #948f86; text-decoration: none; transition: color 0.2s ease; }
.contact-primary .contact-sub a:hover { color: #c99a6b; }

.paradigm-logo { display: inline-flex; align-items: center; gap: 12px; margin: 18px 0 26px; opacity: 0.82; text-decoration: none; transition: opacity 0.2s ease; }
.paradigm-logo:hover { opacity: 1; }
.paradigm-logo img:first-child { height: 22px; width: auto; }
.paradigm-logo img:last-child { height: 12px; width: auto; }

.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.rep-card { border: 1px solid rgba(255,255,255,0.09); border-radius: 4px; padding: 26px 24px; }
.rep-card .rep-role { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #c99a6b; margin-bottom: 12px; }
.rep-card .rep-name { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500; color: #f5f2ec; margin-bottom: 2px; }
.rep-card .rep-agency { font-size: 12px; color: #7d786f; margin-bottom: 16px; }
.rep-card .rep-line { font-size: 13.5px; color: #cdc8bf; margin-bottom: 6px; }
.rep-card .rep-line a { color: #cdc8bf; text-decoration: none; transition: color 0.2s ease; }
.rep-card .rep-line a:hover { color: #c99a6b; }

@media (max-width: 700px) {
  .rep-grid { grid-template-columns: 1fr; }
  .contact-primary a.big-link { font-size: 24px; }
}
