/* ===================== TOKENS ===================== */
:root {
  --bg: #f4f4f0;
  --bg-2: #e8e8e2;
  --ink: #121212;
  --ink-2: #5a5a55;
  --line: #d2d2cb;
  --y: #fff000;
  --dark: #121212;
  --dark-2: #1c1c1c;
  --f-cn: 'Noto Sans SC', system-ui, sans-serif;
  --f-en: 'Barlow Condensed', 'Noto Sans SC', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --pad: clamp(16px, 5vw, 80px);
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { background: var(--bg); color: var(--ink); font-family: var(--f-cn); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; }
::selection { background: var(--y); color: var(--ink); }
.ok { color: #2fa84f; }

/* ===================== UTILITY BAR ===================== */
.utility { height: 30px; background: var(--dark); color: #aaa; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); font-size: 10px; }
.utility__right { display: flex; align-items: center; gap: 18px; }
.utility button, .utility a { color: #ddd; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; }
.utility .terminal { background: var(--y); color: var(--ink); padding: 3px 10px; font-weight: 600; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px; padding: 0 var(--pad);
  background: rgba(244,244,240,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b { font-size: 17px; font-weight: 900; letter-spacing: .12em; }
.brand__text small { font-family: var(--f-en); font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--ink-2); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 14px; font-weight: 500; position: relative; padding: 6px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { background: var(--ink); color: var(--y); padding: 10px 18px; font-size: 13px; font-weight: 700; }
.burger { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 6px; margin-left: auto; }
.burger i { height: 2px; background: var(--ink); transition: .3s; }
.burger.open i:first-child { transform: translateY(4px) rotate(45deg); }
.burger.open i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ===================== BUTTONS ===================== */
.btn { display: inline-flex; align-items: center; gap: 14px; height: 50px; padding: 0 22px; font-weight: 700; position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 14px) 100%, 0 100%); }
.btn span, .btn i { position: relative; z-index: 1; font-style: normal; }
.btn::before { content: ''; position: absolute; inset: 0; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--y { background: var(--y); color: var(--ink); }
.btn--y::before { background: var(--ink); }
.btn--y:hover { color: var(--y); }
.btn--line { border: 1px solid #fff; color: #fff; }
.btn--line::before { background: #fff; }
.btn--line:hover { color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--y); }
.btn--ink::before { background: var(--y); }
.btn--ink:hover { color: var(--ink); }

/* ===================== HERO ===================== */
.hero { position: relative; height: calc(100vh - 30px - var(--nav-h)); min-height: 560px; background: var(--dark) center / cover no-repeat; color: #fff; overflow: hidden; display: flex; align-items: flex-end; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.hero.playing .hero__video { opacity: 1; }
.hero__play { display: flex; align-items: center; gap: 10px; color: #fff; font: inherit; letter-spacing: inherit; }
.hero__play i { width: 30px; height: 30px; display: grid; place-items: center; background: var(--y); color: var(--ink); font-style: normal; font-size: 10px; }
.hero__play:hover span { color: var(--y); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.85) 0, rgba(10,10,10,.45) 45%, rgba(10,10,10,.1) 100%), linear-gradient(0deg, rgba(10,10,10,.6), transparent 40%); }
.hero__inner { position: relative; padding: 0 var(--pad) 90px; max-width: 900px; }
.eyebrow { color: var(--y); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 92px); font-weight: 900; line-height: 1.08; letter-spacing: .01em; }
.hero__lead { margin: 24px 0 34px; max-width: 600px; font-size: 16px; line-height: 1.9; color: #ddd; border-left: 3px solid var(--y); padding-left: 16px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { position: absolute; right: var(--pad); bottom: 30px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: #bbb; }

/* ===================== FACTS ===================== */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: #fff; }
.fact { padding: 28px var(--pad) 28px 28px; border-right: 1px solid #2a2a2a; position: relative; }
.fact:first-child { padding-left: var(--pad); }
.fact:last-child { border-right: 0; }
.fact small { color: var(--y); }
.fact b { display: block; font-size: 24px; font-weight: 900; margin: 6px 0 2px; }
.fact span { font-size: 12px; color: #999; }

/* ===================== BLOCKS ===================== */
.block { padding: 110px var(--pad); position: relative; }
.block--dark { background: var(--dark); color: #eee; }
.block--gray { background: var(--bg-2); }
.block--yellow { background: var(--y); }
.block__head { display: grid; grid-template-columns: 220px 1fr; gap: 8px 40px; margin-bottom: 56px; align-items: end; }
.block__no { color: var(--ink-2); padding-bottom: 8px; border-bottom: 3px solid var(--ink); align-self: end; }
.block--dark .block__no { color: #888; border-color: var(--y); }
.block__head h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 900; line-height: 1; }
.block__desc { grid-column: 2; color: var(--ink-2); max-width: 640px; line-height: 1.8; }
.block--dark .block__desc { color: #999; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== ABOUT ===================== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.about__intro p { line-height: 2; color: #333; margin-bottom: 16px; }
.about__intro .big { font-size: 26px; font-weight: 900; line-height: 1.5; color: var(--ink); }
.about__quote { margin-top: 32px; background: var(--ink); color: #fff; padding: 26px 28px; position: relative; }
.about__quote::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--y); }
.about__quote blockquote { font-size: 18px; font-weight: 700; line-height: 1.7; }
.about__quote figcaption { color: #999; margin-top: 10px; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li::before { content: ''; position: absolute; left: -32px; top: 4px; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--ink); transform: rotate(45deg); }
.timeline li:nth-child(2)::before { background: #c33; border-color: #c33; }
.timeline li:last-child::before { background: var(--y); }
.timeline .mono { color: var(--ink-2); }
.timeline h3 { font-size: 19px; font-weight: 900; margin: 4px 0 6px; }
.timeline p { line-height: 1.85; color: #444; font-size: 14px; }

/* ===================== SOLUTIONS ===================== */
.solutions { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.solutions__viz { position: sticky; top: calc(var(--nav-h) + 20px); background: #0b0b0b; border: 1px solid #2a2a2a; padding: 18px; }
.solutions__viz svg { width: 100%; display: block; }
#factory .grid-lines line { stroke: #1e1e1e; }
#factory .m { fill: #1a1a1a; stroke: #555; stroke-width: 1.5; }
#factory .m--y { stroke: var(--y); stroke-width: 2; }
#factory .ml { fill: #999; font-family: var(--f-mono); font-size: 11px; text-anchor: middle; }
#factory .item { fill: var(--y); }
#factory .item.raw { fill: #7fd0ff; }
.readout { display: flex; gap: 24px; color: #777; margin-top: 12px; flex-wrap: wrap; }
.readout b { color: #fff; }
.solutions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #2a2a2a; border: 1px solid #2a2a2a; }
.sol { background: var(--dark); padding: 26px 22px 54px; position: relative; transition: background .3s; min-height: 220px; display: block; width: 100%; text-align: left; }
.sol:hover, .sol:focus-visible { background: #1b1b1b; }
.sol:focus-visible { outline: 2px solid var(--y); outline-offset: -2px; }
.sol__view { position: absolute; left: 22px; bottom: 20px; font-style: normal; color: #777; transition: color .3s; }
.sol:hover .sol__view, .sol:focus-visible .sol__view { color: var(--y); }
.sol::after { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--y); transition: width .4s var(--ease); }
.sol:hover::after { width: 100%; }
.sol .mono { color: var(--y); }
.sol h3 { font-size: 20px; font-weight: 900; margin: 10px 0 2px; }
.sol small { font-family: var(--f-en); font-size: 13px; letter-spacing: .12em; color: #777; }
.sol p { margin-top: 12px; font-size: 13px; line-height: 1.85; color: #aaa; }

/* ===================== ORGANIZATION ===================== */
.org__top { display: flex; justify-content: center; position: relative; padding-bottom: 40px; }
.org__top::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 40px; background: var(--ink); }
.org__node { border: 1px solid var(--ink); background: #fff; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.org__node--lead { background: var(--ink); color: #fff; min-width: 260px; text-align: center; }
.org__node--lead small { color: var(--y); }
.org__node--lead b { font-size: 22px; }
.org__node--lead span { color: #aaa; font-size: 13px; }
.org__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--ink); padding-top: 32px; position: relative; }
.dept { position: relative; }
.dept::before { content: ''; position: absolute; left: 22px; top: -33px; width: 1px; height: 33px; background: var(--ink); }
.dept small { font-family: var(--f-en); letter-spacing: .14em; color: var(--ink-2); font-size: 12px; }
.dept b { font-size: 18px; font-weight: 900; }
.dept p { font-size: 13px; line-height: 1.8; color: #444; margin-top: 4px; }
.dept__count { margin-top: 8px; color: var(--ink-2); }

/* ===================== PEOPLE ===================== */
.people__filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.people__filter button { padding: 8px 16px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; transition: .2s; }
.people__filter button.active { background: var(--ink); color: var(--y); border-color: var(--ink); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.person { background: var(--bg); text-align: left; position: relative; overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.person:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.person__img { aspect-ratio: 1; background: #d6d6cf; overflow: hidden; position: relative; }
.person__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.85) contrast(1.05); transition: filter .4s, transform .5s var(--ease); }
.person:hover .person__img img { filter: none; transform: scale(1.05); }
.person__img::after { content: ''; position: absolute; right: 0; bottom: 0; border-bottom: 18px solid var(--ec, var(--y)); border-left: 18px solid transparent; }
.person__body { padding: 12px 14px 14px; }
.person__body b { font-size: 16px; font-weight: 900; display: block; }
.person__body span { font-size: 12px; color: var(--ink-2); display: block; margin-top: 2px; line-height: 1.5; }
.person__body .mono { color: #999; font-size: 10px; margin-top: 8px; display: block; }
.person.hide { display: none; }

/* ===================== PARTNERS ===================== */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.partner { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background .3s; }
.partner:hover { background: #fff; }
.partner .mono { color: var(--ink-2); }
.partner b { display: block; font-size: 22px; font-weight: 900; margin: 6px 0 8px; }
.partner p { font-size: 13px; line-height: 1.8; color: #444; }

/* ===================== NEWS ===================== */
.news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; }
.news__list li { border-bottom: 1px solid #2a2a2a; }
.news__list a { padding: 22px 0; display: grid; grid-template-columns: 110px 1fr 20px; gap: 16px; align-items: start; transition: padding .3s var(--ease); }
.news__list li:first-child { border-top: 1px solid #2a2a2a; }
.news__list a:hover { padding-left: 12px; }
.news__list a:hover h3 { color: var(--y); }
.news__list .tag { display: inline-block; background: var(--y); color: var(--ink); padding: 2px 8px; font-weight: 600; }
.news__list .no { display: block; color: #777; margin-top: 6px; }
.news__list h3 { font-size: 17px; font-weight: 700; line-height: 1.5; transition: color .25s; }
.news__list p { font-size: 13px; color: #888; margin-top: 6px; line-height: 1.7; }
.news__label { color: #888; margin-bottom: 14px; }
.films { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.film { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #222 center / cover; cursor: pointer; text-align: left; }
.film:first-child { grid-column: 1 / 3; }
.film::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent 60%); transition: background .3s; }
.film:hover::before { background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,.1)); }
.film span { position: absolute; left: 12px; right: 12px; bottom: 10px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; }
.film i { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; background: var(--y); color: var(--ink); display: grid; place-items: center; font-style: normal; font-size: 12px; }

/* ===================== CAREERS ===================== */
.careers { border-top: 1px solid var(--ink); }
.job { border-bottom: 1px solid var(--line); }
.job__head { width: 100%; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 30px; gap: 20px; align-items: center; padding: 24px 0; text-align: left; transition: padding .3s var(--ease); }
.job__head:hover { padding-left: 12px; }
.job__head b { font-size: 18px; font-weight: 900; }
.job__head span { font-size: 14px; color: var(--ink-2); }
.job__head i { font-style: normal; font-size: 20px; transition: transform .3s; }
.job.open .job__head i { transform: rotate(45deg); }
.job__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.job.open .job__body { grid-template-rows: 1fr; }
.job__inner { overflow: hidden; }
.job__cols { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; padding: 4px 0 30px; align-items: end; }
.job__cols h4 { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.job__cols li { font-size: 14px; line-height: 1.9; padding-left: 16px; position: relative; }
.job__cols li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--y); outline: 1px solid var(--ink); }

/* ===================== CONTACT ===================== */
.offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.office { border-top: 3px solid var(--ink); padding-top: 16px; }
.office .mono { color: #555; }
.office b { display: block; font-size: 20px; font-weight: 900; margin: 6px 0; }
.office p { font-size: 14px; }
.block--yellow .block__no { color: var(--ink); }
.community { margin-top: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; background: var(--ink); color: #eee; padding: 28px 32px; position: relative; }
.community::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(45deg, var(--y) 0 8px, var(--ink) 8px 16px); }
.community__mark { width: 88px; height: 88px; transition: transform .5s var(--ease); }
.community:hover .community__mark { transform: rotate(60deg); }
.community__body .mono { color: var(--y); }
.community__body h3 { font-family: var(--f-en); font-size: 32px; font-weight: 800; letter-spacing: .02em; color: #fff; margin: 4px 0 6px; line-height: 1.1; }
.community__body p:last-child { color: #aaa; font-size: 14px; line-height: 1.8; }
.community:hover .community__btn::before { transform: scaleX(1); transform-origin: left; }
.community:hover .community__btn { color: var(--y); }
.utility .discord-link { color: var(--y); }


/* ===================== FOOTER ===================== */
.footer { background: var(--dark); color: #bbb; padding: 70px var(--pad) 30px; }
.brand--light .brand__mark img { filter: invert(1); }
.brand--light .brand__text b { color: #fff; }
.brand--light .brand__text small { color: #888; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid #2a2a2a; }
.footer__motto { max-width: 420px; color: #888; line-height: 1.8; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 40px 0; }
.footer__cols h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer__cols a { display: block; font-size: 13px; color: #999; margin-bottom: 10px; transition: color .2s; }
.footer__cols a:hover { color: var(--y); }
.footer__game { display: block; flex: none; }
.footer__emblem { display: block; width: 46px; aspect-ratio: 215 / 234; background: #777; transition: background .25s;
  -webkit-mask: url("../assets/endfield-emblem.svg") center / contain no-repeat;
  mask: url("../assets/endfield-emblem.svg") center / contain no-repeat; }
.footer__game:hover .footer__emblem { background: var(--y); }
.footer__legal { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #2a2a2a; padding-top: 20px; color: #666; font-size: 10px; line-height: 1.7; }

/* ===================== DRAWER ===================== */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(560px, 100%); background: var(--bg); overflow-y: auto; transform: translateX(100%); transition: transform .5s var(--ease); }
.drawer.open .drawer__panel { transform: none; }
.drawer__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; background: var(--ink); color: var(--y); z-index: 2; font-size: 16px; }
.dossier__art { position: relative; height: 420px; background: var(--bg-2); overflow: hidden; }
.dossier__art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--ec) 30%, transparent), transparent 65%), repeating-linear-gradient(135deg, transparent 0 12px, rgba(0,0,0,.035) 12px 13px); }
.dossier__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.dossier__art img.is-avatar { width: 45%; height: auto; left: 27.5%; top: 25%; }
.dossier__stamp { position: absolute; left: 18px; top: 18px; border: 2px solid #c33; color: #c33; padding: 4px 10px; transform: rotate(-6deg); font-weight: 600; background: rgba(244,244,240,.8); }
.dossier__body { padding: 26px 30px 40px; }
.dossier__body .mono { color: var(--ink-2); }
.dossier__body h3 { font-size: 40px; font-weight: 900; margin: 4px 0; }
.dossier__title { font-weight: 700; }
.dossier__meta { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0; border-top: 1px solid var(--line); }
.dossier__meta div { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; font-size: 14px; }
.dossier__meta dt { color: var(--ink-2); min-width: 40px; }
.dossier__meta dd { font-weight: 700; }
.dossier__section { margin-top: 22px; }
.dossier__section h4 { font-size: 12px; font-family: var(--f-mono); letter-spacing: .1em; color: var(--ink-2); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.dossier__section p { line-height: 1.95; font-size: 14px; color: #333; }
.dossier__sign { text-align: right; margin-top: 8px; color: var(--ink-2); font-size: 13px; }
.dossier__links { margin-top: 26px; }

/* ===================== MODAL ===================== */
.modal { position: fixed; inset: 0; z-index: 95; background: rgba(10,10,10,.75); backdrop-filter: blur(4px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; padding: 16px; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal__box { background: var(--bg); width: min(720px, 100%); max-height: 90vh; overflow-y: auto; padding: 40px; position: relative; border-top: 6px solid var(--y); transform: translateY(20px); transition: transform .4s var(--ease); }
.modal--video .modal__box { width: min(1100px, 100%); padding: 0; background: #000; border-top: 0; }
.modal.open .modal__box { transform: none; }
.modal--model .modal__box { width: min(1000px, 100%); padding: 0; background: #0b0b0b; color: #eee; }
.viewer { position: relative; height: min(62vh, 560px); background: #0b0b0b; }
.viewer canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.viewer canvas.grabbing { cursor: grabbing; }
.viewer__status { position: absolute; inset: 0; display: grid; place-items: center; color: #888; text-align: center; padding: 20px; }
.viewer__cap { padding: 22px 28px 26px; border-top: 3px solid var(--y); }
.modal .viewer__cap .mono { color: #888; }
.modal .viewer__cap h3 { color: #fff; margin: 6px 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.viewer__cap h3 small { font-family: var(--f-en); font-size: 15px; font-weight: 600; letter-spacing: .12em; color: #777; }
.modal .viewer__cap p { color: #bbb; line-height: 1.9; margin-bottom: 10px; }
.modal .viewer__cap .viewer__hint { color: var(--y); margin: 0; }
.modal__close { position: absolute; right: 12px; top: 12px; font-size: 16px; width: 38px; height: 38px; background: var(--ink); color: var(--y); z-index: 2; }
.modal .mono { color: var(--ink-2); }
.modal h3 { font-size: 26px; font-weight: 900; margin: 8px 0 16px; line-height: 1.4; }
.modal p { line-height: 2; color: #333; margin-bottom: 14px; }
.modal video { width: 100%; display: block; }
.modal__cap { padding: 14px 20px; color: #fff; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.modal__cap a { color: var(--y); }
.term { font-family: var(--f-mono); background: #0c0c0c; color: #7f7; padding: 18px; font-size: 12px; line-height: 1.9; margin: 10px 0 20px; }
.term .err { color: #f66; }

/* ===================== SUBPAGES ===================== */
[hidden] { display: none !important; }
.more { display: inline-block; margin-top: 28px; padding-bottom: 4px; border-bottom: 2px solid var(--y); font-size: 12px; color: inherit; }
.more:hover { color: var(--y); border-color: currentColor; }
.block--dark .more { color: #ddd; }

.page-hero { position: relative; background: var(--dark); color: #fff; padding: 90px var(--pad) 70px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#1f1f1f 1px, transparent 1px), linear-gradient(90deg, #1f1f1f 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: repeating-linear-gradient(45deg, var(--y) 0 10px, var(--dark) 10px 20px); }
.page-hero__inner { position: relative; max-width: 900px; }
.crumbs { color: #888; margin-bottom: 26px; }
.crumbs a:hover { color: var(--y); }
.page-hero h1 { font-size: clamp(36px, 5vw, 68px); font-weight: 900; line-height: 1.15; }
.page-hero__lead { margin-top: 18px; max-width: 680px; color: #bbb; line-height: 1.9; border-left: 3px solid var(--y); padding-left: 16px; }
.page-hero--article h1 { font-size: clamp(28px, 3.6vw, 46px); }

.subnav { position: sticky; top: var(--nav-h); z-index: 20; display: flex; gap: 4px; overflow-x: auto; padding: 10px var(--pad); background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.subnav a { padding: 6px 12px; white-space: nowrap; border: 1px solid var(--line); color: var(--ink-2); }
.subnav a:hover { border-color: var(--ink); color: var(--ink); }

.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; padding: 100px var(--pad); scroll-margin-top: calc(var(--nav-h) + 50px); }
.product--dark { background: var(--dark); color: #eee; }
.product--dark .product__visual { order: -1; background: #0b0b0b; border-color: #2a2a2a; }
.product__code { color: var(--ink-2); }
.product--dark .product__code { color: var(--y); }
.product h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 900; margin: 8px 0 2px; }
.product__en { font-family: var(--f-en); font-size: 18px; letter-spacing: .14em; color: var(--ink-2); margin-bottom: 22px; }
.product--dark .product__en { color: #888; }
.product__lead { font-size: 19px; font-weight: 700; line-height: 1.7; margin-bottom: 14px; }
.product__text > p:not(.mono):not(.product__lead):not(.product__en) { line-height: 1.95; color: #444; }
.product--dark .product__text > p:not(.mono):not(.product__lead):not(.product__en) { color: #aaa; }
.product__points { margin: 22px 0 30px; display: grid; gap: 8px; }
.product__points li { padding: 10px 14px 10px 34px; border: 1px solid var(--line); position: relative; font-size: 14px; }
.product--dark .product__points li { border-color: #2a2a2a; }
.product__points li::before { content: ''; position: absolute; left: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--y); outline: 1px solid var(--ink); }
.product__visual { aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--bg-2); position: relative; overflow: hidden; display: grid; place-items: center; cursor: pointer; }
.product__visual::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px); background-size: 32px 32px; }
.product--dark .product__visual::before { background-image: linear-gradient(#1c1c1c 1px, transparent 1px), linear-gradient(90deg, #1c1c1c 1px, transparent 1px); }
.product__glyph { position: relative; font-family: var(--f-en); font-weight: 800; font-size: clamp(90px, 12vw, 180px); color: transparent; -webkit-text-stroke: 2px var(--ink); transition: color .4s; }
.product--dark .product__glyph { -webkit-text-stroke-color: var(--y); }
.product__visual:hover .product__glyph { color: var(--y); }
.product--dark .product__visual:hover .product__glyph { color: rgba(255,240,0,.18); }
.product__visual .mono { position: absolute; right: 16px; bottom: 14px; color: var(--ink-2); }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 900; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.chips button { padding: 8px 16px; border: 1px solid var(--line); font-size: 13px; }
.chips button.active { background: var(--ink); color: var(--y); border-color: var(--ink); }
.newslist { border-top: 1px solid var(--ink); }
.newslist li { border-bottom: 1px solid var(--line); }
.newslist a { display: grid; grid-template-columns: 200px 1fr 30px; gap: 24px; align-items: start; padding: 26px 0; transition: padding .3s var(--ease); }
.newslist a:hover { padding-left: 12px; }
.newslist a:hover b { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 3px; }
.newslist__meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; color: var(--ink-2); }
.tag { display: inline-block; background: var(--y); color: var(--ink); padding: 2px 8px; font-weight: 600; }
.newslist__body b { display: block; font-size: 19px; font-weight: 900; line-height: 1.5; }
.newslist__body span { display: block; margin-top: 6px; color: #555; line-height: 1.8; font-size: 14px; }
.newslist i { font-style: normal; font-size: 20px; }
.filmgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.filmgrid .film small { display: block; color: #bbb; font-weight: 400; margin-top: 4px; font-size: 10px; }

.article { max-width: 760px; margin: 0 auto; padding: 70px var(--pad) 90px; }
.article__meta { color: var(--ink-2); margin-bottom: 30px; display: flex; gap: 10px; align-items: center; }
.article > p:not(.mono) { font-size: 17px; line-height: 2.1; color: #2a2a2a; margin-bottom: 20px; }
.article__end { margin-top: 40px; color: var(--ink-2); line-height: 2; text-align: center; }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 50px; border-top: 1px solid var(--ink); padding-top: 22px; }
.article__nav a { display: flex; flex-direction: column; gap: 6px; font-weight: 700; line-height: 1.5; }
.article__nav a small { color: var(--ink-2); font-weight: 400; }
.article__nav a.next { text-align: right; }
.article__nav a:hover { color: #8a7d00; }

.jobfilter { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 24px; }
.jobfilter label { display: grid; gap: 6px; }
.jobfilter .mono { color: var(--ink-2); }
.jobfilter select { height: 42px; min-width: 180px; padding: 0 12px; font: inherit; font-size: 14px; background: #fff; border: 1px solid var(--line); border-bottom: 2px solid var(--ink); }
.jobfilter__count { margin-left: auto; color: var(--ink-2); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #2a2a2a; border: 1px solid #2a2a2a; }
.perks li { background: var(--dark); padding: 26px 22px; font-weight: 700; position: relative; }
.perks li::before { content: ''; display: block; width: 24px; height: 3px; background: var(--y); margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { border-top: 3px solid var(--ink); padding-top: 16px; }
.steps .mono { color: var(--ink-2); }
.steps b { display: block; font-size: 19px; font-weight: 900; margin: 6px 0; }
.steps p { font-size: 14px; color: #444; line-height: 1.8; }
.jobdetail__facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.jobdetail__facts div { padding: 16px 0; }
.jobdetail__facts dt { font-size: 12px; color: var(--ink-2); }
.jobdetail__facts dd { font-size: 18px; font-weight: 900; margin-top: 4px; }
.jobdetail__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.jobdetail__cols h3 { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; font-weight: 500; }
.ticks li { font-size: 15px; line-height: 1.9; padding-left: 18px; position: relative; margin-bottom: 4px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; background: var(--y); outline: 1px solid var(--ink); }
.jobdetail__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 44px; }

.lost .term { max-width: 640px; }
.lost__links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1180px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 13px; }
}
@media (max-width: 1024px) {
  .product { grid-template-columns: 1fr; gap: 36px; padding: 70px var(--pad); }
  .product--dark .product__visual { order: 0; }
  .filmgrid, .perks, .steps { grid-template-columns: 1fr 1fr; }
  .jobdetail__cols { grid-template-columns: 1fr 1fr; }
  .burger { display: flex; }
  .nav__cta { display: none; }
  .nav__links { position: fixed; left: 0; right: 0; top: calc(30px + var(--nav-h)); flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .nav.open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .about, .solutions, .news { grid-template-columns: 1fr; }
  .solutions__viz { position: relative; top: 0; }
  .org__grid, .partners { grid-template-columns: 1fr 1fr; }
  .facts, .offices { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px var(--pad); border-bottom: 1px solid #2a2a2a; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 60px var(--pad) 50px; }
  .newslist a { grid-template-columns: 1fr; gap: 10px; }
  .newslist__meta { flex-direction: row; align-items: center; }
  .newslist i { display: none; }
  .filmgrid, .perks, .steps, .jobdetail__cols, .jobdetail__facts { grid-template-columns: 1fr; }
  .article__nav { grid-template-columns: 1fr; }
  .article__nav a.next { text-align: left; }
  .article > p:not(.mono) { font-size: 16px; }
  .jobfilter select { min-width: 0; width: 100%; }
  .jobfilter label { flex: 1 1 140px; }
  .jobfilter__count { margin-left: 0; width: 100%; }
  .utility__right #utcClock, .utility .lang { display: none; }
  .nav { gap: 12px; }
  .brand__text b { font-size: 15px; }
  .hero { min-height: 600px; }
  .hero__inner { padding-bottom: 110px; }
  .hero__meta { left: var(--pad); right: auto; align-items: flex-start; bottom: 24px; }
  .block { padding: 72px var(--pad); }
  .block__head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .block__desc { grid-column: 1; }
  .block__no { justify-self: start; }
  .solutions__grid, .org__grid, .partners, .facts, .offices, .films { grid-template-columns: 1fr; }
  .community { grid-template-columns: auto 1fr; gap: 18px; padding: 24px 20px 24px 26px; }
  .community__mark { width: 64px; height: 64px; }
  .community__body h3 { font-size: 26px; }
  .community__btn { grid-column: 1 / -1; justify-content: center; }
  .film:first-child { grid-column: auto; }
  .org__grid { border-top: 0; padding-top: 0; }
  .org__top::after, .dept::before { display: none; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .job__head { grid-template-columns: 1fr 24px; gap: 4px 12px; }
  .job__head b { grid-column: 1; }
  .job__head span { grid-column: 1; font-size: 13px; }
  .job__head i { grid-column: 2; grid-row: 1; }
  .job__cols { grid-template-columns: 1fr; gap: 18px; }
  .news__list a { grid-template-columns: 1fr; gap: 8px; }
  .news__list a > i { display: none; }
  .dossier__art { height: 340px; }
  .dossier__meta { grid-template-columns: 1fr; }
  .dossier__body { padding: 22px 18px 32px; }
  .modal__box { padding: 32px 20px; }
  .modal--model .modal__box { padding: 0; }
  .viewer { height: 50vh; }
  .viewer__cap { padding: 18px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
