:root {
  --bg: #ece9e2;
  --surface: #ffffff;
  --surface-soft: #eef3f7;
  --ink: #16202b;
  --muted: #566271;
  --line: #d4dde6;
  --red: #2f6f9c;
  --red-dark: #1f4867;
  --shadow: 0 18px 40px rgba(16, 15, 13, 0.08);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1440px;
  --outer-gutter: clamp(14px, 2.2vw, 32px);
  --section-gap: clamp(34px, 4vw, 56px);
  --ease: 220ms ease;
}

@font-face {
  font-family: "Relidux";
  src: url("./relidux/Relidux.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #efebe4 0%, #ebe8e0 48%, #e7e3db 100%);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

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

.top-strip {
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  color: #fff7f5;
  text-align: center;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.top-strip p {
  margin: 0;
}

.site-shell {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  padding-top: clamp(28px, 3vw, 40px);
  padding-bottom: 56px;
}

.site-shell > * + * {
  margin-top: var(--section-gap);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  width: auto;
  margin: 18px var(--outer-gutter) 0;
  padding: 14px 20px;
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), #e34a46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 3px solid #fff;
}

.brand-mark::after {
  inset: 17px;
  border-width: 2px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition:
    color var(--ease),
    background var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(25, 25, 25, 0.06);
}

.topbar-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  transition:
    transform var(--ease),
    background var(--ease),
    border-color var(--ease),
    color var(--ease),
    box-shadow var(--ease);
}

.topbar-cta {
  border: 1px solid rgba(47, 111, 156, 0.16);
  background: rgba(47, 111, 156, 0.08);
  color: var(--red-dark);
}

.topbar-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(25, 25, 25, 0.1);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle.is-open span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(520px, 0.95fr);
  gap: 0;
  min-height: min(68vh, 720px);
  width: auto;
  margin: 12px var(--outer-gutter) 0;
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media {
  min-height: clamp(420px, 54vh, 560px);
  background: #dfe6ec;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(420px, 54vh, 560px);
  padding: 0;
  color: #fff;
  background:
    linear-gradient(154deg, #2f6f9c 0%, #2b648c 44%, #1f4867 74%, #16222c 100%);
}

.hero-copy-inner {
  margin: 42px 44px 40px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.78;
}

.hero-kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Relidux", "Barlow Condensed", sans-serif;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-family: "Relidux", "Barlow Condensed", sans-serif;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.35rem, 3.7vw, 3.9rem);
}

h2 {
  max-width: 17ch;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

h3 {
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
}

.hero-text,
.section-heading > p:last-child,
.service-intro p,
.service-row p,
.timeline-step p,
.industry-note p,
.contact-copy p {
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.button {
  border: 1px solid transparent;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #163245, #274e6b);
  box-shadow: 0 18px 24px rgba(0, 0, 0, 0.18);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.hero-tags,
.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.industry-list span {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.hero-proof article {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-proof strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-proof p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

.impact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 34px 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, #13202b 0%, #162530 100%);
  color: #f9f4ee;
  box-shadow: var(--shadow);
}

.impact-copy .eyebrow {
  color: #a8d1ef;
  opacity: 1;
}

.impact-copy h2 {
  max-width: 12ch;
}

.impact-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.impact-metrics article {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.impact-metrics article:first-child {
  padding-left: 0;
  border-left: 0;
}

.impact-metrics strong {
  display: block;
  font-family: "Relidux", "Barlow Condensed", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 0.9;
}

.impact-metrics span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 0;
  color: var(--red);
}

.section-heading h2 {
  max-width: 16ch;
  color: var(--ink);
}

.service-board,
.industry-panel,
.contact-panel {
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-board {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  padding: 36px;
}

.service-intro {
  padding-right: 12px;
}

.service-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.service-list {
  display: grid;
}

.service-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.service-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.service-row span,
.timeline-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(47, 111, 156, 0.12);
  color: var(--red-dark);
  font-family: "Relidux", "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.service-row h3,
.timeline-step h3 {
  margin-bottom: 8px;
  color: var(--ink);
}

.service-row p,
.timeline-step p,
.industry-note p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.timeline-step {
  position: relative;
  padding-top: 18px;
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 44px;
  left: -11px;
  right: -11px;
  height: 1px;
  background: var(--line);
  z-index: -1;
}

.timeline-step:first-child::before {
  left: 26px;
}

.timeline-step:last-child::before {
  right: calc(100% - 26px);
}

.industry-panel {
  padding: 36px;
}

.industry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.industry-list span {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.industry-note {
  padding: 28px;
  border-left: 4px solid var(--red);
  background: linear-gradient(180deg, #f3f7fb, #edf3f8);
  border-radius: 0 14px 14px 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 38px;
  align-items: center;
  background:
    linear-gradient(135deg, #13202b 0%, #13202b 56%, var(--red) 56%, #3f7eaa 100%);
}

.contact-copy .eyebrow,
.contact-copy h2 {
  color: #ffffff;
}

.contact-copy p:last-child {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions .button-primary {
  background: #ffffff;
  color: #111111;
}

.contact-actions .button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .topbar-cta {
    display: none;
  }

  .hero,
  .impact-band,
  .service-board,
  .industry-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-copy-inner {
    margin: 36px 36px 34px;
  }

  .hero-media {
    min-height: 420px;
  }

  .impact-metrics,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1600px) and (min-height: 900px) {
  .site-shell {
    width: min(calc(100% - 72px), 1520px);
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(620px, 0.92fr);
    min-height: min(62vh, 660px);
    margin: 14px clamp(18px, 2.4vw, 36px) 0;
  }

  .hero-media,
  .hero-copy {
    min-height: clamp(400px, 50vh, 520px);
  }

  .hero-copy-inner {
    margin: 38px 40px 36px;
  }

  h1 {
    max-width: 13.5ch;
    font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--max-width));
    padding-top: 22px;
  }

  .topbar {
    grid-template-columns: auto auto;
    gap: 16px;
    margin: 14px var(--outer-gutter) 0;
    padding: 14px;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(25, 25, 25, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity var(--ease),
      transform var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    text-align: center;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.6rem, 8vw, 2.35rem);
  }

  .hero-copy,
  .service-board,
  .industry-panel,
  .contact-panel,
  .impact-band {
    padding: 28px;
  }

  .hero {
    margin: 10px var(--outer-gutter) 0;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy-inner {
    margin: 28px;
  }

  .impact-metrics,
  .timeline,
  .hero-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell > * + * {
    margin-top: 28px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button,
  .contact-actions .button,
  .topbar-cta {
    width: 100%;
  }

  .service-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }
}
