:root {
  --ink: #202828;
  --muted: #5e6868;
  --yellow: #f8d818;
  --paper: #f6f5f1;
  --line: #e4e2da;
  --white: #ffffff;
  --wa: #1f8f4e;
  --danger: #8d2b2b;
  --ok: #1d6b45;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .stat strong, .job b, .job strong, .pillar strong, .service-row strong, .service > span, .service-row > span {
  font-family: Oswald, Manrope, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1 {
  font-size: clamp(2.8rem, 7.6vw, 5.8rem);
  line-height: 0.9;
  margin-bottom: 0.45rem;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 0.95;
  margin-bottom: 0.45rem;
}
h1::after,
.section h2::after,
.project-group h2::after,
.cta-band h2::after {
  content: "";
  display: block;
  width: 4.6rem;
  height: 7px;
  margin-top: 14px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.75s cubic-bezier(.16, 1, .3, 1);
}
.bar-in::after { transform: scaleX(1); }
h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--yellow);
  flex: 0 0 auto;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }
.note { color: var(--muted); font-size: 0.92rem; }
.more { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); }

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.84rem;
}
.topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar-wa {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--yellow);
}
.topbar-wa svg { width: 18px; height: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; text-decoration: none; background: #fff; padding: 6px 8px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--yellow); }
.nav a:hover { color: var(--ink); }
.nav-call { display: none; }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.8); }
.btn { transition: transform 0.25s ease, background 0.25s ease; }
.btn:hover { transform: translateY(-3px); }

.hero {
  position: relative;
  min-height: calc(100svh - 40px);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 72px;
  overflow: hidden;
  background: #202828;
}
.hero-media { position: absolute; inset: -12% 0; overflow: hidden; }
.hero-video, .hero-shade { position: absolute; inset: 0; }
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-1.5%, -2%, 0); }
}
.hero-shade {
  background:
    linear-gradient(to bottom, rgba(8, 10, 10, 0.55) 0%, rgba(8, 10, 10, 0.12) 16%, rgba(8, 10, 10, 0) 30%),
    linear-gradient(to top, rgba(8, 10, 10, 0.94) 0%, rgba(8, 10, 10, 0.86) 24%, rgba(8, 10, 10, 0.68) 46%, rgba(8, 10, 10, 0.28) 70%, rgba(8, 10, 10, 0.16) 100%);
}
.hero-copy { position: relative; z-index: 1; max-width: 46rem; min-width: 0; width: min(var(--max), calc(100% - 48px)); }
.hero h1 {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}
.hero .kicker { color: var(--yellow); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45); }
.hero .lead { color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--yellow);
  color: var(--ink);
}
.pillar { padding: 28px 32px; transition: transform 0.35s ease; }
.pillar:hover { transform: translateY(-4px); }
.pillar + .pillar { border-left: 1px solid rgba(32, 40, 40, 0.16); }
.pillar p { margin: 6px 0 0; }

.section { padding: 84px 0; }
.section.tight { padding-top: 28px; }
.section.paper { background: var(--paper); }
.split-head, .section-head, .cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}
.split-head .lead, .section-head { margin-bottom: 28px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.stat { padding: 22px 0; }
.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat span { color: var(--muted); }

.jobs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.jobs-full { grid-template-columns: 1fr; }
.job {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, padding 0.3s ease;
}
.job:hover { background: var(--yellow); transform: translateX(8px); }
.job em { display: block; font-style: normal; color: var(--muted); font-size: 0.88rem; }
.job b { font-size: 1.15rem; letter-spacing: -0.03em; white-space: nowrap; }
.job small { font-size: 0.72rem; letter-spacing: 0.08em; font-weight: 700; }

.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 3.2rem 1.1fr 1.4fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.service-row span { font-weight: 700; }
.service-row em { font-style: normal; color: var(--muted); }

.service {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.service span { font-weight: 700; font-size: 1.1rem; }
.service p { color: var(--muted); margin-bottom: 0; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel {
  background: var(--white);
  border-top: 3px solid var(--yellow);
  padding: 22px 0 0;
}
.paper .panel, .quote-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  padding: 28px;
  margin-top: 28px;
}
.prose { max-width: 44rem; }
.prose p { font-size: 1.05rem; }
.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.values li {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 14px;
  font-weight: 600;
}

.rail { overflow: hidden; background: var(--white); padding: 8px 0 0; }
.rail-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: rail 70s linear infinite;
}
.rail img { width: min(460px, 74vw); height: 280px; object-fit: cover; }
.rail:hover .rail-track { animation-play-state: paused; }
@keyframes rail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.clients li { font-weight: 700; letter-spacing: -0.02em; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.shot { margin: 0; overflow: hidden; }
.shot img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.7s ease; }
.shot:hover img { transform: scale(1.08); }
.shot figcaption { padding-top: 8px; color: var(--muted); font-size: 0.92rem; }
.project-group { margin-bottom: 36px; }
.project-group h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0; }

.page-hero { padding: 56px 0 8px; }
.page-hero h1 { max-width: 12ch; }

.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; }
form label, .stack label { display: block; font-weight: 700; margin-bottom: 14px; }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 12px 12px;
}
textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.form-error, .form-ok { padding: 12px 14px; }
.form-error { background: #fdecec; color: var(--danger); }
.form-ok { background: #e8f6ee; color: var(--ok); }
.aside a { font-weight: 700; }
.office { margin-top: 16px; width: 100%; height: 160px; object-fit: cover; }

.cta-band { background: var(--ink); color: #fff; padding: 64px 0; }
.cta-band p { color: rgba(255, 255, 255, 0.86); margin-bottom: 0; max-width: 36rem; }
.cta-inner { align-items: center; }

.site-footer {
  position: relative;
  overflow: hidden;
  background: #202828;
  color: rgba(255, 255, 255, 0.88);
  border-top: 14px solid var(--yellow);
  padding-top: 56px;
}
.footer-mark {
  position: absolute;
  right: -1vw;
  bottom: -0.18em;
  z-index: 0;
  margin: 0;
  font-family: Oswald, Manrope, sans-serif;
  font-size: clamp(7rem, 22vw, 16rem);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(248, 216, 24, 0.45);
  pointer-events: none;
  user-select: none;
}
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr; gap: 32px; }
.site-footer h2 { color: var(--yellow); font-size: 1.35rem; letter-spacing: 0.08em; }
.site-footer h2::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 4px;
  margin-top: 8px;
  background: var(--yellow);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); border-bottom: 2px solid var(--yellow); }
.footer-lead { max-width: 28rem; color: rgba(255, 255, 255, 0.72); }
.footer-rut { color: rgba(255, 255, 255, 0.55); }
.brand-footer { background: #fff; }
.brand-footer img { height: 46px; }
.footer-base {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 0 22px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: white;
  display: grid;
  place-items: center;
  z-index: 25;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.wa-float svg { width: 32px; height: 32px; }

.reveal {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1), transform 0.9s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0ms);
}
.reveal-left { transform: translateX(-64px); }
.reveal-right { transform: translateX(64px); }
.reveal.is-in { opacity: 1; transform: none; }

body.is-home .site-header {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
}
body.is-home .site-header.is-solid {
  position: fixed;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
body.is-home .nav a { color: #fff; }
body.is-home .site-header.is-solid .nav a { color: var(--ink); }
body.is-home .nav a[aria-current="page"],
body.is-home .site-header.is-solid .nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--yellow);
}

@media (prefers-reduced-motion: reduce) {
  .rail-track, .hero-video, .reveal, h1::after, h2::after { animation: none !important; transition: none !important; }
  .hero { background: #202828 url("../img/poster.jpg") center / cover no-repeat; }
  .hero-video { display: none; }
  .reveal { opacity: 1; transform: none; }
  h1::after, .section h2::after, .project-group h2::after, .cta-band h2::after { transform: none; }
}

@media (max-width: 900px) {
  .topbar-email { display: none; }
  .brand img { height: 42px; }
  .header-bar { min-height: 72px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }
  .nav.is-open { display: flex; z-index: 40; }
  .nav a, body.is-home .nav.is-open a { color: var(--ink); }
  .nav-call { display: inline; }
  .pillars, .stats, .jobs, .pair, .gallery, .footer-grid, .contact-grid, .service-row {
    grid-template-columns: 1fr;
  }
  .pillar + .pillar { border-left: 0; border-top: 1px solid rgba(32, 40, 40, 0.16); }
  .split-head, .section-head, .cta-inner { display: block; }
  .hero { min-height: 86svh; padding: 108px 0 48px; }
  .hero h1 { max-width: 100%; font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .job:hover { transform: none; }
  .hero .lead { max-width: 22rem; }
  body.is-home .nav-toggle {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--ink);
  }
  .page-hero h1 { max-width: none; }
  .section { padding: 56px 0; }
}
