/* =========================================================
   UTAH FILM TEAM — Design System + Public Site
   Cinematic, desert-toned brand for travel/brand content
   ========================================================= */

:root {
  /* Core palette */
  --bg:          #0a0a0b;
  --bg-soft:     #111114;
  --panel:       #16161a;
  --panel-2:     #1d1d22;
  --line:        #2a2a30;
  --line-soft:   #232329;

  --text:        #f5f5f4;
  --text-muted:  #a1a1aa;
  --text-faint:  #6b6b73;

  /* Brand accent — canyon sunset */
  --accent:      #f0a04b;   /* desert gold */
  --accent-2:    #e0533d;   /* canyon red */
  --accent-3:    #f6c177;   /* light sand */
  --sunset:      linear-gradient(120deg, #f6c177 0%, #f0a04b 40%, #e0533d 100%);
  --sunset-soft: linear-gradient(120deg, rgba(240,160,75,.18), rgba(224,83,61,.14));

  --good:  #4ade80;
  --warn:  #fbbf24;
  --bad:   #f87171;
  --info:  #60a5fa;

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow:    0 18px 50px -18px rgba(0,0,0,.65);
  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,.55);

  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent-text { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sunset); color: #1a0f06; box-shadow: 0 12px 30px -12px rgba(240,160,75,.6); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(240,160,75,.75); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(240,160,75,.06); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  transition: background .3s ease, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,.82); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft); padding: 12px 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--sunset);
  display: grid; place-items: center; color: #1a0f06; font-weight: 800; font-size: 1rem;
  box-shadow: 0 6px 18px -8px rgba(240,160,75,.7);
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .26em; color: var(--text-faint); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(224,83,61,.30), transparent 60%),
    radial-gradient(900px 700px at 12% 90%, rgba(240,160,75,.18), transparent 55%),
    linear-gradient(180deg, #0a0a0b 0%, #120d0c 60%, #0a0a0b 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; margin-bottom: 26px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02);
  font-size: .8rem; color: var(--text-muted);
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); max-width: 16ch; margin-bottom: 24px; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-muted); max-width: 56ch; margin: 0 0 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; }
.hero-stats .stat .label { font-size: .82rem; color: var(--text-faint); letter-spacing: .04em; }

/* ---------- Section scaffolding ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- Services ---------- */
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.service-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s ease, border-color .25s, background .25s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(240,160,75,.4); background: var(--panel-2); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sunset-soft); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- Work: featured YouTube film + Instagram reel embeds ---------- */
.work-feature { margin-bottom: 28px; }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); background: #000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.work-embed-label { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.work-embed-label .tag { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #1a0f06; background: var(--sunset); padding: 4px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.work-embed-label strong { display: block; font-family: var(--font-display); font-size: .95rem; line-height: 1.25; }
.work-embed-label > div span { display: block; color: var(--text-faint); font-size: .8rem; margin-top: 2px; }

/* Clean vertical reel cards (uniform, no Instagram chrome) */
.grid-reels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.reel-card { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); isolation: isolate; }
.reel-cover { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; transition: transform .5s ease; }
.reel-card:hover .reel-cover { transform: scale(1.05); }
.reel-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, transparent 30%, rgba(0,0,0,.85) 100%); }
.reel-play { position: absolute; top: 46%; left: 50%; transform: translate(-50%,-50%) scale(.92); z-index: 2; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; color: #fff; font-size: 1rem; padding-left: 3px; transition: .3s; }
.reel-card:hover .reel-play { background: var(--sunset); color: #1a0f06; border-color: transparent; transform: translate(-50%,-50%) scale(1); }
.reel-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px; }
.reel-info .tag { display: inline-block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; background: var(--sunset); color: #1a0f06; padding: 3px 9px; border-radius: 999px; font-weight: 700; margin-bottom: 8px; }
.reel-info h4 { font-size: 1rem; line-height: 1.2; color: #fff; }
.reel-info .reel-meta { display: block; color: rgba(255,255,255,.72); font-size: .78rem; margin-top: 3px; }
@media (max-width: 520px) { .grid-reels { grid-template-columns: repeat(2, 1fr); } }
.reel-card { cursor: pointer; }

/* Reel lightbox (plays on-page, no off-site jump) */
.reel-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 40px 16px; background: rgba(5,5,6,.84); backdrop-filter: blur(7px); overflow-y: auto; }
.reel-modal.show { display: flex; }
.reel-modal-inner { position: relative; width: auto; max-width: 92vw; margin: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.reel-modal-frame { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.reel-modal-frame iframe { width: 400px; max-width: 92vw; height: 590px; border: 0; display: block; }
/* Native video adapts to its own aspect ratio (vertical reels or horizontal posts) */
.reel-modal-frame.is-video { background: #000; }
.reel-modal-frame.is-video video { display: block; max-height: 84vh; max-width: 92vw; width: auto; height: auto; }
.reel-modal-link { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.reel-modal-link:hover { color: var(--accent); }
.reel-modal-close { position: fixed; top: 18px; right: 22px; z-index: 301; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.05rem; transition: background .2s; }
.reel-modal-close:hover { background: rgba(255,255,255,.26); }

/* ---------- Work / Portfolio (legacy gradient tiles) ---------- */
.grid-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.work-card {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); cursor: pointer; isolation: isolate;
}
.work-card .thumb { position: absolute; inset: 0; z-index: 0; transition: transform .5s ease; }
.work-card:hover .thumb { transform: scale(1.06); }
.work-card .overlay {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.78) 100%);
}
.work-card .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.9); z-index: 2;
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; opacity: 0; transition: .3s;
}
.work-card:hover .play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.work-card .tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-3); margin-bottom: 6px; }
.work-card h4 { font-size: 1.15rem; }

/* ---------- Process ---------- */
.grid-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.process-step { padding: 28px 24px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.process-step .step-n { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.process-step h4 { font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ---------- Team / Who we are ---------- */
.reach-badge { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 9px 17px; border: 1px solid var(--line); border-radius: 999px; background: rgba(240,160,75,.06); font-size: .92rem; color: var(--text-muted); }
.reach-badge strong { font-family: var(--font-display); color: var(--accent); font-size: 1.05rem; }
.grid-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 32px; }
.team-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px 26px; text-align: center; transition: transform .25s ease, border-color .25s; }
.team-card:hover { transform: translateY(-5px); border-color: rgba(240,160,75,.4); }
.team-photo { position: relative; width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; background: var(--sunset); display: grid; place-items: center; color: #1a0f06; font-weight: 800; font-size: 2rem; font-family: var(--font-display); overflow: hidden; }
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.25rem; }
.team-role { color: var(--accent); font-size: .9rem; margin: 5px 0 14px; font-weight: 500; }
.team-bio { color: var(--text-muted); font-size: .85rem; font-style: italic; line-height: 1.65; margin: 0 0 18px; }
.team-handles { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.team-handles a { color: var(--text-muted); font-size: .86rem; transition: color .2s; }
.team-handles a:hover { color: var(--accent); }
.team-stats { display: flex; justify-content: center; gap: 28px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.team-stats > div strong { display: block; font-family: var(--font-display); font-size: 1.35rem; }
.team-stats > div span { font-size: .72rem; color: var(--text-faint); letter-spacing: .04em; }

/* ---------- About ---------- */
.about-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.about-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 34px;
  background-image: var(--sunset-soft);
}
.about-card .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--sunset); display: grid; place-items: center; font-weight: 800; color: #1a0f06; font-size: 1.4rem; margin-bottom: 18px; }
.about-socials { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.social-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--text-muted); transition: .2s; }
.social-chip:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Contact / Booking ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,160,75,.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none; padding: 18px 20px; border-radius: var(--radius); background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.35); color: #bbf7d0; font-size: .95rem;
}
.form-success.show { display: block; }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-side .info-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-side .info-row .ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; }
.contact-side .info-row .label { font-size: .78rem; color: var(--text-faint); }
.contact-side .info-row .val { font-weight: 500; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; background: var(--bg-soft); }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.footer p { color: var(--text-faint); font-size: .88rem; max-width: 40ch; }
.footer-links { display: flex; gap: 50px; flex-wrap: wrap; }
.footer-col h5 { font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: .92rem; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: .84rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 28px; }
  .section { padding: 80px 0; }
  .form-grid { grid-template-columns: 1fr; }
}
