/* ==========================================================================
   AND Elektrik — Section styles
   Order mirrors index.html: hero → value strip → products → product detail →
   applications → production → why → knowledge → CTA.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section chrome shared by every band
   -------------------------------------------------------------------------- */
.section-index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.hero {
  --hero-progress: 0;
  position: relative;
  padding-top: clamp(2rem, 1rem + 3.5vw, 4.5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  overflow: clip;
}

/* Backdrop brightens very slightly as the hero scrolls away. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 72% 62% at 62% 42%, #000 15%, transparent 76%);
  opacity: calc(0.85 - var(--hero-progress) * 0.35);
}

.hero__bg-bloom {
  position: absolute;
  right: -14%;
  top: -18%;
  width: min(60rem, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 113, 131, 0.4), transparent 62%);
  filter: blur(40px);
  opacity: calc(0.75 + var(--hero-progress) * 0.25);
}

.hero__bg-bloom--accent {
  right: auto;
  left: -20%;
  top: auto;
  bottom: -32%;
  width: min(42rem, 80vw);
  background: radial-gradient(circle, rgba(242, 107, 33, 0.22), transparent 64%);
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  align-items: center;
}

@media (min-width: 1060px) {
  .hero__inner {
    /* The 3D product dominates the right side. */
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    min-height: calc(100svh - 190px);
  }
}

.hero__copy {
  display: grid;
  gap: var(--space-5);
  max-width: 38rem;
  justify-items: start;
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__title-line {
  display: block;
}

.hero__title-line > span {
  display: block;
}

/* The line mask only makes sense when each line is guaranteed to be one
   line — below the two-column breakpoint the headline wraps naturally. */
@media (min-width: 1060px) {
  .hero__title-line {
    overflow: hidden;
  }

  .hero__title-line > span {
    white-space: nowrap;
  }
}

/* Accent word: white type over a thin brand rule, not coloured text. */
.hero__accent {
  position: relative;
  font-style: normal;
  white-space: nowrap;
}

.hero__accent::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: 0.1em;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-500), rgba(242, 107, 33, 0));
  transform: scaleX(var(--accent-rule, 1));
  transform-origin: left;
}

.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

/* Product line: the Ω / kW values actually in production, set like a
   specification strip rather than a row of pills. */
.hero__line {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
}

.hero__line-item {
  display: grid;
  gap: 0.2rem;
  padding: var(--space-4) var(--space-5) 0 0;
  margin-right: var(--space-5);
  border-right: 1px solid var(--line-soft);
}

.hero__line-item:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.hero__line-item dt {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero__line-item dd {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__line-item--note dt {
  color: var(--accent-400);
}

@media (max-width: 560px) {
  .hero__line-item {
    padding-right: var(--space-4);
    margin-right: var(--space-4);
  }

  .hero__line-item--note {
    border-top: 1px solid var(--line-soft);
    padding-top: var(--space-3);
    margin-top: var(--space-3);
    flex-basis: 100%;
  }
}

/* --------------------------------------------------------------------------
   2. WebGL product stage
   Shared by the hero (`.stage--hero`) and the product modal (`.modal__stage`).
   -------------------------------------------------------------------------- */

/* Figure wrapper: caption rule above, product switch below. */
.stage-figure {
  display: grid;
  gap: var(--space-4);
}

.stage-figure__caption {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.stage-figure__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.stage-figure__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.stage-figure__readout {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  white-space: nowrap;
}

.stage-figure__ohm {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stage-figure__kw {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-400);
}

/* --- Stage surface -------------------------------------------------------- */
.stage {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  touch-action: none;
  cursor: grab;
  background: radial-gradient(112% 86% at 50% -6%, rgba(27, 113, 131, 0.22), transparent 62%),
    linear-gradient(170deg, rgba(15, 25, 31, 0.9), rgba(4, 7, 10, 0.98));
  overflow: hidden;
  isolation: isolate;
}

.stage.is-interacting {
  cursor: grabbing;
}

/* In the hero the stage reads as a studio, not as a card: no drop shadow,
   a soft floor gradient and crop marks instead of heavy chrome. */
.stage--hero {
  border-color: rgba(233, 241, 243, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.stage--hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(2, 5, 7, 0.75), transparent);
  pointer-events: none;
  z-index: 1;
}

.stage__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 19rem;
  /* The stage is the OrbitControls hit target — don't let the page steal drags. */
  touch-action: none;
  cursor: grab;
}

.stage.is-interacting .stage__frame,
.stage__frame:active {
  cursor: grabbing;
}

@media (min-width: 1060px) {
  .stage__frame {
    aspect-ratio: 10 / 8;
  }
}

.stage__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 62% 54% at 50% 46%, #000, transparent 80%);
  opacity: 0.7;
  pointer-events: none;
}

/* Crop marks — quiet technical framing */
.stage__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(233, 241, 243, 0.18);
  pointer-events: none;
  z-index: 2;
}

.stage__corner--tl {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}

.stage__corner--tr {
  top: 14px;
  right: 14px;
  border-left: 0;
  border-bottom: 0;
}

.stage__corner--bl {
  bottom: 14px;
  left: 14px;
  border-right: 0;
  border-top: 0;
}

.stage__corner--br {
  bottom: 14px;
  right: 14px;
  border-left: 0;
  border-top: 0;
}

.stage__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
  pointer-events: none;
}

.stage.is-ready .stage__canvas {
  opacity: 1;
}

.stage__canvas:active {
  cursor: grabbing;
}

/* Invisible hit plate on top — OrbitControls listens here so overlays
   and pointer-events:none children cannot swallow the drag. */
.stage__hit {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}

.stage.is-interacting .stage__hit {
  cursor: grabbing;
}

/* Photograph only when WebGL is missing — never as a loading poster. */
.stage__fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  padding: clamp(1.25rem, 3.5vw, 3rem);
  pointer-events: none;
}

.stage.is-unsupported .stage__fallback {
  display: grid;
}

.stage.is-unsupported .stage__fallback[hidden] {
  display: grid;
}

.stage__fallback img {
  width: min(100%, 30rem);
  border-radius: var(--r-md);
  object-fit: contain;
  background: #fff;
  padding: var(--space-4);
}

.stage__loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: opacity var(--dur-base) var(--ease-out);
}

.stage.is-ready .stage__loader,
.stage.is-unsupported .stage__loader {
  opacity: 0;
  visibility: hidden;
}

.stage__spinner {
  width: 1.35rem;
  height: 1.35rem;
  border: 1.5px solid rgba(233, 241, 243, 0.12);
  border-top-color: var(--accent-500);
  border-radius: 50%;
  animation: stage-spin 0.7s linear infinite;
}

/* Annotation host: filled by js/three/Annotations.js */
.stage__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* Drag hint — plain type, bottom right, fades on first interaction */
.stage__hint {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 5;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  transition: opacity var(--dur-base) var(--ease-out);
}

.stage__hint svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--brand-300);
}

.stage.is-interacting .stage__hint,
.stage:not(.is-ready) .stage__hint {
  opacity: 0;
}

/* --- Product switch (below the stage) ------------------------------------- */
.stage-switch {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}

.stage-switch::-webkit-scrollbar {
  display: none;
}

.stage-switch__btn {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: var(--space-4) var(--space-5) var(--space-4) 0;
  margin-right: var(--space-5);
  border-right: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out);
}

.stage-switch__btn span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Active marker: a short rule on the top edge, aligned to the hairline */
.stage-switch__btn::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: var(--space-5);
  height: 1px;
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}

.stage-switch__btn:hover {
  color: var(--text-muted);
}

.stage-switch__btn.is-active {
  color: var(--text);
}

.stage-switch__btn.is-active::before {
  transform: scaleX(1);
}

.stage-switch__btn--tool {
  margin-left: auto;
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  gap: 0.45rem;
  align-items: center;
}

.stage-switch__btn--tool svg {
  width: 0.95rem;
  height: 0.95rem;
}

.stage-switch__btn--tool::before {
  display: none;
}

.stage-switch__btn--tool.is-active {
  color: var(--accent-400);
}


/* --------------------------------------------------------------------------
   3. Value strip
   -------------------------------------------------------------------------- */
.value-strip {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(9, 46, 56, 0.28), transparent);
}

.value-strip__grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.value-strip__item {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-5);
  border-left: 1px solid var(--line-soft);
}

.value-strip__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.value-strip__index {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--accent-500);
}

.value-strip__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
}

.value-strip__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   4. Products
   -------------------------------------------------------------------------- */
.products__grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(172deg, rgba(22, 36, 44, 0.72), rgba(7, 12, 16, 0.94));
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(242, 107, 33, 0.3);
  box-shadow: var(--shadow-lg);
}

/* Accent line that appears on hover */
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, var(--accent-500), var(--brand-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}

.product-card:hover::before,
.product-card:focus-within::before {
  transform: scaleX(1);
}

/* White "datasheet" panel: the real product photography sits on light stock */
.product-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: linear-gradient(180deg, #ffffff, #e8eef1);
  overflow: hidden;
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(17, 86, 101, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 86, 101, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.product-card__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease-out);
}

.product-card:hover .product-card__img {
  transform: scale(1.045);
}

.product-card__badge {
  position: absolute;
  z-index: 2;
  top: var(--space-4);
  left: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-xs);
  background: rgba(6, 30, 37, 0.9);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-100);
}

.product-card__body {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  flex: 1;
}

.product-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.product-card__title {
  font-size: var(--fs-h4);
}

.product-card__sub {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.product-card__values {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
  flex: none;
}

.product-card__ohm {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-400);
  letter-spacing: -0.02em;
}

.product-card__kw {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.product-card__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

.product-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
}

/* CTA becomes visible on hover, stays reachable by keyboard */
.product-card__cta {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.product-card:hover .product-card__cta,
.product-card:focus-within .product-card__cta {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .product-card__cta {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   5. Product detail (3D viewer + specification panel)
   -------------------------------------------------------------------------- */
.detail {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  margin-top: var(--space-8);
  align-items: start;
}

@media (min-width: 1000px) {
  .detail {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

.detail__content {
  display: grid;
  gap: var(--space-5);
}

/* Large white datasheet panel holding the real product photograph */
.detail__panel {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #ffffff, #e6edf0);
  overflow: hidden;
}

.detail__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(17, 86, 101, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 86, 101, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.detail__panel img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail__thumbs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.detail__title {
  font-size: var(--fs-h2);
}

.detail__text {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  max-width: 44ch;
}

.detail__specs {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface-inset);
  padding: var(--space-4) var(--space-5);
}

.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.detail__thumb {
  width: 5.25rem;
  aspect-ratio: 1;
  padding: 0.35rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail__thumb:hover {
  transform: translateY(-2px);
  border-color: var(--accent-500);
}

/* Viewer toolbar: [ − ] [ RESET ] [ + ] [ FULLSCREEN ] */
.viewer-toolbar {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: rgba(4, 7, 10, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.viewer-toolbar__btn {
  display: grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding-inline: 0.5rem;
  border-radius: var(--r-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.viewer-toolbar__btn svg {
  width: 1rem;
  height: 1rem;
}

.viewer-toolbar__btn:hover {
  background: rgba(233, 241, 243, 0.08);
  color: var(--text);
}

.viewer-toolbar__btn.is-active {
  color: var(--accent-400);
}

/* --------------------------------------------------------------------------
   6. Applications
   -------------------------------------------------------------------------- */
.apps {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

@media (min-width: 920px) {
  .apps {
    grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
    gap: clamp(2rem, 1rem + 3vw, 4rem);
  }
}

.apps__tablist {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: var(--space-2);
}

.apps__tablist::-webkit-scrollbar {
  display: none;
}

@media (min-width: 920px) {
  .apps__tablist {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
    border-left: 1px solid var(--line-soft);
  }
}

.apps__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

@media (min-width: 920px) {
  .apps__tab {
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    margin-left: -1px;
    white-space: normal;
    text-align: left;
  }
}

.apps__tab svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  color: var(--brand-300);
  transition: color var(--dur-base) var(--ease-out);
}

.apps__tab:hover {
  color: var(--text);
  background: rgba(233, 241, 243, 0.03);
}

.apps__tab[aria-selected="true"] {
  color: var(--text);
  background: rgba(242, 107, 33, 0.07);
  border-color: var(--accent-500);
}

.apps__tab[aria-selected="true"] svg {
  color: var(--accent-400);
}

.apps__panel {
  display: none;
}

.apps__panel.is-active {
  display: grid;
  gap: var(--space-5);
}

.apps__panel-body {
  display: grid;
  gap: var(--space-4);
  max-width: 60ch;
}

.apps__panel-title {
  font-size: var(--fs-h3);
}

.apps__panel-text {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

.apps__panel-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent-500);
  border-radius: var(--r-sm);
  background: var(--surface-inset);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. Production: process rail + photography
   -------------------------------------------------------------------------- */
.process__track {
  position: relative;
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

@media (min-width: 900px) {
  .process__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .process__track::before,
  .process__track::after {
    content: "";
    position: absolute;
    top: 1.05rem;
    left: 5%;
    right: 5%;
    height: 1px;
    background: var(--line);
  }

  .process__track::after {
    right: auto;
    width: calc((100% - 10%) * var(--progress, 0));
    background: linear-gradient(90deg, var(--brand-400), var(--accent-500));
    box-shadow: 0 0 14px rgba(242, 107, 33, 0.5);
  }
}

.process__step {
  position: relative;
  display: grid;
  gap: var(--space-2);
  align-content: start;
  padding-left: 3.25rem;
}

@media (min-width: 900px) {
  .process__step {
    padding-left: 0;
    padding-top: 3rem;
  }
}

.process__marker {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  transition: color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.process__step.is-reached .process__marker {
  color: #fff;
  border-color: rgba(242, 107, 33, 0.55);
  background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
  box-shadow: 0 0 0 4px rgba(242, 107, 33, 0.12);
}

.process__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
}

.process__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

.gallery__grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-8);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 9rem;
}

@media (min-width: 760px) {
  .gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 11rem;
  }
}

.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--ink-950);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.gallery__item:hover {
  border-color: rgba(242, 107, 33, 0.35);
  box-shadow: var(--shadow-md);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-base) var(--ease-out);
  filter: saturate(0.9) contrast(1.03);
}

.gallery__item:hover img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.05);
}

.gallery__item--wide {
  grid-column: span 2;
}

@media (min-width: 760px) {
  .gallery__item--tall {
    grid-row: span 2;
  }
}

.gallery__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(4, 7, 10, 0.92), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.gallery__item:hover .gallery__overlay,
.gallery__item:focus-visible .gallery__overlay {
  opacity: 1;
  transform: none;
}

.gallery__caption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-align: left;
  color: var(--text);
}

.gallery__zoom {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--accent-400);
}

.gallery__zoom svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* --------------------------------------------------------------------------
   8. Why AND Elektrik
   -------------------------------------------------------------------------- */
.why__grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.why-card {
  position: relative;
  display: grid;
  gap: var(--space-4);
  align-content: start;
  padding: var(--space-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface-glass);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.why-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-500), transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-slow) var(--ease-out);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: rgba(22, 36, 44, 0.72);
}

.why-card:hover::after {
  transform: scaleY(1);
}

/* --------------------------------------------------------------------------
   9. Knowledge / SEO block + FAQ
   -------------------------------------------------------------------------- */
.knowledge {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

@media (min-width: 980px) {
  .knowledge {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.knowledge__body {
  display: grid;
  gap: var(--space-4);
  max-width: 54ch;
}

.knowledge__body p {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

.knowledge__body h3 {
  margin-top: var(--space-3);
  font-size: var(--fs-h4);
}

.knowledge__list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.knowledge__list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

.knowledge__list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.6rem;
  border-radius: 50%;
  background: var(--accent-500);
}

/* --------------------------------------------------------------------------
   10. Closing CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  display: grid;
  gap: var(--space-6);
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border: 1px solid rgba(242, 107, 33, 0.2);
  border-radius: var(--r-xl);
  background: radial-gradient(90% 130% at 10% 0%, rgba(242, 107, 33, 0.2), transparent 55%),
    radial-gradient(80% 120% at 96% 100%, rgba(27, 113, 131, 0.28), transparent 58%),
    linear-gradient(160deg, rgba(20, 33, 41, 0.92), rgba(5, 9, 12, 0.96));
  overflow: hidden;
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: clamp(2rem, 1rem + 3vw, 4rem);
  }
}

.cta-band__title {
  font-size: var(--fs-h2);
}

.cta-band__text {
  margin-top: var(--space-4);
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  max-width: 44ch;
}

.cta-band__actions {
  display: grid;
  gap: var(--space-3);
}

.cta-band__contact {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.cta-band__contact a:hover {
  color: var(--accent-400);
}
