/* hero */
.hero {
  padding: 54px 0 76px
}

.hero-grid {
  display: grid;
  grid-template-columns:1fr .82fr;
  gap: 48px;
  align-items: center
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  margin: 14px 0 22px;
  max-width: 15ch
}

.hero h1 em {
  font-style: normal;
  color: var(--amber-soft)
}

.hero .lead {
  margin-bottom: 30px;
  color: var(--ink-200)
}

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

.heart-wrap {
  position: relative
}

.heart-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  border-radius: 18px;
  background: radial-gradient(80% 45% at 50% 22%, rgba(226, 165, 46, .10), transparent 60%), radial-gradient(80% 45% at 50% 78%, rgba(43, 184, 173, .12), transparent 60%), linear-gradient(155deg, #0e2230, #091620);
  border: 1px solid var(--line)
}

.loop {
  opacity: 0;
  transition: opacity 1s ease
}

.go .loop {
  opacity: 1
}

.heart-g {
  opacity: 0;
  transition: opacity .8s ease .4s
}

.go .heart-g {
  opacity: 1
}

.beater {
  transform-box: fill-box;
  transform-origin: center
}

@keyframes beat {
  0%, 40%, 100% {
    transform: scale(1)
  }
  8% {
    transform: scale(1.17)
  }
  16% {
    transform: scale(1.05)
  }
  24% {
    transform: scale(1.22)
  }
  32% {
    transform: scale(1.04)
  }
}

.ring {
  transform-box: fill-box;
  transform-origin: center
}

@keyframes emit {
  0% {
    transform: scale(.35);
    opacity: 0
  }
  12% {
    opacity: .55
  }
  100% {
    transform: scale(12);
    opacity: 0
  }
}

@keyframes flow {
  from {
    offset-distance: 0%
  }
  to {
    offset-distance: 100%
  }
}

.halo {
  transform-box: fill-box;
  transform-origin: center
}

@keyframes halo {
  0%, 40%, 100% {
    transform: scale(1);
    opacity: .5
  }
  24% {
    transform: scale(1.35);
    opacity: .8
  }
}

.lite {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round
}

@keyframes suck {
  0% {
    stroke-dashoffset: -89;
    opacity: .15
  }
  8% {
    stroke-dashoffset: -89;
    opacity: .95
  }
  26% {
    stroke-dashoffset: 0;
    opacity: 1
  }
  32% {
    opacity: .4
  }
  100% {
    stroke-dashoffset: -89;
    opacity: .5
  }
}

.litebase {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: .7
}

@keyframes drift {
  from {
    stroke-dashoffset: 0
  }
  to {
    stroke-dashoffset: -100
  }
}

.holo-dot {
  transform-box: fill-box;
  transform-origin: center
}

@keyframes holo {
  0%, 100% {
    opacity: .7
  }
  50% {
    opacity: 1
  }
}

/* origin story */
.origin {
  display: grid;
  grid-template-columns:.9fr 1.1fr;
  gap: 60px;
  align-items: start
}

.origin .lead {
  margin-top: 18px
}

.story {
  display: flex;
  flex-direction: column;
  gap: 0
}

.beat-row {
  display: grid;
  grid-template-columns:40px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark)
}

.beat-row:last-child {
  border-bottom: 0
}

.beat-row .k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: .1em;
  padding-top: 5px
}

.beat-row h3 {
  font-size: 19px;
  color: var(--ink-navy);
  margin-bottom: 6px
}

.beat-row p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55
}

.pull {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink-navy);
  line-height: 1.3;
  border-left: 3px solid var(--amber);
  padding-left: 20px;
  margin-top: 8px
}

.pull span {
  color: var(--teal)
}

/* problem recognition */
.prob-head {
  max-width: 60ch
}

.prob-grid {
  display: grid;
  grid-template-columns:repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px
}

.prob {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: var(--navy-850);
  transition: transform .2s, border-color .2s
}

.prob:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong)
}

.prob .mk {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 16px
}

.prob:nth-child(odd) .mk {
  background: var(--teal-bright)
}

.prob:nth-child(even) .mk {
  background: var(--amber)
}

.prob p {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink-100);
  line-height: 1.4
}

/* expertise */
.exp-head {
  max-width: 58ch
}

.exp-grid {
  display: grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap: 18px;
  margin-top: 46px
}

.exp {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  background: var(--navy-850);
  transition: transform .2s, border-color .2s
}

.exp:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong)
}

.exp .rank {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--amber);
  text-transform: uppercase
}

.exp h3 {
  font-size: 21px;
  margin: 10px 0 8px;
  color: var(--ink-100)
}

.exp.lead-card {
  grid-row: span 2;
  background: linear-gradient(160deg, #11364a, #0c2030);
  border-color: rgba(43, 184, 173, .3)
}

.exp.lead-card h3 {
  font-size: 26px
}

.exp p {
  font-size: 14.5px;
  color: var(--ink-300);
  line-height: 1.55
}

.exp .tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-bright)
}

.exp-foot {
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-400)
}

.exp-foot b {
  color: var(--ink-200);
  font-weight: 500
}

/* value equation + bricks */
.value {
  display: grid;
  grid-template-columns:1.05fr .95fr;
  gap: 60px;
  align-items: center
}

.value .lead {
  margin-top: 18px
}

.vstats {
  display: flex;
  gap: 34px;
  margin: 28px 0 8px;
  flex-wrap: wrap
}

.vstat .n {
  font-family: var(--display);
  font-weight: 600;
  font-size: 38px;
  color: var(--ink-navy);
  line-height: 1
}

.vstat .n em {
  font-style: normal;
  color: var(--amber)
}

.vstat .c {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
  max-width: 18ch
}

.vnote {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 8px;
  max-width: 46ch
}

.bricks {
  position: relative;
  width: 100%;
  aspect-ratio: 6/4.4;
  min-height: 320px;
  border-radius: 16px;
  background: linear-gradient(160deg, #0e2230, #091620);
  border: 1px solid var(--line);
  overflow: hidden
}

.platebar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  opacity: .9;
  display: flex;
  align-items: center;
  justify-content: center
}

.platebar span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: #06141d;
  text-transform: uppercase;
  font-weight: 500
}

.brick {
  position: absolute;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(var(--tx), var(--ty)) scale(.7) rotate(var(--r));
  transition: opacity .6s ease, transform .8s cubic-bezier(.2, .85, .2, 1)
}

.assembled .brick {
  opacity: 1;
  transform: none
}

.brick.t {
  background: linear-gradient(155deg, rgba(43, 184, 173, .42), rgba(28, 157, 148, .26));
  border: 1px solid rgba(43, 184, 173, .95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12)
}

.brick.a {
  background: linear-gradient(155deg, rgba(236, 191, 110, .42), rgba(226, 165, 46, .28));
  border: 1px solid rgba(226, 165, 46, .95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14)
}

.brick.n {
  background: linear-gradient(155deg, rgba(159, 177, 191, .22), rgba(159, 177, 191, .10));
  border: 1px solid rgba(159, 177, 191, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08)
}

.brick span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: #eaf3f1;
  text-transform: uppercase;
  opacity: .94;
  padding: 0 6px;
  text-align: center;
  line-height: 1.15
}

.bsol {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .6s ease 1.1s;
  pointer-events: none
}

.assembled .bsol {
  opacity: 1
}

.bsol b {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  background: rgba(10, 24, 34, .4);
  padding: 8px 16px;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  font-size: 13px
}

/* tech strip */
.tech {
  display: grid;
  grid-template-columns:repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px
}

.tcard {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--navy-850)
}

.tcard .ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(43, 184, 173, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px
}

.tcard .ic span {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--teal-bright)
}

.tcard:nth-child(even) .ic {
  background: rgba(226, 165, 46, .16)
}

.tcard:nth-child(even) .ic span {
  background: var(--amber)
}

.tcard b {
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink-100);
  display: block;
  margin-bottom: 5px
}

.tcard p {
  font-size: 13.5px;
  color: var(--ink-300);
  line-height: 1.5
}

/* gallery */
.gal-head {
  max-width: 64ch
}

.gal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400)
}

.gal-meta b {
  color: var(--teal-bright);
  font-weight: 500
}

.gallery {
  display: grid;
  grid-template-columns:1fr 1fr;
  gap: 26px;
  margin-top: 48px
}

.shot {
  transition: transform .2s
}

.shot:hover {
  transform: translateY(-5px)
}

.shot:hover .winbar, .shot:hover img {
  border-color: var(--line-strong)
}

.winbar {
  height: 34px;
  background: #0e2433;
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
  transition: border-color .2s
}

.winbar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
  background: #33495a
}

.winbar i:nth-child(1) {
  background: #e2655a
}

.winbar i:nth-child(2) {
  background: #e2a52e
}

.winbar i:nth-child(3) {
  background: #3fb27f
}

.winbar .u {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--micro-dark);
  letter-spacing: .06em
}

.shot img {
  width: 100%;
  display: block;
  background: #fff;
  height: 236px;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 14px 14px;
  transition: border-color .2s
}

.shot .cap {
  padding: 16px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.shot .cap b {
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink-100);
  letter-spacing: -.01em;
  line-height: 1.25
}

.shot .cap p {
  font-size: 13.5px;
  color: var(--ink-300);
  line-height: 1.55;
  max-width: 54ch
}

.shot .cap .ix {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .25em;
  display: block;
  margin-bottom: 3px
}

.gallery .shot:nth-child(odd) .cap .ix {
  color: var(--teal-bright)
}

.gallery .shot:nth-child(even) .cap .ix {
  color: var(--amber-soft)
}

.shot.feat {
  grid-column: span 2
}

.shot.feat img {
  height: 520px;
  object-fit: cover;
  object-position: top left
}

.shot.feat .cap {
  flex-direction: column;
  gap: 6px;
  padding: 18px 2px 2px
}

.shot.feat .cap b {
  font-size: 19px
}

.shot.feat .cap p {
  max-width: none
}

/* capabilities grid */
.caps {
  display: grid;
  grid-template-columns:repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px
}

.cap {
  background: var(--ivory-card);
  border: 1px solid rgba(15, 38, 54, .07);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 26px -22px rgba(15, 38, 54, .4)
}

.cap .d {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px
}

.cap .d span {
  width: 11px;
  height: 11px;
  border-radius: 3px
}

.cap:nth-child(4n+1) .d, .cap:nth-child(4n) .d {
  background: rgba(28, 157, 148, .12)
}

.cap:nth-child(4n+1) .d span, .cap:nth-child(4n) .d span {
  background: var(--teal)
}

.cap:nth-child(4n+2) .d, .cap:nth-child(4n+3) .d {
  background: rgba(226, 165, 46, .16)
}

.cap:nth-child(4n+2) .d span, .cap:nth-child(4n+3) .d span {
  background: var(--amber)
}

.cap b {
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink-navy);
  display: block;
  margin-bottom: 5px
}

.cap p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5
}

/* final cta */
.final {
  background: linear-gradient(160deg, #10283a, #0a1822);
  text-align: center
}

.final h2 {
  font-size: clamp(28px, 4.4vw, 44px)
}

.final h2 em {
  font-style: normal;
  color: var(--amber-soft)
}

.final p {
  color: var(--ink-300);
  max-width: 62ch;
  margin: 18px auto 0
}

.final .cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px
}

footer {
  background: var(--navy-850);
  border-top: 1px solid var(--line);
  padding: 60px 0 32px;
  color: var(--ink-300)
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-400);
  flex-wrap: wrap;
  gap: 14px
}

.foot-lang span {
  font-family: var(--mono);
  letter-spacing: .1em
}

.foot-lang span.on {
  color: var(--ink-100)
}

@media (max-width: 900px) {
  .menu, .nav-right .lang {
    display: none
  }

  .menu-toggle {
    display: block
  }

  .hero-grid, .origin, .value {
    grid-template-columns:1fr;
    gap: 40px
  }

  .exp-grid, .tech, .caps, .gallery {
    grid-template-columns:1fr 1fr
  }

  .exp.lead-card {
    grid-row: auto
  }

  .shot.feat {
    grid-column: span 2
  }
}

@media (max-width: 560px) {
  .exp-grid, .tech, .caps, .gallery, .prob-grid {
    grid-template-columns:1fr
  }

  .shot.feat {
    grid-column: auto
  }
}

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

  .loop, .heart-g {
    transition: none
  }

  .beater, .ring {
    animation: none !important
  }

  .brick {
    transition: none
  }
}

/* --- unified footer + post-revue tweaks --- */
.logo {
  text-decoration: none
}

.final-note {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-400)
}

.sub-h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink-100);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin-top: 8px
}

/* Tech strip flipped to light: light cards */
.tcard {
  background: var(--ivory-card);
  border-color: rgba(15, 38, 54, .08);
  box-shadow: 0 12px 26px -22px rgba(15, 38, 54, .4)
}

.tcard b {
  color: var(--ink-navy)
}

.tcard p {
  color: var(--ink-soft)
}

/* merged inventory sits in a dark section: dark cards */
.dark .caps .cap {
  background: var(--navy-850);
  border-color: var(--line);
  box-shadow: none
}

.dark .caps .cap b {
  color: var(--ink-100)
}

.dark .caps .cap p {
  color: var(--ink-300)
}

/* RAPSODI page restructuring: expertise can sit on a light section */
.light .exp {
  background: var(--ivory-card);
  border-color: rgba(15, 38, 54, .08);
  box-shadow: 0 12px 26px -22px rgba(15, 38, 54, .4)
}

.light .exp h3 {
  color: var(--ink-navy)
}

.light .exp p {
  color: var(--ink-soft)
}

.light .exp.lead-card {
  background: linear-gradient(160deg, #11364a, #0c2030);
  border-color: rgba(43, 184, 173, .3);
  box-shadow: none
}

.light .exp.lead-card h3 {
  color: var(--ink-100)
}

.light .exp.lead-card p {
  color: var(--ink-300)
}

.light .exp .tag {
  color: var(--teal)
}

.light .exp-foot {
  color: var(--ink-soft)
}

.light .exp-foot b {
  color: var(--ink-navy);
  font-weight: 500
}

/* section background refinements for the restructured RAPSODI page */
.light .prob {
  background: var(--ivory-card);
  border-color: rgba(15, 38, 54, .08);
  box-shadow: 0 12px 26px -22px rgba(15, 38, 54, .4)
}

.light .prob p {
  color: var(--ink-navy)
}

.light .prob:hover {
  border-color: rgba(15, 38, 54, .18);
  box-shadow: 0 20px 36px -26px rgba(15, 38, 54, .45)
}

.dark .tcard {
  background: var(--navy-850);
  border-color: var(--line);
  box-shadow: none
}

.dark .tcard b {
  color: var(--ink-100)
}

.dark .tcard p {
  color: var(--ink-300)
}
