:root {
  --ink: #151515;
  --muted: #62615d;
  --soft: #f7f6f1;
  --paper: #fffefa;
  --line: #dedbd1;
  --accent: #2f6652;
  --accent-2: #a45237;
  --blue: #405f86;
  --shadow: 0 24px 70px rgba(36, 34, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 254, 250, 0.86);
  border-bottom: 1px solid rgba(222, 219, 209, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 11px;
}

.nav {
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

main {
  padding: 0 clamp(20px, 5vw, 72px) 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(34px, 7vw, 86px) 0 42px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.case-status,
.case-number,
.intro-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-header h2,
.contact h2 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(58px, 10vw, 148px);
}

.hero-text {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.ghost {
  display: inline-flex;
  align-items: center;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button.ghost:hover {
  color: var(--ink);
}

.hero-portrait {
  align-self: end;
  justify-self: center;
  width: min(100%, 500px);
  margin: 0;
}

.hero-portrait img {
  width: 100%;
  max-height: min(680px, calc(100vh - 122px));
  object-fit: contain;
  object-position: bottom center;
}

.intro-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 calc(clamp(20px, 5vw, 72px) * -1);
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-grid article {
  min-height: 220px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--paper);
}

.intro-grid h2 {
  margin: 46px 0 14px;
  font-size: clamp(24px, 3vw, 38px);
}

.intro-grid p,
.about-grid p,
.section-header p {
  color: var(--muted);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(60px, 9vw, 112px) 0 32px;
}

.section-header .eyebrow {
  margin-top: 14px;
}

.section-header h2 {
  font-size: clamp(38px, 6vw, 78px);
}

.section-header p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 18px;
}

.cases {
  display: grid;
  gap: 12px;
}

.case {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: clip;
}

.case summary {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 34px;
  gap: 18px;
  align-items: center;
  min-height: 88px;
  padding: 18px clamp(18px, 3vw, 30px);
  cursor: pointer;
  list-style: none;
}

.case summary::-webkit-details-marker {
  display: none;
}

.case summary::after {
  content: "+";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.case[open] summary::after {
  content: "-";
  background: var(--ink);
  color: var(--paper);
}

.case summary strong,
.case summary em {
  display: block;
}

.case summary strong {
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.05;
}

.case summary em {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
}

.case-status {
  justify-self: end;
  color: var(--accent);
}

.case-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 56px);
  padding: 0 clamp(18px, 3vw, 30px) clamp(22px, 4vw, 40px) calc(clamp(18px, 3vw, 30px) + 74px);
}

.case-study {
  align-items: start;
  row-gap: clamp(30px, 5vw, 70px);
}

.case-study .case-copy {
  align-self: start;
}

.case-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.08;
}

.case-copy p {
  margin-top: 0;
  color: var(--muted);
  font-size: 18px;
}

.case-copy p + p {
  margin-top: 16px;
}

.case-copy ul {
  margin: 24px 0 0;
  padding-left: 18px;
}

.case-copy li {
  margin: 10px 0;
}

.case-visual {
  margin: 0;
}

.case-visual-large {
  grid-row: span 2;
}

.case img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.case-study img {
  height: auto;
  object-fit: contain;
}

.about {
  border-bottom: 1px solid var(--line);
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.about-grid p {
  min-height: 250px;
  margin: 0;
  padding: clamp(26px, 5vw, 56px);
  background: var(--paper);
  font-size: clamp(21px, 2.4vw, 32px);
  line-height: 1.25;
}

.contact {
  padding: clamp(70px, 10vw, 130px) 0;
  border-bottom: 1px solid var(--line);
}

.contact h2 {
  max-width: 880px;
  font-size: clamp(38px, 7vw, 88px);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(24px, 4vw, 42px);
  margin-top: 28px;
}

.contact-links a {
  display: inline-flex;
  color: var(--accent-2);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
}

.contact-links a:hover {
  color: var(--ink);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

[data-reveal] {
  transform: translateY(16px);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

[data-reveal].is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero,
  .section-header,
  .case-body {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-portrait {
    grid-row: 1;
    width: min(100%, 420px);
  }

  .intro-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .case summary {
    grid-template-columns: 42px minmax(0, 1fr) 34px;
  }

  .case summary::after {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .case-status {
    grid-column: 2;
    justify-self: start;
    margin-right: 0;
  }

  .case-body {
    padding-left: clamp(18px, 3vw, 30px);
  }

  .case-visual-large {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .hero h1,
  .section-header h2,
  .contact h2 {
    line-height: 1;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .case summary {
    min-height: 112px;
  }
}
