/* Brooklyn Alpha Media — Homepage styles */

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 300;
  width: 0%;
  transition: width 60ms linear;
  pointer-events: none;
}

/* ── Hero ── */
.v2-hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 72px;
}

.v2-hero-bg {
  position: absolute;
  inset: 0;
}

.v2-hero-bg .photo-slot {
  width: 100%;
  height: 100%;
  border: none;
}

.hero-slide[data-slide="0"] img,
.hero-slide[data-slide="1"] img {
  object-position: center 30%;
}

.v2-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,11,0.25) 0%,
    rgba(10,10,11,0.1) 35%,
    rgba(10,10,11,0.6) 70%,
    rgba(10,10,11,0.92) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Film-shutter wipe overlay (covers the bg during slide swap) */
.hero-shutter {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--bg);
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
.hero-shutter.wipe-in {
  animation: hero-shutter-in .28s var(--ease-in-out) forwards;
}
.hero-shutter.wipe-out {
  animation: hero-shutter-out .28s var(--ease-in-out) forwards;
}
@keyframes hero-shutter-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes hero-shutter-out {
  from { clip-path: inset(0 0 0 0); }
  to   { clip-path: inset(0 0 0 100%); }
}

.v2-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 1200px;
}

.v2-hero-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(245,244,240,0.65);
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

.v2-hero-headlines {
  position: relative;
  min-height: clamp(110px, 18vw, 240px);
  margin: 0 0 28px;
}

.v2-hero-headline {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: var(--headline-opacity, 0);
  transition: opacity .18s var(--ease-in-out);
  font-family: var(--sans);
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--fg);
}

.v2-hero-headline[data-slide="0"] {
  --headline-opacity: 1;
  font-size: clamp(44px, 7vw, 96px);
}

.v2-hero-headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(245,244,240,0.78);
}

.v2-hero-sub {
  font-family: var(--sans);
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(245,244,240,0.72);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 0 40px;
  font-weight: 400;
}

.v2-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Specialty tab chips inside hero */
.hero-tabs {
  margin: 0 0 28px;
  flex-wrap: wrap;
}
.hero-tabs .chip {
  min-height: 44px;
}

@media (max-width: 600px) {
  .v2-hero {
    padding-bottom: 48px;
  }
  .hero-tabs {
    margin-bottom: 24px;
  }
}

/* ── Category strip (static, replaces text marquee) ── */
.v2-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 32px 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  z-index: 2;
}

.v2-cat-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.v2-cat-tile .photo-slot { transition: opacity .2s; }
.v2-cat-tile:hover .photo-slot { opacity: .82; }

.v2-cat-meta {
  padding: 14px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v2-cat-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.v2-cat-title em {
  font-style: normal;
  color: var(--accent);
  margin-left: 6px;
  transition: transform .2s;
  display: inline-block;
}

.v2-cat-tile:hover .v2-cat-title em { transform: translateX(4px); }

.v2-cat-desc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-3);
}

@media (max-width: 900px) {
  .v2-cats {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 12px;
  }
  .v2-cat-tile .photo-slot { min-height: 220px !important; }
}

/* ── Work grid ── */
.v2-work {
  padding: 80px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.v2-work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  flex-wrap: wrap;
}

.v2-work-header h2 {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
}

.v2-work-header h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-2);
  font-weight: 400;
}

.v2-work-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.v2-work-grid .work-cell-tall {
  grid-row: span 2;
}

.v2-work-cell {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}

.v2-work-cell .photo-slot {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: none;
  transition: transform 0.6s var(--ease-out);
}

.work-cell-tall .photo-slot {
  min-height: 520px;
}

.v2-work-cell:hover .photo-slot {
  transform: scale(1.03);
}

.v2-work-cell-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  z-index: 2;
}

.v2-work-cell:hover .v2-work-cell-meta,
.v2-work-cell:focus-visible .v2-work-cell-meta {
  opacity: 1;
}

.v2-work-cell-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.v2-work-cell-cat {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}

/* ── Specialties ── */
.v2-spec {
  border-top: 1px solid var(--line);
}

.v2-spec-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 64px 60px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
  position: relative;
}

.v2-spec-row:hover {
  background: rgba(255,255,255,0.015);
}

.v2-spec-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--accent);
  text-transform: uppercase;
  align-self: flex-start;
  padding-top: 6px;
}

.v2-spec-body {
  padding-right: 60px;
}

.v2-spec-body h3 {
  font-family: var(--sans);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  line-height: 1;
}

.v2-spec-body h3 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-2);
  font-weight: 400;
}

.v2-spec-desc {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 0 28px;
}

.v2-spec-photo {
  height: 320px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}

.v2-spec-row:hover .v2-spec-photo {
  opacity: 1;
}

.v2-spec-photo .photo-slot {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Pull quote ── */
.v2-quote-wrap {
  padding: 0 60px;
}

/* ── Promise strip (replaces stats) ── */
.v2-promise {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.v2-promise-item {
  background: var(--bg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
}

.v2-promise-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--accent);
  text-transform: uppercase;
}

.v2-promise-label {
  font-family: var(--sans);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}

.v2-promise-label em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-2);
  font-weight: 400;
}

.v2-promise-note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
  margin-top: auto;
}

/* ── About split ── */
.v2-about {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.v2-about-left {
  padding: 80px 60px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.v2-about-text h2 {
  font-family: var(--sans);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  line-height: 1.1;
}

.v2-about-text h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-2);
  font-weight: 400;
}

.v2-about-text p {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 520px;
}

.v2-about-right {
  position: relative;
  overflow: hidden;
}

.v2-about-right .photo-slot {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
  border-left: 1px solid var(--line);
}

/* ── CTA section ── */
.v2-cta {
  padding: 120px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.v2-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(255,60,31,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.v2-cta-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .35em;
  color: var(--accent);
  text-transform: uppercase;
}

.v2-cta h2 {
  font-family: var(--sans);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  max-width: 800px;
}

.v2-cta h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-2);
  font-weight: 400;
}

.v2-cta-location {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--fg-3);
  text-transform: uppercase;
}

.v2-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Service areas strip ── */
.v2-areas {
  padding: 24px 60px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--bg-2);
}

.v2-areas-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--fg-3);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.v2-areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── FAQ section ── */
.v2-faq {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.v2-faq-header {
  padding: 64px 60px 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.v2-faq-header h2 {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
}

.v2-faq-header h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-2);
  font-weight: 400;
}

.v2-faq-header .sec-lede {
  max-width: 320px;
}

.v2-faq .faq-item {
  border-bottom: 1px solid var(--line);
}

.v2-faq .faq-item:last-child {
  border-bottom: none;
}

.v2-faq .faq-q {
  display: grid;
  grid-template-columns: 56px 1fr 32px;
  gap: 20px;
  padding: 28px 60px;
  align-items: flex-start;
  cursor: pointer;
  transition: background .12s;
  user-select: none;
  -webkit-user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
}

.v2-faq .faq-q:hover,
.v2-faq .faq-q:focus-visible {
  background: rgba(255,255,255,0.02);
}

.v2-faq .faq-idx {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: .2em;
  padding-top: 5px;
}

.v2-faq .faq-item.open .faq-idx {
  color: var(--accent);
}

.v2-faq .faq-q h3 {
  font-family: var(--sans);
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
}

.v2-faq .faq-q h3 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-2);
  font-weight: 400;
}

.v2-faq .faq-toggle {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  text-align: right;
  padding-top: 2px;
  line-height: 1;
}

.v2-faq .faq-toggle::after { content: "+"; }
.v2-faq .faq-item.open .faq-toggle::after { content: "−"; }

.v2-faq .faq-a {
  display: none;
  padding: 0 60px 28px calc(60px + 56px + 20px);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 680px;
}

.v2-faq .faq-item.open .faq-a {
  display: block;
}

@media (max-width: 768px) {
  .v2-faq-header { padding: 48px 24px 28px; }
  .v2-faq .faq-q { padding: 22px 24px; grid-template-columns: 40px 1fr 24px; gap: 12px; }
  .v2-faq .faq-a { padding: 0 24px 24px calc(24px + 40px + 12px); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .v2-work-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .v2-work-grid .work-cell-tall {
    grid-column: span 2;
    grid-row: span 1;
  }
  .v2-work-grid .work-cell-tall .photo-slot {
    min-height: 380px;
  }
  .v2-spec-row {
    grid-template-columns: 60px 1fr;
    padding: 48px 40px;
  }
  .v2-spec-photo { display: none; }
  .v2-about {
    grid-template-columns: 1fr;
  }
  .v2-about-right { display: none; }
  .v2-promise { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .v2-hero-content { padding: 0 24px; }
  .v2-work { padding: 56px 24px; }
  .v2-work-grid { grid-template-columns: 1fr; }
  .v2-work-grid .work-cell-tall { grid-column: span 1; }
  .v2-spec-row {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 16px;
  }
  .v2-spec-num { padding-top: 0; }
  .v2-spec-body { padding-right: 0; }
  .v2-quote-wrap { padding: 0 24px; }
  .v2-about-left { padding: 56px 24px; }
  .v2-cta { padding: 80px 24px; }
  .v2-areas { padding: 20px 24px; gap: 16px; }
  .v2-promise { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .v2-hero-headline { font-size: clamp(40px, 11vw, 64px); }
  .v2-hero-headline[data-slide="1"] { font-size: clamp(37px, 10vw, 58px); }
  .v2-hero-headlines { min-height: clamp(96px, 26vw, 160px); }
  .v2-hero-actions { flex-direction: column; align-items: flex-start; }
  .v2-promise { grid-template-columns: 1fr; }
}
