/* ══════════════════════════════════════════════════════════════════════
   Yotta /experiences — static handoff layer.
   The 3D scene (#it4e, position:fixed, z-index:-1 via #iy6k) stays as a live
   background for the hero + floating cards. From "Design with intent" down,
   an opaque dark-cinematic panel (#yx-exp) covers the 3D so it visually ENDS
   there, replaced by premium static sections. Additive — the 3D timing
   (hero/cards camera, anchored to earlier sections) is untouched.
   ══════════════════════════════════════════════════════════════════════ */

/* ── #2: hero "What we deliver" body matched to the page body font ──
   It was abcdiatype-medium-trial @ 14px (heavier + smaller than every other body
   paragraph, which use the DMSans family at ~16px), so it read as a different
   font. Align it with the rest of the page's body copy. */
/* `body #i1nnb5` raises specificity over the page's own inline `#i1nnb5
   { font-size:14px !important }` (which loads after this file and would
   otherwise win the size at equal specificity). */
body #i1nnb5 {
  font-family: "DMSans-Light", "DMSans-Regular", system-ui, sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* Retire the original sparse text sections — rebuilt below. Same hiding
   pattern the page already uses for its footer (#iz95af). */
#inea-2, #ipudth, #ikby47 {
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
}

#yx-exp {
  --bg: #06040A;
  --cyan: #67E8F9;
  --violet: #8B5CF6;
  --ink: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.52);
  --faint: rgba(255, 255, 255, 0.34);
  --line: rgba(255, 255, 255, 0.10);
  --disp: "almarenadisplaylight", "DMSans-Black", serif;
  --body: "DMSans-Regular", system-ui, sans-serif;
  --light: "DMSans-Light", system-ui, sans-serif;
  --mono: "abcdiatypemono-regular-trial", ui-monospace, monospace;
  position: relative;
  width: 100%;
  color: var(--ink);
  z-index: 2;
}

/* ─── Bridge: the 3D dissolves into solid as you arrive at "Design with intent" ─── */
.yx-bridge {
  position: relative;
  min-height: 96dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 5vw 14dvh;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(6, 4, 10, 0.18) 28%,
    rgba(6, 4, 10, 0.72) 60%,
    var(--bg) 92%);
}
.yx-bridge .yx-inner { max-width: 1180px; margin: 0 auto; width: 100%; }

/* ─── Solid body that carries the rest ─── */
.yx-body {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
/* drifting ambient bloom */
.yx-body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(46vw 52vh at 84% 8%, rgba(103, 232, 249, 0.07), transparent 60%),
    radial-gradient(42vw 48vh at 6% 64%, rgba(139, 92, 246, 0.08), transparent 62%);
  animation: yx-drift 30s ease-in-out infinite alternate;
}
@keyframes yx-drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-2vw, 2vh, 0); } }

.yx-inner { max-width: 1180px; margin: 0 auto; width: 100%; }
.yx-sec { position: relative; padding: 16dvh 5vw; }
.yx-sec + .yx-sec { border-top: 1px solid var(--line); }

/* ─── Type ─── */
.yx-kicker, .yx-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 3dvh;
}
.yx-kicker::before, .yx-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7;
}
.yx-h1 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 4dvh;
}
.yx-h2 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0 0 3dvh;
}
.yx-h1 em, .yx-h2 em { font-style: italic; color: var(--cyan); }
.yx-lead {
  font-family: var(--light);
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  line-height: 1.5;
  max-width: 30ch;
  color: var(--ink);
}
.yx-lead .yx-w { opacity: 0.16; transition: opacity 0.5s ease; }
.yx-sub {
  font-family: var(--light);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 7dvh;
}

/* ─── Reveal ─── */
.yx-reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.yx-reveal.yx-in { opacity: 1; transform: none; }

/* ─── 1. Principles bento ─── */
@property --yx-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.yx-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.yx-card {
  position: relative;
  padding: 36px 30px;
  min-height: 280px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1), background 0.5s ease;
}
.yx-card::before {
  content: "";
  position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: conic-gradient(from var(--yx-ang), transparent 0deg, var(--cyan) 60deg, var(--violet) 120deg, transparent 200deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.5s ease;
}
.yx-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.04); }
.yx-card:hover::before { opacity: 1; animation: yx-spin 5s linear infinite; }
@keyframes yx-spin { to { --yx-ang: 360deg; } }
.yx-card-idx {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--cyan); opacity: 0.7; margin-bottom: auto;
}
.yx-card-t {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(1.4rem, 1.8vw, 1.85rem); line-height: 1.08;
  letter-spacing: -0.01em; margin: 4dvh 0 14px;
}
.yx-card-d { font-family: var(--light); font-size: 0.98rem; line-height: 1.55; color: var(--muted); }

/* ─── 2. Outcomes ─── */
.yx-out-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.yx-out {
  position: relative;
  padding: 0 3vw;
  border-left: 1px solid var(--line);
}
.yx-out:first-child { padding-left: 0; border-left: none; }
.yx-out-t {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1.05;
  letter-spacing: -0.015em; margin-bottom: 16px;
}
.yx-out-t b { color: var(--cyan); font-weight: 400; font-style: italic; }
.yx-out-d { font-family: var(--light); font-size: 1rem; line-height: 1.6; color: var(--muted); max-width: 26ch; }
.yx-out::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 1s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.yx-out:first-child::after { left: 0; }
.yx-out.yx-in::after { width: 46px; }

/* ─── 3. Ecosystem flow ─── */
.yx-flow {
  display: flex; align-items: stretch; gap: 0;
  margin-top: 2dvh;
}
.yx-node {
  flex: 1 1 0;
  padding: 34px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), border-color 0.5s ease;
}
.yx-node:hover { transform: translateY(-6px); border-color: rgba(103,232,249,0.35); }
.yx-node-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 16px rgba(103,232,249,0.7);
  margin-bottom: 22px;
}
.yx-node:nth-child(3) .yx-node-dot { background: var(--violet); box-shadow: 0 0 16px rgba(139,92,246,0.7); }
.yx-node:nth-child(5) .yx-node-dot { background: #fff; box-shadow: 0 0 16px rgba(255,255,255,0.6); }
.yx-node-t { font-family: var(--disp); font-weight: 400; font-size: clamp(1.3rem,1.7vw,1.7rem); margin-bottom: 10px; }
.yx-node-d { font-family: var(--light); font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.yx-link {
  flex: 0 0 64px;
  align-self: center;
  height: 2px;
  margin: 0 -1px;
  background-image: linear-gradient(90deg, var(--cyan), var(--violet));
  background-size: 14px 2px;
  background-repeat: repeat-x;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 14px);
  mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 14px);
  animation: yx-dash 0.9s linear infinite;
}
@keyframes yx-dash { to { background-position: 14px 0; -webkit-mask-position: 14px 0; mask-position: 14px 0; } }
.yx-note { font-family: var(--light); font-size: 1rem; line-height: 1.65; color: var(--faint); max-width: 60ch; margin-top: 6dvh; }

/* ─── 4. CTA ─── */
.yx-cta { text-align: left; padding-top: 18dvh; padding-bottom: 20dvh; }
.yx-cta-h {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.0;
  letter-spacing: -0.02em; max-width: 16ch; margin: 0 0 5dvh;
}
.yx-cta-h em { font-style: italic; color: var(--cyan); }
.yx-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-size: 1rem; letter-spacing: 0.01em;
  color: #06040A; background: var(--cyan);
  padding: 18px 30px; border-radius: 100px; text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
  box-shadow: 0 10px 40px rgba(103,232,249,0.22);
}
.yx-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 54px rgba(103,232,249,0.34); }
.yx-btn svg { width: 16px; height: 16px; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .yx-bento { grid-template-columns: repeat(2, 1fr); }
  .yx-out-grid { grid-template-columns: 1fr; gap: 7dvh; }
  .yx-out { padding: 0; border-left: none; }
  .yx-flow { flex-direction: column; }
  .yx-link { flex-basis: 40px; width: 2px; height: 40px; align-self: flex-start; margin: -1px 0 -1px 30px;
    -webkit-mask: repeating-linear-gradient(180deg, #000 0 7px, transparent 7px 14px);
    mask: repeating-linear-gradient(180deg, #000 0 7px, transparent 7px 14px);
    animation: yx-dash-v 0.9s linear infinite; }
}
@keyframes yx-dash-v { to { -webkit-mask-position: 0 14px; mask-position: 0 14px; } }
@media (max-width: 640px) {
  .yx-bento { grid-template-columns: 1fr; }
  .yx-sec { padding: 12dvh 7vw; }
  .yx-bridge { padding: 0 7vw 10dvh; }
  .yx-lead { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .yx-body::before, .yx-link, .yx-card:hover::before { animation: none !important; }
  .yx-reveal { opacity: 1 !important; transform: none !important; }
  .yx-lead .yx-w { opacity: 1 !important; }
}
