/**
 * Premium investor-facing section styling for dev.html
 */

/* ── Section shell ─────────────────────────────────────────────── */
.fdc-section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 2.5rem);
  max-width: 1180px;
  margin: 0 auto;
  isolation: isolate;
}

.fdc-section__backdrop {
  position: absolute;
  inset: -2rem -1rem;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 28px);
}

.fdc-section__glow {
  display: none !important;
}

.fdc-section__glow--green,
.fdc-section__glow--gold,
.fdc-section__glow--slate {
  display: none !important;
}

.fdc-section__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.28;
  transform: translateZ(0);
}

.fdc-section__glow--green {
  width: min(520px, 70vw);
  height: min(320px, 45vw);
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, rgba(59, 195, 130, 0.28) 0%, transparent 70%);
}

.fdc-section__glow--gold {
  width: min(440px, 65vw);
  height: min(280px, 40vw);
  bottom: -6%;
  left: -4%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, transparent 72%);
}

.fdc-section__glow--slate {
  width: min(480px, 68vw);
  height: min(300px, 42vw);
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(120, 140, 170, 0.18) 0%, transparent 70%);
}

.fdc-section__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.fdc-section__inner {
  position: relative;
  z-index: 1;
}

/* ── Section header ──────────────────────────────────────────────── */
.fdc-section__header {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 720px;
}

.fdc-section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200, 245, 224, 0.85);
  margin-bottom: 0.85rem;
}

.fdc-section__kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 195, 130, 0.9), transparent);
}

.fdc-section--contact .fdc-section__kicker {
  color: rgba(253, 230, 138, 0.9);
}

.fdc-section--contact .fdc-section__kicker::before {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.9), transparent);
}

.fdc-section__title,
.fdc-section__header .group-title {
  margin: 0 0 0.65rem !important;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem) !important;
  font-weight: 300 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: #fff !important;
  opacity: 1 !important;
  line-height: 1.15;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(59, 195, 130, 0.12);
}

.fdc-section--portfolio .fdc-section__title,
.fdc-section--portfolio .fdc-section__header .group-title {
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(86, 220, 162, 0.14);
}

.fdc-section--contact .fdc-section__title,
.fdc-section--contact .fdc-section__header .group-title {
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(251, 191, 36, 0.12);
}

.fdc-section__lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  color: rgba(240, 245, 250, 0.72);
  max-width: 52ch;
  font-weight: 400;
}

/* ── Glass panel wrapping tile carousel ─────────────────────────── */
.fdc-section__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.75rem, 2vw, 1.25rem) clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: clamp(14px, 1.8vw, 22px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.12) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  isolation: isolate;
}

.fdc-section__panel::after {
  content: none;
  display: none;
}

.fdc-section--portfolio .fdc-section__panel::after {
  content: none;
  display: none;
}

.fdc-section--contact .fdc-section__panel::after {
  content: none;
  display: none;
}

@keyframes fdcPanelBorderSpin {
  to { transform: rotate(360deg); }
}

.fdc-section__panel > * {
  position: relative;
  z-index: 1;
}

.fdc-section--team .fdc-section__panel {
  border-color: rgba(59, 195, 130, 0.18);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(59, 195, 130, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
}

.fdc-section--portfolio .fdc-section__panel {
  border-color: rgba(86, 220, 162, 0.16);
}

.fdc-section--contact .fdc-section__panel {
  border-color: rgba(251, 191, 36, 0.2);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(251, 191, 36, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.fdc-section__panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  border-radius: 1px;
  pointer-events: none;
}

.fdc-section__panel .tile-group-container {
  margin: 0 auto;
  transform: none;
  width: 100%;
}

.fdc-section__panel .tg-tile-content {
  margin-top: 0;
  padding-top: clamp(0.75rem, 2vw, 1.25rem) !important;
}

/* ── Credibility / meta rows ───────────────────────────────────── */
.fdc-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.fdc-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 250, 245, 0.88);
  background: rgba(20, 28, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.fdc-meta-chip:hover {
  border-color: rgba(59, 195, 130, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.fdc-meta-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3bc382;
  box-shadow: 0 0 8px rgba(59, 195, 130, 0.65);
}

.fdc-section--contact .fdc-meta-chip {
  color: rgba(255, 248, 230, 0.92);
}

.fdc-section--contact .fdc-meta-chip__dot {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.55);
}

/* ── Portfolio site index strip ────────────────────────────────── */
.fdc-site-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.fdc-site-index__item {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(18, 24, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.fdc-site-index__item:hover {
  border-color: rgba(59, 195, 130, 0.28);
  background: rgba(24, 32, 42, 0.55);
  transform: translateY(-2px);
}

.fdc-site-index__item--active {
  border-color: rgba(59, 195, 130, 0.45);
  background: rgba(59, 195, 130, 0.08);
}

.fdc-site-index__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 245, 224, 0.7);
  margin-bottom: 0.25rem;
}

.fdc-site-index__name {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

.fdc-site-index__status {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(59, 195, 130, 0.15);
  color: #86efac;
}

.fdc-site-index__status--future {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
}

/* ── Enhanced tile highlights (Our Sites) ──────────────────────── */
.tile-highlights {
  float: right;
  width: min(42%, 280px);
  margin: 0.15em 0 0.85em 1.1em;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border-left: none !important;
  background:
    linear-gradient(135deg, rgba(59, 195, 130, 0.12) 0%, rgba(20, 30, 40, 0.55) 100%);
  border: 1px solid rgba(59, 195, 130, 0.22) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  font-size: 0.82em;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.tile-highlights ul li {
  position: relative;
  padding-left: 0.15rem;
}

/* ── Editorial image frames inside tiles ─────────────────────────── */
.fdc-visual-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.fdc-visual-frame img,
.fdc-visual-frame svg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.fdc-visual-frame img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.tg-media-slot img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  width: 100%;
  display: block;
}

.fdc-visual-frame__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(8, 12, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tg-media-slot img,
.tg-float-img img {
  border-radius: 10px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.tg-media-slot.tg-float-media,
.tg-media-slot.tg-float-media-left {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

/* Keep post-image paragraphs from wrapping under the float mid-sentence */
.tg-tile-custom .tg-clear,
.tg-tile-body .tg-clear {
  clear: both;
}

/* ── Contact channel cards ───────────────────────────────────────── */
.fdc-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.fdc-contact-card {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(12, 14, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.fdc-contact-card:hover {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(18, 20, 26, 0.65);
  transform: translateX(3px);
}

.fdc-contact-card__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.75;
  margin-bottom: 0.25rem;
  color: rgba(253, 230, 138, 0.85);
}

.fdc-contact-card a {
  color: #fbbf24 !important;
  text-decoration: none !important;
  font-size: clamp(0.82rem, 2.2vw, 0.92rem) !important;
  border-bottom: 1px solid rgba(251, 191, 36, 0.35) !important;
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fdc-contact-card a:hover {
  color: #fde68a !important;
  border-bottom-color: rgba(253, 230, 138, 0.65) !important;
}

.fdc-contact-intro {
  line-height: 1.65;
  opacity: 0.82;
  margin: 0 0 0.75rem;
}

/* ── Tile carousel polish ───────────────────────────────────────── */
.fdc-section .tile-group-container {
  margin-bottom: 0.25rem;
}

.fdc-section .tg-dots {
  margin-top: 1.15rem;
  padding-bottom: 0.35rem;
}

.fdc-section .tg-dot {
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.fdc-section .tg-dot.active {
  box-shadow: 0 0 12px rgba(59, 195, 130, 0.45);
}

.fdc-section--contact .tg-dot.active {
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

/* ── Scroll reveal ───────────────────────────────────────────────── */
.fdc-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

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

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

/* ── Section spacing overrides ───────────────────────────────────── */
#tile-team.fdc-section {
  margin-top: -120px;
  padding-top: clamp(5rem, 12vw, 8rem);
}

#tile-portfolio.fdc-section {
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
}

#tile-contact.fdc-section {
  padding-bottom: clamp(5rem, 10vw, 7rem);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .fdc-site-index {
    grid-template-columns: 1fr;
  }

  .fdc-section__header {
    margin-bottom: 1.5rem;
  }

  .fdc-section__panel {
    padding: 0 0.5rem 1.25rem;
  }

  .fdc-section__panel .tile-group-container {
    margin-top: 0;
    transform: none;
  }

  .fdc-section__panel .tg-tile-content {
    margin-top: 0;
  }

  .tile-highlights {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }

  .fdc-meta-row {
    gap: 0.5rem;
  }

  .fdc-meta-chip {
    font-size: 0.66rem;
    padding: 0.4rem 0.7rem;
  }
}

@media (max-width: 480px) {
  .fdc-section__title,
  .fdc-section__header .group-title {
    letter-spacing: 0.1em !important;
  }
}

/* Keep parallax warmup compatibility */
body.tiles-hidden .fdc-reveal {
  opacity: 0 !important;
}

body:not(.tiles-hidden) .fdc-reveal.fdc-reveal--visible {
  opacity: 1 !important;
}
