:root {
  --navy-975: #020a14;
  --navy-950: #04101f;
  --navy-900: #06162c;
  --navy-850: #0a1d38;
  --blue-500: #61a8ff;
  --blue-300: #b7d8ff;
  --white: #f7fbff;
  --muted: #acbbcf;
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(183, 216, 255, .38);
  --shell: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 8%, rgba(52, 118, 214, .19), transparent 29%),
    radial-gradient(circle at 84% 24%, rgba(27, 76, 145, .14), transparent 35%),
    linear-gradient(145deg, var(--navy-975), var(--navy-900) 48%, #061426);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 82%);
}

a {
  color: inherit;
}

img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}


/* AMBIENT BACKGROUND */

.ambient {
  position: fixed;
  z-index: -1;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .16;
  pointer-events: none;
}

.ambient-one {
  top: -200px;
  left: -150px;
  background: #1d4ed8;
}

.ambient-two {
  right: -220px;
  top: 38%;
  background: #0ea5e9;
}


/* HEADER */

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.eyebrow {
  margin: 0;
  color: var(--blue-300);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.brand {
  text-decoration: none;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 500;
  transition:
    border-color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.header-link:hover {
  transform: translateY(-1px);
  border-color: var(--blue-500);
  background: rgba(97, 168, 255, .08);
}


/* HERO */

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  padding: clamp(64px, 10vh, 120px) 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .75fr);
  gap: 56px;
  align-items: end;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  max-width: 760px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -.04em;
}

h1 {
  margin-top: 16px;
  font-size: clamp(5.5rem, 13vw, 10.5rem);
  line-height: .77;
}

h1 span {
  display: block;
}

.rule {
  width: 96px;
  height: 2px;
  margin: 42px 0 26px;
  background: linear-gradient(90deg, var(--blue-500), transparent);
}

.hero-lead {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.65;
}

.hero-support {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 32px;
  padding: 0 25px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--blue-500);
  background: rgba(97, 168, 255, .1);
}


/* HERO PORTRAIT */

.hero-photo {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  min-height: 520px;
  pointer-events: none;
}

.hero-photo img {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: min(620px, 52vw);
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  opacity: .92;
  filter: saturate(.9) contrast(1.03);

  animation: portrait-in 1s ease both;

  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 72%,
    rgba(0,0,0,.9) 78%,
    rgba(0,0,0,.55) 88%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 72%,
    rgba(0,0,0,.9) 78%,
    rgba(0,0,0,.55) 88%,
    transparent 100%
  );
}

@keyframes portrait-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: .92;
    transform: translateX(0);
  }
}


/* GENERAL SECTIONS */

.services,
.about,
.ventures,
.closing,
.contact {
  padding: 105px 0;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading h2,
.about-heading h2,
.closing h2,
.contact h2 {
  margin-top: 10px;
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  line-height: .94;
}


/* SERVICES */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 245px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.022);
  transition:
    border-color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.service-card:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.045);
  transform: translateY(-3px);
}

.service-card h3 {
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1;
}

.service-card p {
  max-width: 30ch;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.7;
}


/* ABOUT */

.about {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.about-heading {
  position: sticky;
  top: 36px;
}

.about-copy {
  display: grid;
  gap: 25px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.about-copy p {
  margin: 0;
}


/* BUSINESSES */

.venture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.venture {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.022);
  text-decoration: none;
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.venture:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.045);
}

.venture-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(183,216,255,.16);
  background: rgba(255,255,255,.018);
}

.venture-logo img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: center;
}

.venture-copy {
  display: block;
  padding: 22px 4px 5px;
}

.venture strong {
  display: block;
  font-size: 1.08rem;
}

.venture small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}


/* CLOSING */

.closing {
  max-width: 920px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.closing h2 {
  max-width: 820px;
}

.closing p:last-child {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  line-height: 1.85;
}


/* CONTACT */

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-details {
  display: grid;
  border-top: 1px solid var(--line);
}

.contact-item {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item > span {
  color: var(--muted);
}

.contact-item a,
.contact-item strong {
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--blue-300);
}

.contact-item small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.5;
}


/* FOOTER */

.footer {
  min-height: 190px;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer > div:first-child {
  display: grid;
  gap: 8px;
}

.footer strong {
  color: var(--white);
  letter-spacing: .12em;
}

.footer span,
.footer small {
  font-size: .78rem;
}

.footer-legal {
  display: grid;
  gap: 7px;
  max-width: 570px;
  text-align: right;
}

.footer-legal small {
  display: block;
  line-height: 1.5;
}

.image-copyright {
  opacity: .72;
}


/* TABLET */

@media (max-width: 900px) {

  .hero {
    grid-template-columns: minmax(0, 1fr) 36%;
    gap: 20px;
  }

  .hero-photo img {
    right: -12%;
    width: 54vw;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-heading {
    position: static;
  }

}


/* MOBILE */

@media (max-width: 680px) {

  :root {
    --shell: min(100% - 28px, 1120px);
  }


  /* HEADER */

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: .68rem;
  }

  .header-link {
    min-height: 38px;
    padding: 0 16px;
    font-size: .8rem;
  }


  /* HERO */

  .hero {
    min-height: auto;
    padding: 28px 0 78px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: visible;
  }


  /* Portrait comes first on mobile */

  .hero-photo {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 330px;
    min-height: 0;
    margin: 0 0 28px;
    overflow: hidden;
  }

  .hero-photo img {
    position: absolute;
    top: 0;
    right: auto;
    bottom: auto;
    left: 50%;

    width: min(430px, 100%);
    height: 430px;

    object-fit: contain;
    object-position: center top;

    opacity: .92;

    transform: translateX(-50%);

    animation: portrait-in-mobile 1s ease both;

    /*
      Solid at the top and through the face/body.
      Fade ONLY towards the bottom.
    */

    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 60%,
      rgba(0,0,0,.95) 68%,
      rgba(0,0,0,.72) 77%,
      rgba(0,0,0,.35) 88%,
      transparent 100%
    );

    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 60%,
      rgba(0,0,0,.95) 68%,
      rgba(0,0,0,.72) 77%,
      rgba(0,0,0,.35) 88%,
      transparent 100%
    );
  }

  @keyframes portrait-in-mobile {

    from {
      opacity: 0;
      transform: translate(-50%, 16px);
    }

    to {
      opacity: .92;
      transform: translate(-50%, 0);
    }

  }


  /* Text follows portrait */

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    max-width: 100%;
  }

  h1 {
    font-size: clamp(4.8rem, 25vw, 7.4rem);
    line-height: .78;
  }

  .rule {
    margin-top: 34px;
  }

  .hero-lead {
    font-size: 1.18rem;
    line-height: 1.65;
  }

  .hero-support {
    line-height: 1.75;
  }


  /* SECTIONS */

  .services,
  .about,
  .ventures,
  .closing,
  .contact {
    padding: 76px 0;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading.centred {
    text-align: left;
  }

  .section-heading h2,
  .about-heading h2,
  .closing h2,
  .contact h2 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }


  /* SERVICES */

  .service-grid,
  .venture-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }


  /* BUSINESSES */

  .ventures .section-heading {
    text-align: left;
  }


  /* CLOSING */

  .closing {
    max-width: none;
    text-align: left;
  }

  .closing h2 {
    max-width: 100%;
    font-size: clamp(3.1rem, 14vw, 4.5rem);
    line-height: .94;
  }

  .closing p:last-child {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }


  /* CONTACT */

  .contact-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-item small {
    grid-column: 1;
  }


  /* FOOTER */

  .footer {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .footer-legal {
    max-width: 100%;
    text-align: left;
  }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

}