/* ===================================================================
   TIAN — static showreel site
   Monochrome, edge-to-edge "video wall" gallery. No framework,
   no build step — just open index.html or drop the folder on any
   static host (Netlify / GitHub Pages / Cloudflare Pages).
   =================================================================== */

:root {
  --ink: #111111;
  --paper: #ffffff;
  --grey: #767676;
  --grey-line: #e6e6e6;
  --overlay: rgba(10, 10, 10, 0.62);
  --header-h: 64px;
  --gap: 3px;
  --max: 1680px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" 1;
}

a { color: inherit; text-decoration: none; }

img, iframe { display: block; max-width: 100%; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-line);
}

.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.site-nav a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--ink);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Role strapline under header ---------- */

.strapline {
  text-align: center;
  padding: 22px 20px 18px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- Video wall ---------- */

.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.reel-item {
  position: relative;
  overflow: hidden;
  background: #000;
}

.reel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.reel-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, var(--overlay) 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.reel-item:hover .reel-overlay,
.reel-item:focus-within .reel-overlay {
  opacity: 1;
  transform: translateY(0);
}

.reel-title {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.reel-role {
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Photo strip ---------- */

.photo-strip {
  overflow: hidden;
  padding: 48px 0;
}

.photo-track {
  display: flex;
  gap: 8px;
  width: max-content;
  padding: 0 20px;
  animation: photo-scroll 36s linear infinite;
}

.photo-track img {
  height: 320px;
  width: auto;
  flex: 0 0 auto;
  object-fit: cover;
}

@keyframes photo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .photo-track img { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-strip { overflow-x: auto; }
  .photo-track { animation: none; width: auto; }
}

/* ---------- Bio ---------- */

.bio {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 24px 96px;
  text-align: center;
}

.bio p {
  font-size: 17px;
  line-height: 1.75;
  color: #2b2b2b;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--grey-line);
  padding: 28px 28px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--grey);
  letter-spacing: 0.04em;
}

.site-footer a {
  color: var(--ink);
  border-bottom: 1px solid var(--grey-line);
}

.site-footer a:hover { border-bottom-color: var(--ink); }

/* ---------- About / Contact page ---------- */

.page-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 8px;
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

.page-hero p {
  font-size: 17px;
  line-height: 1.75;
  color: #2b2b2b;
}

.contact-block {
  max-width: 720px;
  margin: 40px auto 100px;
  padding: 36px 24px 0;
  border-top: 1px solid var(--grey-line);
}

.contact-block h2 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 18px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 17px;
}

.contact-row a {
  border-bottom: 1px solid var(--grey-line);
}

.contact-row a:hover { border-bottom-color: var(--ink); }

/* ---------- Responsive grid columns ---------- */

@media (max-width: 1100px) {
  .reel-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .reel-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0 18px; }
  .strapline { font-size: 11.5px; padding: 18px 16px 14px; }
  .reel-overlay { opacity: 1; transform: none; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, var(--overlay) 100%); }
}
