/* ============================================================
   ARKASEM — Digitalstudio
   Faithful implementation of the Arkasem.dc.html design.
   Dark, editorial, mono-accented. Dependency-free.
   ============================================================ */

:root {
  --acc: #3B7BFF;            /* accent (overridable via data-accent / JS) */
  --bg: #0A0A0C;
  --surface: #0C0C0F;
  --surface-2: #121216;

  --ink: #ECECEE;
  --ink-2: #cfd0d6;
  --ink-3: #c5c6cc;
  --muted: #a5a6ae;
  --muted-2: #9a9ba3;
  --muted-3: #8a8b92;
  --muted-4: #7c7d86;
  --muted-5: #6c6d76;
  --muted-6: #54555c;

  --line-1: rgba(255,255,255,.05);
  --line-2: rgba(255,255,255,.08);
  --line-3: rgba(255,255,255,.1);
  --line-4: rgba(255,255,255,.14);
  --line-5: rgba(255,255,255,.18);
  --line-6: rgba(255,255,255,.2);

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 48px);

  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Manrope', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--acc); color: var(--bg); }

img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Keyframes ---------- */
@keyframes drift { from { background-position: 0 0; } to { background-position: 0 60px; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes revealUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Fixed background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: drift 40s linear infinite;
}
.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 70% at 50% 120%, rgba(0,0,0,.6), transparent 60%);
}
.bg__rails {
  position: fixed;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--maxw), 100%);
  border-left: 1px solid var(--line-1);
  border-right: 1px solid var(--line-1);
}

.shell { position: relative; z-index: 1; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.kicker-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 8px;
}
.kicker-num { font-family: var(--mono); font-size: 13px; color: var(--acc); }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--muted-4); }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 60px);
  letter-spacing: -.025em;
  margin: 0;
}

/* ---------- Status bar ---------- */
.statusbar { border-bottom: 1px solid var(--line-2); }
.statusbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted-5);
}
.statusbar__status { display: flex; align-items: center; gap: 8px; }
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acc);
  display: inline-block;
  animation: blink 2.4s ease-in-out infinite;
}

/* ---------- Header / nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10,10,12,.78);
  border-bottom: 1px solid var(--line-2);
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}
.brand__mark { width: 11px; height: 11px; background: var(--acc); display: block; }
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: 20px;
  color: var(--ink);
}

.nav { display: flex; gap: 2px; align-items: center; }
.nav-link {
  position: relative;
  background: none;
  border: none;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 10px 16px;
  cursor: pointer;
  transition: color .2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link__tick {
  position: absolute;
  left: 16px;
  bottom: 6px;
  width: 7px; height: 7px;
  background: var(--acc);
}

.lang {
  display: flex;
  align-items: center;
  margin-left: 14px;
  border: 1px solid var(--line-4);
  border-radius: 4px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  color: var(--muted-2);
  border: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  padding: 8px 11px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-btn[aria-pressed="true"] { background: var(--acc); color: var(--bg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  font-family: var(--mono);
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity .2s, transform .2s, border-color .2s, color .2s;
  text-decoration: none;
}
.btn--primary { background: var(--acc); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); opacity: .9; }
.btn--outline {
  background: none;
  color: var(--ink);
  border: 1px solid var(--line-6);
}
.btn--outline:hover { border-color: var(--acc); color: var(--acc); }

.btn--nav {
  margin-left: 14px;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .02em;
  padding: 11px 18px;
  border-radius: 3px;
}
.btn--nav:hover { transform: translateY(-1px); opacity: .9; }
.btn--lg { font-size: 14px; padding: 15px 26px; }
.btn--xl { font-size: 15px; padding: 16px 30px; }

/* mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-4);
  border-radius: 4px;
  color: var(--ink);
  width: 42px; height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: var(--ink); display: block; transition: background .2s; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
  transition: transform .25s;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   HOME
   ============================================================ */
.hero { padding: clamp(48px,7vw,96px) var(--pad) clamp(40px,5vw,64px); max-width: var(--maxw); margin: 0 auto; }
.hero__meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted-4);
}
.hero__meta .accent { color: var(--acc); }
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 9vw, 134px);
  line-height: .92;
  letter-spacing: -.035em;
  margin: clamp(28px,4vw,52px) 0 0;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__title .accent { color: var(--acc); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px,5vw,72px);
  margin-top: clamp(36px,5vw,64px);
  align-items: end;
}
.hero__lead {
  font-size: clamp(16px,1.4vw,19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 30px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__specs {
  border-top: 1px solid var(--line-4);
  font-family: var(--mono);
  font-size: 12.5px;
}
.spec {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-2);
}
.spec__k { color: var(--muted-5); letter-spacing: .08em; }
.spec__v { color: var(--ink-2); text-align: right; }

/* Marquee */
.marquee {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
  padding: 14px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marq 30s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--muted-5);
}
.marquee__group { display: flex; gap: 36px; padding-right: 36px; }
.marquee__item { display: flex; gap: 36px; align-items: center; }
.marquee__star { color: var(--acc); }

/* Services */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px,8vw,110px) var(--pad); }
.services { border-bottom: 1px solid var(--line-3); }
.services .section-title { margin: 0 0 44px; max-width: 16ch; }
.service-row {
  display: grid;
  grid-template-columns: 64px minmax(180px,1.1fr) minmax(0,1.5fr) auto;
  gap: clamp(16px,2.5vw,40px);
  align-items: center;
  padding: clamp(20px,2vw,30px) 8px;
  border-top: 1px solid var(--line-3);
  transition: background .25s, padding-left .25s;
  text-align: left;
}
button.service-row { width: 100%; background: none; border-top: 1px solid var(--line-3); color: inherit; cursor: pointer; font: inherit; }
.service-row:hover { background: rgba(255,255,255,.025); padding-left: 18px; }
.service-row__n { font-family: var(--mono); font-size: 14px; color: var(--acc); }
.service-row__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(20px,2vw,27px); letter-spacing: -.01em;
  margin: 0 0 9px; line-height: 1.1;
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted-4); }
.service-row__desc { font-size: 14.5px; line-height: 1.55; color: var(--muted-2); margin: 0; }
.service-row__arrow { font-family: var(--mono); font-size: 18px; color: var(--muted-6); justify-self: end; }

/* Section head with "see all" */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 40px;
}
.link-mono {
  background: none; border: none;
  color: var(--muted-2);
  font-family: var(--mono); font-size: 13px;
  cursor: pointer; transition: color .2s; padding: 0;
}
.link-mono:hover { color: var(--acc); }

/* Featured work */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card {
  border: 1px solid var(--line-3);
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s, transform .25s;
  text-align: left;
  color: inherit;
  font: inherit;
  padding: 0;
}
.card:hover { border-color: var(--acc); transform: translateY(-4px); }
.card__media {
  position: relative;
  aspect-ratio: 16/10;
  background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px);
  display: flex; align-items: flex-end; padding: 14px;
  border-bottom: 1px solid var(--line-3);
}
.card__idx {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--display); font-weight: 800; font-size: 40px;
  color: rgba(255,255,255,.07); line-height: 1;
}
.card__label { font-family: var(--mono); font-size: 11px; color: var(--muted-5); }
.card__body { padding: 22px 22px 24px; }
.card__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; color: var(--acc); margin-bottom: 11px; }
.card__title { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.01em; margin: 0 0 9px; }
.card__desc { font-size: 14px; line-height: 1.55; color: var(--muted-2); margin: 0; }

/* Process */
.process { border-top: 1px solid var(--line-2); padding-top: clamp(64px,8vw,100px); }
.process .section-title { margin: 0 0 48px; }
.grid-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line-3);
  border: 1px solid var(--line-3);
}
.tile { background: var(--bg); padding: 30px 26px 34px; }
.tile__n { font-family: var(--display); font-weight: 800; font-size: 46px; color: var(--acc); line-height: 1; margin-bottom: 22px; letter-spacing: -.03em; }
.tile__t { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 0 0 10px; }
.tile__d { font-size: 14px; line-height: 1.6; color: var(--muted-2); margin: 0; }

/* CTA block */
.cta-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(80px,10vw,130px); }
.cta {
  border: 1px solid var(--line-4);
  border-radius: 2px;
  padding: clamp(40px,6vw,84px) clamp(28px,5vw,72px);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.cta__glyph {
  position: absolute; top: -30px; right: -10px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(120px,18vw,260px);
  color: rgba(255,255,255,.03); line-height: 1; pointer-events: none;
}
.cta__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px,4.6vw,62px); letter-spacing: -.03em;
  margin: 0; max-width: 17ch; line-height: 1.02; position: relative;
}
.cta__lead { font-size: 18px; color: var(--muted); max-width: 48ch; margin: 22px 0 34px; line-height: 1.55; position: relative; }
.cta .btn { position: relative; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.page-head { padding: clamp(48px,6vw,90px) var(--pad) clamp(36px,4vw,56px); max-width: var(--maxw); margin: 0 auto; }
.page-head--about { padding-bottom: clamp(40px,5vw,60px); }
.page-title {
  font-family: var(--display); font-weight: 800;
  letter-spacing: -.035em; margin: 0; line-height: .95;
}
.page-title--pf { font-size: clamp(46px,8vw,118px); }
.page-title--about { font-size: clamp(38px,5.8vw,92px); line-height: .98; max-width: 18ch; text-wrap: balance; }
.page-title--contact { font-size: clamp(40px,5.4vw,78px); line-height: .96; }
.page-lead { font-size: clamp(15px,1.3vw,18px); line-height: 1.55; color: var(--muted); max-width: 54ch; margin: 26px 0 0; }

.section--tight { padding-top: 20px; padding-bottom: clamp(50px,6vw,70px); }
.section--flush-top { padding-top: 0; }

/* AMB feature card */
.amb {
  display: grid; grid-template-columns: 1.05fr .95fr;
  border: 1px solid var(--acc); border-radius: 2px; overflow: hidden;
}
.amb__body { padding: clamp(34px,4vw,56px); background: var(--surface); }
.amb__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--acc); margin-bottom: 18px; }
.amb__title { font-family: var(--display); font-weight: 800; font-size: clamp(40px,5vw,72px); letter-spacing: -.03em; margin: 0 0 6px; line-height: 1; }
.amb__sub { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--ink-3); margin: 0 0 18px; }
.amb__desc { font-size: 15px; line-height: 1.65; color: var(--muted-2); margin: 0 0 26px; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); border: 1px solid var(--line-5); border-radius: 3px; padding: 6px 11px; }
.amb__media {
  position: relative;
  background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 12px, var(--surface) 12px, var(--surface) 24px);
  border-left: 1px solid var(--acc);
  min-height: 300px;
  display: flex; align-items: flex-end; padding: 18px;
}
.amb__big { position: absolute; top: 18px; right: 20px; font-family: var(--display); font-weight: 800; font-size: 90px; color: rgba(255,255,255,.06); line-height: 1; }
.amb__shot { font-family: var(--mono); font-size: 11px; color: var(--muted-5); }

/* Web projects table */
.web-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.web-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px,3vw,40px); letter-spacing: -.02em; margin: 0; }
.web-head span { font-family: var(--mono); font-size: 13px; color: var(--muted-5); }
.web-thead {
  display: grid;
  grid-template-columns: 52px minmax(150px,1fr) 150px minmax(0,1.5fr);
  gap: clamp(12px,2vw,32px);
  padding: 0 8px 14px;
  border-bottom: 1px solid var(--line-4);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted-5);
}
.row-web {
  display: grid;
  grid-template-columns: 52px minmax(150px,1fr) 150px minmax(0,1.5fr);
  gap: clamp(12px,2vw,32px);
  align-items: center;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line-3);
  transition: background .2s, padding-left .2s;
}
.row-web:hover { background: rgba(255,255,255,.025); padding-left: 16px; }
.row-web__nr { font-family: var(--mono); font-size: 13px; color: var(--acc); }
.row-web__name { font-family: var(--display); font-weight: 600; font-size: 17px; }
.row-web__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted-3); }
.row-web__desc { font-size: 14px; line-height: 1.5; color: var(--muted-2); }

/* Portfolio info cards */
.pf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.pf-card { border: 1px solid var(--line-3); background: var(--surface); border-radius: 2px; padding: 32px 30px; }
.pf-card__kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--acc); margin-bottom: 16px; }
.pf-card__title { font-family: var(--display); font-weight: 700; font-size: 25px; margin: 0 0 12px; }
.pf-card__desc { font-size: 15px; line-height: 1.65; color: var(--muted-2); margin: 0; }

/* SchattenZirkus split */
.sz { border: 1px solid var(--line-3); background: var(--surface); border-radius: 2px; overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; }
.sz__media {
  background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 12px, var(--surface) 12px, var(--surface) 24px);
  min-height: 230px; display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--line-3);
}
.eq { display: flex; align-items: flex-end; gap: 5px; height: 58px; }
.eq span { width: 5px; background: var(--acc); opacity: .6; }
.eq span:nth-child(4) { opacity: 1; }
.sz__body { padding: clamp(32px,4vw,52px); }
.sz__kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--acc); margin-bottom: 16px; }
.sz__title { font-family: var(--display); font-weight: 700; font-size: clamp(26px,3vw,40px); letter-spacing: -.02em; margin: 0 0 12px; }
.sz__desc { font-size: 15px; line-height: 1.65; color: var(--muted-2); margin: 0; max-width: 46ch; }

/* ============================================================
   ABOUT
   ============================================================ */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line-3); border: 1px solid var(--line-3); }
.value { background: var(--bg); padding: 30px 26px 34px; }
.value__mark { width: 10px; height: 10px; background: var(--acc); display: block; margin-bottom: 22px; }
.value__t { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0 0 11px; }
.value__d { font-size: 14px; line-height: 1.6; color: var(--muted-2); margin: 0; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(20px,4vw,48px);
  border-top: 1px solid var(--line-4); border-bottom: 1px solid var(--line-4);
  padding: 48px 0;
}
.stat__n { font-family: var(--display); font-weight: 800; font-size: clamp(44px,5.5vw,76px); letter-spacing: -.04em; color: var(--ink); line-height: .9; }
.stat__l { font-family: var(--mono); font-size: 12.5px; color: var(--muted-3); margin-top: 12px; letter-spacing: .03em; }

.caps { border-top: 1px solid var(--line-3); }
.cap-row { display: flex; align-items: center; gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--line-3); }
.cap-row__n { font-family: var(--mono); font-size: 13px; color: var(--acc); min-width: 28px; }
.cap-row__t { font-family: var(--display); font-weight: 500; font-size: clamp(18px,2vw,24px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px,5vw,72px); }
.contact-lead { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 24px 0 40px; max-width: 38ch; }
.contact-info { border-top: 1px solid var(--line-4); }
.contact-info__row { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.contact-info__k { font-family: var(--mono); font-size: 11px; color: var(--muted-5); letter-spacing: .1em; margin-bottom: 8px; }
.contact-info__v { font-family: var(--display); font-size: 19px; color: var(--ink); }
.contact-info__v a { text-decoration: none; }
.contact-info__v a:hover { color: var(--acc); }

.form-panel { border: 1px solid var(--line-3); background: var(--surface); border-radius: 2px; padding: clamp(28px,3vw,44px); }
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted-3); letter-spacing: .08em; margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-4);
  border-radius: 4px;
  color: var(--ink);
  padding: 13px 14px;
  font-family: var(--body);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted-3) 50%), linear-gradient(135deg, var(--muted-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acc); }
.field option { background: var(--bg); color: var(--ink); }
.form .btn { margin-top: 4px; }
.form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
/* Honeypot — kept in the accessibility tree's "off-screen" zone, not display:none
   (some bots skip hidden fields), and ignored by AT via aria-hidden on the wrapper. */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  margin: -2px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #ff9b9b;
  background: rgba(255,90,90,.08);
  border: 1px solid rgba(255,90,90,.32);
  border-radius: 6px;
  padding: 11px 13px;
}
.form-error a { color: #ffb4b4; }

.form-sent { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 360px; }
.form-sent:focus { outline: none; }
.form-sent__icon { width: 48px; height: 48px; border: 1px solid var(--acc); display: flex; align-items: center; justify-content: center; color: var(--acc); font-size: 22px; margin-bottom: 24px; }
.form-sent__title { font-family: var(--display); font-weight: 700; font-size: 27px; margin: 0 0 10px; }
.form-sent__desc { font-size: 15px; line-height: 1.6; color: var(--muted-2); margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line-3); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px,6vw,72px) var(--pad) 32px; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer__tagline { font-size: 14.5px; line-height: 1.6; color: var(--muted-3); max-width: 32ch; margin: 0 0 16px; }
.footer__email { font-family: var(--mono); font-size: 13px; color: var(--acc); text-decoration: none; }
.footer__email:hover { text-decoration: underline; }
.footer__h { font-family: var(--mono); font-size: 11px; color: var(--muted-5); letter-spacing: .1em; margin-bottom: 18px; }
.footer__list { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14.5px; }
.footer__link { background: none; border: none; color: var(--muted); font-family: var(--body); font-size: 14.5px; cursor: pointer; padding: 0; transition: color .2s; text-align: left; }
.footer__link:hover { color: var(--acc); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 12px; color: var(--muted-5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__specs { margin-top: 4px; }
  .amb { grid-template-columns: 1fr; }
  .amb__media { border-left: none; border-top: 1px solid var(--acc); min-height: 200px; }
  .sz { grid-template-columns: 1fr; }
  .sz__media { border-right: none; border-bottom: 1px solid var(--line-3); min-height: 160px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  /* Mobile nav */
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10,10,12,.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-2);
    padding: 8px var(--pad) 20px;
    display: none;
  }
  .header.nav-open .nav { display: flex; }
  .header.nav-open .nav-toggle__bars { background: transparent; }
  .header.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .header.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-link { padding: 14px 4px; font-size: 14px; border-bottom: 1px solid var(--line-2); }
  .nav-link__tick { left: 4px; bottom: 12px; }
  .lang { margin: 16px 0 0; align-self: flex-start; }
  .btn--nav { margin: 16px 0 0; justify-content: center; }

  .hero__title { font-size: clamp(40px,12vw,72px); }

  /* services stack */
  .service-row, button.service-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 6px; }
  .service-row:hover { padding-left: 6px; }
  .service-row__arrow { display: none; }
  .service-row__n { font-size: 13px; }

  /* web table → cards */
  .web-thead { display: none; }
  .row-web {
    grid-template-columns: auto 1fr;
    grid-template-areas: "nr name" "tag tag" "desc desc";
    gap: 6px 12px;
    padding: 18px 6px;
  }
  .row-web:hover { padding-left: 6px; }
  .row-web__nr { grid-area: nr; }
  .row-web__name { grid-area: name; }
  .row-web__tag { grid-area: tag; }
  .row-web__desc { grid-area: desc; }

  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .form__row { grid-template-columns: 1fr; }
  .statusbar__inner { font-size: 10px; letter-spacing: .06em; }
}

@media (max-width: 420px) {
  .statusbar__status span:first-child { display: none; } /* hide loc on very small */
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .bg__grid { animation: none; }
  .marquee__track { animation: none; }
  .dot { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
