:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f1f1f1;
  --text-primary: #1e1e1e;
  --text-secondary: #4a4a4a;
  --text-tertiary: #8b8b8b;
  --text-inverse: #ffffff;
  --gray-100: #f1f1f1;
  --gray-400: #8b8b8b;
  --gray-700: #4a4a4a;
  --accent: #ff6200;
  --teal: #009d8b;
  --space-x: 128px;
  --space-y: 96px;
  --radius: 16px;
  --pill: 9999px;
  --header-h: 80px;
  --content: 1664px;
  --font-display: "Fraunces", serif;
  --font-body: "Roboto", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

section[id],
#topo {
  scroll-margin-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  min-width: 320px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page {
  overflow-x: hidden;
}

.icon {
  width: 16px;
  height: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-x);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--gray-400);
  backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.24px;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  background: transparent;
  color: var(--text-primary);
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  background: var(--bg-secondary);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #000;
  color: var(--text-inverse);
}

.section {
  padding: var(--space-y) var(--space-x);
}

.section-hero,
.section-skills {
  background: var(--bg-secondary);
}

.section-about {
  background: var(--text-primary);
  color: var(--text-inverse);
}

.section-cases,
.section-cta,
.footer {
  background: var(--bg-primary);
}

.hero-inner {
  max-width: 927px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  line-height: 80px;
  letter-spacing: -0.64px;
  max-width: 563px;
}

.accent {
  color: var(--accent);
}

.lead {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: var(--text-secondary);
  max-width: 563px;
}

.btn-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.metrics {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  padding-top: 24px;
  border-top: 0.5px solid var(--text-tertiary);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 288px;
}

.metric:nth-child(2) {
  width: 303px;
}

.metric-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.32px;
}

.metric p:not(.metric-n),
.mono {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: var(--text-secondary);
  font-weight: 400;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1 1 480px;
  max-width: 817px;
  min-width: 0;
}

.about-copy .eyebrow {
  color: var(--text-tertiary);
}

.about-copy p {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: var(--text-inverse);
}

.info-lines {
  flex: 1 1 360px;
  max-width: 720px;
  min-width: 0;
}

.info-row {
  border-top: 0.5px solid var(--gray-700);
  padding-top: 16px;
}

.info-row .row {
  display: flex;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
}

.info-label {
  width: 200px;
  flex-shrink: 0;
  color: var(--gray-400);
}

.info-value {
  color: var(--gray-100);
  flex: 1;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-head {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  width: 100%;
}

.title-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 64px;
  letter-spacing: -0.48px;
  max-width: 539px;
}

.section-intro {
  width: 681px;
  flex-shrink: 0;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -0.24px;
  color: var(--gray-700);
  text-align: right;
}

.case-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  padding: 32px 32px 32px 0;
  border-top: 0.5px solid var(--gray-400);
}

.case-body {
  display: flex;
  gap: 64px;
  width: 720px;
  align-items: flex-start;
}

.case-index {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: var(--gray-400);
  white-space: nowrap;
}

.case-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.case-copy h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.24px;
}

.case-copy p {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: var(--gray-400);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  border: 0.5px solid var(--gray-400);
  border-radius: var(--pill);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 12px;
  line-height: 24px;
  color: var(--text-primary);
}

.case-result {
  border-top: 0.5px dashed var(--gray-400);
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 24px;
  letter-spacing: -0.12px;
  color: var(--teal);
}

.case-thumb {
  width: 400px;
  height: 350px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skills-grid {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

.skill-card {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.skill-card h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 64px;
  letter-spacing: -0.24px;
  color: var(--text-secondary);
}

.skill-line {
  border-bottom: 0.5px solid var(--gray-400);
  padding-bottom: 16px;
}

.skill-line p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 24px;
  letter-spacing: -0.24px;
}

.skill-lines {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cta-grid {
  display: flex;
  gap: var(--space-x);
  align-items: flex-start;
  justify-content: center;
  max-width: var(--content);
  margin: 0 auto;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 563px;
  flex-shrink: 0;
}

.cta-copy .btn-row {
  gap: 16px;
}

.form-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.25);
}

.form-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
  color: var(--text-secondary);
}

.optional {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 12px;
  line-height: 24px;
  color: var(--gray-400);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--gray-400);
  border-radius: var(--radius);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
  background: #fff;
  outline: none;
}

.field textarea {
  min-height: 78px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--gray-400);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--text-primary);
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 20px;
  color: var(--teal);
  min-height: 20px;
}

.form-status.error {
  color: var(--accent);
}

.footer {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-x);
  border-top: 1px solid var(--gray-400);
}

.footer p {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1280px) {
  :root {
    --space-x: 48px;
    --space-y: 64px;
  }

  .h1 {
    font-size: 48px;
    line-height: 60px;
  }

  .h2 {
    font-size: 36px;
    line-height: 48px;
  }

  .about-grid,
  .cta-grid,
  .section-head,
  .case-card,
  .case-body,
  .skills-grid {
    flex-direction: column;
  }

  .about-grid {
    gap: 32px;
  }

  .about-copy,
  .info-lines,
  .cta-copy,
  .section-intro,
  .case-body,
  .skill-card,
  .case-thumb {
    width: 100%;
  }

  .section-intro {
    text-align: left;
  }

  .case-thumb {
    height: 240px;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --space-x: 20px;
  }

  .header {
    gap: 12px;
  }

  .logo {
    font-size: 18px;
  }

  .metrics,
  .btn-row {
    flex-direction: column;
  }

  .metric,
  .metric:nth-child(2) {
    width: 100%;
  }

  .info-row .row {
    flex-direction: column;
    gap: 4px;
  }

  .info-label {
    width: auto;
  }
}
