@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Archivo', sans-serif; color: #000; background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a { text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.7; }

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
}
.skip-link:focus {
  left: 0;
}

/* === UTILITIES === */
.mb-0 { margin-bottom: 0; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.text-strikethrough { text-decoration: line-through; opacity: 0.37; }

/* === FOCUS & INTERACTION === */
a:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
button:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.form-input:focus, .form-textarea:focus { outline: 2px solid #000; outline-offset: 0; }
.nav-link:hover { opacity: 0.55; }
.footer-link:hover { opacity: 0.55; }
.card:hover .card-title { text-decoration: underline; }
.form-submit:hover { background: #333; }

/* === NAV === */
.nav { background: #fff; }
.nav-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 32px 80px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-wordmark { font-size: 16px; font-weight: 500; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 40px; }
.nav-link { font-size: 14px; font-weight: 400; }

/* === FOOTER === */
.footer { background: #fff; border-top: 1px solid #000; }
.footer-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 48px 80px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-size: 14px; font-weight: 600; }
.footer-meta { font-size: 14px; color: #666; }
.footer-links { display: flex; gap: 40px; }
.footer-link { font-size: 14px; }

/* === HOME: HERO === */
.hero {
  max-width: 1440px; margin: 0 auto;
  padding: 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 80px;
  min-height: 720px;
}
.hero-text { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.hero-heading { font-size: clamp(44px, 5vw, 72px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.hero-sub { font-size: 18px; font-weight: 400; line-height: 1.6; max-width: 560px; }
.hero-photo { width: 440px; height: 520px; object-fit: cover; flex-shrink: 0; }

/* === HOME + WORK: CARDS === */
.section { max-width: 1440px; margin: 0 auto; padding: 80px; }
.section-heading {
  font-size: 36px; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.005em; margin-bottom: 64px;
}
.cards-grid { display: flex; flex-direction: column; gap: 40px; }
.cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cards-row--three { grid-template-columns: repeat(3, 1fr); }
.cards-row--three .card-image { aspect-ratio: 400 / 280; }
.card { display: flex; flex-direction: column; gap: 16px; }
.card-image { width: 100%; aspect-ratio: 620 / 280; object-fit: cover; }
.card-image--tall { aspect-ratio: 620 / 360; }
.card-text { display: flex; flex-direction: column; gap: 8px; }
.card-category { font-size: 14px; font-weight: 500; color: #666; line-height: 1.4; }
.card-title { font-size: 24px; font-weight: 600; line-height: 1.3; }

/* === ABOUT === */
.about-intro {
  max-width: 1440px; margin: 0 auto;
  padding: 80px;
  display: flex; align-items: flex-start; gap: 80px;
}
.about-photo { width: 440px; height: 520px; object-fit: cover; flex-shrink: 0; }
.about-text { flex: 1; display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.about-heading { font-size: 36px; font-weight: 700; line-height: 1.2; }
.about-bio { font-size: 18px; font-weight: 400; line-height: 1.6; }

.skills-section {
  max-width: 1440px; margin: 0 auto;
  padding: 80px;
  border-top: 1px solid #000;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
.skills-group-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 24px;
}
.skills-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.skill-tag { font-size: 14px; font-weight: 400; border: 1px solid #000; padding: 6px 14px; }

.currently-section {
  max-width: 1440px; margin: 0 auto;
  padding: 80px;
  border-top: 1px solid #000;
}
.section-label {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 20px; display: block;
}
.currently-body { font-size: 16px; font-weight: 400; line-height: 1.7; max-width: 640px; }

.contact-section {
  max-width: 1440px; margin: 0 auto;
  padding: 80px;
  border-top: 1px solid #000;
}
.contact-heading { font-size: 36px; font-weight: 700; line-height: 1.2; margin-bottom: 48px; }
.form { max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 14px; font-weight: 500; }
.form-input, .form-textarea {
  font-family: 'Archivo', sans-serif;
  font-size: 14px; font-weight: 400;
  border: 1px solid #000; padding: 12px 16px;
  background: #fff; color: #000; width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: #999; }
.form-textarea { min-height: 140px; resize: vertical; }
.form-submit {
  font-family: 'Archivo', sans-serif;
  font-size: 14px; font-weight: 600;
  background: #000; color: #fff;
  border: none; padding: 14px 32px;
  cursor: pointer; align-self: flex-start;
}
@media (prefers-reduced-motion: no-preference) {
  a { transition: opacity 0.15s; }
  .form-submit { transition: background 0.15s; }
}
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-status { font-size: 14px; line-height: 1.6; min-height: 1.4em; }
.form-status--success { color: #1a7a3a; }
.form-status--error { color: #a00; }
.form-note { font-size: 13px; color: #666; margin-bottom: 16px; }
.required-mark { color: #a00; }
.form-field-error { display: block; font-size: 12px; color: #a00; margin-top: 4px; }
.form-field-error:empty { display: none; }
.form-input[aria-invalid="true"], .form-textarea[aria-invalid="true"] { border-color: #a00; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* === CASE STUDY: SHARED === */
.cs-hero { padding: 100px 0 0; }
.cs-hero-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.cs-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 32px; display: block;
}
.cs-title { font-size: 52px; font-weight: 700; line-height: 1.08; margin-bottom: 24px; }
.cs-subtitle { font-size: 17px; font-weight: 400; line-height: 1.6; margin-bottom: 48px; }
.cs-divider { height: 1px; background: rgba(255,255,255,0.3); margin-bottom: 40px; }


.meta-row {
  display: flex; gap: 48px; margin-bottom: 80px;
  flex-wrap: wrap; padding-bottom: 40px;
}
.meta-item { display: flex; flex-direction: column; gap: 8px; }
.meta-label {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase;
}
.meta-value { font-size: 14px; font-weight: 400; }
.meta-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.meta-link:hover { opacity: 0.7; }

.tldr {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2px; margin: 0 -24px;
}
.tldr-item {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 26px;
}
.tldr-label {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase;
}
.tldr-body { font-size: 14px; font-weight: 400; line-height: 1.55; }

/* Screens inside dark hero */
.cs-hero-screens {
  max-width: 860px; margin: 80px auto 0;
  padding: 0 24px 80px;
  display: flex; gap: 24px; align-items: flex-end;
}
.cs-hero-screen { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.cs-hero-screen img { width: 100%; height: 535px; object-fit: contain; object-position: bottom; }
.cs-screen-caption { font-size: 12px; font-weight: 400; color: rgba(0,0,0,0.5); text-align: center; }

.cs-hero-wide {
  max-width: 860px; margin: 80px auto 0;
  padding: 0 24px 80px;
}
.cs-hero-wide img { width: 100%; }

/* White content area */
.cs-content { background: #fff; overflow-x: hidden; }
.cs-section {
  max-width: 860px; margin: 0 auto;
  padding: 80px 24px;
}

.cs-section-num {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 12px; display: block;
}
.cs-section-h2 {
  font-size: 32px; font-weight: 700;
  line-height: 1.2; margin-bottom: 32px;
}
.cs-body {
  font-size: 16px; font-weight: 400;
  line-height: 1.7; margin-bottom: 24px;
}
.cs-body:last-child { margin-bottom: 0; }

.callout-block {
  border-left: 3px solid #000;
  padding: 24px 32px; margin: 40px 0;
}
.callout-label {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 12px; display: block;
}
.callout-text { font-size: 16px; font-weight: 400; line-height: 1.7; }
.callout-quote {
  font-size: 18px; font-weight: 400;
  line-height: 1.6; font-style: italic;
}

.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid #000; margin: 40px 0;
}
.stat-card { padding: 32px 24px; border-right: 1px solid #000; }
.stat-card:last-child { border-right: none; }
.stat-number {
  font-size: 36px; font-weight: 800; line-height: 1;
  margin-bottom: 8px; display: block;
}
.stat-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 12px; display: block;
}
.stat-desc { font-size: 14px; font-weight: 400; line-height: 1.55; }

.feature-list { display: flex; flex-direction: column; gap: 32px; margin: 40px 0; }
.feature-item { display: flex; gap: 24px; align-items: flex-start; }
.feature-badge {
  font-size: 11px; font-weight: 700;
  border: 1px solid #000; padding: 4px 10px;
  white-space: nowrap; flex-shrink: 0; margin-top: 3px;
}
.feature-content { display: flex; flex-direction: column; gap: 8px; }
.feature-name { font-size: 16px; font-weight: 700; }
.feature-desc { font-size: 14px; font-weight: 400; line-height: 1.6; color: #444; }

.comp-table { width: 100%; border-collapse: collapse; margin: 40px 0; font-size: 14px; }
.comp-table th {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase;
  text-align: left; padding: 12px 16px;
  border: 1px solid #000;
}
.comp-table td {
  padding: 16px; border: 1px solid #000;
  vertical-align: top; line-height: 1.55;
}

.img-block { margin: 48px -24px; }
.img-block img { width: 100%; }
.img-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 48px -24px; align-items: start; }
.img-two-col > div { display: flex; flex-direction: column; align-items: center; }
.img-two-col img { width: auto; max-width: 100%; max-height: 540px; height: auto; }

.img-caption {
  font-size: 12px; color: #666;
  margin-top: 10px; line-height: 1.4; text-align: center;
}

.decision-list { display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }
.decision-item { display: flex; gap: 16px; font-size: 16px; line-height: 1.6; }
.decision-arrow { font-weight: 700; flex-shrink: 0; }

.tech-flow {
  display: flex; align-items: center;
  gap: 8px; margin: 32px 0; flex-wrap: wrap;
}
.tech-chip {
  font-size: 13px; font-weight: 500;
  border: 1px solid #000; padding: 8px 16px;
}
.tech-arrow { font-size: 16px; color: #666; }

.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
.insight-card { border: 1px solid #000; padding: 24px; }
.insight-name { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.insight-desc { font-size: 14px; font-weight: 400; line-height: 1.6; color: #444; }

.pricing-demo { border: 1px solid #000; margin: 40px 0; }
.pricing-demo-label {
  font-size: 12px; font-weight: 600;
  padding: 12px 16px; border-bottom: 1px solid #000;
}
.flight-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; border-bottom: 1px solid #eee;
}
.flight-row:last-child { border-bottom: none; }
.flight-info { font-size: 14px; font-weight: 500; }
.flight-detail { font-size: 12px; color: #666; margin-top: 4px; }
.flight-price { font-size: 20px; font-weight: 700; }

.tier-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid #000; margin: 40px 0;
}
.tier-card { padding: 24px; border-right: 1px solid #000; }
.tier-card:last-child { border-right: none; }
.tier-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  margin-bottom: 8px; display: block;
}
.tier-name { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.tier-desc { font-size: 14px; font-weight: 400; line-height: 1.6; color: #444; }

.pivot-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid #000; margin: 40px 0;
}
.pivot-card { padding: 32px; border-right: 1px solid #000; }
.pivot-card:last-child { border-right: none; }
.pivot-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  margin-bottom: 16px; display: block;
}
.pivot-desc { font-size: 14px; font-weight: 400; line-height: 1.6; }

.test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
.test-card { border: 1px solid #000; padding: 32px; }
.test-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 16px; display: block;
}
.test-desc { font-size: 14px; font-weight: 400; line-height: 1.6; }

.outcome-block { border: 1px solid #000; padding: 40px; margin: 40px 0; }
.outcome-highlight {
  font-size: 20px; font-weight: 700;
  line-height: 1.3; margin-bottom: 24px;
}

/* === CASE STUDY PAGINATION === */
.cs-pagination {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 860px; margin: 0 auto;
  padding: 0 24px;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.cs-pag-link {
  display: flex; flex-direction: column; gap: 8px;
  padding: 40px 0;
}
.cs-pag-link--next { text-align: right; }
.cs-pag-link:hover .cs-pag-title { text-decoration: underline; }
.cs-pag-label {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #666; display: block;
}
.cs-pag-title { font-size: 18px; font-weight: 600; line-height: 1.3; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .cards-row--three { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 60px; }
}

@media (max-width: 900px) {
  .nav-inner { padding: 24px 32px; }
  .footer-inner { padding: 40px 32px; flex-direction: column; gap: 24px; align-items: flex-start; }
  .footer-links { gap: 0; flex-wrap: wrap; }
  .footer-link { padding: 10px 20px 10px 0; min-height: 44px; display: flex; align-items: center; }
  .hero { flex-direction: column; padding: 48px 32px; min-height: auto; gap: 40px; }
  .hero-photo { width: 100%; max-width: 280px; height: auto; aspect-ratio: auto; align-self: center; }
  .hero-heading { font-size: 44px; }
  .section { padding: 60px 32px; }
  .section-heading { margin-bottom: 40px; }
  .cards-row { grid-template-columns: 1fr; }
  .cards-row--three { grid-template-columns: 1fr; }
  .about-intro { flex-direction: column; padding: 48px 32px; gap: 40px; }
  .about-photo { width: 100%; max-width: 280px; height: auto; aspect-ratio: auto; align-self: center; }
  .skills-section { padding: 60px 32px; grid-template-columns: 1fr; gap: 48px; }
  .currently-section { padding: 60px 32px; }
  .contact-section { padding: 60px 32px; }
  .form-row { grid-template-columns: 1fr; }
  .cs-hero-inner { padding: 0 32px; }
  .cs-title { font-size: 36px; }
  .meta-row { gap: 24px; margin-bottom: 40px; }
  .tldr { grid-template-columns: 1fr; margin: 0 -32px; gap: 1px; }
  .tldr-item { padding: 20px 32px; border-right: none !important; }
  .tldr-item:last-child { padding-bottom: 20px; }
  .cs-hero-screens { flex-direction: column; padding: 0 32px 60px; }
  .cs-hero-screen img { height: 380px; }
  .cs-hero-wide { padding: 0 32px 60px; }
  .cs-section { padding: 60px 32px; }
  .img-block { margin-left: -32px; margin-right: -32px; }
  .img-two-col { margin-left: -32px; margin-right: -32px; }
  .img-two-col img { max-height: 400px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid #000; }
  .stat-card:last-child { border-bottom: none; }
  .insight-grid { grid-template-columns: 1fr; }
  .img-two-col { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .tier-card { border-right: none; border-bottom: 1px solid #000; }
  .tier-card:last-child { border-bottom: none; }
  .pivot-grid { grid-template-columns: 1fr; }
  .pivot-card { border-right: none; border-bottom: 1px solid #000; }
  .pivot-card:last-child { border-bottom: none; }
  .test-grid { grid-template-columns: 1fr; }
  .comp-table { font-size: 13px; }
  .cs-pagination { grid-template-columns: 1fr; padding: 0 32px; }
  .cs-pag-link { padding: 24px 0; }
  .cs-pag-link--prev { border-bottom: 1px solid rgba(0,0,0,0.12); }
  .cs-pag-link--next { text-align: left; }
}
