/* =========================================================
   MICRON — base styles (mobile first). Desktop overrides live
   in responsive.css. Breakpoints mirror the reference build:
   sm 640 · md 768 · lg 1024 · xl 1280 · 2xl 1536
   ========================================================= */

/* ---------- Fonts (original site assets) ---------- */
@font-face { font-family: "Brooklyn Secondary"; src: url("../assets/fonts/brooklyn-400.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Brooklyn Secondary"; src: url("../assets/fonts/brooklyn-600.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Brooklyn Fallback"; src: local("Arial"); ascent-override: 80.21%; descent-override: 21.11%; line-gap-override: 0%; size-adjust: 118.44%; }

@font-face { font-family: "Editors Note"; src: url("../assets/fonts/editors-note-100.otf") format("opentype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Editors Note"; src: url("../assets/fonts/editors-note-200.otf") format("opentype"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Editors Note"; src: url("../assets/fonts/editors-note-200-italic.otf") format("opentype"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: "Editors Note"; src: url("../assets/fonts/editors-note-400.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Editors Note"; src: url("../assets/fonts/editors-note-700.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Editors Note"; src: url("../assets/fonts/editors-note-700-italic.otf") format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Editors Note Fallback"; src: local("Arial"); ascent-override: 113.27%; descent-override: 26.14%; line-gap-override: 0%; size-adjust: 91.81%; }

@font-face { font-family: "Satoshi"; src: url("../assets/fonts/satoshi-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Haas Unica Pro"; src: url("../assets/fonts/neue-haas-unica-pro.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --c-green-900: #023220;   /* header, footer, pillar section */
  --c-green-800: #013320;   /* active filter, location button */
  --c-green-accent: #024700;/* vision / mission accent */
  --c-stone: #d3d4d0;       /* "Our Other Businesses" */
  --c-muted: #909389;       /* footer labels & social tiles */
  --c-black: #000;
  --c-white: #fff;
  --c-gray-100: #f3f4f6;
  --c-gray-200: #e5e7eb;
  --c-gray-300: #d1d5db;
  --c-gray-500: #6b7280;
  --c-gray-600: #4b5563;
  --c-gray-700: #374151;
  --c-orange-600: #ea580c;
  --c-orange-700: #c2410c;
  --c-error: #b91c1c;
  --c-success: #166534;

  --f-body: "Brooklyn Secondary", "Brooklyn Fallback", Arial, sans-serif;
  --f-display: "Editors Note", "Editors Note Fallback", Georgia, serif;
  --f-satoshi: "Satoshi", Arial, sans-serif;
  --f-neue: "Neue Haas Unica Pro", Arial, sans-serif;
  --f-signature: Helvetica, Arial, sans-serif;

  --header-h: 117px;
  --gutter: 20px;
  --gutter-lg: 40px;

  --z-header: 10;
  --z-menu: 20;
  --z-burger: 50;

  --ease: ease;
  --t-fast: 200ms;
  --t-med: 500ms;
  --t-slow: 700ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--c-gray-200); }
/* Green canvas so macOS rubber-band overscroll matches the header/footer instead of flashing white. */
html { line-height: 1.5; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--c-green-900); }
body { margin: 0; font-family: var(--f-body); color: var(--c-black); background: var(--c-white); }
h1, h2, h3, h4, p { margin: 0; font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img, video, svg { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; margin: 0; }
button { background: transparent; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.sr-only { 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 { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--c-white); color: var(--c-black); padding: 8px 16px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.container { width: 100%; margin-left: auto; margin-right: auto; }

/* =========================================================
   HEADER + MENU
   ========================================================= */
.site-header__bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  display: flex; justify-content: space-between;
  padding: 20px;
  transition: all var(--t-med) var(--ease);
}
.site-header--solid .site-header__bar,
.site-header.is-scrolled .site-header__bar { background: var(--c-green-900); }
.site-header__logo img { width: 130px; height: auto; }

.menu-toggle {
  position: fixed; top: 20px; margin-top: 12px; right: 40px; z-index: var(--z-burger);
  width: 36px; height: 36px;
}
.menu-toggle__bar {
  position: absolute; height: 4px; border-radius: 9999px; background: var(--c-white);
  transform-origin: center; transition: all var(--t-slow) var(--ease);
}
.menu-toggle__bar--top { top: 8px; left: 4px; right: 4px; }
.menu-toggle__bar--bottom { bottom: 8px; left: 50%; right: 4px; }
.menu-open .menu-toggle__bar--top { top: 50%; margin-top: -2px; transform: rotate(-45deg); }
.menu-open .menu-toggle__bar--bottom { bottom: 50%; margin-bottom: -2px; left: 4px; transform: rotate(45deg); }

.menu-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-menu);
  width: 100%; height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 15vh 0 40px;
  color: var(--c-white);
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.menu-open .menu-panel { transform: none; visibility: visible; transition: transform var(--t-med) var(--ease), visibility 0s; }
.menu-panel__nav { padding-left: 40px; height: 20%; display: flex; flex-direction: column; justify-content: space-between; }
.menu-panel__title { margin-bottom: 80px; font-size: 1.5rem; line-height: 2rem; }
.menu-panel__item { margin: 8px 0; padding: 8px 0; }
.menu-panel__link { display: flex; gap: 8px; font-size: 1.25rem; line-height: 1.75rem; }
.menu-panel__link::before {
  content: ""; height: 4px; width: 0; margin: auto 0; background: var(--c-white);
  transition: all var(--t-slow) var(--ease);
}
.menu-panel__link:hover::before, .menu-panel__link:focus-visible::before { width: 40px; }
.menu-panel__copy { text-align: center; font-size: 0.875rem; line-height: 1.25rem; }
body.scroll-locked { overflow: hidden; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { position: relative; width: 100%; background: var(--c-green-900); color: var(--c-white); padding: 40px 0; }
.site-footer .container { margin-top: 40px; padding: 0 var(--gutter); }
.footer-grid { display: grid; gap: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer-brand img { width: 200px; height: auto; object-fit: contain; }
.footer-label { color: var(--c-muted); margin-bottom: 24px; }
.footer-links li { margin: 8px 0; font-size: 16px; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--c-muted); }
.footer-contact { display: none; }
.footer-contact__row { display: flex; gap: 16px; margin-bottom: 24px; }
.footer-contact__row--email .footer-contact__icon { margin-top: 6px; }
.footer-contact__muted { color: var(--c-muted); }
.footer-contact__address { width: 130%; }
.footer-contact a:hover { color: var(--c-white); }
.footer-social__label { color: var(--c-muted); font-size: 1.125rem; line-height: 1.75rem; margin-top: -4px; margin-bottom: 24px; text-transform: uppercase; }
.footer-social__list { display: flex; gap: 16px; }
.footer-social__list a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--c-muted); color: var(--c-white);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social__list a:hover, .footer-social__list a:focus-visible { background: var(--c-white); color: var(--c-black); }
.footer-social__list svg { width: 1em; height: 1em; }
.footer-bottom {
  padding-top: 24px; text-align: center; font-size: 0.875rem; line-height: 1.25rem;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.footer-bottom__links { display: flex; gap: 16px; }
.footer-bottom__links a:hover, .footer-bottom__links a:focus-visible { color: var(--c-muted); }

/* =========================================================
   HOME — stacked panels (GSAP pin with pinSpacing:false in
   the reference; reproduced with position: sticky)
   ========================================================= */
.home-main { position: relative; min-height: 100vh; }
.panel { position: sticky; top: 0; }

.panel--hero { height: 100vh; background: var(--c-black); overflow: hidden; }
.panel--hero video { width: 100%; height: 100%; object-fit: cover; }

.panel--tagline-mobile { height: 100vh; background: var(--c-white); display: flex; }
.panel--tagline-mobile p {
  margin: auto; padding: 0 20px; text-align: center;
  font-size: 22px; line-height: 27.11px; font-weight: 600;
}
.panel--tagline { display: none; }

/* The pillar animation is shown whole ("contain") in the space below the header,
   capped in width so it sits in the screen instead of filling it. Background is
   the GIF's own green (#003121) so its edges are invisible. */
.panel--pillar {
  position: sticky; height: 100vh; background: #003121; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: var(--header-h) 48px 48px;
}
.panel--pillar img { width: 100%; height: 100%; max-width: 1100px; object-fit: contain; }
/* Portrait screens: the whole frame would be tiny, so scale it to frame just its
   content (≈17–74% of the frame width across all scenes), centred below the header. */
@media (orientation: portrait) {
  .panel--pillar img {
    position: absolute; top: calc(50% + var(--header-h) / 2); left: 50%;
    width: 165%; max-width: none; height: auto;
    transform: translate(-45.5%, -50%);
  }
}

/* Must be positioned: otherwise the sticky panels above paint over its background. */
.panel--businesses { position: relative; background: var(--c-stone); padding: 40px 0; display: flex; }
.businesses { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.businesses__title {
  padding-bottom: 40px; margin-top: 64px; text-align: center; text-transform: uppercase;
  font-size: 1.25rem; line-height: 1.75rem; letter-spacing: 10px; font-weight: 600;
}
.businesses__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 0 8px; margin: 0 auto;
}
.businesses__item {
  flex-shrink: 0; width: 140px; height: 140px; border-radius: 9999px;
  filter: grayscale(100%); transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.businesses__item img { width: 300px; height: auto; margin: 0 auto; }

/* =========================================================
   PAGE HERO IMAGES (projects / legacy)
   ========================================================= */
.projects-banner { margin-top: 112px; }
.projects-banner img, .projects-wellbeing img { width: 100%; height: 100%; object-fit: cover; }
.projects-body { position: relative; background: var(--c-white); }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects { margin-bottom: 0; }
.project-filters { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 40px 0; }
.project-filters button {
  padding: 8px 16px; border-radius: 8px; border-width: 1px; background: var(--c-white);
  transition: all var(--t-med) cubic-bezier(0.4, 0, 0.2, 1);
}
.project-filters button[aria-pressed="true"] { background: var(--c-green-800); color: var(--c-white); }
.project-list { display: grid; grid-template-columns: 1fr; gap: 20px; transition: opacity var(--t-fast) var(--ease); }
.project-list.is-switching { opacity: 0; }

.project-card__media { position: relative; width: 100%; height: 500px; overflow: hidden; }
.project-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-med) cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card__media:hover img { transform: scale(1.1); }
.project-card__overlay {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.project-card__status {
  position: absolute; top: 20px; left: 40px; margin-top: 12px;
  font-size: 0.875rem; line-height: 1.25rem; padding: 4px 20px; background: var(--c-gray-200); border-radius: 9999px;
}
.project-card__title { color: var(--c-white); font-size: 1.25rem; line-height: 1.625; text-transform: uppercase; font-weight: 600; }
.project-card__location { color: var(--c-white); font-size: 1.125rem; line-height: 1.625; margin-top: 8px; padding: 8px 0; font-weight: 600; text-transform: uppercase; }
.project-card__toggle { display: flex; align-items: center; gap: 4px; color: var(--c-white); font-size: 0.75rem; line-height: 1rem; }
.project-card__toggle svg { width: 1em; height: 1em; transition: transform var(--t-med) var(--ease); }
.project-card__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.project-details {
  display: grid; grid-template-rows: 0fr;
  background: var(--c-gray-100);
  transition: grid-template-rows var(--t-slow) var(--ease), padding var(--t-slow) var(--ease);
}
.project-details[hidden] { display: none; }
.project-details.is-open { grid-template-rows: 1fr; padding-top: 40px; padding-bottom: 40px; }
/* Horizontal padding lives inside the clipping box so the offset stats card is not cut off. */
.project-details__inner { overflow: hidden; min-height: 0; padding: 0 20px; }
.project-details__heading { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1.75rem; margin: 40px 0 20px; }
.project-details__heading span { font-weight: 400; }
.project-details__text { margin-bottom: 20px; font-size: 0.75rem; line-height: 1rem; }
.project-details__category {
  display: inline-block; margin: 8px; padding: 8px 20px; border-radius: 9999px; background: var(--c-gray-300);
  font-size: 0.75rem; line-height: 1rem;
}
.project-details__map {
  display: inline-block; margin: 8px 0 40px; padding: 8px; border: 1px solid var(--c-green-800);
  font-size: 0.875rem; line-height: 1.25rem; transition: none;
}
.project-details__map:hover, .project-details__map:focus-visible { background: var(--c-green-800); color: var(--c-white); }
.project-stats { background: var(--c-white); height: fit-content; font-family: var(--f-display); }
.project-stats dl { margin: 0; padding: 20px 40px; text-align: left; }
.project-stats dt { padding: 20px 0; color: var(--c-gray-500); text-transform: uppercase; margin-top: 16px; }
.project-stats dt:first-child.is-location { margin-top: 0; }
.project-stats dd { margin: 0; font-weight: 700; }

/* =========================================================
   LEGACY
   ========================================================= */
/* "Since 1982": the artwork sits centred on a black band at a capped size, so the
   white Founders section shows below it on the first screen. The band extends below
   the artwork, and every edge of the artwork fades into the black, so the numerals
   (cut flat in the source file) dissolve instead of ending on a hard line. */
.legacy-since {
  background: var(--c-black); margin-top: var(--header-h); padding: 24px 0 40px;
  display: flex; justify-content: center; overflow: hidden;
}
.legacy-since img {
  width: min(100%, 1100px, calc((100vh - var(--header-h) - 220px) * 16 / 9));
  width: min(100%, 1100px, calc((100svh - var(--header-h) - 220px) * 16 / 9));
  height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 80%, transparent);
  mask-composite: intersect;
}

.founders { display: grid; grid-template-columns: 1fr; background: var(--c-white); padding: 40px 0; }
.founders__photo img { width: 800px; height: auto; object-fit: contain; }
.founders__text { margin: 40px 8px 8px; }
.founders__heading { font-family: var(--f-display); font-size: 2.25rem; line-height: 2.5rem; font-weight: 200; font-style: italic; }
.founders__heading b { font-size: 3.75rem; line-height: 1; font-weight: 400; font-style: normal; }
.founders__body { padding: 8px 80px 8px 0; }
.founders__sign { margin-top: 40px; font-family: var(--f-signature); font-size: 1.5rem; line-height: 2rem; font-weight: 700; }

.vm { background: var(--c-white); margin: 20px 0; padding: 8px 0; overflow: hidden; }
.vm__item { padding: 20px 40px; cursor: pointer; }
.vm__head { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.vm__bar { height: 4px; width: 0; background: var(--c-green-accent); transition: all var(--t-slow) cubic-bezier(0.4, 0, 0.2, 1); }
.vm__bar--v { position: relative; left: -32px; transform: rotate(90deg); }
.vm__title { font-size: 2.25rem; line-height: 2.5rem; transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.vm__body { overflow: hidden; max-height: 0; opacity: 0; transition: all var(--t-fast) cubic-bezier(0.4, 0, 0.2, 1); }
.vm__body p { color: var(--c-gray-600); font-size: 1.125rem; line-height: 1.625; }
.vm__item.is-active .vm__bar--h { width: 20px; }
.vm__item.is-active .vm__bar--v { width: 20px; }
.vm__item.is-active .vm__title { color: var(--c-green-accent); }
.vm__item.is-active .vm__body { max-height: 500px; margin-top: 16px; opacity: 1; }
/* Without JS, keep Vision / Mission copy readable */
html:not(.js) .vm__body { max-height: none; opacity: 1; margin-top: 16px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 40px 16px; }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 40px; margin-left: auto; margin-right: auto; }
.contact__title {
  margin-top: 96px; padding-bottom: 20px; text-align: center; text-transform: uppercase; font-weight: 600;
  font-size: 1.5rem; line-height: 2rem; letter-spacing: 8px;
}
.contact__form-wrap { display: flex; justify-content: center; padding: 32px 0; }
.contact-form { width: 100%; max-width: 32rem; font-size: 0.875rem; line-height: 1.25rem; }
.contact-form > * + * { margin-top: 24px; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field { position: relative; }
.field__control {
  width: 100%; padding: 12px; border: 1px solid var(--c-gray-300); border-radius: 8px; background: var(--c-white);
  outline: none; transition: border-color 150ms, box-shadow 150ms;
}
.field__control::placeholder { text-transform: uppercase; color: #9ca3af; opacity: 1; }
.field__control:focus { border-color: var(--c-gray-500); box-shadow: 0 0 0 1px var(--c-gray-500); }
.field__control[aria-invalid="true"] { border-color: var(--c-error); }
.field__control[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--c-error); }
.field--select select { appearance: none; -webkit-appearance: none; padding-right: 32px; }
.field__chevron { pointer-events: none; position: absolute; top: 0; right: 0; height: 46px; display: flex; align-items: center; padding: 0 8px; color: var(--c-gray-700); }
.field__chevron svg { width: 16px; height: 16px; fill: currentColor; }
.field__error { color: var(--c-error); font-size: 0.75rem; line-height: 1rem; margin-top: 4px; }
.field__error:empty { display: none; }

.contact-form__checks { padding-top: 8px; }
.contact-form__checks > * + * { margin-top: 12px; }
.check { display: flex; align-items: flex-start; }
.check input { margin-top: 4px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--c-orange-600); }
.check label { margin-left: 8px; color: var(--c-gray-700); }
.check a { color: var(--c-orange-600); text-decoration: underline; transition: color 150ms; }
.check a:hover { color: var(--c-orange-700); }
.check-error { margin-left: 24px; }

.contact-form__status { font-size: 0.875rem; line-height: 1.25rem; color: var(--c-black); }
.contact-form__status:empty { display: none; }
.contact-form__status[data-state="error"] { color: var(--c-error); }
.contact-form__status[data-state="success"] { color: var(--c-success); }
.contact-form__status[data-state="demo"] { color: var(--c-gray-700); }
.contact-form__submit {
  margin-top: 24px; padding: 12px 40px; border-radius: 9999px; border: 1px solid var(--c-black);
  font-weight: 600; letter-spacing: 0.025em; display: inline-flex; align-items: center; gap: 10px;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-form__submit:hover { background: rgba(0, 0, 0, 0.05); }
.contact-form__submit:disabled { cursor: progress; opacity: 0.6; }
.contact-form__submit .spinner { display: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
.contact-form__submit[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-crumbs { display: flex; margin: 120px 20px 0; }
.legal-crumbs a { font-weight: 600; }
.legal-crumbs svg { margin-top: 5px; opacity: 0.4; width: 1em; height: 1em; }
.legal-crumbs span { opacity: 0.4; font-weight: 600; }
.legal-crumbs span.font-neue { font-family: var(--f-neue); }
.legal { margin: 0 20px; }
.legal__title { margin: 20px 0; font-size: 28px; font-weight: 600; text-transform: uppercase; font-family: var(--f-satoshi); }
.legal__lead, .legal__sub { font-size: 22px; line-height: 27.11px; margin-bottom: 20px; font-weight: 600; }
.legal__lead { font-family: var(--f-satoshi); }
.legal__lead.font-body { font-family: var(--f-body); }
.legal p { margin-bottom: 20px; line-height: 27.11px; }
.legal p:last-child { margin-bottom: 80px; line-height: 1.5; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .panel, .projects-wellbeing { position: relative; }
}
