/* Nordströms El — shared by the Swedish and Finnish pages */

:root {
  --paper: #f2f2f0;
  --stone: #e2e2df;
  --ink: #111111;
  --soft: #575553;
  --red: #ed1c24;          /* sampled from the logo */
  --red-act: #d0121a;      /* the same red, one step deeper so white text passes contrast */

  --m: clamp(20px, 2.4vw, 32px);
  --demo: 44px;
  --gap: clamp(12px, 1.4vw, 20px);

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
  --step-h2: clamp(2.25rem, 1.6rem + 2vw, 3.5rem);
  --step-head: clamp(2.75rem, 1rem + 5.4vw, 5.5rem);
  --step-mono: calc((100vw - 2 * var(--m)) / 6.32);

  --display: "Anton", "Arial Narrow", sans-serif;
  --text: "Work Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-h2);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 0 var(--m);
}

/* ---------- Controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  background: var(--red-act); color: #fff;
  font-weight: 600; font-size: var(--step-body);
  text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--float { display: none; }

.bar__nav a, .foot a, .town__cap a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); }
  .bar__nav a:hover, .foot a:hover { text-decoration-color: currentColor; }
}

/* ---------- The monument: the logo at architectural scale ---------- */
.monument, .foot__mark {
  display: flex;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-mono);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  white-space: nowrap;
}
.monument__word {
  position: relative;
  display: block;
  padding: 0.08em 0 0.1em;
}
.monument__word::after {        /* the red current line */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 0.05em;
  background: var(--red);
  transform-origin: left;
}
.monument__word--last { flex: 1; padding-left: 0.5em; }
.monument__word--last::after { left: 0.5em; }
.spike {
  position: absolute; left: 0;
  width: 0.5em; height: 0.75em;
  bottom: calc(0.025em - 0.5em);
  overflow: visible;
}
.spike path {
  fill: none;
  stroke: var(--red);
  stroke-width: 4;
  stroke-linejoin: miter;
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 300svh; }
.hero__stage {
  position: sticky; top: 0;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  background: var(--paper);
  transition: background-color 300ms ease;
}
.hero__stage[data-ground="stone"] { background: var(--stone); }
.hero__stage[data-ground="red"] { background: var(--red); }
.hero__stage[data-ground="red"] .monument__word::after { background: var(--ink); }
.hero__stage[data-ground="red"] .spike path { stroke: var(--ink); }
.hero__stage[data-ground="red"] .button { background: var(--ink); }
.hero__stage[data-ground="red"] .status::before { background: var(--ink); }

.bar {
  position: absolute; z-index: 3;
  top: 22px; left: var(--m); right: var(--m);
  display: flex; align-items: center; justify-content: space-between;
}
.bar__mark img { width: 150px; height: auto; }
.bar__nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: var(--step-small); }
.bar__lang { display: flex; gap: 10px; margin-left: 8px; }
.bar__lang a[aria-current="true"] { text-decoration-color: currentColor; }

.hero__frames {
  position: absolute; z-index: 1;
  top: 90px; bottom: 0; left: 50%;
  width: min(calc((100svh - 90px) * 2 / 3), 34vw);
  transform: translateX(-50%);
  background: var(--stone);
}
.frame { position: absolute; inset: 0; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }

.monument {
  position: absolute; z-index: 2;
  top: 104px; left: var(--m); right: var(--m);
}

.hero__foot {
  position: absolute; z-index: 2;
  left: var(--m); right: var(--m); bottom: calc(32px + var(--demo));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero__lede { max-width: min(24ch, calc(33vw - var(--m) - 24px)); font-weight: 600; font-size: var(--step-lead); line-height: 1.3; }
.hero__act { max-width: calc(33vw - var(--m) - 24px); }
.hero__status { margin-top: 14px; font-weight: 400; font-size: var(--step-small); }
.hero__act { display: grid; justify-items: end; gap: 14px; text-align: right; }
.hero__caption { font-size: var(--step-small); }
.hero__count { color: var(--soft); margin-left: 8px; }
.hero__stage[data-ground="red"] .hero__count { color: var(--ink); }

.status { display: inline-flex; align-items: center; gap: 10px; }
.status::before {
  content: ""; flex: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--soft);
}
.status.is-open::before { background: #138a3e; }

/* ---------- Services ---------- */
.services { padding: clamp(120px, 16vh, 200px) 0; }
.services__h { grid-column: 1 / -1; margin-bottom: clamp(48px, 7vw, 96px); }

/* The services drawn as a circuit: a switch closes, the current runs, the motor turns, the lamp lights */
.circuit {
  grid-column: 1 / -1; grid-row: 2;
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  height: 84px; margin-bottom: 36px;
}
.circuit__wire {
  position: absolute; top: 40px; left: 0;
  right: calc(25% + 0.25 * var(--gap) + 40px);
  height: 4px; background: var(--red);
  transform-origin: left;
}
.sym { position: relative; z-index: 1; grid-row: 1; width: 84px; height: 84px; overflow: visible; }
.sym--switch { grid-column: 1; }
.sym--motor { grid-column: 4; }
.sym--lamp { grid-column: 7; }
.sym--end { grid-column: 9; justify-self: end; width: 40px; height: 60px; margin-top: 22px; }
.sym rect { fill: var(--paper); }
.sym path, .sym circle { fill: none; stroke: var(--red); stroke-width: 3; }
.sym text { fill: var(--red); stroke: none; font-family: var(--display); font-size: 17px; }
.sym--switch circle { fill: var(--red); stroke: none; }
.sym__lever { stroke-linecap: round; transform-origin: 20px 32px; }
.sym__mark, .sym__mark path { stroke-width: 2.4 !important; stroke-linejoin: round; stroke-linecap: round; transition: stroke 300ms ease; }
.sym__bulb { transition: fill 300ms ease; }
.circuit.is-in .sym__bulb, html:not(.js) .sym__bulb { fill: var(--red); }
.circuit.is-in .sym--lamp .sym__mark, html:not(.js) .sym--lamp .sym__mark { stroke: var(--paper); }

.services__group { grid-row: 3; grid-column: span 3; font-size: var(--step-lead); line-height: 1.3; }
.services__group h3 { font: inherit; font-weight: 600; margin-bottom: 1.3em; }
.services__group li {
  color: var(--soft);
  width: fit-content;
  cursor: default;
  transition: color var(--t-hover) ease;
}
.services__group li:hover, .services__group li:focus-visible, .services__group li.is-on { color: var(--ink); }
.services__group li.is-on { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.services__group li:focus-visible { outline-offset: 2px; }
.services__sum { display: none; }
.svc__plus, .svc__more { display: none; }
.services__desc {
  grid-column: 10 / -1; grid-row: 3;
  font-size: var(--step-lead); line-height: 1.3;
  min-height: 5.2em;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero__frames { width: min(calc((100svh - 90px) * 2 / 3), 30vw); }
  .hero__lede, .hero__act { max-width: calc(35vw - var(--m) - 16px); }
  .hero__act .button { padding: 0 18px; font-size: var(--step-small); }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .services__group { grid-column: span 4; }
  .sym--motor { grid-column: 5; }
  .sym--lamp { grid-column: 9; }
  .sym--end { display: none; }
  .circuit__wire { right: 0; }
  .services__desc { grid-column: 1 / span 8; grid-row: 4; margin-top: 48px; min-height: 2.6em; }
}

/* ---------- Town band ---------- */
.town { padding-bottom: clamp(120px, 16vh, 200px); }
.town__h { padding: 0 var(--m); margin: 0 0 64px calc(var(--m) + (100vw - 2 * var(--m)) / 6); padding: 0; }
.town__band { display: flex; height: 68svh; min-height: 420px; }
.town__panel {
  position: relative; overflow: hidden;
  flex: 2 1 0;
  transition: flex-grow 500ms var(--ease-in-out);
}
.town__panel:nth-child(1) { flex-grow: 5; }
.town__panel:nth-child(3) { flex-grow: 3; }
.town__panel img { width: 100%; height: 108%; margin-top: -4%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .town__band:hover .town__panel { flex-grow: 2; }
  .town__band .town__panel:hover { flex-grow: 6; }
}
.town__title {
  position: absolute; top: 24px; left: 24px;
  max-width: 11em;
  padding: 10px 14px;
  background: rgba(17, 17, 17, 0.62);
  color: #fff;
  font-family: var(--display);
  font-size: var(--step-lead); line-height: 1.05;
  text-transform: uppercase;
}
.town__cap { padding: 20px var(--m) 0; max-width: calc(60ch + 2 * var(--m)); }

/* ---------- About ---------- */
.about { padding: 0 var(--m) clamp(120px, 16vh, 200px); }
.about__row {
  display: grid;
  grid-template-columns: calc(34% - var(--gap)) minmax(0, 56%);
  column-gap: var(--gap);
}
.about__row--week { margin-top: 120px; }
.about__h { grid-column: 1; grid-row: 1; margin-bottom: 40px; }
.about__facts { grid-column: 1; grid-row: 2; display: grid; gap: 20px; align-content: start; }
.about__facts dt { color: var(--soft); font-size: var(--step-small); }
.about__facts dd { font-weight: 600; }
.about__text {
  grid-column: 2; grid-row: 1 / span 2;
  align-self: end;
  font-size: var(--step-lead);
  line-height: 1.38;
  max-width: 34em;
}
.about__word { font: inherit; font-weight: 600; }
.about__lists { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.week { width: 280px; display: grid; gap: 10px; }
.week li { display: flex; justify-content: space-between; gap: 16px; }
.week li span:first-child { white-space: nowrap; }
.week li span:last-child { color: var(--soft); }
.week li.is-today { font-weight: 600; }
.week li.is-today span:first-child { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 0.25em; }
.week li.is-today span:last-child { color: var(--ink); }
.week__now span:last-child { color: var(--ink) !important; text-align: right; }

/* ---------- Contact rows ---------- */
.contact { background: var(--paper); position: relative; }
.contact__h { padding: 0 var(--m) 32px; }
.row {
  display: flex; align-items: flex-end;
  min-height: clamp(84px, 10.5vw, 150px);
  padding: 0 var(--m) clamp(14px, 1.6vw, 24px);
  font-family: var(--display);
  font-size: var(--step-head);
  line-height: 1;
  text-transform: uppercase;
  overflow: hidden;
}
.row:nth-child(odd) { background: var(--stone); }
.row > a, .row > span { display: block; text-decoration: none; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .row > a:hover { color: var(--red-act); }
}
.hello { display: inline-flex !important; align-items: center; gap: 24px; }
.hello__dot {
  display: inline-grid; place-items: center;
  width: 0.9em; height: 0.9em; border-radius: 50%;
  background: var(--red-act);
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.hello__dot svg { width: 45%; fill: none; stroke: #fff; stroke-width: 2.6; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .hello:hover { color: var(--ink) !important; }
  .hello:hover .hello__dot { background: var(--ink); }
  .hello:hover .hello__dot svg { transform: translateX(18%); }
}
.hello:active .hello__dot { transform: scale(0.94); }

/* ---------- Footer: the name returns in inverse ---------- */
main { position: relative; z-index: 1; background: var(--paper); }
.foot {
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto auto;
  background: var(--ink); color: var(--paper);
  padding: 40px var(--m) calc(24px + var(--demo));
}
.foot__cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px var(--gap);
  font-size: var(--step-body); line-height: 1.6;
  color: #b9b6b1;
}
.foot__first { color: var(--paper); font-weight: 600; }
.foot__mark { grid-row: 3; margin-bottom: 0.52em; }
.foot__legal { grid-row: 4; display: grid; gap: 8px; color: #b9b6b1; }
.foot__cols a { overflow-wrap: anywhere; }
.credits { max-width: 62ch; overflow-wrap: anywhere; }
.foot > * { min-width: 0; }
.credits a { text-decoration: underline; text-decoration-color: rgba(244,242,238,.35); }

/* ---------- Demo notice, fixed to the foot of the window ---------- */
.demo {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  min-height: var(--demo);
  display: flex; align-items: center; gap: 12px;
  padding: 8px var(--m);
  background: var(--ink); color: var(--paper);
  font-size: var(--step-small); line-height: 1.3;
}
.demo strong {
  flex: none;
  padding: 3px 8px;
  background: var(--red-act); color: #fff;
  font-weight: 600;
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --step-mono: calc((100vw - 2 * var(--m)) / 4.82); }

  .bar__mark img { width: 120px; }
  .bar__nav > a { display: none; }
  .bar__lang { margin: 0; }

  .hero__stage { display: flex; flex-direction: column; padding: 58px var(--m) calc(20px + var(--demo)); }
  .monument { position: relative; top: auto; left: auto; right: auto; flex-wrap: wrap; order: 1; }
  .monument__word { flex: 0 0 auto; }
  .monument__word--last { flex: 1 1 100%; }

  .hero__frames {
    position: relative; inset: auto;
    flex: 1 1 auto; min-height: 0;
    width: auto; transform: none;
    margin-top: calc(-0.62 * var(--step-mono));
    order: 2;
  }
  .hero__foot { position: static; display: block; margin-top: 16px; order: 3; }
  .hero__lede { max-width: none; }
  .hero__status { margin-top: 8px; }
  .hero__act { display: block; max-width: calc(100% - 110px); margin-top: 6px; text-align: left; justify-items: start; }
  .hero__count { margin-left: 4px; }
  .hero__act .button { display: none; }

  .button--float {
    display: inline-flex;
    position: fixed; z-index: 20; right: 16px; bottom: calc(16px + var(--demo));
    min-height: 52px;
    transition: transform 400ms var(--ease-out), background-color var(--t-hover) ease;
  }
  .button--float.is-hidden { transform: translateY(160%); }
  .button--float:active { transform: scale(0.97); }

  .services__h { margin-bottom: 40px; }

  .town__h { margin: 0 var(--m) 32px; }
  .town__band {
    display: grid; height: 84svh; min-height: 480px;
    grid-template-columns: 64fr 36fr; grid-template-rows: 1fr 1fr;
  }
  .town__panel:nth-child(3) { grid-column: 1; grid-row: 2; }
  .town__panel:nth-child(4) { grid-column: 2; grid-row: 2; }
  /* second row runs 36/64: swap the visual widths by spanning */
  .town__band { grid-template-columns: 36fr 28fr 36fr; }
  .town__panel:nth-child(1) { grid-column: 1 / 3; }
  .town__panel:nth-child(2) { grid-column: 3; }
  .town__panel:nth-child(3) { grid-column: 1; }
  .town__panel:nth-child(4) { grid-column: 2 / 4; }
  .town__title { font-size: var(--step-lead); top: 12px; left: 12px; }

  .about__row { grid-template-columns: 1fr; }
  .about__h { grid-row: auto; margin-bottom: 24px; }
  .about__text { grid-column: 1; grid-row: auto; margin-bottom: 32px; }
  .about__facts { grid-row: auto; grid-template-columns: 1fr 1fr; gap: 16px; }
  .about__row--week { margin-top: 64px; }
  .about__word { margin-bottom: 16px; }
  .about__lists { gap: 40px; }
  .week { width: 100%; }

  .row { font-size: 9.4vw; min-height: 84px; padding-bottom: 12px; }
  .row--hello { background: var(--red-act) !important; color: #fff; }
  .row--hello .hello { width: 100%; justify-content: space-between; }
  .row--hello .hello__dot { width: 56px; height: 56px; background: #fff; }
  .row--hello .hello__dot svg { stroke: var(--red-act); }

  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__mark { flex-wrap: wrap; margin-top: 20svh; }
  .foot__mark .monument__word--last { flex: 1 1 100%; }
}

/* ---------- Motion (every hidden state lives here, so reduced motion is the finished page) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero frames open from the bottom edge, one over the other */
  .js .frame { clip-path: inset(100% 0 0 0); transition: clip-path 1000ms var(--ease-in-out); }
  .js .frame img { transform: scale(1.1); transition: transform 1400ms var(--ease-soft); }
  .js .frame.is-on { clip-path: inset(0); }
  .js .frame.is-on img { transform: none; }

  /* Load: the name rises, then the current line runs and spikes */
  .js .monument .monument__word { opacity: 0; transform: translateY(18%); animation: rise 900ms var(--ease-expo) forwards; }
  .js .monument .monument__word--last { animation-delay: 90ms; }
  .js .monument .monument__word::after { transform: scaleX(0); animation: run 700ms var(--ease-in-out) 450ms forwards; }
  .js .monument .monument__word--last::after { animation-delay: 1050ms; animation-duration: 500ms; }
  .js .monument .spike path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 320ms linear 900ms forwards; }
  .js .hero__foot > * { opacity: 0; transform: translateY(12px); animation: rise 600ms var(--ease-out) 500ms forwards; }
  .js .hero__foot > :last-child { animation-delay: 580ms; }

  /* Sections: heading, then text, then pictures */
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .town__panel { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-in-out), flex-grow 500ms var(--ease-in-out); }
  .js .town__panel:nth-child(2) { transition-delay: 80ms, 0ms; }
  .js .town__panel:nth-child(3) { transition-delay: 160ms, 0ms; }
  .js .town__panel:nth-child(4) { transition-delay: 240ms, 0ms; }
  .js .town__panel img { transform: scale(1.12); transition: transform 1600ms var(--ease-soft); }
  .js .is-in .town__panel { clip-path: inset(0); }
  .js .is-in .town__panel img { transform: none; }

  .js .circuit .sym__lever { transform: rotate(-34deg); transition: transform 500ms var(--ease-out) 150ms; }
  .js .circuit.is-in .sym__lever { transform: none; }
  .js .circuit__wire { transform: scaleX(0); transition: transform 1500ms var(--ease-in-out) 500ms; }
  .js .circuit.is-in .circuit__wire { transform: none; }
  .js .circuit [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 380ms linear var(--d, 0ms); }
  .js .circuit.is-in [pathLength] { stroke-dashoffset: 0; }
  .js .circuit .sym--switch { --d: 0ms; }
  .js .circuit .sym--motor { --d: 850ms; }
  .js .circuit .sym--lamp { --d: 1350ms; }
  .js .circuit .sym--end { --d: 1850ms; }
  .js .circuit .sym--motor .sym__mark, .js .circuit .sym--lamp .sym__mark { opacity: 0; transition: opacity 300ms ease calc(var(--d) + 300ms), stroke 300ms ease; }
  .js .circuit.is-in .sym__mark { opacity: 1; }
  .js .circuit .sym__bulb { transition: fill 250ms ease 1950ms, stroke-dashoffset 380ms linear var(--d); }
  .js .circuit .sym--lamp .sym__mark { transition: opacity 300ms ease 1650ms, stroke 250ms ease 1950ms; }

  .js .row > * { transform: translateY(105%); transition: transform 800ms var(--ease-expo), color var(--t-hover) ease; }
  .js .rows.is-in .row > * { transform: none; }

  .js .foot__mark .monument__word::after { transform: scaleX(0); transition: transform 900ms var(--ease-in-out) 200ms; }
  .js .foot__mark .spike path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 300ms linear 900ms; }
  .js .foot__mark.is-in .monument__word::after { transform: none; }
  .js .foot__mark.is-in .spike path { stroke-dashoffset: 0; }

  /* One slow moving picture: the hero frame drifts as the stage holds */
  @supports (animation-timeline: view()) {
    .town__band img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes run { to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift { from { translate: 0 -3%; } to { translate: 0 3%; } }

/* ---------- Services on a phone: the circuit runs down the left edge, each service opens on tap ---------- */
@media (max-width: 760px) {
  .services .grid { grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; }
  .services__h { grid-column: 1 / -1; }

  .circuit { display: contents; }
  .circuit__wire {
    position: relative; inset: auto;
    grid-column: 1; grid-row: 2 / 4;
    justify-self: center;
    width: 4px; height: auto;
    margin-top: 4px;
    transform-origin: top;
    transform: scaleY(var(--p, 1));
  }
  .sym { grid-column: 1; width: 56px; height: 56px; align-self: start; justify-self: center; }
  .sym--switch { grid-row: 2; transform: rotate(90deg); }
  .sym--motor > path:first-of-type, .sym--lamp > path:first-of-type { display: none; }
  .sym--motor { grid-row: 3; }
  .sym--lamp { grid-row: 4; }
  .sym--end { display: none; }
  .sym--lamp.is-on .sym__bulb { fill: var(--red); }
  .sym--lamp.is-on .sym__mark { stroke: var(--paper); }

  .services__group { grid-column: 2; padding-bottom: 48px; font-size: var(--step-body); line-height: 1.4; }
  .services__group:nth-child(3) { grid-row: 2; }
  .services__group:nth-child(4) { grid-row: 3; }
  .services__group:nth-child(5) { grid-row: 4; }
  .services__group h3 {
    font-family: var(--display); font-weight: 400;
    font-size: var(--step-h2); line-height: 56px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .services__group ul { display: grid; gap: 6px; }
  .services__group li {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    width: auto; min-height: 52px; padding: 14px 16px;
    background: var(--stone); color: var(--ink);
    cursor: pointer;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 220ms ease, color 220ms ease, transform var(--t-press) var(--ease-out);
  }
  .services__group li:active { transform: scale(0.985); }
  .services__group li.is-open { background: var(--ink); color: var(--paper); }

  .svc__plus { display: block; position: relative; width: 14px; height: 14px; transition: transform 300ms var(--ease-out); }
  .svc__plus::before, .svc__plus::after { content: ""; position: absolute; background: var(--red); }
  .svc__plus::before { left: 0; right: 0; top: 6px; height: 2px; }
  .svc__plus::after { top: 0; bottom: 0; left: 6px; width: 2px; }
  .is-open .svc__plus { transform: rotate(45deg); }

  .svc__more {
    display: grid; grid-column: 1 / -1;
    grid-template-rows: 0fr;
    transition: grid-template-rows 320ms var(--ease-out);
  }
  .svc__more > span { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s 320ms; }
  .is-open .svc__more > span { visibility: visible; transition-delay: 0s; }
  .svc__more > span > span { display: block; padding-top: 10px; color: #d9d6d0; }
  .is-open .svc__more { grid-template-rows: 1fr; }

  .services__sum { display: block; margin-top: 14px; color: var(--soft); }
  .services__desc { display: none; }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .js .circuit__wire { transform: scaleY(var(--p, 0)); transition: none; }
  .js .circuit [pathLength] { stroke-dashoffset: 0; transition: none; }
  .js .circuit .sym {
    --s: 0.78;
    opacity: 0.3;
    transform: scale(var(--s));
    transition: opacity 300ms ease, transform 450ms var(--ease-out);
  }
  .js .circuit .sym--switch { transform: rotate(90deg) scale(var(--s)); }
  .js .circuit .sym.is-on { --s: 1; opacity: 1; }
  .js .circuit .sym.is-on .sym__lever { transform: none; }
  .js .circuit .sym__mark { opacity: 1 !important; }
  .js .circuit .sym__bulb { transition: fill 250ms ease 250ms; }
}
