:root {
  --ink: #20243f;
  --navy: #454c76;
  --navy-deep: #1d2139;
  --paper: #f7f3ec;
  --white: #fffdf9;
  --sage: #dfe1c8;
  --apricot: #f4d5a5;
  --rust: #b65324;
  --orange: #f49b20;
  --line: rgba(32, 36, 63, 0.18);
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --max: 1420px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid transparent;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease;
}

.site-header.is-scrolled { border-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
}

.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
}
.nav a:not(.nav-contact)::after {
  display: block;
  width: 0;
  height: 1px;
  margin-top: 4px;
  content: "";
  background: var(--ink);
  transition: width 180ms ease;
}
.nav a:hover::after { width: 100%; }
.nav-contact {
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.menu-button { display: none; }

.hero {
  display: block;
  min-height: calc(100vh - 80px);
  padding: clamp(72px, 9vw, 140px) clamp(24px, 6vw, 96px);
  align-items: center;
  background: var(--navy);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-size: 12px;
  font-weight: 600;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, .case h3, .timeline h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 1180px;
  margin-bottom: 34px;
  font-size: clamp(58px, 6.35vw, 108px);
  line-height: 0.93;
}

.hero-intro {
  max-width: 720px;
  margin-bottom: 42px;
  color: rgba(255, 253, 249, 0.82);
  font-size: clamp(19px, 1.45vw, 24px);
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--white); color: var(--ink); }
.button-light { background: var(--white); color: var(--ink); }
.text-link { text-underline-offset: 7px; }

.hero-location {
  display: grid;
  gap: 5px;
  width: min(720px, 100%);
  margin-top: clamp(70px, 9vw, 130px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}
.hero-location span:last-child { color: rgba(255,255,255,0.52); }

.proof-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.proof-bar article {
  display: flex;
  min-height: 220px;
  padding: 34px clamp(24px, 3vw, 46px);
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background: var(--white);
}
.proof-bar article:nth-child(2) { background: var(--sage); }
.proof-bar article:nth-child(3) { background: var(--apricot); }
.proof-bar article:last-child { border-right: 0; }
.proof-bar strong {
  font-family: var(--serif);
  font-size: clamp(44px, 4vw, 68px);
  font-weight: 400;
  line-height: 1;
}
.proof-bar span { max-width: 290px; font-size: 16px; line-height: 1.45; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(100px, 11vw, 180px) clamp(24px, 5vw, 76px);
}
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.section-label span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
}
.section-label p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-size: 12px;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(50px, 9vw, 150px);
  padding: clamp(64px, 8vw, 120px) 0;
  align-items: start;
}
.about h2, .section-heading h2, .contact h2 {
  margin-bottom: 0;
  font-size: clamp(48px, 5.2vw, 82px);
  line-height: 1;
}
.about-copy {
  padding-left: 34px;
  border-left: 6px solid var(--rust);
  font-size: 18px;
}
.about-copy .lead { font-size: clamp(22px, 2vw, 29px); line-height: 1.45; }
.location-line {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.focus-card {
  min-height: 330px;
  padding: 34px;
  border-right: 1px solid var(--line);
  background: var(--white);
}
.focus-card:last-child { border-right: 0; }
.focus-card > span {
  color: var(--rust);
  font-family: var(--serif);
  font-size: 24px;
}
.focus-card h3 {
  margin: 80px 0 18px;
  font-size: 26px;
  line-height: 1.2;
}
.focus-card p { color: rgba(32, 36, 63, 0.76); font-size: 16px; line-height: 1.55; }

.closing-portrait {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 4vw, 58px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 76px) clamp(100px, 11vw, 180px);
  align-items: center;
}
.closing-portrait-image {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: var(--apricot);
}
.closing-portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98);
}
.closing-portrait-quote {
  margin: 0;
  padding: clamp(28px, 4vw, 54px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.closing-portrait-quote p {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1.05;
}
.closing-portrait-quote span {
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
}

.work { padding-top: 70px; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 70px;
  padding: 70px 0 90px;
  align-items: end;
}
.section-heading p { max-width: 520px; margin-bottom: 0; color: rgba(32, 36, 63, 0.72); }

.case {
  margin-bottom: 34px;
  padding: clamp(34px, 5vw, 72px);
  border: 1px solid var(--line);
}
.case-dark { color: var(--white); background: var(--navy-deep); }
.case-light { background: var(--apricot); }
.case-sage { background: var(--sage); }
.case-meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  opacity: 0.72;
}
.case-main {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(50px, 8vw, 120px);
  padding: clamp(54px, 7vw, 96px) 0;
}
.case-kicker {
  margin-bottom: 18px;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
}
.case-dark .case-kicker { color: var(--orange); }
.case h3 { max-width: 760px; margin: 0; font-size: clamp(48px, 5vw, 78px); line-height: 0.98; }
.case-detail > p { font-size: 19px; line-height: 1.55; }
.case-detail ul { margin: 30px 0 0; padding: 0; list-style: none; }
.case-detail li { padding: 13px 0; border-top: 1px solid currentColor; opacity: 0.82; }

.case-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.case-flow i { height: 1px; background: rgba(255,255,255,0.38); }
.brand-system {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(32,36,63,0.28);
}
.brand-system div {
  display: grid;
  min-height: 130px;
  padding: 20px;
  border-right: 1px solid rgba(32,36,63,0.28);
  align-content: space-between;
}
.brand-system div:last-child { border-right: 0; }
.brand-system small { color: var(--rust); }
.brand-system span { font-family: var(--serif); font-size: 22px; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 50px;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-date { padding-top: 10px; color: var(--rust); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; }
.timeline h3 { margin: 0 0 8px; font-size: clamp(40px, 4vw, 64px); line-height: 1; }
.timeline p { margin: 0 0 8px; font-size: 19px; }
.timeline small { color: rgba(32,36,63,0.66); font-size: 15px; }

.contact {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(70px, 10vw, 160px);
  padding: clamp(100px, 11vw, 170px) clamp(24px, 7vw, 110px);
  color: var(--white);
  background: var(--navy-deep);
}
.contact-copy > p:last-child { max-width: 820px; margin: 36px 0 0; color: rgba(255,255,255,0.72); font-size: 19px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 24px; }
.contact-actions > a:not(.button) { text-underline-offset: 7px; }
.contact-actions > span { color: rgba(255,255,255,0.56); }

footer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 30px;
  padding: 30px clamp(24px, 5vw, 80px);
  color: rgba(255,255,255,0.62);
  background: #15182a;
  font-size: 11px;
}
footer span:last-child { text-align: right; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1040px) {
  .hero { min-height: auto; padding-top: 72px; padding-bottom: 72px; }
  .hero-location { margin-top: 56px; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-card:nth-child(2) { border-right: 0; }
  .focus-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact { grid-template-columns: 1fr; }
  .closing-portrait { grid-template-columns: 1fr 0.8fr; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { height: 70px; }
  .menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 12px;
    place-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
  }
  .menu-button span:not(.sr-only) { display: block; width: 22px; height: 1px; background: var(--ink); }
  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    padding: 28px 24px 34px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .nav.is-open { display: flex; }
  .nav-contact { padding: 10px 18px; }
  .hero { min-height: auto; padding-top: 70px; }
  h1 { font-size: clamp(54px, 15vw, 76px); }
  .proof-bar { grid-template-columns: 1fr; }
  .proof-bar article { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-grid, .section-heading, .case-main, .timeline-item { grid-template-columns: 1fr; }
  .about-copy { padding-left: 22px; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .focus-card h3 { margin-top: 54px; }
  .closing-portrait { grid-template-columns: 1fr; gap: 36px; }
  .closing-portrait-quote { order: -1; }
  .section-heading { gap: 34px; }
  .case { padding: 30px 24px; }
  .case-main { gap: 38px; }
  .case h3 { font-size: 48px; }
  .case-flow { grid-template-columns: 1fr; gap: 8px; }
  .case-flow i { width: 1px; height: 16px; margin-left: 8px; }
  .brand-system { grid-template-columns: repeat(2, 1fr); }
  .brand-system div:nth-child(2) { border-right: 0; }
  .brand-system div:nth-child(-n+2) { border-bottom: 1px solid rgba(32,36,63,0.28); }
  .timeline-item { gap: 16px; padding: 38px 0; }
  footer { grid-template-columns: 1fr; }
  footer span:last-child { text-align: left; }
}
