/*
Theme Name: Alpha Investment Managers
Theme URI: https://alphainv.co.za
Author: Alpha Investment Managers
Description: Custom theme for Alpha Investment Managers — owner-managed, investment-led and focused on enduring client outcomes.
Version: 2.4.1
Text Domain: alpha-investment
*/



/* =========================================================
   ALPHA INVESTMENT MANAGERS
   Responsive multi-page website
========================================================= */

:root {
  --heading-tracking: -.035em;
  --heading-gap: 16px;
  --heading-width: 1120px;

  --black: #050605;
  --black-soft: #0c0e0c;
  --green: #91d68c;
  --green-dark: #397e38;
  --green-bright: #62ff00;

  --white: #ffffff;
  --off-white: #f5f6f2;
  --cream: #eef0e9;

  --text: #171a17;
  --muted: #687068;
  --muted-light: #a5aaa5;

  --line: #dfe3dc;
  --line-dark: rgba(255,255,255,.14);

  --max: 1280px;
  --pad: 42px;

  --header-height: 78px;
}

/* =========================================================
   INTERACTIVE PERFORMANCE CHART
========================================================= */

.performance-chart {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.13);
}

.performance-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.performance-chart-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

.performance-chart-toggle button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  background: transparent;
  color: var(--muted-light);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.performance-chart-toggle button.active {
  background: var(--green);
  color: var(--black);
}

.performance-chart-toggle button:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

.performance-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.performance-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.performance-chart-legend i {
  width: 24px;
  height: 3px;
  display: inline-block;
  background: var(--green-bright);
}

.performance-chart-legend i.benchmark {
  height: 2px;
  background: #a5aaa5;
}

.performance-chart-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-color: var(--green-dark) rgba(255,255,255,.08);
}

.performance-chart-svg {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

.performance-chart-grid line {
  stroke: rgba(255,255,255,.11);
  stroke-width: 1;
}

.performance-chart-grid text {
  fill: #7f857f;
  font-size: 12px;
}

.performance-chart-grid .performance-chart-period {
  fill: #a5aaa5;
  font-size: 12px;
}

.performance-chart-line {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: none;
}

.performance-chart-line.fund {
  stroke: var(--green-bright);
  stroke-width: 3;
}

.performance-chart-line.benchmark {
  stroke: #a5aaa5;
  stroke-width: 2;
}

.performance-chart-point {
  opacity: 0;
  stroke-width: 2;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  animation: alpha-chart-point-in .35s ease forwards;
}

.performance-chart-point.fund {
  fill: var(--green-bright);
  stroke: var(--black);
}

.performance-chart-point.benchmark {
  fill: #a5aaa5;
  stroke: var(--black);
}

.performance-chart-point:hover,
.performance-chart-point:focus {
  transform: scale(1.35);
  outline: none;
}

.performance-chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 185px;
  padding: 13px 15px;
  border-radius: 3px;
  background: var(--green);
  color: var(--black);
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
  transform: none;
  max-width: 270px;
}

.performance-chart-tooltip::after {
  display: none;
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--green);
}

.performance-chart-tooltip strong,
.performance-chart-tooltip span {
  display: block;
}

.performance-chart-tooltip strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.performance-chart-tooltip b {
  font-weight: 700;
}

.performance-chart-unit {
  margin-bottom: 10px;
  color: #a5aaa5;
  font-size: 12px;
}

.performance-chart-bar { cursor: pointer; }
.performance-chart-bar.fund, .performance-chart-hit.fund { fill: var(--green-bright); }
.performance-chart-bar.benchmark, .performance-chart-hit.benchmark { fill: #a5aaa5; }
.performance-chart-bar:hover, .performance-chart-bar:focus {
  stroke: var(--white);
  stroke-width: 2;
  outline: none;
}
.performance-chart-bar-label { fill: #d9ddd9; font-size: 14px; pointer-events: none; }
.performance-chart-hit { opacity: 0; cursor: pointer; pointer-events: all; }
.performance-chart-hit:hover, .performance-chart-hit:focus {
  opacity: 1;
  stroke: var(--black);
  stroke-width: 2;
  outline: none;
}
.performance-chart[data-chart-active="annualised"] .performance-chart-svg { min-width: 540px; }

.performance-chart-help {
  margin-top: 10px;
  color: #7f857f;
  font-size: 11px;
}

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

@keyframes alpha-chart-point-in {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 700px) {
  .performance-chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .performance-chart-toggle {
    width: 100%;
  }

  .performance-chart-toggle button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .performance-chart-point {
    opacity: 1;
    animation: none;
  }
}

/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family:
    Inter,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(
    calc(100% - (var(--pad) * 2)),
    var(--max)
  );
  margin-inline: auto;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

.eyebrow {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.dark-section .eyebrow,
.hero .eyebrow {
  color: var(--green);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  letter-spacing: .01em;
}

.display {
  max-width: var(--heading-width);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.08;
  text-wrap: pretty;
  letter-spacing: var(--heading-tracking);
  font-weight: 450;
}

.body-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 650px;
}

.dark-section .body-copy {
  color: #b7bcb7;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);

  display: flex;
  align-items: center;

  background: rgba(5,6,5,.2);
  border-bottom: 1px solid transparent;

  transition:
    background .3s ease,
    border-color .3s ease,
    backdrop-filter .3s ease;
}

.site-header.scrolled {
  background: rgba(5,6,5,.94);
  border-bottom-color: var(--line-dark);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 158px;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-links a {
  position: relative;

  color: rgba(255,255,255,.78);

  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;

  transition: color .2s ease;
}

.nav-links a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: var(--green);

  transition: width .25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 14px !important;
  border: 1px solid rgba(145,214,140,.55);
  color: var(--green) !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--green);
  color: var(--black) !important;
}

.mobile-menu-button {
  display: none;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;

  background: transparent;
  color: white;

  cursor: pointer;
}

/* =========================================================
   PAGE SYSTEM
========================================================= */

.page {
  min-height: 100vh;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 88vh;
  position: relative;

  display: flex;
  align-items: flex-end;

  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.96) 0%,
      rgba(0,0,0,.74) 35%,
      rgba(0,0,0,.18) 80%
    ),
    linear-gradient(
      0deg,
      rgba(0,0,0,.9),
      transparent 60%
    ),
    var(--alpha-hero-image, url("images/alpha-wave.jpg"))
    center / cover no-repeat;

  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 780px;

  padding-top: 150px;
  padding-bottom: 75px;
}

.hero h1 {
  margin-top: 18px;
  margin-bottom: 24px;

  font-size: clamp(55px, 7.5vw, 108px);
  line-height: .88;
  letter-spacing: var(--heading-tracking);
  font-weight: 450;
}

.hero h1 span {
  color: var(--green);
}

.hero .body-copy {
  max-width: 560px;
  color: #c4c8c4;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 43px;
  padding: 0 19px;

  border: 1px solid var(--green);

  color: var(--green);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.button:hover {
  background: var(--green);
  color: var(--black);
  transform: translateY(-2px);
}

.button.light {
  border-color: #151815;
  color: var(--text);
}

.button.light:hover {
  background: var(--black);
  color: white;
}

.hero-scroll {
  position: absolute;
  z-index: 3;

  right: var(--pad);
  bottom: 27px;

  color: rgba(255,255,255,.55);

  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* =========================================================
   STANDARD SECTIONS
========================================================= */

.section {
  padding: 88px 0;
}

.section.compact {
  padding: 68px 0;
}

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

.cream-section {
  background: var(--cream);
  color: var(--text);
}

.dark-section {
  background: var(--black);
  color: var(--white);
}

.green-section {
  background: var(--green);
  color: var(--black);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.section-content {
  min-width: 0;
}

.section-heading {
  max-width: var(--heading-width);
}

.section-heading p {
  margin-top: 20px;
}

.eyebrow + .display,
.page-hero .eyebrow + h1 {
  margin-top: var(--heading-gap);
}

/* =========================================================
   PRINCIPLE CARDS
========================================================= */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  margin-top: 48px;
}

.info-card {
  padding: 22px 0;

  border-top: 1px solid var(--line);
}

.dark-section .info-card {
  border-color: var(--line-dark);
}

.card-number {
  margin-bottom: 24px;

  color: var(--green-dark);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.dark-section .card-number {
  color: var(--green);
}

.info-card h3 {
  margin-bottom: 8px;

  font-size: 18px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -.025em;
}

.info-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dark-section .info-card p {
  color: #aeb4ae;
}

/* =========================================================
   IMAGE BANNER
========================================================= */

.image-banner {
  height: 47vh;
  min-height: 380px;

  position: relative;
  overflow: hidden;
}

.image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-banner.dark img {
  filter: grayscale(100%) contrast(1.08);
  opacity: .8;
}

.image-banner::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      0deg,
      rgba(0,0,0,.6),
      transparent 60%
    );
}

.image-caption {
  position: absolute;
  z-index: 2;

  left: max(
    var(--pad),
    calc((100% - var(--max)) / 2)
  );

  bottom: 24px;

  color: white;

  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* =========================================================
   PROCESS
========================================================= */

.process {
  margin-top: 52px;
}

.process-row {
  display: grid;
  grid-template-columns: 55px 250px 1fr;
  gap: 25px;

  padding: 19px 0;

  border-top: 1px solid var(--line);

  align-items: center;
}

.dark-section .process-row {
  border-color: var(--line-dark);
}

.process-row:last-child {
  border-bottom: 1px solid var(--line);
}

.dark-section .process-row:last-child {
  border-color: var(--line-dark);
}

.process-number {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.dark-section .process-number {
  color: var(--green);
}

.process-row h3 {
  font-size: 17px;
  font-weight: 550;
}

.process-row p {
  color: var(--muted);
  font-size: 13px;
}

.dark-section .process-row p {
  color: #adb3ad;
}

/* =========================================================
   WHO WE ARE
========================================================= */

.page-hero {
  min-height: 58vh;

  display: flex;
  align-items: flex-end;

  position: relative;
  overflow: hidden;
}

.page-hero-image {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.9),
      rgba(0,0,0,.3)
    ),
    var(--alpha-page-hero-image, url("images/alpha-wave.jpg"))
    center / cover no-repeat;
}

.page-hero.architecture-hero .page-hero-image {
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.82),
      rgba(0,0,0,.2)
    ),
    var(--alpha-page-hero-image, url("images/architecture.jpg"))
    center / cover no-repeat;
}

.page-hero-content {
  position: relative;
  z-index: 2;

  padding-top: 140px;
  padding-bottom: 62px;

  max-width: var(--heading-width);
}

.page-hero h1 {
  margin-top: 16px;

  font-size: clamp(42px, 6.5vw, 88px);
  line-height: 1.05;
  text-wrap: pretty;
  letter-spacing: var(--heading-tracking);
  font-weight: 450;
}

.page-hero p {
  max-width: 620px;
  margin-top: 22px;

  color: #c4c8c4;
  font-size: 16px;
  line-height: 1.65;
}

/* =========================================================
   STAT STRIP
========================================================= */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  margin-top: 45px;
}

.stat {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;

  font-size: 31px;
  line-height: 1;

  letter-spacing: -.04em;
}

.stat span {
  display: block;

  margin-top: 8px;

  color: var(--muted);

  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* =========================================================
   QUOTE
========================================================= */

.quote-section {
  padding: 70px 0;

  background: var(--green);
  color: var(--black);
}

.quote {
  max-width: 900px;

  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 450;
}

.quote-by {
  margin-top: 20px;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* =========================================================
   TEAM
========================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;

  margin-top: 48px;
}

.team-card {
  display: grid;
  grid-template-columns: 180px 1fr;

  min-height: 180px;

  background: var(--white);
  border: 1px solid var(--line);

  color: var(--text);
}

.team-image {
  height: 100%;
  min-height: 180px;

  background:
    linear-gradient(
      145deg,
      #182318,
      #4f964d
    );

  display: flex;
  align-items: center;
  justify-content: center;
}

.team-image span {
  color: rgba(255,255,255,.9);

  font-size: 45px;
  font-weight: 300;
  letter-spacing: -.08em;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-info {
  padding: 25px;
}

.team-label {
  color: var(--green-dark);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.team-info h3 {
  margin: 12px 0 7px;

  font-size: 23px;
  line-height: 1;
  letter-spacing: -.04em;
}

.team-email {
  color: var(--muted);

  font-size: 12px;

  transition: color .2s ease;
}

.team-email:hover {
  color: var(--green-dark);
}

/* =========================================================
   PRODUCTS
========================================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;

  margin-top: 48px;
}

.product-card {
  padding: 30px;

  background: white;
  border: 1px solid var(--line);

  color: var(--text);
}

.product-card.featured {
  background: var(--black);
  color: white;
  border-color: var(--black);
}

.product-label {
  color: var(--green-dark);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.product-card.featured .product-label {
  color: var(--green);
}

.product-card h3 {
  margin-top: 13px;

  font-size: 29px;
  line-height: 1;
  letter-spacing: -.05em;
}

.product-card > p {
  max-width: 520px;
  margin-top: 14px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.6;
}

.product-card.featured > p {
  color: #aeb3ae;
}

.return-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  margin-top: 25px;

  border-top: 1px solid var(--line);
}

.product-card.featured .return-grid {
  border-color: var(--line-dark);
}

.return {
  padding: 18px 0;
}

.return + .return {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.product-card.featured .return + .return {
  border-color: var(--line-dark);
}

.return strong {
  display: block;

  font-size: 26px;
  line-height: 1;
}

.return span {
  display: block;

  margin-top: 7px;

  color: var(--muted);

  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* =========================================================
   PERFORMANCE TABLE
========================================================= */

.performance-wrap {
  margin-top: 48px;

  background: white;
  border: 1px solid var(--line);

  overflow-x: auto;
}

.performance-table {
  width: 100%;
  border-collapse: collapse;

  color: var(--text);

  font-size: 13px;
}

.performance-table th,
.performance-table td {
  padding: 15px 18px;

  text-align: left;

  border-bottom: 1px solid var(--line);

  white-space: nowrap;
}

.performance-table th {
  background: var(--cream);

  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.performance-table tr:last-child td {
  border-bottom: 0;
}

.performance-table td:nth-child(2) {
  color: var(--green-dark);
  font-weight: 700;
}

/* =========================================================
   CONTACT
========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;

  margin-top: 45px;
}

.contact-card {
  padding: 28px;

  background: white;
  border: 1px solid var(--line);

  color: var(--text);
}

.contact-card.green {
  background: var(--green);
  border-color: var(--green);
}

.contact-card h3 {
  margin-bottom: 15px;

  font-size: 22px;
  line-height: 1;
  letter-spacing: -.04em;
}

.contact-card p,
.contact-card a {
  color: var(--muted);

  font-size: 13px;
  line-height: 1.8;
}

.contact-card.green p,
.contact-card.green a {
  color: #1a3219;
}

.contact-card.person-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 0;
  overflow: hidden;
  min-height: 180px;
}

.contact-person-image {
  height: 100%;
  min-height: 180px;
  overflow: hidden;
  background: var(--cream);
}

.contact-person-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.contact-person-info {
  padding: 28px;
}

.contact-card a:hover {
  color: var(--green-dark);
}

.contact-form {
  margin-top: 30px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--muted);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;

  padding: 13px 14px;

  background: white;
  border: 1px solid var(--line);

  color: var(--text);

  outline: none;

  font: inherit;
  font-size: 13px;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.form-field textarea {
  min-height: 125px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(57,126,56,.08);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 25px 0;

  background: #050505;

  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 25px;
}

.footer-logo {
  width: 125px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-self: end;
  gap: 20px;
}

.footer-links a {
  color: #777;

  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-copy {
  grid-column: 1 / -1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #666;

  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* =========================================================
   PAGE TRANSITION
========================================================= */

.page.active .animate {
  animation: pageIn .5s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

  :root {
    --pad: 28px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 9px;
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .product-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-row {
    grid-template-columns: 50px 210px 1fr;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

  :root {
    --pad: 20px;
    --header-height: 68px;
  }

  .site-header {
    height: var(--header-height);
  }

  .logo {
    width: 137px;
  }

  .mobile-menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;

    top: var(--header-height);
    left: 12px;
    right: 12px;

    display: none;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 7px;

    background: rgba(5,6,5,.98);
    border: 1px solid var(--line-dark);

    box-shadow: 0 25px 70px rgba(0,0,0,.5);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;

    padding: 15px;

    font-size: 10px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 4px;
    text-align: center;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-background {
    background:
      linear-gradient(
        90deg,
        rgba(0,0,0,.94),
        rgba(0,0,0,.25)
      ),
      linear-gradient(
        0deg,
        rgba(0,0,0,.9),
        transparent 65%
      ),
      var(--alpha-hero-image, url("images/alpha-wave.jpg"))
      62% center / cover no-repeat;
  }

  .hero-content {
    padding-top: 125px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: clamp(50px, 15vw, 75px);
  }

  .hero .body-copy {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-scroll {
    display: none;
  }

  .section {
    padding: 62px 0;
  }

  .section.compact {
    padding: 48px 0;
  }

  .cards-3 {
    margin-top: 35px;
  }

  .info-card {
    padding: 17px 0;
  }

  .card-number {
    margin-bottom: 14px;
  }

  .image-banner {
    height: 34vh;
    min-height: 260px;
  }

  .page-hero {
    min-height: 60vh;
  }

  .page-hero-content {
    padding-top: 125px;
    padding-bottom: 50px;
  }

  .page-hero p {
    font-size: 14px;
  }

  .process {
    margin-top: 35px;
  }

  .process-row {
    grid-template-columns: 42px 1fr;
    gap: 12px;

    padding: 17px 0;
  }

  .process-row p {
    grid-column: 2;
    margin-top: -5px;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .team-card {
    grid-template-columns: 110px 1fr;
  }

  .contact-card.person-card {
    grid-template-columns: 110px 1fr;
  }

  .contact-person-image {
    min-height: 145px;
  }

  .contact-person-info {
    padding: 20px;
  }

  .team-image {
    min-height: 145px;
  }

  .team-info {
    padding: 20px;
  }

  .team-info h3 {
    font-size: 20px;
  }

  .product-card {
    padding: 23px;
  }

  .product-card h3 {
    font-size: 25px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .footer-links {
    justify-self: start;
  }

  .footer-copy {
    width: 100%;
  }
}

/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 390px) {

  .hero h1 {
    font-size: 48px;
  }

  .team-card,
  .contact-card.person-card {
    grid-template-columns: 1fr;
  }

  .team-image,
  .contact-person-image {
    height: 130px;
    min-height: 130px;
  }

  .team-info,
  .contact-person-info {
    padding: 20px;
  }

  .team-image {
    height: 130px;
    min-height: 130px;
  }

  .button {
    width: 100%;
  }

}

/* Unstyled fragments retain the existing hero colour. */
.hero h1 .alpha-hero-line { color: inherit; }
