/* ==========================================================================
   FoxyVisions — Lucas Bauman
   A production company site. Fox-orange on deep dark, cinematic.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Deep green + warm cream — cinematic forest palette */
  --fox:         #A8C2A9;             /* sage — accent (kept variable name for internal consistency) */
  --fox-soft:    #7FA888;             /* deeper sage */
  --fox-glow:    rgba(168, 194, 169, 0.35);
  --fox-dim:     rgba(168, 194, 169, 0.12);
  --dark:        #0d1a14;             /* deep forest black */
  --dark-2:      #14211b;             /* lifted forest */
  --cream:       #f4ecdc;
  --cream-dim:   rgba(244, 236, 220, 0.6);
  --cream-faint: rgba(244, 236, 220, 0.35);
  --border:      rgba(244, 236, 220, 0.08);

  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1400px;
  --pad-x: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection { background: var(--fox); color: var(--dark); }

/* Subtle grain overlay for Kodak-ish warmth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image:
    radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

/* ==========================================================================
   Language switcher
   ========================================================================== */
.lang-switch {
  position: fixed;
  top: 24px;
  right: var(--pad-x);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 500;
  text-transform: uppercase;
  padding: 8px 14px;
  background: rgba(13, 26, 20, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.lang-switch button {
  background: none;
  border: 0;
  color: var(--cream-faint);
  font: inherit;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s ease;
}
.lang-switch button:hover { color: var(--cream); }
.lang-switch button.active { color: var(--fox); }
.lang-switch .dot { color: var(--cream-faint); }

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

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Placeholder gradient shown while no source is wired up */
  background:
    radial-gradient(ellipse at 20% 30%, rgba(127, 168, 136, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(74, 107, 84, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #152922 0%, #0d1a14 50%, #0a1611 100%);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13,26,20,0.3) 0%, rgba(13,26,20,0.5) 50%, rgba(13,26,20,0.9) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(13,26,20,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad-x);
  animation: hero-fade 1.4s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes hero-fade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  cursor: default;
}
.wm-foxy {
  color: var(--fox);
  font-style: italic;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1), text-shadow 0.7s ease;
}
.wm-visions {
  color: var(--cream);
  display: inline-block;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1) 0.05s;
}
.wordmark:hover .wm-foxy {
  transform: translateX(-4px) rotate(-1.5deg);
  text-shadow: 0 0 40px var(--fox-glow);
}
.wordmark:hover .wm-visions {
  transform: translateX(4px);
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 20px;
}

.signature {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fox);
  opacity: 0.85;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cream-dim);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  animation: bob 2.4s ease-in-out infinite;
  transition: color 0.2s;
}
.scroll-hint:hover { color: var(--fox); }
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ==========================================================================
   Section heads
   ========================================================================== */
.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  margin-bottom: 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fox);
  margin-bottom: 16px;
}
.section-head h2,
.about h2,
.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
}

/* ==========================================================================
   Work grid — CSS masonry-esque via column-count with aspect tiles
   ========================================================================== */
.work {
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 10vw, 120px);
  background: var(--dark);
}

.grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.4vw, 20px);
  grid-auto-flow: dense;
}

.tile {
  position: relative;
  overflow: hidden;
  background: var(--dark-2);
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0ms);
  isolation: isolate;
}
.tile.in {
  opacity: 1;
  transform: translateY(0);
}

.tile img,
.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.5s ease;
  filter: saturate(0.95) contrast(1.02);
}
.tile:hover img,
.tile:hover video {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
}

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13,26,20,0.55) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}
.tile:hover::after { opacity: 1; }

.tile .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(127, 168, 136, 0.9);
  padding: 4px 8px;
  border-radius: 2px;
  backdrop-filter: blur(6px);
}

/* Aspect ratio placements — mixing 16:9, 9:16, 1:1 on a 12-col grid */
.tile.ratio-16x9 {
  grid-column: span 6;
  aspect-ratio: 16 / 9;
}
.tile.ratio-9x16 {
  grid-column: span 3;
  aspect-ratio: 9 / 16;
}
.tile.ratio-1x1 {
  grid-column: span 3;
  aspect-ratio: 1 / 1;
}

@media (max-width: 900px) {
  .tile.ratio-16x9 { grid-column: span 12; }
  .tile.ratio-9x16 { grid-column: span 6; }
  .tile.ratio-1x1  { grid-column: span 6; }
}
@media (max-width: 520px) {
  .tile.ratio-16x9,
  .tile.ratio-9x16,
  .tile.ratio-1x1 { grid-column: span 12; }
  .tile.ratio-9x16 { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding: clamp(80px, 12vw, 140px) 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  border-top: 1px solid var(--border);
}
.about-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.about h2 { margin: 16px 0 32px; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.65;
  color: var(--cream);
  opacity: 0.9;
  font-weight: 400;
  margin-bottom: 32px;
}

.credits {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fox);
  opacity: 0.8;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 10vw, 120px);
  background: var(--dark-2);
  border-top: 1px solid var(--border);
}
.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
}
.contact h2 { margin: 16px 0 20px; }
.contact-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--cream-dim);
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s ease;
  background: rgba(244, 236, 220, 0.02);
}
.contact-btn:hover {
  border-color: var(--fox);
  color: var(--fox);
  transform: translateY(-1px);
}
.contact-btn.primary {
  background: var(--fox);
  color: var(--dark);
  border-color: var(--fox);
}
.contact-btn.primary:hover {
  background: transparent;
  color: var(--fox);
  box-shadow: 0 0 30px var(--fox-glow);
}

/* Form */
.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 620px) {
  .contact-form .row { grid-template-columns: 1fr; }
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  padding: 10px 2px;
  transition: border-color 0.3s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--fox);
}

.submit {
  align-self: flex-start;
  margin-top: 8px;
  padding: 13px 32px;
  background: transparent;
  border: 1px solid var(--fox);
  color: var(--fox);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.3s ease;
}
.submit:hover {
  background: var(--fox);
  color: var(--dark);
  box-shadow: 0 0 30px var(--fox-glow);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 32px var(--pad-x);
  border-top: 1px solid var(--border);
  background: var(--dark);
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cream-faint);
}
.foot-mark {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fox);
  letter-spacing: 0;
  font-size: 13px;
}
.foot-sep { color: var(--cream-faint); opacity: 0.5; }

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
}
.services-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.services-head {
  text-align: center;
  margin-bottom: 64px;
}
.services-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-top: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(244, 236, 220, 0.015);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.service:hover {
  border-color: var(--fox);
  transform: translateY(-3px);
  background: rgba(168, 194, 169, 0.03);
}
.service-icon {
  width: 38px;
  height: 38px;
  color: var(--fox);
  margin-bottom: 20px;
  opacity: 0.9;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.service p {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream-dim);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .tile { opacity: 1; transform: none; }
  .hero-content { animation: none; }
  .scroll-hint { animation: none; }
}
