/* ============================================
   Red Fox Features — styles.css
   ============================================ */

/* --- Design tokens --- */
:root {
  --bg:            #0a0806;
  --text:          #f4ebd8;
  --text-muted:    rgba(244, 235, 216, 0.72);
  --text-faint:    rgba(244, 235, 216, 0.45);
  --accent:        #e6b46e;
  --accent-faint:  rgba(230, 180, 110, 0.35);

  --serif:         'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans:          'Inter', system-ui, -apple-system, sans-serif;

  --section-pad-y: clamp(60px, 9vh, 110px);
  --section-pad-x: clamp(24px, 5vw, 48px);
  --max-w:         1200px;

  --ease:          cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- Font faces --- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/CormorantGaramond-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/CormorantGaramond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Inter-500.woff2') format('woff2');
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg, picture { display: block; max-width: 100%; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Small utility — uppercase tracked label */
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 75%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.65) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  text-align: center;
}

.hero__logo {
  width: clamp(240px, 30vw, 420px);
  height: auto;
  filter: drop-shadow(0 4px 30px rgba(0,0,0,0.5));
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-faint);
  padding: 12px;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  animation: hero-scroll-hint 2.4s var(--ease) infinite;
}

.hero__scroll:hover {
  color: var(--accent);
  transform: translateX(-50%) translateY(2px);
}

@keyframes hero-scroll-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* Mobile — logo a bit wider proportionally, shorter min-height */
@media (max-width: 640px) {
  .hero { min-height: 480px; }
  .hero__logo { width: 65vw; max-width: 320px; }
  .hero__scroll { bottom: 24px; }
}

/* Reduced motion — pause the bounce, don't autoplay video */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll { animation: none; }
  .hero__video { display: none; }
  .hero {
    background: url('/assets/bg-poster.jpg') center/cover no-repeat;
  }
}

/* --- About + Credits --- */
.about {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
  text-align: center;
}

.about__body {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.55;
  color: var(--text);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.about__divider {
  width: 60px;
  height: 1px;
  background: var(--accent-faint);
  margin: 40px auto;
}

.about__intro {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 auto 28px;
  text-wrap: balance;
}

.about__credits {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 2.2;
  max-width: 720px;
  margin: 0 auto;
}

.about__credits span { white-space: nowrap; }

.about__dot {
  color: var(--accent-faint);
  margin: 0 14px;
}

@media (max-width: 640px) {
  .about__credits { line-height: 2; letter-spacing: 0.16em; }
  .about__dot { margin: 0 8px; }
}

/* --- Work --- */
.work {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-pad-x) var(--section-pad-y);
}

.work__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 36px;
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tile {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1410;
  border: 1px solid rgba(230,180,110,0.1);
  padding: 0;
  display: block;
  text-align: left;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}

.tile picture,
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.85;
}

.tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border: 1px solid rgba(244,235,216,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(10,8,6,0.25);
  backdrop-filter: blur(2px);
  transition: all 0.3s var(--ease);
}

.tile__play svg { margin-left: 3px; } /* optical centering */

.tile__caption {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 17px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.tile__sep {
  color: var(--accent);
  margin: 0 6px;
}

.tile:hover img {
  opacity: 1;
  transform: scale(1.03);
}
.tile:hover .tile__play {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
}
.tile:hover {
  border-color: var(--accent-faint);
}

.tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .work__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--accent-faint);
  padding: 56px var(--section-pad-x) 40px;
  text-align: center;
}

.footer__links {
  display: inline-flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 36px;
}

.footer__links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid rgba(230,180,110,0.25);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.footer__links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer__meta {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .footer__links { flex-direction: column; gap: 18px; margin-bottom: 28px; }
}
