:root {
  --ink: #08090a;
  --paper: #ededef;
  --lime: #ccff00;
  --violet: #6d6af6;
  --line: rgba(237, 237, 239, 0.16);
  --accent: var(--lime);
  --accent-text: var(--ink);
  --font-sans: "Geist", Arial, Helvetica, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); font-variant-emoji: text; }
body { margin: 0; overflow-x: hidden; background: var(--ink); color: var(--paper); font-family: var(--font-sans); }
body.architecture { --accent: var(--paper); --accent-text: var(--ink); }
body.systems { --accent: var(--lime); --accent-text: var(--ink); }
body.ai-automation { --accent: var(--violet); --accent-text: var(--ink); }
body.product { --accent: var(--lime); --accent-text: var(--ink); }
a { color: inherit; text-decoration: none; }
.text-arrow { display: inline-block; font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", sans-serif; font-style: normal; font-variant-emoji: text; font-weight: 700; line-height: 1; }
::selection { background: var(--accent); color: var(--accent-text); }

.service-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 2.2vw;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 10, 0.88);
  backdrop-filter: blur(14px);
}
.service-logo { position: relative; display: block; width: 3.15rem; height: 2.55rem; overflow: hidden; flex: 0 0 auto; }
.service-logo img { position: absolute; top: -75%; left: -29%; display: block; width: 155%; max-width: none; height: auto; }
.service-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem); }
.service-nav a,
.header-cta,
.back-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.service-nav a { color: rgba(237, 237, 239, 0.66); }
.service-nav a:hover,
.service-nav a:focus-visible,
.service-nav a[aria-current="page"] { color: var(--accent); outline: none; }
.header-cta { padding: 0.7rem 0.9rem; border: 1px solid var(--accent); color: var(--accent); }
.header-cta:hover,
.header-cta:focus-visible { background: var(--accent); color: var(--accent-text); outline: none; }
.service-menu-toggle,
.service-mobile-menu { display: none; }
.service-menu-toggle {
  min-width: 5.4rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.service-menu-icon { position: relative; width: 0.9rem; height: 0.7rem; }
.service-menu-icon::before,
.service-menu-icon::after { content: ""; position: absolute; right: 0; left: 0; height: 1px; background: currentColor; transition: transform 180ms ease, top 180ms ease; }
.service-menu-icon::before { top: 0.12rem; }
.service-menu-icon::after { top: 0.55rem; }
.service-menu-toggle[aria-expanded="true"] .service-menu-icon::before { top: 0.34rem; transform: rotate(45deg); }
.service-menu-toggle[aria-expanded="true"] .service-menu-icon::after { top: 0.34rem; transform: rotate(-45deg); }

.service-hero {
  position: relative;
  display: flex;
  min-height: min(86svh, 58rem);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 8.5rem 2.2vw 2.2rem;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.back-link { position: relative; z-index: 2; display: inline-flex; width: fit-content; min-height: 2.75rem; align-items: center; gap: 0.7rem; padding: 0.65rem 0; color: var(--accent); }
.back-link:hover,
.back-link:focus-visible { color: var(--paper); outline: none; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(4rem, 12.5vw, 13rem);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}
.hero-copy p {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: rgba(237, 237, 239, 0.82);
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  font-weight: 650;
  line-height: 1.35;
}
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hero-stat { min-height: 8rem; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-stat strong { display: block; color: var(--accent); font-size: clamp(2.3rem, 4.6vw, 5rem); font-weight: 900; line-height: 0.86; letter-spacing: -0.06em; }
.hero-stat span { display: block; max-width: 15rem; margin-top: 0.7rem; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; }

.content-section { padding: clamp(4rem, 7vw, 7rem) 2.2vw; background: var(--paper); color: var(--ink); }
.section-heading { display: grid; grid-template-columns: minmax(11rem, 0.65fr) 1.55fr; gap: 3rem; align-items: start; margin-bottom: 3rem; }
.section-heading h2 { max-width: 8ch; margin: 0; font-size: clamp(3rem, 6vw, 7rem); font-weight: 900; line-height: 0.78; letter-spacing: -0.075em; text-transform: uppercase; }
.section-heading p { max-width: 48rem; margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.5rem); font-weight: 650; line-height: 1.38; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.service-item { min-height: 15rem; padding: 1.5rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.service-item strong { display: block; margin-bottom: 2.5rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.09em; }
.service-item h3 { max-width: 18ch; margin: 0; font-size: clamp(1.45rem, 2.5vw, 2.6rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.05em; text-transform: uppercase; }
.service-item p { max-width: 34rem; margin: 1rem 0 0; font-size: 0.98rem; font-weight: 570; line-height: 1.45; }

.cases-section { padding: clamp(4rem, 7vw, 7rem) 2.2vw; background: var(--ink); }
.cases-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.cases-head h2 { max-width: 10ch; margin: 0; font-size: clamp(3.2rem, 7.5vw, 8rem); font-weight: 900; line-height: 0.75; letter-spacing: -0.08em; text-transform: uppercase; }
.cases-head p { max-width: 27rem; margin: 0; color: rgba(237, 237, 239, 0.65); font-size: 1rem; line-height: 1.45; }
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.case-card { display: flex; min-height: 19rem; flex-direction: column; justify-content: space-between; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-card:nth-child(3n) { background: var(--accent); color: var(--accent-text); }
.case-card strong { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; }
.case-card h3 { max-width: 20ch; margin: 2rem 0 0; font-size: clamp(1.5rem, 2.5vw, 2.7rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.045em; text-transform: uppercase; }
.case-card p { max-width: 42rem; margin: 1rem 0 0; font-size: 0.98rem; font-weight: 560; line-height: 1.43; }
.case-card a { display: inline-flex; width: fit-content; margin-top: 2rem; border-bottom: 1px solid currentColor; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; }

.page-cta { display: grid; min-height: 54svh; place-items: center; padding: 4rem 2.2vw; background: var(--accent); color: var(--accent-text); text-align: center; }
.page-cta h2 { max-width: 10ch; margin: 0 auto; font-size: clamp(3.5rem, 9vw, 10rem); font-weight: 900; line-height: 0.78; letter-spacing: -0.08em; text-transform: uppercase; }
.page-cta a { display: inline-flex; min-width: 15rem; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2.5rem; padding: 1rem; border: 1px solid currentColor; font-family: var(--font-sans); font-size: clamp(1rem, 1.25vw, 1.4rem); font-weight: 900; letter-spacing: -0.04em; text-transform: uppercase; }
.page-cta a:hover,
.page-cta a:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
@media (max-width: 900px) {
  .service-header { padding: 0 1rem; }
  .service-nav { display: none; }
  .header-cta { display: none; }
  .service-menu-toggle { display: inline-flex; }
  .service-mobile-menu {
    position: fixed;
    z-index: 19;
    top: 4.5rem;
    right: 0;
    left: 0;
    display: flex;
    max-height: calc(100svh - 4.5rem);
    overflow-y: auto;
    flex-direction: column;
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    border-bottom: 1px solid var(--line);
    background: rgba(8, 9, 10, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }
  .service-mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .service-mobile-menu a {
    display: flex;
    min-height: 3.75rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 6vw, 1.7rem);
    font-weight: 900;
    letter-spacing: -0.04em;
  }
  .service-mobile-menu a[aria-current="page"] { color: var(--accent); }
  .service-mobile-menu .mobile-sprint { margin-top: 1rem; padding: 0 1rem; border: 1px solid var(--accent); color: var(--accent); }
  body.service-menu-open { overflow: hidden; }
  .service-hero { min-height: 82svh; justify-content: flex-start; gap: 1.5rem; padding: 7rem 1rem 1rem; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(3rem, 14.5vw, 5.6rem); line-height: 0.84; }
  .architecture .hero-copy h1 { font-size: clamp(3rem, 12.4vw, 4.6rem); }
  .hero-copy p { margin-top: 1.25rem; font-size: 1rem; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 0; }
  .hero-stat { min-height: 0; padding: 0.9rem; }
  .hero-stat strong { font-size: 2.4rem; }
  .hero-stat span { margin-top: 0.35rem; }
  .content-section,
  .cases-section { padding: 4rem 1rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem; }
  .section-heading h2 { max-width: 100%; }
  .section-heading p { font-size: 1rem; }
  .service-list,
  .cases-grid { grid-template-columns: 1fr; }
  .service-item,
  .case-card { min-height: 0; padding: 1.25rem; }
  .service-item strong { margin-bottom: 1.75rem; }
  .cases-head { display: block; margin-bottom: 2rem; }
  .cases-head p { margin-top: 1.5rem; }
  .page-cta { min-height: 46svh; padding: 3rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-menu-icon::before,
  .service-menu-icon::after,
  .service-mobile-menu { transition: none; }
}
