:root {
  --bg: #07090d;
  --bg-soft: #10151b;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7fafc;
  --muted: #b7c2ce;
  --soft: #7e8c9b;
  --gold: #f1c96b;
  --gold-dark: #b9822c;
  --teal: #33d6c4;
  --green: #77e28f;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
li,
a,
span,
strong {
  overflow-wrap: anywhere;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding:
    calc(18px + env(safe-area-inset-top, 0px))
    max(20px, calc((100vw - 1160px) / 2))
    18px;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 13, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(241, 201, 107, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(241, 201, 107, 0.22), rgba(51, 214, 196, 0.12));
  color: var(--gold);
}

.brand strong {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover,
.header-action:hover {
  color: var(--text);
}

.header-action {
  border: 1px solid rgba(241, 201, 107, 0.42);
  border-radius: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 16px;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-tech.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.98) 0%, rgba(7, 9, 13, 0.86) 39%, rgba(7, 9, 13, 0.34) 74%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.26) 0%, rgba(7, 9, 13, 0.94) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 132px 0 58px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  padding: 15px 20px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  touch-action: manipulation;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--gold), #f7e5a6);
  color: #171108;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button.ghost {
  border: 1px solid rgba(51, 214, 196, 0.38);
  color: var(--teal);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 850px;
  margin-top: 70px;
}

.hero-stats article,
.capability-card,
.stack-groups article,
.timeline-item,
.education-list article,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-stats article {
  padding: 22px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 24px;
}

.hero-stats span,
.capability-card p,
.timeline-item p,
.education-list span,
.contact-panel p,
.rich-text p {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: 108px 0;
}

.intro-section {
  background: linear-gradient(180deg, #07090d 0%, #0d1117 100%);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.rich-text {
  font-size: 18px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading.compact {
  max-width: 680px;
}

.capabilities {
  background:
    radial-gradient(circle at 20% 10%, rgba(51, 214, 196, 0.12), transparent 28%),
    linear-gradient(180deg, #0d1117 0%, #07090d 100%);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.capability-card {
  min-height: 284px;
  padding: 28px;
}

.capability-card span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.capability-card h3 {
  margin: 52px 0 16px;
}

.stack-section {
  background: #f4f7f8;
  color: #0b1117;
}

.stack-section .section-kicker {
  color: var(--gold-dark);
}

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

.stack-groups article {
  background: #ffffff;
  border-color: rgba(8, 16, 24, 0.1);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

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

.tags span {
  border: 1px solid rgba(11, 17, 23, 0.12);
  border-radius: 8px;
  background: #f7fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
}

.experience-section {
  background:
    linear-gradient(90deg, rgba(241, 201, 107, 0.08), transparent 42%),
    #07090d;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 34px;
  padding: 26px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.timeline-item:hover {
  transform: translateY(-3px);
  border-color: rgba(51, 214, 196, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.timeline-item.featured {
  border-color: rgba(241, 201, 107, 0.36);
  background: linear-gradient(135deg, rgba(241, 201, 107, 0.14), rgba(255, 255, 255, 0.06));
}

.period {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.company {
  margin-bottom: 0;
  color: var(--gold);
  font-weight: 700;
}

.clients-section {
  padding: 96px 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(119, 226, 143, 0.12), transparent 28%),
    #10151b;
}

.clients-heading p:not(.section-kicker) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.client-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  min-height: 204px;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  touch-action: manipulation;
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 201, 107, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.client-card h3 {
  margin: 36px 0 12px;
}

.client-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.client-card strong {
  margin-top: auto;
  padding-top: 24px;
  color: var(--gold);
  font-size: 14px;
}

.client-duration {
  display: inline-flex;
  border: 1px solid rgba(51, 214, 196, 0.28);
  border-radius: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.education-section {
  background: #f4f7f8;
  color: #0b1117;
}

.education-section .section-kicker {
  color: var(--gold-dark);
}

.education-list {
  display: grid;
  gap: 14px;
}

.education-list article {
  background: #ffffff;
  border-color: rgba(8, 16, 24, 0.1);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.education-list strong {
  display: block;
  margin-bottom: 6px;
}

.education-list span {
  color: #526173;
}

.contact-section {
  padding: 110px 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(51, 214, 196, 0.18), transparent 26%),
    linear-gradient(180deg, #07090d, #10151b);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 52px;
  align-items: center;
  padding: clamp(28px, 6vw, 64px);
}

.contact-panel h2 {
  margin-bottom: 18px;
}

.contact-actions {
  flex-direction: column;
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #07090d;
  color: var(--soft);
  font-size: 14px;
  padding: 28px 0;
}

.case-hero {
  padding: 136px 0 72px;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.96), rgba(7, 9, 13, 0.66)),
    url("assets/hero-tech.png") center / cover;
}

.case-hero .container {
  max-width: 980px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.case-meta span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-weight: 800;
  padding: 10px 12px;
}

.case-section {
  padding: 84px 0;
  background: #f4f7f8;
  color: #0b1117;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.case-card {
  border: 1px solid rgba(8, 16, 24, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.case-card p,
.case-card li {
  color: #526173;
  line-height: 1.65;
}

.case-card ul {
  margin: 0;
  padding-left: 20px;
}

.case-card li + li {
  margin-top: 10px;
}

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

.case-stack span {
  border: 1px solid rgba(11, 17, 23, 0.12);
  border-radius: 8px;
  background: #f7fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--gold);
  font-weight: 800;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 1100px) {
  .capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .site-header {
    padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px;
    background: rgba(7, 9, 13, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 9, 13, 0.98), rgba(7, 9, 13, 0.76)),
      linear-gradient(180deg, rgba(7, 9, 13, 0.5), rgba(7, 9, 13, 0.96));
  }

  .hero-content {
    padding-top: 116px;
    padding-bottom: 48px;
  }

  .hero-stats,
  .capability-grid,
  .client-grid,
  .stack-groups,
  .split,
  .timeline-item,
  .contact-panel,
  .case-layout {
    grid-template-columns: 1fr;
  }

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

  .capability-card h3 {
    margin-top: 34px;
  }

  .section {
    padding: 78px 0;
  }

  .case-hero {
    padding: 122px 0 60px;
  }

  .case-section,
  .contact-section {
    padding: 76px 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand strong {
    display: none;
  }

  .header-action {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .brand span {
    width: 40px;
    height: 40px;
  }

  .hero-content {
    padding-top: 104px;
  }

  .eyebrow,
  .section-kicker {
    margin-bottom: 14px;
    font-size: 11px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: 38px;
    line-height: 1.02;
  }

  h2 {
    font-size: 29px;
    line-height: 1.08;
  }

  h3 {
    font-size: 19px;
  }

  .hero-copy,
  .rich-text {
    font-size: 16px;
    line-height: 1.58;
  }

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

  .hero-stats {
    margin-top: 46px;
    gap: 10px;
  }

  .hero-stats article,
  .capability-card,
  .stack-groups article,
  .timeline-item,
  .client-card,
  .education-list article,
  .case-card {
    padding: 20px;
  }

  .hero-stats strong {
    font-size: 21px;
  }

  .capability-card h3,
  .client-card h3 {
    margin-top: 24px;
  }

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

  .client-card strong {
    padding-top: 18px;
  }

  .timeline-item {
    gap: 14px;
  }

  .section,
  .clients-section,
  .case-section,
  .contact-section {
    padding: 62px 0;
  }

  .case-hero {
    padding: 108px 0 48px;
  }

  .case-meta {
    gap: 8px;
  }

  .case-meta span,
  .tags span,
  .case-stack span,
  .client-duration {
    font-size: 12px;
    padding: 8px 10px;
  }

  .case-card ul {
    padding-left: 18px;
  }

  .contact-panel {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (hover: none) {
  .button:hover,
  .client-card:hover,
  .timeline-item:hover {
    transform: none;
  }
}
