:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #101828;
  --muted: #64748b;
  --line: #d9dee7;
  --dark: #111827;
  --dark-soft: #1f2937;
  --orange: #f97316;
  --orange-dark: #c2410c;
  --teal: #0f766e;
  --max: 1180px;
  --shadow: 0 14px 34px rgba(16, 24, 40, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 39, 0.96);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--orange);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav a:hover,
.header-link:hover {
  color: #fff;
}

.header-link {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero,
.section,
.contact-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  padding: 38px 0 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.proof-bar,
.solution-grid article,
.work-card,
.method-line div,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--orange-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p,
.section-copy p,
.section-head p,
.contact-card p {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-panel {
  display: grid;
  align-content: start;
  padding: 24px;
  background: var(--dark);
  border-color: var(--dark-soft);
  color: #fff;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-top span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
}

.panel-top strong {
  color: #fdba74;
  font-size: 0.92rem;
}

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

.capability-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.4;
}

.capability-list span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
  font-size: 0.72rem;
  font-weight: 800;
}

.proof-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-top: 16px;
  box-shadow: none;
}

.proof-bar div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.proof-bar div:last-child {
  border-right: 0;
}

.proof-bar strong,
.proof-bar span {
  display: block;
}

.proof-bar strong {
  margin-bottom: 5px;
  font-size: 0.94rem;
}

.proof-bar span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.section {
  padding: 38px 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 20px;
  align-items: stretch;
}

.section-copy,
.section-head {
  margin-bottom: 20px;
}

.split-section .section-copy {
  margin-bottom: 0;
  padding: 26px 0;
}

.section-copy h2,
.section-head h2,
.contact-card h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: 0;
}

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

.solution-grid article {
  padding: 20px;
  box-shadow: none;
}

.solution-grid h3,
.work-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.3;
}

.solution-grid p,
.work-card p,
.method-line p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.projects-section {
  width: 100%;
  max-width: none;
  padding: 42px max(18px, calc((100vw - var(--max)) / 2));
  background: #101828;
  color: #fff;
}

.projects-section .eyebrow {
  color: #fdba74;
}

.projects-section .section-head {
  width: min(var(--max), 100%);
  margin-bottom: 20px;
}

.projects-title {
  max-width: none;
  white-space: nowrap;
}

.work-grid {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
}

.work-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.work-card p {
  color: rgba(255, 255, 255, 0.68);
}

.work-card h3 {
  color: #fff;
}

.work-featured {
  grid-row: span 3;
  display: grid;
  grid-template-rows: auto minmax(160px, 1fr);
  gap: 18px;
  min-height: 388px;
}

.work-featured h3 {
  max-width: 620px;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  line-height: 1.13;
}

.work-featured img {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: cover;
  object-position: top left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.work-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: #fdba74;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.method-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 20px;
  align-items: stretch;
}

.section-head.compact {
  margin: 0;
  padding: 24px 0;
}

.method-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.method-line div {
  min-height: 185px;
  padding: 20px;
  box-shadow: none;
}

.method-line span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.method-line strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.contact-section {
  padding: 28px 0 44px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.contact-box {
  display: grid;
  gap: 10px;
}

.contact-box a {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.contact-box a:hover {
  border-color: rgba(249, 115, 22, 0.55);
  background: #fff7ed;
}

.contact-box span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-box strong {
  font-size: 0.98rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px max(18px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .split-section,
  .work-grid,
  .method-section,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px;
  }

  .work-featured {
    grid-row: auto;
    min-height: auto;
  }

  .projects-title {
    white-space: normal;
  }

  .method-line {
    grid-template-columns: 1fr;
  }

  .method-line div {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-link {
    display: none;
  }

  .hero,
  .section,
  .contact-section {
    width: calc(100% - 28px);
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy,
  .hero-panel,
  .contact-card {
    padding: 22px;
  }

  .proof-bar,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .proof-bar div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-bar div:last-child {
    border-bottom: 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }
}
