/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, figure, ol { margin: 0; padding: 0; }
body { min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ol { list-style: none; }
button { font: inherit; }

/* ===== Tokens ===== */
:root {
  /* Color */
  --color-forest-900: #1E3A2B;
  --color-forest-700: #2C4F3B;
  --color-concrete-100: #EDEAE3;
  --color-concrete-300: #C9C4BB;
  --color-ink-900: #20201D;
  --color-terracotta-600: #A85D3B;
  --color-terracotta-700: #8E4C2F;
  --color-white: #FFFFFF;

  /* Type */
  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Public Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --fs-hero: clamp(2.75rem, 5vw + 1.5rem, 5.5rem);
  --fs-h2: clamp(1.85rem, 2.5vw + 1.2rem, 2.75rem);
  --fs-lead: clamp(1.05rem, 0.5vw + 1rem, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;
  --lh-tight: 1.05;
  --lh-body: 1.6;
  --ls-eyebrow: 0.12em;

  /* Space */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-section-y: clamp(2.5rem, 1.75rem + 3vw, 4.75rem);

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.25rem;
  --radius-sm: 2px;
  --border-hairline: 1px solid var(--color-ink-900);

  /* Motion */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-fast: 150ms;
  --dur-base: 400ms;
  --dur-slow: 700ms;
  --stagger-step: 90ms;
}

/* ===== Base ===== */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink-900);
  background: var(--color-concrete-100);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ===== Accessibility utilities ===== */
.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -60px;
  background: var(--color-forest-900);
  color: var(--color-white);
  padding: var(--space-2xs) var(--space-sm);
  z-index: 100;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  top: var(--space-sm);
}

:focus-visible {
  outline: 2px solid var(--color-terracotta-600);
  outline-offset: 2px;
}

/* ===== CTA button (shared component) ===== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  background: var(--color-forest-900);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-forest-900);
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.cta-button:hover {
  background: var(--color-forest-700);
  border-color: var(--color-forest-700);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(30, 58, 43, 0.25);
}
.cta-button--header {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-small);
}
.cta-button--primary {
  align-self: flex-start;
}
.cta-button--large {
  font-size: var(--fs-lead);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-terracotta-600);
  border-color: var(--color-terracotta-600);
}
.cta-button--large:hover {
  background: var(--color-terracotta-700);
  border-color: var(--color-terracotta-700);
  box-shadow: 0 6px 20px rgba(168, 93, 59, 0.35);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-concrete-100);
  border-bottom: var(--border-hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-sm);
}
.site-header__logo {
  height: 40px;
  width: auto;
}

/* ===== Hero ===== */
.hero {
  padding-block: var(--space-section-y);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-terracotta-700);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--color-forest-900);
}
.hero__lead {
  font-size: var(--fs-lead);
  max-width: 42ch;
  color: var(--color-ink-900);
}

/* Shared "spec plate" motif: hairline frame + terracotta corner ticks.
   Used on the hero image frame and, at larger scale, the lightbox panel —
   the same signature device, not a new one. */
.spec-plate {
  position: relative;
}
.spec-plate::before,
.spec-plate::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--color-terracotta-600);
  pointer-events: none;
}
.spec-plate::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.spec-plate::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.hero__frame {
  border: var(--border-hairline);
  background: var(--color-white);
  padding: 8px;
}
.hero__frame-trigger {
  display: block;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: zoom-in;
}
.hero__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero__zoom-hint {
  position: absolute;
  right: var(--space-sm);
  bottom: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  background: var(--color-forest-900);
  color: var(--color-concrete-100);
  padding: var(--space-3xs) var(--space-xs);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  pointer-events: none;
}
.hero__frame-trigger:hover .hero__zoom-hint,
.hero__frame-trigger:focus-visible .hero__zoom-hint {
  opacity: 1;
  transform: none;
}
.hero__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-forest-900);
  color: var(--color-concrete-100);
  padding: var(--space-2xs) var(--space-sm);
  margin-top: 8px;
}

/* ===== Hero image lightbox ===== */
body.lightbox-open {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.lightbox[hidden] {
  display: none;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 32, 29, 0.92);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.lightbox__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 92vw;
  max-height: 90vh;
  background: var(--color-white);
  border: var(--border-hairline);
  padding: 8px;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.lightbox.is-open .lightbox__backdrop {
  opacity: 1;
}
.lightbox.is-open .lightbox__panel {
  opacity: 1;
  transform: scale(1);
}
.lightbox__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  margin-inline: auto;
}
.lightbox__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-forest-900);
  color: var(--color-concrete-100);
  padding: var(--space-2xs) var(--space-sm);
  margin-top: 8px;
}
.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-forest-900);
  color: var(--color-white);
  border: var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.lightbox__close:hover {
  background: var(--color-forest-700);
}

/* ===== Opportunity band ===== */
.opportunity {
  padding-block: var(--space-section-y);
  background: var(--color-forest-900);
  color: var(--color-concrete-100);
}
.opportunity__inner {
  max-width: 65ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.opportunity__quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
}
.opportunity__text {
  font-size: var(--fs-lead);
  color: var(--color-concrete-300);
}

/* ===== Final CTA banner ===== */
.cta-banner {
  padding-block: var(--space-section-y);
  background: var(--color-concrete-100);
  border-bottom: var(--border-hairline);
}
.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}
.cta-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: var(--color-forest-900);
  line-height: var(--lh-tight);
}
.cta-banner__text {
  font-size: var(--fs-lead);
}

/* ===== Footer ===== */
.site-footer {
  padding-block: var(--space-xl);
  background: var(--color-concrete-100);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.site-footer__identity {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.site-footer__brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--color-ink-900);
}
.site-footer__brand-accent {
  color: var(--color-forest-900);
}
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.site-footer__link {
  font-size: var(--fs-small);
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.site-footer__link:hover {
  border-color: var(--color-terracotta-600);
}
.site-footer__address {
  font-size: var(--fs-small);
  color: var(--color-ink-900);
}

/* ===== Reveal on load / on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero__eyebrow.reveal { transition-delay: 0ms; }
.hero__title.reveal { transition-delay: var(--stagger-step); }
.hero__lead.reveal { transition-delay: calc(var(--stagger-step) * 2); }
.hero__content .cta-button.reveal { transition-delay: calc(var(--stagger-step) * 3); }
.hero__frame.reveal { transition-delay: calc(var(--stagger-step) * 4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Breakpoints ===== */
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .site-footer__contact {
    align-items: flex-end;
    text-align: right;
  }
}
