/* ================================
   TOKENS & RESET
================================ */
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-color: #f5fbfc;
  color: #09232b;
  accent-color: #09232b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #f5fbfc;
}

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

button,
a {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

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

/* ================================
   MOBILE BASE LAYOUT
================================ */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5fbfc;
}

main {
  flex: 1;
  counter-reset: section-title;
}

/* ================================
   MOBILE HEADER & NAV
================================ */

.site-header {
  padding: 10px 10px 0;
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  border: 1px solid rgba(9, 35, 43, 0.04);
  border-radius: 9px;
  background: rgba(249, 253, 253, 0.72);
  box-shadow: 0 7px 18px rgba(9, 35, 43, 0.025);
}

.mobile-menu-button {
  width: 34px;
  height: 28px;
  display: inline-grid;
  place-items: center;
}

.brand {
  justify-self: start;
  color: #09232b;
  font-family: "Silkscreen", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta {
  justify-self: center;
  min-width: 64px;
  padding: 7px 10px 7px;
  border-radius: 5px;
  background: #09232b;
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-menu-button {
  justify-self: end;
  color: #09232b;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  content: "";
  display: block;
  width: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-icon {
  position: relative;
}

.menu-icon::before {
  position: absolute;
  top: -4px;
  display: none;
}

.menu-icon::after {
  position: absolute;
  top: 4px;
}

.site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  min-width: 136px;
  padding: 10px;
  border: 1px solid rgba(9, 35, 43, 0.06);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(9, 35, 43, 0.08);
}

.site-nav.nav-open {
  display: grid;
  gap: 8px;
}

.site-nav a {
  color: #09232b;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

/* ================================
   MOBILE HERO: 380x700 TARGET
================================ */

.hero-section {
  min-height: calc(100svh - 40px);
  padding: 126px 10px 58px;
  display: flex;
  align-items: flex-start;
}

.hero-content {
  width: 100%;
  color: #09232b;
}

.hero-copy {
  max-width: 350px;
  margin: 0;
  font-size: 11.2px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0;
}

.hero-wordmark {
  display: grid;
  justify-items: center;
  gap: 0.02em;
  margin: 66px 0 0;
  color: #09232b;
  font-family: "Audiowide", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(35px, 13vw, 46px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  text-align: center;
  text-rendering: geometricPrecision;
  overflow: hidden;
}

.hero-section h1 {
  margin: 66px 0 0;
  font-size: clamp(24px, 6.8vw, 32px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
  text-align: right;
}

/* ================================
   MOBILE IMAGE STRIP
================================ */

.image-strip {
  width: 100vw;
  height: 150px;
  margin-top: 40px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.image-strip-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: image-strip-slide 24s linear infinite;
}

.image-strip-set {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding-right: 10px;
}

.image-placeholder {
  display: grid;
  place-items: center;
  width: 74px;
  height: 150px;
  color: #09232b;
}

.icon-sprite {
  display: none;
}

.slide-icon {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes image-strip-slide {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-strip-track {
    animation: none;
  }
}

/* ================================
   MOBILE CONTENT SECTIONS
================================ */

@media (max-width: 767px) {
  .section {
    counter-increment: section-title;
    padding: 40px 16px;
    border-top: 1px solid rgba(9, 35, 43, 0.06);
  }

  .section-content {
    display: flex;
    flex-direction: column;
    max-width: 42rem;
  }

  .section-content > * {
    order: 3;
  }

  .section h2 {
    order: 1;
    margin: 0 0 1.6rem;
    color: #7f8d92;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .section h2::before {
    content: counter(section-title, decimal-leading-zero) " / ";
  }

  .section-lede {
    order: 2;
    margin: 0 0 1.6rem;
    color: #09232b;
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.13;
    letter-spacing: 0;
    transform: scaleY(1.1);
  }

  .section p:not(.section-lede),
  .section li {
    margin: 0 0 1.45rem;
    color: #33494f;
    font-size: 14px;
    line-height: 1.65;
  }

  .section-contact .section-content {
    align-items: center;
    text-align: center;
  }

  .section-contact .section-lede,
  .section-contact p:not(.section-lede) {
    margin-right: auto;
    margin-left: auto;
  }

  .section-contact .button {
    width: auto;
    min-width: 220px;
  }

  .diagnostic-card {
    width: 100%;
    max-width: 34rem;
    margin-top: 0.5rem;
    padding: 18px;
    border: 1px solid rgba(9, 35, 43, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0 12px 30px rgba(9, 35, 43, 0.04);
  }

  .diagnostic-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
  }

  .diagnostic-heading-icon {
    width: 24px;
    height: 24px;
    padding: 3px;
    color: #09232b;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    border-radius: 999px;
    background: rgba(9, 35, 43, 0.06);
  }

  .diagnostic-heading h3 {
    margin: 0;
    color: #52666d;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
  }

  .diagnostic-list {
    display: grid;
  }

  .diagnostic-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid rgba(9, 35, 43, 0.08);
  }

  .diagnostic-item:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .diagnostic-item:last-child {
    padding-bottom: 0;
  }

  .diagnostic-icon {
    width: 52px;
    height: 52px;
    padding: 13px;
    color: #09232b;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    border: 1px solid rgba(9, 35, 43, 0.08);
    border-radius: 999px;
    background: rgba(245, 251, 252, 0.9);
  }

  .diagnostic-item h4 {
    margin: 0 0 4px;
    color: #09232b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
  }

  .section .diagnostic-item p {
    max-width: none;
    margin: 0;
    color: #33494f;
    font-size: 10.9px;
    font-weight: 500;
    line-height: 1.45;
  }

  .service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
  }

  .service-list .service-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 20px;
    align-items: center;
    max-width: none;
    min-height: 118px;
    margin: 0;
    padding: 22px 20px 22px 16px;
    color: #09232b;
    border: 1px solid rgba(9, 35, 43, 0.06);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(9, 35, 43, 0.035);
  }

  .service-icon-wrap {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(9, 35, 43, 0.08);
    border-radius: 999px;
    background: rgba(245, 251, 252, 0.92);
  }

  .service-icon {
    width: 34px;
    height: 34px;
    color: #09232b;
    fill: none;
    stroke: currentColor;
    stroke-width: 0.25;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .service-copy {
    min-width: 0;
    padding-left: 20px;
    border-left: 1px solid rgba(9, 35, 43, 0.08);
  }

  .service-copy h3 {
    margin: 0 0 7px;
    color: #09232b;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.18;
  }

  .section .service-copy p {
    max-width: none;
    margin: 0;
    color: #33494f;
    font-size: 12.2px;
    font-weight: 500;
    line-height: 1.55;
  }

  .empty-state {
    color: #5f7176;
    font-style: italic;
  }
}

/* ================================
   MOBILE ACTIONS & FOOTER
================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: #09232b;
  color: #ffffff;
}

.site-footer {
  padding: 32px 16px;
  text-align: center;
  color: #5f7176;
  font-size: 0.95rem;
}

/* ================================
   DESKTOP OVERRIDES
================================ */
@media (min-width: 768px) {
  .site-header {
    padding: 18px 24px 0;
  }

  .header-inner {
    max-width: 1120px;
    min-height: 46px;
    margin: 0 auto;
    grid-template-columns: auto auto 1fr;
    gap: 24px;
    padding: 0 14px;
  }

  .mobile-menu-button {
    width: 36px;
    height: 36px;
  }

  .brand {
    font-size: 15px;
  }

  .header-cta {
    justify-self: start;
    min-width: 88px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .mobile-menu-button {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    justify-self: end;
    gap: 24px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-section {
    min-height: calc(100svh - 64px);
    padding: 13vh 24px 96px;
    justify-content: center;
  }

  .hero-content {
    max-width: 1120px;
  }

  .hero-copy {
    max-width: 560px;
    font-size: 18px;
  }

  .hero-wordmark {
    margin-top: 90px;
    font-size: clamp(70px, 10vw, 132px);
  }

  .hero-section h1 {
    margin-top: 90px;
    font-size: clamp(42px, 5vw, 50px);
  }

  .image-strip-set {
    gap: 14px;
    padding-right: 14px;
  }

  .image-strip {
    margin-top: 40px;
  }

  .image-placeholder {
    width: 126px;
  }

  .slide-icon {
    width: 54px;
    height: 54px;
  }

  .section {
    counter-increment: section-title;
    padding: 72px 24px 72px max(24px, calc((100vw - 1120px) / 2));
    border-top: 1px solid rgba(9, 35, 43, 0.06);
  }

  .section-contact {
    padding-right: 24px;
    padding-left: 24px;
  }

  .section-content {
    display: flex;
    flex-direction: column;
    max-width: 72rem;
    margin: 0;
  }

  .section-content > * {
    order: 3;
  }

  .section h2 {
    order: 1;
    margin: 0 0 1.75rem;
    color: #7f8d92;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .section h2::before {
    content: counter(section-title, decimal-leading-zero) " / ";
  }

  .section-lede {
    order: 2;
    max-width: 60rem;
    margin: 0 0 2rem;
    color: #09232b;
    font-size: clamp(30px, 3vw, 60px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: 0;
  }

  .section-contact .section-content {
    align-items: center;
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
  }

  .section-contact .section-lede,
  .section-contact p:not(.section-lede) {
    margin-right: auto;
    margin-left: auto;
  }

  .section p:not(.section-lede),
  .section li {
    max-width: 55rem;
    margin: 0 0 1.5rem;
    color: #33494f;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
  }

  .diagnostic-card {
    width: 100%;
    max-width: 54rem;
    margin-top: 0.75rem;
    padding: 24px;
    border: 1px solid rgba(9, 35, 43, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0 12px 30px rgba(9, 35, 43, 0.04);
  }

  .diagnostic-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .diagnostic-heading-icon {
    width: 26px;
    height: 26px;
    padding: 3px;
    color: #09232b;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    border-radius: 999px;
    background: rgba(9, 35, 43, 0.06);
  }

  .diagnostic-heading h3 {
    margin: 0;
    color: #52666d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
  }

  .diagnostic-list {
    display: grid;
  }

  .diagnostic-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px 0;
    border-top: 1px solid rgba(9, 35, 43, 0.08);
  }

  .diagnostic-item:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .diagnostic-item:last-child {
    padding-bottom: 0;
  }

  .diagnostic-icon {
    width: 58px;
    height: 58px;
    padding: 14px;
    color: #09232b;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    border: 1px solid rgba(9, 35, 43, 0.08);
    border-radius: 999px;
    background: rgba(245, 251, 252, 0.9);
  }

  .diagnostic-item h4 {
    margin: 0 0 6px;
    color: #09232b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
  }

  .section .diagnostic-item p {
    max-width: 38rem;
    margin: 0;
    color: #33494f;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
  }

  .service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .service-list .service-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 20px;
    align-items: center;
    max-width: none;
    min-height: 180px;
    margin: 0;
    padding: 24px;
    color: #09232b;
    border: 1px solid rgba(9, 35, 43, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 12px 30px rgba(9, 35, 43, 0.035);
  }

  .service-icon-wrap {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 1px solid rgba(9, 35, 43, 0.08);
    border-radius: 999px;
    background: rgba(245, 251, 252, 0.92);
  }

  .service-icon {
    width: 34px;
    height: 34px;
    color: #09232b;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .service-copy {
    min-width: 0;
    padding-left: 20px;
    border-left: 1px solid rgba(9, 35, 43, 0.08);
  }

  .service-copy h3 {
    margin: 0 0 8px;
    color: #09232b;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
  }

  .section .service-copy p {
    max-width: none;
    margin: 0;
    color: #33494f;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
  }

  .empty-state {
    color: #5f7176;
    font-style: italic;
  }

  .button {
    width: auto;
  }
}
