/* ---------- Brand tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-surface: #faf8f5;
  --color-ink: #111111;
  --color-ink-soft: #4a4a4a;
  --color-muted: #6b6b6b;
  --color-border: #e8e4dd;

  --brand-yellow: #e8a93c;
  --brand-teal:   #2a9d8f;
  --brand-red:    #c84b2d;

  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.08);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1em; color: var(--color-ink-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-ink);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
  border: 2px solid var(--color-ink);
}
.btn:hover { transform: translateY(-1px); background: var(--brand-teal); border-color: var(--brand-teal); }

.btn-outline {
  background: transparent;
  color: var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.brand-logo {
  height: 44px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 28px;
  font-weight: 500;
}
.site-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--color-ink-soft);
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--color-ink); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

@media (max-width: 560px) {
  .site-nav { gap: 18px; font-size: .95rem; }
  .brand-logo { height: 36px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 180px) 0 clamp(80px, 12vw, 160px);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  isolation: isolate;
}

/* Full-bleed crossfading background carousel */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #0e0e0e;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }

/* Scrim for text legibility over the imagery */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 50% 45%, rgba(0,0,0,.30), transparent 70%),
    linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.30) 40%, rgba(0,0,0,.55));
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  color: #fff;
}
.hero-mark {
  width: 84px;
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.45));
}
.hero h1 {
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,.92);
  max-width: 640px;
  margin: 0 auto 32px;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

/* Keep the CTA readable on photos */
.hero .btn {
  background: #fff;
  color: var(--color-ink);
  border-color: #fff;
}
.hero .btn:hover {
  background: var(--brand-teal);
  color: #fff;
  border-color: var(--brand-teal);
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  margin: 0 auto clamp(32px, 5vw, 56px);
  max-width: 640px;
}
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--color-muted); margin: 0; }

/* ---------- Work / video grid ---------- */
.work {
  padding: clamp(64px, 9vw, 112px) 0;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.video-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card figcaption {
  padding: 18px 20px 22px;
}
.video-card h3 { margin: 0 0 4px; }
.video-card p  { margin: 0; color: var(--color-muted); font-size: .95rem; }

/* ---------- Partners ---------- */
.partners {
  padding: clamp(64px, 9vw, 112px) 0;
  background: #0e0e0e;
  color: #f3f3f3;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}
.section-head-light h2 { color: #fff; }
.section-head-light p  { color: #b8b8b8; }

.partners-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
}
.partners-grid li {
  flex: 1 1 160px;
  max-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.partners-grid img {
  max-height: 96px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}
.partners-grid img:hover {
  opacity: 1;
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .partners-grid { gap: 32px; }
  .partners-grid li { flex-basis: 100%; max-width: 100%; min-height: 100px; }
}

/* ---------- About ---------- */
.about {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  isolation: isolate;
}
.about-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #0e0e0e;
  background-size: cover;
  background-position: center;
}
.about-inner {
  position: relative;
  max-width: 760px;
  text-align: center;
  color: #fff;
}
.about h2 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.about p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(64px, 9vw, 112px) 0;
  text-align: center;
}
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact h2 { margin-bottom: 8px; }
.contact p { margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0e0e0e;
  color: #cfcfcf;
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-mark { height: 36px; width: auto; }
.site-footer p { margin: 0; color: #a8a8a8; font-size: .9rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
