/* ============================================================================
   Portfolio — public site
   Design system ported from the Figma file ("portfolio-figma").

   Editorial / technical: near-black grounds, hairline rules instead of
   shadows, square corners, a display sans for headings and a mono for every
   label. One accent colour does all the emphasis.
   ============================================================================ */

:root {
  /* -- Ground / surface ------------------------------------------------- */
  --ground: #010203;
  --ground-2: #080a0d;
  --ground-3: #11151a;
  --line: #414741;          /* hairline rules + diagram strokes */
  --border: #4b6582;        /* input + interactive borders */

  /* -- Ink -------------------------------------------------------------- */
  --text: #f4f7fa;
  --muted: #8ca5c1;

  /* -- Accent ----------------------------------------------------------- */
  --accent: #57a2ff;
  --accent-light: #8bc3ff;
  --on-accent: #010203;

  /* -- Type ------------------------------------------------------------- */
  --font-display: "Encode Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Encode Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* -- Metrics ---------------------------------------------------------- */
  --wrap: 1280px;
  --wrap-narrow: 1024px;
  --gutter: 32px;
  --nav-h: 84px;

  /* -- Back-compat aliases (older markup/scripts reference these) -------- */
  --color-background: var(--ground);
  --color-surface: var(--ground-3);
  --color-primary: var(--accent);
  --color-text: var(--text);
  --color-text-muted: var(--muted);
}

/* -- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
/* Several components set an explicit `display`, which would otherwise beat the
   user-agent rule for [hidden] and show elements the scripts mean to hide. */
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Focus is always visible — the design has no hover-only affordances. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* -- Type primitives ----------------------------------------------------- */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.05;
}
em.hl, .grad { font-style: italic; color: var(--accent); }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { width: 100%; max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* -- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 0;
  cursor: pointer; transition: opacity .2s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-light); }
.btn-outline, .btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn-outline:hover, .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* A text link that grows its rule on hover — the primary affordance. */
.rule-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--text); transition: opacity .2s;
}
.rule-link:hover { opacity: .7; }
.rule-link::after {
  content: ""; width: 48px; height: 1px; background: var(--accent);
  transition: width .3s;
}
.rule-link:hover::after { width: 64px; }
.rule-link.back::after { display: none; }
.rule-link.back::before {
  content: ""; width: 32px; height: 1px; background: var(--accent); transition: width .3s;
}
.rule-link.back:hover::before { width: 48px; }

/* -- First-load overlay -------------------------------------------------- */
.page-loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--ground);
  transition: opacity .35s ease, visibility .35s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-spinner {
  width: 28px; height: 28px;
  border: 1px solid var(--line); border-top-color: var(--accent);
  animation: pl-spin .8s linear infinite;
}
@keyframes pl-spin { to { transform: rotate(360deg); } }

/* Draft-preview banner */
.notice-bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 16px; text-align: center;
}

/* Inline "edit" chips shown only to a signed-in admin */
.edit-chip {
  display: inline-flex; align-items: center; gap: 6px;
  vertical-align: middle; margin-left: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line);
  padding: 3px 8px; transition: color .2s, border-color .2s;
}
.edit-chip:hover { color: var(--accent); border-color: var(--accent); }
.edit-chip svg { width: 12px; height: 12px; }

/* ============================================================================
   NAV
   ========================================================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(1, 2, 3, .92) 0%, rgba(1, 2, 3, 0) 100%);
  backdrop-filter: blur(6px);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; letter-spacing: -.02em; color: var(--text);
  transition: opacity .2s; display: flex; align-items: baseline; gap: 10px;
}
.brand:hover { opacity: .7; }
.brand-role {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.brand-badge { display: none; }   /* the new design uses the full name only */

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active, .nav-links a[aria-current="true"] { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-dash {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); padding: 8px 12px; transition: color .2s, border-color .2s;
}
.nav-dash:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 1px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-toggle span:nth-child(1) { width: 24px; }
.nav-toggle span:nth-child(2) { width: 16px; }
.nav-toggle span:nth-child(3) { width: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(2px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(2px, -5px); }

.nav-mobile {
  display: none;
  background: var(--ground-2); border-bottom: 1px solid var(--line);
  padding: 24px var(--gutter);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 18px; }
.nav-mobile a {
  font-family: var(--font-mono); font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.nav-mobile a:hover { color: var(--accent); }

/* ============================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 44px) var(--gutter) 64px;
  background: var(--ground);
}
/* The vertical accent hairline down the right edge. */
.hero::after {
  content: ""; position: absolute; top: 0; right: 0; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: .2;
}
.hero-grid {
  flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 3fr 2fr; gap: 32px; align-items: start;
}
.hero-main { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1.05; letter-spacing: -.025em;
  margin-top: 32px;
}
.hero-foot {
  margin-top: 64px;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px;
}
.hero-desc { max-width: 26rem; font-size: 14px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.eyebrow-row { display: flex; align-items: center; gap: 8px; }

/* Portrait panel with the generative artwork */
.hero-art { position: relative; }
.hero-art-frame {
  position: relative; overflow: hidden; aspect-ratio: 3 / 4;
  background: var(--ground-3); border: 1px solid var(--line);
}
.hero-art-frame .art { width: 100%; height: 100%; padding: 32px; }
.hero-art-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(1, 2, 3, .8) 0%, transparent 60%);
  pointer-events: none;
}
.hero-art-cap {
  position: absolute; left: 24px; bottom: 24px; z-index: 1;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.hero-art-tag {
  position: absolute; right: -16px; bottom: -16px;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; line-height: 1.2;
}
.hero-bg { display: none; }

/* Stat strip under the hero */
.hero-stats {
  width: 100%; max-width: var(--wrap); margin: 64px auto 0;
  padding-top: 32px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.hero-stats .n {
  font-family: var(--font-display); font-size: 36px; font-weight: 700; margin-bottom: 4px;
}
.hero-stats .l {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ============================================================================
   SECTIONS
   ========================================================================= */
.section { padding: 96px var(--gutter); }
.section-dark { background: var(--ground-2); }
.section-light { background: var(--ground); }
.section-muted {
  background: var(--ground-3);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 64px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -.025em; line-height: 1.05;
  margin-top: 16px;
}
.section-head .section-sub { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 34rem; }
.section-rule { display: none; }   /* replaced by the type hierarchy itself */
.section-head.split {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.section-head.split .section-sub { max-width: 20rem; margin-top: 0; }
.home-cta { margin-top: 48px; }

/* ============================================================================
   WORK GRID (home) — generative artwork cards
   ========================================================================= */
.art { display: block; width: 100%; height: 100%; }
.art svg { display: block; width: 100%; height: 100%; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard {
  position: relative; overflow: hidden; display: block;
  aspect-ratio: 4 / 5;
  background: var(--ground-3); border: 1px solid var(--line);
}
.pcard.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.pcard-art {
  position: absolute; inset: 0;
  padding: 48px 24px 112px;
  transition: transform .7s ease;
}
.pcard:hover .pcard-art { transform: scale(1.04); }
.pcard-art img { width: 100%; height: 100%; object-fit: cover; }
.pcard-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(1, 2, 3, .95) 0%, rgba(1, 2, 3, .2) 100%);
  opacity: .6; transition: opacity .3s;
}
.pcard:hover .pcard-veil { opacity: 1; }
.pcard-index {
  position: absolute; top: 24px; left: 24px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent);
}
.pcard-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.pcard-meta {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.pcard h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.pcard-teaser {
  font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 24rem;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease;
}
.pcard:hover .pcard-teaser, .pcard:focus-visible .pcard-teaser { max-height: 6rem; opacity: 1; }
.pcard-go {
  flex: none; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; color: var(--accent);
  opacity: 0; transition: opacity .3s, border-color .3s;
}
.pcard-go svg { width: 16px; height: 16px; }
.pcard:hover .pcard-go, .pcard:focus-visible .pcard-go { opacity: 1; border-color: var(--accent); }

/* ============================================================================
   EXPERIENCE — timeline
   ========================================================================= */
.timeline {
  position: relative; border-left: 1px solid var(--line);
  padding-left: 40px; display: flex; flex-direction: column; gap: 48px;
}
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -47px; top: 6px;
  width: 12px; height: 12px; border-radius: 999px; background: var(--accent);
}
.tl-date {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.tl-item h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.tl-company { font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.tl-desc { font-size: 14px; max-width: 44rem; color: var(--text); opacity: .8; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* "What I worked on" — the experience items, as a hairline grid */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.work-card { background: var(--ground-2); padding: 28px 24px; transition: background .2s; }
.work-card:hover { background: var(--ground-3); }
.work-ic { color: var(--accent); margin-bottom: 16px; }
.work-ic svg { width: 20px; height: 20px; }
.work-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.work-card p { font-size: 13px; color: var(--muted); }

/* ============================================================================
   SKILLS + CERTIFICATES
   ========================================================================= */
.skill-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.skill-col h3 {
  font-family: var(--font-mono); font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase;
  padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.skill-col ul { display: flex; flex-direction: column; gap: 16px; }
.skill-col li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); }
.skill-col li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px;
  border-radius: 999px; background: var(--accent);
}
.skill-col li img { width: 16px; height: 16px; object-fit: contain; }
/* Flat chip list, used when skills have no categories */
.skills-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tile {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.skill-logo { width: 16px; height: 16px; object-fit: contain; }
.skill-badge, .tag {
  display: inline-block; padding: 6px 12px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.col-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 32px; }
.col-head h2 { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.cert-list { display: flex; flex-direction: column; }
.cert-card { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.cert-card:last-child { border-bottom: 1px solid var(--line); }
.cert-thumb {
  flex: none; width: 64px; height: 64px; overflow: hidden;
  background: var(--ground-3); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-align: center;
}
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cert-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.cert-org { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin: 4px 0 6px; }
.cert-card p { font-size: 13px; color: var(--muted); }
.cert-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.cert-link svg { width: 12px; height: 12px; }
.cert-preview { width: 100%; border: 1px solid var(--line); }

/* ============================================================================
   CONTACT + FOOTER
   ========================================================================= */
.contact { padding: 96px var(--gutter); background: var(--ground); }
.contact-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px;
}
.contact h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.15; letter-spacing: -.025em;
  margin: 32px 0;
}
.contact-sub { font-size: 14px; color: var(--muted); max-width: 26rem; margin-bottom: 48px; }
.contact-facts { display: flex; flex-direction: column; gap: 16px; }
.contact-facts .row { display: flex; gap: 24px; align-items: baseline; }
.contact-facts .k {
  flex: none; width: 88px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.contact-facts .v { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.contact-facts a.v:hover { color: var(--accent); }

#contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field label {
  display: block; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.field .optional { color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 16px;
  background: transparent; color: var(--text);
  font-family: var(--font-body); font-size: 14px;
  border: 1px solid var(--border); border-radius: 0; outline: none;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.form-foot { display: flex; flex-direction: column; gap: 12px; }
#cf-submit {
  width: 100%; justify-content: center;
  background: var(--accent); color: var(--on-accent); border: 0; padding: 16px;
}
#cf-submit:hover:not(:disabled) { background: var(--accent-light); }
.form-msg { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.form-msg.err { color: #ff9a9a; }
.form-msg.ok { color: var(--accent); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-foot {
  padding: 40px var(--gutter);
  background: var(--ground-2); border-top: 1px solid var(--line);
}
.site-foot-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.site-foot .fname { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.site-foot .fmeta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.socials { display: flex; align-items: center; gap: 24px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color .2s;
}
.social-link:hover { color: var(--accent); }
.social-link svg { width: 18px; height: 18px; }

/* ============================================================================
   INNER PAGES — work.html / courses.html
   These pages are rendered by js/work.js and js/courses.js; the class names
   below are theirs, restyled into the new system.
   ========================================================================= */
.page { padding: calc(var(--nav-h) + 56px) 0 96px; min-height: 70vh; }
.work-hero { margin-bottom: 56px; }
.work-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -.025em; line-height: 1.05;
  margin-top: 16px;
}
.work-hero p { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 34rem; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 32px;
}
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .5; }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 32px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.toolbar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); padding: 10px 14px; min-width: 240px;
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input {
  flex: 1; background: none; border: 0; outline: none;
  color: var(--text); font-family: var(--font-body); font-size: 14px;
}
.search-box input::placeholder { color: var(--muted); opacity: .7; }
.search-ic { color: var(--muted); display: inline-flex; }
.search-ic svg { width: 16px; height: 16px; }
.mini-select {
  background: var(--ground-3); color: var(--text);
  border: 1px solid var(--line); padding: 10px 12px; border-radius: 0;
  font-family: var(--font-mono); font-size: 12px;
}
.results-head {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 24px;
}

/* Category cards */
.wc-grid, .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wc-card {
  display: block; position: relative; overflow: hidden;
  background: var(--ground-3); border: 1px solid var(--line);
  transition: border-color .2s;
}
.wc-card:hover { border-color: var(--accent); }
.wc-media {
  aspect-ratio: 16 / 10; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--ground-2); border-bottom: 1px solid var(--line);
}
.wc-media img { width: 100%; height: 100%; object-fit: cover; }
.wc-ic { color: var(--accent); }
.wc-ic svg { width: 28px; height: 28px; }
.wc-info { padding: 24px; }
.wc-info h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.wc-info p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.wc-count, .cat-count {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.wc-count svg, .cat-count svg { width: 14px; height: 14px; }
.cat-head { margin-bottom: 32px; }

/* Project cards in a gallery */
.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wp-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--ground-3); border: 1px solid var(--line);
  transition: border-color .2s;
}
.wp-card:hover { border-color: var(--accent); }
.wp-thumb {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--ground-2); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted);
}
.wp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wp-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wp-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
}
.wp-cat { color: var(--accent); }
.wp-date { color: var(--muted); }
.wp-body h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.wp-body h3 a:hover { color: var(--accent); }
.wp-sub, .wp-body p { font-size: 13px; color: var(--muted); }
.wp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.wp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-flag {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px;
}
/* Industries the work was delivered for (replaces the old client-logo wall) */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ind-tile {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  background: var(--ground-2); padding: 28px 24px; transition: background .2s;
}
.ind-tile:hover { background: var(--ground-3); }
.ind-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.ind-count {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}

/* Project detail (case study) */
.project-detail { max-width: var(--wrap-narrow); margin: 0 auto; }
.pd-head { margin-bottom: 40px; }
.pd-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -.025em;
  margin: 24px 0;
}
.pd-lead { font-size: 18px; color: var(--muted); max-width: 42rem; }
.pd-cover, .pd-shot {
  overflow: hidden; background: var(--ground-3); border: 1px solid var(--line);
  margin-bottom: 40px;
}
.pd-cover img, .pd-shot img { width: 100%; height: 100%; object-fit: cover; }
.pd-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding: 40px var(--gutter); margin: 0 calc(var(--gutter) * -1) 48px;
  background: var(--ground-3);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact .k {
  display: block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.fact .v { font-size: 14px; }
.pd-block { margin-bottom: 64px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.pd-block > h2, .cs-section > h2 {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  font-weight: 400; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px);
}
.pd-text { font-size: 16px; line-height: 1.75; color: var(--text); opacity: .9; }
.pd-text p + p { margin-top: 16px; }
.pd-text ul { display: flex; flex-direction: column; gap: 16px; }
.pd-text li { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.pd-text li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px;
  border-radius: 999px; background: var(--accent);
}
.pd-tags, .pd-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pd-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pd-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line);
}
.cs-section { margin-bottom: 48px; }

/* Courses */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course-card {
  display: flex; flex-direction: column;
  background: var(--ground-3); border: 1px solid var(--line); transition: border-color .2s;
}
.course-card:hover { border-color: var(--accent); }
.cc-thumb {
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--ground-2);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted);
}
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cc-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.cc-body h3 a:hover { color: var(--accent); }
.cc-body p { font-size: 13px; color: var(--muted); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  background: rgba(1, 2, 3, .94); padding: 40px;
}
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lb-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: 1px solid var(--line); color: var(--text);
  width: 40px; height: 40px; cursor: pointer;
}
.lb-close:hover { border-color: var(--accent); color: var(--accent); }

/* Empty + loading states */
.empty-state {
  text-align: center; padding: 64px 24px;
  border: 1px dashed var(--line); color: var(--muted);
}
.empty-state.big { padding: 96px 24px; }
.empty-ic { color: var(--accent); margin-bottom: 16px; }
.empty-ic svg { width: 32px; height: 32px; }
.loading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skeleton {
  height: 260px; border: 1px solid var(--line); background: var(--ground-3);
  animation: sk 1.2s ease-in-out infinite;
}
@keyframes sk { 0%, 100% { opacity: .5; } 50% { opacity: .85; } }
.loading { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }

/* ============================================================================
   MOTION + RESPONSIVE
   ========================================================================= */
.view-in { animation: fade-up .4s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* -- Reveal on scroll ----------------------------------------------------
   Guarded by `.js-motion`, which js/motion.js adds only when the browser can
   observe intersections and the visitor has not asked for reduced motion. No
   class, no hidden content — the page is complete without any of this. */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .6s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms),
    transform .6s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms);
}
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
/* Headline words deal in one after another on first paint. */
.js-motion .hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: word-in .7s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: calc(var(--w) * 55ms + 120ms);
}
@keyframes word-in { to { opacity: 1; transform: none; } }

/* -- Pointer-tracked cards -----------------------------------------------
   `--mx/--my` follow the cursor; `--rx/--ry` tilt the card towards it. Both
   are written by js/motion.js and default to a flat, centred card. */
[data-pointer] {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), border-color .25s;
}
[data-pointer]::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx) var(--my),
    rgba(87, 162, 255, .16), transparent 70%);
}
[data-pointer]:hover::after, [data-pointer]:focus-within::after { opacity: 1; }
.pcard[data-pointer]:hover, .wp-card[data-pointer]:hover { border-color: var(--accent); }
/* Text sits above the light, so the glow lifts the artwork and never washes
   over the words. */
.pcard-body { z-index: 3; }
.wp-body, .wc-info, .cc-body { position: relative; z-index: 3; }

/* -- Navigation chrome ---------------------------------------------------- */
.navbar { transition: background .3s, box-shadow .3s; }
.navbar.scrolled {
  background: linear-gradient(to bottom, rgba(1, 2, 3, .97) 0%, rgba(1, 2, 3, .82) 100%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  transform: scaleX(0); transform-origin: 0 50%;
}
/* The active section's link keeps a rule under it. */
.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* -- Hero atmosphere ------------------------------------------------------
   Two very low-opacity accent fields drifting behind the headline, plus the
   hairline grid. Painted on a pseudo-element so nothing in the hero has to
   composite differently. */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  pointer-events: none; z-index: 0; opacity: .55;
  background:
    radial-gradient(38rem 26rem at 18% 12%, rgba(87, 162, 255, .13), transparent 70%),
    radial-gradient(30rem 30rem at 82% 68%, rgba(139, 195, 255, .09), transparent 72%),
    linear-gradient(rgba(65, 71, 65, .16) 1px, transparent 1px) 0 0 / 100% 88px,
    linear-gradient(90deg, rgba(65, 71, 65, .16) 1px, transparent 1px) 0 0 / 88px 100%;
  animation: hero-drift 22s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
.hero-grid, .hero-stats { position: relative; z-index: 1; }
/* The art panel drifts against the pointer (see initHeroParallax). */
.hero-art-frame {
  --px: 0px; --py: 0px;
  transform: translate3d(var(--px), var(--py), 0);
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), border-color .3s;
}
.hero-art:hover .hero-art-frame { border-color: var(--accent); }
.hero-art-tag { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.hero-art:hover .hero-art-tag { transform: scale(1.08) rotate(-3deg); }

/* Scroll cue at the foot of the hero */
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: 50% 0;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.35); opacity: .35; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* -- Living diagrams ------------------------------------------------------
   The generated artwork draws itself in the first time a card is seen, then
   keeps one slow pulse on the accent element so the tile is never quite
   still. Classes are emitted by js/artwork.js. */
.art .a-draw {
  stroke-dasharray: var(--len, 420);
  stroke-dashoffset: var(--len, 420);
  animation: draw 1.5s cubic-bezier(.5, 0, .2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.art .a-pop {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: pop .45s cubic-bezier(.34, 1.56, .64, 1) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 260ms);
}
@keyframes pop { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: none; } }
/* The gauge arc carries its own dash pattern, so only the offset is animated. */
.art .a-gauge {
  stroke-dashoffset: var(--len, 420);
  animation: draw 1.6s cubic-bezier(.5, 0, .2, 1) .2s forwards;
}
.art .a-grow {
  transform: scaleX(0); transform-box: view-box;
  animation: grow .7s cubic-bezier(.22, .61, .36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 300ms);
}
@keyframes grow { to { transform: scaleX(1); } }
.art .a-pulse {
  transform-box: fill-box; transform-origin: center;
  animation: pulse 3.2s ease-in-out infinite;
}
.art .a-glow { animation: pop .45s cubic-bezier(.34, 1.56, .64, 1) forwards, glow 2.8s ease-in-out 1.2s infinite; }
@keyframes glow {
  0%, 100% { stroke-width: 1; opacity: .8; }
  50%      { stroke-width: 2.2; opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: .35; transform: scale(.94); }
  50%      { opacity: 1; transform: scale(1.06); }
}
/* Diagrams only animate once their card is on screen. */
.js-motion [data-reveal]:not(.is-in) .art * { animation-play-state: paused; }

/* -- Marquee band ---------------------------------------------------------
   The toolkit, scrolling. One row holds the track repeated as many times as
   the viewport needs (js/motion.js counts the copies) and is moved by exactly
   one track width, which lands the next copy precisely where the last began.
   A single animation moves the whole row, so the seam cannot drift — animating
   each track separately lets sub-pixel width differences and start-time skew
   show up as a stutter at the joint. */
.marquee-band {
  --marquee-duration: 32s;
  --marquee-shift: -50%;
  position: relative; overflow: hidden;
  padding: 22px 0;
  background: var(--ground-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  width: 100%;
  /* Fade the ends into the ground rather than cutting the row off. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row {
  display: flex; width: max-content;
  /* Its own compositor layer, so scrolling the row never repaints the band. */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.marquee-track {
  display: flex; align-items: center; gap: 48px;
  flex: none; padding-right: 48px; white-space: nowrap;
}
/* The script drives this with the Web Animations API so it can change speed
   without restarting. This rule is the fallback for browsers that have no
   `element.animate`. */
.marquee-band.running .marquee-row { animation: marquee var(--marquee-duration) linear infinite; }
.marquee-band.running:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--marquee-shift, -50%), 0, 0); }
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  transition: color .25s;
}
.marquee-band:hover .marquee-item { color: var(--text); }
.marquee-item img {
  width: 20px; height: 20px; object-fit: contain;
  filter: grayscale(1) brightness(1.7); opacity: .7;
  transition: filter .25s, opacity .25s, transform .25s;
}
.marquee-item:hover img { filter: none; opacity: 1; transform: scale(1.15); }

/* -- Logos in lists ------------------------------------------------------- */
.skill-col li { transition: color .2s, transform .2s; }
.skill-col li:hover { color: var(--text); transform: translateX(4px); }
/* A skill with a real logo drops the generic bullet. */
.skill-col li.has-logo::before { display: none; }
.skill-logo, .skill-col li img, .tag-logo {
  filter: grayscale(1) brightness(1.7); opacity: .75;
  transition: filter .25s, opacity .25s;
}
.skill-col li:hover img, .tag.has-logo:hover .tag-logo { filter: none; opacity: 1; }
.tag.has-logo { display: inline-flex; align-items: center; gap: 8px; }
.tag-logo { width: 14px; height: 14px; object-fit: contain; }

/* -- Card and tile polish ------------------------------------------------- */
.work-card, .ind-tile, .wc-card, .cert-card { transition: background .25s, transform .25s, border-color .25s; }
.work-card:hover, .ind-tile:hover { transform: translateY(-3px); }
.work-ic { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.work-card:hover .work-ic { transform: translateY(-2px) scale(1.12); }
.wc-card:hover .wc-media img, .wp-card:hover .wp-thumb img { transform: scale(1.06); }
.wc-media img, .wp-thumb img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.cert-thumb img { transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
.cert-card:hover .cert-thumb img { transform: scale(1.08); }
.ind-tile { position: relative; overflow: hidden; }
.ind-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.ind-tile:hover::before { transform: scaleY(1); }
/* The timeline dot fills as its entry arrives. */
.js-motion .tl-item[data-reveal]::before { transform: scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1) var(--reveal-delay, 0ms); }
.js-motion .tl-item[data-reveal].is-in::before { transform: scale(1); }
.btn { transition: opacity .2s, background .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.social-link { transition: color .2s, transform .25s; }
.social-link:hover { transform: translateY(-3px); }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-top: 32px; }
  .work-grid, .wp-grid, .wc-grid, .cat-grid, .course-grid, .loading-grid { grid-template-columns: repeat(2, 1fr); }
  .pcard.wide { grid-column: span 2; }
  .cards-grid, .skill-cols { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .pd-block { grid-template-columns: 1fr; gap: 20px; }
  .pd-block > h2, .cs-section > h2 { position: static; }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-dash { display: none; }
  /* Keep the name on one line — the role would push it to two. */
  .brand-role { display: none; }
  .brand { white-space: nowrap; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 24px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .section { padding: 64px var(--gutter); }
  .work-grid, .wp-grid, .wc-grid, .cat-grid, .course-grid, .loading-grid,
  .cards-grid, .skill-cols, .pd-gallery, .form-row { grid-template-columns: 1fr; }
  .pcard.wide { grid-column: span 1; aspect-ratio: 4 / 5; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-facts { grid-template-columns: 1fr; gap: 24px; }
  .hero-art-tag { width: 72px; height: 72px; right: -8px; bottom: -8px; }
  .timeline { padding-left: 24px; }
  .tl-item::before { left: -31px; }
  .contact-facts .row { flex-direction: column; gap: 4px; }
  .site-foot-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
