/* SISTELEC — «Esquema unifilar». Tokens de docs/spec/design.md */
@font-face {
  font-family: "Archivo";
  src: url(../fonts/archivo-var-latin.woff2) format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(../fonts/jetbrains-mono-500-latin.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-graphite-950: #141619;
  --c-graphite-900: #22262b;
  --c-graphite-800: #2a2e33;
  --c-graphite-600: #4d535a;
  --c-graphite-line: #3a3f45;
  --c-steel-300: #c4c9cd;
  --c-steel-200: #e1e4e6;
  --c-steel-100: #eef0f1;
  --c-white: #ffffff;
  --c-muted-dark: #a9afb5;
  --c-red: #e2001a;
  --c-red-ink: #a30016;
  --c-red-signal: #ff5a4f;
  --bg: var(--c-steel-100);
  --fg: var(--c-graphite-800);
  --fg-strong: var(--c-graphite-950);
  --bg-dark: var(--c-graphite-950);
  --fg-on-dark: var(--c-steel-100);
  --focus: var(--c-red);

  --ff-sans: "Archivo", Arial, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --fs-h1: clamp(2.125rem, 1.6rem + 2.6vw, 4rem);
  --fs-display: clamp(2.75rem, 1.8rem + 4.6vw, 6rem);
  --lh-tight: 1.05;
  --lh-heading: 1.15;
  --lh-body: 1.6;
  --tracking-display: -0.02em;
  --tracking-label: 0.08em;
  --measure: 68ch;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --section-y: clamp(64px, 6vw + 32px, 128px);
  --gutter: clamp(16px, 4vw, 48px);
  --w-max: 1320px;
  --rail: 56px;
  --r-xs: 2px; --r-sm: 4px; --r-md: 8px;
  --sh-plate: 0 1px 0 rgb(20 22 25 / .06), 0 12px 24px -12px rgb(20 22 25 / .25);
  --sh-raise: 0 2px 0 rgb(20 22 25 / .08), 0 20px 40px -16px rgb(20 22 25 / .35);
  --sh-inset-dark: inset 0 1px 0 rgb(238 240 241 / .06);
  --row-h: 64px;
  --topline-h: 0px;
  --header-h: calc(var(--topline-h) + var(--row-h));
  --bar-h: 97px;
  --z-rail: 2; --z-sticky: 50; --z-bar: 60; --z-skip: 100;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 160ms; --t-base: 240ms; --t-slow: 600ms; --t-draw: 1400ms;
  --sec-bg: var(--c-steel-100);
  --rule: var(--c-steel-300);
}
@media (min-width: 768px) { :root { --topline-h: 44px; --bar-h: 0px; } }
@media (min-width: 1024px) { :root { --row-h: 72px; } }
@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-base: 0ms; --t-slow: 0ms; --t-draw: 0ms; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  padding-bottom: var(--bar-h);
  overflow-wrap: break-word;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
img, picture, svg { max-width: 100%; }
img { height: auto; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
h1, h2, h3 {
  margin: 0 0 var(--sp-5);
  font-weight: 700;
  font-stretch: 82%;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { margin: 0 0 var(--sp-4); max-width: var(--measure); text-wrap: pretty; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sec--dark :focus-visible, .sec--dark2 :focus-visible, .site-header :focus-visible,
.site-footer :focus-visible, .topline :focus-visible, .bar :focus-visible, .hero :focus-visible { outline-color: var(--c-steel-100); }
.bar :focus-visible { outline-offset: -3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.ico--lg { width: 28px; height: 28px; }
.mono { font-family: var(--ff-mono); font-weight: 500; }

.skip {
  position: fixed; top: 0; left: 0; z-index: var(--z-skip);
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  background: var(--c-red); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-120%);
}
.skip:focus-visible { transform: none; outline-color: var(--c-steel-100); outline-offset: -4px; }

.wrap { width: 100%; max-width: var(--w-max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 1024px) { .wrap { padding-left: calc(var(--gutter) + var(--rail)); } }

/* ---------- Capçalera ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--c-graphite-950); color: var(--fg-on-dark);
  box-shadow: var(--sh-inset-dark); border-bottom: 1px solid var(--c-graphite-line);
}
.topline { display: none; }
.hdr {
  display: flex; align-items: center; gap: var(--sp-3);
  height: var(--row-h); max-width: var(--w-max); margin-inline: auto; padding-inline: var(--gutter);
}
.logo { display: flex; flex: none; align-items: center; min-height: 44px; margin-right: auto; }
.logo img { display: block; height: 36px; width: auto; max-width: none; }
@media (min-width: 768px) { .logo img { height: 44px; } }

.lang {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  flex: none; white-space: nowrap; min-width: 44px; min-height: 44px; padding-inline: 12px;
  border: 1px solid var(--c-graphite-line); border-radius: var(--r-xs);
  font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .04em;
  color: var(--c-steel-100); text-decoration: none;
}

.nav-m summary {
  display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; min-width: 44px;
  padding-inline: 12px; cursor: pointer; list-style: none;
  border: 1px solid var(--c-graphite-line); border-radius: var(--r-xs);
  font-weight: 600; font-size: var(--fs-sm);
}
.nav-m summary::-webkit-details-marker { display: none; }
.nav-m .ico-close, .nav-m[open] .ico-open { display: none; }
.nav-m[open] .ico-close { display: block; }
.nav-m__panel {
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100dvh - var(--header-h) - var(--bar-h));
  overflow-y: auto; background: var(--c-graphite-900); border-bottom: 1px solid var(--c-graphite-line);
}
.nav-m[open] .nav-m__panel { animation: drop var(--t-base) var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.nav-m__panel ul { list-style: none; }
.nav-m__panel a {
  display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; padding-inline: var(--gutter);
  border-top: 1px solid var(--c-graphite-line); font-weight: 600; text-decoration: none; color: var(--c-steel-100);
}
.nav-m__panel .x, .nav-d .x { font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); color: var(--c-red-signal); }

.nav-d { display: none; }

/* Franja «línia directa» (>=768): telèfon, correu i idioma sempre en text sencer */
@media (min-width: 768px) {
  .hdr .lang { display: none; }
  .topline { display: block; height: var(--topline-h); background: var(--c-graphite-900); border-bottom: 1px solid var(--c-graphite-line); }
  .topline__in {
    display: flex; align-items: stretch; justify-content: space-between; gap: var(--sp-5);
    height: 100%; max-width: var(--w-max); margin-inline: auto; padding-inline: var(--gutter);
  }
  .topline__tag { display: none; align-self: center; font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: var(--tracking-label); color: var(--c-muted-dark); white-space: nowrap; }
  .topline__links { display: flex; align-items: stretch; gap: var(--sp-5); margin: 0 0 0 auto; padding: 0; list-style: none; }
  .topline__links li { display: flex; align-items: stretch; }
  .tl {
    position: relative; display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px;
    font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-sm); line-height: 1;
    color: var(--c-steel-100); text-decoration: none; white-space: nowrap;
  }
  .tl .ico { width: 16px; height: 16px; color: var(--c-red-signal); }
  .tl::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
    background: var(--c-red); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out);
  }
  .tl:active { transform: translateY(1px); }
  .topline__lang { padding-left: var(--sp-5); border-left: 1px solid var(--c-graphite-line); }
  .tl--lang {
    padding-inline: var(--sp-3); border: 1px solid var(--c-graphite-line); border-radius: var(--r-xs);
    font-family: var(--ff-sans); font-weight: 600;
  }
  .tl--lang::after { display: none; }
  .topline :focus-visible { outline-offset: -2px; }
}
@media (min-width: 1024px) {
  .topline__in { padding-left: calc(var(--gutter) + var(--rail)); }
  .topline__tag { display: block; }
  .nav-m { display: none; }
  .nav-d { display: block; margin-right: auto; }
  .nav-d ul { display: flex; list-style: none; gap: 2px; }
  .nav-d a {
    position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 12px;
    font-weight: 600; font-size: var(--fs-sm); text-decoration: none; color: var(--c-steel-100); white-space: nowrap;
  }
  .nav-d .x { display: inline; }
  .nav-d a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
    background: var(--c-red); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out);
  }
}
@media (hover: hover) {
  .nav-d a:hover::after, .nav-d a:focus-visible::after { transform: scaleX(1); }
  .tl:hover::after { transform: scaleX(1); }
  .tl:hover { color: #fff; }
  .tl--lang:hover { border-color: var(--c-red); }
  .lang:hover { border-color: var(--c-red); }
  .nav-m summary:hover { border-color: var(--c-red); }
}

/* ---------- Barra de contacte mòbil (<768): 2 files amb el valor en text ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--c-graphite-900); border-top: 1px solid var(--c-red);
}
.bar a {
  display: flex; align-items: center; gap: var(--sp-2);
  min-height: 48px; padding-inline: var(--sp-4); color: var(--c-steel-100);
  font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap;
}
.bar a + a { border-top: 1px solid var(--c-graphite-line); }
.bar .ico { color: var(--c-red-signal); }
.bar .verb { margin-left: auto; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted-dark); }
@media (max-width: 359px) { .bar .verb { display: none; } }
@media (min-width: 768px) { .bar { display: none; } }
@media (hover: hover) { .bar a:hover { background: var(--c-graphite-800); } }
.bar a:active { background: var(--c-graphite-800); }
@media print { .bar, .site-header { display: none; } .credit-anim, .credit-anim .credit-ico img { opacity: 1 !important; transform: none !important; animation: none !important; } .credit-anim .credit-m > span:last-child { clip-path: none !important; animation: none !important; } }

/* ---------- Conductor de pàgina (rail) ---------- */
main { position: relative; display: block; }
@media (min-width: 1024px) {
  main::before {
    content: ""; position: absolute; z-index: var(--z-rail); top: 0; bottom: 0; width: 2px;
    left: calc(max(0px, (100% - var(--w-max)) / 2) + var(--gutter) + 19px);
    background: var(--c-red); transform-origin: top; pointer-events: none;
  }
  main::after {
    content: ""; position: absolute; z-index: var(--z-rail); top: 0; width: 6px; height: 6px; border-radius: 50%;
    left: calc(max(0px, (100% - var(--w-max)) / 2) + var(--gutter) + 17px);
    background: var(--c-steel-100); pointer-events: none; opacity: 0;
    animation: pulse 7s linear 2s infinite;
  }
}
@keyframes pulse {
  0% { transform: translateY(0); opacity: 0; }
  6% { opacity: 1; }
  40% { transform: translateY(2400px); opacity: 0; }
  100% { transform: translateY(2400px); opacity: 0; }
}

/* ---------- Seccions ---------- */
.sec { position: relative; background: var(--sec-bg); padding-block: var(--section-y) calc(var(--section-y) + 16px); }
.sec > .wrap { position: relative; }
.sec--light { --sec-bg: var(--c-steel-100); --rule: var(--c-steel-300); --tag-ink: var(--c-graphite-800); --tag-line: var(--c-graphite-600); --lnk: var(--c-red-ink); color: var(--fg); }
.sec--light h2, .sec--light h3 { color: var(--fg-strong); }
.sec--dark, .sec--dark2, .hero { color: var(--fg-on-dark); --rule: var(--c-graphite-line); --tag-ink: var(--c-muted-dark); --tag-line: var(--c-graphite-line); --lnk: var(--c-red-signal); }
.sec--dark { --sec-bg: var(--c-graphite-950); }
.sec--dark2 { --sec-bg: var(--c-graphite-900); }
.sec--dark::before, .sec--dark2::before, .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(238 240 241 / .05) 1px, transparent 1px); background-size: 24px 24px;
}
.sec--dark h2, .sec--dark h3, .sec--dark2 h2, .sec--dark2 h3, .hero h1 { color: var(--c-steel-100); }

.sec-label {
  display: flex; align-items: center; gap: 10px; margin: 0 0 var(--sp-5); max-width: none;
  font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); line-height: 1;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
}
.sec-label .born { flex: none; width: 12px; height: 12px; border: 2px solid var(--c-red); background: var(--c-red); border-radius: var(--r-xs); }
.sec-label .tag { padding: 5px 8px; border: 1px solid var(--tag-line); border-radius: var(--r-xs); color: var(--tag-ink); }
.hero .sec-label .tag { color: var(--c-red-signal); }
@media (max-width: 399px) { .hero .sec-label .tag { font-size: .75rem; letter-spacing: .03em; } }
.hero .sec-label .tag { text-wrap: balance; }
.map .sec-label, .sit .sec-label { margin-left: 0; }
@media (min-width: 1024px) { .sec-label { margin-left: calc(-1 * (var(--rail) - 14px)); } .sec-label .born { z-index: 3; } }
.lead { font-size: var(--fs-lead); max-width: 52ch; }

/* Enllaços i botons */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-sm); white-space: nowrap;
  background: var(--c-red); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c-red-ink);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
@media (hover: hover) { .btn:hover::before { transform: scaleX(1); } }
.btn:focus-visible::before { transform: scaleX(1); }
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px;
  font-weight: 600; color: var(--lnk); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.link-arrow .ico { transition: transform var(--t-base) var(--ease-out); }
.link-arrow--plain { color: var(--c-steel-100); }
.link-arrow--mono { font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-sm); }
@media (hover: hover) {
  .link-arrow:hover { text-decoration-thickness: 2px; text-decoration-color: var(--c-red); }
  .link-arrow:hover .ico { transform: translateX(4px); }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; background: var(--c-graphite-950); overflow: clip; padding-top: var(--sp-6); }
@media (min-width: 1024px) { .hero { min-height: min(calc(100dvh - var(--header-h)), 860px); padding-top: var(--sp-7); } }
.hero-grid { position: relative; flex: 1; display: grid; gap: var(--sp-6); align-content: start; padding-bottom: var(--sp-7); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { max-width: 16ch; }
.hero .lead { color: var(--c-steel-100); margin-bottom: var(--sp-5); }
.cta { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-2); width: 100%; margin-bottom: var(--sp-5); }
.cta .link-arrow { justify-content: flex-start; }
@media (min-width: 640px) { .cta { flex-direction: row; align-items: center; gap: var(--sp-5); width: auto; } }
.iso-badge {
  display: inline-flex; align-items: center; gap: var(--sp-3); min-height: 44px; padding: 6px 14px 6px 6px;
  background: var(--c-white); color: var(--c-graphite-800); border-radius: var(--r-md);
  font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); text-decoration: none; letter-spacing: .02em;
}
.iso-badge img { display: block; height: 56px; width: auto; }
.hero-media { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sm); }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trace { display: none; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sp-6); align-items: center; align-content: center; }
  .hero-text { grid-column: 1 / 7; }
  .hero-media {
    grid-column: 7 / 13; aspect-ratio: 1 / 1; margin-right: calc(-1 * var(--gutter)); border-radius: 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 30%); mask-image: linear-gradient(to right, transparent, #000 30%);
  }
  .trace { display: block; position: absolute; z-index: 1; left: 40%; top: 30%; width: 30%; height: 60px; overflow: visible; }
}
.trace path { fill: none; stroke: var(--c-red); stroke-width: 2; stroke-dasharray: 430; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) { .trace path { animation: draw var(--t-draw) var(--ease-out) both; } }
@keyframes draw { from { stroke-dashoffset: 430; } to { stroke-dashoffset: 0; } }

.terminals { position: relative; border-top: 1px solid var(--c-graphite-line); }
.terminals ul { list-style: none; display: grid; max-width: var(--w-max); margin-inline: auto; }
.terminals a {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: var(--sp-3); row-gap: 2px;
  min-height: 64px; padding: var(--sp-3) var(--gutter); text-decoration: none; color: var(--c-steel-100);
  border-bottom: 1px solid var(--c-graphite-line); transition: background-color var(--t-fast);
}
.terminals .x { grid-row: 1 / span 2; font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); color: var(--c-red-signal); }
.terminals .t { font-weight: 700; font-size: var(--fs-lead); font-stretch: 82%; line-height: 1.2; }
.terminals .d { grid-column: 2; font-size: var(--fs-sm); color: var(--c-muted-dark); }
.terminals .ico { grid-column: 3; grid-row: 1 / span 2; color: var(--c-red-signal); transition: transform var(--t-base) var(--ease-out); }
@media (hover: hover) {
  .terminals a:hover { background: var(--c-graphite-900); }
  .terminals a:hover .ico { transform: translateX(4px); }
}
.terminals a:focus-visible { outline-offset: -4px; background: var(--c-graphite-900); }
@media (min-width: 768px) {
  .terminals ul { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .terminals li { display: flex; }
  .terminals a { flex: 1; align-items: start; border-bottom: 0; padding-block: var(--sp-5); }
  .terminals .x, .terminals .ico { align-self: start; }
  .terminals li + li a { border-left: 1px solid var(--c-graphite-line); }
}
@media (min-width: 1024px) { .terminals ul { padding-inline: calc(var(--gutter) + var(--rail)) var(--gutter); } .terminals a { padding-inline: var(--sp-4); } .terminals li:first-child a { padding-left: 0; } }
@media (min-width: 1280px) { .terminals ul { grid-template-columns: 5fr 4fr 3fr; } }

/* ---------- Quiénes somos ---------- */
.about { display: grid; gap: var(--sp-7); }
@media (min-width: 1024px) { .about { grid-template-columns: 5fr 7fr; gap: var(--sp-9); align-items: start; } }
.about-fig { border-top: 2px solid var(--c-red); padding-top: var(--sp-4); margin-bottom: var(--sp-6); }
.display {
  margin: 0; font-size: var(--fs-display); font-weight: 700; font-stretch: 82%; line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display); color: var(--fg-strong); font-variant-numeric: tabular-nums;
}
.fita { margin: 0; }
.fita__label { display: block; margin-bottom: var(--sp-2); font-family: var(--ff-mono); font-weight: 600; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--c-red-ink); }
.about-fig .fita-cita { position: relative; margin: var(--sp-4) 0 0; padding-top: var(--sp-4); font-size: var(--fs-h3); font-weight: 500; max-width: 28ch; }
.about-fig .fita-cita::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 1px; background: var(--c-graphite-600); }
.photo { margin: 0; overflow: clip; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo picture { display: block; height: 100%; }
.photo--32 { aspect-ratio: 3 / 2; border-radius: var(--r-sm); }
@media (min-width: 1024px) { .about-media .photo { margin-right: calc(-1 * var(--gutter)); border-radius: var(--r-sm) 0 0 var(--r-sm); } }
.iso-plate {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: center; margin-top: var(--sp-6);
  padding: var(--sp-4); background: var(--c-white); border-radius: var(--r-md); box-shadow: var(--sh-plate); color: var(--c-graphite-800);
}
.iso-plate img { display: block; width: 120px; height: auto; }
.iso-plate p { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); }
.iso-plate .link-arrow { color: var(--c-red-ink); }
.intro-services { margin-top: var(--sp-9); padding-top: var(--sp-7); border-top: 1px solid var(--c-steel-300); }
.intro-services p:not(.sec-label) { font-size: var(--fs-lead); max-width: 60ch; }

/* ---------- Files de born i seccions de servei ---------- */
.rows { list-style: none; margin: 0 0 var(--sp-6); }
.rows li {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding-block: 12px;
  border-bottom: 1px solid var(--rule); font-weight: 600; line-height: 1.35;
}
.rows li::before { content: ""; flex: none; width: 10px; height: 10px; border: 1.5px solid var(--c-red); border-radius: 1px; }
@media (min-width: 768px) { .rows--cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-6); } }
.grp { display: flex; align-items: baseline; gap: var(--sp-3); }
.grp .n { font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); color: var(--lnk); letter-spacing: .06em; }
.svc-cta { margin: 0; }

.svc { display: grid; gap: var(--sp-6); }
.ing { grid-template-areas: "head" "photo" "topo"; }
.ing-head { grid-area: head; }
.ing-photo { grid-area: photo; aspect-ratio: 16 / 9; border-radius: var(--r-sm); }
.ing-topo { grid-area: topo; }
@media (min-width: 1024px) {
  .ing { grid-template-columns: 7fr 5fr; grid-template-areas: "head photo" "topo photo"; column-gap: var(--sp-9); }
  .ing-photo { aspect-ratio: auto; min-height: 560px; align-self: stretch; margin-right: calc(-1 * var(--gutter)); border-radius: var(--r-sm) 0 0 var(--r-sm); }
}
.topo { list-style: none; display: grid; gap: var(--sp-6); }
.topo > li { position: relative; padding-left: var(--sp-6); }
.topo > li::before { content: ""; position: absolute; left: 5px; top: 20px; bottom: calc(-1 * var(--sp-6) + 6px); width: 2px; background: var(--c-red); }
.topo > li:last-child::before { display: none; }
.topo > li::after {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px;
  border: 2px solid var(--c-red); background: var(--sec-bg); border-radius: var(--r-xs);
}
.topo h3 { margin-bottom: var(--sp-2); }

.fab { grid-template-areas: "head" "img" "lists"; }
.fab-head { grid-area: head; }
.fab-img { grid-area: img; margin: 0; justify-self: center; max-height: 320px; }
.fab-img img { display: block; width: auto; height: 100%; max-height: 320px; margin-inline: auto; }
.fab-lists { grid-area: lists; }
@media (min-width: 1024px) {
  .fab { grid-template-columns: 5fr 7fr; grid-template-areas: "img head" "img lists"; column-gap: var(--sp-9); align-items: start; }
  .fab-img { max-height: none; margin-top: -96px; position: relative; z-index: 3; justify-self: start; }
  .fab-img img { width: 100%; height: auto; max-height: none; }
  .fab-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-6); }
}
.strip { display: grid; gap: var(--sp-4); margin-top: var(--sp-8); }
@media (min-width: 768px) { .strip { grid-template-columns: 1fr 1fr; align-items: start; } }
.strip figure { margin: 0; }
.strip img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-sm); }
.strip figure:nth-child(1) img { object-position: 50% 45%; }
.strip figure:nth-child(2) img { object-position: 70% 50%; }
.cap { display: block; margin-top: var(--sp-2); font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: var(--tracking-label); color: var(--c-graphite-600); }

.mant { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .mant { grid-template-columns: 4fr 8fr; column-gap: var(--sp-9); align-items: start; }
  .mant-head { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
}
.reel { position: relative; margin-top: var(--sp-8); }
.reel-hint { margin: 0 0 var(--sp-2); font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-sm); color: var(--c-steel-100); letter-spacing: var(--tracking-label); text-align: right; }
@media (min-width: 1024px) { .reel-hint { display: none; } }
.reel-track {
  display: flex; gap: var(--sp-2); overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 18px;
  background-image: repeating-linear-gradient(to right, var(--c-graphite-line) 0 1px, transparent 1px 10px);
  background-size: 100% 8px; background-repeat: no-repeat;
}
.reel-track figure { position: relative; flex: none; max-width: 78%; margin: 0; scroll-snap-align: start; overflow: clip; }
.reel-track picture { display: block; }
.reel-track .cap { color: var(--c-muted-dark); padding-bottom: var(--sp-2); }
.reel-track img { display: block; height: 240px; width: auto; max-width: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
@media (min-width: 768px) { .reel-track img { height: 320px; } }
@media (min-width: 1024px) {
  .reel-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: var(--sp-2); overflow: visible; scroll-snap-type: none; }
  .reel-track figure { max-width: none; min-height: 0; }
  .reel-track figure:nth-child(1), .reel-track figure:nth-child(2), .reel-track figure:nth-child(4) { grid-column: span 2; }
  .reel-track figure:nth-child(3) { grid-row: span 2; }
  .reel-track picture { height: 100%; }
  .reel-track img { width: 100%; height: 100%; }
  .reel-track .cap { position: absolute; left: 0; bottom: 0; margin: 0; padding: 4px 8px; background: var(--c-graphite-950); }
  .reel::after { display: none; }
}
@media (hover: hover) { .reel-track figure:hover img { transform: scale(1.03); } }
.reel::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 48px; top: 0; pointer-events: none;
  background: linear-gradient(to right, transparent, var(--c-graphite-900));
}

/* ---------- Clients ---------- */
.plate { margin-top: var(--sp-6); padding: var(--sp-5); background: var(--c-white); border-radius: var(--r-md); box-shadow: var(--sh-plate); overflow: hidden; }
.logos { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 1px 0 0 1px; background: var(--c-white); overflow: hidden; }
.logos li { display: grid; place-items: center; aspect-ratio: 4 / 1.6; padding: 6px; background: var(--c-white); box-shadow: 0 0 0 1px var(--c-steel-300); }
.logos img { display: block; width: 100%; max-width: 140px; max-height: 40px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .8; transition: filter var(--t-base), opacity var(--t-base); }
@media (min-width: 768px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .logos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .logos { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (hover: hover) { .logos li:hover img { filter: none; opacity: 1; } }

/* ---------- Contacte ---------- */
.contact { display: grid; gap: var(--sp-7); }
@media (min-width: 1024px) { .contact { grid-template-columns: 7fr 5fr; column-gap: var(--sp-9); align-items: start; } }
.big-links { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-7); }
.big-link {
  position: relative; display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; padding: 8px 16px;
  border: 1px solid var(--c-graphite-line); border-radius: var(--r-sm); color: var(--c-steel-100); text-decoration: none;
  font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-h3); line-height: 1.2; overflow-wrap: anywhere;
}
.big-link .ico { color: var(--c-red-signal); flex: none; }
@media (max-width: 767px) { .big-link { gap: var(--sp-2); padding-inline: 12px; font-size: clamp(0.875rem, 4.4vw, 1.25rem); overflow-wrap: normal; white-space: nowrap; } }
@media (min-width: 1024px) {
  .big-links { gap: var(--sp-2); }
  .big-link { padding: 8px 0; border: 0; border-bottom: 3px solid var(--c-graphite-line); border-radius: 0; font-size: clamp(1.25rem, 0.8rem + 1.2vw, 1.75rem); transition: border-color var(--t-base); }
  .big-link .ico { width: 28px; height: 28px; }
}
@media (hover: hover) { .big-link:hover { border-color: var(--c-red); } }
.nodes { display: grid; }
.node { position: relative; padding: 0 0 var(--sp-6) var(--sp-6); }
.node::before { content: ""; position: absolute; left: 5px; top: 22px; bottom: 0; width: 2px; background: var(--c-red); }
.node:last-child::before { display: none; }
.node::after { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border: 2px solid var(--c-red); background: var(--sec-bg); border-radius: var(--r-xs); }
.node .sec-label { margin-left: 0; margin-bottom: var(--sp-2); }
.node h3 { margin-bottom: var(--sp-2); font-size: var(--fs-lead); }
.node address { font-style: normal; max-width: 46ch; }
.node address p { margin: 0 0 var(--sp-1); }
.node .ct { display: block; }
.node .ct-sep { display: none; }
@media (min-width: 768px) { .node .ct, .node .ct-sep { display: inline; } }
.node a { display: inline-block; padding-block: 10px; color: var(--c-steel-100); text-underline-offset: 4px; }
.map { margin: 0; }
.map-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-3); }
.map-meta .coords { font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); color: var(--c-muted-dark); }

/* ---------- Peu ---------- */
.site-footer { background: var(--c-graphite-950); color: var(--c-steel-100); border-top: 2px solid var(--c-red); padding-block: var(--sp-8) var(--sp-6); }
.ft { display: grid; gap: var(--sp-7); max-width: var(--w-max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 1024px) { .ft { grid-template-columns: 5fr 4fr 3fr; column-gap: var(--sp-8); padding-left: calc(var(--gutter) + var(--rail)); } }
.ft img { display: block; height: 40px; width: auto; margin-bottom: var(--sp-4); }
.ft p { color: var(--c-steel-100); margin-bottom: var(--sp-2); }
.ft .meta { font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); color: var(--c-muted-dark); letter-spacing: .03em; }
.ft-title { margin: 0 0 var(--sp-2); font-weight: 700; font-stretch: 82%; font-size: var(--fs-lead); }
.ft ul { list-style: none; }
.ft a { display: flex; align-items: center; min-height: 44px; color: var(--c-steel-100); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ft address { font-style: normal; }
.ft address p { margin: 0 0 var(--sp-2); }
.ft [aria-current="page"] { font-weight: 700; }
/* El filet es dibuixa amb ::before i comparteix la caixa de la graella .ft (D4) */
.copy { position: relative; max-width: var(--w-max); margin: var(--sp-7) auto 0; padding: var(--sp-5) var(--gutter) 0; font-size: var(--fs-sm); color: var(--c-muted-dark); }
.copy p { margin: 0; max-width: none; }
.copy::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--c-graphite-line); }
@media (min-width: 1024px) { .copy { padding-left: calc(var(--gutter) + var(--rail)); } .copy::before { left: calc(var(--gutter) + var(--rail)); } }
@media (hover: hover) { .ft a:hover { text-decoration-color: var(--c-red); text-decoration-thickness: 2px; } }

/* ---------- Animacions lligades al scroll (millora progressiva) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main::before { animation: grow linear both; animation-timeline: scroll(root); }
    .sec-label .born { animation: fill linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .site-header { animation: shade linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
  }
}
@keyframes grow { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
@keyframes fill { from { background-color: transparent; } to { background-color: var(--c-red); } }
@keyframes shade { to { box-shadow: var(--sh-raise); } }

/* Placa de situacio (D10) */
.sit { padding: var(--sp-5); background: var(--c-graphite-900); border: 1px solid var(--c-graphite-line); border-radius: var(--r-md); }
@media (min-width: 768px) { .sit { padding: var(--sp-6); } }
.sit h3 { margin: var(--sp-2) 0 var(--sp-3); font-size: var(--fs-h3); color: var(--c-steel-100); }
.sit address { font-style: normal; display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-4); font-weight: 500; color: var(--c-steel-100); }
.sit address .ico { flex: none; width: 20px; height: 20px; color: var(--c-red-signal); margin-top: 3px; }
.sit .btn-sit { width: 100%; margin-bottom: var(--sp-4); }
@media (min-width: 768px) { .sit .btn-sit { width: auto; } }
.sit .plan { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--c-graphite-line); border-radius: var(--r-sm); background-color: var(--c-graphite-950); background-image: linear-gradient(rgb(238 240 241 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(238 240 241 / .06) 1px, transparent 1px); background-size: 24px 24px; }
@media (min-width: 768px) { .sit .plan { aspect-ratio: 4 / 3; } }
.sit .plan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sit .plan .via { fill: none; stroke: var(--c-graphite-line); stroke-width: 1.5; }
.sit .plan .cond { fill: none; stroke: var(--c-red); stroke-width: 2; }
.sit .plan .bornp { fill: var(--c-red); stroke: var(--c-red-signal); stroke-width: 1; }
.plan-lbl { position: absolute; left: 50%; top: 30%; margin-left: 18px; padding: 6px 8px; background: var(--c-graphite-950); border: 1px solid var(--c-graphite-line); font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); line-height: 1.4; color: var(--c-steel-100); letter-spacing: .03em; max-width: 46%; }
.plan-n { position: absolute; right: 10px; bottom: 8px; font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); color: var(--c-muted-dark); }
@media (max-width: 767px) { .sit .plan { aspect-ratio: 1 / 1; } .plan-lbl { left: 12px; right: 12px; top: 10px; margin-left: 0; max-width: none; } .plan-n { display: none; } }
.sit .map-meta { margin-top: var(--sp-4); }
.sit .map-meta a { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; color: var(--c-steel-100); text-underline-offset: 4px; }
.sit .map-meta .ico { width: 16px; height: 16px; }

/* ---------- Pàgines legals ---------- */
.band { padding-block: var(--sp-6) var(--sp-7); }
.band .sec-label { margin-bottom: var(--sp-4); }
.band h1 { margin: 0; color: var(--c-steel-100); font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem); max-width: 22ch; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0 0 var(--sp-3); padding: 0; font-size: var(--fs-sm); color: var(--c-muted-dark); }
.crumbs li + li::before { content: "/"; margin-inline: var(--sp-2); color: var(--c-graphite-600); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--c-steel-100); text-underline-offset: 4px; }
@media (hover: hover) { .crumbs a:hover { text-decoration-color: var(--c-red-signal); text-decoration-thickness: 2px; } }
.legal-sec { padding-block: var(--sp-7) var(--sp-9); }
.legal { display: grid; gap: var(--sp-5); }
@media (min-width: 1024px) { .legal { grid-template-columns: minmax(0, 760px) 280px; column-gap: var(--sp-8); align-items: start; } }
.prose { line-height: 1.7; }
.prose p { max-width: none; }
.prose > h2 { margin: var(--sp-8) 0 var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid var(--rule); font-size: var(--fs-h3); color: var(--fg-strong); }
.prose > details + h2 { margin-top: var(--sp-6); }
.prose h3 { margin: var(--sp-6) 0 var(--sp-3); font-size: 1.125rem; color: var(--fg-strong); letter-spacing: 0; }
.prose :is(p, td, li) a { color: var(--fg-strong); text-decoration: underline; text-decoration-color: var(--c-red-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { .prose :is(p, td, li) a:hover { text-decoration-thickness: 2px; } }
.prose > ul, .prose > ol { margin: 0 0 var(--sp-5); }
.prose > ul { list-style: none; }
.prose > ul > li { position: relative; padding-left: 22px; margin-bottom: var(--sp-3); }
.prose > ul > li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--c-red); }
.prose > ol { padding-left: 1.6em; }
.prose > ol > li { margin-bottom: var(--sp-3); padding-left: 4px; }
.prose > ol > li::marker { font-family: var(--ff-mono); font-weight: 500; color: var(--c-red-ink); }
.data { width: 100%; margin: 0 0 var(--sp-5); border-collapse: collapse; }
.data th, .data td { padding: var(--sp-3) var(--sp-3) var(--sp-3) 0; border-top: 1px solid var(--rule); vertical-align: top; text-align: left; }
.data tr:last-child > * { border-bottom: 1px solid var(--rule); }
.data th { width: 34%; font-weight: 600; color: var(--fg-strong); }
.data .mono { font-size: var(--fs-sm); letter-spacing: .03em; }
.toc-m { margin-bottom: var(--sp-6); background: var(--c-steel-200); border: 1px solid var(--c-steel-300); border-radius: var(--r-sm); }
.toc-m summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-inline: var(--sp-4); font-weight: 600; color: var(--fg-strong); cursor: pointer; list-style: none; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: "+"; font-family: var(--ff-mono); font-size: 1.25rem; }
.toc-m[open] summary::after { content: "\2212"; }
.toc-m ul, .toc-d ul { list-style: none; }
.toc-m a, .toc-d a { display: flex; align-items: center; min-height: 44px; padding-inline: var(--sp-4); color: var(--fg-strong); text-decoration: none; font-size: var(--fs-sm); line-height: 1.3; }
.toc-m li + li, .toc-d li + li { border-top: 1px solid var(--c-steel-300); }
.toc-d { display: none; }
@media (min-width: 1024px) {
  .toc-m { display: none; }
  .toc-d { display: block; position: sticky; top: calc(var(--header-h) + var(--sp-5)); background: var(--c-steel-200); border-left: 2px solid var(--c-red); padding-block: var(--sp-3); }
}
.toc-title { margin: 0; padding: var(--sp-2) var(--sp-4); font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--c-graphite-800); }
@media (hover: hover) { .toc-m a:hover, .toc-d a:hover { background: var(--c-steel-300); } }
.legal-end { display: grid; gap: var(--sp-5); margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--rule); }
.legal-end .link-arrow { justify-self: start; }
.legal-end ul { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); list-style: none; }
.legal-end li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-strong); text-underline-offset: 4px; }
.rel-title { margin: 0 0 var(--sp-1); font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--c-graphite-800); }

/* ---------- 404 ---------- */
.err { padding-block: var(--sp-8) var(--sp-9); }
.err-grid { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 1024px) { .err-grid { grid-template-columns: 7fr 5fr; } }
.err h1 { color: var(--c-steel-100); max-width: 18ch; }
.h1-sub { display: block; margin-top: var(--sp-2); font-size: .5em; font-weight: 600; letter-spacing: 0; color: var(--c-red-signal); }
.err .lead { margin-bottom: var(--sp-3); color: var(--c-steel-100); }
.err-links { list-style: none; margin: var(--sp-6) 0 var(--sp-5); max-width: 520px; }
.err-links li { border-top: 1px solid var(--c-graphite-line); }
.err-links li:last-child { border-bottom: 1px solid var(--c-graphite-line); }
.err-links a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 64px; color: var(--c-steel-100); font-weight: 600; font-size: var(--fs-lead); text-decoration: none; }
.err-links .ico { color: var(--c-red-signal); transition: transform var(--t-base) var(--ease-out); }
@media (hover: hover) { .err-links a:hover .ico { transform: translateX(6px); } .err-links a:hover { color: #fff; } }
.err-help { margin-bottom: var(--sp-2); color: var(--c-steel-300); }
.err-contact { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); font-family: var(--ff-mono); font-weight: 500; }
.err-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-steel-100); text-underline-offset: 4px; }
.err-circuit { width: 100%; max-width: 420px; height: auto; justify-self: center; overflow: visible; }
.err-circuit path { fill: none; stroke-width: 2; }
.err-circuit .cond { stroke: var(--c-red); }
.err-circuit .ghost { stroke: var(--c-graphite-line); stroke-dasharray: 4 6; }
.err-circuit .born-v { fill: var(--c-graphite-950); stroke: var(--c-red-signal); stroke-width: 2; }
.site-footer--min { padding-block: 0 var(--sp-3); }
.site-footer--min .copy { margin-top: 0; }

/* ---------- Crèdit del desenvolupador (peu) ---------- */
.copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-5); }
.copy .credit a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .45em; min-height: 44px; color: var(--c-steel-300); text-decoration: none; }
.credit-m { display: inline-flex; align-items: center; gap: .4em; color: var(--c-steel-100); font-weight: 600; white-space: nowrap; }
.credit-ico { display: inline-flex; width: 24px; height: 24px; flex: none; }
.credit-ico img { width: 24px; height: 24px; }
.credit-m > span:last-child { background: linear-gradient(90deg, var(--c-red-signal), var(--c-red-signal)) no-repeat 0 100% / 0 2px; padding-bottom: 2px; transition: background-size var(--t-base) var(--ease-out); }
.copy .credit a:hover .credit-m > span:last-child, .copy .credit a:focus-visible .credit-m > span:last-child { background-size: 100% 2px; }
@media (prefers-reduced-motion: no-preference) {
  .credit-ico { transition: transform .7s var(--ease-out); }
  .credit a:hover .credit-ico, .credit a:focus-visible .credit-ico { transform: rotate(360deg) scale(1.2); }
  .credit-anim { opacity: 0; transform: translateY(16px); }
  .credit-anim .credit-ico img { opacity: 0; transform: rotate(-300deg) scale(.2); }
  .credit-anim.credit-vist { animation: credit-in .4s var(--ease-out) forwards; }
  .credit-anim.credit-vist .credit-ico img { animation: credit-gir .8s var(--ease-out) .1s forwards; }
}
@keyframes credit-in { to { opacity: 1; transform: none; } }
@keyframes credit-gir { 60% { opacity: 1; } to { opacity: 1; transform: none; } }
