@import 'base/base.css';


/* #region Defaults */
html {
    scroll-behavior: smooth;
}

html, body {
  overscroll-behavior-y: none;
  }

body {

  background: var(--black);
  background-image: url('/src/img/bg/white-carbon.png'), url('/src/img/sworls2.png');
  background-attachment: fixed, fixed;
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;

}

/* Mobile browsers largely ignore background-attachment: fixed on body, so pin
   the background with a fixed pseudo-element behind the content instead. */
@media (max-width: 800px) {
  body {
    background-image: none;
    position: relative;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--black);
    background-image: url('/src/img/bg/white-carbon.png'), url('/src/img/sworls2.png');
    background-size: auto, cover;
    background-repeat: repeat, no-repeat;
  }
}
/* #endregion */

/* #region Layout */

/* Sidebar wireframe layout (layout-temp.html) */
.sidebar-layout > header {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  border-bottom: none;
  animation: none;
}



.sidebar-layout > header nav.site-nav {
  position: absolute;
  top: 50%;
  left: 48px;
  width: 100%;
  transform: translateY(-50%);
}

.sidebar-layout > header .nav-list {
  flex-direction: column;
  align-items: flex-start;
}

.sidebar-layout > main {
  margin-left: 200px;
}

.sidebar-layout > footer {
  margin-left: 200px;
}

@media (max-width: 800px) {
  .sidebar-layout > header {
    position: static;
    width: 100%;
    height: auto;
  }

  .sidebar-layout > header nav.site-nav {
    position: static;
    transform: none;
  }

  .sidebar-layout > main,
  .sidebar-layout > footer {
    margin-left: 0;
  }
}

html, body {
  height: 100%;
}

.wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
  
header {
  position: sticky;
  top: 0;
  z-index: 40;
  
  
}

  header .contain {padding: 16px 0;}



main {
  flex: 1 0 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.container {
  max-width: 900px;
  padding-top: 96px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1115px) {
  .container {
    margin-left: 5%;
    margin-right: 5%;
  }
}

@media (max-width: 800px) {
  .container {
    padding-top: 24px;
    margin-left: 2%;
    margin-right: 2%;
  }
}

@media (max-width: 680px) {
  .container {
    margin-left: 0;
    margin-right: 0;
  }
}

.contain {
  max-width: 900px;
  padding: 12px 0;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  gap: 16px;
}

  .logo {
    position: relative;
    margin-bottom: 16px;

  }


    .logo a, .logo a:visited {
      color: var(--white);
      font-weight: var(--font-weight-thin);
      text-transform: uppercase;
      text-decoration: none;
      letter-spacing: 2px;
      display: flex;
      gap: 8px;
      align-items: center;
      transition: all 0.2s ease-in-out;
      padding-top: 16px !important;
      padding-bottom: 16px !important;
    }

      .logo a svg {
        height: 60px;
        width: auto;
        filter: drop-shadow(0px 1px 0px #1A1A25);
        transition: filter 0.2s ease-in-out;
      }

    .logo a:hover, .logo a:focus {
      color: var(--highlight);
    }

    .logo-text {visibility: hidden; position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px;}


footer {
  position: relative;
  /* static in flow; sits at bottom when content short */
}

@media (max-width: 1115px) {
  footer .container {
    margin-left: 5%;
    margin-right: 5%;
  }
}

@media (max-width: 680px) {

  footer .container {
    margin-left: 16px;
    margin-right: 16px;
  }
}


@media (max-width: 800px) {
  article { padding: 0 16px; }
}

  footer button {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: inherit;
    cursor: pointer;
    padding: 8px;
    font-size: var(--caption-sm-size);
    transition: all 0.5s ease;
  }

   footer button:hover, footer button:focus {
    color: var(--accent);
    transform: scale(1.4);
   }

    .email:has(button:hover) .linky:before, .email:has(button:hover) .linky:after {
      background-color: #164670;
      border-radius: .2px;
      opacity: 1;
      outline-color: #164670;
      transform: scaleX(1);
      transition: all .3s linear .1s;
    }

   footer button:active {
    color: var(--tertiary);
    transform: scale(1.1);
    transition: all 0.1s ease;
   }

   .email:has(button:active) .linky:before, .email:has(active:hover) .linky:after {
      background-color: var(--tertiary);
      opacity: 1;
      outline-color: var(--tertiary);
      transform: scaleX(1);
      transition: all 0s linear 0s;
    }
 /* #endregion */


/* #region Nav */
nav {
  position: relative;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--spacing-4, 4px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a, .nav-list a:visited {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--white);
  font-size: var(--caption-sm-size);
  font-weight: var(--font-weight-light);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  padding: 4px 16px;
  text-shadow: 0px 1px 0px #1A1A25;
  transition: padding 1.8s ease;
}

.nav-list a:hover, .nav-list a:focus {
  color: var(--white);
  padding: 4px 16px 4px 20px;
}

/* Navigation links and the logo receive an animated background; the SVG logo remains excluded. */
.nav-list > li > a:not(:has(svg)),
.logo a {
  position: relative;
  isolation: isolate;
  transition: color 0.3s ease, padding 0.3s ease-out;
}

.nav-list > li > a:not(:has(svg))::before,
.logo a::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-color: rgba(26, 26, 37, 0.3);
  backdrop-filter: saturate(200%) brightness(74%) contrast(150%);
  border-radius: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-list > li > a:not(:has(svg)):hover,
.nav-list > li > a:not(:has(svg)):focus {
  color: var(--white);
}

.nav-list > li > a:not(:has(svg)):hover::before,
.nav-list > li > a:not(:has(svg)):focus::before,
.logo a:hover::before,
.logo a:focus::before {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .nav-list > li > a:not(:has(svg)),
  .nav-list > li > a:not(:has(svg))::before,
  .logo a,
  .logo a::before {
    transition-duration: 0.01ms;
  }
}

.nav-list a:has(.icon),
.nav-list a:has(.icon):visited {
  margin-left: 0;
}

.nav-list li:has(a .icon) + li:has(a .icon) {
  margin-left: -8px;
}


.nav-toggle {
  display: none;
}

@media (max-width: 800px) {
  .sidebar-layout > header > .contain {
    display: none !important;
  }

  .site-nav {
    position: static;
    width: 100%;
    padding: 12px 0;
    box-sizing: border-box;
  }

  .sidebar-layout > header .site-nav .nav-list {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }

  .site-nav .nav-list li:first-of-type {
    padding-left: 16px;
  }

  .site-nav .nav-list li:has(.nav-toggle) {
    padding-right: 16px;
  }

  .site-nav .nav-list > li:first-child {
    margin-right: auto;
  }

  .site-nav .logo {
    display: block;
    margin: 0;
  }

  .site-nav .logo a,
  .site-nav .logo a:visited {
    width: auto;
    padding: 0;
  }

  .site-nav .logo a svg {
    display: block;
    height: 32px;
  }

  .nav-list a,
  .nav-list a:visited {
    justify-content: center;
    padding: 8px 16px 8px 6px;
    font-size: var(--caption-sm-size);
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .nav-list a:has(.icon),
  .nav-list a:has(.icon):visited {
    padding: 8px 6px;
  }

  .nav-list li:has(a .icon) + li:has(a .icon) {
    margin-left: 0;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
  }

  .site-nav .nav-list {
    flex-wrap: wrap;
    row-gap: 0;
    transition: row-gap 0.3s ease;
  }

  .site-nav.nav-open .nav-list {
    row-gap: 4px;
  }

  .nav-list > li:not(:has(.logo)):not(:has(.cta)):not(:has(.nav-toggle)) {
    flex: 1 0 100%;
    order: 1;
    max-height: 0;
    opacity: 0;
    overflow: hidden;

    pointer-events: none;
    background-color: rgba(26, 26, 37, 0.3);
    backdrop-filter: saturate(200%) brightness(74%) contrast(150%);
    border-radius: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
  }


  .site-nav.nav-open .nav-list > li:not(:has(.logo)):not(:has(.cta)):not(:has(.nav-toggle)) {
    max-height: 48px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list a,
  .nav-list a:visited {
    width: 100%;
    justify-content: flex-end;
  }

  @media (prefers-reduced-motion: reduce) {
    .site-nav .nav-list,
    .nav-list > li:not(:has(.logo)):not(:has(.cta)):not(:has(.nav-toggle)) {
      transition-duration: 0.01ms;
    }
  }

}
/* #endregion */

/* #region Inner */
.inner h1 {
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  text-shadow: 0px 1px 0px #1A1A25;
  line-height: 1.2;
  margin-bottom: 12px;
 
}

.inner h2, .inner h3, .inner h4 {text-wrap: balance;}



.inner p {
  font-size: var(--body-size);
  font-weight: var(--font-weight-light);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letter-spacing);
  margin-bottom: 16px;
}

@media (max-width: 680px) {
  .inner h1 {font-size: 18px; margin-bottom: 8px;}
  .inner h2 {font-size: 16px;}
  .inner p {font-size: 14px;}
}

/* #endregion */

/* #region CTA button */
article {position: relative;}

.cta {
  background-color: rgba(26, 26, 37, 0.3);
  backdrop-filter: saturate(200%) brightness(74%) contrast(150%);
  color: var(--white);
  text-shadow: 0px 3px 0px rgba(26, 26, 37, 0.6);
  padding: 12px 24px 12px 12px;
  font-size: var(--body-size);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border: 3px solid rgba(26, 26, 37, 0.3);
  border-radius: 4px;
  position: absolute;
  top: 16px;
  right: 0;
  display: flex;
  gap: 8px;
  overflow: hidden;
  animation: filter 6s ease infinite alternate;
}

  .cta .ph-fill {transition: all 0.3s ease-in-out;}


.cta:hover, .cta:focus {
  background-color: rgba(2, 73, 134, .3);
  backdrop-filter: saturate(101%) brightness(84%) contrast(200%);
  box-shadow: 0 2px 0 0 rgba(26, 26, 37, 0.3);
  transform: scale(1.1);
}

.cta:hover .ph-fill, .cta:focus .ph-fill {transform: rotate(-15deg);}

.cta:active {
  background-color: var(--highlight2);
  animation: none;
  transform: scale(0.9);
  text-shadow: 0px -3px 0px rgba(26, 26, 37, 0.6);
  box-shadow: 0 0 0 4px var(--secondary);
}

  .cta:active .ph-fill {transform: rotate(15deg);}

@keyframes filter {
  0% {
    background-color: rgba(26, 26, 37, 0.3);
    backdrop-filter: saturate(200%) brightness(74%) contrast(150%);
  }
  30% {
    background-color: rgba(2, 73, 134, 0.3);
    backdrop-filter: saturate(200%) brightness(74%) contrast(150%);
  }
  70% {
    background-color: rgba(176, 0, 54, 0.3);
    backdrop-filter: saturate(200%) brightness(74%) contrast(150%);
  }
  100% {
    background-color: rgba(2, 73, 134, .3);
  backdrop-filter: saturate(200%) brightness(74%) contrast(150%);
  }
}

header .cta {display: none;}

@media (max-width: 800px) {
  .cta {display: none;}

    header .cta {
      display: flex;
      position: relative;
      top: unset;
      right: unset;
      height: 32px;
      align-items: center;
      padding: 0 8px;
      font-size: 14px;
      margin-right: 16px;
    }
}

/* #endregion */

/* #region Contact Drawer */
.contact-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.contact-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 37, 0.7);
  backdrop-filter: saturate(200%) brightness(74%) contrast(150%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.contact-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
  padding: 64px 0 48px 0;
}

.contact-drawer.is-open {
  pointer-events: auto;
}

.contact-drawer.is-open .contact-drawer-backdrop {
  opacity: 1;
}

.contact-drawer.is-open .contact-drawer-panel {
  transform: translateY(0);
}

.contact-drawer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

.contact-drawer-close {
  position: absolute;
  top: 16px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

body.drawer-open main {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .contact-drawer-backdrop,
  .contact-drawer-panel {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 680px) {
  .contact-drawer-inner {
    padding: 0 16px;
  }
}
/* #endregion */

/* #region Contact Form */
.form {
 
}

.form .pb-16 {
  font-weight: var(--font-weight-normal);
}

.form .honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.field label {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-lt);
}

.field input,
.field textarea {
  font-family: var(--font-family-sans);
  font-size: var(--body-size);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

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

.field input:hover,
.field textarea:hover {
  border-color: rgba(43, 141, 227, 0.4);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.08);
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: var(--body-size);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.form .btn:hover,
.form .btn:focus {
  background: var(--highlight2);
}

.form .btn:active {
  transform: scale(0.96);
}

.form .btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form .note {
  font-size: 16px;
  margin-bottom: 0;
}

/* #endregion */

/* #region Toast */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -16px);
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast.is-success {
  border-color: var(--accent);
}

.toast.is-error {
  border-color: var(--highlight);
}

.toast a {
  color: inherit;
  text-decoration: underline;
  margin-left: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition-duration: 0.01ms;
  }
}
/* #endregion */

/* #region Frame */
.frame {
  background-color: rgba(26, 26, 37, 0.3);
  backdrop-filter: saturate(200%) brightness(74%) contrast(150%);
  border-radius: 8px;
  padding: 24px;
  position: relative;
}

.frame + .frame {
  margin-top: 48px;
}

.light-filter {
  background-color: rgba(26, 26, 37, 0.3);
  backdrop-filter: saturate(200%) brightness(74%) contrast(150%);
}

h1.light-filter {
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 8px;
}

.matte {
  background: var(--black);
  border-radius: 8px;
  padding: 24px 0 48px 0;
  position: relative;
  border: 1px solid var(--black);
}



.matte.section-header {
  padding: 16px 0;
  margin-bottom: 3px;
  border-radius: 4px 4px 0 0;
  text-transform: uppercase;
}

  .matte.section-header h2 {margin-bottom: 0;}

.matte.section-header + .matte {
  border-radius: 0 0 4px 4px;
}

@media (max-width: 800px) {
  .matte.section-header + .matte {padding-top: 8px;}
}

.matte:has(.fullwidth) {
  padding-bottom: 0;
}

.content {
  padding: 0 32px;
}

@media (max-width: 680px) {
  .frame, .content {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.content h2 {
  margin-bottom: 16px;
}

.content p {
  line-height: 2;
  margin-bottom: 24px;
}

.content h3 {
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  padding-top: 16px;
}
/* #endregion */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 8px 0 16px 0;
}

.card {
  border: 1px solid transparent;
  background:  linear-gradient(var(--black), var(--black)) padding-box,
    linear-gradient(to right,
      var(--tertiary) 0%,
      var(--tertiary) 33.333%,
      var(--highlight2) 66.667%,
      var(--primary) 100%) border-box;
  background-position: 0 0, 0 0;
  background-size: 100% 100%, 300% 100%;
  padding: 12px 20px 20px 20px;
  border-radius: 4px;
  transition: background-position 0.8s ease-in-out;
}

.card:hover, .card:focus {
  background-position: 0 0, 100% 0;
}

  .card h3 {
    font-size: 24px;
    font-weight: var(--font-weight-medium);
    padding-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  @media (max-width: 680px) {
    .card h3 {font-size: 18px;}
  }

  .card .ph-light {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
  }



@media (prefers-reduced-motion: reduce) {
  .card {
    transition-duration: 0.01ms;
  }
}


  .card p {
    font-weight: var(--font-weight-light);
    margin-bottom: 0;
  }

.gradient-border {
  position: relative;
  background: linear-gradient(332deg, #b0003e, #004e8a, #b0003e, #b0003e);
  padding: 2px;
  border-radius: 4px;
}
.gradient-border-content {
  background: #1a1a25;
  border-radius: 2px;
  padding: 1rem;
}

.tags {
  display: flex;
  padding: 8px 0;
  gap: 8px;
  flex-flow: row wrap;
}

  .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 4px;
    color: var(--white);
    border: 1px solid var(--tertiary);
    font-size: 14px;
  }

   @media (max-width: 680px) {
    .tag {width: calc(50% - 6px);}
   }

    .tag .ph-thin {font-size: 16px;}

.fullwidth {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

}

img.screens {
  width: 96%;
  height: auto;
  margin: 0 auto;
}
/* #endregion */

/* #region Error */
.error {
  text-shadow: 0px 2px 0px #1A1A25;
}

  .error h1 {
    font-size: 120px;
  }

  .error .matte {padding: 16px 0 16px 0;}

  .error p {
    font-size: 24px;
    font-weight: var(--font-weight-normal);
  }

  .error a, .error a:visited {
    color: var(--white);
    text-decoration: underline;
  }
/* #endregion */

/* #region Footer */
footer {

  padding-top: 60px;
}

  footer .container {
    
    max-width: 900px;
    background-color: rgba(26, 26, 37, 0.3);
    backdrop-filter: saturate(200%) brightness(74%) contrast(150%);
    padding: 16px 48px;
    border-radius: 8px 8px 0 0;
  }

  footer a, footer a:visited {
    color: var(--white);
    text-decoration: none;
    font-size: var(--caption-sm-size);
    font-weight: var(--font-weight-light);
    letter-spacing: 0.1em;
  }
/* #endregion */

/* #region Temp */
.inner .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
}

  .inner .logo a svg {
    height: 100px;
  }
/* #endregion */
