/* ==========================================================================
   Home page design layer

   Loaded only by the homepage (via _home_shell.html), after style.css.
   style.css stays the shared foundation — header, player, forms, admin —
   and this file is everything specific to the landing page: the hero, the
   section rhythm, the step timeline, the FAQ and the closing card.

   Everything is scoped to .is-home so a future tweak here cannot reach the
   portfolio or the admin hub.

   Cascade note: style.css styles the same elements with .is-public, so the
   selectors below are written as .is-home .x to win the tie by being later
   in the order rather than by an !important.
   ========================================================================== */

.is-home {
  /* A single ambient light source for the whole page, so sections read as
     one surface instead of a stack of independent boxes. */
  --glow-a: rgba(255, 31, 31, 0.16);
  --glow-b: rgba(120, 60, 255, 0.10);
  --text-soft: #b6b6c1;
  --text-dim: #8e8e9a;
}

.is-home main { position: relative; }

/* ---------- Reveal on scroll ---------- */

/* The hidden state is applied only once JS has confirmed it will un-hide it
   again (_home_shell.html sets .has-js on <html>). Without JS — or if home.js
   fails to load — the page must still be fully readable, so nothing is hidden
   by default. */
.has-js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.has-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Hero ---------- */

.is-home .hero-v2 {
  position: relative;
  padding: clamp(64px, 10vw, 118px) 0 clamp(56px, 8vw, 92px);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  isolation: isolate;
}

/* A faint technical grid. It reads as "studio desk" without ever pulling
   attention off the wordmark, because it fades out before the edges. */
.is-home .hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 78% at 50% 22%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 78% at 50% 22%, #000 12%, transparent 78%);
  pointer-events: none;
}

/* Two off-centre lights instead of the old single centred halo: the red one
   sits under the wordmark, the cool one lower down so long pages keep a
   sense of depth further down. */
.is-home .hero-v2::before,
.is-home .hero-v2::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
}
.is-home .hero-v2::before {
  top: -220px;
  left: 50%;
  width: min(900px, 120vw);
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow-a), transparent 72%);
  animation: heroBreathe 7s ease-in-out infinite;
}
.is-home .hero-v2::after {
  bottom: -260px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(closest-side, var(--glow-b), transparent 70%);
}

@keyframes heroBreathe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .is-home .hero-v2::before { animation: none; }
}

.is-home .hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.is-home .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
  color: #c3c3cd;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.is-home .hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 31, 31, 0.55);
  animation: eyebrowPing 2.4s ease-out infinite;
}

@keyframes eyebrowPing {
  0%   { box-shadow: 0 0 0 0 rgba(255, 31, 31, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 31, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 31, 31, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .is-home .hero-eyebrow-dot { animation: none; }
}

.is-home .hero-wordmark {
  margin: 0 0 20px;
  font-size: clamp(54px, 13.5vw, 124px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}
.is-home .hero-wordmark .hl {
  color: var(--accent);
  text-shadow: 0 0 34px rgba(255, 31, 31, 0.75);
}

.is-home .hero-sub {
  max-width: 58ch;
  margin: 0 auto 34px;
  font-size: clamp(16px, 2.1vw, 19.5px);
  line-height: 1.66;
  color: var(--text-soft);
}

.is-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0 0 30px;
}

/* ---------- Buttons ---------- */

.is-home .btn-lg {
  padding: 15px 30px;
  font-size: 15.5px;
  border-radius: 12px;
}

/* ---------- Hero: proof chips and counters ---------- */

.is-home .hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 46px;
  padding: 0;
}
.is-home .hero-chips li {
  padding: 6px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--text-dim);
  font-size: 13px;
  white-space: nowrap;
}

.is-home .hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 26px 12px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-md);
}
.is-home .hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 168px;
  padding: 0 26px;
}
.is-home .hero-stat + .hero-stat { border-left: 1px solid var(--hairline); }
.is-home .hero-stat dt {
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.is-home .hero-stat dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------- Section rhythm ---------- */

.is-home .section { padding: clamp(56px, 8vw, 92px) 0; }

.is-home .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0 0 34px;
}
.is-home .section-head .page-sub { margin: 0; }
.is-home .section-head .section-title { margin-bottom: 12px; }

/* ---------- Featured works ---------- */

.is-home .works-section { padding-top: clamp(48px, 7vw, 76px); }
.is-home .section-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* An empty portfolio is the state this site is in right now, so it gets a
   real call to action instead of a grey "nothing here" note. */
.is-home .empty-v2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background:
    radial-gradient(520px 200px at 0% 0%, rgba(255, 31, 31, 0.07), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.is-home .empty-v2 p { margin: 0; max-width: 62ch; color: var(--text-dim); line-height: 1.68; }
.is-home .empty-v2 .empty-lead {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
}
.is-home .empty-v2 .btn { margin-top: 6px; }

/* ---------- Services ---------- */

.is-home .service {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
}

.is-home .service p {
  font-size: 14.5px;
  line-height: 1.64;
  margin: 0 0 18px;
}

.is-home .service-list {
  list-style: none;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 9px;
}
.is-home .service-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
/* A check drawn from two borders: no icon font, no extra request, and it
   inherits the accent colour when the card is hovered. */
.is-home .service-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 9px;
  height: 5px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
  opacity: 0.85;
}

/* ---------- Process steps ---------- */

.is-home .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.is-home .step {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.is-home .step:hover {
  border-color: rgba(255, 31, 31, 0.34);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* A marker that sits on the top edge, so the row reads as a timeline
   rather than four unrelated cards. */
.is-home .step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -13px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(255, 31, 31, 0.5);
}

.is-home .step h3 {
  margin: 8px 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
}
.is-home .step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.64;
  color: var(--text-dim);
}

/* ---------- About ---------- */

.is-home .about-text p { margin: 0 0 16px; }
.is-home .about-text .about-lead {
  font-size: 19px;
  line-height: 1.6;
  color: #d2d2da;
  letter-spacing: -0.015em;
}

.is-home .about-facts { display: grid; gap: 0; }
.is-home .about-fact {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}
.is-home .about-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.is-home .about-fact:first-child { padding-top: 0; }
.is-home .about-fact dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 2px;
}
.is-home .about-fact dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ---------- FAQ ---------- */

.is-home .faq {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.is-home .faq-item {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.is-home .faq-item:hover { border-color: rgba(255, 255, 255, 0.13); }
.is-home .faq-item[open] {
  border-color: rgba(255, 31, 31, 0.3);
  background: var(--surface-2);
}

.is-home .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.18s ease;
}
.is-home .faq-item summary::-webkit-details-marker { display: none; }
.is-home .faq-item summary:hover { color: #fff; }
.is-home .faq-item[open] summary { color: #fff; }

/* Plus that becomes a minus, so the state of the accordion is readable
   without the arrow rotation that screen readers announce as noise. */
.is-home .faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  position: relative;
  width: 15px;
  height: 15px;
}
.is-home .faq-item summary::after::before,
.is-home .faq-item summary::after::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: transform 0.24s var(--ease), opacity 0.24s ease;
}
.is-home .faq-item summary::after::after { transform: translateY(-50%) rotate(90deg); }
.is-home .faq-item[open] summary::after::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }

.is-home .faq-body {
  padding: 0 22px 20px;
  border-top: 1px solid var(--hairline);
  margin-top: -1px;
}
.is-home .faq-body p {
  margin: 14px 0 0;
  max-width: 74ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
}
.is-home .faq-body p:first-child { color: var(--text-soft); }

/* ---------- Closing card ---------- */

.is-home .cta-section {
  position: relative;
  padding-bottom: clamp(60px, 9vw, 104px);
  border: 0;
  background: transparent;
}

.is-home .cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5.5vw, 62px) clamp(24px, 4.5vw, 56px);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--panel);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.is-home .cta-glow {
  position: absolute;
  left: 50%;
  bottom: -58%;
  width: min(760px, 130%);
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 31, 31, 0.2), transparent 72%);
  pointer-events: none;
}

.is-home .cta-title {
  position: relative;
  font-size: clamp(26px, 4.4vw, 40px);
  margin-bottom: 14px;
}
.is-home .cta-text {
  position: relative;
  max-width: 58ch;
  margin: 0 auto 28px;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.68;
  color: var(--text-soft);
}
.is-home .cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Sticky header state ---------- */

/* The header is 66px tall and nearly touches the first line of the hero.
   Once the page moves it tightens, so the content under it is not fighting
   a permanent 66px band. */
.is-home .site-header {
  transition: background 0.25s ease, border-color 0.25s ease;
}
.is-home .site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.86);
  border-bottom-color: var(--border);
}
.is-home .site-header.is-scrolled .header-inner { height: 58px; }

/* ---------- Footer ---------- */

.is-home .site-footer { padding: 44px 0 26px; }

.is-home .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 46ch;
}
.is-home .footer-logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #fff;
}
.is-home .footer-copy {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.is-home .footer-inner { align-items: flex-start; }
.is-home .footer-nav a { font-size: 14px; }

.is-home .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: #6f6f7a;
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  /* Four timeline cards stop being a timeline at this width — the row
     becomes a single column with the marker on the left rail instead. */
  .is-home .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .is-home .hero-chips { margin-bottom: 36px; }
  .is-home .hero-stat { min-width: 0; flex: 1 1 30%; padding: 0 14px; }
  .is-home .hero-stat + .hero-stat { border-left: 0; }
  .is-home .hero-stats { padding: 20px 8px; gap: 14px 0; }
  .is-home .section-head { align-items: flex-start; flex-direction: column; }
  .is-home .genre-tabs { align-self: flex-start; }
}

@media (max-width: 640px) {
  .is-home .steps { grid-template-columns: 1fr; gap: 22px; }
  .is-home .step { padding: 24px 20px 22px; }
  .is-home .step::before { left: 20px; }
  .is-home .about { grid-template-columns: 1fr; }
  .is-home .about-fact { grid-template-columns: 1fr; gap: 4px; }
  .is-home .hero-actions .btn { min-width: 0; flex: 1 1 100%; }
  .is-home .cta-actions .btn { min-width: 0; flex: 1 1 100%; }
  .is-home .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
  /* Long labels wrap badly in a three-column stat box, so the numbers stack
     in a plain vertical list on the narrowest phones. */
  .is-home .hero-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 18px;
  }
  .is-home .hero-stat {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .is-home .hero-stat:last-child { border-bottom: 0; }
}