/* Horizonte Films – static site */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0c0c0d;
  --ink-2: #151517;
  --ink-line: rgba(255, 255, 255, .12);
  --ink-text: #f4f2ee;
  --ink-muted: #a6a39d;

  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --paper-line: rgba(20, 20, 20, .12);
  --paper-text: #151515;
  --paper-muted: #5c5a55;

  --accent: #f2a65a; /* the sunrise in the logo's O */

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 6px;
  --header-h: 72px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink-text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
h2 { font-size: clamp(32px, 4.6vw, 56px); }
h3 { font-size: 21px; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--ink);
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

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

/* Eyebrow: wide tracking like "FILMS" in the logo, with a half-sun mark */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 20px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted, var(--ink-muted));
}
.eyebrow::before {
  content: ""; flex: none;
  width: 16px; height: 8px;
  border: 1.5px solid var(--accent); border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--ink-text); border-radius: 999px;
  background: var(--ink-text); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink-text); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--ink-text); color: var(--ink-text); }
.btn-dark { background: var(--paper-text); border-color: var(--paper-text); color: var(--paper); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(12, 12, 13, .94);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--ink-line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav a:not(.btn) {
  font-size: 15px; font-weight: 500; text-decoration: none;
  color: rgba(244, 242, 238, .82); transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--ink-text); }
.nav .btn { background: transparent; color: var(--ink-text); border-color: rgba(255,255,255,.4); }
.nav .btn:hover { background: var(--ink-text); color: var(--ink); border-color: var(--ink-text); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: #0b0f14 url("../video/hero-poster.webp") center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,12,13,.55) 0%, rgba(12,12,13,0) 22%),
    linear-gradient(0deg, rgba(12,12,13,.9) 0%, rgba(12,12,13,.35) 45%, rgba(12,12,13,.15) 100%);
}
.hero-content { position: relative; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 {
  font-size: clamp(48px, 9.4vw, 136px);
  line-height: .96; letter-spacing: -.045em;
  margin-bottom: 28px;
}
.hero-lead { font-size: clamp(18px, 1.8vw, 22px); color: rgba(244,242,238,.85); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot {
  position: relative;
  display: flex; justify-content: space-between;
  padding-top: 20px; padding-bottom: 24px;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(244,242,238,.6);
}
.hero-foot::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--ink-line);
}
.hero-scroll::after { content: " ↓"; letter-spacing: 0; }

/* Sections */
.section { padding: var(--section) 0; }
.light { background: var(--paper); color: var(--paper-text); --muted: var(--paper-muted); }
.dark { background: var(--ink); color: var(--ink-text); --muted: var(--ink-muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 40px; margin-bottom: clamp(36px, 5vw, 64px);
}
.section-note { margin: 0; color: var(--muted); font-size: 15px; }

/* Intro + services */
.intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px);
  align-items: end; margin-bottom: clamp(56px, 7vw, 96px);
}
.intro-text { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; margin: 0; color: var(--paper-text); }

.services { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-photo img, .split-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
}
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--paper-line); }
.service {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 32px 0; border-bottom: 1px solid var(--paper-line);
}
.service-no { font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--paper-muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.service h3 { margin-bottom: 16px; font-size: clamp(22px, 2.2vw, 28px); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 6px 12px; border: 1px solid var(--paper-line); border-radius: 999px;
  font-size: 14px; line-height: 1.3; color: var(--paper-muted); background: rgba(255,255,255,.5);
}

/* Clients */
.clients { padding: 0 0 var(--section); }
.clients .eyebrow { margin-bottom: 28px; }
.client-logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--paper-line); border-left: 1px solid var(--paper-line);
}
.client-logos li {
  display: flex; align-items: center; justify-content: center;
  padding: 12px; background: #fff;
  border-right: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line);
}
.client-logos img {
  width: 100%; max-width: 180px; height: auto;
  filter: grayscale(1) contrast(1.1); opacity: .62;
  transition: filter .3s, opacity .3s;
}
.client-logos li:hover img { filter: none; opacity: 1; }

/* Works grid */
.works {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px) clamp(16px, 2vw, 24px);
}
.work-featured { grid-column: span 2; grid-row: span 2; }
.work-btn {
  display: flex; flex-direction: column; gap: 12px; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.work-thumb {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--ink-2);
}
.work-featured .work-thumb { flex: 1; aspect-ratio: auto; min-height: 0; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; opacity: .92; }
.work-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0) 50%);
  transition: opacity .3s; opacity: .8;
}
.play {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(12,12,13,.45);
  border: 1px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transform: scale(.85); opacity: 0;
  transition: transform .3s, opacity .3s, background-color .3s;
}
.play::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  margin: -9px 0 0 -5px;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.work-featured .play { width: 88px; height: 88px; margin: -44px 0 0 -44px; opacity: 1; transform: none; }
.work-btn:hover .work-thumb img, .work-btn:focus-visible .work-thumb img { transform: scale(1.04); opacity: 1; }
.work-btn:hover .play, .work-btn:focus-visible .play { opacity: 1; transform: none; background: var(--accent); border-color: var(--accent); }
.work-btn:hover .play::before, .work-btn:focus-visible .play::before { border-left-color: var(--ink); }
.work-btn:focus-visible { outline: none; }
.work-btn:focus-visible .work-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }

.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.work-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.work-title small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }
.work-featured .work-title { font-size: 20px; }
.work-time { flex: none; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* Split blocks (about) */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.split + .split { margin-top: var(--section); }
.split-reverse .split-photo { order: 2; }
.split-text h2 { margin-bottom: 24px; }
.split-text .lead { color: var(--paper-text); }
.split-text p:not(.eyebrow):not(.lead) { color: var(--paper-muted); max-width: 58ch; }
.person .split-text .btn { margin-top: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact h2 { margin-bottom: 20px; }
.contact .lead { color: var(--ink-muted); margin-bottom: 48px; }
.contact-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink-line); }
.contact-list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--ink-line); }
.contact-list dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); padding-top: 4px; }
.contact-list dd { margin: 0; font-size: 18px; }
.contact-list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.contact-list a:hover { background-size: 100% 1px; }

.form {
  display: grid; gap: 18px;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: calc(var(--radius) * 2);
}
.form h3 { margin-bottom: 4px; }
.form label { display: grid; gap: 8px; }
.form label span { font-size: 14px; color: var(--ink-muted); }
.form input, .form textarea {
  width: 100%; padding: 13px 14px;
  background: var(--ink); color: var(--ink-text);
  border: 1px solid var(--ink-line); border-radius: var(--radius);
  font: inherit; font-size: 16px;
  transition: border-color .2s;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.form-note { margin: 0; font-size: 13px; color: var(--ink-muted); }
.form-note a { color: var(--ink-text); }
.form-status {
  margin: 0; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid rgba(242, 166, 90, .5); background: rgba(242, 166, 90, .1);
  font-size: 15px;
}
.form-status.is-error { border-color: rgba(255, 110, 100, .55); background: rgba(255, 110, 100, .1); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--ink-line); padding: 32px 0; font-size: 14px; color: var(--ink-muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-logo { width: 120px; height: auto; opacity: .9; }
.footer-inner p { margin: 0; flex: 1; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink-text); }

/* Video dialog */
.player {
  width: min(1200px, calc(100vw - 2 * var(--gutter)));
  max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: var(--ink-text);
  overflow: visible;
}
.player::backdrop { background: rgba(5, 5, 6, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player-frame { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - 140px); margin: 0 auto; background: #000; border-radius: var(--radius); overflow: hidden; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; }
.player-title { margin: 0; font-weight: 600; }
.player-close {
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4); background: transparent; color: var(--ink-text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.player-close:hover { background: var(--ink-text); color: var(--ink); }

/* Legal page */
.legal { padding: calc(var(--header-h) + 64px) 0 var(--section); }
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 48px 0 12px; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--paper-muted); }
.legal a { color: var(--paper-text); }

/* Responsive */
@media (max-width: 1024px) {
  .works { grid-template-columns: repeat(2, 1fr); }
  .client-logos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .intro, .services, .split, .contact-grid { grid-template-columns: 1fr; }
  .split-reverse .split-photo { order: 0; }
  .services-photo img, .split-photo img { aspect-ratio: 3 / 2; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .brand img { width: 136px; }
  .nav-hide-sm { display: none; }
  .works { grid-template-columns: 1fr; }
  .work-featured { grid-column: auto; grid-row: auto; }
  .work-featured .work-thumb { aspect-ratio: 16 / 9; flex: none; }
  .play { opacity: 1; transform: none; width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .client-logos { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .contact-list div { grid-template-columns: 1fr; gap: 4px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-inner p { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
