/* Zackfilms — Homepage (studio layout)
   Two themes driven by the site toggle: light by default, dark when <html class="dark">.
   Loaded after alexis-style.css on index.html only.
   Sections: hero (photo only) · 01 who we are · 02 clients · 03 recent work · 04 contact */

.home {
  /* light theme: warm paper + warm ink */
  --bg: #ede9e1;
  --bg-2: #e4dfd5;
  --fg: #141311;
  --fg-dim: #6f6a61;
  --rule: rgba(20, 19, 17, 0.14);
  --accent: #b8622a;
  --scrim: 20, 19, 17;
  --gutter: clamp(20px, 4vw, 56px);
  --measure: 1320px;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background 200ms ease-out, color 200ms ease-out;
}
html.dark .home {
  /* dark theme: matte charcoal + paper */
  --bg: #141311;
  --bg-2: #1c1a17;
  --fg: #ede9e1;
  --fg-dim: #a9a49a;
  --rule: rgba(237, 233, 225, 0.14);
  --accent: #c8763a;
}

/* ---------- header on the home palette ---------- */
.home .kinetic-header:not(.kinetic-header--light) .kinetic-logo,
.home .kinetic-header:not(.kinetic-header--light) .kinetic-menu-btn,
.home .kinetic-header:not(.kinetic-header--light) .kinetic-search-btn,
.home .kinetic-header:not(.kinetic-header--light) .kinetic-theme-toggle,
.home .kinetic-header.scrolled .kinetic-logo,
.home .kinetic-header.scrolled .kinetic-menu-btn,
.home .kinetic-header.scrolled .kinetic-search-btn,
.home .kinetic-header.scrolled .kinetic-theme-toggle {
  color: var(--fg);
}
/* over the hero photo the header is always light-on-photo (the scrim guarantees contrast) */
.home .kinetic-header:not(.scrolled) .kinetic-logo,
.home .kinetic-header:not(.scrolled) .kinetic-menu-btn,
.home .kinetic-header:not(.scrolled) .kinetic-search-btn,
.home .kinetic-header:not(.scrolled) .kinetic-theme-toggle {
  color: #ede9e1;
}
.home .kinetic-header.scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--rule);
}
.home .kinetic-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ---------- shared ---------- */
.home .wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.home .label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  font-weight: 500;
  margin: 0 0 clamp(28px, 4vw, 48px);
}
.home .label .num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.home .label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
  transform: translateY(-3px);
}
.home section {
  padding: clamp(56px, 8vw, 112px) 0;
  border-top: 1px solid var(--rule);
}
.home a {
  color: inherit;
  text-decoration: none;
}
.home .link-u {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--fg-dim);
  transition: text-decoration-color 160ms ease-out, color 160ms ease-out;
}
.home .link-u:hover {
  text-decoration-color: var(--accent);
  color: var(--accent);
}

/* ---------- hero: photo only ---------- */
.home-hero {
  padding: 0 !important;
  border-top: 0 !important;
  position: relative;
  background: var(--bg-2);
}
.home-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 92vh;
  overflow: hidden;
  background: var(--bg-2);
}
.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
}
.home-hero-media::after {
  /* keeps the nav legible on bright photos; not a decoration */
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(var(--scrim), 0.55), rgba(var(--scrim), 0));
  pointer-events: none;
}
.home-hero-caption {
  position: absolute;
  left: var(--gutter);
  bottom: 22px;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(237, 233, 225, 0.9);
  margin: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}
.home-hero-caption::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 720px) {
  .home-hero-media { aspect-ratio: 4 / 5; max-height: none; }
}

/* ---------- 01 who we are ---------- */
.home-who .cols {
  display: grid;
  grid-template-columns: 7fr 1fr 4fr;
  gap: 24px;
  align-items: start;
}
.home-who .statement {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 3.6vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
}
.home-who .statement em {
  font-style: italic;
  color: var(--accent);
}
.home-who .facts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--fg-dim);
  border-top: 1px solid var(--rule);
}
.home-who .facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.home-who .facts li span:last-child { color: var(--fg); text-align: right; }
@media (max-width: 900px) {
  .home-who .cols { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- 02 clients ---------- */
.home-clients .logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.home-clients .logos li {
  list-style: none;
  background: var(--bg);
  aspect-ratio: 5 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 26px;
}
.home-clients .logos img {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 160ms ease-out;
}
.home-clients .logos li:hover img { opacity: 1; }
/* one artwork per theme */
.home-clients .logos .logo-dark { display: none; }
html.dark .home-clients .logos .logo-light { display: none; }
html.dark .home-clients .logos .logo-dark { display: block; }
.home-clients .logos li.is-text {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-align: center;
}
.home-clients[hidden] { display: none; }

/* ---------- 03 recent work ---------- */
.home-work .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 10px;
}
.home-work .tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4 / 3;
}
.home-work .tile--tall { grid-row: span 2; aspect-ratio: auto; }
.home-work .tile--wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.home-work .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 220ms ease-out, filter 220ms ease-out;
}
.home-work .tile:hover img { transform: scale(1.025); }
.home-work .tile .cap {
  position: absolute;
  color: #ede9e1;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(var(--scrim), 0.75), rgba(var(--scrim), 0));
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.home-work .tile:hover .cap { opacity: 1; }
.home-work .more {
  margin-top: 28px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .home-work .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .home-work .tile--wide { grid-column: span 2; }
}

/* ---------- 04 contact ---------- */
.home-contact .cols {
  display: grid;
  grid-template-columns: 5fr 1fr 6fr;
  gap: 24px;
}
.home-contact .lead {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 24px;
}
.home-contact .ways {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fg-dim);
}
.home-contact .ways li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.home-contact .ways li:last-child { border-bottom: 1px solid var(--rule); }
.home-contact .ways span:first-child {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 3px;
}
.home-contact .ways a { color: var(--fg); }

/* form: reuse .contact-form from alexis-style but skin dark */
.home .contact-form {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.home .contact-form label {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: block;
  margin-bottom: 8px;
}
.home .contact-form input,
.home .contact-form textarea,
.home .contact-form select {
  width: 100%;
  background: transparent;
  color: var(--fg);
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 10px 0 12px;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 160ms ease-out;
}
.home .contact-form input::placeholder,
.home .contact-form textarea::placeholder { color: color-mix(in srgb, var(--fg-dim) 60%, transparent); }
.home .contact-form input:focus,
.home .contact-form textarea:focus,
.home .contact-form select:focus { border-bottom-color: var(--accent); }
.home .contact-form select option { background: var(--bg-2); color: var(--fg); }
.home .contact-form textarea { min-height: 120px; resize: vertical; }
.home .contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home .contact-form .btn {
  justify-self: start;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 0;
  padding: 14px 26px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out;
}
.home .contact-form .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.home .form-success { color: var(--fg); font-size: 0.9375rem; }
@media (max-width: 900px) {
  .home-contact .cols { grid-template-columns: 1fr; gap: 40px; }
  .home .contact-form-row { grid-template-columns: 1fr; }
}

/* ---------- footer on dark ---------- */
.home .alexis-footer {
  background: var(--bg);
  color: var(--fg-dim);
  border-top: 1px solid var(--rule);
}
.home .alexis-footer a,
.home .alexis-footer-logo,
.home .alexis-footer-social-label { color: var(--fg); }
.home .alexis-footer-copyright { color: var(--fg-dim); }
.home .alexis-back-to-top { color: var(--fg); border-color: var(--rule); }
.home .alexis-footer-bottom { border-color: var(--rule); }

/* ---------- reveal ----------
   .reveal is visible by default (no JS required). JS opts elements INTO the
   fade-in by adding .reveal-armed once it has actually started running, so a
   script failure/typo/404/ad-blocker can never leave content permanently
   hidden — worst case is just no animation. See feedback_scroll_reveal_failsafe. */
@media (prefers-reduced-motion: no-preference) {
  .home .reveal.reveal-armed { opacity: 0; transform: translateY(10px); transition: opacity 320ms ease-out, transform 320ms ease-out; }
  .home .reveal.reveal-armed.in-view { opacity: 1; transform: none; }
}

/* ---------- dark theme: beat alexis-style's html.dark overrides on the homepage ---------- */
html.dark body.home { background: var(--bg); color: var(--fg); }
html.dark .home .contact-form input,
html.dark .home .contact-form textarea,
html.dark .home .contact-form select {
  background: transparent !important; /* alexis-style sets #334155 !important */
  background-image: none !important;
  color: var(--fg);
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
}
html.dark .home .contact-form input:focus,
html.dark .home .contact-form textarea:focus,
html.dark .home .contact-form select:focus { border-bottom-color: var(--accent); box-shadow: none; }
html.dark .home .contact-form input::placeholder,
html.dark .home .contact-form textarea::placeholder { color: color-mix(in srgb, var(--fg-dim) 60%, transparent); }
html.dark .home .contact-form select option { background: var(--bg-2); color: var(--fg); }
html.dark .home .contact-form .btn--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
html.dark .home .contact-form .btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
html.dark .home h1, html.dark .home h2 { color: var(--fg); }
html.dark .home .contact-form label { color: var(--fg-dim); }
html.dark .home .alexis-footer { background: var(--bg); color: var(--fg-dim); }
html.dark .home .alexis-footer a,
html.dark .home .alexis-footer-logo,
html.dark .home .alexis-footer-social-label { color: var(--fg); }
html.dark .home .alexis-footer-copyright { color: var(--fg-dim); }
