:root {
  --ink: #2c2c2c;
  --paper: #f5f5f5;
  --white: #ffffff;
  --muted: #5f5f5f;
  --line: rgba(44, 44, 44, 0.12);
  --red: #d30f16;
  --band: #e8e8e8;
  --font: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, textarea { font-family: inherit; }

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 32px;
  color: #fff;
  transition: background 0.25s ease, padding 0.25s ease;
}

.topbar.is-solid,
.topbar.is-locked {
  padding: 10px 32px;
  background: rgba(245, 245, 245, 0.96);
  color: var(--ink);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.topbar.is-solid .nav a,
.topbar.is-locked .nav a {
  color: rgba(44, 44, 44, 0.78);
}

.topbar.is-solid .nav a:hover,
.topbar.is-locked .nav a:hover { color: var(--ink); }

.topbar.is-solid .nav-toggle,
.topbar.is-locked .nav-toggle {
  color: var(--ink);
  border-color: rgba(44, 44, 44, 0.28);
}

.brand img {
  height: 64px;
  width: auto;
  transition: height 0.25s ease;
}

.topbar.is-solid .brand img { height: 32px; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover { color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  padding: 8px 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: calc(100svh - 168px);
  min-height: 460px;
  max-height: 620px;
  padding: 108px 40px 40px;
  color: #fff;
  overflow: hidden;
}

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

.hero-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(1.18) contrast(1.04);
  transition: opacity 1.1s ease;
}

.hero-frame.is-on { opacity: 1; }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.38));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.eyebrow, .kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #ffb2ad; }

.hero h1 {
  margin: 0 0 18px;
  max-width: 14ch;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.hero-side {
  margin: 0;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--band);
  color: var(--ink);
}

.metric { padding: 32px 28px 36px; border-right: 1px solid rgba(44, 44, 44, 0.1); }
.metric:last-child { border-right: 0; }

.metric strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric span { display: block; max-width: 28ch; color: #4a4a4a; font-size: 15px; }

.statement, .areas-head, .portfolio, .catalog, .company {
  width: min(var(--max), calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}

.statement h2 { max-width: 24ch; }

.statement h2, .areas-head h2, .company-lead h2, .section-title {
  margin: 0 0 16px;
  max-width: 22ch;
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.statement p:last-child, .lede {
  margin: 0;
  max-width: 62ch;
  color: #3a3a3a;
  font-size: 17px;
  line-height: 1.5;
}

.lede { font-size: 18px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.5; }

.areas { padding: 72px 0 28px; }

.areas-head { padding-bottom: 28px; }

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

.area {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.area img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.78));
}

.area span {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.featured { padding: 64px 0 0; }

.featured-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto 28px;
}

.featured-head h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.featured-head a {
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(44, 44, 44, 0.28);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 20px;
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

.pick {
  color: inherit;
  text-decoration: none;
}

.pick img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: brightness(1.16) contrast(1.04); }

.pick h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pick p:last-child {
  margin: 0;
  max-width: 42ch;
  color: #5a5a5a;
  font-size: 15px;
  line-height: 1.45;
}

.pick .place { margin-top: 14px; }

.topbar.is-locked .brand img { height: 32px; }

.catalog { padding: 128px 0 80px; }

.catalog-lead {
  margin: 10px 0 0;
  max-width: 42ch;
  color: #3a3a3a;
  font-size: 17px;
  line-height: 1.45;
}

.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.portfolio-head .section-title { margin: 0; max-width: 16ch; }

.work-count { margin: 0 0 8px; color: var(--muted); font-size: 15px; }

.filters {
  display: flex;
  gap: 22px;
  margin: 22px 0 28px;
  overflow-x: auto;
}

.filters button {
  flex: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 6px 0 8px;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.filters button.is-on {
  color: var(--ink);
  border-bottom-color: var(--red);
  font-weight: 500;
}

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 18px;
}

.work img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: brightness(1.16) contrast(1.04); }

.work div { padding: 14px 2px 0; }

.place {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.work h2, .work h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.work p:last-child {
  margin: 0;
  max-width: 36ch;
  color: #5a5a5a;
  font-size: 15px;
  line-height: 1.45;
}

.company { padding: 112px 0 96px; }

.company-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}

.company-lead { max-width: none; }

.lede { max-width: 46ch; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.pillars article {
  padding-top: 16px;
  border-top: 1px solid rgba(44, 44, 44, 0.16);
}

.pillars strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.pillars p { margin: 0; color: var(--muted); font-size: 15px; }

.direction { max-width: none; margin-top: 0; }

.direction p:last-child { margin: 0; color: #3a3a3a; font-size: 17px; line-height: 1.5; }

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 72px 40px 64px;
  background: var(--band);
  color: var(--ink);
}

.contact h2 {
  margin: 0 0 18px;
  max-width: 16ch;
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }

.offices h3 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }

.offices address, .contact-links a {
  font-style: normal;
  color: #3a3a3a;
  line-height: 1.5;
}

.offices address a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(44, 44, 44, 0.28);
}

.contact-links { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.contact-links a { width: fit-content; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(44, 44, 44, 0.28); }

.form label {
  display: block;
  margin-bottom: 16px;
  color: #5a5a5a;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form input, .form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(44, 44, 44, 0.22);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
}

.form textarea { min-height: 100px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--red); }

.form button {
  margin-top: 8px;
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.form-status { min-height: 1.3em; }

.join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 112px 0 0;
  padding: 52px max(32px, calc((100% - var(--max)) / 2));
  background: var(--band);
}

.join p {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.join-button {
  flex: none;
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.cv-page {
  width: min(720px, calc(100% - 64px));
  margin: 0 auto;
  padding: 128px 0 96px;
}

.cv-page h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cv-page .catalog-lead { margin-bottom: 36px; }

.file-pick input {
  margin-top: 10px;
  font-size: 15px;
}

.file-name {
  display: block;
  margin-top: 8px;
  color: #5a5a5a;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.colophon {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 40px 40px 36px;
  background: #fff;
  border-top: 4px solid var(--red);
  color: #3a3a3a;
  font-size: 15px;
  line-height: 1.5;
}

.colophon .foot-name {
  margin: 0;
  color: #6a6a6a;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.colophon address { font-style: normal; }

.colophon strong { display: block; margin-bottom: 8px; font-weight: 500; }

.colophon a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(44, 44, 44, 0.28); }

.colophon p { margin: 0; }

section { scroll-margin-top: 76px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .topbar,
  .topbar.is-solid { padding: 12px 20px; }
  .brand img,
  .topbar.is-solid .brand img { height: 34px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 0 16px;
    flex-direction: column;
    align-items: flex-start;
    background: #f5f5f5;
  }
  .topbar.is-open .nav { display: flex; }
  .nav a { padding: 12px 28px; color: var(--ink); }
  .pillars, .contact, .offices, .company-grid, .featured-grid, .colophon, .join {
    grid-template-columns: 1fr;
  }
  .join { flex-direction: column; align-items: flex-start; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .works { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid rgba(44, 44, 44, 0.1); }
  .metric:last-child { border-bottom: 0; }
  .statement, .areas-head, .portfolio, .catalog, .company, .hero, .featured-head, .featured-grid, .cv-page, .area-grid { width: auto; }
  .statement, .areas-head, .portfolio, .catalog, .company, .featured-head, .featured-grid, .cv-page, .area-grid { padding-left: 20px; padding-right: 20px; }
  .join { padding-left: 20px; padding-right: 20px; }
  .hero {
    height: auto;
    min-height: 420px;
    max-height: none;
    padding: 110px 20px 36px;
  }
  .contact, .colophon { padding: 48px 20px; }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .works { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .works { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-frame { transition: none; }
}
