/* Tecsimulate — white / blue sample, Cambria */

:root {
  --blue: #0347a3;
  --blue-deep: #023a86;
  --white: #ffffff;
  --text: #0f1c33;
  --text-muted: #4a5a73;
  --text-on-blue: #ffffff;
  --text-on-blue-muted: rgba(255, 255, 255, 0.84);
  --accent: #ebc445;
  --accent-ink: #1a1608;
  --line: rgba(3, 71, 163, 0.14);
  --line-on-blue: rgba(255, 255, 255, 0.2);
  --font: Cambria, "Cambria Math", Georgia, "Times New Roman", Times, serif;
  --shell: min(1100px, calc(100% - 2.5rem));
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-image {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

address {
  font-style: normal;
}

.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: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 28, 51, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: auto;
  height: 2.65rem;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header.is-scrolled .site-nav a {
  color: var(--blue);
}

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

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a.is-active {
  color: var(--blue-deep);
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  margin-inline: auto;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled .nav-toggle-bar,
.site-header.is-scrolled .nav-toggle-bar::before,
.site-header.is-scrolled .nav-toggle-bar::after {
  background: var(--blue);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: relative;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 4.5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: -1.5px;
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  overflow: hidden;
  color: var(--text-on-blue);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: url("assets/hero.jpg") center 40% / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2, 40, 100, 0.92) 0%, rgba(3, 71, 163, 0.58) 45%, rgba(3, 71, 163, 0.38) 100%),
    linear-gradient(115deg, rgba(2, 40, 100, 0.5) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.hero-brand {
  margin-bottom: 1.15rem;
}

.hero-brand img {
  width: min(100%, 20rem);
  height: auto;
  border-radius: 2px;
}

.hero-lead {
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.4;
  color: var(--text-on-blue);
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.btn:hover {
  color: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #f2d05a;
  color: var(--accent-ink);
  transform: translateY(-1px);
}

/* Section bands */

.section {
  padding: 5rem 0;
}

.band-white {
  background: var(--white);
  color: var(--text);
}

.band-blue {
  background: var(--blue);
  color: var(--text-on-blue);
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.band-white .section-label {
  color: var(--blue);
}

.band-blue .section-label {
  color: var(--text-on-blue);
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}

.band-white .section-title {
  color: var(--blue);
}

.band-blue .section-title {
  color: var(--text-on-blue);
  max-width: 28ch;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
}

/* About */

.about-grid {
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: 1.1fr 1fr;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text);
}

.about-body {
  color: var(--text-muted);
}

/* Services */

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

.service-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line-on-blue);
}

.service-index {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.15rem;
}

.service-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
  color: var(--white);
}

.service-item p {
  color: var(--text-on-blue-muted);
  max-width: 40rem;
}

.service-icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--white);
  opacity: 0.9;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

/* Software */

.software-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.software .section-label {
  margin-bottom: 1.5rem;
}

.software-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}

.software-columns > div:first-child {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.software-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.software-columns p:last-child {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.software-visual {
  width: 7rem;
  color: var(--blue);
  opacity: 0.85;
}

.software-visual svg {
  width: 100%;
  height: auto;
}

/* Founders */

.founder-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  margin-top: 2.5rem;
}

.founder h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  color: var(--white);
}

.founder-role {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.founder > p:last-child {
  color: var(--text-on-blue-muted);
}

/* Vision */

.vision {
  position: relative;
}

.vision::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 22%;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(#8aa0c4 1.2px, transparent 1.2px);
  background-size: 10px 10px;
  opacity: 0.55;
  pointer-events: none;
}

.vision-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.vision-icon {
  width: 4rem;
  color: var(--blue);
  margin-top: 0.35rem;
}

.vision-icon svg {
  width: 100%;
  height: auto;
}

.vision-text {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 48rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
  margin-top: 2.5rem;
}

.contact-icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-block h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.contact-block a {
  display: block;
  font-size: 1.1rem;
  text-decoration: none;
  margin-bottom: 0.3rem;
  color: var(--white);
}

.contact-block a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.contact-address address {
  color: var(--text-on-blue-muted);
  line-height: 1.7;
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 2.75rem;
  background: var(--blue-deep);
  color: var(--text-on-blue);
}

.footer-inner {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-on-blue-muted);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

/* Reveal */

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal:nth-child(1) {
  transition-delay: 0.05s;
}

.hero .reveal:nth-child(2) {
  transition-delay: 0.18s;
}

.hero .reveal:nth-child(3) {
  transition-delay: 0.3s;
}

/* Responsive */

@media (max-width: 860px) {
  .about-grid,
  .founder-list,
  .contact-grid,
  .software-columns,
  .software-inner,
  .vision-inner {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 3rem 1fr;
  }

  .service-icon {
    display: none;
  }

  .software-columns > div:first-child {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
  }

  .software-visual,
  .vision::after {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(1100px, calc(100% - 1.5rem));
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-header.is-scrolled .site-nav a {
    color: var(--blue);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

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

  .hero {
    padding-bottom: 3.5rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .section-title {
    max-width: none;
  }
}
