:root {
  --ink: #0c2233;
  --navy: #071b29;
  --navy-2: #0d2b3d;
  --cream: #f3f0e9;
  --paper: #fbfaf7;
  --white: #ffffff;
  --muted: #66717a;
  --teal: #31aeb2;
  --seafoam: #d9f3ef;
  --coral: #ff725d;
  --line: rgba(255,255,255,.22);
  --shadow: 0 18px 50px rgba(3, 19, 30, .18);
  --radius: 18px;
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-dark {
  color: var(--white);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
  padding: 22px 0;
  color: #fff;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 13px;
}

.brand-mark {
  width: 31px;
  height: 31px;
  border: 2px solid currentColor;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
}

.site-nav a,
.footer-nav a {
  opacity: .84;
  transition: opacity .2s ease;
}

.site-nav a:hover,
.footer-nav a:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 690px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-photo,
.slideshow-bg,
.purpose-bg {
  position: absolute;
  inset: 0;
}


/*
   HERO IMAGE

   This selector is intentionally more specific than
   .photo-placeholder farther down in the stylesheet.

   Your image should be located at:

   assets/images/father-and-son-hiking-in-rural-nature.jpg
*/

.hero .hero-photo {
  background-image:
    url("assets/images/father-and-son-hiking-in-rural-nature.jpg");
  background-size: cover;
  background-position: center 10%;
  background-repeat: no-repeat;
}


/* Hide the old placeholder words inside the hero */

.hero .hero-photo span {
  display: none;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2,17,27,.94) 0%,
    rgba(2,17,27,.72) 48%,
    rgba(2,17,27,.18) 78%,
    rgba(2,17,27,.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .36em;
  font-size: 12px;
  font-weight: 700;
  opacity: .82;
}

.eyebrow-dark {
  color: #71808b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(54px, 6vw, 82px);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-copy {
  max-width: 560px;
  font-size: 19px;
  color: rgba(255,255,255,.82);
  margin-bottom: 30px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: #13293a;
  box-shadow: 0 7px 25px rgba(0,0,0,.12);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,.82);
  color: #fff;
  background: rgba(3,20,30,.15);
}

.btn-outline-dark {
  border: 1px solid rgba(12,34,51,.28);
  background: #fff;
  color: var(--ink);
}

.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255,114,93,.28);
}


/* =========================================================
   PRODUCT SECTIONS
   ========================================================= */

.product {
  position: relative;
  overflow: hidden;
}

.product-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 56px;
  padding: 72px 0;
}


/* =========================================================
   OCTUI
   ========================================================= */

/* Octui supporting copy */
.product-octui .product-copy .lead,
.product-octui .product-copy > p:not(.lead) {
  color: #fff;
}

/* Give the two paragraphs a readable background */
.product-octui .product-copy .lead {
  background: rgba(5, 42, 62, 0.62);
  padding: 14px 18px 10px;
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.product-octui .product-copy > p:not(.lead) {
  background: rgba(5, 42, 62, 0.62);
  padding: 6px 18px 16px;
  border-radius: 0 0 12px 12px;
  margin-bottom: 18px;
}

/* Keep the main headline dark */
.product-octui .product-copy h2 {
  color: #0c2233;
}

.product-octui {
  background-image:
    url("assets/images/octui-ocean-life-coral-sea-background.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.product-copy {
  position: relative;
  z-index: 3;
}

.product-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 44px;
  line-height: .9;
  font-weight: 700;
  margin-bottom: 26px;
}

.product-logo--octui {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}

.octui-logo-image {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.octui-icon {
  font-size: 50px;
}

/* Octui body copy */
.product-octui .lead {
  font-weight: 700;
  line-height: 1.35;
}

.product-octui .product-copy > p:not(.lead) {
  line-height: 1.55;
}

.product-octui .product-copy .lead,
.product-octui .product-copy p {
  color: #fff;
}

.product-octui .product-copy h2 {
  color: #0c2233;
}

.product h2,
.story h2,
.purpose h2,
.founder h2 {
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 500;
  margin-bottom: 20px;
}

.product .lead {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 540px;
}

.product p {
  max-width: 560px;
  font-size: 17px;
}

.product-copy .btn {
  margin-top: 12px;
}


/* =========================================================
   OCTUI DEVICE MOCKUPS
   ========================================================= */

.product-media {
  min-height: 470px;
  position: relative;
}

.device {
  position: absolute;
  background: #0d1d27;
  box-shadow: var(--shadow);
}

.desktop-device {
  right: -115px;
  top: 0px;
  width: 590px;
  height: 400px;
  border-radius: 21px 21px 0 0;
  border: 10px solid #0b1821;
}

.device-topline {
  height: 20px;
  background: #132630;
  border-radius: 12px 12px 0 0;
}

.device-screen {
  background: #f8fbfc;
  color: #143041;
  height: calc(100% - 20px);
  padding: 26px;
  overflow: hidden;
}

.device-heading {
  font-size: 24px;
  font-weight: 800;
}

.device-meta {
  font-size: 12px;
  color: #6e7f89;
  margin: 5px 0 18px;
}

.device-tabs {
  display: flex;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 18px;
}

.device-tabs span {
  padding: 7px 10px;
  border-radius: 8px;
  background: #ebf3f5;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}

.thumb-grid span {
  aspect-ratio: 1.35;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hiking in Colorado project photos */

.thumb-grid span:nth-child(1) {
  background-image: url("assets/images/octui/hiking-in-colorado/hiking-colorado-girl-backpacker-looks-at-cascading.jpg");
}

.thumb-grid span:nth-child(2) {
  background-image: url("assets/images/octui/hiking-in-colorado/couple-hiking-in-rocky-mountains-breckenridge-co.jpg");
}

.thumb-grid span:nth-child(3) {
  background-image: url("assets/images/octui/hiking-in-colorado/hiker-exploring-chasm-lake-rocky-mountains-nation.jpg");
}

.thumb-grid span:nth-child(4) {
  background-image: url("assets/images/octui/hiking-in-colorado/hiking-in-colorado-outside-telluride.jpg");
}

.thumb-grid span:nth-child(5) {
  background-image: url("assets/images/octui/hiking-in-colorado/male-hiker-with-backpack-looking-over-bear-lake-in-2026.jpg");
}

.thumb-grid span:nth-child(6) {
  background-image: url("assets/images/octui/hiking-in-colorado/hiker-at-lost-lake-colorado.jpg");
}

.thumb-grid span:nth-child(7) {
  background-image: url("assets/images/octui/hiking-in-colorado/colorado-hiking.jpg");
}

.phone-device {
  left: -40px;
  bottom: -25px;
  width: 215px;
  aspect-ratio: 945 / 2048;
  height: auto;

  border-radius: 34px;
  border: 9px solid #0d1d27;
  background: #0d1d27;

  padding: 0;
  overflow: hidden;

  z-index: 4;
  box-shadow: var(--shadow);
}

.phone-screen-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================================================
   MILESTONE SLIDESHOWS
   ========================================================= */

.product-slideshows {
  min-height: 620px;
}

.product-slideshows .slideshow-bg {
  background-image:
    url("assets/images/family-bride-groom-watching-a-slideshow-at-a-wedding.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.product-slideshows .slideshow-bg span {
  display: none;
}

.slideshow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4,29,45,.96) 0%,
    rgba(6,28,43,.86) 48%,
    rgba(15,28,38,.35) 100%
  );
}

.slideshow-grid {
  min-height: 620px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: center;
  gap: 56px;
  padding: 64px 0;
}

.product-copy--light p {
  color: rgba(255,255,255,.82);
}

.product-logo--slideshows {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.milestone-slideshows-logo {
  display: block;
  width: 125px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.milestone-slideshows-name {
  color: #fff;
  font-size: 30px;
  line-height: .88;
  font-weight: 700;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 30px 0 28px;
}

.trust-item {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 10px;
  align-items: center;
}

.trust-item strong {
  font-size: 28px;
  grid-row: span 2;
}

.trust-item span {
  font-size: 12px;
  color: rgba(255,255,255,.78);
  line-height: 1.2;
}

.slideshow-frame {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  padding: 18px;
  background: #171e22;
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
  transform: rotate(-4deg);
}

.slideshow-frame .framed-photo {
  aspect-ratio: 1.38;
  background-image:
    url("assets/images/milestone-slideshows/featured-slideshow-photo.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Hide the old placeholder text */
.slideshow-frame .framed-photo span {
  display: none;
}


/* =========================================================
   OUR STORY
   ========================================================= */

/* =========================================================
   OUR STORY PHOTOS
   ========================================================= */

.story-collage .polaroid-a .photo-placeholder {
  background-image: url("assets/images/our-story/vintage-family-photo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.story-collage .polaroid-b .photo-placeholder {
  background-image: url("assets/images/our-story/beach-memory.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.story-collage .polaroid-c .photo-placeholder {
  background-image: url("assets/images/our-story/family-portrait.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.story-collage .polaroid-d .photo-placeholder {
  background-image: url("assets/images/our-story/travel-memory.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.story {
  background: #f5f2ec;
}

.story-grid {
  min-height: 520px;
  padding: 70px 0;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.story-collage {
  min-height: 360px;
  position: relative;
}

.polaroid {
  position: absolute;
  background: #fff;
  padding: 10px 10px 34px;
  box-shadow: 0 15px 40px rgba(47,37,24,.18);
  width: 220px;
}

.polaroid .photo-placeholder {
  aspect-ratio: 1.05;
}

.polaroid-a {
  left: 18px;
  top: 36px;
  transform: rotate(-8deg);
}

.polaroid-b {
  left: 220px;
  top: 14px;
  width: 190px;
  transform: rotate(7deg);
}

.polaroid-c {
  left: 250px;
  top: 190px;
  width: 170px;
  transform: rotate(5deg);
}

.polaroid-d {
  left: 105px;
  top: 210px;
  width: 220px;
  transform: rotate(-7deg);
}

.story-copy p {
  font-size: 16px;
  color: #4b5962;
  max-width: 580px;
}

.story-emphasis {
  font-weight: 800;
  color: var(--ink) !important;
}


/* =========================================================
   PURPOSE
   ========================================================= */

.purpose {
  position: relative;
  min-height: 395px;
  overflow: hidden;
}

/* PURPOSE BACKGROUND PHOTO */

.purpose .purpose-bg {
  background-image:
    url("assets/images/our-story/group-of-people-embracing-in-sunny-green-field.jpg");
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
}

/* Hide the old placeholder text */
.purpose .purpose-bg span {
  display: none;
}

.purpose-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6,27,42,.95) 0%,
    rgba(8,29,43,.82) 54%,
    rgba(11,31,43,.46) 100%
  );
}

.purpose-content {
  position: relative;
  z-index: 2;
  padding: 54px 0 48px;
}

.purpose h2 {
  max-width: 880px;
  margin-bottom: 44px;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}

.purpose-grid article {
  text-align: center;
  padding: 0 25px;
  border-right: 1px solid rgba(255,255,255,.28);
}

.purpose-grid article:last-child {
  border-right: 0;
}

.purpose-icon {
  display: block;
  font-size: 38px;
  margin-bottom: 12px;
}

.purpose-grid h3 {
  font-size: 15px;
  line-height: 1.2;
  margin: 0;
  font-weight: 600;
}


/* =========================================================
   FOUNDER
   ========================================================= */

.founder {
  background: #fbfaf7;
}

.founder-grid {
  min-height: 430px;
  padding: 56px 0;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.founder .founder-photo {
  aspect-ratio: 1.5;
  border-radius: 12px;
  background-image: url("assets/images/founder/milestone-digital-founder-kris-bayne.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.founder .founder-photo span {
  display: none;
}

.founder h2 {
  margin-bottom: 4px;
  font-size: 48px;
}

.founder-title {
  color: #65737b;
  font-size: 17px;
  margin-bottom: 20px;
}

.founder-copy > p:not(.eyebrow):not(.founder-title) {
  color: #485760;
  max-width: 600px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: #071b29;
  color: #fff;
  padding: 40px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr .65fr;
  align-items: start;
  gap: 40px;
}

.brand-footer {
  margin-bottom: 10px;
}

.footer-tagline,
.copyright {
  color: rgba(255,255,255,.52);
  font-size: 12px;
  margin: 7px 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  padding-top: 8px;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 20px;
}

.legal {
  flex-basis: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 26px;
  font-size: 11px;
  color: rgba(255,255,255,.48);
}


/* =========================================================
   GENERIC PHOTO PLACEHOLDERS
   ========================================================= */

.photo-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    #8399a3,
    #c6a67e
  );
  color: rgba(255,255,255,.74);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
  text-align: center;
}

.photo-placeholder--cover span {
  position: relative;
  z-index: 1;
  opacity: .5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

  :root {
    --shell: min(100% - 36px, 760px);
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 18px;
    width: min(320px, calc(100vw - 36px));
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(6,27,41,.96);
    box-shadow: 0 20px 50px rgba(0,0,0,.28);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 12px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 650px;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(2,17,27,.93),
      rgba(2,17,27,.56)
    );
  }

  .product-grid,
  .slideshow-grid,
  .story-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    padding-bottom: 36px;
  }

  .product-media {
    min-height: 420px;
  }

  .desktop-device {
    right: -60px;
  }

  .slideshow-frame {
    margin: 12px auto 0;
    max-width: 390px;
  }

  .story-grid {
    gap: 30px;
  }

  .story-collage {
    max-width: 470px;
    width: 100%;
    margin: 0 auto;
  }

  .purpose-grid {
    grid-template-columns: repeat(2,1fr);
    row-gap: 28px;
  }

  .purpose-grid article:nth-child(2) {
    border-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-social,
  .legal {
    justify-content: flex-start;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

  :root {
    --shell: min(100% - 26px, 540px);
  }

  .site-header {
    padding-top: 16px;
  }

  .brand-name {
    font-size: 11px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(50px, 15vw, 68px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .button-row {
    align-items: stretch;
  }

  .button-row .btn {
    width: 100%;
  }

  .product-grid,
  .story-grid,
  .founder-grid {
    padding: 48px 0;
  }

  .product h2,
  .story h2,
  .purpose h2,
  .founder h2 {
    font-size: 38px;
  }

  .product-logo {
    font-size: 36px;
  }

  .product-media {
    min-height: 360px;
    transform: scale(.86);
    transform-origin: center top;
    margin-bottom: -40px;
  }

  .desktop-device {
    width: 500px;
    right: -180px;
  }

  .phone-device {
    left: -12px;
  }

  .slideshow-grid {
    padding: 50px 0;
  }

  .trust-row {
    gap: 20px;
  }

  .story-collage {
    min-height: 330px;
    transform: scale(.82);
    transform-origin: left top;
    margin-bottom: -55px;
  }

  .polaroid-a {
    left: 4px;
  }

  .polaroid-b {
    left: 180px;
  }

  .polaroid-c {
    left: 195px;
  }

  .polaroid-d {
    left: 70px;
  }

  .purpose h2 br {
    display: none;
  }

  .purpose-grid {
    grid-template-columns: 1fr 1fr;
  }

  .purpose-grid article {
    padding: 0 10px;
  }

  .founder-grid {
    gap: 30px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 9px;
  }
}