:root {
  --ink: #151414;
  --paper: #f7f3ec;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --line: #ded7ca;
  --muted: #67615a;
  --muted-strong: #3e3a35;
  --ember: #f05a28;
  --green: #18805c;
  --blue: #2867c8;
  --plum: #7a3e75;
  --gold: #d99a26;
  --shadow: 0 28px 70px rgba(21, 20, 20, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 236, 0.88);
  border-bottom: 1px solid rgba(222, 215, 202, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.button,
.proof-header,
.project-topline {
  display: inline-flex;
  align-items: center;
}

.brand,
.nav a,
.button {
  text-decoration: none;
}

.brand {
  min-width: max-content;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  font-size: 12px;
  box-shadow: inset 0 -4px 0 rgba(240, 90, 40, 0.86);
}

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

.nav a {
  padding: 8px 0;
}

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

.hero {
  min-height: calc(92vh - 69px);
  padding: clamp(36px, 5.5vw, 72px) clamp(18px, 5vw, 72px) clamp(28px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(247, 243, 236, 0.48)),
    radial-gradient(circle at 10% 15%, rgba(240, 90, 40, 0.13), transparent 28%),
    radial-gradient(circle at 85% 22%, rgba(40, 103, 200, 0.14), transparent 25%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--ember);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(44px, 5.8vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(31px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--muted-strong);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 16px 38px rgba(21, 20, 20, 0.18);
}

.button.secondary {
  color: #fff;
  background: var(--ember);
  border-color: var(--ember);
}

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

.proof-panel {
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proof-header {
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: var(--muted-strong);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(24, 128, 92, 0.15);
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-row div {
  padding: 20px 18px;
  background: var(--surface);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  margin-bottom: 6px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1;
}

.metric-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.proof-panel img {
  width: 100%;
  height: min(420px, 44vh);
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
}

.signal-strip div {
  min-height: 204px;
  padding: clamp(24px, 3.4vw, 42px);
  background: var(--ink);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.signal-strip div:nth-child(2) {
  background: #1f2f24;
}

.signal-strip div:nth-child(3) {
  background: #231b2d;
  border-right: 0;
}

.signal-strip span,
.project-topline span,
.timeline span,
.impact-card span,
.case-board span {
  display: inline-block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signal-strip span {
  margin-bottom: 26px;
  color: var(--gold);
}

.signal-strip strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 22px;
}

.signal-strip p {
  max-width: 380px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.section,
.stack-section,
.timeline-section,
.contact-section {
  padding: clamp(62px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.section-kicker {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: end;
  max-width: 1240px;
  margin: 0 auto 34px;
}

.section-kicker.compact {
  display: block;
  max-width: 760px;
  margin-left: 0;
}

.impact-grid,
.project-grid {
  display: grid;
  max-width: 1240px;
  margin: 0 auto;
  gap: 16px;
}

.impact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-card,
.project-card {
  min-height: 286px;
  padding: 26px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.impact-card span {
  margin-bottom: 48px;
  color: var(--green);
}

.impact-card p,
.project-card p,
.case-copy p,
.timeline p,
.contact-section p {
  margin-bottom: 0;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
  padding: clamp(68px, 8vw, 112px) clamp(18px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(21, 20, 20, 0.96), rgba(47, 30, 35, 0.94)),
    var(--ink);
}

.case-copy {
  max-width: 660px;
}

.case-copy .eyebrow {
  color: #ffb08d;
}

.case-copy h2 {
  margin-bottom: 22px;
}

.case-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.case-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.case-board div {
  min-height: 178px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.case-board div:nth-child(1) {
  border-top-color: var(--ember);
}

.case-board div:nth-child(2) {
  border-top-color: var(--green);
}

.case-board div:nth-child(3) {
  border-top-color: var(--blue);
}

.case-board div:nth-child(4) {
  border-top-color: var(--gold);
}

.case-board span {
  margin-bottom: 42px;
  color: rgba(255, 255, 255, 0.58);
}

.case-board strong {
  display: block;
  font-size: clamp(23px, 2.5vw, 34px);
  line-height: 1.05;
}

.project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 334px;
}

.project-topline {
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.project-topline span:last-child {
  color: var(--blue);
  text-align: right;
}

.project-card h3 {
  margin: auto 0 14px;
  font-size: 24px;
}

.live-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 1240px;
  margin: 18px auto 0;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 790;
  line-height: 1.25;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-link:hover {
  border-color: rgba(240, 90, 40, 0.55);
  box-shadow: 0 14px 30px rgba(21, 20, 20, 0.08);
  transform: translateY(-2px);
}

.project-link span {
  flex: 0 0 auto;
  color: var(--ember);
  font-weight: 900;
}

.stack-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(34px, 6vw, 78px);
  background: var(--surface-strong);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stack-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stack-columns div {
  min-height: 190px;
  padding: 24px;
  background: var(--surface);
}

.stack-columns h3 {
  color: var(--ember);
}

.stack-columns p {
  margin-bottom: 0;
}

.timeline {
  max-width: 980px;
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  color: var(--plum);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(21, 20, 20, 0.95), rgba(22, 70, 68, 0.92)),
    var(--ink);
}

.contact-section .eyebrow {
  color: #9ce7c5;
}

.contact-section h2 {
  max-width: 800px;
  margin-bottom: 24px;
}

.contact-section p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.contact-actions {
  justify-content: flex-end;
}

.contact-actions .button.ghost {
  color: #fff;
}

@media (max-width: 1040px) {
  .hero-grid,
  .case-study,
  .stack-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .live-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-card {
    min-height: 220px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 24px 14px 20px;
    overflow: hidden;
  }

  .hero-grid {
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-copy,
  .proof-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }

  h1 {
    margin-bottom: 12px;
    max-width: 100%;
    font-size: clamp(30px, 8.7vw, 36px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(27px, 8vw, 38px);
    line-height: 1.04;
  }

  h3 {
    margin-bottom: 8px;
    font-size: 18px;
  }

  p {
    line-height: 1.52;
  }

  .hero-text {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.48;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-actions .button:first-child {
    grid-column: 1 / -1;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: auto;
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
  }

  .proof-header {
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 12px;
  }

  .proof-header span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .metric-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .metric-row div {
    min-width: 0;
    padding: 12px;
  }

  .metric-row strong {
    font-size: 27px;
  }

  .metric-row span {
    font-size: 12px;
  }

  .proof-panel img {
    display: none;
  }

  .proof-panel,
  .impact-card,
  .project-card,
  .case-board div,
  .stack-columns div,
  .project-link {
    min-width: 0;
  }

  .section,
  .stack-section,
  .timeline-section,
  .contact-section,
  .case-study {
    padding: 34px 14px;
  }

  .section-kicker,
  .section-kicker.compact {
    margin-bottom: 18px;
  }

  .signal-strip,
  .section-kicker,
  .case-board,
  .project-grid,
  .live-projects,
  .stack-columns {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    min-height: 0;
    padding: 18px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .signal-strip span {
    margin-bottom: 8px;
  }

  .signal-strip strong {
    margin-bottom: 6px;
    font-size: 18px;
  }

  .signal-strip p {
    font-size: 14px;
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }

  .impact-grid,
  .project-grid {
    gap: 10px;
  }

  .impact-card,
  .project-card {
    min-height: 0;
    padding: 18px;
  }

  .impact-card span {
    margin-bottom: 18px;
  }

  .project-card {
    gap: 24px;
  }

  .project-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
  }

  .project-topline {
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
  }

  .live-projects {
    gap: 8px;
    margin-top: 10px;
  }

  .project-link {
    min-height: 46px;
    padding: 11px 12px;
    font-size: 14px;
  }

  .case-study {
    gap: 22px;
  }

  .case-copy h2 {
    margin-bottom: 14px;
  }

  .case-copy p,
  .contact-section p {
    font-size: 15px;
  }

  .case-board {
    gap: 8px;
  }

  .case-board div,
  .stack-columns div {
    min-height: 0;
    padding: 16px;
  }

  .case-board span {
    margin-bottom: 18px;
  }

  .case-board strong {
    font-size: 22px;
  }

  .stack-section {
    gap: 20px;
  }

  .timeline-section .section-kicker.compact {
    margin-bottom: 8px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .contact-section {
    gap: 20px;
  }

  .contact-section h2 {
    margin-bottom: 14px;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-actions .button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .nav a {
    font-size: 13px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .project-card,
  .impact-card,
  .case-board div,
  .stack-columns div {
    padding: 16px;
  }

  .button {
    min-height: 40px;
  }
}
