/* Int32 — brochure site
   Brand blue from logo assets: #0079FF
   Type: Roboto Mono (code-y, matches Int32 naming) */

:root {
  --blue: #0079ff;
  --blue-deep: #0062d1;
  --blue-soft: #e8f2ff;
  --ink: #1a1a1a;
  --ink-muted: #4a4a4a;
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: rgba(0, 121, 255, 0.28);
  --line-strong: rgba(255, 255, 255, 0.35);
  --header-h: 4rem;
  --max: 68rem;
  --font: "Roboto Mono", ui-monospace, "Cascadia Code", "Consolas", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-deep);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.site-logo:hover {
  color: var(--blue);
}

.site-logo__mark {
  width: 1.85rem;
  height: auto;
  flex-shrink: 0;
}

.site-logo__text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-logo__short {
  display: none;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(0.42rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-0.42rem) rotate(-45deg);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ——— Hero ——— */

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 3.5rem 1.25rem 4rem;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 121, 255, 0.55) 0%, rgba(0, 98, 209, 0.72) 100%),
    url("../assets/brand/hero-pattern.jpg") center / cover no-repeat;
  opacity: 0.55;
  transform: scale(1.02);
  animation: hero-drift 28s ease-in-out infinite alternate;
}

.hero__inner {
  width: min(100%, 40rem);
  text-align: center;
  animation: hero-rise 0.9s var(--ease) both;
}

.hero__logo {
  width: min(100%, 22rem);
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 8px 24px rgba(0, 40, 100, 0.25));
}

.hero__tagline {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-weight: 300;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}

.btn--solid {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn--solid:hover {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
}

/* ——— Sections ——— */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}

.section--blue {
  position: relative;
  background: var(--blue);
  color: var(--white);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.section--blue a {
  color: var(--white);
  text-decoration-thickness: 1px;
}

.section--blue a:hover {
  color: var(--blue-soft);
}

.section--light {
  background: var(--paper);
  color: var(--ink);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.85);
}

.section__eyebrow--dark {
  color: var(--blue);
  opacity: 1;
}

.section__title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.section__title--dark {
  color: var(--ink);
}

.prose p,
.contact-intro {
  margin: 0 0 1.15rem;
  font-weight: 300;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.prose p:last-child {
  margin-bottom: 0;
}

.tech-label {
  margin-top: 1.75rem !important;
  margin-bottom: 0.65rem !important;
  font-weight: 500 !important;
}

.tech-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.tech-list li {
  position: relative;
  padding-left: 1.4rem;
  font-weight: 400;
}

.tech-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ——— Clients ——— */

.client-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem 2rem;
  align-items: center;
}

.client-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  padding: 1rem;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.2s ease, transform 0.25s var(--ease);
}

.client-link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  color: var(--blue);
}

.client-link img {
  width: auto;
  max-width: 100%;
  max-height: 5.5rem;
  object-fit: contain;
}

/* ——— Contact ——— */

.contact-intro {
  max-width: 36rem;
}

.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
}

.contact-list__item {
  display: grid;
  gap: 0.35rem;
}

.contact-list__label {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.contact-list__link {
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  word-break: break-word;
  transition: color 0.2s ease;
}

.contact-list__link:hover {
  color: var(--blue);
}

/* ——— Footer ——— */

.site-footer {
  padding: 1.5rem 1.25rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* ——— Motion ——— */

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.5%, -1%, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__atmosphere,
  .hero__inner,
  .reveal,
  .btn,
  .client-link {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ——— Responsive ——— */

@media (max-width: 800px) {
  .client-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .site-logo__full {
    display: none;
  }

  .site-logo__short {
    display: inline;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s var(--ease), opacity 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    max-height: 16rem;
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    padding-block: 3rem 3.5rem;
  }

  .hero__logo {
    width: min(100%, 16.5rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .client-grid {
    gap: 1rem;
  }
}
