/* ==========================================================================
   AEY Roofing — Design Tokens & Base
   Palette grounded in the material itself: charcoal steel + oxidized copper.
   ========================================================================== */

:root {
  /* Color: dark steel structure + copper accent (an actual roofing metal) */
  --bg: #0b0c0e;
  --bg-elevated: #14161a;
  --bg-elevated-2: #1c1f24;
  --ink: #f2f0ec;
  --ink-muted: #9aa1ab;
  --ink-faint: #6b7178;

  --steel: #6b7d8f;
  --steel-light: #9fb2c2;
  --steel-dim: #3d4750;

  --copper: #c1793f;
  --copper-light: #e0a066;
  --copper-dark: #8f5726;

  --border: rgba(242, 240, 236, 0.09);
  --border-strong: rgba(242, 240, 236, 0.16);

  --danger: #e2574c;
  --success: #6fae7f;

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --text-3xl: clamp(2.1rem, 1.6rem + 2.2vw, 3.25rem);
  --text-4xl: clamp(2.6rem, 1.8rem + 3.6vw, 4.5rem);
  --text-5xl: clamp(3.1rem, 2rem + 5.6vw, 6.25rem);

  /* Space (8pt-ish scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);

  --container: 1240px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 360ms;
  --dur-slow: 560ms;

  --z-nav: 100;
  --z-overlay: 200;
  --z-toast: 300;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Respect reduced motion globally; JS also checks this before running GSAP */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--copper-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--copper);
  color: #14100b;
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-light);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--copper);
}

p.lede {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  max-width: 42ch;
  line-height: 1.6;
}

.text-muted {
  color: var(--ink-muted);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-7);
  }
}

section {
  position: relative;
  padding-block: var(--space-9);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  max-width: 46rem;
}

.section-head--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-height: 48px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--copper-light), var(--copper));
  color: #17110a;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(193, 121, 63, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--copper);
  color: var(--copper-light);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: var(--text-base);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding-block: var(--space-5);
  transition: padding-block var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  padding-block: var(--space-3);
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand__name span {
  color: var(--copper-light);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav__links a {
  position: relative;
  color: var(--ink-muted);
  padding-block: var(--space-1);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__call {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.nav__call svg {
  color: var(--copper-light);
}

/* The header CTA only has room once nav__links does too — below 1024px the
   hamburger menu carries the CTA instead (see .mobile-menu__cta). */
.nav__cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
  .nav__call {
    display: inline-flex;
  }
  .nav__cta {
    display: inline-flex;
  }
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

@media (min-width: 1024px) {
  .nav__toggle {
    display: none;
  }
}

.nav__toggle span {
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

.nav__toggle span::before {
  top: -7px;
}

.nav__toggle span::after {
  top: 7px;
}

.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-5);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--ink);
}

.mobile-menu__footer {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--ink-muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: calc(var(--space-9) + 4rem);
  padding-bottom: var(--space-8);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0.35) 0%, rgba(11, 12, 14, 0.55) 45%, rgba(11, 12, 14, 0.96) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero__title {
  font-size: var(--text-5xl);
  max-width: 20ch;
}

.word {
  display: inline-block;
  overflow: hidden;
}

.word__inner {
  display: inline-block;
}

.hero--static .hero__unmute {
  display: none;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: flex-end;
  justify-content: space-between;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__stats {
  display: flex;
  gap: var(--space-7);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__num span {
  color: var(--copper-light);
}

.stat__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.hero__scroll {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-6);
  display: none;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

@media (min-width: 1024px) {
  .hero__scroll {
    display: flex;
  }
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--copper), transparent);
}

.hero__unmute {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-5);
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: rgba(11, 12, 14, 0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-elevated-2);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(193, 121, 63, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper-light);
}

.service-card h3 {
  font-size: var(--text-lg);
}

.service-card p {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.service-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--copper-light);
}

.service-card__link svg {
  transition: transform var(--dur-fast) var(--ease-out);
}

.service-card:hover .service-card__link svg {
  transform: translateX(3px);
}

/* Material cards */

.material-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.material-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-elevated-2);
}

.material-card__image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #2c2f33, #14161a);
}

.material-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.material-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.material-card__tag {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper-light);
}

.material-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.material-card__desc {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.material-card__subhead {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.material-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.material-card__list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.material-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper-light);
}

/* Project / gallery cards */

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.project-card__art {
  position: absolute;
  inset: 0;
  transition: transform 700ms var(--ease-out);
  background-image: repeating-linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.07) 0px,
      rgba(255, 255, 255, 0.07) 2px,
      transparent 2px,
      transparent 44px
    ),
    linear-gradient(160deg, var(--tone-a), var(--tone-b));
}

.metal-art--copper {
  --tone-a: #3a2a1c;
  --tone-b: #17110a;
}

.metal-art--steel {
  --tone-a: #263038;
  --tone-b: #111417;
}

.metal-art--slate {
  --tone-a: #2c2f33;
  --tone-b: #14161a;
}

.metal-art--dusk {
  --tone-a: #33261f;
  --tone-b: #1a1512;
}

.project-card:hover .project-card__art {
  transform: scale(1.05);
}

img.project-card__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 12, 14, 0.94) 100%);
}

.project-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.project-card__tag {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper-light);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.project-card__meta {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.video-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0c0e;
}

.video-card__frame iframe,
.video-card__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.video-card__body {
  padding: var(--space-4) var(--space-5);
}

.video-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.video-card__meta {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.placeholder-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(11, 12, 14, 0.6);
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
}

/* Process steps */

.process-list {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid var(--border);
}

.process-step:last-child {
  border-bottom: 1px solid var(--border);
}

.process-step__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}

.process-step__body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.process-step__body p {
  color: var(--ink-muted);
  max-width: 46rem;
}

/* Testimonials */

.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.testimonial-card__stars {
  display: flex;
  gap: 4px;
  color: var(--copper-light);
}

.testimonial-card p {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--ink);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--steel), var(--steel-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}

/* Trust strip */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.trust-item svg {
  color: var(--copper-light);
  flex-shrink: 0;
}

/* CTA band */

.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-elevated-2));
  border: 1px solid var(--border-strong);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(193, 121, 63, 0.18), transparent 70%);
  pointer-events: none;
}

@media (min-width: 900px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.field .required {
  color: var(--copper-light);
}

.field input,
.field select,
.field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  min-height: 48px;
  font-size: var(--text-base);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--copper);
}

.field small {
  color: var(--ink-faint);
  font-size: var(--text-xs);
}

.field-error {
  color: var(--danger);
  font-size: var(--text-xs);
  display: none;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--danger);
}

.field.has-error .field-error {
  display: block;
}

.form-status {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: rgba(111, 174, 127, 0.12);
  border: 1px solid rgba(111, 174, 127, 0.4);
  color: var(--success);
}

.form-status--error {
  background: rgba(226, 87, 76, 0.12);
  border: 1px solid rgba(226, 87, 76, 0.4);
  color: var(--danger);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-9) var(--space-6);
}

.footer__top {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-8);
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer__brand p {
  color: var(--ink-muted);
  margin-top: var(--space-4);
  max-width: 32ch;
}

.footer__col h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col a,
.footer__col address {
  color: var(--ink);
  font-size: var(--text-sm);
  font-style: normal;
}

.footer__col a:hover {
  color: var(--copper-light);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  color: var(--ink-faint);
  font-size: var(--text-xs);
}

/* ==========================================================================
   Page hero (non-home pages)
   ========================================================================== */

.page-hero {
  padding-top: calc(var(--space-10) + 2rem);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.page-hero__title {
  font-size: var(--text-4xl);
  max-width: 24ch;
}

/* ==========================================================================
   Filters (gallery)
   ========================================================================== */

.filter-bar {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}

.filter-chip {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.filter-chip:hover {
  border-color: var(--copper);
  color: var(--ink);
}

.filter-chip.is-active {
  background: var(--copper);
  border-color: var(--copper);
  color: #17110a;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

.center-text {
  text-align: center;
  margin-inline: auto;
}

.mt-0 {
  margin-top: 0;
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* Note: reveal-up / reveal-stagger elements are visible by default (opacity:1).
   GSAP sets their hidden "from" state at runtime via gsap.from()+immediateRender,
   only when it successfully loads and prefers-reduced-motion is not set. This
   means a slow/broken CDN script never leaves content permanently invisible. */
