/* ============================================================
   FINNS — Home / page sections
   ============================================================ */

/* ---------- Hero (shared) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__grid-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 70% 12%, rgba(201,162,74,0.18), transparent 60%),
    radial-gradient(50% 50% at 12% 90%, rgba(201,162,74,0.08), transparent 60%);
}
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 75% at 60% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(75% 75% at 60% 30%, #000 30%, transparent 78%);
  opacity: 0.6;
}

/* Variant A: centered, big statement */
.hero--a .hero__inner {
  position: relative; z-index: 1;
  text-align: center;
  padding-block: clamp(80px, 12vw, 160px);
  max-width: 940px; margin-inline: auto;
}
.hero--a h1 { margin-block: 22px 22px; }
.hero--a .hero__cta { justify-content: center; }
.hero--a .hero__strip { justify-content: center; }

/* Variant B: split — text left, visual panel right */
.hero--b .hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(64px, 9vw, 120px);
}
.hero--b .hero__panel {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(90% 70% at 80% 0%, rgba(201,162,74,0.2), transparent 60%),
    var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Variant C: minimal editorial — left aligned, no panel */
.hero--c .hero__inner {
  position: relative; z-index: 1;
  max-width: 880px;
  padding-block: clamp(80px, 11vw, 150px);
}
.hero--c h1 { margin-block: 24px; }

.hero h1 { letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--gold); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__strip {
  display: flex; flex-wrap: wrap; gap: 28px 40px;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.hero__stat .n {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700; line-height: 1;
  color: #fff;
}
.hero__stat .n span { color: var(--gold); }
.hero__stat .l { font-size: 0.82rem; color: var(--text-dim); margin-top: 6px; letter-spacing: 0.02em; }

/* image placeholder (for user's freepik assets) */
.ph {
  position: relative;
  background-color: var(--bg-elev-2);
  background-image: repeating-linear-gradient(
    135deg, rgba(201,162,74,0.07) 0 2px, transparent 2px 11px);
  display: grid; place-items: center;
  color: var(--text-dim);
  font-family: var(--font-body);
  border-radius: inherit;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
  border: 1px dashed var(--line-2);
  padding: 8px 14px; border-radius: 8px;
  color: var(--text-dim);
  background: rgba(0,0,0,0.25);
}
.ph--fill { position: absolute; inset: 0; }

/* ---------- Hero media slider (optional, off by default) ---------- */
.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slider[data-hero-slider="off"] { display: none; }
.hero-slider__track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slider__overlay { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,12,15,0.95) 0%, rgba(11,12,15,0.78) 45%, rgba(11,12,15,0.5) 100%),
  linear-gradient(0deg, rgba(11,12,15,0.85), transparent 60%); }
.hero-slider__dots { position: absolute; left: var(--gutter); bottom: 26px; display: flex; gap: 9px; z-index: 2; }
.hero-slider__dots button { width: 28px; height: 4px; border-radius: 2px; border: 0; background: rgba(255,255,255,0.28); cursor: pointer; padding: 0; transition: background 0.2s; }
.hero-slider__dots button.is-active { background: var(--gold); }
/* when slider is on, lift hero text above it */
.hero-slider[data-hero-slider="on"] ~ .hero__inner { position: relative; z-index: 1; }
.shead { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.shead--center { margin-inline: auto; text-align: center; }
.shead h2 { margin-top: 16px; }
.shead p { margin-top: 18px; }

/* ---------- Divisions (two pillars) ---------- */
.divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.division {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  padding: 38px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.division:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.division__tag {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: var(--gold);
}
.division h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin: 12px 0 14px; }
.division > p { color: var(--text-muted); font-size: 0.98rem; }
.division__list { margin-top: 22px; display: grid; gap: 2px; }
.division__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
}
.division__list li svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.division__more { margin-top: 26px; display: inline-flex; }

/* ---------- Service grid (all services) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 28px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.svc:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.svc__ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  display: grid; place-items: center; color: var(--gold-bright);
  margin-bottom: 18px;
}
.svc__ico svg { width: 23px; height: 23px; }
.svc h4 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 600; }
.svc p { color: var(--text-muted); font-size: 0.92rem; margin-top: 8px; }

/* ---------- Why us / value ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value__n {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700; color: var(--gold);
  letter-spacing: 0.1em;
}
.value h4 { font-family: var(--font-body); font-size: 1.1rem; margin: 14px 0 8px; }
.value p { color: var(--text-muted); font-size: 0.9rem; }
.value { padding-top: 22px; border-top: 1px solid var(--gold-line); }

/* ---------- BizCore feature band ---------- */
.bizcore {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-line);
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(201,162,74,0.16), transparent 55%),
    var(--bg-elev);
}
.bizcore__inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
  padding: clamp(34px, 5vw, 60px);
}
.bizcore .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-bright);
  border: 1px solid var(--gold-line); border-radius: 999px; padding: 6px 14px;
}
.bizcore h2 { margin: 20px 0 16px; }
.bizcore p { color: var(--text-muted); max-width: 46ch; }
.bizcore__suites {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.suite {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
  font-size: 0.9rem;
}
.suite .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.suite b { color: #fff; font-weight: 600; }
.bizcore__count {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 700; line-height: 1;
  color: #fff;
}
.bizcore__count span { color: var(--gold); }

/* ---------- Portfolio teaser ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.pcard {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.pcard:nth-child(1) { grid-column: span 7; min-height: 340px; }
.pcard:nth-child(2) { grid-column: span 5; min-height: 340px; }
.pcard:nth-child(3) { grid-column: span 4; }
.pcard:nth-child(4) { grid-column: span 4; }
.pcard:nth-child(5) { grid-column: span 4; }
.pcard__overlay {
  position: relative; z-index: 1;
  padding: 22px;
  background: linear-gradient(0deg, rgba(8,9,11,0.92), rgba(8,9,11,0.0));
}
.pcard__cat { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.pcard h4 { font-family: var(--font-body); font-size: 1.12rem; margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  padding: clamp(50px, 7vw, 90px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(201,162,74,0.2), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--gold-line);
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { color: var(--text-muted); margin: 18px auto 0; max-width: 52ch; }
.cta-band .hero__cta { justify-content: center; margin-top: 32px; }

/* ---------- Logo / trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 38px; justify-content: center; opacity: 0.8; }
.trust__item {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--text-dim); letter-spacing: 0.02em;
}

/* ---------- Page hero (inner pages) ---------- */
.pagehero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.pagehero__inner { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 110px); max-width: 760px; }
.pagehero h1 { margin: 18px 0 18px; }
.breadcrumb { font-size: 0.84rem; color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Stub note ---------- */
.stub {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 40px;
  background: var(--bg-elev);
  text-align: center;
  color: var(--text-muted);
}
.stub .eyebrow { justify-content: center; }
.stub .eyebrow::before { display: none; }

/* ---------- reveal (subtle, gentle — respects reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero variant visibility (switcher) ---------- */
.hero[data-variant] { display: none; }
.hero.is-shown { display: block; }

/* preview-only variant switcher */
.vswitch {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 18px; z-index: 260;
  display: flex; align-items: center; gap: 6px;
  background: rgba(19,21,25,0.95);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 7px 8px 7px 16px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.vswitch__label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; margin-right: 4px; }
.vswitch button {
  border: 0; background: transparent; color: var(--text-muted);
  font-weight: 600; font-size: 0.84rem; padding: 7px 13px; border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.vswitch button.is-active { background: var(--gold); color: #1A1405; }

/* ---------- Testimonials ---------- */
.tcarousel { position: relative; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard {
  display: flex; flex-direction: column; gap: 18px;
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-elev); position: relative; overflow: hidden;
}
.tcard__quote-mark { font-family: var(--font-display); font-size: 4rem; line-height: 0.6; color: var(--gold-line); height: 28px; }
.tcard__text { color: var(--text); font-size: 1.02rem; line-height: 1.6; flex: 1; }
.tcard__stars { display: flex; gap: 3px; color: var(--gold); }
.tcard__stars svg { width: 16px; height: 16px; }
.tcard__who { display: flex; align-items: center; gap: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.tcard__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  display: grid; place-items: center; color: var(--gold-bright);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.tcard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tcard__name { font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; }
.tcard__role { color: var(--text-dim); font-size: 0.84rem; margin-top: 2px; }
@media (max-width: 980px) { .tgrid { grid-template-columns: 1fr; } }
@media (max-width: 980px) {
  .hero--b .hero__inner { grid-template-columns: 1fr; }
  .hero--b .hero__panel { order: -1; aspect-ratio: 16/10; }
  .divisions { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .bizcore__inner { grid-template-columns: 1fr; }
  .portfolio-grid > .pcard { grid-column: 1 / -1 !important; min-height: 240px !important; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .bizcore__suites { grid-template-columns: 1fr; }
  .hero__strip { gap: 22px 28px; }
  .vswitch { left: 12px; right: 12px; transform: none; justify-content: center; }
}
