/* ═══════════════════════════════════════════════════════
   Forge Studio — long-scroll experience
   Layers: #forge-gl (fixed canvas, z:0) → main.exp (z:1)
   ═══════════════════════════════════════════════════════ */

.exp-page { overflow-x: hidden; }

.exp-page .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

main.exp { position: relative; z-index: 1; }
.exp-page .site-footer { position: relative; z-index: 1; }

/*
 * This page owns its entrance motion in experience.js. Keep the generic
 * reveal utility from hiding content again after a GSAP tween completes,
 * and leave everything readable if JavaScript is unavailable.
 */
.exp-page .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- Cards: solid tint for a stable, grounded surface ---------- */
.glass {
  background: color-mix(in srgb, var(--paper) 96%, var(--accent) 4%);
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: var(--r-lg);
}

/* ---------- Chapter dots ---------- */
.exp-dots {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 100px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.exp-dots a {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mute-2);
  opacity: .5;
  transition: all .3s var(--ease);
}
.exp-dots a.active { background: var(--accent); opacity: 1; transform: scale(1.35); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent); }
.exp-dots a span {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translate(4px, -50%);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  opacity: 0;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
}
.exp-dots a:hover span,
.exp-dots a:focus-visible span {
  opacity: 1;
  transform: translate(0, -50%);
}
@media (max-width: 1279px) { .exp-dots { display: none; } }

/* ---------- Hero ---------- */
.exp-hero {
  min-height: calc(100vh - 86px);
  min-height: calc(100svh - 86px);
  display: flex;
  align-items: stretch;
  position: relative;
  padding: 0;
}
.exp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 1fr);
  gap: clamp(40px, 4.2vw, 60px);
  align-items: center;
  min-height: calc(100vh - 86px);
  min-height: calc(100svh - 86px);
}
.exp-hero-copy {
  min-width: 0;
  transform: translateY(5vh);
}
.exp-kicker {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 32px;
}
.exp-h1 {
  font-size: clamp(2.6rem, 5vw, 4.45rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  max-width: 15ch;
}
.exp-lead {
  font-size: clamp(1.02rem, 1.25vw, 1.14rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 48ch;
  margin: 0 0 42px;
}
.exp-hero-media {
  align-self: stretch;
  min-height: 680px;
  margin: 16px 0 0;
  overflow: hidden;
}
.exp-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.exp-scrollhint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.exp-scrollhint i {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--accent), transparent);
  animation: exp-drip 1.8s var(--ease) infinite;
}
@keyframes exp-drip {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Stats ---------- */
.exp-stats { padding: 4vh 0 14vh; }
.exp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 30px 10px;
}
.exp-stats-grid .stat { text-align: center; padding: 0 18px; border-right: 1px solid var(--line); }
.exp-stats-grid .stat:last-child { border-right: 0; }
.exp-stats-grid .stat b { display: block; font-size: 2rem; color: var(--accent); margin-bottom: 6px; }
.exp-stats-grid .stat span { font-size: .85rem; color: var(--mute); line-height: 1.4; display: block; }

/* ---------- Chapters ---------- */
.exp-chapter { padding: 16vh 0; position: relative; }
.exp-chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  margin-bottom: 48px;
}
.exp-num {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  opacity: .8;
  flex-shrink: 0;
}
.exp-chapter-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: 6px 0 0;
  max-width: 24ch;
}
.exp-lead-sm { color: var(--ink-2); max-width: 62ch; margin: -18px 0 44px; line-height: 1.6; }

/* ---------- Work ---------- */
.exp-work { display: flex; flex-direction: column; gap: 34px; margin-bottom: 44px; }
.exp-work-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.exp-work-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--accent) 35%, transparent); }
.exp-work-card:nth-child(even) { direction: rtl; }
.exp-work-card:nth-child(even) .text { direction: ltr; }
.exp-work-card:nth-child(even) .photo { direction: ltr; }
.exp-work-card .photo { aspect-ratio: 16/10; overflow: hidden; }
.exp-work-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.exp-work-card:hover .photo img { transform: scale(1.045); }
.exp-work-card .text { padding: 34px 38px; display: flex; flex-direction: column; justify-content: center; }
.exp-work-card .text small { color: var(--mute); letter-spacing: .04em; }
.exp-work-card .text h3 { font-size: 1.5rem; margin: 10px 0 8px; }
.exp-work-card .text p { color: var(--ink-2); font-size: .97rem; line-height: 1.55; margin: 0 0 18px; }

.exp-work-index { padding: 8px 26px; }
.exp-work-index a {
  display: grid;
  grid-template-columns: 44px 1fr auto 24px;
  align-items: baseline;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left .3s var(--ease), color .3s;
}
.exp-work-index a:last-child { border-bottom: 0; }
.exp-work-index a:hover { padding-left: 12px; color: var(--accent); }
.exp-work-index .num { color: var(--mute-2); font-size: .82rem; }
.exp-work-index b { font-weight: 600; }
.exp-work-index small { color: var(--mute); }
.exp-work-index .arr { color: var(--accent); opacity: 0; transition: opacity .3s; }
.exp-work-index a:hover .arr { opacity: 1; }

.exp-more { margin-top: 34px; }

/* ---------- Services ---------- */
.exp-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.exp-services article { padding: 30px 28px; display: flex; flex-direction: column; transition: transform .4s var(--ease), border-color .4s; }
.exp-services article:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.exp-services small { color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; }
.exp-services h3 { font-size: 1.16rem; margin: 12px 0 10px; line-height: 1.3; }
.exp-services p { color: var(--ink-2); font-size: .93rem; line-height: 1.55; margin: 0 0 20px; flex: 1; }
.exp-services p:last-child { margin-bottom: 0; }
.exp-services b { color: var(--ink); font-size: .95rem; }

/* ---------- Process ---------- */
.exp-process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.exp-process li { padding: 30px 26px 26px; position: relative; overflow: hidden; }
.exp-process .pnum {
  font-size: 2.4rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--mute-2);
  display: block;
  margin-bottom: 14px;
}
.exp-process h3 { font-size: 1.02rem; margin: 0 0 10px; }
.exp-process p { color: var(--ink-2); font-size: .88rem; line-height: 1.55; margin: 0 0 40px; }
.exp-process .stage {
  position: absolute;
  bottom: 18px;
  left: 26px;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.exp-process .stage::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  box-shadow: 0 0 10px var(--accent);
}

/* ---------- Pricing ---------- */
.exp-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.exp-pricing article { padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.exp-pricing article.featured {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 45%, transparent);
}
.exp-pricing .badge {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.exp-pricing h3 { font-size: 1.25rem; margin: 0 0 6px; }
.exp-pricing .tag { color: var(--mute); font-size: .88rem; line-height: 1.5; margin: 0 0 18px; min-height: 2.6em; }
.exp-pricing .price { font-size: 2.3rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 20px; }
.exp-pricing ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.exp-pricing li { padding: 8px 0 8px 24px; position: relative; font-size: .92rem; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.exp-pricing li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-size: .85rem; }
.exp-pricing .btn { text-align: center; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 18px; text-decoration: none; color: inherit; transition: all .3s var(--ease); }
.exp-pricing .btn:hover { border-color: var(--accent); color: var(--accent); }
.exp-pricing .btn.btn-primary { color: #fff; border-color: transparent; }
.exp-pricing .btn.btn-primary:hover { color: #fff; }

/* ---------- About ---------- */
.exp-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.exp-values > div { padding: 26px 24px; }
.exp-values small { color: var(--accent); font-size: 1rem; font-style: italic; }
.exp-values h3 { font-size: 1rem; margin: 10px 0 8px; }
.exp-values p { color: var(--ink-2); font-size: .87rem; line-height: 1.55; margin: 0; }

.exp-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.exp-team > div { padding: 26px 24px; }
.exp-team h3 { margin: 0 0 4px; font-size: 1.08rem; }
.exp-team small { color: var(--accent); display: block; margin-bottom: 10px; }
.exp-team p { color: var(--ink-2); font-size: .89rem; line-height: 1.55; margin: 0; }

/* ---------- Contact ---------- */
.exp-contact { min-height: 88vh; display: flex; align-items: center; }
.exp-contact-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.exp-contact-inner h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; margin: 0 0 18px; }
.exp-contact-inner p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.6; margin: 0 0 32px; }
.exp-contact-inner .hero-actions { justify-content: center; }

/* ---------- Subtle depth gradient on the page itself ---------- */
.exp-page body, body.exp-page { background: radial-gradient(1200px 700px at 70% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent), var(--bg); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .exp-hero {
    min-height: auto;
  }
  .exp-hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
    padding-top: 48px;
  }
  .exp-hero-copy {
    transform: none;
    padding-top: 20px;
  }
  .exp-hero-media {
    min-height: 0;
    max-height: 720px;
    margin: 0;
    aspect-ratio: 4 / 5;
  }
  .exp-h1 {
    max-width: 14ch;
  }
  .exp-services, .exp-pricing { grid-template-columns: 1fr 1fr; }
  .exp-process, .exp-values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .exp-hero-grid {
    gap: 34px;
    padding-top: 28px;
  }
  .exp-hero-copy {
    padding-top: 12px;
  }
  .exp-hero-media {
    max-height: none;
  }
  .exp-h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
    margin-bottom: 20px;
  }
  .exp-kicker {
    margin-bottom: 18px;
  }
  .exp-lead {
    font-size: 1rem;
    margin-bottom: 28px;
  }
  .exp-chapter { padding: 11vh 0; }
  .exp-chapter-head { gap: 16px; margin-bottom: 32px; }
  .exp-work-card { grid-template-columns: 1fr; }
  .exp-work-card:nth-child(even) { direction: ltr; }
  .exp-work-card .text { padding: 24px 22px; }
  .exp-work-index { padding: 4px 16px; }
  .exp-work-index a { grid-template-columns: 34px 1fr 24px; }
  .exp-work-index small { display: none; }
  .exp-stats-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; padding: 24px 6px; }
  .exp-stats-grid .stat:nth-child(2) { border-right: 0; }
  .exp-services, .exp-pricing, .exp-process, .exp-values, .exp-team { grid-template-columns: 1fr; }
  .exp-pricing article.featured { order: -1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #forge-gl { display: none; }
  .exp-scrollhint i { animation: none; }
}
