/* ============================================================
   projects.css — First Step Engineering
   Projects page styles: hero, filter bar, featured card,
   project grid, CTA, footer extras, preview overlay.
   Design system: --navy-deep #06101E | --gold #C8860A
   Fonts: Montserrat (head/body) | IBM Plex Mono (mono)
   ============================================================ */

/* ─────────────────────────────────────────────
   1. HERO HEADER
───────────────────────────────────────────── */

.proj-header {
  position: relative;
  min-height: 100vh;
  background-color: #06101E;
  overflow: hidden;
}

/* Background image layer */
.proj-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.proj-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.88) saturate(0.90);
}

/* Left-to-right fade: solid navy on left, transparent on right so photo shows */
.proj-header-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #06101E 0%,
    #06101E 28%,
    rgba(6, 16, 30, 0.8) 50%,
    rgba(6, 16, 30, 0.08) 100%
  );
}

.proj-header-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.proj-header-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: calc(var(--nav-h, 72px) + 80px);
  padding-bottom: 80px;
  gap: 60px;
}

.proj-header-left {
  max-width: 600px;
  flex: 1;
}

/* Eyebrow */
.proj-eyebrow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.eyebrow-line {
  display: block;
  width: 32px;
  height: 1.5px;
  background-color: #C8860A;
  flex-shrink: 0;
}

.eyebrow-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(200, 134, 10, 0.85);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Hero title */
.proj-header-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 12vw, 140px);
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -2px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
}

.pht-word {
  display: block;
  color: #fff;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.pht-word.animated {
  opacity: 1;
  transform: translateY(0);
}

.pht-outline {
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.45);
  color: transparent;
}

/* Hero subtitle */
.proj-header-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  line-height: 1.7;
  margin-top: 28px;
  margin-bottom: 0;
}

/* Right side */
.proj-header-right {
  flex-shrink: 0;
}

/* Count card */
.proj-count-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid #C8860A;
  padding: 36px 40px;
}

.pcc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.pcc-item {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.pcc-item:nth-child(2),
.pcc-item:nth-child(4) {
  border-right: none;
}

.pcc-item:nth-child(3),
.pcc-item:nth-child(4) {
  border-bottom: none;
}

.pcc-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 42px;
  color: #C8860A;
  line-height: 1;
}

.pcc-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ─────────────────────────────────────────────
   2. TICKER
───────────────────────────────────────────── */

.proj-ticker {
  width: 100%;
  overflow: hidden;
  background: rgba(200, 134, 10, 0.08);
  border-top: 1px solid rgba(200, 134, 10, 0.15);
  border-bottom: 1px solid rgba(200, 134, 10, 0.15);
  padding: 14px 0;
  position: relative;
  z-index: 3;
}

.proj-ticker-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: projTicker 28s linear infinite;
  white-space: nowrap;
}

.proj-ticker-track span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tick-dot {
  color: #C8860A;
  opacity: 0.6;
}

@keyframes projTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────
   3. FILTER BAR
───────────────────────────────────────────── */

.proj-filter-bar {
  background: #0B1627;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: var(--nav-h, 72px);
  z-index: 90;
}

.pf-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.pf-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pf-filters {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.pf-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
}

.pf-btn:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.pf-btn.active {
  background: #C8860A;
  border-color: #C8860A;
  color: #fff;
}

.pf-count {
  font-size: 9px;
  opacity: 0.6;
  margin-left: 4px;
}

.pf-view-toggle {
  display: flex;
  flex-direction: row;
  gap: 4px;
  flex-shrink: 0;
}

.pf-view-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.pf-view-btn:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

.pf-view-btn.active {
  background: #C8860A;
  border-color: #C8860A;
  color: #fff;
}

/* ─────────────────────────────────────────────
   4. FEATURED PROJECT
───────────────────────────────────────────── */

.proj-featured {
  background: #06101E;
  padding: 0;
}

.proj-featured-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 520px;
  display: flex;
  align-items: flex-end;
}

.pfc-img-wrap {
  position: absolute;
  inset: 0;
}

.pfc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
  display: block;
}

.proj-featured-card:hover .pfc-img-wrap img {
  transform: scale(1.04);
}

.pfc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 16, 30, 0.97) 0%,
    rgba(6, 16, 30, 0.4) 50%,
    transparent 100%
  );
  z-index: 1;
}

.pfc-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
}

.pfc-meta {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.pfc-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(200, 134, 10, 0.8);
  border: 1px solid rgba(200, 134, 10, 0.3);
  padding: 5px 12px;
}

.pfc-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
}

.pfc-number {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 180px;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.pfc-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 60px);
  text-transform: uppercase;
  letter-spacing: -1.5px;
  color: #fff;
  margin: 0;
  line-height: 1;
}

.pfc-details {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

.pfc-details span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1.5px;
}

.pfc-details i {
  color: #C8860A;
  margin-right: 5px;
}

.pfc-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: #C8860A;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease;
  align-self: flex-start;
  margin-top: 8px;
}

.pfc-link:hover {
  background: #a06c05;
  color: #fff;
  text-decoration: none;
}

.pfc-arrow {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   5. PROJECT GRID
───────────────────────────────────────────── */

.proj-grid-section {
  background: #06101E;
  padding: 4px 0 80px;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.pg-half {
  grid-column: span 3;
}

.pg-third {
  grid-column: span 2;
}

.pg-two-third {
  grid-column: span 4;
}

.pg-item {
  position: relative;
  min-height: 380px;
}

/* Card */
.pg-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #0a1520;
  text-decoration: none;
  color: inherit;
}

.pg-img-wrap {
  position: absolute;
  inset: 0;
}

.pg-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 7s ease;
  filter: brightness(0.85) saturate(0.90);
  display: block;
}

.pg-card:hover .pg-img-wrap img {
  transform: scale(1.05);
}

.pg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 16, 30, 0.95) 0%,
    rgba(6, 16, 30, 0.3) 60%,
    transparent 100%
  );
  z-index: 1;
}

.pg-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  transform: translateY(8px);
  transition: transform 0.4s ease;
}

.pg-card:hover .pg-content {
  transform: translateY(0);
}

.pg-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pg-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 2px;
}

.pg-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: rgba(200, 134, 10, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(200, 134, 10, 0.2);
  padding: 3px 8px;
}

.pg-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 2vw, 22px);
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.pg-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1.5px;
}

.pg-meta i {
  color: #C8860A;
  margin-right: 4px;
}

.pg-tags {
  display: flex;
  flex-direction: row;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pg-tags span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
}

.pg-hover-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: #C8860A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-6px) translateX(6px);
  transition: all 0.3s ease;
  z-index: 3;
}

.pg-card:hover .pg-hover-arrow {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ─────────────────────────────────────────────
   6. CTA SECTION
───────────────────────────────────────────── */

.proj-cta {
  background: #06101E;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.proj-cta-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.proj-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.proj-cta-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(200, 134, 10, 0.7);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.proj-cta-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  text-transform: uppercase;
  letter-spacing: -2px;
  color: #fff;
  line-height: 0.95;
  margin: 0 0 24px;
}

.pct-outline {
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.4);
  color: transparent;
}

.proj-cta-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 48px;
}

.proj-cta-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.proj-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #C8860A;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease;
}

.proj-btn-primary:hover {
  background: #a06c05;
  color: #fff;
  text-decoration: none;
}

.proj-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.proj-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
}

/* ─────────────────────────────────────────────
   7. FOOTER EXTRAS
   (base .fse-footer defined in hero-02-kinetic.css)
───────────────────────────────────────────── */

.footer-top-border {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C8860A, transparent);
}

.footer-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-logo-icon {
  width: 44px;
  height: 44px;
  background: #C8860A;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-name {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  color: #fff;
}

.footer-logo-tag {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
}

.footer-about {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  margin: 0;
}

.footer-certs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-cert {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1.5px;
}

.footer-cert i {
  color: #C8860A;
  font-size: 11px;
}

.footer-socials {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  text-decoration: none;
  font-size: 14px;
}

.social-link:hover {
  border-color: #C8860A;
  color: #C8860A;
  text-decoration: none;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li a {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: #C8860A;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-list li {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.footer-contact-list li i {
  color: #C8860A;
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: #C8860A;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease;
  margin-top: 8px;
}

.footer-cta-btn:hover {
  background: #a06c05;
  color: #fff;
  text-decoration: none;
}

.footer-divider {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin: 60px 0 40px;
}

.footer-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.footer-divider-icon {
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.2);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-left,
.footer-bottom-right {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1.5px;
}

.footer-legal-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  letter-spacing: 1.5px;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: #C8860A;
}

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.15);
}

/* ─────────────────────────────────────────────
   8. BACK TO TOP
───────────────────────────────────────────── */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: #C8860A;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #a06c05;
}

/* ─────────────────────────────────────────────
   9. PROJECT PREVIEW OVERLAY
───────────────────────────────────────────── */

.proj-preview {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.proj-preview.active {
  opacity: 1;
  pointer-events: auto;
}

.proj-preview-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}

.proj-preview-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(6, 16, 30, 0.8) 100%
  );
}

.proj-preview-info {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 90%;
}

.pp-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: rgba(200, 134, 10, 0.8);
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid rgba(200, 134, 10, 0.3);
  padding: 5px 14px;
}

.pp-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -1.5px;
  margin: 0;
  line-height: 1;
}

.pp-location {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
}

/* ─────────────────────────────────────────────
   10. RESPONSIVE BREAKPOINTS
───────────────────────────────────────────── */

/* 1100px — grid becomes half/half */
@media (max-width: 1100px) {
  .pg-half {
    grid-column: span 6;
  }

  .pg-third {
    grid-column: span 3;
  }

  .pg-two-third {
    grid-column: span 3;
  }

  .pfc-number {
    font-size: 120px;
    right: 32px;
  }
}

/* 768px — mobile layout */
@media (max-width: 768px) {
  .pg-half,
  .pg-third,
  .pg-two-third {
    grid-column: span 6;
  }

  .proj-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: calc(var(--nav-h, 72px) + 48px);
    padding-bottom: 56px;
    gap: 40px;
  }

  .proj-header-left {
    max-width: 100%;
  }

  .proj-header-right {
    width: 100%;
  }

  .proj-count-card {
    width: 100%;
  }

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

  .pfc-content {
    padding: 32px;
  }

  .pfc-number {
    display: none;
  }

  .proj-featured-card {
    height: auto;
    min-height: 420px;
  }

  .pf-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .proj-cta {
    padding: 80px 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-left,
  .footer-bottom-right {
    flex-wrap: wrap;
  }

  .footer-divider {
    margin: 40px 0 28px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* 480px — small phones */
@media (max-width: 480px) {
  .proj-header-title {
    font-size: clamp(52px, 15vw, 72px);
    letter-spacing: -1.5px;
  }

  .proj-header-inner {
    padding-top: calc(var(--nav-h, 72px) + 32px);
    padding-bottom: 40px;
  }

  .proj-filter-bar {
    position: relative;
    top: 0;
  }

  .pcc-num {
    font-size: 32px;
  }

  .pfc-content {
    padding: 24px;
    gap: 12px;
  }

  .pfc-link {
    padding: 12px 20px;
    font-size: 11px;
  }

  .pg-item {
    min-height: 300px;
  }

  .pg-content {
    padding: 20px;
  }

  .proj-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .proj-btn-primary,
  .proj-btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
  }

  .proj-cta {
    padding: 64px 0;
  }

  .pf-filters {
    gap: 6px;
  }

  .pf-btn {
    padding: 7px 14px;
    font-size: 9px;
  }

  .proj-preview-info {
    bottom: 6%;
    width: 92%;
  }

  .pp-title {
    font-size: clamp(28px, 10vw, 48px);
  }
}

/* ─────────────────────────────────────────────
   PLACEHOLDER CARDS (no photo yet)
───────────────────────────────────────────── */

.pg-ph-wrap {
  background: var(--pg-grad, linear-gradient(135deg, #0E1A2B, #1a2e4a));
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-ph-label {
  position: relative;
  z-index: 0;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(197, 163, 92, 0.12);
  user-select: none;
  pointer-events: none;
}

.pfc-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pfc-placeholder-label {
  position: relative;
  z-index: 0;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(197, 163, 92, 0.10);
  user-select: none;
  pointer-events: none;
}
