/* Roger Seng Studios — shared styles
   Matches rogerseng.me: Bebas Neue headlines, Rubik body, near-black UI, gold accents. */

:root {
  --bg: #0f0f11;          /* oklch(0.141 0.005 285.8) */
  --bg-2: #131316;
  --bg-3: #19191d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-2: #d9d9dd;      /* oklch(0.871 …) */
  --text-3: #a4a4ab;      /* oklch(0.705 …) */
  --gold: #977649;   /* matches rogerseng.me accent (updated 2026-08) */
  --gold-dark: #7d5f3a;
  --radius: 0.625rem;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(4rem, 13vw, 10rem); }
h2 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1; }
.eyebrow {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.muted { color: var(--text-3); }
.gold { color: var(--gold); font-weight: 400; }
.lead { color: var(--text-2); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 52rem; }
.muted { color: var(--text-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border: 1px solid var(--text);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--text); color: #000; }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: #000; }
.btn-outline { color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 84px;
  display: flex; align-items: center;
  background: rgba(15, 15, 17, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; filter: brightness(0) invert(1); }
.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-2); transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--gold); }

/* ---------- Sticky stacked panels ---------- */
.panel {
  position: sticky; top: 0;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 96px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -30px 60px rgba(0,0,0,.55);   /* reads as "stacking" when sliding over */
}
.panel:nth-of-type(even) { background: var(--bg-2); }
/* Panels taller than the viewport must scroll normally, or the next sticky
   panel slides over content before it's been read. */
.panel.flow { position: relative; z-index: 1; }
.panel > .wrap { width: 100%; }
.panel-head { margin-bottom: 48px; }
.panel-head h2 { margin: 12px 0 18px; }

/* Hero */
.hero { text-align: center; background:
  radial-gradient(ellipse 60% 50% at 50% 40%, rgba(181,145,103,0.10), transparent 70%),
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 100%,
  var(--bg);
}
.hero .logo { width: min(580px, 74vw); margin: 0 auto 40px; filter: brightness(0) invert(1); }
.hero .lead { margin: 0 auto 44px; }
.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--text-3); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .45; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 6px); } }

/* Grid of cells (services / stats) — matches rogerseng.me's hairline grid */
/* Hairlines are drawn per-cell (box-shadow) rather than via a light container
   background, so a partially-filled last row stays dark instead of showing a block. */
.cells, .industries-grid, .logos {
  display: grid;
  gap: 1px;
  padding: 1px;
  background: transparent;
  border: none;
}
.cells > *, .industries-grid > *, .logos > * { box-shadow: 0 0 0 1px var(--line); }
.cells {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .cells { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cells { grid-template-columns: 1fr; } }
.cell {
  background: var(--bg);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .2s;
}
.panel:nth-of-type(even) .cell { background: var(--bg-2); }
.cell:hover { background: var(--bg-3); }
.cell:hover .icon { color: #fff; transform: translateY(-2px); }
.cell .icon {
  width: 36px; height: 36px; margin-bottom: 10px;
  color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: color .2s, transform .2s;
}
.cell h3 { font-size: 1.9rem; margin-bottom: 4px; }
.cell p { color: var(--text-3); font-size: 0.9rem; }
.cell ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.cell li { font-size: .82rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.cell li::before { content: "— "; color: var(--gold); }

/* Awards */
.awards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 1px; max-width: 820px; margin: 0 auto; }
@media (max-width: 560px) { .awards { grid-template-columns: 1fr; } }
.awards > div { box-shadow: 0 0 0 1px var(--line); background: var(--bg-2); padding: 40px 28px; text-align: center; }
.awards .award-year { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.awards .display { display: block; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.awards p { font-size: .85rem; color: var(--text-3); margin-top: 8px; }

/* Industries panel */
.industries-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.industries-grid div { background: var(--bg-2); padding: 40px 28px; text-align: center; }
.industries-grid .display { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.industries-grid p { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }

/* Brand logo strip */
/* 12 logos — column counts chosen so every row is full at every width */
.logos { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 470px)  { .logos { grid-template-columns: repeat(2, 1fr); } }
.logos > div { background: var(--bg); min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 24px; }
.logos img { max-height: 46px; max-width: min(160px, 80%); width: auto; filter: brightness(0) invert(1); opacity: .8; transition: opacity .2s; }
@media (max-width: 720px) { .logos > div { min-height: 110px; } .logos img { max-height: 34px; } }
.logos .wordmark { font-family: var(--display); font-size: 1.7rem; letter-spacing: .1em; color: rgba(255,255,255,.8); transition: color .2s; }
.logos > div:hover img { opacity: 1; }
.logos > div:hover .wordmark { color: #fff; }

/* Contact */
.contact .panel-head { margin: 0 auto 48px; }
.contact-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 56px; max-width: 1020px; margin: 0 auto; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-family: var(--display); font-size: 1.05rem; letter-spacing: .1em; }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--text); font-family: var(--body); font-weight: 300; font-size: .95rem;
  padding: 13px 14px; width: 100%;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-3); opacity: .7; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); }
.form-field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--text-3); margin-top: 12px; }
.contact-aside { display: flex; flex-direction: column; gap: 28px; }
.contact-aside .eyebrow { margin-bottom: 8px; }
.contact-aside a { display: block; color: var(--text-2); font-size: .92rem; padding: 3px 0; transition: color .2s; }
.contact-aside a:hover { color: var(--gold); }
.contact-aside .aside-email {
  font-family: var(--display); font-size: 1.4rem; letter-spacing: .04em; color: var(--text);
  border: none; border-bottom: 1px solid var(--gold); background: none; cursor: pointer;
  display: inline-block; padding: 0 0 2px; text-align: left; align-self: flex-start;
}
.contact-aside .aside-email:hover { color: var(--gold); }
.contact-aside .aside-note { font-size: .85rem; color: var(--text-3); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* Award icons */
.awards .icon {
  width: 42px; height: 42px; margin: 0 auto 18px; display: block;
  color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Video modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 5, 6, .88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal .frame { width: min(1100px, 92vw); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 20px 80px rgba(0,0,0,.7); }
.modal iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-close {
  position: absolute; top: 18px; right: 26px;
  background: none; border: none; cursor: pointer;
  color: var(--text-2); font-size: 2.6rem; line-height: 1; font-family: var(--body); font-weight: 300;
}
.modal-close:hover { color: var(--gold); }


/* Footer */
.site-footer { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line); padding: 28px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--text-3); }
.site-footer a:hover { color: var(--gold); }
.social-icons { display: flex; gap: 20px; align-items: center; }
.social-icons a { color: var(--text-3); transition: color .2s; }
.social-icons a:hover { color: var(--gold); }
.social-icons svg { width: 20px; height: 20px; fill: currentColor; display: block; }

/* Videos page */
.page { padding: 150px 0 90px; }
.page .panel-head { margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  font-family: var(--body); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-2); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.filters button.active, .filters button:hover { border-color: var(--gold); color: var(--gold); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.video { background: var(--bg); display: flex; flex-direction: column; transition: background .2s; }
.video:hover { background: var(--bg-3); }
.video .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video:hover .thumb img { transform: scale(1.04); }
.video .thumb::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(0,0,0,.6) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>") center / 26px no-repeat;
  border: 1px solid rgba(255,255,255,.5);
}
.video .meta { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.video .tags { display: flex; gap: 10px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.video .tags .client { color: var(--gold); }
.video .tags .type { color: var(--text-3); }
.video h3 { font-size: 1.5rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .scroll-cue { animation: none; } }

@media (max-width: 1000px) {
  .brand img { height: 34px; }
  .nav { gap: 22px; }
}

/* Mobile */
@media (max-width: 760px) {
  .nav { gap: 16px; }
  .nav a { font-size: .7rem; letter-spacing: .1em; }
  .panel { position: relative; min-height: 0; padding: 96px 0 72px; box-shadow: none; } /* no stacking on phones — simpler, no jank */
  .hero { min-height: 100vh; }
  .cell { min-height: 0; }
}
