:root {
  --ink: #0d1013;
  --ink-2: #151a1f;
  --ink-3: #1f262d;
  --line-dark: rgba(255, 255, 255, 0.1);
  --paper: #f2f3f1;
  --paper-2: #e6e8e5;
  --line-light: rgba(13, 16, 19, 0.12);
  --text-light: #eef1f3;
  --muted-light: #9aa6af;
  --text-dark: #14191e;
  --muted-dark: #56616b;
  --brand: #2f7fa3;       /* steel teal, pulled from the logo mark */
  --brand-hi: #4fb0d6;
  --signal: #e0282a;      /* WERKS red from the logo, used sparingly */
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 84px;
  --font: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-stretch: 88%; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 750; }
h3 { font-size: 1.35rem; font-weight: 700; }
em { font-style: normal; color: var(--brand-hi); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow--dark { color: var(--muted-dark); }
.idx { color: var(--signal); }
.eyebrow--dark .idx { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { background: var(--brand-hi); border-color: var(--brand-hi); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn--small { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

/* ───────── Top bar ───────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--text-light);
}
.nav::before {           /* background layer fades in on scroll */
  content: ""; position: absolute; inset: 0;
  background: rgba(13, 16, 19, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-dark);
  opacity: 0; transition: opacity .3s;
}
.nav.is-scrolled::before, .nav.is-open::before { opacity: 1; }
.nav__bar {
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
  transition: height .3s;
}
.nav:not(.is-scrolled) .nav__bar::after {   /* hairline under the bar while over the hero */
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px; background: rgba(255,255,255,.14);
}
.nav.is-scrolled .nav__bar { height: 66px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand__logo { height: 40px; width: auto; transition: height .3s; }
.nav.is-scrolled .brand__logo { height: 34px; }

.nav__links { display: flex; justify-content: center; gap: 0.25rem; }
.nav__links a {
  position: relative; padding: 0.5rem 0.9rem;
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  color: rgba(238,241,243,.78); transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.1rem;
  height: 2px; background: var(--brand-hi);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: #fff; }

.nav__actions { display: flex; align-items: center; gap: 1.25rem; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: 0.85rem; text-decoration: none;
  color: rgba(238,241,243,.85);
}
.nav__phone svg { color: var(--brand-hi); }
.nav__phone:hover { color: #fff; }

.nav__toggle {
  display: none; justify-self: end;
  width: 44px; height: 44px; background: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius);
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .25s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: relative;
  display: flex; flex-direction: column;
  height: calc(100svh - 66px); overflow-y: auto;
  padding: 12px var(--gutter) 32px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a {
  padding: 18px 0; text-decoration: none;
  font-size: 1.6rem; font-weight: 700; font-stretch: 88%;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu__foot { margin-top: auto; display: grid; gap: 0.7rem; padding-top: 32px; }

/* ───────── Hero ───────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--text-light); overflow: hidden;
  background: var(--ink) url("assets/img/hero-poster.webp") center / cover;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,16,19,.7) 0%, rgba(13,16,19,0) 28%),
    linear-gradient(0deg, rgba(13,16,19,.96) 0%, rgba(13,16,19,.6) 50%, rgba(13,16,19,.2) 100%),
    linear-gradient(90deg, rgba(13,16,19,.55) 0%, rgba(13,16,19,0) 70%);
}
.hero__content { position: relative; width: 100%; padding-bottom: clamp(72px, 12vh, 140px); padding-top: 140px; }
.hero .eyebrow { color: #c9d2d8; }
.hero__lede { max-width: 36rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9d2d8; margin: 1.5rem 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(13,16,19,.4);
  color: #fff; cursor: pointer; display: grid; place-items: center;
}
.hero__pause[hidden] { display: none; }
.hero__caption {
  position: absolute; right: calc(var(--gutter) + 48px); bottom: 34px; z-index: 2;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(238,241,243,.7); text-decoration: none;
}
.hero__caption:hover { color: #fff; text-decoration: underline; }

/* ───────── Sections ───────── */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--light { background: var(--paper); color: var(--text-dark); }
.section--dark { background: var(--ink); color: var(--text-light); }
.section__head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--row {
  max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap;
}

/* What we do */
.intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px);
  align-items: end; margin-bottom: clamp(48px, 7vw, 80px);
}
.intro__text > p { font-size: 1.15rem; color: var(--muted-dark); margin: 0 0 1.5rem; }
.team { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.team li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.9rem; border: 1px solid var(--line-light); border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; background: #fff;
}
.team__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--text-dark);
}
.steps li { padding: 1.6rem 1.6rem 0 0; position: relative; }
.steps li + li { padding-left: 1.6rem; border-left: 1px solid var(--line-light); }
.steps__num { font-family: var(--mono); font-size: 0.8rem; color: var(--brand); display: block; margin-bottom: 2.2rem; }
.steps p { color: var(--muted-dark); margin: 0.6rem 0 0; }

/* Industries */
.industries { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.industry {
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden;
}
.industry__img { aspect-ratio: 16 / 9; overflow: hidden; }
.industry__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.industry:hover .industry__img img { transform: scale(1.03); }
.industry__body { padding: clamp(24px, 3vw, 36px); }
.industry__body .eyebrow { color: var(--brand-hi); margin-bottom: 0.7rem; }
.industry__body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.industry__body > p:not(.eyebrow) { color: var(--muted-light); margin: 0.7rem 0 1.2rem; }
.industry__body ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-dark); }
.industry__body li { padding: 0.7rem 0; border-bottom: 1px solid var(--line-dark); font-weight: 500; }
.industry__body li::before { content: "→"; color: var(--brand-hi); margin-right: 0.7rem; }

/* EP card (inside Projects) */
.ep-card {
  background: var(--ink); color: var(--text-light);
  border-radius: 8px; padding: clamp(20px, 3vw, 36px);
  margin-bottom: clamp(56px, 8vw, 96px);
}
.ep-card__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 24px; }
.ep-card__head h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ep-card__head p { color: var(--muted-light); margin: 0.5rem 0 0; max-width: 34rem; }
.tabs {
  display: inline-flex; padding: 4px; gap: 4px;
  border: 1px solid var(--line-dark); border-radius: 999px; background: var(--ink-2);
}
.tabs__btn {
  font: inherit; font-weight: 600; font-size: 0.92rem;
  padding: 0.5rem 1.3rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted-light); transition: background .2s, color .2s;
}
.tabs__btn:hover { color: #fff; }
.tabs__btn[aria-selected="true"] { background: var(--brand); color: #fff; }
.ep[hidden] { display: none; }
.ep__media { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ep__tile {
  position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius); background: var(--ink-2);
}
.ep__tile--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.ep__tile img, .ep__tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep__tile figcaption {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(13,16,19,.72); padding: 4px 10px; border-radius: 999px;
  display: flex; align-items: center; gap: 0.45rem;
}
.ep__tile figcaption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.ep__foot { display: grid; gap: 0.9rem; margin-top: 20px; }
.ep__foot p { margin: 0; color: var(--muted-light); max-width: 48rem; }
.ep__foot strong { color: var(--text-light); }
.ep__foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ep__foot li { font-size: 0.85rem; padding: 0.35rem 0.8rem; border: 1px solid var(--line-dark); border-radius: 999px; color: #c9d2d8; }
.ep__soon {
  border: 1px dashed rgba(255,255,255,.22); border-radius: var(--radius);
  padding: clamp(32px, 6vw, 72px) clamp(20px, 4vw, 48px); text-align: center;
}
.ep__soon .eyebrow { justify-content: center; }
.ep__soon p:last-child { color: var(--muted-light); margin: 0 auto; max-width: 34rem; }
.ep__soon strong { color: var(--text-light); }
.ep__soon a { color: var(--brand-hi); }

.subhead { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 24px; }

/* Other projects */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 20px; }
.project { margin: 0; }
.project__img {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  background: var(--paper-2);
}
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project__img--cutout { background: radial-gradient(ellipse at 50% 60%, #ffffff 0%, var(--paper-2) 75%); }
.project__img--cutout img { object-fit: contain; padding: 8%; }
.project:hover .project__img img { transform: scale(1.03); }
.project figcaption { padding: 1rem 0 0; }
.tag {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand);
}
.project h3 { margin-top: 0.35rem; font-size: 1.2rem; }
.project figcaption p { margin: 0.4rem 0 0; color: var(--muted-dark); font-size: 0.95rem; }

/* Contact */
.contact { background: var(--ink-2); border-top: 1px solid var(--line-dark); }
.contact__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: end; }
.contact__lede { color: var(--muted-light); font-size: 1.15rem; margin: 1.2rem 0 2rem; max-width: 30rem; }
.locations { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.loc { background: var(--ink-2); padding: 1.6rem 1.8rem; }
.loc .eyebrow { margin-bottom: 0.6rem; }
.loc address { font-style: normal; font-size: 1.1rem; margin-bottom: 0.8rem; }
.loc a { color: var(--brand-hi); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.loc a:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--ink); color: var(--muted-light); border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.footer .brand__logo { height: 30px; }
.footer p { margin: 0; font-size: 0.88rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .nav__phone { display: none; }
}
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav__bar { grid-template-columns: auto 1fr; }
  .brand__logo, .nav.is-scrolled .brand__logo { height: 32px; }
  .intro, .industries, .contact__inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li { padding-bottom: 1.6rem; }
  .ep__media {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .ep__tile { scroll-snap-align: start; }
  .ep__tile--wide { grid-column: auto; aspect-ratio: 3 / 4; }
}
@media (max-width: 520px) {
  .hero__caption { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
  .steps__num { margin-bottom: 0.8rem; }
  .ep__media { grid-auto-columns: 72%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
