/* ==========================================================================
   Bridgecode M&A Center - home page sections
   ========================================================================== */

/* Scroll reveal ----------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Buttons keep their hover transition while still fading/sliding in. */
.button.reveal {
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

/* Staggered reveal delays (mirrors the original's reveal-delay-1..3).
   Compound selector so the delay wins over the button transition shorthand. */
.reveal.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
  background-color: var(--dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(21, 21, 21, 0.85) 0%, rgba(21, 21, 21, 0.4) 40%, rgba(0, 0, 0, 0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 60px;
}

.hero-headline {
  margin: 0 0 32px;
  font-size: var(--fs-heading-lg);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-headline-line {
  display: block;
}

.hero-cta {
  font-size: 19px;
  padding: 16px 36px;
}

.hero-mainbanner {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin-top: 40px;
}

/* Advisory overview (credentials) ----------------------------------------- */

.advisory-overview {
  background-color: var(--white);
  padding: 80px 0 60px;
}

.advisory-overview .eyebrow {
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(21, 21, 21, 0.5);
}

.advisory-overview .section-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 2.5vw + 15px, 48px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.advisory-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 60px;
}

.advisory-overview-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.advisory-overview-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 40px;
}

.advisory-overview-badge-label {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.advisory-overview-badge-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(21, 21, 21, 0.18);
  flex-shrink: 0;
}

.advisory-overview-badge-logos {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.advisory-overview-badge-logos img {
  height: 28px;
  width: auto;
}

.advisory-overview-paragraph {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(21, 21, 21, 0.75);
}

.advisory-overview-big-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin: 0;
  text-align: right;
}

.advisory-overview-big-value {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 96px;
  line-height: 1;
  color: var(--dark-95);
}

.advisory-overview-big-label {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(21, 21, 21, 0.5);
}

.company-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
}

/* Staggered reveal for each metric, mirroring the original's stagger-1..4. */
.company-metric.reveal:nth-child(1) {
  transition-delay: 0.1s;
}

.company-metric.reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.company-metric.reveal:nth-child(3) {
  transition-delay: 0.3s;
}

.company-metric.reveal:nth-child(4) {
  transition-delay: 0.4s;
}

.company-metric {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}

.company-metric-value {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.2;
  color: var(--dark-95);
}

.company-metric-label {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(21, 21, 21, 0.5);
}

/* Team -------------------------------------------------------------------- */

.team-section {
  background-color: var(--dark);
  padding: 80px 0 40px;
  overflow: hidden;
}

.team-section .eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.team-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}

.team-section .section-heading {
  margin: 0 0 20px;
  font-size: var(--fs-heading-lg);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}

.team-section-paragraph {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 0 0 24px;
}

.team-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-stat-value {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
}

.team-stat-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.advisor-strip {
  display: flex;
  align-items: flex-end;
  height: 300px;
  min-height: 300px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.advisor-card {
  flex: 1 1 0%;
  min-width: 0;
  height: 100%;
  transition: flex 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Expand-on-hover only where a real pointer exists — never on touch, where
   :hover is sticky and makes the strip resize erratically. */
@media (hover: hover) {
  .advisor-strip:hover .advisor-card {
    flex: 0.9 1 0%;
  }

  .advisor-strip:hover .advisor-card:hover {
    flex: 1.8 1 0%;
  }
}

.advisor-card-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.advisor-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: filter 400ms ease;
}

@media (hover: hover) {
  .advisor-strip:hover .advisor-card:not(:hover) .advisor-photo {
    filter: brightness(0.8);
  }
}

.advisor-photo-gradient {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(21, 21, 21, 0) 50%, #151515);
  pointer-events: none;
}

.advisor-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px 20px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* Reveal on hover (pointer) or tap/focus (touch) — never shown by default. */
.advisor-card-link:hover .advisor-card-body,
.advisor-card-link:focus .advisor-card-body,
.advisor-card-link:focus-within .advisor-card-body {
  opacity: 1;
  transform: none;
}

.advisor-card-titles {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  column-gap: 6px;
  row-gap: 0;
  white-space: nowrap;
}

.advisor-name,
.advisor-role {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  white-space: nowrap;
}

.advisor-tags {
  font-size: 14px;
  color: #c5c5c5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Partner marquee ---------------------------------------------------------- */

.partner-marquee {
  position: relative;
  background-color: var(--dark);
  padding: 40px 0 80px;
  overflow: hidden;
}

.partner-marquee-media {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  pointer-events: none;
}

.partner-marquee-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient dim: dark at the top (heading readability) and bottom, letting the
   video show through the middle band — mirrors the original. */
.partner-marquee-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(21, 21, 21, 0.97) 0%,
    rgba(21, 21, 21, 0.8) 8%,
    rgba(21, 21, 21, 0.45) 20%,
    rgba(21, 21, 21, 0.2) 40%,
    rgba(21, 21, 21, 0.2) 60%,
    rgba(21, 21, 21, 0.5) 100%
  );
}

.partner-marquee .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.partner-marquee .section-heading {
  color: var(--white);
  font-size: clamp(26px, 1.4vw + 19px, 36px);
}

.partner-marquee-paragraph {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--muted-light);
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 56px;
  max-width: 960px;
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
}

.partner-logo {
  flex-shrink: 0;
}

.partner-logo img {
  display: block;
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

/* Per-logo heights tuned to the original's optical balance. Order follows
   data.partners, so nth-child stays correct in every locale (unlike alt=). */
.partner-logo:nth-child(1) img {
  height: 38px;
}
.partner-logo:nth-child(2) img {
  height: 24px;
}
.partner-logo:nth-child(3) img {
  height: 24px;
}
.partner-logo:nth-child(4) img {
  height: 42px;
}
.partner-logo:nth-child(5) img {
  height: 38px;
}
.partner-logo:nth-child(6) img {
  height: 26px;
}
.partner-logo:nth-child(7) img {
  height: 24px;
}
.partner-logo:nth-child(8) img {
  height: 26px;
}
.partner-logo:nth-child(9) img {
  height: 20px;
}
.partner-logo:nth-child(10) img {
  height: 28px;
}
.partner-logo:nth-child(11) img {
  height: 36px;
}
.partner-logo:nth-child(12) img {
  height: 24px;
}

/* Deals -------------------------------------------------------------------- */

.deal-section {
  background-color: var(--white);
  padding: 80px 0;
  overflow-x: clip;
}

.deal-section .section-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-heading-lg);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.deal-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.deal-section-sub {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(21, 21, 21, 0.75);
}

.deal-section-sub-line {
  display: block;
}

.deal-tabs {
  display: flex;
  margin-bottom: 32px;
  border-bottom: 1px solid #efefef;
}

.deal-tab {
  position: relative;
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: rgba(21, 21, 21, 0.55);
  cursor: pointer;
  transition: color 0.2s ease;
}

.deal-tab::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.deal-tab:hover {
  color: var(--dark-95);
}

.deal-tab.is-active {
  color: var(--dark-95);
}

.deal-tab.is-active::after {
  transform: scaleX(1);
}

.deal-panel[hidden] {
  display: none;
}

.deal-panel {
  overflow-x: auto;
}

.deal-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 15px;
}

.deal-table th {
  padding: 8px 16px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(21, 21, 21, 0.55);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(21, 21, 21, 0.15);
}

.deal-table td {
  padding: 24px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
}

.deal-table tbody tr {
  transition: background-color 0.15s ease;
}

.deal-table tbody tr:hover {
  background-color: rgba(21, 21, 21, 0.025);
}

.deal-industry {
  width: 200px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
}

.deal-industry-line {
  display: block;
}

/* Buy deals can list several target industries — clamp to 3 lines with an
   ellipsis so tall stacks don't blow out the row height. The clamp lives on an
   inner box (a <td> can't be a reliable -webkit-box). */
.deal-industry-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.deal-summary {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-95);
}

.deal-project {
  width: 140px;
}

.deal-revenue,
.deal-budget {
  width: 130px;
}

.deal-region {
  width: 90px;
}

.deal-row-link:hover {
  color: var(--primary);
}

.deal-project,
.deal-buyer {
  color: rgba(21, 21, 21, 0.75);
  font-size: 14px;
  font-weight: 500;
}

.deal-revenue,
.deal-budget,
.deal-number {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-95);
}

.deal-region {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: rgba(21, 21, 21, 0.75);
}

.deal-arrow {
  color: rgba(21, 21, 21, 0.35);
  text-align: right;
}

.deal-more-mobile {
  display: none;
  margin-top: 24px;
  width: 100%;
}

/* Private deal CTA ---------------------------------------------------------- */

.private-deal-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 272px;
  margin-top: 24px;
  padding: 32px 40px;
  overflow: hidden;
  background-color: var(--dark);
}

.private-deal-media {
  position: absolute;
  inset: 0;
}

.private-deal-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover the whole banner: video zooms in, link turns to the accent + arrow
   drifts out — matches the original. */
.private-deal-cta:hover .private-deal-media video {
  transform: scale(1.04);
}

.private-deal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 28px 32px;
  background-color: var(--white);
}

.private-deal-eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.private-deal-heading {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--dark-95);
}

.private-deal-paragraph {
  margin: 0 0 20px;
  font-size: 16px;
  color: rgba(21, 21, 21, 0.75);
}

.private-deal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--dark);
  padding-bottom: 3px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.private-deal-cta:hover .private-deal-link,
.private-deal-link:hover {
  gap: 12px;
  color: var(--primary);
  border-color: var(--primary);
}

/* Advisory cases ------------------------------------------------------------ */

.advisory-cases {
  background-color: var(--dark);
  padding: 80px 0;
  overflow: hidden;
}

.advisory-cases-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.advisory-cases .section-heading {
  color: var(--white);
  font-size: var(--fs-heading-lg);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.case-marquee {
  position: relative;
  height: 58px;
  margin: 32px 0 48px;
  overflow: hidden;
}

/* Black fade on both edges so the text dissolves in/out at the sides. */
.case-marquee::before,
.case-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 96px;
  z-index: 2;
  pointer-events: none;
}

.case-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--dark) 0%, transparent 100%);
}

.case-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--dark) 0%, transparent 100%);
}

.case-marquee-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  will-change: transform;
  animation: case-marquee-scroll 30s linear infinite;
}

@keyframes case-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.case-marquee-text {
  flex-shrink: 0;
  margin: 0;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

.case-marquee-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e1512d;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .case-marquee-track {
    animation: none;
  }

  .case-marquee-text {
    white-space: normal;
  }

  .case-marquee-text[aria-hidden='true'],
  .case-marquee-dot {
    display: none;
  }
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 16px;
}

.case-card {
  display: flex;
  flex-direction: column;
}

.case-card-featured {
  grid-column: span 2;
}

.case-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.case-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover .case-card-media img {
  transform: scale(1.04);
}

.case-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0 8px;
}

.case-card-industry {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
}

/* Regular cards: sans title; featured cards: serif (matches the original). */
.case-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  transition: color 0.2s ease;
}

.case-card-featured .case-card-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 28px;
  line-height: 1.4;
}

.case-card:hover .case-card-title {
  color: rgba(255, 255, 255, 0.8);
}

.case-card-description {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.case-card-revenue {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}

.case-card-revenue-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.case-card-revenue-value {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
}

.case-card-featured .case-card-revenue-label {
  color: rgba(255, 255, 255, 0.6);
}

.case-card-featured .case-card-revenue-value {
  font-weight: 300;
  font-size: 36px;
}

.case-more-mobile,
.insight-more-mobile,
.team-more-mobile {
  display: none;
  margin-top: 32px;
  width: 100%;
}

/* Service cards -------------------------------------------------------------- */

.service-cards {
  background-color: var(--white);
  padding: 80px 0;
}

.service-cards .eyebrow {
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(21, 21, 21, 0.5);
}

.service-cards .section-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-heading-lg);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.service-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-media img {
  transform: scale(1.04);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 22px;
}

.service-card-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark-95);
}

.service-card-description {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(21, 21, 21, 0.75);
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 22px;
  border: 1px solid rgba(21, 21, 21, 0.35);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover .service-card-cta {
  background-color: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

/* Insights -------------------------------------------------------------------- */

.insight-section {
  background-color: var(--dark);
  padding: 80px 0;
}

.insight-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.insight-section .section-heading {
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-heading-lg);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.insight-grid {
  display: flex;
  gap: 32px;
  align-items: stretch;
}

.insight-card {
  display: flex;
}

/* Featured card: ~2/3, image on top + title below. */
.insight-card-featured {
  flex: 2 1 0;
  flex-direction: column;
  gap: 20px;
}

/* Right column: ~1/3, stacked small cards separated by hairline dividers. */
.insight-list {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insight-list .insight-card {
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-list .insight-card:first-child {
  padding-top: 0;
  border-top: none;
}

.insight-card-media {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.insight-card-featured .insight-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.insight-list .insight-card-media {
  width: 80px;
  height: 80px;
}

.insight-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card:hover .insight-card-media img {
  transform: scale(1.04);
}

.insight-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insight-card-tag {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

/* Regular (small) insight titles are sans; the featured one is serif. */
.insight-card-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--white);
  transition: color 0.2s ease;
}

.insight-card-featured .insight-card-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
}

.insight-card:hover .insight-card-title {
  color: rgba(255, 255, 255, 0.8);
}

/* Security --------------------------------------------------------------------- */

.security-section {
  position: relative;
  background-color: var(--dark);
  padding: 80px 0;
  overflow: hidden;
}

.security-section-media {
  position: absolute;
  inset: 0;
}

.security-section-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
}

.security-section .container {
  position: relative;
  z-index: 1;
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.security-section .section-heading {
  color: var(--white);
}

.security-sub {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--muted-light);
}

.security-sub-line {
  display: block;
}

.security-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

.security-item:first-child {
  padding-top: 0;
}

.security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--line-dark);
  background-color: rgba(255, 255, 255, 0.04);
}

.security-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.security-item-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.security-item-description {
  font-size: 14px;
  color: var(--muted-light);
}

.security-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
}

.security-partner-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.security-partner-text {
  font-size: 14px;
  color: var(--muted-light);
}

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

.faq {
  background-color: var(--white);
  padding: 80px 0;
}

.faq-list {
  margin-top: 48px;
  border-top: 1px solid rgba(21, 21, 21, 0.2);
}

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

.faq-question-heading {
  margin: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 19px;
  font-weight: 600;
  color: var(--dark-95);
  cursor: pointer;
}

.faq-highlight {
  font-style: normal;
  color: var(--primary);
}

.faq-chevron {
  flex-shrink: 0;
  color: rgba(21, 21, 21, 0.55);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question[aria-expanded='true'] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 40px 24px 4px;
}

.faq-answer p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--muted);
}

.faq-answer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  opacity: 0.8;
}

/* Contact CTA — shared component styles live in /css/contact-cta.css
   (used by the home page and the report detail page). */

/* Responsive ------------------------------------------------------------------------ */

@media (max-width: 991px) {
  .hero-inner {
    padding: 120px 40px 48px;
  }

  .advisory-overview-grid,
  .team-section-grid,
  .security-layout {
    grid-template-columns: 1fr;
  }

  .partner-logos {
    gap: 28px 36px;
  }

  .advisory-overview-grid {
    gap: 40px;
  }

  .advisory-overview-big-stat {
    align-items: flex-start;
    text-align: left;
  }

  .company-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advisor-strip {
    flex-wrap: wrap;
    align-items: stretch;
    height: auto;
    min-height: 0;
  }

  .advisor-card {
    flex: 0 0 20%;
    max-width: 20%;
    height: 280px;
    transition:
      flex-basis 0.5s cubic-bezier(0.16, 1, 0.3, 1),
      max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Static 5-across grid; neutralise any sticky :hover so tapping a card on
     touch never resizes the strip (matches the live static mobile layout). */
  .advisor-strip:hover .advisor-card,
  .advisor-strip:hover .advisor-card:hover {
    flex: 0 0 20%;
    max-width: 20%;
    z-index: auto;
  }

  .advisor-strip:hover .advisor-card:not(:hover) .advisor-photo {
    filter: none;
  }

  /* Hidden by default; revealed on tap/hover via the base rule (like the live
     mobile team). Cards stay static — no resize on tap. */
  .advisor-card-body {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 8px 8px;
  }

  /* Tablet + mobile: the section "more" button moves to the section bottom as a
     full-width button (team, deals, cases, insights), matching the live site. */
  .deal-section-header,
  .advisory-cases-header,
  .insight-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .deal-section-header .button,
  .advisory-cases-header .button,
  .insight-section-header .button,
  .team-section-right .button {
    display: none;
  }

  .deal-more-mobile,
  .case-more-mobile,
  .insight-more-mobile,
  .team-more-mobile {
    display: inline-flex;
    justify-content: center;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card-featured {
    grid-column: span 2;
  }

  .insight-grid {
    flex-direction: column;
  }

  .service-card-grid {
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 0;
  }

  .hero-inner {
    padding: 70px 20px 40px;
  }

  .hero-headline {
    margin-bottom: 24px;
  }

  .hero-cta {
    display: flex;
    width: 100%;
    font-size: 17px;
  }

  .hero-mainbanner {
    margin-top: 32px;
  }

  .advisory-overview,
  .deal-section,
  .advisory-cases,
  .service-cards,
  .insight-section,
  .security-section,
  .faq {
    padding: 40px 0;
  }

  .team-section {
    padding: 40px 0 20px;
  }

  .partner-marquee {
    padding: 20px 0 40px;
  }

  .advisory-overview-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .advisory-overview-badge-divider {
    width: 40px;
    height: 1px;
  }

  .advisory-overview-badge-label {
    font-size: 18px;
  }

  /* Shrink the certification logos on mobile (ratio kept via width:auto).
     기술보증기금(2번째)은 가로로 더 길어 같은 높이면 커 보이므로 조금 더 낮춰
     중소벤처기업부와 시각적 크기를 맞춘다. */
  .advisory-overview-badge-logos img {
    height: 22px;
  }

  .advisory-overview-badge-logos img:nth-child(2) {
    height: 18px;
  }

  .advisory-overview-paragraph {
    font-size: 16px;
  }

  .advisory-overview-big-value {
    font-size: 80px;
  }

  .advisory-overview-big-label {
    font-size: 16px;
  }

  .company-metric-label {
    font-size: 16px;
  }

  .partner-logos {
    gap: 20px 28px;
  }

  .partner-logo img {
    height: 16px;
  }
  .partner-logo:nth-child(1) img {
    height: 22px;
  }
  .partner-logo:nth-child(2) img {
    height: 14px;
  }
  .partner-logo:nth-child(3) img {
    height: 14px;
  }
  .partner-logo:nth-child(4) img {
    height: 24px;
  }
  .partner-logo:nth-child(5) img {
    height: 22px;
  }
  .partner-logo:nth-child(6) img {
    height: 15px;
  }
  .partner-logo:nth-child(7) img {
    height: 14px;
  }
  .partner-logo:nth-child(8) img {
    height: 15px;
  }
  .partner-logo:nth-child(9) img {
    height: 12px;
  }
  .partner-logo:nth-child(10) img {
    height: 16px;
  }
  .partner-logo:nth-child(11) img {
    height: 22px;
  }
  .partner-logo:nth-child(12) img {
    height: 14px;
  }

  .team-stats {
    gap: 20px 24px;
  }

  .advisor-card {
    height: 180px;
  }

  /* Stack name over role (2 lines) so neither is clipped on the narrow card. */
  .advisor-card-titles {
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
    column-gap: 0;
  }

  .advisor-name,
  .advisor-role {
    font-size: 14px;
    white-space: normal;
  }

  .advisor-tags {
    font-size: 12px;
    white-space: normal;
  }

  .team-stat-value {
    font-size: 24px;
  }

  .private-deal-cta {
    justify-content: stretch;
    padding: 24px 20px;
    min-height: 280px;
  }

  .private-deal-card {
    width: 100%;
    padding: 24px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card-featured {
    grid-column: auto;
  }

  .case-card-featured .case-card-title {
    font-size: 20px;
  }

  /* Shorter image + hidden blurb so mobile cards match the live compact card. */
  .case-card-media {
    aspect-ratio: 16 / 9;
  }

  .case-card-description {
    display: none;
  }

  .service-card-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .insight-card-media {
    width: 104px;
  }

  .case-marquee {
    height: 56px;
    margin-bottom: 40px;
  }

  .case-marquee-text {
    padding: 0 20px;
    font-size: 15px;
  }

  .faq-question {
    font-size: 17px;
    padding: 20px 4px;
  }

  .faq-answer {
    padding-right: 8px;
  }
}

/* Portrait phones — matches the original's smallest advisory-overview scale. */
@media (max-width: 479px) {
  .advisory-overview-big-value {
    font-size: 60px;
  }

  .company-metrics {
    gap: 24px;
  }

  .company-metric-value {
    font-size: 28px;
  }
}
