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

:root {
  --bg: #e8ede4;
  --heading: #0d1f0d;
  --accent: #2d5a2d;
  --muted: #4a6a4a;
  --ink: #1a2e1a;
  --card-dark-text: #1a2418;
  --card-light-text: #f0ebe0;
  --pad-x: clamp(20px, 8.34vw, 120px);
  --serif-display: "Libre Caslon Display", Georgia, serif;
  --serif-text: "Libre Caslon Text", Georgia, serif;
  --serif-num: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--heading);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.page { max-width: 1440px; margin: 0 auto; overflow-x: clip; }

.section {
  padding: 40px var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section-title {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.225;
  color: var(--heading);
}

/* Hero */
.hero {
  position: relative;
  height: 961px;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  left: 44.88%;
  top: -45px;
  width: 1137px;
  height: 1064px;
  z-index: -1;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  mix-blend-mode: hard-light;
  opacity: 0.45;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, #e8ede400 12%, #e8ede400 92%, var(--bg) 100%),
    linear-gradient(-90deg, var(--bg) 0%, #e8ede400 15%, #e8ede400 85%, var(--bg) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0 0 1px 0;
  z-index: -1;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, #2d5a2d0f 0%, #e8ede40f 100%);
  opacity: 0.08;
}
.hero-content {
  position: relative;
  padding: 240px var(--pad-x) 0;
}
.hero-name {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 128px;
  line-height: 122px;
  letter-spacing: -3px;
  color: var(--heading);
}
.hero-name span { display: block; }
.hero-meta { margin-left: 4px; }
.hero-role {
  margin: 76px 0 0;
  font-size: 18px;
  line-height: 23px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.hero-tagline {
  margin: 13px 0 0;
  font-family: var(--serif-text);
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  line-height: 31px;
  color: var(--accent);
}
.socials {
  display: flex;
  gap: 28px;
  margin-top: 33px;
}
.socials a { display: block; color: #1a2e1a60; transition: color 0.2s ease; }
.socials a:hover { color: var(--accent); }
.socials svg { display: block; width: 18px; height: 18px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 64px;
  padding: 18px 28px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--card-light-text);
  font-size: 18px;
  font-weight: 500;
  line-height: 23px;
  transition: background-color 0.2s ease;
}
.cta:hover { background: #244a24; }
.cta svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
.cta:hover svg { transform: translate(2px, -2px); }
.hero-scroll {
  position: absolute;
  left: 50%;
  top: 910px;
  transform: translateX(-50%);
  color: #1a2e1a30;
}
.hero-scroll svg { display: block; width: 24px; height: 24px; }

/* Intro */
.intro-body { display: flex; flex-direction: column; gap: 24px; max-width: 980px; }
.intro-body p {
  margin: 0;
  font-family: var(--serif-text);
  font-size: 28px;
  line-height: 43px;
  color: var(--heading);
}
.intro-accent { width: 48px; height: 3px; border-radius: 2px; background: var(--accent); }

/* KPI cards */
.kpi { gap: 32px; }
.kpi-grid { display: flex; gap: 20px; }
.kpi-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.kpi-card {
  --c: #a8806a;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 220px;
  overflow: hidden;
  background: var(--c);
  color: var(--card-dark-text);
}
.kpi-card.tall { height: 300px; }
.kpi-card.light { color: var(--card-light-text); }
.kpi-art { position: relative; flex: 0 0 145px; overflow: hidden; }
.kpi-card.tall .kpi-art { flex-basis: 225px; }
.kpi-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.kpi-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--c) 0%, transparent) 0%,
    color-mix(in srgb, var(--c) 12.5%, transparent) 80%,
    color-mix(in srgb, var(--c) 80%, transparent) 95%,
    var(--c) 100%);
}
.kpi-card:hover .kpi-art img { transform: scale(1.04); }
.kpi-content {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 24px 24px 28px;
}
.kpi-num {
  font-family: var(--serif-num);
  font-weight: 700;
  font-size: 48px;
  line-height: 62px;
  white-space: nowrap;
}
.kpi-label { font-size: 13px; line-height: 17px; opacity: 0.7; }
.kpi-card:not(.light) .kpi-label { opacity: 0.5; }

/* Case studies */
.cases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
.case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c);
  color: var(--card-light-text);
}
.case-art { height: 420px; overflow: hidden; }
.case-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.case:hover .case-art img { transform: scale(1.03); }
.case-body { display: flex; flex-direction: column; gap: 3px; padding: 16px 24px 20px; }
.case-kicker { font-size: 10px; font-weight: 500; letter-spacing: 2px; line-height: 13px; opacity: 0.7; }
.case-title { margin: 0; font-family: var(--serif-display); font-weight: 400; font-size: 30px; line-height: 37px; }
.case-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.case-sub { margin: 0; font-size: 13px; line-height: 17px; opacity: 0.7; }
.case-credit { font-size: 11px; line-height: 14px; opacity: 0.5; }
.case-stats { display: flex; gap: 12px; padding: 12px 0; margin: 0; }
.case-stats div { flex: 1 1 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.case-stats dt { order: 2; font-size: 9px; font-weight: 500; letter-spacing: 1px; line-height: 12px; opacity: 0.7; }
.case-stats dd { order: 1; margin: 0; font-family: var(--serif-text); font-weight: 700; font-size: 20px; line-height: 25px; }
.case-quote {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #f0ebe020;
}
.case-quote blockquote { margin: 0; font-family: var(--serif-text); font-style: italic; font-size: 12px; line-height: 20px; }
.case-quote figcaption { font-size: 10px; line-height: 13px; opacity: 0.7; }

/* Selected work */
.work { gap: 32px; }
.work-table { width: 100%; max-width: 1100px; padding: 0 15px; }
.work-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #1a2e1a10;
  font-size: 13px;
  line-height: 17px;
  color: var(--muted);
}
.work-head {
  align-items: start;
  padding: 12px 0;
  border-bottom-color: #1a2e1a15;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  line-height: 13px;
}
.work-project { display: flex; align-items: center; gap: 10px; height: 28px; }
.work-logo { display: flex; align-items: center; justify-content: center; width: 36px; height: 28px; flex: none; }
.work-logo img { width: 24px; height: 24px; object-fit: contain; }
.work-name { font-size: 16px; font-weight: 500; line-height: 21px; color: var(--heading); }

/* Footer */
.footer { border-top: 1px solid #1a2e1a12; }
.footer-cta {
  margin: 0;
  font-family: var(--serif-text);
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  line-height: 35px;
  color: var(--accent);
}
.footer-grid { display: flex; }
.footer-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col h3 { margin: 0; font-family: var(--serif-text); font-weight: 700; font-size: 15px; line-height: 19px; color: var(--heading); }
.footer-col a { font-size: 13px; line-height: 17px; color: var(--muted); width: fit-content; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { align-items: flex-end; justify-content: flex-end; font-size: 12px; line-height: 16px; color: #4a6a4a80; }

/* Tablet */
@media (max-width: 1100px) {
  .hero { height: auto; min-height: 760px; padding-bottom: 120px; }
  .hero-content { padding-top: 180px; }
  .hero-art { left: 38%; }
  .hero-name { font-size: 104px; line-height: 100px; }
  .hero-role { margin-top: 56px; }
  .hero-scroll { top: auto; bottom: 40px; }
  .intro-body p { font-size: 24px; line-height: 37px; }
  .kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-art { height: 340px; }
}

@media (max-width: 820px) {
  .cases-grid { grid-template-columns: minmax(0, 1fr); }
  .work-row { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 600px) {
  .section { gap: 28px; padding-top: 32px; padding-bottom: 32px; }
  .section-title { font-size: 32px; }
  .hero { min-height: 0; padding-bottom: 96px; }
  .hero-content { padding-top: 96px; }
  .hero-art { left: 30%; top: 0; width: 640px; height: 599px; }
  .hero-art img { opacity: 0.22; }
  .hero-name { font-size: clamp(56px, 18vw, 76px); line-height: 0.96; letter-spacing: -2px; }
  .hero-meta { margin-left: 2px; }
  .hero-role { margin-top: 40px; font-size: 15px; }
  .hero-tagline { font-size: 20px; line-height: 27px; }
  .cta { margin-top: 40px; font-size: 16px; padding: 16px 24px; }
  .intro-body p { font-size: 20px; line-height: 31px; }
  .kpi-grid { gap: 12px; }
  .kpi-col { gap: 12px; }
  .kpi-card { height: 190px; }
  .kpi-card.tall { height: 240px; }
  .kpi-art { flex-basis: 110px; }
  .kpi-card.tall .kpi-art { flex-basis: 160px; }
  .kpi-content { padding: 16px 16px 18px; gap: 4px; }
  .kpi-num { font-size: 34px; line-height: 44px; }
  .kpi-label { font-size: 12px; line-height: 15px; }
  .case-art { height: 240px; }
  .case-body { padding: 16px 20px 20px; }
  .case-title { font-size: 26px; line-height: 32px; }
  .case-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .work-table { padding: 0; }
  .work-head { display: none; }
  .work-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "project" "role" "year";
    row-gap: 2px;
  }
  .work-row .work-project { grid-area: project; }
  .work-row .work-role { grid-area: role; padding-left: 46px; }
  .work-row .work-year { grid-area: year; padding-left: 46px; font-size: 12px; opacity: 0.8; }
  .footer-cta { font-size: 24px; line-height: 30px; }
  .footer-grid { flex-wrap: wrap; row-gap: 28px; }
  .footer-col { flex: 1 1 45%; }
  .footer-copy { flex-basis: 100%; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { transition: none !important; }
}
