/* AMSY motion layer — presentation only. Content remains visible without JS / with reduced motion. */

.rv-on .rv {
  opacity: 0;
  transform: translateY(22px) scale(.985);
  transition: opacity .75s cubic-bezier(.22, .8, .28, 1), transform .75s cubic-bezier(.22, .8, .28, 1);
  transition-delay: var(--rv-d, 0s);
  will-change: opacity, transform;
}
.rv-on .rv.rv-in { opacity: 1; transform: none; }
.rv-on .rv-left { transform: translateX(-28px); }
.rv-on .rv-right { transform: translateX(28px); }
.rv-on .rv-left.rv-in,
.rv-on .rv-right.rv-in { transform: none; }

/* hero photo tilt + chips */
.hero-stage { position: relative; }
.hero-photo {
  position: relative;
  overflow: visible;
  transform: perspective(1100px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .25s ease-out;
}
.hero-photo img {
  border-radius: 20px;
  box-shadow: 0 28px 56px -24px rgba(8, 30, 24, .45);
}
.fx-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px -12px rgba(10, 35, 28, .4);
  color: #0d1a15;
  font-size: 12px;
  line-height: 1.3;
  animation: fx-bob 6.5s ease-in-out infinite;
}
.fx-chip b { display: block; font-size: 13px; font-weight: 650; }
.fx-chip small { color: #5d6f66; font-size: 10.5px; letter-spacing: .02em; }
.fx-chip-1 { left: -22px; bottom: 32px; }
.fx-chip-2 { right: -14px; top: 28px; animation-delay: -3.2s; }
.fx-chip .fx-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1aad8a;
  box-shadow: 0 0 0 0 rgba(26, 173, 138, .55);
  animation: fx-ping 2s infinite;
}
.fx-chip .fx-bar {
  display: block;
  width: 110px;
  height: 4px;
  border-radius: 3px;
  background: #e2ece6;
  margin-top: 6px;
  overflow: hidden;
}
.fx-chip .fx-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #1aad8a, #c5e87a);
  transform-origin: left;
  animation: fx-fill 5s ease-in-out infinite;
}
.fx-rings {
  position: absolute;
  right: 14%;
  bottom: 20%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
}
.fx-rings i {
  position: absolute;
  left: -55px;
  top: -55px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(26, 173, 138, .75);
  opacity: 0;
  animation: fx-ring 3.6s ease-out infinite;
}
.fx-rings i:nth-child(2) { animation-delay: 1.2s; }
.fx-rings i:nth-child(3) { animation-delay: 2.4s; }

@keyframes fx-bob { 50% { transform: translateY(-8px); } }
@keyframes fx-ping {
  70% { box-shadow: 0 0 0 10px rgba(26, 173, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 173, 138, 0); }
}
@keyframes fx-fill {
  0% { transform: scaleX(.12); }
  70%, 100% { transform: scaleX(.97); }
}
@keyframes fx-ring {
  0% { transform: scale(.2); opacity: .85; }
  100% { transform: scale(1.65); opacity: 0; }
}

@media (max-width: 900px) {
  .fx-chip-1 { left: 10px; }
  .fx-chip-2 { right: 10px; }
}
@media (max-width: 560px) {
  .fx-chip-2 { display: none; }
}

/* hero headline: dark ink with a slow emerald shimmer (always readable on the light hero) */
.amsy-refined .hero h1 {
  background: linear-gradient(105deg, #0d1a15 0%, #0d1a15 40%, #0a7a5e 55%, #0d1a15 70%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0d1a15;
  animation: fx-shine 9s ease-in-out infinite;
}
@keyframes fx-shine {
  0%, 18% { background-position: 100% 0; }
  55%, 100% { background-position: 0 0; }
}

/* card & button micro-interactions */
.matrix-cell,
.motion-card,
.step {
  transition: transform .35s cubic-bezier(.22, .8, .28, 1), box-shadow .35s ease;
}
.cell-photo img,
.step-photo img {
  transition: transform .75s cubic-bezier(.22, .8, .28, 1);
}
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, .28) 50%, transparent 72%);
  transform: translateX(-130%);
  transition: transform .65s ease;
}
.btn:hover::after {
  transform: translateX(130%);
}

/* workflow step number pop */
.step.rv-in .step-n {
  animation: fx-pop .55s cubic-bezier(.3, 1.5, .5, 1) both;
  animation-delay: calc(var(--rv-d, 0s) + .2s);
}
@keyframes fx-pop {
  from { transform: scale(.35); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* soft spotlight on dark sections */
.tone-dark {
  --mx: 50%;
  --my: 30%;
}
.tone-dark.fx-spot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgba(26, 173, 138, .09), transparent 58%);
}

.framed-photo img {
  transition: transform 1.1s ease;
}
.framed-photo:hover img {
  transform: scale(1.035);
}

/* ticker already styled in refinement; keep animation key name */
@keyframes fx-tick {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .rv-on .rv,
  .fx-chip,
  .fx-rings i,
  .fx-chip .fx-dot,
  .fx-chip .fx-bar i,
  .amsy-refined .hero h1,
  .btn::after,
  .step.rv-in .step-n {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* Picture gallery */
.show-grid{display:grid;grid-template-columns:1fr 1.12fr 1fr;gap:18px;margin-top:30px;align-items:stretch}
.show-col{display:flex;flex-direction:column;gap:18px}
.show-item{position:relative;margin:0;border-radius:16px;overflow:hidden;background:#fff;border:1px solid #e1e8d5;box-shadow:0 18px 40px -26px rgba(18,60,50,.35);display:flex;flex-direction:column;flex:1}
.show-item .show-img{flex:1;min-height:0;overflow:hidden;background:#fbfcf8}
.show-item img{display:block;width:100%;height:100%;object-fit:contain;transition:transform 1s cubic-bezier(.2,.7,.2,1)}
.show-item:hover img{transform:scale(1.04)}
.show-item figcaption{padding:12px 16px 14px;display:flex;flex-direction:column;gap:2px;border-top:1px solid #edf1e6}
.show-item figcaption b{font-size:14.5px;color:#183c34}.show-item figcaption span{font-size:12.5px;color:#5d6f66;line-height:1.45}
@media(max-width:900px){.show-grid{grid-template-columns:1fr 1fr}.show-col-mid{grid-column:1/3;order:3}}
@media(max-width:560px){.show-grid{grid-template-columns:1fr}.show-col-mid{grid-column:1}}

/* reduced motion / editor: plain solid headline */
@media (prefers-reduced-motion: reduce) { .amsy-refined .hero h1 { background: none; -webkit-text-fill-color: currentColor; } }
.amsy-editing .amsy-refined .hero h1, .amsy-editing.amsy-refined .hero h1 { background: none; -webkit-text-fill-color: currentColor; animation: none; }
.tech-more{margin:26px 0 0}

/* Technology card on the homepage */
.tech-card{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:0;margin:clamp(36px,5vw,56px) 0 0;border:1px solid var(--rule);border-radius:16px;overflow:hidden;background:var(--surface);color:var(--fg);text-decoration:none;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.tech-card:hover{transform:translateY(-3px);border-color:var(--link);box-shadow:0 14px 34px rgba(11,18,32,.12)}
.tech-card-art{display:block;background:#0B1220;min-height:200px}
.tech-card-art img{display:block;width:100%;height:100%;object-fit:cover}
.tech-card-body{display:flex;flex-direction:column;gap:8px;padding:clamp(22px,3vw,36px);justify-content:center}
.tech-card-body small{font:600 12px/1 var(--display);letter-spacing:.14em;text-transform:uppercase;color:var(--sig)}
.tech-card-body b{font:700 clamp(20px,2.4vw,28px)/1.2 var(--display);color:var(--fg-h)}
.tech-card-body>span{color:var(--fg-2);font-size:var(--t-sm);max-width:56ch}
.tech-card-go{display:inline-flex;align-items:center;gap:8px;margin-top:8px;font-style:normal;font-weight:600;color:var(--link)}
.tech-card-go .icon{width:1.1em;height:1.1em;transition:transform .2s ease}
.tech-card:hover .tech-card-go .icon{transform:translateX(3px)}
@media(max-width:720px){.tech-card{grid-template-columns:minmax(0,1fr)}.tech-card-art{min-height:160px;max-height:200px}}
