:root {
  --ink: #101112;
  --muted: #5f6468;
  --soft: #f6f3ee;
  --paper: #fffcf7;
  --line: #ded8cc;
  --green: #2f8f72;
  --green-dark: #1d5f4f;
  --coral: #f26b4f;
  --amber: #f0b43f;
  --blue: #4b8fca;
  --black: #101112;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 17, 18, 0.13);
  --max: 1180px;
}

* {
  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;
  font-size: 17px;
  line-height: 1.65;
}

body.lock-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  background: rgba(255, 252, 247, 0.9);
  border-bottom: 1px solid rgba(16, 17, 18, 0.09);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--ink);
  color: var(--white);
}

.section-band {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0;
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 252, 247, 0.98) 0%, rgba(255, 252, 247, 0.92) 44%, rgba(255, 252, 247, 0.2) 100%),
    radial-gradient(circle at 80% 20%, rgba(242, 107, 79, 0.22), transparent 32%),
    var(--soft);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(92vh - 70px);
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 54px;
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-phone {
  position: absolute;
  width: 260px;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border: 10px solid var(--black);
  border-radius: 34px;
  background: var(--black);
  box-shadow: var(--shadow);
}

.hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-phone-one {
  right: 170px;
  top: 84px;
  transform: rotate(7deg);
}

.hero-phone-two {
  right: 70px;
  top: 190px;
  transform: rotate(-8deg);
}

.eyebrow,
.case-kicker {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 620px;
  color: #303335;
  font-size: 22px;
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

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

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

.proof-strip {
  display: grid;
  max-width: 820px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 42px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.proof-strip div {
  min-height: 112px;
  padding: 18px;
  background: rgba(255, 252, 247, 0.93);
}

.proof-strip dt {
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 800;
}

.proof-strip dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.intro-band,
.method-band {
  background: var(--white);
}

.intro-grid,
.method-grid,
.cv-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.intro-copy {
  color: #333638;
  font-size: 19px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 40px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(16, 17, 18, 0.06);
}

.feature-case {
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, rgba(47, 143, 114, 0.11), rgba(255, 252, 247, 1) 42%),
    var(--white);
}

.case-copy p {
  color: #303335;
}

.impact-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.impact-list li {
  position: relative;
  padding-left: 22px;
  color: #383b3d;
}

.impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.device-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.device-pair.compact {
  gap: 14px;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  overflow: hidden;
  border: 10px solid var(--black);
  border-radius: 34px;
  background: var(--black);
  box-shadow: var(--shadow);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 44%;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-frame.offset {
  margin-top: 54px;
}

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

.case-grid .case-study {
  grid-template-columns: 1fr;
  align-items: start;
}

.tooling-grid,
.impact-grid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.tool-card,
.impact-card,
.archive-grid article,
.cv-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.tool-card,
.impact-card {
  padding: 24px;
}

.tool-card:nth-child(1) {
  border-top: 5px solid var(--amber);
}

.tool-card:nth-child(2) {
  border-top: 5px solid var(--green);
}

.tool-card:nth-child(3) {
  border-top: 5px solid var(--blue);
}

.metric {
  margin: 18px 0 0;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}

.impact-band {
  background: #151515;
  color: var(--white);
}

.impact-band .section-heading p,
.impact-band .impact-list li,
.impact-band .impact-card p {
  color: rgba(255, 255, 255, 0.72);
}

.impact-band .eyebrow {
  color: #85d7bd;
}

.impact-card {
  position: relative;
  min-height: 390px;
  background: #1f2020;
  border-color: rgba(255, 255, 255, 0.12);
}

.impact-card .impact-list li::before {
  background: var(--amber);
}

.impact-index {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--amber);
  font-weight: 800;
}

.method-list {
  display: grid;
  gap: 18px;
}

.method-list article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.method-list article:last-child {
  border-bottom: 0;
}

.method-list h3 {
  font-size: 22px;
}

.method-list p {
  color: var(--muted);
}

.cv-band {
  background: var(--soft);
}

.cv-grid {
  align-items: center;
}

.cv-grid p {
  color: #333638;
}

.cv-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.cv-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px;
  background: var(--white);
}

.cv-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.cv-row strong {
  line-height: 1.35;
}

.archive-band {
  background: var(--white);
}

.archive-grid article {
  overflow: hidden;
}

.archive-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 20px;
  background: var(--soft);
}

.archive-grid h3,
.archive-grid p {
  margin-left: 20px;
  margin-right: 20px;
}

.archive-grid h3 {
  margin-top: 18px;
}

.archive-grid p {
  margin-bottom: 22px;
  color: var(--muted);
}

.contact-band {
  background: var(--green-dark);
  color: var(--white);
}

.contact-band .eyebrow {
  color: #c4f0df;
}

.contact-band .button {
  border-color: rgba(255, 255, 255, 0.9);
}

.contact-band .button.primary {
  background: var(--white);
  color: var(--green-dark);
}

.contact-band .button.secondary {
  color: var(--white);
}

.site-footer {
  padding: 26px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 980px) {
  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 34px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 760px;
    justify-content: flex-start;
  }

  .hero-phone-one {
    right: 210px;
    top: 390px;
  }

  .hero-phone-two {
    right: 92px;
    top: 430px;
  }

  .proof-strip,
  .tooling-grid,
  .impact-grid,
  .archive-grid,
  .case-grid,
  .intro-grid,
  .method-grid,
  .cv-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .case-study {
    grid-template-columns: 1fr;
  }

  .impact-card {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .section-inner {
    width: min(100% - 28px, var(--max));
    padding: 58px 0;
  }

  .hero-inner {
    min-height: 880px;
    padding-top: 44px;
  }

  .hero-copy {
    font-size: 19px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 29px;
  }

  h3 {
    font-size: 23px;
  }

  .hero-phone {
    width: 210px;
    border-width: 8px;
    border-radius: 28px;
  }

  .hero-phone-one {
    right: 118px;
    top: 500px;
  }

  .hero-phone-two {
    right: -8px;
    top: 548px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study {
    padding: 22px;
  }

  .device-pair {
    gap: 10px;
  }

  .phone-frame {
    border-width: 7px;
    border-radius: 25px;
  }

  .phone-frame::before {
    height: 20px;
  }

  .phone-frame.offset {
    margin-top: 30px;
  }

  .cv-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 440px) {
  .brand span:last-child {
    font-size: 14px;
  }

  .hero-inner {
    min-height: 840px;
  }

  .hero-phone {
    width: 176px;
  }

  .hero-phone-one {
    right: 148px;
    top: 548px;
  }

  .hero-phone-two {
    right: 10px;
    top: 590px;
  }

  .proof-strip,
  .device-pair {
    grid-template-columns: 1fr;
  }

  .device-pair .offset {
    margin-top: 0;
  }

  .proof-strip div {
    min-height: auto;
  }

  .button {
    width: 100%;
  }
}
