@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f2ef;
  --ink: #12110f;
  --mute: #5e5a54;
  --rule: #ddd8d0;
  --red: #a81800;
  --dark: #141311;
  --cream: #f3efe6;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 "Barlow", "Segoe UI", sans-serif;
}

img { max-width: 100%; }

button { font: inherit; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 50;
  background: #fff;
  color: #111;
  padding: 0.4rem 0.7rem;
}

.skip:focus { top: 0.45rem; }

.study {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  padding: 0.55rem max(1.25rem, env(safe-area-inset-left));
  background: #111;
  color: #f3efe6;
  font: 500 0.75rem/1.4 ui-sans-serif, system-ui, sans-serif;
}

.study p { margin: 0; }

.study nav { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.study a { color: #d9d3c8; }

.study a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 2;
  background: #fff;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.85rem 0;
}

.brand {
  display: block;
  line-height: 0;
  background: #fff;
}

.brand img {
  display: block;
  height: 52px;
  width: auto;
  background: #fff;
}

.header-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.35rem;
}

.locator { font-size: 0.95rem; }

.site-nav { display: flex; gap: 1.05rem; }

.site-nav a { text-decoration: none; font-weight: 500; }

.site-nav a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

.wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100svh - 8.5rem);
  overflow: hidden;
  background: #1c1a17;
  color: #f6f3ec;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 11, 10, 0.34) 0%, rgba(12, 11, 10, 0.28) 42%, rgba(12, 11, 10, 0.55) 100%),
    linear-gradient(90deg, rgba(12, 11, 10, 0.42) 0%, rgba(12, 11, 10, 0.16) 58%, rgba(12, 11, 10, 0.08) 100%);
}

.hero-foot {
  position: relative;
  z-index: 1;
}

.hero-cap {
  position: absolute;
  right: 0.9rem;
  bottom: 100%;
  margin: 0 0 1.15rem;
  padding: 0.22rem 0.5rem;
  background: rgba(20, 19, 17, 0.62);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  width: min(calc(max(1.25rem, (100vw - 1180px) / 2) + 40rem), 70%);
  padding: clamp(1.7rem, 5vh, 3.1rem) 2.25rem 1.85rem max(1.25rem, calc((100vw - 1180px) / 2));
}

.mark {
  width: 3.25rem;
  height: 4px;
  margin-bottom: 1.1rem;
  background: var(--red);
}

h1 {
  max-width: 9.2ch;
  font-weight: 500;
  font-size: clamp(3.5rem, 8.6vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.deck {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  width: 100%;
  margin: 0;
  padding: 1rem max(1.25rem, calc((100vw - 1180px) / 2)) 1.15rem;
  border-top: 1px solid rgba(246, 243, 236, 0.38);
  background: transparent;
}

.hero-stats div { min-width: 0; }

.hero-stats dd {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.84;
  letter-spacing: -0.02em;
}

.hero-stats .name {
  font-size: clamp(1.8rem, 3.6vw, 3.15rem);
  line-height: 0.9;
}

.hero-stats dt {
  margin-top: 0.35rem;
  color: rgba(246, 243, 236, 0.78);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}



.sheet { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.glance-grid {
  display: grid;
  gap: 0.85rem;
}

.glance-grid figure { min-width: 0; }

.frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ccc;
  cursor: zoom-in;
  overflow: hidden;
}

.frame img,
.tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.count {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 16rem;
  padding: 1.4rem 1.35rem 1.3rem;
  background: var(--dark);
  color: var(--cream);
}

.count p:first-child {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(4.2rem, 8vw, 7rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.count p + p { max-width: 16rem; margin-top: 0.7rem; font-size: 1.15rem; }

.note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.4rem 0.2rem 0.2rem;
}

.note h2 {
  max-width: 14ch;
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.note p { max-width: 36rem; margin-top: 0.8rem; }

h2 {
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.work-head {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.work-head h2 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.work-head p { max-width: 32rem; color: var(--mute); }

.tiles {
  display: grid;
  gap: 1.6rem 1rem;
}

.tile { min-width: 0; }

.tile .frame { background: #ddd; }

.kicker {
  margin-top: 0.65rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tile h3 {
  margin-top: 0.15rem;
  font-weight: 500;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -0.03em;
}

.tile p { margin-top: 0.2rem; color: var(--mute); }

.company-grid {
  display: grid;
  gap: 1.4rem;
}

.company-grid h2 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.prose { max-width: 38rem; }

.prose p + p { margin-top: 0.85rem; }

.standards { margin-top: 1.3rem; border-top: 1px solid var(--rule); }

.standards li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.standards strong {
  font-weight: 500;
  font-size: 1.2rem;
}

.standards span { color: var(--mute); }

.kinds {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.kinds li:not(:last-child)::after {
  content: "  ·  ";
  color: var(--red);
}

.clients .intro { max-width: 32rem; margin-top: 0.7rem; color: var(--mute); }

.clients h2 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.marks li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 8rem;
  min-height: 5.6rem;
  padding: 0.65rem 0.75rem 0.5rem;
  background: #fff;
  border: 1px solid var(--rule);
}

.marks img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  object-position: left center;
}

.marks span { font-size: 0.78rem; color: var(--mute); }

.systems h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; }

.systems .intro { max-width: 34rem; margin-top: 0.55rem; color: var(--mute); }

.close {
  display: grid;
  gap: 2rem;
  padding-top: 0.4rem;
}

.close h2 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.role { margin-top: 0.55rem; color: var(--mute); }

.close address { margin-top: 0.8rem; line-height: 1.55; }

.close address a { text-underline-offset: 0.18em; }

.colophon {
  padding: 0 0 1.6rem;
  color: var(--mute);
  font-size: 0.92rem;
}

.colophon .wrap { padding-top: 0.9rem; border-top: 1px solid var(--rule); }

#lightbox {
  width: min(1040px, calc(100vw - 1.25rem));
  max-height: calc(100dvh - 1.25rem);
  padding: 0;
  border: 0;
  background: #141210;
  color: var(--cream);
}

#lightbox::backdrop { background: rgba(8, 7, 6, 0.78); }

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
}

.lb-cap { font-size: 0.88rem; }

.lb-bar form { margin: 0; }

.lb-bar button {
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(243, 239, 230, 0.45);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

#lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 5.5rem);
  object-fit: contain;
  background: #000;
}

@media (max-width: 980px) {
  .hero { min-height: calc(100svh - 12rem); }

  .hero-copy {
    width: 100%;
    padding: 1.2rem 1.25rem 1.45rem;
  }
}

@media (max-width: 640px) {
  .brand img { height: 46px; }

  .header-side {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    display: inline-block;
    padding: 0.35rem 0;
  }
}

@media (min-width: 720px) {
  .hero-stats { grid-template-columns: 0.7fr 0.9fr 1.2fr; }

  .tiles { grid-template-columns: 1fr 1fr; gap: 2rem 1.15rem; }

  .standards li {
    grid-template-columns: 8.5rem 1fr;
    align-items: baseline;
    gap: 1rem;
  }
}

@media (min-width: 900px) {
  .glance-grid {
    grid-template-columns: 1.35fr 0.85fr;
  }

  .span-row { grid-column: 1 / -1; }

  .company-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: end;
  }

  .close {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

[id] { scroll-margin-top: 3rem; }
