﻿.hero-slider {
  margin-top: 34px;
}

.hero-visual-wrap {
  position: relative;
  border: 1px solid #e2e9f1;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(140deg, #f8fbff 0%, #edf3f9 100%);
  box-shadow: 0 26px 62px rgba(15, 23, 42, 0.09);
}

.hero-frame {
  display: grid;
  grid-template-columns: minmax(320px, 41%) minmax(0, 59%);
  min-height: clamp(360px, 40vw, 500px);
}

.hero-copy-pane {
  position: relative;
  --copy-pad-y: clamp(26px, 3.6vw, 46px);
  --copy-pad-left: clamp(18px, 2.6vw, 34px);
  --copy-pad-right: clamp(16px, 2.2vw, 26px);
  padding: 0;
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(255,255,255,0.88), rgba(247,250,253,0.84) 60%, rgba(240,246,252,0.92) 100%);
  border-right: 1px solid #e1e8f0;
}

.hero-copy-pane::after {
  content: "";
  position: absolute;
  top: 16px;
  right: -1px;
  width: 1px;
  height: calc(100% - 32px);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(215,226,238,.92) 20%, rgba(197,212,229,.95) 50%, rgba(215,226,238,.92) 80%, rgba(255,255,255,0));
  box-shadow: 6px 0 14px rgba(15, 23, 42, 0.06);
  pointer-events: none;
}

.hero-visual-pane {
  position: relative;
  padding: clamp(10px, 1.2vw, 14px);
  padding-left: clamp(12px, 1.4vw, 16px);
  background: linear-gradient(140deg, #f4f8fc 0%, #ebf2f9 100%);
}

.hero-track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.hero-track:active {
  cursor: grabbing;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.016);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide.visual-a {
  background-image: radial-gradient(135% 135% at 50% 0%, #ffffff 0%, #eef4f8 55%, #e4edf4 100%);
}

.hero-slide.visual-b {
  background-image: linear-gradient(135deg, #fbfdff 0%, #e9f3f7 48%, #f5f9fc 100%);
}

.hero-slide.visual-c {
  background-image: radial-gradient(130% 120% at 0% 0%, #fafdff 0%, #e8f1f8 60%, #edf4f9 100%);
}

.hero-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-media picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-visual-pane::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.2vw, 14px);
  left: clamp(12px, 1.4vw, 16px);
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(20, 34, 52, 0.28) 0%, rgba(20, 34, 52, 0.08) 30%, rgba(20, 34, 52, 0) 52%);
  pointer-events: none;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.62);
  background: rgba(255,255,255,.24);
  color: rgba(255,255,255,.95);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
  z-index: 3;
}

.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }

.hero-visual-pane:hover .hero-nav {
  background: rgba(255,255,255,.36);
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.hero-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.52);
}

.hero-dot.is-active {
  width: 26px;
  background: #e8f1ff;
}

.hero-eyebrow {
  margin: 0 0 12px;
  color: #cf7a33;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(calc(1.18em * 2), auto) minmax(calc(1.56em * 3), auto) auto;
  align-content: start;
  row-gap: 14px;
  padding: var(--copy-pad-y) var(--copy-pad-right) var(--copy-pad-y) var(--copy-pad-left);
  max-width: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .32s ease, transform .32s ease;
  pointer-events: none;
}

.hero-copy.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-copy h1 {
  font-size: clamp(1.44rem, 1.8vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 520;
  margin: 0 0 2px;
  color: #16263a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.18em * 2);
}

.lead {
  max-width: 56ch;
  margin: 0;
  color: #5d6f86;
  line-height: 1.56;
  font-size: clamp(.95rem, .94vw, 1.02rem);
  display: block;
  overflow: visible;
  min-height: calc(1.56em * 2);
  text-align: left;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-top: auto;
  padding-top: 20px;
}

.hero-actions .cta-btn:only-child {
  grid-column: 1 / -1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid #d3deea;
  font-size: 13px;
  letter-spacing: 0.01em;
  font-weight: 560;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease, color .22s ease, filter .22s ease;
}

.cta-btn:hover {
  transform: translateY(-1px) scale(1.01);
  filter: saturate(1.06);
}

.cta-btn.primary {
  background:
    linear-gradient(180deg, #1db7bd 0%, #1098a2 56%, #0c7f8d 100%);
  color: #f6feff;
  border-color: rgba(12, 127, 141, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 10px 24px rgba(16, 152, 162, 0.28);
}

.cta-btn.primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    0 14px 30px rgba(16, 152, 162, 0.34);
}

.cta-btn.ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(247,251,255,.72));
  color: #20324a;
  border-color: #ccd8e6;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.86),
    0 6px 16px rgba(148, 163, 184, .14);
}

.module-section {
  position: relative;
  padding-top: 54px;
}

.module-section + .module-section {
  margin-top: 18px;
}

.module-section + .module-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(191,203,216,0), rgba(191,203,216,.48), rgba(191,203,216,0));
}

.module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.module-head-stack {
  display: grid;
  gap: 8px;
}

.module-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7b8aa0;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
}

.module-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(16,152,162,.6), rgba(16,152,162,0));
}

.module-head h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  letter-spacing: -0.018em;
  line-height: 1.16;
  font-weight: 500;
  color: #1b293b;
}

.module-intro {
  max-width: 66ch;
  color: #66778d;
  font-size: .97rem;
  line-height: 1.62;
}

.module-section .grid {
  gap: 14px;
}

.module-section .card,
.project-card,
.feature-column,
.process-step,
.soft-panel,
.ref-card,
.final-cta-box {
  backdrop-filter: blur(12px);
}

.module-section .card {
  border-radius: 16px;
  padding: 20px;
  border-color: #e6ebf2;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(250,252,255,.94));
}

.module-section .card h3,
.project-card h3,
.feature-column h3,
.process-step h3,
.soft-panel h3 {
  font-size: clamp(1.02rem, 1.2vw, 1.14rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: #1f2d40;
}

.module-section .card p,
.project-card p,
.feature-column p,
.process-step p,
.soft-panel p,
.final-cta-box p {
  margin: 0;
  font-size: .96rem;
  line-height: 1.6;
  color: #627289;
}

.feature-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-column {
  border: 1px solid #e5ebf2;
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(247,250,253,.9));
}

.feature-index,
.process-step-no {
  display: inline-block;
  margin-bottom: 12px;
  color: #8ea0b4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
}

.projects-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.projects-tab {
  border: 1px solid #dbe3ec;
  background: #f8fafc;
  color: #5c6d82;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.projects-tab.is-active {
  color: #0f8f95;
  border-color: #b9dfe2;
  background: #f0fbfb;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.project-card {
  border: 1px solid #e3e9f1;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(249,252,255,.95));
  padding: 18px;
}

.project-card[hidden] {
  display: none;
}

.project-code {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8e7ef;
  color: #58708a;
  background: #f8fbfe;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-step {
  border: 1px solid #e4eaf1;
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,251,255,.95));
}

.dual-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.soft-panel {
  border: 1px solid #e4eaf1;
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(247,250,254,.95));
}

.references-section {
  margin-top: 0;
}

.ref-navs {
  display: inline-flex;
  gap: 8px;
}

.ref-nav {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d8dee8;
  background: rgba(255,255,255,.92);
  color: #334155;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ref-viewport {
  overflow: hidden;
  border-radius: 16px;
}

.ref-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  transition: transform .35s ease;
}

.ref-card {
  border: 1px solid #e3e8ef;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,251,255,.94));
  padding: 16px;
  min-height: 82px;
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: center;
}

.ref-card.is-hidden {
  display: none;
}

.ref-logo-wrap {
  width: 82px;
  height: 58px;
  border: 1px solid #e4eaf1;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ref-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.final-cta-box {
  border: 1px solid #e4eaf1;
  border-radius: 22px;
  padding: clamp(24px, 3.4vw, 38px);
  background:
    radial-gradient(circle at top, rgba(255,255,255,.96), rgba(247,250,254,.94) 58%, rgba(240,246,251,.9) 100%);
  text-align: center;
  box-shadow: 0 22px 52px rgba(148, 163, 184, .12);
}

.final-cta-box h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 500;
  color: #1b2a3f;
  margin: 0 0 10px;
  letter-spacing: -0.018em;
}

.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .feature-columns,
  .process-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-head h2 {
    max-width: 24ch;
  }
}

@media (max-width: 900px) {
  .hero-frame {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy-pane {
    border-right: 0;
    border-bottom: 1px solid #e1e8f0;
    --copy-pad-y: 22px;
    --copy-pad-left: 22px;
    --copy-pad-right: 22px;
    min-height: 330px;
  }

  .hero-copy h1 {
    font-size: clamp(1.38rem, 4.8vw, 1.86rem);
    -webkit-line-clamp: 3;
    min-height: calc(1.18em * 3);
  }

  .hero-copy {
    position: absolute;
    inset: 0;
    grid-template-rows: auto minmax(calc(1.18em * 3), auto) minmax(calc(1.56em * 3), auto) auto;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual-pane {
    min-height: 320px;
    padding: 10px;
  }

  .hero-media img {
    object-fit: contain;
    object-position: center;
    background: linear-gradient(140deg, #eaf1f8 0%, #dfe8f2 100%);
  }

  .dual-panels,
  .feature-columns,
  .process-rail {
    grid-template-columns: 1fr;
  }

  .ref-track {
    grid-auto-columns: minmax(200px, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-slider {
    gap: 12px;
    margin-top: 28px;
  }

  .hero-visual-wrap {
    border-radius: 18px;
  }

  .hero-copy-pane {
    --copy-pad-y: 18px;
    --copy-pad-left: 16px;
    --copy-pad-right: 16px;
    min-height: 0;
  }

  .hero-copy {
    position: static;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
    grid-template-rows: auto auto auto auto;
    row-gap: 12px;
    justify-items: center;
    text-align: center;
  }

  .hero-copy.is-active {
    display: grid;
  }

  .hero-copy h1 {
    font-size: 1.24rem;
    line-height: 1.2;
    -webkit-line-clamp: unset;
    min-height: 0;
    overflow: visible;
  }

  .hero-nav {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .hero-nav.prev { left: 8px; }
  .hero-nav.next { right: 8px; }

  .module-section {
    padding-top: 38px;
  }

  .module-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-head h2 {
    max-width: none;
  }

  .lead {
    font-size: .9rem;
    min-height: 0;
    -webkit-line-clamp: unset;
    overflow: visible;
    text-align: center;
    text-align-last: auto;
    max-width: 34ch;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 2px;
    padding-top: 8px;
    max-width: 100%;
    justify-content: center;
  }

  .hero-visual-pane {
    min-height: 220px;
    padding: 8px;
  }

  .hero-media img {
    object-fit: contain;
    object-position: center;
  }
}
