/* Experiential Management: site styles (Light Labs AV look, see BRAND.md) */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --black: #0B0B0D;
  --surface: #14131A;
  --hairline: #2A2722;
  --ivory: #F2EDE4;
  --muted: #A39D92;
  --champagne: #CFB27A;
  --champagne-hover: #E0C893;
  --paper: #F6F5F2;
  --ink: #141414;
  --ink-muted: #5E5A54;
  --gold-ink: #7A5C28;
  --gold-line: #9A7637;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --section: 64px;
}
@media (min-width: 760px) { :root { --gutter: 48px; --section: clamp(96px, 10vw, 144px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.65;
  color: var(--ivory);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--champagne); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--champagne-hover); }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }

/* Type */
h1, h2, h3 { margin: 0 0 0.6em; color: var(--ivory); }
h1 {
  font-weight: 200; font-stretch: 125%; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1;
}
h2 {
  font-weight: 300; font-stretch: 125%; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.2;
}
h3 { font-weight: 500; font-stretch: 100%; font-size: clamp(1.2rem, 1.6vw, 1.35rem); line-height: 1.3; }
.label, .eyebrow {
  font-weight: 600; font-stretch: 100%; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.32em; color: var(--champagne); line-height: 1.5;
}
.eyebrow { display: block; margin: 0 0 1.25rem; }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.2rem); color: var(--ivory); }
.small { color: var(--muted); font-size: 0.875rem; }
.rule { width: 64px; height: 1px; background: var(--champagne); border: 0; margin: 0 0 2rem; }

/* Layout */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); border-top: 1px solid var(--hairline); }
.section-surface { background: var(--surface); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--muted); }
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  background: var(--champagne); color: var(--black); padding: 0.75rem 1rem;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  background: rgb(11 11 13 / 0.94);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}
.brand { display: block; flex: none; padding-block: 10px; }
.brand img { height: 32px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.32em;
  color: var(--ivory); text-decoration: none; display: inline-block; padding: 0.9rem 0;
  border-bottom: 1px solid transparent; margin-right: -0.32em;
}
.site-nav a:hover { color: var(--champagne); }
.site-nav a[aria-current="page"] { color: var(--champagne); border-bottom-color: var(--champagne); }
.site-nav .btn { padding: 12px calc(22px - 0.32em) 12px 22px; margin: 0; border-bottom: 1px solid var(--champagne); }

.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; flex: none;
  background: none; border: 1px solid var(--hairline); border-radius: 2px; cursor: pointer;
  position: relative;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ivory);
  transition: transform 0.2s, opacity 0.2s;
}
.menu-btn::before { top: 15px; }
.menu-btn span { top: 21px; }
.menu-btn::after { top: 27px; }
.menu-btn[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span { opacity: 0; }
.menu-btn[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1119px) {
  .js .menu-btn { display: block; }
  .js .site-nav { display: none; }
  .js .site-nav.open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--black); border-bottom: 1px solid var(--hairline);
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.5rem; }
  .site-nav li { border-bottom: 1px solid var(--hairline); }
  .site-nav li:last-child { border: 0; padding-top: 1.25rem; }
  .site-nav a { display: block; padding: 1rem 0; border: 0; }
  .site-nav a[aria-current="page"] { border: 0; }
  .site-nav .btn { display: block; text-align: center; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; }
}
@media (max-width: 380px) { .brand img { height: 30px; } }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-stretch: 100%; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.32em; line-height: 1.3;
  padding: 14px calc(28px - 0.32em) 14px 28px; border-radius: 2px;
  border: 1px solid var(--champagne); min-height: 44px; text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--champagne); color: var(--black); }
.btn-primary:hover { background: var(--champagne-hover); border-color: var(--champagne-hover); color: var(--black); }
.btn-secondary { background: transparent; color: var(--champagne); }
.btn-secondary:hover { background: var(--champagne); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero */
.hero { padding-block: clamp(72px, 12vw, 160px) clamp(64px, 10vw, 144px); }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: 2rem; }
.hero .lede { max-width: 38rem; margin-bottom: 2.5rem; color: var(--muted); }
.hero-art { justify-self: center; width: min(52%, 200px); }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.7fr 1fr; gap: 4rem; }
  .hero-art { width: 100%; max-width: 280px; justify-self: end; }
}

/* Page heads (inner pages) */
.page-head { padding-block: clamp(64px, 10vw, 128px) clamp(48px, 7vw, 96px); }
.page-head p:not(.eyebrow) { color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.2rem); }

/* Cards */
.grid { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--black); padding: 2rem 1.75rem; display: flex; flex-direction: column; }
.section-surface .card { background: var(--surface); }
.card .label { margin-bottom: 1.25rem; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
a.card { text-decoration: none; color: inherit; transition: background-color 0.2s; }
a.card:hover { background: var(--surface); }
a.card:hover h3 { color: var(--champagne); }

/* Lists */
.marks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.marks li { padding: 1rem 0 1rem 1.75rem; position: relative; border-bottom: 1px solid var(--hairline); }
.marks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.55rem; width: 7px; height: 7px;
  background: var(--champagne); transform: rotate(45deg);
}

/* Light Labs band */
.ll-logo { width: min(100%, 420px); margin-bottom: 2.5rem; }

/* CTA */
.cta { text-align: center; }
.cta h2 { margin-inline: auto; margin-right: -0.14em; }
.cta p { margin-inline: auto; color: var(--muted); }
.cta .btn-row { justify-content: center; margin-top: 2.5rem; }
.cta .rule { margin: 0 auto 2.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); background: var(--black); color: var(--muted); font-size: 0.95rem; }
.foot-grid { display: grid; gap: 3rem; padding-block: clamp(64px, 8vw, 112px) 2.5rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot-logo { width: min(100%, 380px); margin-bottom: 1.75rem; }
.foot-ll { width: min(100%, 220px); margin-top: 2rem; }
.site-footer h2 {
  font-weight: 600; font-stretch: 100%; font-size: 0.75rem; letter-spacing: 0.32em;
  color: var(--champagne); margin-bottom: 1.25rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.site-footer li a, .site-footer li span { display: inline-block; padding: 0.35rem 0; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--champagne); text-decoration: underline; }
.foot-bottom { border-top: 1px solid var(--hairline); padding-block: 1.75rem 2.25rem; font-size: 0.875rem; }
.foot-bottom p { margin: 0; max-width: none; }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--hairline); padding: clamp(1.75rem, 3vw, 2.5rem); }
.panel h3 { margin-bottom: 0.75rem; }
.panel p { color: var(--muted); }
.panel .btn { margin-top: 1rem; }

/* Services page */
.service {
  display: grid; gap: 1.25rem 4rem; padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hairline); scroll-margin-top: 96px;
}
.service:first-child { border-top: 0; padding-top: 0; }
.service-head .label { display: block; margin-bottom: 1rem; }
.service h2 {
  font-weight: 500; font-stretch: 100%; text-transform: none; letter-spacing: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 0;
}
.service-body > p:first-child { color: var(--ivory); font-size: 1.1rem; }
.service .more { margin: 1.5rem 0 0; }
.marks-tight li { padding-block: 0.7rem; color: var(--muted); }
.marks-tight li::before { top: 1.25rem; }
@media (min-width: 900px) { .service { grid-template-columns: 5fr 7fr; } }

/* Light Labs AV page */
.ll-stacked { width: min(100%, 420px); justify-self: center; }
@media (max-width: 899px) { .ll-stacked { width: min(70%, 300px); order: -1; } }
.reel { margin: 0; }
.reel video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); border: 1px solid var(--hairline); }
.reel figcaption {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: flex-end;
  margin-top: 1rem; font-size: 0.875rem; color: var(--muted);
}
.reel-toggle {
  font-family: var(--font); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.32em;
  background: none; color: var(--champagne); border: 1px solid var(--hairline); border-radius: 2px;
  padding: 0 calc(1rem - 0.32em) 0 1rem; min-height: 44px; cursor: pointer;
}
.reel-toggle:hover { border-color: var(--champagne); }

/* Experience page */
.stats { display: grid; gap: 1px; margin: 0; background: var(--hairline); border: 1px solid var(--hairline); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--black); padding: 2rem 1.5rem; }
.stats dt { font-weight: 200; font-stretch: 125%; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 0.06em; color: var(--champagne); line-height: 1.1; margin-bottom: 0.75rem; }
.stats dd { margin: 0; color: var(--muted); font-size: 0.95rem; }
.exp { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
@media (min-width: 900px) { .exp { grid-template-columns: repeat(2, 1fr); } }
.exp li { background: var(--black); padding: 2rem 1.75rem; scroll-margin-top: 96px; }
.exp li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.exp .label { display: block; margin-bottom: 1rem; }
.exp h3 { margin-bottom: 0.25rem; }
.exp .role { color: var(--ivory); margin: 0 0 0.5rem; }
.exp p:last-child { color: var(--muted); margin: 0; }

/* Government page */
.facts { margin: 0; border-top: 1px solid var(--hairline); }
.facts div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hairline); }
.facts dt { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--champagne); padding-top: 0.2rem; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 0.35rem; } }
.pending { display: inline-block; border: 1px solid var(--hairline); color: var(--muted); font-size: 0.875rem; padding: 0.1rem 0.6rem; border-radius: 2px; }
.data-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 34rem; }
.data th, .data td { text-align: left; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.data th { font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.32em; color: var(--champagne); border-bottom-color: var(--champagne); }
.data td { color: var(--muted); }
.data td:first-child { color: var(--ivory); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.data td:nth-child(2) { color: var(--ivory); }

/* Contact page and form */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 4fr 7fr; gap: 5rem; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.5rem; }
.contact-list .label { display: block; margin-bottom: 0.35rem; }
.contact-list a, .contact-list li > span:last-child { color: var(--ivory); font-size: 1.15rem; text-decoration: none; }
.contact-list a:hover { color: var(--champagne); }
.form { display: grid; gap: 1.75rem; }
.form .two { display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field label, .field legend {
  display: block; margin-bottom: 0.6rem;
  font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.32em; color: var(--champagne);
}
.field .hint { line-height: 1; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 0.85rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ivory); background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 2px; padding: 0.8rem 0.9rem; min-height: 48px;
  color-scheme: dark;
}
.field input::placeholder, .field textarea::placeholder { color: #6f6a62; }
.field input:focus, .field textarea:focus { border-color: var(--champagne); outline: 2px solid var(--ivory); outline-offset: 3px; }
.field textarea { min-height: 10rem; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.checks label {
  display: flex; gap: 0.85rem; align-items: center; margin: 0; padding: 0.75rem 0; min-height: 48px;
  font-weight: 400; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--ivory);
  border-bottom: 1px solid var(--hairline); cursor: pointer;
}
.checks input {
  appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0;
  border: 1px solid var(--muted); border-radius: 2px; background: transparent; display: grid; place-content: center; cursor: pointer;
}
.checks input::before { content: ""; width: 10px; height: 10px; background: var(--champagne); transform: scale(0); transition: transform 0.12s; }
.checks input:checked { border-color: var(--champagne); }
.checks input:checked::before { transform: scale(1); }
.field input:user-invalid { border-color: var(--hairline); box-shadow: inset 3px 0 0 var(--champagne); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Gentle reveal on scroll (off for reduced motion and without JS) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Drawings */
.card-art { width: 100%; height: auto; margin: -0.5rem 0 1.25rem; }
.service-art { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem; margin-top: 2rem; max-width: 30rem; }
.service-art:has(img:only-child) { max-width: 20rem; }
.kit { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .kit { grid-template-columns: repeat(5, 1fr); } }
.kit li { background: var(--black); padding: 1.25rem 1rem 1.5rem; text-align: center; }
@media (max-width: 899px) {
  .kit li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kit li:last-child:nth-child(odd) img { max-width: 50%; margin-inline: auto; }
}
.kit img { width: 100%; height: auto; margin-bottom: 0.75rem; }
.kit .label { margin-right: -0.32em; }

/* Printing: show every section (none are waiting to fade in) and drop the sticky header */
@media print {
  .js .reveal { opacity: 1; transform: none; }
  .site-header { position: static; }
  .js .menu-btn, .reel-toggle { display: none; }
}
