/* Inventum Technologies - one-page site
   Light editorial. Single navy accent sampled from the original IvC mark (#245193). */

:root {
  --navy: #245193;
  --navy-ink: #16305c;
  --navy-deep: #0f2445;

  --ink: #15181d;
  --ink-2: #4b525e;
  --ink-3: #767d89;

  --paper: #faf9f7;
  --paper-2: #ffffff;

  --line: rgba(21, 24, 29, 0.12);
  --line-soft: rgba(21, 24, 29, 0.07);

  --shell: 1160px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 500; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--navy); color: #fff; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-size: 0.875rem;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line-soft);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(250, 249, 247, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-scrolled::after { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
}

.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--ink);
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand-sub {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-nav .nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  color: var(--ink);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 900px);
  padding-block: clamp(8rem, 18vh, 11rem) clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}

/* One soft navy wash, nothing else. The type carries the hero. */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 88% 8%, rgba(36, 81, 147, 0.085), transparent 60%),
    radial-gradient(ellipse 55% 50% at 12% 96%, rgba(36, 81, 147, 0.05), transparent 62%);
}

.hero-inner { position: relative; }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.75rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--navy);
  vertical-align: middle;
  margin-right: 0.85rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.85rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

/* Own line so the phrase never splits across a wrap. */
.hero-title em {
  display: block;
  font-style: italic;
  color: var(--navy);
}

.hero-sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 2.75rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--ink-3);
  flex-wrap: wrap;
}

.hero-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.hero-meta a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 81, 147, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.25s var(--ease);
}
.hero-meta a:hover { border-color: var(--navy); }

/* The four stages, spelled out. Reinforces the one-team claim in the headline
   and gives the hero a base without resorting to decoration. */
.hero-strip {
  list-style: none;
  margin: clamp(2.75rem, 6vw, 4.25rem) 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
  max-width: 560px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-strip li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-strip li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.55;
  flex: none;
}

/* -------------------------------------------------------------- sections */

.section { padding-block: var(--section-y); }

.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line-soft);
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 2.5rem;
}

.section-label span {
  color: var(--navy);
  margin-right: 0.65rem;
}

/* about */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-grid .section-label { margin-bottom: 0; }

.about-body { max-width: 62ch; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.about-body p:not(.lede) {
  color: var(--ink-2);
  font-size: 1.0625rem;
}

/* capabilities */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.cap {
  background: var(--paper-2);
  padding: clamp(1.9rem, 3.5vw, 3rem);
  position: relative;
  transition: background-color 0.35s var(--ease);
}

.cap:hover { background: #fcfcfd; }

.cap-num {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 1.6rem;
  transition: color 0.3s var(--ease);
}

.cap:hover .cap-num { color: var(--navy); }

.cap h2 {
  font-size: 1.3125rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
}

.cap h2::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin-top: 0.9rem;
  transform-origin: left;
  transform: scaleX(0.6);
  opacity: 0.35;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.cap:hover h2::after { transform: scaleX(1.6); opacity: 1; }

.cap p {
  color: var(--ink-2);
  font-size: 0.9375rem;
  max-width: 44ch;
}

/* approach */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.approach { border-top: 1px solid var(--line); padding-top: 1.5rem; }

.approach h2 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

.approach p {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- contact */

.section-contact {
  background: var(--navy-ink);
  color: #fff;
}

.section-contact .section-label { color: rgba(255, 255, 255, 0.5); }
.section-contact .section-label span { color: rgba(255, 255, 255, 0.85); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.125rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  max-width: 16ch;
  margin-bottom: 1rem;
}

.contact-blurb {
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.0625rem;
  margin-bottom: 3rem;
}

.contact-details {
  margin: 0;
  display: grid;
  gap: 1.75rem;
}

.contact-details dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.5rem;
}

.contact-details dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.contact-details a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.25s var(--ease);
}
.contact-details a:hover { border-color: #fff; }

/* form */

.contact-form { display: grid; gap: 1.5rem; }

.field { display: grid; gap: 0.5rem; }

.field label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.6rem 0;
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
}

.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.field input:hover,
.field textarea:hover { border-bottom-color: rgba(255, 255, 255, 0.4); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: #fff;
}

.field input:focus-visible,
.field textarea:focus-visible { outline: none; }

.field input.has-error,
.field textarea.has-error { border-bottom-color: #ff9a8f; }

/* honeypot - hidden from people, reachable by bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  justify-self: start;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy-ink);
  background: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 0.8rem 1.9rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.btn:hover { background: transparent; color: #fff; }

.btn[disabled] { opacity: 0.55; cursor: default; }
.btn[disabled]:hover { background: #fff; color: var(--navy-ink); }

.form-status {
  margin: 0;
  font-size: 0.875rem;
  min-height: 1.4em;
  color: rgba(255, 255, 255, 0.75);
}

.form-status.is-error { color: #ffb3a8; }
.form-status.is-done { color: #b9e6c4; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  padding-block: 2.25rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p { margin: 0; }

/* ---------------------------------------------------------------- reveal */

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

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

/* Stagger items inside a grid so they arrive in sequence rather than as a block. */
.cap-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.cap-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.cap-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.approach-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.approach-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .about-grid .section-label { margin-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .contact-blurb { margin-bottom: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
