/* ============================================================
   AQUEN — sections 3–7
   Craft (light editorial) · Systems (white, scroll video) ·
   Retention (dark chart) · Environments (dark cards) ·
   Service (white closing). Modeled on the user's references.
   ============================================================ */

/* ---------------- 3 · Craft ---------------- */
.craft {
  background: var(--ink-13);
  color: var(--ink);
  padding: clamp(72px, 12vh, 160px) var(--hero-pad) clamp(64px, 10vh, 140px);
}
.craft-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  column-gap: clamp(48px, 8vw, 160px);
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
}
.craft-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 3.4vw, 56px);
  line-height: 1.12;
  letter-spacing: var(--tr-base);
}
.craft-intro p {
  font-size: var(--t-16);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: var(--tr-base);
  color: var(--ink-5);
  max-width: 460px;
}
.craft-figure {
  position: relative;
  max-width: 1320px;
  margin: clamp(48px, 8vh, 96px) auto 0;
}
.craft-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.craft-caption {
  position: absolute;
  left: clamp(16px, 2.5vw, 36px);
  bottom: clamp(16px, 2.5vw, 36px);
  max-width: 400px;
  background: rgba(8, 8, 8, 0.92);
  color: rgba(255, 255, 255, 0.85);
  padding: 22px 24px 24px;
}
.craft-caption-title {
  font-size: var(--t-14);
  color: #fff;
  margin-bottom: 12px;
}
.craft-caption-title::before {
  content: "\25CF\00a0\00a0";
  font-size: 9px;
  vertical-align: 2px;
}
.craft-caption p:not(.craft-caption-title) {
  font-size: var(--t-14);
  font-weight: 300;
  line-height: 1.55;
}

/* ---------------- 4 · Systems ---------------- */
.systems {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(72px, 12vh, 160px) var(--hero-pad) 0;
  overflow: hidden;
}
.systems-head {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2.2fr;
  column-gap: clamp(32px, 6vw, 112px);
  max-width: 1500px;
  margin: 0 auto;
}
.systems-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.3;
  letter-spacing: var(--tr-base);
  color: #1f1f1f;
  max-width: 880px;
}
.systems-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1500px;
  margin: clamp(48px, 8vh, 96px) auto 0;
}
.systems-chip {
  font-size: var(--t-12);
  letter-spacing: var(--tr-wide, 0.1em);
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--r-xs);
  padding: 8px 14px;
}
.systems-specs {
  display: grid;
  row-gap: 6px;
  text-align: right;
}
.systems-specs div {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  font-size: var(--t-12);
}
.systems-specs dt {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ink);
}
.systems-specs dd { color: var(--ink-6); }

.systems-stage {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px) 1fr;
  column-gap: clamp(32px, 5vw, 96px);
  align-items: center;
  max-width: 1500px;
  margin: clamp(24px, 4vh, 56px) auto 0;
}
.systems-col {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 9vh, 120px);
  padding-bottom: clamp(48px, 9vh, 120px);
}
.systems-feature h3 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--t-20);
  letter-spacing: var(--tr-base);
  padding-bottom: 14px;
  margin-bottom: 16px;
  position: relative;
  --rule-scale: 1;
}
.systems-feature h3::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.14);
  transform: scaleX(var(--rule-scale));
  transform-origin: left center;
}
.systems-feature p {
  font-size: var(--t-14);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-5);
  max-width: 320px;
}
.systems-media {
  height: clamp(420px, 72vh, 760px);
  overflow: hidden;
  position: relative;
}
.systems-video {
  width: 100%;
  height: 110%;
  object-fit: cover;
  display: block;
  transform: translateY(0);
  will-change: transform;
}

/* ---------------- 5 · Retention ---------------- */
.retention {
  background: var(--night);
  color: #fff;
  padding: clamp(72px, 12vh, 160px) var(--hero-pad);
}
.retention-inner { max-width: 1320px; margin: 0 auto; }
.retention-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  column-gap: clamp(48px, 8vw, 160px);
  align-items: start;
}
.retention-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 3.4vw, 56px);
  line-height: 1.12;
  letter-spacing: var(--tr-base);
}
.retention-head p {
  font-size: var(--t-14);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 420px;
  justify-self: end;
}
.retention-tabs {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(40px, 6vh, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.retention-tabs span {
  font-size: var(--t-14);
  color: rgba(255, 255, 255, 0.55);
  padding-bottom: 14px;
}
.retention-tabs span.is-active {
  color: #fff;
  box-shadow: 0 1px 0 0 #fff;
}
.retention-chart {
  margin-top: clamp(40px, 7vh, 80px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.07) 0,
    rgba(255, 255, 255, 0.07) 1px,
    transparent 1px,
    transparent calc(100% / 14)
  );
  padding-bottom: 4px;
}
.retention-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  font-size: var(--t-14);
  background: #1d1d1d;
  width: calc(var(--w) * 1%);
  min-width: 240px;
  transform-origin: left center;
  transform: scaleX(0.2);
  opacity: 0;
  transition: transform 1100ms var(--ease-out), opacity 600ms var(--ease-out);
}
.retention-chart.in-view .retention-bar {
  transform: scaleX(1);
  opacity: 1;
}
.retention-bar strong { font-weight: 400; color: #fff; white-space: nowrap; }
.retention-bar span { color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.retention-bar.is-aquen {
  background: var(--soni-orange);
  height: 48px;
}
.retention-bar.is-aquen strong,
.retention-bar.is-aquen span { color: #fff; }
.retention-bar:nth-child(2) { transition-delay: 80ms; }
.retention-bar:nth-child(3) { transition-delay: 160ms; }
.retention-bar:nth-child(4) { transition-delay: 240ms; }
.retention-bar:nth-child(5) { transition-delay: 320ms; }
.retention-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: var(--t-12);
  color: rgba(255, 255, 255, 0.45);
}

/* ---------------- 6 · Environments ---------------- */
.environs {
  background: var(--night);
  color: #fff;
  padding: clamp(40px, 7vh, 80px) var(--hero-pad) clamp(80px, 12vh, 160px);
}
.environs-inner { max-width: 1500px; margin: 0 auto; }
.environs-head {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  column-gap: clamp(32px, 6vw, 112px);
  margin-bottom: clamp(48px, 8vh, 96px);
}
.environs-mark {
  font-size: var(--t-12);
  font-weight: 700;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.environs-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.3;
  letter-spacing: var(--tr-base);
  color: rgba(255, 255, 255, 0.95);
  max-width: 820px;
}
.environs-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.environs-card { min-height: clamp(380px, 52vh, 560px); }
.environs-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.environs-card.is-text {
  background: #232321;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
}
.environs-card-label {
  font-size: var(--t-14);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}
.environs-card-label::before {
  content: "\25CF\00a0\00a0";
  font-size: 8px;
  vertical-align: 2px;
  color: var(--soni-orange);
}
.environs-card h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.25;
  letter-spacing: var(--tr-base);
  margin-bottom: 20px;
}
.environs-card p {
  font-size: var(--t-14);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}
.environs-more {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: var(--t-14);
  color: #fff;
  text-decoration: none;
  display: block;
}
.environs-more::before { content: "\21B3\00a0\00a0"; opacity: .7; }

/* ---------------- 7 · Service ---------------- */
.service {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(80px, 13vh, 180px) var(--hero-pad);
}
.service-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 1.6fr;
  column-gap: clamp(48px, 7vw, 140px);
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
}
.service-copy h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.12;
  letter-spacing: var(--tr-base);
  margin-bottom: clamp(40px, 9vh, 120px);
}
.service-copy p {
  font-size: var(--t-14);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-5);
  max-width: 320px;
  margin-bottom: 18px;
}
.service-copy .story-cta { margin-top: 22px; }
.service-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .craft-grid,
  .systems-head,
  .retention-head,
  .environs-head,
  .service-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .systems-stage { grid-template-columns: 1fr; row-gap: 40px; }
  .environs-cards { grid-template-columns: 1fr 1fr; }
  .retention-head p { justify-self: start; }
  .retention-bar { min-width: 200px; }
}
@media (max-width: 560px) {
  .environs-cards { grid-template-columns: 1fr; }
}
