/* ============================================================
   Savery Entertainment - site styles
   Dark, technical, engineering-grade. Brand orange #f09000.
   Static, no framework. Performance-first.
   ============================================================ */

:root {
  --bg:        #0b0d10;
  --bg-2:      #101318;
  --bg-3:      #151a21;
  --panel:     #12161c;
  --panel-2:   #171c24;
  --line:      #262d38;
  --line-2:    #333c49;
  --text:      #e9edf3;
  --text-dim:  #9aa4b2;
  --text-mute: #6b7482;
  --brand:     #f09000;
  --brand-2:   #f0a800;
  --brand-3:   #ffb347;
  --brand-ink: #1a1204;
  --green:     #4ade80;
  --maxw:      1180px;
  --radius:    14px;
  --radius-sm: 9px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-3); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand); }

/* ---------- global texture + scroll progress ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: .045; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60;
  transform: scaleX(0); transform-origin: 0 0;
  background: linear-gradient(90deg, var(--brand-2), var(--brand-3));
  box-shadow: 0 0 12px rgba(240,144,0,.6);
}
.hl {
  background: linear-gradient(180deg, transparent 62%, rgba(240,144,0,.34) 0);
  padding: 0 .08em; border-radius: 2px; color: var(--text);
}

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 64px 0; }
[hidden] { display: none !important; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 700; letter-spacing: -.02em; font-family: var(--display); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.28rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-dim); }
.muted { color: var(--text-dim); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .lead { margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: var(--brand-ink);
  box-shadow: 0 0 0 1px rgba(240,144,0,.4), 0 10px 30px -12px rgba(240,144,0,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(240,144,0,.6), 0 16px 40px -14px rgba(240,144,0,.75); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-3); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .74rem; }

/* ---------- top bar / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,16,.82);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand__name { font-family: var(--mono); font-weight: 700; letter-spacing: .12em; font-size: .92rem; }
.brand__name span { color: var(--brand); }
.nav__menu { display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); padding: 6px 2px; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--brand); transition: right .2s ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after, .nav__links a:hover::after { right: 0; }
.nav__cta { margin-left: 6px; color: var(--brand-ink); }
.nav__cta::after { display: none; }
.nav__cta:hover, .nav__cta:focus {
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(240,144,0,.6), 0 16px 40px -14px rgba(240,144,0,.75);
}
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line-2); color: var(--text);
  width: 44px; height: 40px; border-radius: 8px; font-size: 1.3rem; cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 118px 0 90px; overflow: hidden;
  background:
    radial-gradient(1100px 560px at 78% -8%, rgba(240,144,0,.16), transparent 60%),
    radial-gradient(760px 520px at 8% 120%, rgba(240,144,0,.06), transparent 60%),
    var(--bg);
}
.hero::before {
  /* engineering grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 60% 0%, #000 40%, transparent 78%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(2.6rem, 6.2vw, 4.7rem);
  line-height: 1.02; letter-spacing: -.03em; margin-bottom: 22px;
}
.hero__title .accent {
  background: linear-gradient(180deg, #fff, #cfd6e0 55%, #8f99a6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title .glow { color: var(--brand); text-shadow: 0 0 34px rgba(240,144,0,.5); }
.hero__lead { max-width: 640px; font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--text-dim); margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- stats band ---------- */
.stats {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.stat { background: var(--bg-2); padding: 34px 26px; text-align: center; }
.stat__num { font-family: var(--mono); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: var(--brand); line-height: 1; }
.stat__label { font-size: .82rem; color: var(--text-dim); margin-top: 12px; letter-spacing: .04em; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 50px -30px rgba(0,0,0,.8); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(240,144,0,.12); border: 1px solid rgba(240,144,0,.3);
  font-family: var(--mono); font-size: 1.4rem; color: var(--brand); margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: .95rem; margin: 0; }
.card__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 9px;
}

/* ---------- portfolio ---------- */
.work { grid-column: span 1; }
.work__card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.work__card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 30px 60px -34px rgba(0,0,0,.85); }
.work__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-3); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work__card:hover .work__media img { transform: scale(1.05); }
.work__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,13,16,.85)); }
.work__body { padding: 22px 24px 26px; position: relative; }
.work__studio { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.work__body h3 { font-size: 1.32rem; margin-bottom: 8px; }
.work__body p { color: var(--text-dim); font-size: .92rem; margin: 0 0 14px; }
.work__tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- engine / platform strips ---------- */
.engine {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 44px;
}
.engine--flip .engine__art { order: -1; }
.engine__art {
  border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-2);
  aspect-ratio: 16/9; display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(240,144,0,.14), transparent 55%),
    var(--bg-3);
}
.engine__art span { font-family: var(--mono); font-size: clamp(1.05rem, 2.1vw, 1.55rem); font-weight: 800; letter-spacing: .04em; color: var(--brand); padding: 0 10px; white-space: nowrap; }
.engine h3 { font-size: 1.7rem; margin-bottom: 12px; }
.engine .eyebrow { margin-bottom: 14px; }
.engine p { color: var(--text-dim); margin-bottom: 20px; }

.platforms { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.platform {
  display: flex; align-items: center; gap: 12px; padding: 16px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.platform img { height: 34px; width: auto; opacity: .9; }
.platform span { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; color: var(--text-dim); }

/* ---------- process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 2.2rem; font-weight: 800;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-2);
  display: block; margin-bottom: 16px;
}
.step:hover::before { -webkit-text-stroke-color: var(--brand); }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: .92rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; text-align: center; padding: 96px 0;
  background:
    radial-gradient(900px 420px at 50% 120%, rgba(240,144,0,.18), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cta h2 { margin-bottom: 16px; }
.cta .lead { max-width: 620px; margin: 0 auto 30px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- contact form ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: .98rem; color: var(--text);
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 13px 15px; width: 100%; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(240,144,0,.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.form__note { font-size: .82rem; color: var(--text-mute); }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: rgba(240,144,0,.1); border: 1px solid rgba(240,144,0,.3); color: var(--brand); font-family: var(--mono); }
.info-list b { display: block; font-size: .95rem; }
.info-list span { color: var(--text-dim); font-size: .9rem; }

/* ---------- careers / job card ---------- */
.job {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden;
}
.job__head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  width: 100%; padding: 26px 34px; background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.job__head:hover .job__title { color: var(--brand); }
.job__title { font-size: 1.7rem; margin: 0; flex: 1; transition: color .18s ease; }
.job__chev { flex: none; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--text-dim); transition: transform .25s ease, color .18s ease, border-color .18s ease; }
.job__chev::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-1px,-1px); }
.job.is-open .job__chev { transform: rotate(180deg); color: var(--brand); border-color: rgba(240,144,0,.5); }
.job__body {
  padding: 4px 34px 36px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .45s ease, opacity .3s ease, padding .3s ease;
}
.job.is-open .job__body {
  max-height: 3000px; opacity: 1; padding: 4px 34px 36px;
  border-top: 1px solid var(--line); margin-top: -1px;
}
.job__body > h3:first-child { margin-top: 26px; }
.pill {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(74,222,128,.4);
  color: var(--green); background: rgba(74,222,128,.08);
}
.job__meta { display: flex; flex-wrap: wrap; gap: 22px; margin: 22px 0; }
.job__meta div { font-size: .9rem; color: var(--text-dim); }
.job__meta b { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-3); margin-bottom: 4px; }
.dl-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
.dl-list li { padding-left: 26px; position: relative; color: var(--text-dim); }
.dl-list li::before { content: "▸"; position: absolute; left: 0; color: var(--brand); }
.dl-list li strong { color: var(--text); }

/* ---------- page hero (subpages) ---------- */
.page-hero {
  padding: 90px 0 56px;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(240,144,0,.14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 16px; }
.page-hero .lead { max-width: 660px; }
.crumbs { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--text-mute); margin-bottom: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--text-mute); }
.crumbs a:hover { color: var(--brand-3); }
.crumbs .sep { opacity: .5; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer__brand p { color: var(--text-dim); font-size: .92rem; max-width: 320px; margin-top: 16px; }
.footer h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--text-dim); font-size: .92rem; }
.footer ul a:hover { color: var(--text); }
.footer__legal { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__legal p { margin: 0; font-size: .8rem; color: var(--text-mute); }
.footer__legal a { color: var(--text-mute); }
.footer__legal a:hover { color: var(--brand-3); }
address { font-style: normal; color: var(--text-dim); font-size: .9rem; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.text-brand { color: var(--brand); }

/* ---------- motion: scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
/* stagger children that reveal together */
.stagger > .reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- motion: featured work (break the grid) ---------- */
.work-grid { align-items: stretch; }
.work__card--feature { grid-column: span 2; }
.work__card--feature .work__media { aspect-ratio: auto; min-height: 320px; }
.work__card--feature .work__body { display: flex; flex-direction: column; }
.work__card--feature h3 { font-size: 1.7rem; }

/* ---------- motion: platform marquee ---------- */
.marquee { overflow: hidden; padding: 8px 0; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__group { display: flex; gap: 16px; padding-right: 16px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- training course cards ---------- */
.course {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.course:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 26px 56px -34px rgba(0,0,0,.85); }
.course__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-3); display: block; }
.course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course a.course__media:hover img { transform: scale(1.04); }
.course__media--soon img { filter: grayscale(.7) brightness(.72); }
.course__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.course h3 { font-size: 1.18rem; margin: 0 0 8px; }
.course p { color: var(--text-dim); font-size: .92rem; margin: 0 0 18px; flex: 1; }
.course__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(122,140,160,.5);
  background: rgba(15,18,24,.8); color: var(--text-dim); backdrop-filter: blur(6px);
}
.course__badge--live { border-color: rgba(74,222,128,.5); color: var(--green); background: rgba(20,30,24,.8); }
.course__soon-note { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--text-mute); }
.course .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- footer social ---------- */
.footer__social { display: flex; gap: 12px; margin-top: 22px; }
.footer__social a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text-dim); font-family: var(--mono); font-size: .76rem; letter-spacing: .04em;
  transition: color .18s ease, border-color .18s ease, transform .15s ease, background .18s ease;
}
.footer__social a:hover { color: #0b0d10; border-color: var(--brand); background: var(--brand); transform: translateY(-2px); }
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- form result states ---------- */
.form__status { font-size: .95rem; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid; display: none; }
.form__status.is-ok { display: block; border-color: rgba(74,222,128,.5); background: rgba(74,222,128,.08); color: var(--green); }
.form__status.is-err { display: block; border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.08); color: #fca5a5; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
.form__honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .engine { grid-template-columns: 1fr; padding: 32px; }
  .engine--flip .engine__art { order: 0; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 60px; }
  .nav__menu {
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 14px 24px 20px;
    flex-direction: column; align-items: stretch; gap: 0;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s ease;
  }
  .nav__menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav__links a { padding: 10px 0; width: 100%; }
  .nav__cta { margin: 14px 0 0; width: 100%; justify-content: center; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .job { padding: 28px; }
  .work__card--feature { grid-column: span 1; }
  .work__card--feature .work__media { min-height: 220px; }
  .platform img { height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
}
/* If JS never runs (or is disabled), never leave content hidden */
.no-js .reveal { opacity: 1 !important; transform: none !important; }
