/* Datum Design Build — site styles
   Brand: charcoal #262626, copper #B0683A, bone #F5F3EF, light copper #C97D4A, concrete #8C8C8C
   Type: Space Grotesk (headlines), Inter (body), Arial fallback */

:root {
  --charcoal: #262626;
  --copper: #B0683A;
  --copper-light: #C97D4A;
  --bone: #F5F3EF;
  --white: #FFFFFF;
  --concrete: #8C8C8C;
  --rule: #DAD6CF;
  --tint: #EAE7E1;
  --head: "Space Grotesk", Arial, Helvetica, sans-serif;
  --body: "Inter", Arial, Helvetica, sans-serif;
  --gutter: clamp(28px, 9vw, 160px);
  --max: 1280px;
  --text: 640px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--charcoal);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; margin: 0; letter-spacing: -0.015em; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--charcoal); color: var(--bone); padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.site-header { padding: 32px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; text-decoration: none; }
.brand img { height: 63px; width: auto; }
.brand .wordmark-fallback { font: 500 34px/1 var(--head); letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a, .nav button {
  font: 500 15px/1 var(--body); color: var(--charcoal); text-decoration: none;
  background: none; border: 0; padding: 8px 0; cursor: pointer;
}
.nav a:hover, .nav button:hover { color: var(--copper); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--charcoal); }
.nav .nav-cta { border: 1.5px solid var(--charcoal); padding: 12px 18px; }
.nav .nav-cta:hover { background: var(--charcoal); color: var(--bone); }

.dropdown { position: relative; }
.dropdown > button::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.dropdown ul {
  list-style: none; margin: 0; padding: 12px 0; position: absolute; top: calc(100% + 10px); left: -20px;
  min-width: 240px; background: var(--white); border-top: 2px solid var(--charcoal);
  display: none; z-index: 5;
}
.dropdown.open ul { display: block; }
.dropdown ul a { display: block; padding: 11px 20px; }

.menu-toggle { display: none; }

/* ---------- Page heading on a datum line ---------- */
.lead { padding: clamp(56px, 10vw, 140px) 0 0; overflow: hidden; }
.lead h1 {
  font-size: clamp(42px, 7vw, 92px); line-height: 1.02; letter-spacing: -0.03em;
  max-width: 12ch; padding-bottom: 28px; position: relative;
}
.lead h1::after {            /* the datum line: runs from the text edge off the right side of the page */
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px;
  width: 100vw; max-width: none; background: var(--charcoal);
}
.lead .intro { max-width: var(--text); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; margin-top: 36px; }
.lead.small h1 { font-size: clamp(38px, 5.5vw, 68px); max-width: 16ch; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.button {
  display: inline-block; background: var(--charcoal); color: var(--bone); text-decoration: none;
  font: 500 16px/1 var(--body); padding: 18px 26px; border: 0;
}
.button:hover { background: var(--copper); }
.textlink { font-weight: 500; text-decoration: none; box-shadow: inset 0 -1.5px 0 var(--copper); padding-bottom: 2px; }
.textlink:hover { color: var(--copper); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0 0; }
.section h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; margin-bottom: 36px; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.prose { max-width: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.big { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.points h3 { font-size: 21px; margin-bottom: 12px; }
.points p { color: #4a4a4a; margin: 0; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a, .rows .row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px;
  padding: 30px 0; text-decoration: none;
}
.rows h3 { font-size: clamp(22px, 2.2vw, 28px); }
.rows p { margin: 0; color: #4a4a4a; max-width: 560px; }
.rows a:hover h3 { color: var(--copper); }

.detail-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.detail-list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.detail-list h3 { font-size: 20px; }
.detail-list p { margin: 0; color: #4a4a4a; max-width: 560px; }

/* ---------- Photo placeholders / figures ---------- */
.photo { background: var(--tint); aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 16px; color: var(--concrete); font-size: 13px; }
.photo.portrait { aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Team ---------- */
.person { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.person h2 { margin-bottom: 6px; }
.person .role { color: var(--concrete); margin-bottom: 28px; }
.creds { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.creds li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }

/* ---------- Past work ---------- */
.project { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: start; padding: 56px 0; border-bottom: 1px solid var(--rule); }
.project:first-of-type { border-top: 1px solid var(--rule); }
.project h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 8px; }
.project .meta { color: var(--concrete); margin-bottom: 20px; font-size: 15px; }
.project .meta span { display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.contact-lines { font: 500 clamp(22px, 2.4vw, 30px)/1.4 var(--head); letter-spacing: -0.01em; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { color: var(--copper); }
.contact-lines p { margin: 0 0 8px; }

/* ---------- Closing band + footer ---------- */
.closing { padding: clamp(96px, 14vw, 180px) 0 clamp(96px, 12vw, 150px); }
.closing h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; max-width: 14ch; margin-bottom: 24px; }
.closing p { max-width: 520px; }

.site-footer { background: var(--charcoal); color: #cfccc6; padding: 72px 0 48px; font-size: 15px; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid #3b3b3b; }
.site-footer img { height: 66px; width: auto; }
.site-footer .wordmark-fallback { font: 500 30px/1 var(--head); color: var(--bone); }
.site-footer .tag { color: var(--bone); margin-top: 24px; font-family: var(--head); font-size: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: #cfccc6; }
.site-footer a:hover { color: var(--copper-light); }
.site-footer .fine { padding-top: 28px; color: var(--concrete); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .rows a, .rows .row, .detail-list li, .person, .project, .contact-grid { grid-template-columns: 1fr; gap: 14px; }
  .person, .project { gap: 32px; }
  .points { grid-template-columns: 1fr; gap: 36px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .site-footer .top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-toggle {
    display: block; background: none; border: 1.5px solid var(--charcoal); padding: 10px 14px;
    font: 500 15px/1 var(--body); color: var(--charcoal); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bone); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; border-bottom: 2px solid var(--charcoal); z-index: 20;
  }
  .site-header { position: relative; }
  .nav.open { display: flex; }
  .nav > a, .nav > .dropdown > button { padding: 16px 0; border-bottom: 1px solid var(--rule); text-align: left; width: 100%; }
  .nav .nav-cta { margin-top: 20px; text-align: center; }
  .dropdown ul { position: static; border-top: 0; background: none; padding: 0 0 8px 16px; min-width: 0; }
  .dropdown ul a { padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Home page: charcoal ---------- */
body.home { background: var(--charcoal); color: var(--bone); }
.home .site-header .wrap { justify-content: flex-end; }
.home .nav a, .home .nav button { color: var(--bone); }
.home .nav a:hover, .home .nav button:hover { color: var(--copper-light); }
.home .nav .nav-cta { border-color: var(--bone); }
.home .nav .nav-cta:hover { background: var(--bone); color: var(--charcoal); }
.home .menu-toggle { color: var(--bone); border-color: var(--bone); }
.home .dropdown ul { background: #2f2f2f; border-top-color: var(--copper-light); }
.home .hero-logo .wordmark-fallback { font: 500 clamp(64px, 12vw, 160px)/1 var(--head); color: var(--bone); }

.hero { padding: clamp(72px, 12vw, 170px) 0 0; }
.hero-logo { margin: 0; }
.hero-logo img { width: clamp(280px, 58vw, 720px); height: auto; }
.hero-text { margin-top: clamp(80px, 11vw, 150px); max-width: 680px; }
.hero-tag { font: 500 clamp(30px, 3.6vw, 46px)/1.12 var(--head); letter-spacing: -0.02em; margin: 0 0 24px; }
.home .intro { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #D8D4CD; max-width: 600px; }

.home p, .home .points p, .home .rows p { color: #BDB9B2; }
.home .big p, .home .prose.big { color: #E4E0D9; }
.home .rows, .home .rows li { border-color: #3F3F3F; }
.home .rows a:hover h3 { color: var(--copper-light); }
.home .button { background: var(--bone); color: var(--charcoal); }
.home .button:hover { background: var(--copper-light); color: var(--charcoal); }
.home .textlink { box-shadow: inset 0 -1.5px 0 var(--copper-light); }
.home .textlink:hover { color: var(--copper-light); }
.home .site-footer { background: #1E1E1E; }
.home .site-nav .nav { background: var(--charcoal); }
@media (max-width: 820px) {
  .home .nav { background: var(--charcoal); border-bottom-color: var(--bone); }
  .home .nav > a, .home .nav > .dropdown > button { border-bottom-color: #3F3F3F; }
  .home .site-header .wrap { justify-content: space-between; }
  .home .site-header .wrap::before { content: ""; }
}
.home .hero-tag { color: var(--bone); }

/* ---------- Headshot + pull quote ---------- */
.photo.has-img { padding: 0; background: none; }
.pull {
  margin: 0 0 28px; padding: 0 0 0 20px; border-left: 2px solid var(--copper);
  font: 500 clamp(22px, 2.2vw, 28px)/1.3 var(--head); letter-spacing: -0.01em; color: var(--charcoal);
}

/* ---------- Case study with before/after ---------- */
.case { border-top: 1px solid var(--rule); padding-top: 40px; }
.case-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: baseline; }
.case h2 { font-size: clamp(28px, 3vw, 40px); margin: 0; }
.case .meta { color: var(--concrete); font-size: 15px; margin: 0; }
.case .meta span { display: block; }
.case-text { max-width: var(--text); margin: 28px 0 40px calc((100% - 48px) * 4 / 11 + 48px); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.before-after figure { margin: 0; }
.before-after img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.before-after figcaption { font-size: 14px; color: var(--concrete); margin-top: 10px; }
@media (max-width: 900px) {
  .case-head { grid-template-columns: 1fr; gap: 10px; }
  .case-text { margin-left: 0; }
  .before-after { grid-template-columns: 1fr; }
}
.cases .case + .case { margin-top: clamp(80px, 10vw, 130px); }
.before-after.wide img { aspect-ratio: 3 / 2; }
.group-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; margin: 0 0 12px; }
.group-note { color: var(--concrete); margin: 0 0 36px; }
.group-title + .case { margin-top: 36px; }
.case h3 { font-size: clamp(26px, 2.8vw, 36px); margin: 0; }

/* ---------- Rotating recommendations ---------- */
.quote-track { display: grid; }
.quote-slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.quote-slide.is-active { opacity: 1; visibility: visible; }
.quote-slide blockquote {
  margin: 0; padding-left: 20px; border-left: 2px solid var(--copper);
  font: 500 clamp(20px, 2vw, 26px)/1.4 var(--head); letter-spacing: -0.01em; max-width: 640px;
}
.quote-slide figcaption { margin-top: 24px; padding-left: 22px; font-size: 15px; }
.quote-slide .who { display: block; font-weight: 500; }
.quote-slide .org { display: block; color: var(--concrete); }
.quote-controls { display: flex; align-items: center; gap: 20px; margin-top: 36px; padding-left: 22px; }
.quote-controls > button { background: none; border: 0; padding: 4px 0; font: 500 14px/1 var(--body); color: var(--charcoal); cursor: pointer; box-shadow: inset 0 -1.5px 0 var(--rule); }
.quote-controls > button:hover { color: var(--copper); box-shadow: inset 0 -1.5px 0 var(--copper); }
.quote-dots { display: flex; gap: 10px; }
.quote-dot { width: 22px; height: 2px; padding: 0; border: 0; background: var(--rule); cursor: pointer; }
.quote-dot.is-active { background: var(--charcoal); }
@media (prefers-reduced-motion: reduce) { .quote-slide { transition: none; } }
.case-quote { margin: -12px 0 40px calc((100% - 48px) * 4 / 11 + 48px); max-width: var(--text); }
.case-quote blockquote { margin: 0; padding-left: 20px; border-left: 2px solid var(--copper); font: 500 clamp(19px, 1.8vw, 23px)/1.4 var(--head); letter-spacing: -0.01em; }
.case-quote figcaption { margin-top: 12px; padding-left: 22px; font-size: 14px; color: var(--concrete); }
@media (max-width: 900px) { .case-quote { margin-left: 0; } }

/* ---------- Past work photos: smaller, aligned with the project text ---------- */
.before-after { margin-left: calc((100% - 48px) * 4 / 11 + 48px); max-width: 720px; gap: 16px; }
.before-after figcaption { font-size: 13px; margin-top: 8px; }
@media (max-width: 900px) {
  .before-after { margin-left: 0; max-width: 560px; grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 520px) {
  .before-after { grid-template-columns: 1fr; }
}
