/* Layer8 Labs / L8Root — company homepage */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/barlow-condensed-800.woff2") format("woff2");
}


:root {
  --orange: #F26B1F;
  --orange-hover: #FF7A2E;
  --bg: #0d0d0d;
  --bg2: #141414;
  --black: #0d0d0d;
  --panel: #161616;
  --line: #2a2a2a;
  --offwhite: #F3F0E8;
  --muted: #A8A296;
  --max: 72rem;
  --pad: clamp(1.25rem, 4.5vw, 2.5rem);
  --head-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--offwhite);
  scroll-padding-top: calc(var(--head-h) + 0.5rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: "Barlow", "Segoe UI", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, #0d0d0d 0%, #141414 55%, #0d0d0d 100%);
  background-attachment: scroll;
  color: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--orange); text-underline-offset: 0.18em; }
a:hover { color: var(--orange-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip { position: absolute; left: var(--pad); top: -4rem; background: var(--orange); color: #111; padding: .5rem .85rem; font-weight: 600; z-index: 100; }
.skip:focus { top: .75rem; }

.wrap { width: min(var(--max), 100%); margin-inline: auto; padding-inline: var(--pad); }
.wrap.narrow { width: min(var(--max), 100%); }
.wrap.narrow > * { max-width: 40rem; }

.icon { width: 2rem; height: 2rem; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(13, 13, 13, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--head-h); }
.brand { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand-logo { width: clamp(7.5rem, 30vw, 9.5rem); height: auto; }
.brand-sub {
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 600;
  font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
  line-height: 1;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  position: relative;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 600;
  font-size: 1.02rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--offwhite); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; padding: .3rem 0;
}
.nav a:hover { color: var(--orange); }
.nav a.is-active { color: var(--orange); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .3rem; height: 2px; background: var(--orange);
}

.nav-toggle { display: none; }
@media (max-width: 52rem) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -.5rem;
    background: transparent; border: 1px solid var(--line); color: var(--offwhite); cursor: pointer;
  }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s, opacity .2s;
  }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle .bars::before { top: -6px; }
  .nav-toggle .bars::after { top: 6px; }
  .nav-open .nav-toggle .bars { background: transparent; }
  .nav-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0d0d0d; border-bottom: 1px solid var(--line);
    padding: .4rem var(--pad) 1rem;
  }
  .js .nav-open .nav { display: flex; }
  .js .nav a { min-height: 52px; border-bottom: 1px solid #1d1d1d; font-size: 1.15rem; }
  .js .nav a.is-active::after { left: 0; right: auto; width: 2.5rem; bottom: .55rem; }
  .nav { gap: 1rem; flex-wrap: wrap; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 1rem; } }
.eyebrow {
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-size: .92rem; margin: 0 0 1.1rem;
}
.hero h1 {
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.9rem, 14.2vw, 5.6rem); line-height: .9; letter-spacing: .01em; margin: 0 0 1.5rem; color: var(--offwhite);
}
@media (min-width: 60rem) { .hero h1 { font-size: clamp(4.4rem, 8.6vw, 7.4rem); } }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--orange); }
.lede { font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.5; max-width: 33rem; margin: 0 0 1.75rem; color: #E4E0D6; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem 1rem; }
.hero-art { margin-inline: -1rem; }
.hero-art img { width: 100%; max-width: 40rem; margin-inline: auto; }
@media (min-width: 60rem) { .hero-art { margin-right: -2rem; } .hero-art img { max-width: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .7rem 1.5rem;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; font-size: 1.08rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 4px; cursor: pointer;
}
.btn-primary { background: var(--orange); color: #111; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: #111; }
.btn-ghost { background: transparent; color: var(--offwhite); border-color: #cfcabd; }
.btn-ghost:hover { color: var(--orange); border-color: var(--orange); }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.stats-grid { list-style: none; margin: 0 auto; padding-block: 0; display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 52rem) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-grid li {
  display: flex; align-items: center; gap: .9rem; padding: 1.4rem 1rem;
  border-left: 1px solid var(--line);
}
.stats-grid li:nth-child(odd) { border-left: 0; padding-left: 0; }
.stats-grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 52rem) {
  .stats-grid li, .stats-grid li:nth-child(odd) { border-left: 1px solid var(--line); padding: 1.6rem 1.4rem; }
  .stats-grid li:first-child { border-left: 0; padding-left: 0; }
  .stats-grid li:nth-child(n+3) { border-top: 0; }
}
.stats-grid .icon { width: 2.1rem; height: 2.1rem; }
.stats-grid p { margin: 0; line-height: 1.2; }
.stats-grid strong { display: block; font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: .05em; text-transform: uppercase; }
.stats-grid span { display: block; color: var(--muted); font-size: .98rem; }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section h2, .mission h2 {
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: .98; letter-spacing: .02em; margin: 0 0 .7rem;
}
.section-sub { color: var(--muted); margin: 0 0 2rem; max-width: 40rem; }

/* Feature card */
.feature {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: linear-gradient(135deg, #151515, #101010); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 1.1rem;
}
@media (min-width: 52rem) { .feature { grid-template-columns: 1fr 1fr; min-height: 18rem; } }
.feature-copy { padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.1rem; }
.feature-head { display: flex; align-items: center; gap: 1rem; }
.l8-mark { width: 3.4rem; height: auto; }
.feature h3 { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 800; font-size: 2.1rem; letter-spacing: .03em; text-transform: uppercase; margin: 0; }
.feature-copy > p { margin: 0; max-width: 26rem; color: #E4E0D6; }
.feature-copy .caption { color: var(--muted); font-size: .92rem; max-width: 24rem; }
.feature-art { min-height: 11rem; position: relative; }
.feature-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (min-width: 60rem) { .cards { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }
@media (max-width: 30rem) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.25rem 1.5rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.card .icon { width: 2.3rem; height: 2.3rem; margin-bottom: .4rem; }
.card h3 { margin: 0; font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1.05; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.card:has(.card-link):hover { border-color: var(--orange); }
.card-link:hover { color: var(--orange); }

/* Mission */
.mission { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #121212, #0d0d0d); overflow: hidden; }
.mission-grid { display: grid; grid-template-columns: 1fr; align-items: center; gap: 0; }
@media (min-width: 52rem) { .mission-grid { grid-template-columns: 1fr 1.1fr; } }
.mission-copy { padding: clamp(2.5rem, 7vw, 4.5rem) 0 1.5rem; }
.mission-copy p { margin: 0; max-width: 31rem; font-size: 1.2rem; color: #E4E0D6; }
.mission-art { margin-inline: calc(var(--pad) * -1); align-self: end; }
.mission-art img { width: 100%; height: auto; }
@media (min-width: 52rem) { .mission-art { margin-right: calc(var(--pad) * -1); margin-left: 0; } }

/* Text sections */
.narrow p { margin: 0 0 1.1rem; color: #E4E0D6; }
.narrow .section-sub { color: var(--muted); }
#labs, #investors { border-bottom: 1px solid var(--line); }

/* Contact */
.contact-block { display: grid; gap: .3rem; font-size: 1.15rem; }
.contact-block p { margin: 0; }
.contact-block .name { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: .04em; text-transform: uppercase; line-height: 1; color: var(--offwhite); }
.contact-block .role, .contact-block .place { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; color: var(--muted); font-size: .95rem; }
.footer-inner p { margin: 0; }
.footer-logo { width: 6.5rem; opacity: .9; }

/* Contact form */
.form-title {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 2rem 0 1.15rem;
}
.contact-form {
  max-width: 36rem;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.contact-form label {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.contact-form .optional {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--panel);
  color: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: "Barlow", "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.4;
  padding: 0.75rem 0.8rem;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-color: var(--orange);
}
.privacy-note {
  color: var(--muted);
  font-size: 1rem;
  margin: 0.25rem 0 1.15rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.form-actions .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}
.form-status {
  min-height: 1.4em;
  margin: 1rem 0 0;
}
.form-status.is-ok { color: var(--offwhite); }
.form-status.is-error { color: var(--orange); }
.form-status.is-pending { color: var(--muted); }
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* polish */
.mission-art img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.feature-art img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }
@media (max-width: 51.99rem) { .feature-art img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%); mask-image: linear-gradient(180deg, transparent, #000 25%); object-position: center; } }
.contact-block { margin-top: 1.1rem; }
