@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Nunito:wght@400;600;700;800&display=swap");

:root {
  --heading-font: "Montserrat", "Nunito", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-font: Inter, "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --black: #0b0f10;
  --black-2: #111616;
  --white: #f7f7f4;
  --paper: #ffffff;
  --muted: #a5aba8;
  --soft: #e8e8e2;
  --line: rgba(11, 15, 16, 0.14);
  --line-dark: rgba(247, 247, 244, 0.14);
  --accent: #d84f5f;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: var(--heading-font);
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  font-size: 5.8rem;
}

h2 {
  font-size: 3.8rem;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.18;
}

p {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-150%);
  padding: 9px 13px;
  background: var(--paper);
  border: 1px solid var(--black);
  border-radius: 2px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.dark-panel {
  background: var(--black);
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header.dark {
  background: rgba(11, 15, 16, 0.92);
  border-bottom-color: var(--line-dark);
  color: var(--white);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: inherit;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  padding: 8px 12px;
  font-weight: 700;
}

.hero {
  padding: 60px 0 0;
}

.hero-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 80px minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: end;
}

.hero-side {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  padding-bottom: 42px;
}

.tiny-label,
.kicker {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vertical-note {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-copy p:not(.kicker) {
  max-width: 540px;
  margin-top: 28px;
  color: #d7dbd8;
  font-size: 1.02rem;
}

.hero-copy {
  padding-bottom: 42px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 42px;
}

.text-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.text-link.light {
  color: var(--white);
}

.hero-image {
  border-left: 1px solid var(--line-dark);
  padding-left: 0px;
}

.hero-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.portrait-stage {
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.portrait-stage img {
  width: min(100%, 520px);
  height: 560px;
  object-fit: contain;
  object-position: bottom center;
  filter: none;
}

.logo-row {
  width: min(var(--max), calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #4f5653;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.logo-row div {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.logo-row div:last-child {
  border-right: 0;
}

.intro-services,
.selected-work,
.capabilities,
.experience-strip,
.contact-section,
.case-hero,
.case-overview,
.case-section,
.next-projects {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.intro-services {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 72px;
  padding: 96px 0 112px;
}

.intro-services h2,
.section-split h2 {
  max-width: 760px;
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list article {
  display: grid;
  grid-template-columns: 72px 170px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-list span,
.process-line span,
.case-stat span,
.detail-list span,
.experience-strip span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-list p {
  color: #555b58;
}

.selected-work {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.section-split {
  display: grid;
  grid-template-columns: 0.68fr 1.5fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 28px;
}

.work-card.featured {
  grid-column: 1 / -1;
}

.work-card a {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 360px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-card:not(.featured) a {
  grid-template-columns: 1fr;
}

.work-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: grayscale(0);
  transition: filter 180ms ease, transform 180ms ease;
}

.work-card:hover img,
.work-card:focus-within img {
  filter: grayscale(1);
  transform: scale(1.01);
}

.work-meta {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: var(--paper);
}

.compact-work-card img {
  min-height: 260px;
}

.compact-work-card .work-meta {
  min-height: 190px;
  justify-content: flex-start;
  padding: 24px 28px 28px;
}

.work-meta p {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-meta h3 {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  text-transform: uppercase;
}

.work-meta span {
  display: block;
  margin-top: 18px;
  color: #535a56;
}

.process-panel {
  width: 100%;
  padding: 104px max(20px, calc((100vw - var(--max)) / 2));
}

.process-line {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
}

.process-line li {
  min-height: 230px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}

.process-line h3 {
  margin-top: 42px;
  color: var(--white);
}

.process-line p {
  margin-top: 16px;
  color: #bdc4c0;
}

.capabilities {
  padding: 104px 0;
}

.capability-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
}

.capability-grid > p {
  font-size: 1.08rem;
  color: #505653;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.skill-list li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #3d4441;
  font-size: 0.84rem;
  font-weight: 700;
}

.experience-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-bottom: 104px;
}

.experience-strip article {
  padding: 30px 26px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.experience-strip article:last-child {
  border-right: 0;
}

.experience-strip h3 {
  margin-top: 22px;
}

.experience-strip p {
  margin-top: 16px;
  color: #5b625f;
}

.contact-section {
  width: 100%;
  padding: 104px max(20px, calc((100vw - var(--max)) / 2));
}

.contact-section h2 {
  max-width: 880px;
  margin-top: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(20px, calc((100vw - var(--max)) / 2));
  background: var(--black);
  color: var(--muted);
  border-top: 1px solid var(--line-dark);
  font-size: 0.84rem;
}

.site-footer a {
  color: var(--white);
}

.case-hero {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  padding: 86px 0 72px;
}

.case-hero h1 {
  color: var(--black);
  max-width: none;
  font-size: 4.6rem;
  overflow-wrap: normal;
  word-break: normal;
}

.case-hero p:not(.kicker) {
  margin-top: 24px;
  color: #515854;
  font-size: 1.1rem;
}

.case-image {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.case-image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  filter: none;
}

.case-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 0 92px;
}

.case-stat {
  min-height: 160px;
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.case-stat:last-child {
  border-right: 0;
}

.case-stat strong {
  display: block;
  margin-top: 24px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.case-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 76px;
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.case-section h2 {
  font-size: 3rem;
}

.case-section p,
.case-section li {
  color: #505753;
}

.case-section p + p {
  margin-top: 18px;
}

.detail-list {
  display: grid;
  gap: 28px;
}

.detail-list article {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.detail-list h3 {
  margin-top: 14px;
}

.detail-list p {
  margin-top: 12px;
}

.outcome-list {
  margin: 0;
  padding-left: 20px;
}

.outcome-list li + li {
  margin-top: 12px;
}

.next-projects {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 72px 0 104px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .hero-grid,
  .intro-services,
  .section-split,
  .capability-grid,
  .case-hero,
  .case-section {
    grid-template-columns: 1fr;
  }

  .hero-side {
    min-height: 0;
    padding-bottom: 28px;
  }

  .vertical-note {
    writing-mode: initial;
    transform: none;
    margin-top: 12px;
  }

  .hero-image {
    border-left: 0;
    padding-left: 0;
  }

  .logo-row,
  .case-overview,
  .process-line,
  .experience-strip,
  .work-list {
    grid-template-columns: 1fr 1fr;
  }

  .work-card.featured {
    grid-column: auto;
  }

  .work-card a,
  .work-card.featured a {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    min-height: 66px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding-bottom: 8px;
  }

  .nav-links.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero {
    padding: 56px 0 0;
  }

  .hero-copy {
    padding-bottom: 28px;
  }

  h1 {
    font-size: 2.9rem;
  }

  .case-hero h1 {
    font-size: 2.7rem;
  }

  h2,
  .case-section h2 {
    font-size: 2.15rem;
  }

  .hero-image img,
  .case-image img {
    height: 360px;
  }

  .portrait-stage {
    min-height: 420px;
  }

  .portrait-stage img {
    width: min(100%, 380px);
    height: 430px;
  }

  .logo-row,
  .service-list article,
  .case-overview,
  .process-line,
  .experience-strip,
  .work-list {
    grid-template-columns: 1fr;
  }

  .logo-row div,
  .experience-strip article,
  .case-stat {
    border-right: 0;
  }

  .intro-services,
  .selected-work,
  .capabilities,
  .case-hero,
  .case-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .process-panel,
  .contact-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .work-meta {
    min-height: 230px;
    padding: 24px 0;
  }

  .work-card a {
    border-bottom: 1px solid var(--line);
  }

  .next-projects,
  .site-footer {
    display: block;
  }

  .next-projects a,
  .site-footer a {
    margin-top: 16px;
  }
}
