/* Layout and components. Brand values come from tokens.css (--u92-*).
   Do not hard-code colors, fonts, or logo paths here. */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

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

h1, h2, h3 {
  text-wrap: balance;
  margin: 0 0 var(--u92-space-4);
  text-transform: none;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, var(--u92-size-h1));
  font-weight: var(--u92-weight-demi);
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, var(--u92-size-h2));
  padding-bottom: var(--u92-space-2);
  border-bottom: var(--u92-heading-rule);
  margin-bottom: var(--u92-space-5);
  width: max-content;
  max-width: 100%;
}

h3 { font-size: var(--u92-size-h3); margin-bottom: var(--u92-space-2); }

p { margin: 0 0 var(--u92-space-4); }
p:last-child { margin-bottom: 0; }

a { text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

/* tokens.css already sets :focus-visible; cancel the default outline */
:focus { outline: none; }

::selection {
  background: var(--u92-uranium);
  color: var(--u92-black);
}

.wrap {
  width: min(var(--u92-content-max), calc(100% - var(--u92-gutter) * 2));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip {
  position: absolute;
  left: var(--u92-gutter);
  top: -100px;
  z-index: 100;
  padding: var(--u92-space-2) var(--u92-space-3);
  background: var(--u92-uranium);
  color: var(--u92-black);
  font-family: var(--u92-font-body);
  font-weight: var(--u92-weight-bold);
  text-decoration: none;
}

.skip:focus {
  top: var(--u92-gutter);
  outline: 3px solid var(--u92-white);
  outline-offset: 2px;
}

/* Header — black band, logo top left */
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--u92-space-4) var(--u92-space-5);
  min-height: 4.25rem;
  padding-block: var(--u92-space-3);
  flex-wrap: wrap;
}

.brand,
.u92-dark .brand,
.u92-dark .brand:hover {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u92-logo-header-size) * var(--u92-logo-clear-space));
  color: var(--u92-text-on-dark);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: var(--u92-logo-header-size);
  height: var(--u92-logo-header-size);
  background-image: var(--u92-logo-on-dark);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 var(--u92-logo-header-size);
}

.brand-name {
  font-family: var(--u92-font-heading);
  font-weight: var(--u92-weight-medium);
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

header nav ul {
  display: flex;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

header.u92-dark nav a,
header nav a {
  color: var(--u92-text-on-dark);
  text-decoration: none;
  padding: 0.4rem 0;
  display: inline-block;
}

header.u92-dark nav a:hover,
header.u92-dark nav a:focus-visible,
header nav a:hover,
header nav a:focus-visible {
  color: var(--u92-accent-on-dark);
  text-decoration: underline;
}

/* Hero: tagline is the one Uranium signal on this screen */
.hero {
  padding: clamp(2.5rem, 8vw, var(--u92-space-8)) 0 clamp(3.5rem, 10vw, var(--u92-space-9));
}

.hero-logo {
  width: var(--u92-logo-hero-size);
  height: var(--u92-logo-hero-size);
  background-image: var(--u92-logo-on-dark);
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0 0 calc(var(--u92-logo-hero-size) * var(--u92-logo-clear-space) + var(--u92-space-5));
}

.tagline {
  font-family: var(--u92-font-heading);
  font-weight: var(--u92-weight-demi);
  font-size: clamp(1.35rem, 1.1rem + 1vw, var(--u92-size-h2));
  color: var(--u92-accent-on-dark);
  margin: 0 0 var(--u92-space-4);
  line-height: var(--u92-leading-heading);
  max-width: none;
}

.hero h1 {
  color: var(--u92-text-on-dark);
  max-width: 28ch;
  margin-bottom: var(--u92-space-6);
  border: 0;
  padding: 0;
}

.hero.u92-dark .cta,
.hero .cta {
  color: var(--u92-text-on-dark);
  font-weight: var(--u92-weight-bold);
}

.hero.u92-dark .cta:hover,
.hero .cta:hover { color: var(--u92-accent-on-dark); }

/* Sections */
.section {
  padding: var(--u92-space-9) 0;
}

.section-alt {
  background: var(--u92-bg-alt);
}

.section-alt h2 {
  /* Heading rule stays black; panel is mist, contrast is fine */
}

/* What we do */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--u92-space-3);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.services li {
  border: var(--u92-rule);
  padding: var(--u92-space-5) var(--u92-space-4) var(--u92-space-5);
  background: var(--u92-white);
}

.services h3 { margin: 0 0 var(--u92-space-2); }
.services p {
  margin: 0;
  color: var(--u92-charcoal);
  max-width: none;
  font-size: var(--u92-size-small);
}

/* Two doors */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--u92-space-6);
  align-items: start;
}

.door {
  background: var(--u92-white);
  border: var(--u92-rule);
  padding: var(--u92-space-6);
}

.door h2 { max-width: none; }

.plain {
  margin: 0 0 var(--u92-space-4);
  padding-left: 1.2em;
  max-width: var(--u92-measure);
}

.plain li { margin-bottom: var(--u92-space-2); max-width: none; }

.facts {
  margin: 0 0 var(--u92-space-5);
  padding: var(--u92-space-5);
  border: var(--u92-rule);
}

.facts dt {
  font-size: var(--u92-size-caption);
  color: var(--u92-text-muted);
  margin: var(--u92-space-4) 0 2px;
}

.facts dt:first-child { margin-top: 0; }

.facts dd {
  margin: 0;
  font-weight: var(--u92-weight-bold);
}

/* Keep [PLACEHOLDER] text exactly; the bar is the kit highlight token */
.placeholder {
  display: inline;
  border-left: var(--u92-highlight-bar);
  padding: 0.1em 0.45em;
  background: var(--u92-mist);
  color: var(--u92-graphite);
  font-weight: var(--u92-weight-regular);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Past work */
.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--u92-measure);
}

.work-list li {
  padding: var(--u92-space-5) 0;
  border-top: var(--u92-rule);
}

.work-list li:last-child { border-bottom: var(--u92-rule); }

.work-list h3 { margin-bottom: var(--u92-space-2); }
.work-list p { margin: 0; max-width: none; }

.email { font-weight: var(--u92-weight-bold); font-size: var(--u92-size-lead); }

/* Footer */
footer {
  padding: var(--u92-space-5) 0;
  font-size: var(--u92-size-caption);
}

footer p {
  margin: 0;
  max-width: none;
  line-height: 1.6;
  color: var(--u92-steel);
}

footer.u92-dark a,
footer a { color: var(--u92-text-on-dark); }
footer.u92-dark a:hover,
footer a:hover { color: var(--u92-accent-on-dark); }

footer .footer-naics { margin-top: var(--u92-space-2); }

footer .placeholder {
  /* Mist chip keeps Isotope/graphite contrast on the black band */
  font-size: inherit;
}

/* Breakpoints */
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr 1fr; }
  .doors { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: var(--u92-space-7) 0; }

  header nav {
    flex: 1 0 100%;
  }

  header nav ul {
    width: 100%;
    gap: 0;
    justify-content: flex-start;
  }

  header nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 var(--u92-space-4) 0 0;
  }

  .services { grid-template-columns: 1fr; }

  .door { padding: var(--u92-space-5); }

  .hero h1 { max-width: 26ch; }
}

@media print {
  header, .hero, footer {
    background: var(--u92-black);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .skip, header nav { display: none; }
}
