/* GATEVAULT — site styles. Plain CSS, no build step. */

@font-face {
  font-family: "Mona Sans";
  src: url("/fonts/MonaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("/fonts/MonaSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans Expanded";
  src: url("/fonts/MonaSansExpanded-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #040404;
  --bg-raised: #0c0c0d;
  --bg-footer: #080808;
  --text: #f5f5f2;
  --text-soft: #c9cac5;
  --muted: #8f918b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --green: #76b900;
  --lime: #d4ff4a;
  --teal: #00b886;
  --grad: linear-gradient(90deg, var(--lime) 0%, var(--green) 50%, var(--teal) 100%);
  --bar: 56px;
  --gutter: 24px;
  --wrap: 1120px;
  --ease: cubic-bezier(0.2, 0.65, 0.2, 1);
  --font-body: "Mona Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Mona Sans Expanded", "Mona Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}

::selection {
  background: var(--green);
  color: #000;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: #000;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Top bar ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(4, 4, 4, 0.68);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bar);
  gap: 24px;
}

.brand {
  display: block;
  flex: none;
  margin-left: -7px;
}
.brand img {
  width: auto;
  height: 46px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(245, 245, 242, 0.72);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) {
  top: 18px;
}
.nav-toggle span:nth-child(2) {
  top: 25px;
}
.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.is-open .nav-toggle span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 719px) {
  .brand img {
    height: 42px;
  }
  /* Without JavaScript the links stay in the bar and scroll sideways. */
  .site-nav {
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .js .nav-toggle {
    display: block;
  }
  .js .site-nav {
    position: absolute;
    top: var(--bar);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
  }
  .js .is-open .site-nav {
    display: flex;
  }
  .js .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--text);
  }
  .js .site-nav a:last-child {
    border-bottom: 0;
  }
  .js .is-open.site-header {
    background: var(--bg);
  }
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 0.98;
  text-wrap: balance;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: clamp(19px, 2.1vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--text-soft);
  text-wrap: balance;
}

.badge {
  display: inline-block;
  padding: 7px 15px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}
.link-arrow::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--green);
  border-right: 1.5px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover {
  color: #fff;
}
.link-arrow:hover::after,
a:hover .link-arrow::after {
  transform: translateX(4px) rotate(45deg);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
}

/* ---------- Pictures ---------- */

/* Soft edges so a picture on black sits in the page without a visible frame. */
.fade-edges {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.picture {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.picture img {
  width: 100%;
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--bar) + clamp(48px, 8vh, 96px)) 0 0;
  text-align: center;
  background: #000;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(4, 4, 4, 0), var(--bg));
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
}
.hero h1 {
  margin-top: 26px;
  font-size: clamp(30px, 10.4vw, 124px);
}
.hero h1 span {
  display: inline-block;
}
.hero .lede {
  margin-top: clamp(16px, 2vw, 26px);
}
.hero .links {
  margin-top: clamp(22px, 2.6vw, 34px);
}
.hero-media {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1280px, 118vh);
  margin: clamp(-64px, -3.5vw, -12px) auto 0;
}
.hero-media img {
  width: 100%;
}

@media (max-width: 719px) {
  .hero-media {
    width: 116%;
    max-width: none;
    margin-left: -8%;
    margin-top: 4px;
  }
  .statement {
    min-height: 72vh;
  }
}

/* ---------- Home: statements ---------- */

.statement {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(92vh, 900px);
  padding: clamp(96px, 14vw, 176px) var(--gutter);
  text-align: center;
}
.statement + .statement {
  border-top: 1px solid var(--line);
}
.statement .rule {
  width: 44px;
  height: 2px;
  margin-bottom: 22px;
  border-radius: 2px;
  background: var(--grad);
}
.statement h2 {
  max-width: 13.5em;
  margin-top: 26px;
  font-size: clamp(31px, 6.1vw, 92px);
}

/* ---------- Home: newsroom teaser ---------- */

.section {
  padding: clamp(88px, 12vw, 160px) 0;
}
.section-head {
  text-align: center;
}
.section-head h2 {
  margin-top: 20px;
  font-size: clamp(30px, 4.6vw, 60px);
}

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

.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-raised);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.5s var(--ease);
}
a.card:hover {
  border-color: var(--line-strong);
}

.news-card {
  max-width: 880px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: clamp(32px, 5vw, 60px);
}
.news-card time,
.meta {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-card .meta time {
  display: inline;
}
.news-card h3 {
  margin: 16px 0 28px;
  font-size: clamp(26px, 3.8vw, 46px);
}

/* ---------- Inner pages ---------- */

.page-hero {
  padding: calc(var(--bar) + clamp(72px, 11vw, 144px)) 0 clamp(48px, 7vw, 88px);
  text-align: center;
}
.page-hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 6.6vw, 92px);
}
.page-hero .lede {
  max-width: 30em;
  margin: clamp(18px, 2.2vw, 28px) auto 0;
}
.page-hero .badge {
  margin-top: 28px;
}

.page-end {
  padding-bottom: clamp(96px, 13vw, 176px);
}

/* Products */

.product-card {
  max-width: 920px;
  margin: 0 auto;
}
.product-card .media {
  background: #000;
  border-bottom: 1px solid var(--line);
}
.product-card .media img {
  width: 100%;
  transition: transform 0.9s var(--ease);
}
a.product-card:hover .media img {
  transform: scale(1.02);
}
.product-card .body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px 24px;
  padding: clamp(26px, 4vw, 44px);
}
.product-card h2 {
  font-size: clamp(26px, 3.6vw, 42px);
}
.product-card .summary {
  grid-column: 1 / -1;
  max-width: 28em;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.4;
}
.product-card .link-arrow {
  grid-column: 1 / -1;
  margin-top: 8px;
}
@media (max-width: 559px) {
  .product-card .body {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .product-card .badge {
    order: -1;
    margin-bottom: 6px;
  }
}
.note {
  max-width: 34em;
  margin: clamp(36px, 5vw, 56px) auto 0;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

/* X1 */

.crumbs {
  font-size: 13px;
  color: var(--muted);
}
.crumbs a {
  color: var(--text-soft);
}
.crumbs a:hover {
  color: #fff;
}
.crumbs span {
  margin: 0 8px;
}

.prose {
  max-width: 680px;
  margin: 0 auto;
}
.prose p {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--text-soft);
}
.prose p + p {
  margin-top: 1.3em;
}
.prose .lead {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text);
}
.prose h2 {
  margin: 2.6em 0 0.8em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}
.prose .links {
  justify-content: flex-start;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.prose a.inline {
  color: var(--text);
  border-bottom: 1px solid var(--green);
}
.prose a.inline:hover {
  color: #fff;
}

.media-block {
  padding: 0 var(--gutter) clamp(40px, 6vw, 80px);
  background: linear-gradient(to bottom, #000 0%, #000 70%, var(--bg) 100%);
}
.media-block.bleed {
  padding-left: 0;
  padding-right: 0;
}
.picture.framed {
  max-width: var(--wrap);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #000;
  overflow: hidden;
}
.page-hero.on-black {
  background: #000;
}

/* Technology */

.parts {
  max-width: 980px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.part {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 48px;
  align-items: baseline;
  padding: clamp(28px, 3.8vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.part dt {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.5vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.part dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.part dd {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  color: var(--text-soft);
}
@media (max-width: 719px) {
  .part {
    grid-template-columns: 1fr;
  }
  .part dd {
    padding-left: 26px;
  }
}

/* Newsroom */

.news-list {
  max-width: 880px;
  margin: 0 auto;
}
.news-list .news-card {
  margin-top: 0;
}

.article-head {
  padding: calc(var(--bar) + clamp(64px, 9vw, 120px)) 0 clamp(36px, 5vw, 56px);
}
.article-head .inner,
.article-body {
  max-width: 760px;
  margin: 0 auto;
}
.article-head .meta {
  margin-top: 22px;
}
.article-head h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5.4vw, 68px);
}
.article-body {
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.article-body .prose {
  max-width: none;
}
.boilerplate {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(26px, 3.6vw, 38px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-raised);
}
.boilerplate h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.boilerplate p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-soft);
}

/* About */

.about-statement {
  max-width: 15em;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(30px, 5.2vw, 72px);
}
.origin {
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.origin img {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
}
.origin p {
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text);
}
.origin .tagline {
  margin-top: 16px;
  font-size: 12px;
}

/* Legal */

.legal .prose p,
.legal .prose li {
  font-size: 17px;
  line-height: 1.6;
}
.legal .prose h2:first-child {
  margin-top: 0;
}
.updated {
  margin-top: 3em;
  font-size: 14px !important;
  color: var(--muted) !important;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-footer);
  font-size: 13px;
  color: var(--muted);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px);
}
@media (max-width: 559px) {
  .footer-cols {
    gap: 36px 16px;
  }
}
@media (max-width: 379px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.footer-cols h2 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}
.footer-cols li + li {
  margin-top: 10px;
}
.footer-cols a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-cols a:hover {
  color: var(--text);
}
.footer-base {
  display: flex;
  align-items: center;
  gap: 14px 20px;
  flex-wrap: wrap;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
}
.footer-base img {
  width: 30px;
  height: 30px;
}
.footer-base .origin-line {
  margin-left: auto;
}
@media (max-width: 559px) {
  .footer-base .origin-line {
    margin-left: 0;
    flex-basis: 100%;
  }
  .footer-base .copyright {
    flex: 1;
  }
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .link-arrow::after,
  .product-card .media img,
  .nav-toggle span {
    transition: none;
  }
}

/* ---------- Helpers ---------- */

.d1 {
  --delay: 0.08s;
}
.d2 {
  --delay: 0.16s;
}
.d3 {
  --delay: 0.24s;
}
.d4 {
  --delay: 0.3s;
}
.links.spaced {
  margin-top: clamp(40px, 6vw, 72px);
}
.news-card .news-title {
  margin: 16px 0 28px;
  font-size: clamp(26px, 3.8vw, 46px);
}
.notfound {
  min-height: 72vh;
}
