/* ===== Case: Ålands Sjöfartsmuseum ===== */
.case-page {
  --c-gold: #c39a1c;
  --c-gold-soft: rgba(195, 154, 28, 0.16);
  --c-panel: rgba(242, 239, 232, 0.025);
  --c-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.75);
  font-variant-numeric: tabular-nums;
}

body.light-mode.case-page {
  --c-panel: rgba(255, 255, 255, 0.45);
  --c-shadow: 0 40px 100px -40px rgba(60, 40, 20, 0.35);
}

.c-main {
  position: relative;
  color: var(--h-fg);
  overflow-x: clip;
}

.c-main section.c-sec,
.c-main header.c-hero {
  max-width: none;
  margin: 0;
  padding: clamp(80px, 13vh, 150px) 0;
  background: transparent;
  position: relative;
}

.c-main section.c-sec::before,
.c-main section.c-sec::after {
  display: none !important;
  content: none !important;
}

.c-wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--h-edge);
}

.c-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--h-muted);
}

.c-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.c-title {
  font-family: var(--h-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 18px 0 0;
  color: var(--h-fg);
}

.c-lead {
  max-width: 56ch;
  margin: 22px 0 0;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.7;
  color: var(--h-muted);
}

.c-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: clamp(48px, 8vh, 88px);
}

.c-head .c-lead {
  margin: 0 0 6px;
}

/* Reveals */
.c-line {
  display: block;
  overflow: hidden;
  padding: 0.18em 0 0.1em;
  margin: -0.18em 0 -0.1em;
}

.c-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1400ms var(--h-ease) var(--d, 0ms);
}

.is-in .c-line > span,
.c-line.is-in > span {
  transform: none;
}

.c-r {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 1000ms ease var(--d, 0ms), transform 1300ms var(--h-ease) var(--d, 0ms), filter 1000ms ease var(--d, 0ms);
}

.c-r.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.c-rule {
  height: 1px;
  background: var(--h-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1600ms var(--h-ease) var(--d, 0ms);
}

.c-rule.is-in {
  transform: none;
}

/* Section index */
.c-index {
  position: fixed;
  left: clamp(16px, 2vw, 32px);
  top: 50%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.c-index.is-on {
  opacity: 1;
  pointer-events: auto;
}

.c-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--h-faint);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 400ms ease;
}

.c-index a i {
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 600ms var(--h-ease);
}

.c-index a span {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 400ms ease, transform 600ms var(--h-ease);
}

.c-index:hover a span,
.c-index a.is-active span {
  opacity: 1;
  transform: none;
}

.c-index a.is-active,
.c-index a:hover {
  color: var(--h-fg);
}

.c-index a.is-active i {
  width: 32px;
}

@media (max-width: 1360px) {
  .c-index { display: none; }
}

/* Hero */
.c-main header.c-hero {
  padding: clamp(130px, 20vh, 200px) 0 clamp(40px, 8vh, 80px);
}

.c-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(36px, 7vh, 64px);
  color: var(--h-muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 300ms ease;
}

.c-back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 600ms var(--h-ease);
}

.c-back:hover {
  color: var(--h-fg);
}

.c-back:hover svg {
  transform: translateX(-5px);
}

.c-hero-title {
  font-family: var(--h-serif);
  font-weight: 400;
  font-size: clamp(48px, 8.6vw, 150px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 22px 0 0;
  color: var(--h-fg);
}

.c-hero-title .c-line:nth-child(2) {
  padding-left: clamp(0px, 6vw, 110px);
}

.c-hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px 72px;
  margin-top: clamp(40px, 7vh, 72px);
  align-items: end;
}

.c-hero-lead {
  max-width: 48ch;
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--h-muted);
}

.c-hero-lead strong {
  color: var(--h-fg);
  font-weight: 500;
}

.c-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  margin: 0;
}

.c-meta div {
  padding-top: 14px;
  border-top: 1px solid var(--h-line);
}

.c-meta dt {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--h-faint);
}

.c-meta dd {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--h-fg);
}

.c-hero-stage {
  margin-top: clamp(56px, 10vh, 110px);
  perspective: 1800px;
}

/* Device frame */
.c-device {
  position: relative;
  margin: 0;
  border: 1px solid var(--h-line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--c-shadow);
  transform-style: preserve-3d;
  transition: transform 900ms var(--h-ease), box-shadow 900ms ease;
}

body.light-mode .c-device {
  background: #f4efe9;
}

.c-device-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid var(--h-line);
  background: rgba(242, 239, 232, 0.03);
}

.c-device-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--h-line-strong);
}

.c-device-bar em {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 60%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--h-muted);
  transition: opacity 300ms ease;
}

.c-device img {
  display: block;
  width: 100%;
  height: auto;
}

.c-hero-device {
  transform: rotateX(14deg) scale(0.94);
  transform-origin: 50% 0%;
}

.c-hero-device.is-in {
  transform: rotateX(0deg) scale(1);
}

.c-hero-device .c-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 500ms ease;
}

.c-hero-device:hover .c-glare {
  opacity: 1;
}

/* Stats */
.c-main section.c-stats-sec {
  padding: clamp(40px, 7vh, 80px) 0;
}

.c-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
}

.c-stat {
  padding: clamp(28px, 5vh, 48px) clamp(16px, 2vw, 32px);
  border-left: 1px solid var(--h-line);
}

.c-stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.c-stat b {
  display: block;
  font-family: var(--h-serif);
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--h-fg);
}

.c-stat span {
  display: block;
  margin-top: 14px;
  max-width: 22ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--h-muted);
}

/* Before / after */
.c-ba-toggle {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--h-line-strong);
  border-radius: 999px;
}

.c-ba-toggle button {
  position: relative;
  z-index: 1;
  padding: 10px 22px;
  border: 0;
  background: none;
  color: var(--h-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 500ms ease;
}

.c-ba-toggle button[aria-pressed="true"] {
  color: var(--h-bg-ink, #0a0a0a);
}

body.light-mode .c-ba-toggle button[aria-pressed="true"] {
  color: #f5f1eb;
}

.c-ba-toggle .c-ba-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 999px;
  background: var(--h-fg);
  transition: transform 700ms var(--h-spring), width 700ms var(--h-spring);
}

.c-ba {
  margin-top: clamp(32px, 5vh, 48px);
}

.c-ba-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 3fr) 40px;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 3.4vh, 30px) 0;
  border-top: 1px solid var(--h-line);
}

.c-ba-row:last-child {
  border-bottom: 1px solid var(--h-line);
}

.c-ba-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--h-faint);
}

.c-ba-text {
  position: relative;
  display: grid;
}

.c-ba-text > span {
  grid-area: 1 / 1;
  font-family: var(--h-serif);
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: opacity 600ms ease calc(var(--i) * 70ms), transform 900ms var(--h-ease) calc(var(--i) * 70ms), filter 600ms ease calc(var(--i) * 70ms);
}

.c-ba-old {
  color: var(--h-muted);
  text-decoration: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
}

.c-ba-new {
  color: var(--h-fg);
}

.c-ba[data-state="old"] .c-ba-new,
.c-ba[data-state="new"] .c-ba-old {
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

.c-ba[data-state="old"] .c-ba-new { transform: translateY(14px); }
.c-ba[data-state="new"] .c-ba-old { transform: translateY(-14px); }

.c-ba-mark {
  position: relative;
  width: 22px;
  height: 22px;
  justify-self: end;
}

.c-ba-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-ba-mark .c-x { stroke: var(--h-faint); }
.c-ba-mark .c-check { stroke: var(--c-gold); }

.c-ba-mark path {
  stroke-dasharray: 30;
  transition: stroke-dashoffset 700ms var(--h-ease) calc(var(--i) * 70ms + 150ms);
}

.c-ba[data-state="old"] .c-check,
.c-ba[data-state="new"] .c-x {
  stroke-dashoffset: 30;
}

.c-ba[data-state="old"] .c-x,
.c-ba[data-state="new"] .c-check {
  stroke-dashoffset: 0;
}

/* Story (sticky scrollytelling) */
.c-story {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.c-story-media {
  position: sticky;
  top: clamp(90px, 14vh, 130px);
}

.c-story-shots {
  position: relative;
  aspect-ratio: 1197 / 860;
  background: #1c1c1c;
  overflow: hidden;
}

body.light-mode .c-story-shots {
  background: #ece6df;
}

.c-story-shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.06);
  transition: clip-path 1100ms var(--h-ease), transform 1400ms var(--h-ease);
}

.c-story-shots img:not(.is-active) {
  pointer-events: none;
}

.c-story-shots img.is-active {
  clip-path: inset(0 0 0 0);
  transform: none;
  z-index: 2;
  cursor: zoom-in;
}

.c-story-shots img.is-leaving {
  clip-path: inset(0 0 0 0);
  z-index: 1;
  transform: scale(0.97);
  filter: brightness(0.5);
  transition: transform 1100ms var(--h-ease), filter 1100ms ease;
}

.c-story-meter {
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  gap: 6px;
  margin-top: 18px;
}

.c-story-meter i {
  height: 2px;
  background: var(--h-line);
  position: relative;
  overflow: hidden;
}

.c-story-meter i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--h-fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--h-ease);
}

.c-story-meter i.is-done::after {
  transform: none;
}

.c-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
  opacity: 0.22;
  transition: opacity 700ms ease;
}

.c-step:first-child {
  min-height: 50vh;
  justify-content: flex-start;
  padding-top: 40px;
}

.c-step:last-child {
  min-height: 60vh;
}

.c-step.is-active {
  opacity: 1;
}

.c-step-n {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--h-faint);
}

.c-step h3 {
  margin: 14px 0 0;
  font-family: var(--h-serif);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--h-fg);
}

.c-step p {
  margin: 18px 0 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--h-muted);
}

.c-step ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.c-step li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--h-fg);
}

.c-step li::before {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 1px;
  margin-top: 0.75em;
  background: var(--c-gold);
}

.c-step-shot {
  display: none;
}

/* Demos */
.c-demos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(64px, 11vh, 120px);
}

.c-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--h-line);
  border-radius: 18px;
  background: var(--c-panel);
  overflow: hidden;
}

.c-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, -100%) var(--my, -100%), rgba(242, 239, 232, 0.06), transparent 45%);
}

.c-demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.c-demo-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: cPulse 2.4s ease-out infinite;
}

@keyframes cPulse {
  0% { box-shadow: 0 0 0 0 rgba(195, 154, 28, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(195, 154, 28, 0); }
}

.c-demo h3 {
  margin: 16px 0 0;
  font-family: var(--h-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.c-demo > p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--h-muted);
}

.c-demo-body {
  margin-top: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.c-demo-wide {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}

.c-demo-wide .c-demo-body {
  margin-top: 0;
}

.c-demo-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.c-demo-intro p {
  margin: 14px 0 0;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--h-muted);
}

.c-cash-check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 12px 18px 12px 14px;
  border: 1px solid var(--h-line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--h-fg);
  transition: border-color 500ms ease, background 500ms ease, transform 600ms var(--h-spring);
}

.c-demo-intro .c-cash-check {
  margin-top: 32px;
}

.c-cash-check-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--h-faint);
  transition: background 400ms ease;
}

.c-cash-check[data-state="idle"] .c-cash-check-dot {
  animation: cBlink 900ms ease-in-out infinite;
}

.c-cash-check[data-state="ok"] {
  border-color: rgba(195, 154, 28, 0.6);
  background: var(--c-gold-soft);
}

.c-cash-check[data-state="ok"] .c-cash-check-dot {
  background: var(--c-gold);
  box-shadow: 0 0 12px var(--c-gold);
}

.c-cash-check[data-state="diff"] {
  border-color: rgba(224, 102, 79, 0.6);
  background: rgba(224, 102, 79, 0.1);
}

.c-cash-check[data-state="diff"] .c-cash-check-dot {
  background: #e0664f;
  box-shadow: 0 0 12px #e0664f;
}

@keyframes cBlink {
  50% { opacity: 0.25; }
}

.c-demo-intro .c-cash-target {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.c-cash-target b {
  color: var(--h-fg);
  font-weight: 500;
}

/* Cash demo */
.c-cash {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.c-coin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px 10px;
  border: 1px solid var(--h-line);
  border-radius: 10px;
  transition: border-color 300ms ease, background 300ms ease;
}

.c-coin.is-bump {
  border-color: rgba(195, 154, 28, 0.6);
  background: var(--c-gold-soft);
}

.c-coin-v {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--h-muted);
}

.c-coin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.c-coin button {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid var(--h-line-strong);
  border-radius: 50%;
  background: none;
  color: var(--h-fg);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.c-coin button:hover {
  background: var(--h-tint);
}

.c-coin button:active {
  transform: scale(0.88);
}

.c-coin output {
  font-size: 16px;
  font-weight: 500;
  color: var(--h-fg);
}

.c-cash-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  padding-top: 24px;
}

.c-cash-totals div {
  padding-top: 16px;
  border-top: 1px solid var(--h-line);
}

.c-cash-totals dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--h-faint);
}

.c-cash-totals dd {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--h-fg);
}

.c-cash-totals div:last-child dd {
  font-family: var(--h-serif);
  font-size: clamp(22px, 2vw, 28px);
  color: var(--c-gold);
}

/* Membership card demo */
.c-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.c-member-form label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--h-faint);
}

.c-main .c-member-form input {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--h-line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--h-fg);
  font-family: var(--h-serif);
  font-size: clamp(24px, 2.4vw, 34px);
  outline: none;
  box-shadow: none;
  transition: border-color 400ms ease;
}

.c-main .c-member-form input:focus {
  border-color: var(--c-gold);
  background: transparent;
  box-shadow: none;
}

.c-member-form input::placeholder {
  color: var(--h-faint);
}

.c-member-auto {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--h-muted);
}

.c-member-auto b {
  color: var(--h-fg);
  font-weight: 500;
}

.c-send {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 16px 28px;
  border: 1px solid var(--h-fg);
  border-radius: 999px;
  background: none;
  color: var(--h-fg);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 500ms var(--h-ease);
}

.c-send::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--h-fg);
  transform: translateY(101%);
  transition: transform 600ms var(--h-ease);
}

.c-send:hover {
  color: #0a0a0a;
}

body.light-mode .c-send:hover {
  color: #f5f1eb;
}

.c-send:hover::before {
  transform: none;
}

.c-send span,
.c-send svg {
  position: relative;
}

.c-send svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-send[disabled] {
  pointer-events: none;
  opacity: 0.5;
}

.c-card-stage {
  perspective: 1400px;
}

.c-card {
  position: relative;
  aspect-ratio: 500 / 312;
  border-radius: 16px;
  overflow: hidden;
  color: #1b1405;
  background: #c39a1c;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 600ms var(--h-ease);
  container-type: inline-size;
}

.c-card.is-tracking {
  transition: transform 120ms linear;
}

.c-card-top {
  position: relative;
  height: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 26%;
  background:
    repeating-radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px),
    repeating-radial-gradient(circle at 75% 80%, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 18px),
    #4a4a4a;
  color: #fff;
}

.c-card-top strong {
  font-size: 8.4cqw;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.c-card-top small {
  margin-top: 1.4cqw;
  font-size: 2.6cqw;
  letter-spacing: 0.12em;
}

.c-card-logo {
  position: absolute;
  right: 4%;
  top: 16%;
  height: 68%;
  width: 22%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 5.5cqw;
  background: #c39a1c;
  border-radius: 0;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 18% 100%, 0 50%);
  color: #fff;
  font-size: 1.9cqw;
  line-height: 1.15;
  letter-spacing: 0.1em;
}

.c-card-logo b {
  font-weight: 600;
}

.c-card-body {
  padding: 4% 7% 0;
}

.c-card-org {
  text-align: center;
  font-size: 3.8cqw;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.c-card-field {
  display: flex;
  align-items: flex-end;
  gap: 3cqw;
  margin-top: 4.2cqw;
  font-size: 3.8cqw;
}

.c-card-field > span:first-child {
  flex-shrink: 0;
}

.c-card-field > em {
  flex: 1;
  min-width: 0;
  padding: 0 0 1cqw 2cqw;
  border-bottom: 2px dashed rgba(27, 20, 5, 0.55);
  font-style: normal;
  font-size: 3cqw;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-card-field .c-card-dates {
  display: flex;
  justify-content: space-between;
}

.c-card-foot {
  position: absolute;
  right: 7%;
  bottom: 5%;
  font-size: 3.2cqw;
  font-weight: 500;
}

.c-card-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, 0.75), transparent 45%),
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  background-size: 100% 100%, 250% 250%;
  background-position: 0 0, var(--shx, 120%) 0;
  opacity: 0.8;
}

.c-card.is-printing .c-card-sheen {
  animation: cSheen 1200ms var(--h-ease);
}

@keyframes cSheen {
  from { background-position: 0 0, 160% 0; }
  to { background-position: 0 0, -60% 0; }
}

/* Pipeline */
.c-pipe {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(64px, 10vh, 110px);
}

.c-pipe::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 1px;
  background: var(--h-line);
}

.c-pipe-fill {
  position: absolute;
  left: 0;
  top: 15px;
  height: 1px;
  width: 100%;
  background: var(--c-gold);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform 900ms var(--h-ease);
}

.c-pipe-step {
  position: relative;
  padding-right: 24px;
}

.c-pipe-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--h-line-strong);
  border-radius: 50%;
  background: var(--c-dot-bg, #0a0a0a);
  transition: border-color 500ms ease, background 500ms ease, transform 600ms var(--h-spring);
}

body.light-mode .c-pipe-dot {
  --c-dot-bg: #f6efe9;
}

.c-pipe-dot svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #0a0a0a;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 500ms var(--h-ease) 150ms;
}

.c-pipe-step.is-done .c-pipe-dot {
  border-color: var(--c-gold);
  background: var(--c-gold);
  transform: scale(1.08);
}

.c-pipe-step.is-done .c-pipe-dot svg {
  stroke-dashoffset: 0;
}

.c-pipe-step h4 {
  margin: 22px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--h-fg);
}

.c-pipe-step p {
  margin: 8px 0 0;
  max-width: 28ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--h-muted);
}

.c-pipe-step time {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-gold);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 500ms ease, transform 700ms var(--h-ease);
}

.c-pipe-step.is-done time {
  opacity: 1;
  transform: none;
}

/* Gallery */
.c-shots {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(64px, 10vh, 110px);
}

.c-shot {
  position: relative;
  margin: 0;
  grid-column: span 4;
}

.c-shot.is-wide {
  grid-column: span 8;
}

.c-shot-frame {
  position: relative;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--h-line);
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  cursor: zoom-in;
}

body.light-mode .c-shot-frame {
  background: #ece6df;
}

.c-shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1400ms var(--h-ease), filter 800ms ease;
  filter: saturate(0.85);
}

.c-shot-frame:hover img {
  transform: scale(1.04);
  filter: none;
}

.c-shot figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--h-muted);
}

.c-shot figcaption b {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--h-faint);
}

/* Architecture */
.c-arch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "client client"
    "a b"
    "db db";
  gap: clamp(56px, 9vh, 96px) clamp(24px, 4vw, 64px);
}

.c-arch-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.c-arch::before {
  content: '';
  position: absolute;
  inset: -60px -40px;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--h-line-strong) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  opacity: 0;
  transition: opacity 2000ms ease;
}

.c-arch.is-in::before {
  opacity: 0.35;
}

.c-arch-lines path {
  fill: none;
  stroke: var(--h-line-strong);
  stroke-width: 1;
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  transition: stroke-dashoffset 1800ms var(--h-ease) var(--d, 0ms), stroke 500ms ease, stroke-width 500ms ease;
}

.c-arch.is-in .c-arch-lines path {
  stroke-dashoffset: 0;
}

.c-arch-lines path.is-hot {
  stroke: rgba(195, 154, 28, 0.7);
  stroke-width: 1.5;
}

.c-arch-lines .c-track {
  stroke: var(--h-fg);
  stroke-width: 1;
  stroke-dasharray: 1 9;
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 1200ms ease;
  animation: cMarch 1.6s linear infinite;
}

.c-arch.is-live .c-arch-lines .c-track {
  opacity: 0.18;
}

@keyframes cMarch {
  to { stroke-dashoffset: -20; }
}

.c-packet circle {
  fill: var(--c-gold);
}

.c-packet.is-res circle {
  fill: var(--h-fg);
}

.c-packet-label {
  fill: var(--c-gold);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.c-packet-label.is-res {
  fill: var(--h-fg);
}

.c-node.is-ping {
  animation: cPing 900ms var(--h-ease);
}

@keyframes cPing {
  0% { box-shadow: 0 0 0 0 rgba(195, 154, 28, 0.45); border-color: var(--c-gold); }
  100% { box-shadow: 0 0 0 18px rgba(195, 154, 28, 0); }
}

.c-node small::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  vertical-align: 1px;
  background: var(--c-gold);
  animation: cPulse 2.4s ease-out infinite;
}

.c-node {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--h-line-strong);
  border-radius: 16px;
  background: var(--c-node-bg, #0c0c0c);
  transition: border-color 500ms ease, transform 700ms var(--h-ease);
}

body.light-mode .c-node {
  --c-node-bg: #f6eee8;
}

.c-node:hover {
  border-color: var(--c-gold);
  transform: translateY(-4px);
}

.c-node-client {
  grid-area: client;
  justify-self: center;
  text-align: center;
  min-width: min(100%, 420px);
}

.c-node-a { grid-area: a; }
.c-node-b { grid-area: b; }

.c-node-db {
  grid-area: db;
  justify-self: center;
  text-align: center;
  min-width: min(100%, 420px);
}

.c-node small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--h-faint);
}

.c-node h3 {
  margin: 10px 0 0;
  font-family: var(--h-serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.015em;
}

.c-node p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--h-muted);
}

.c-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.c-node-client .c-chips,
.c-node-db .c-chips {
  justify-content: center;
}

.c-chips span {
  padding: 7px 12px;
  border: 1px solid var(--h-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--h-fg);
  transition: border-color 300ms ease, background 300ms ease;
}

.c-chips span:hover {
  border-color: var(--h-line-strong);
  background: var(--h-tint);
}

/* Details rail */
.c-rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.c-rail-ctrl {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.c-rail-count {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--h-muted);
}

.c-rail-count b {
  color: var(--h-fg);
  font-weight: 500;
}

.c-rail-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--h-line-strong);
  border-radius: 50%;
  background: none;
  color: var(--h-fg);
  cursor: pointer;
  transition: background 300ms ease, border-color 300ms ease, opacity 300ms ease;
}

.c-rail-btn:hover {
  background: var(--h-tint);
  border-color: var(--h-fg);
}

.c-rail-btn[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.c-rail-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-rail {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(40px, 6vh, 64px);
  padding: 0 var(--h-edge) 8px;
  padding-left: max(var(--h-edge), calc((100vw - 1240px) / 2 + var(--h-edge)));
  padding-right: max(var(--h-edge), calc((100vw - 1240px) / 2 + var(--h-edge)));
  scroll-padding-left: max(var(--h-edge), calc((100vw - 1240px) / 2 + var(--h-edge)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.c-rail::-webkit-scrollbar {
  display: none;
}

.c-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.c-rail.is-dragging * {
  pointer-events: none;
}

.c-rail .c-shot {
  flex: 0 0 clamp(280px, 34vw, 480px);
  scroll-snap-align: start;
}

.c-rail-bar {
  height: 1px;
  margin-top: 32px;
  background: var(--h-line);
  position: relative;
  overflow: hidden;
}

.c-rail-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--w, 20%);
  background: var(--h-fg);
  transform: translateX(var(--x, 0));
}

/* Delivered */
.c-deliver {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--h-line);
}

.c-deliver li {
  list-style: none;
  position: relative;
  padding: clamp(24px, 4vh, 36px) clamp(16px, 2vw, 28px) clamp(24px, 4vh, 36px) 0;
  border-bottom: 1px solid var(--h-line);
}

.c-deliver li:not(:nth-child(3n + 1)) {
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--h-line);
}

.c-deliver span {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--h-faint);
}

.c-deliver h3 {
  margin: 14px 0 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--h-fg);
}

.c-deliver p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--h-muted);
}

.c-deliver li::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--h-ease);
}

.c-deliver li:hover::after {
  transform: none;
}

/* CTA */
.c-main section.c-cta-sec {
  padding: clamp(110px, 18vh, 200px) 0;
  text-align: center;
}

.c-cta-title {
  font-family: var(--h-serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 22px auto 0;
  max-width: 14ch;
}

.c-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 36px;
  margin-top: clamp(40px, 7vh, 64px);
}

.c-cta-actions .c-send {
  margin-top: 0;
  text-decoration: none;
}

/* Lightbox */
.c-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 72px);
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
  cursor: zoom-out;
}

.c-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.c-lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform 700ms var(--h-ease);
}

.c-lightbox.is-open img {
  transform: none;
}

.c-lightbox p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(16px, 3vh, 32px);
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(242, 239, 232, 0.7);
}

/* Responsive */
@media (max-width: 1024px) {
  .c-demos { grid-template-columns: 1fr; }
  .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .c-stat:nth-child(n + 3) { border-top: 1px solid var(--h-line); }
  .c-deliver { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-deliver li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .c-deliver li:nth-child(even) { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--h-line); }
}

@media (max-width: 860px) {
  .c-demo-wide { grid-template-columns: 1fr; }
  .c-head,
  .c-hero-bottom,
  .c-member { grid-template-columns: 1fr; }

  .c-story { grid-template-columns: 1fr; }
  .c-story-media { display: none; }
  .c-step,
  .c-step:first-child,
  .c-step:last-child {
    min-height: 0;
    padding: 0 0 56px;
    opacity: 1;
  }
  .c-step-shot {
    display: block;
    margin-bottom: 24px;
  }

  .c-shot,
  .c-shot.is-wide { grid-column: span 12; }

  .c-pipe {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: 52px;
  }
  .c-pipe::before,
  .c-pipe-fill {
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }
  .c-pipe-fill {
    height: 100%;
    transform: scaleY(var(--p, 0));
    transform-origin: top;
  }
  .c-pipe-dot {
    position: absolute;
    left: -52px;
    top: 0;
  }
  .c-pipe-step h4 { margin-top: 4px; }

  .c-arch {
    grid-template-columns: 1fr;
    grid-template-areas: "client" "a" "b" "db";
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .c-hero-title { font-size: clamp(30px, 11vw, 48px); }
  .c-hero-title .c-line:nth-child(2) { padding-left: 0; }
  .c-meta { grid-template-columns: 1fr 1fr; }
  .c-ba-row { grid-template-columns: 1fr 28px; gap: 10px 16px; }
  .c-ba-label { grid-column: 1 / -1; }
  .c-cash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-cash-totals { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .c-cash-totals div:last-child { grid-column: 1 / -1; margin-top: 16px; }
  .c-deliver { grid-template-columns: 1fr; }
  .c-deliver li:nth-child(even) { padding-left: 0; border-left: 0; }
  .c-rail-head { flex-direction: column; align-items: flex-start; }
  .c-rail .c-shot { flex-basis: 82vw; }
}

@media (prefers-reduced-motion: reduce) {
  .c-r, .c-line > span, .c-rule, .c-hero-device {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .c-arch-lines path { stroke-dashoffset: 0 !important; }
  .c-arch-lines .c-track { animation: none; }
}
