:root {
  --ink: #102322;
  --muted: #526a68;
  --paper: #f1f7f6;
  --white: #ffffff;
  --line: #d3e3e0;
  --forest: #087f7a;
  --moss: #2b9e98;
  --turquoise: #32d6c6;
  --turquoise-soft: #8ce9df;
  --charcoal: #061817;
  --signal: var(--turquoise);
  --shadow: 0 24px 70px rgba(22, 31, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(16, 23, 22, 0.82), rgba(16, 23, 22, 0));
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 40px;
  height: 34px;
  flex: 0 0 40px;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  inset: 2px 18px 2px 3px;
  background: var(--white);
  clip-path: polygon(48% 0, 100% 0, 52% 100%, 0 100%);
}

.brand-mark::after {
  inset: 13px 2px 2px 18px;
  background: var(--turquoise);
  clip-path: polygon(0 0, 52% 0, 100% 100%, 48% 100%);
}

.brand-name {
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.brand-name strong {
  color: var(--signal);
  font-weight: 750;
}

.site-nav {
  gap: clamp(14px, 3vw, 32px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  padding: 112px clamp(20px, 6vw, 82px) 72px;
}

.hero-media,
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/fortera-hero.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  pointer-events: none;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 23, 22, 0.9) 0%, rgba(16, 23, 22, 0.72) 42%, rgba(16, 23, 22, 0.2) 100%),
    linear-gradient(180deg, rgba(16, 23, 22, 0.25) 0%, rgba(16, 23, 22, 0.68) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--turquoise);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 6.6vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-subtitle {
  margin-bottom: 22px;
  color: #e8f7f5;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 650;
  line-height: 1.18;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.text-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 700;
  text-underline-offset: 5px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.48);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  background: #e8f8f6;
  transform: translateY(-2px);
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 82px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 7vw, 96px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.stacked-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.stacked-copy p:last-child,
.service-card p:last-child,
.why-grid p:last-child,
.contact-copy p:last-child {
  margin-bottom: 0;
}

.services {
  background: var(--white);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 36px;
}

.section-heading h2 {
  max-width: 850px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 270px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--white);
}

.card-kicker {
  display: block;
  margin-bottom: 34px;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card p,
.why-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.accent-card {
  color: var(--white);
  background: var(--forest);
}

.accent-card p {
  color: rgba(255, 255, 255, 0.82);
}

.accent-card .card-kicker {
  color: var(--turquoise-soft);
}

.approach {
  color: var(--white);
  background: var(--charcoal);
}

.approach-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: end;
  gap: clamp(32px, 7vw, 100px);
  width: min(1180px, 100%);
  margin: 0 auto 70px;
}

.approach-lead > p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.06rem;
}

.defence-list {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.defence-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.defence-list > li > span {
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 800;
}

.defence-list h3 {
  margin-bottom: 5px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.defence-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
}

.why {
  background:
    linear-gradient(180deg, rgba(241, 247, 246, 0.96), rgba(241, 247, 246, 0.96)),
    linear-gradient(120deg, var(--forest), var(--turquoise));
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.why-grid article {
  padding-top: 24px;
  border-top: 3px solid var(--forest);
}

.number {
  display: block;
  margin-bottom: 24px;
  color: var(--forest);
  font-weight: 800;
}

.contact {
  color: var(--white);
  background: var(--charcoal);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 7vw, 96px);
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: center;
}

.contact-copy {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.contact-copy a {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  text-decoration-color: var(--turquoise);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 26px clamp(20px, 6vw, 82px);
  color: rgba(255, 255, 255, 0.66);
  background: #0b100f;
  font-size: 0.9rem;
}

.site-footer p {
  width: min(1180px, 100%);
  margin: 0 auto;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(16, 23, 22, 0.92), rgba(16, 23, 22, 0.58)),
      linear-gradient(180deg, rgba(16, 23, 22, 0.18), rgba(16, 23, 22, 0.76));
  }

  .section-grid,
  .approach-lead,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 20px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero {
    min-height: 86vh;
    padding: 104px 20px 52px;
  }

  h1 {
    font-size: 3.45rem;
  }

  .hero-copy,
  .stacked-copy,
  .contact-copy {
    font-size: 1rem;
  }

  .section {
    padding: 64px 20px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    box-shadow: none;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .defence-list li {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
  }
}

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

  .hero-video {
    display: none;
  }
}
