/* =========================================================
   lokp · Nois faz programa
   Monochrome, soft-relief look on a vertical, accessible page:
   AA contrast, visible focus, reduced-motion aware.
   ========================================================= */

:root {
  --bg: #ececec;
  --bg-alt: #e3e3e3;
  --surface: #f4f4f4;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #5e5e5e;        /* 5.6:1 on --bg */
  --line: rgba(17, 17, 17, .12);
  --field: #767676;        /* 3:1+ boundary for inputs */
  --sh-d: rgba(170, 170, 170, .6);
  --sh-l: rgba(255, 255, 255, .95);
  --btn-hover: #2e2e2e;
  --on-dark: #f5f5f5;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --font: "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
}
/* dark sections: same components, inverted tokens */
.section-dark, .footer, .hero {
  --bg: #111111;
  --surface: #1b1b1b;
  --ink: #f2f2f2;
  --ink-2: #c8c8c8;
  --muted: #a3a3a3;        /* 7.6:1 on #111 */
  --line: rgba(255, 255, 255, .14);
  --field: #8a8a8a;
  --sh-d: rgba(0, 0, 0, .7);
  --sh-l: rgba(255, 255, 255, .07);
  --btn-hover: #d4d4d4;
}
html[lang="zh-CN"] { --font: "Noto Sans SC", "Plus Jakarta Sans", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; }
::selection { background: var(--ink); color: var(--bg); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1180px, 100% - 80px); } }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- focus ---------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute; z-index: 1000; left: 16px; top: 12px; padding: 12px 20px;
  background: var(--ink); color: var(--bg); font-weight: 600; border-radius: 999px;
  transform: translateY(-180%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- buttons & links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2;
  overflow: hidden; isolation: isolate; white-space: nowrap; text-align: center; transition: color .3s;
}
.btn-lg { min-height: 56px; padding: 14px 32px; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-light { background: #f2f2f2; color: #111; }
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 140%; aspect-ratio: 1;
  border-radius: 50%; transform: translate(-50%, 0); transition: transform .6s var(--ease);
}
.btn-dark::before { background: var(--btn-hover); }
.btn-light::before { background: #cfcfcf; }
.btn:hover::before { transform: translate(-50%, -70%); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; color: var(--ink); }
.link-arrow > span:not(.sr-only) {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .5s var(--ease);
}
.link-arrow:hover > span:not(.sr-only) { background-size: 0 1.5px; background-position: 100% 100%; }
.link-arrow i { font-style: normal; transition: transform .4s var(--ease); }
.link-arrow:hover i { transform: translateX(3px); }
.link-light { color: #f2f2f2; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(236, 236, 236, .96); transition: box-shadow .3s; }
@supports (backdrop-filter: blur(8px)) { .header { background: rgba(236, 236, 236, .82); backdrop-filter: blur(12px); } }
.header.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, .06); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand-mark { width: 18px; height: 27px; fill: currentColor; }
.brand-word { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 1.5625rem; letter-spacing: -.04em; line-height: 1; }
.brand-light { color: #f2f2f2; }

.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a { position: relative; display: block; padding: 10px 12px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.nav-list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--ink); }
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-list a[aria-current="true"] { font-weight: 600; }
.nav-cta { min-height: 44px; padding: 10px 22px; font-size: .9375rem; }

/* language switch: soft inset pill with a sliding knob */
.lang {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; flex: none;
  width: 108px; height: 40px; padding: 3px; border-radius: 999px; background: var(--bg);
  box-shadow: inset 3px 3px 7px var(--sh-d), inset -3px -3px 7px var(--sh-l);
}
.lang::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: calc(50% - 3px); height: calc(100% - 6px);
  border-radius: 999px; background: var(--ink); transition: transform .55s cubic-bezier(.68, -0.4, .27, 1.4);
}
html[lang="zh-CN"] .lang::before { transform: translateX(100%); }
.lang-btn { position: relative; z-index: 1; height: 100%; border-radius: 999px; font-size: .8125rem; font-weight: 700; color: var(--muted); transition: color .4s; }
.lang-btn:hover { color: var(--ink); }
.lang-btn[aria-pressed="true"] { color: var(--bg); }

.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--bg); box-shadow: 4px 4px 10px var(--sh-d), -4px -4px 10px var(--sh-l); font-weight: 600; font-size: .9375rem;
}
.menu-icon { position: relative; width: 18px; height: 12px; }
.menu-icon i { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.menu-icon i:nth-child(1) { top: 0; }
.menu-icon i:nth-child(2) { top: 5px; }
.menu-icon i:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .lang { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 18px; margin: 0;
    padding: 8px 16px 24px; background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 24px 40px rgba(0, 0, 0, .1);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 15px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav-list a::after { left: 4px; right: auto; width: 24px; bottom: 8px; }
  .nav-cta { width: 100%; min-height: 52px; }
}
@media (max-width: 420px) { .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .menu-toggle { padding: 8px 13px; } .header-inner { gap: 12px; } }

/* ---------- sections & type ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; background: var(--bg); color: var(--ink); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); }
.eyebrow { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 18px; font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow-n { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 700; }
.section-title { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; max-width: 16ch; }
html[lang="zh-CN"] .section-title { letter-spacing: 0; line-height: 1.2; font-weight: 900; }
.section-lead { max-width: 540px; margin-top: 20px; font-size: 1.0625rem; color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(600px, 88vh, 900px); color: var(--ink); background: #111; overflow: hidden; }
.hero-media { position: absolute; z-index: -2; top: 0; right: 0; bottom: 0; width: 52%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
/* the photo melts into the dark panel on its left edge */
.hero-shade {
  position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 52%;
  background:
    linear-gradient(90deg, #111 0%, rgba(17, 17, 17, .55) 14%, rgba(17, 17, 17, 0) 34%),
    linear-gradient(0deg, rgba(17, 17, 17, .55), rgba(17, 17, 17, 0) 30%);
}
.hero-content { padding: 96px 0 150px; }
.hero-content > * { max-width: min(560px, 46%); }
@media (max-width: 1080px) { .hero-content > * { max-width: 50%; } .hero-title { font-size: clamp(2.25rem, 5vw, 3.5rem); } }
.hero .eyebrow { color: #cfcfcf; }
.hero-title { max-width: 14ch; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.05em; line-height: .98; color: #f5f5f5; }
html[lang="zh-CN"] .hero-title { max-width: 12em; letter-spacing: 0; line-height: 1.2; font-weight: 900; }
.hero-lead { max-width: 34ch; margin-top: 26px; font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); color: #dedede; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
@media (max-width: 760px) {
  /* phones: the photo sits on top and fades into the dark panel, copy starts below the sign */
  .hero { align-items: flex-end; min-height: 0; }
  .hero-media, .hero-shade { width: 100%; bottom: auto; height: min(132vw, 560px); }
  .hero-media img { object-position: 50% 20%; }
  .hero-shade { background: linear-gradient(0deg, #111 0%, rgba(17, 17, 17, .75) 22%, rgba(17, 17, 17, 0) 55%); }
  .hero-content { padding: calc(min(132vw, 560px) - 64px) 0 120px; }
  .hero-content > * { max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-actions .link-arrow { justify-content: center; }
}

/* ---------- highlights: raised soft tiles over the hero edge ---------- */
.highlights { position: relative; z-index: 2; margin-top: -76px; padding-bottom: 8px; }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hl {
  display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 28px; border-radius: 22px; background: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 12px 16px 32px rgba(120, 120, 120, .35);
}
.hl-ico { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hl-title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.hl p { font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1080px) { .hl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .highlights { margin-top: -56px; } .hl-grid { grid-template-columns: 1fr; gap: 16px; } .hl { flex-direction: row; } }

/* ---------- services: ruled grid, ink fills on hover ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.card { position: relative; padding: 30px 28px 34px; border-bottom: 1px solid var(--line); isolation: isolate; }
.card:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.card::before {
  content: ""; position: absolute; z-index: -1; inset: 0; background: var(--ink);
  clip-path: inset(100% 0 0 0); transition: clip-path .55s var(--ease-in-out);
}
.card-n { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .4s; }
.card-ico { position: absolute; top: 28px; right: 28px; width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: stroke .4s; }
.card h3 { margin: 14px 0 8px; font-size: 1.3125rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; transition: color .4s; }
.card p { color: var(--ink-2); font-size: .9688rem; transition: color .4s; }
@media (hover: hover) {
  .card:hover::before { clip-path: inset(0 0 0 0); }
  .card:hover h3 { color: var(--bg); }
  .card:hover .card-ico { stroke: var(--bg); }
  .card:hover p, .card:hover .card-n { color: color-mix(in srgb, var(--bg) 78%, transparent); }
}
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card:not(:nth-child(3n)) { border-right: 0; }
  .card:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } .card:nth-child(odd) { border-right: 0; } .card { padding: 24px 4px 26px; } .card-ico { right: 4px; top: 22px; } }

/* ---------- projects (dark): browser frames ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: min(960px, 100%); margin-inline: auto; }
.work { display: flex; flex-direction: column; }
.frame-bar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; background: #222;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0;
}
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.frame-bar b { margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .6875rem; font-weight: 500; color: rgba(255, 255, 255, .7); }
.work-media {
  aspect-ratio: 16 / 9; overflow: hidden; background: #2a2a2a; border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 12px 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.work:hover .work-media img { transform: scale(1.03); }
.work-soon .frame-bar { background: transparent; border-style: dashed; }
.work-empty { display: grid; place-items: center; background: transparent; border-style: dashed; box-shadow: none; }
.work-empty .brand-mark { width: 44px; height: 66px; fill: #555; }
.work-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 22px; flex: 1; }
.work-body > p:not(.badge) { color: var(--ink-2); font-size: .9688rem; max-width: 440px; margin-bottom: 8px; }
.work-name { font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; overflow-wrap: anywhere; }
.work-soon .work-name { color: var(--muted); font-style: italic; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5fd38d; }
.badge-soon::before { background: var(--muted); }
.work-body .link-arrow { margin-top: auto; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; max-width: 540px; } }

/* ---------- use cases: before / after rows ---------- */
.case-grid { width: min(940px, 100%); margin-inline: auto; border-top: 1px solid var(--line); }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.case-label { margin-bottom: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case-part:first-child p:last-child {
  color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px;
  text-decoration-color: transparent; transition: text-decoration-color 1.1s var(--ease-in-out) .4s;
}
.case.in .case-part:first-child p:last-child { text-decoration-color: currentColor; }
.case-after .case-label { color: var(--ink); }
.case-after p:last-child { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- process (dark) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { position: relative; padding-top: 26px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.step::after { content: ""; position: absolute; top: -.5px; left: 0; right: 0; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(1); transition: transform .9s var(--ease-in-out); }
.step-n { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.375rem; letter-spacing: -.03em; font-weight: 600; margin: 26px 0 10px; }
.step p { color: var(--ink-2); font-size: .9688rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .step.reveal { opacity: 1; transform: none; }
  .js .step.reveal::after { transform: scaleX(0); }
  .js .step.reveal > * { opacity: .25; transition: opacity .8s var(--ease); transition-delay: inherit; }
  .js .step.reveal.in::after { transform: scaleX(1); }
  .js .step.reveal.in > * { opacity: 1; }
  .step:nth-child(2)::after, .step:nth-child(2) > * { transition-delay: .35s; }
  .step:nth-child(3)::after, .step:nth-child(3) > * { transition-delay: .7s; }
  .step:nth-child(4)::after, .step:nth-child(4) > * { transition-delay: 1.05s; }
}
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-info .section-title { font-size: clamp(2.125rem, 4.4vw, 3.75rem); margin-bottom: 22px; }
.contact-info > p { color: var(--ink-2); max-width: 30rem; }
.contact-list { display: grid; gap: 18px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.contact-list dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin-top: 2px; font-size: 1.0625rem; font-weight: 600; }
.contact-list a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

.form {
  display: grid; gap: 22px; padding: clamp(28px, 4vw, 44px); border-radius: 26px; background: var(--bg);
  box-shadow: 14px 14px 32px var(--sh-d), -14px -14px 32px var(--sh-l);
}
.form-req { font-size: .875rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; display: grid; gap: 4px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.req { color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-size: 1rem; font-weight: 500; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--field); border-radius: 0; padding: 8px 0 10px; resize: vertical; outline: 0;
}
.field textarea { min-height: 112px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.field [aria-invalid="true"] { border-bottom-color: #b00020; box-shadow: 0 1.5px 0 #b00020; }
.field-hint { font-size: .8125rem; color: var(--muted); }
.field-error { display: none; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: #b00020; }
.field-error:not(:empty) { display: flex; }
.field-error:not(:empty)::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #b00020; color: #fff; font-size: .6875rem; font-weight: 800; }
.form .btn { justify-self: start; margin-top: 4px; }
.form-status { font-size: .9375rem; font-weight: 600; }
.form-status:empty { display: none; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } .form { border-radius: 20px; } }

/* ---------- footer ---------- */
.footer { background: var(--bg); color: var(--muted); padding-top: 64px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { max-width: 30ch; margin-top: 16px; }
.footer-title { margin-bottom: 16px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { transition: color .3s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: .8125rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll (only when JS runs and motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- forced colors (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .btn, .lang, .hl, .form, .menu-toggle { border: 1px solid CanvasText; }
  .lang::before { display: none; }
  .lang-btn[aria-pressed="true"] { outline: 2px solid Highlight; }
}
