/* Design tokens from presentation */
:root {
  --bg: #0b0f14;
  --bg-elevated: #141b24;
  --highlight: #2fd3ff;
  --text-1: #ffffff;
  --text-2: #7f8691;
  --text-3: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --font: "Space Grotesk", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1120px;
  --narrow: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Material Icons (filled + outlined) — https://fonts.google.com/icons */
.material-icons.icon-accent,
.material-icons-outlined.icon-accent {
  color: var(--highlight);
  vertical-align: middle;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text-1);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--highlight);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
  color: var(--text-1);
}

.italic {
  font-style: italic;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  max-width: var(--narrow);
}

/* Who we are — two columns, image right */
.who-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .who-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2.5rem, 6vw, 4rem);
  }
}

.who-copy .lead {
  margin-bottom: 1.5rem;
}

.brand-caps {
  text-transform: uppercase;
}

.who-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.who-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  color: var(--text-3);
}

.who-list li:last-child {
  margin-bottom: 0;
}

.who-list-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.who-list-icon .material-icons,
.who-list-icon .material-symbols-outlined {
  font-size: 1.35rem;
  line-height: 1;
}

.who-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  aspect-ratio: 4 / 3;
}

.who-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 899px) {
  .who-media {
    max-width: 28rem;
    margin-inline: auto;
  }
}

.highlight {
  color: var(--highlight);
}

.text-muted {
  color: var(--text-2);
}

.small {
  font-size: 0.875rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo-img {
  display: block;
  height: 2rem;
  width: auto;
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  color: var(--text-1);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--highlight);
}

.logo-accent {
  color: var(--highlight);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--highlight);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header .container {
    position: relative;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--highlight);
  margin: 0 0 1rem;
}

.hero-tagline {
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  max-width: 480px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(47, 211, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--highlight);
  color: var(--bg);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--highlight);
  color: var(--highlight);
}

/* Sections */
.section {
  padding: clamp(1rem, 1vw, 1rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
}

.section-intro {
  max-width: 640px;
  margin-bottom: 2rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-3);
}

.lead.small {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.lead strong {
  color: var(--text-1);
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-list li {
  padding: 0.5rem 1rem;
  background: rgba(47, 211, 255, 0.08);
  border: 1px solid rgba(47, 211, 255, 0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-3);
}

/* Grids */
.grid {
  display: grid;
  gap: 1.25rem;
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-2.tight {
  gap: 1rem;
}

/* Services: cards stacked left, image right */
.service-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: stretch;
}

.service-split .grid.cards-2.tight {
  grid-template-columns: 1fr;
  align-content: start;
}

.service-split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  min-height: 14rem;
  align-self: stretch;
}

.service-split-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
}

@media (max-width: 768px) {
  .service-split {
    grid-template-columns: 1fr;
  }

  .service-split-media {
    order: -1;
    min-height: 12rem;
    max-height: 18rem;
  }

  .service-split-media img {
    min-height: 12rem;
    max-height: 18rem;
  }
}

.card {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.section-alt .card {
  background: rgba(11, 15, 20, 0.5);
}

.card h3 {
  color: var(--highlight);
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-3);
}

.card-highlight {
  border-color: rgba(47, 211, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(47, 211, 255, 0.08);
}

article.card,
article.advantage-item,
div.mini-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

article.card:hover,
article.advantage-item:hover,
div.mini-card:hover {
  border-color: rgba(47, 211, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(47, 211, 255, 0.08);
}

article.card.card-highlight:hover {
  border-color: rgba(47, 211, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(47, 211, 255, 0.14),
    0 8px 28px rgba(47, 211, 255, 0.06);
}

/* Advantage */
.advantage-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.advantage-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(20, 27, 36, 0.6);
}

.advantage-wide {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .advantage-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .advantage-item:not(.advantage-wide) {
    grid-column: span 2;
  }

  .advantage-wide {
    grid-column: span 3;
  }
}

.adv-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--highlight);
  margin-bottom: 0.75rem;
}

.advantage-item p {
  margin: 0;
  color: var(--text-3);
  font-size: 0.9375rem;
}

/* Services */
.service-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.service-block:first-of-type {
  margin-top: 2rem;
  padding-top: 0;
  border-top: none;
}

.inner-band {
  margin-left: calc(-1 * max(0px, (100vw - var(--max)) / 2));
  margin-right: calc(-1 * max(0px, (100vw - var(--max)) / 2));
  padding-left: max(1rem, (100vw - var(--max)) / 2);
  padding-right: max(1rem, (100vw - var(--max)) / 2);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  border: none;
  margin-top: 3rem;
}

.feature-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-3);
}

.feature-list li {
  margin-bottom: 0.75rem;
}

.mini-card {
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mini-card h4 {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.section .inner-band .mini-card {
  background: rgba(11, 15, 20, 0.65);
}

.mini-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-3);
}

/* Case studies */
.case-study {
  margin-top: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(11, 15, 20, 0.4);
}

.case-study:first-of-type {
  margin-top: 2rem;
}

.case-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 0.5rem;
}

.case-header h2,
.case-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.hero-sub {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.hero-sub h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.site-nav a[aria-current="page"] {
  color: var(--highlight);
}

.case-lead {
  color: var(--text-3);
  margin: 1rem 0 1.5rem;
}

.case-study .case-columns h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.case-study .case-columns h3:not(:first-child) {
  margin-top: 1.25rem;
}

.case-columns {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .case-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Case study page: three equal-width columns (id: case-study-columns-1) */
.case-study-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.case-study-columns > .case-study-columns__cell {
  min-width: 0;
}

/* Inline SVGs collapse to 0×0 inside min-width:0 grid cells without explicit size */
.case-study-columns__cell svg {
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  min-height: 4rem;
  display: block;
  flex-shrink: 0;
}

.case-study-stack-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.case-study-stack-row .case-study-stack-text {
  min-width: 0;
}

/* #architecture-stack-2: 2 columns × 6 rows (12 cells) */
#architecture-stack-2 > h3 {
  margin: 0 0 1rem;
}

#architecture-stack-2 .architecture-stack-grid-2x6 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(6, auto);
  gap: 0.75rem 1rem;
  width: 100%;
}

#architecture-stack-2 .architecture-stack-cell {
  min-width: 0;
  min-height: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  background: rgba(11, 15, 20, 0.35);
}

@media (max-width: 520px) {
  #architecture-stack-2 .architecture-stack-grid-2x6 {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(12, auto);
  }
}

@media (max-width: 899px) {
  .case-study-columns {
    grid-template-columns: 1fr;
  }
}

.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-3);
  font-size: 0.9375rem;
}

.bullet-list li {
  margin-bottom: 0.65rem;
}

.bullet-list.compact li {
  margin-bottom: 0.4rem;
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.stack-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-3);
}

.stack-list li span {
  color: var(--text-1);
  font-weight: 600;
  min-width: 140px;
}

/* CTA */
.cta-section {
  text-align: center;
  padding-bottom: 4rem;
}

.cta-inner p {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  text-align: center;
}

.logo-footer {
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9375rem;
}

.footer-note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
}

/* Contact page (contactus.html) — layout inspired by brand contact mockup */
.page-contact {
  background: #000000;
}

.page-contact .site-header {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.contact-main {
  min-height: 60vh;
}

.contact-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 5rem);
}

.contact-container {
  max-width: 36rem;
}

.contact-title-bar {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 4rem 0.4rem 0.85rem;
  background: #ffff00;
  color: #000000;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.contact-subhead {
  margin: 0 0 1rem;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffff00;
}

.contact-intro,
.contact-form-intro {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.65;
}

.contact-email-pill {
  margin: 0 0 1.25rem;
}

.contact-email-pill a {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
}

.contact-email-pill a:hover {
  text-decoration: none;
  filter: brightness(0.95);
}

.contact-deco {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1.75rem;
}

.contact-deco span {
  display: inline-block;
  width: 3.25rem;
  height: 0.65rem;
  border-radius: 999px;
  transform: skewX(-14deg);
}

.contact-deco span:nth-child(1),
.contact-deco span:nth-child(2) {
  background: var(--highlight);
}

.contact-deco span:nth-child(3) {
  background: #f5e68a;
}

.contact-form-intro {
  margin-bottom: 1.5rem;
}

/* Contact form — matches site dark UI (tokens, cyan labels, pill submit) */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 36rem;
  margin-top: 0.75rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.contact-form .form-group label {
  color: var(--highlight);
  font-weight: 600;
  font-size: 0.9375rem;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: var(--text-3);
}

.contact-form .form-group input:hover,
.contact-form .form-group textarea:hover {
  border-color: rgba(47, 211, 255, 0.2);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  outline: none;
  border-color: rgba(47, 211, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(47, 211, 255, 0.15);
}

.contact-form .form-group textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* Legacy markup: .contact-field */
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.contact-field label {
  color: var(--highlight);
  font-weight: 600;
  font-size: 0.9375rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-1);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-field input:hover,
.contact-field textarea:hover {
  border-color: rgba(47, 211, 255, 0.2);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-3);
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(47, 211, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(47, 211, 255, 0.15);
}

/* Form submission feedback banner */
.form-alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.form-alert--success {
  background: rgba(47, 211, 255, 0.12);
  border: 1px solid rgba(47, 211, 255, 0.35);
  color: var(--highlight);
}

.form-alert--error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ff8080;
}
