@import url("https://fonts.googleapis.com/css2?family=Overpass:wght@500;600;700;800&display=swap");

/* PSL Facades — design tokens */
:root {
  --color-bg: #000000;
  --color-bg-elevated: #121212;
  --color-accent: #b31b1b;
  --color-text: #ffffff;
  --color-muted: #a8a8a8;
  --color-cta: #d4d4d4;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  animation: page-enter 0.5s var(--ease) both;
}

body.is-page-leaving {
  animation: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 101;
}

.logo-link:hover {
  text-decoration: none;
  opacity: 0.92;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.logo-img--footer {
  height: 72px;
  max-width: 260px;
}

.logo-img--about {
  height: 96px;
  max-width: 220px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a {
  color: #fff;
  text-decoration: none;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s var(--ease);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

.nav-list a:hover {
  text-decoration: none;
}

.nav-list a.is-current::after {
  width: 100%;
}

.nav-list a.is-current {
  color: #fff;
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
    max-width: 150px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    font-size: 1.25rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 2rem) 1.5rem 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Swap to ../assets/psl-mockup-reference.png or your own photography */
  background-image: url("https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1920&q=85");
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: right;
  margin-left: auto;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  background: var(--color-cta);
  color: #111;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-cta-arrow {
  color: var(--color-accent);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.btn-cta:hover .btn-cta-arrow {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .hero {
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 4rem;
  }

  .hero-content {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
  }
}

/* Inner pages: fixed header bar */
body:not([data-nav="home"]) .site-header {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.main-inner {
  padding-top: var(--header-h);
}

/* Page hero (subpages) */
.page-hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 2rem 1.5rem 3rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1600&q=80");
  background-size: cover;
  background-position: center 40%;
  filter: blur(1px) brightness(0.35);
  transform: scale(1.02);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb span[aria-hidden="true"] {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.page-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-hero-lead {
  margin: 0;
  max-width: 520px;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

/* Home statistics (between hero and teasers) */
.home-stats {
  padding: 2.5rem 0 2.75rem;
  background: var(--color-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1rem;
  text-align: center;
}

.home-stat {
  padding: 0.5rem 0.35rem;
}

.home-stat-value {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 32px rgba(179, 27, 27, 0.45);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.home-stat-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1.35;
}

@media (max-width: 768px) {
  .home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
  }
}

/* Home teaser cards */
.home-teasers {
  background: var(--color-bg-elevated);
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.teaser-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.teaser-card:hover {
  transform: translateY(-4px);
  border-color: rgba(179, 27, 27, 0.4);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.teaser-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.teaser-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.teaser-card-text {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-muted);
  flex-grow: 1;
}

.teaser-card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.teaser-card:hover .teaser-card-cta {
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .teaser-grid {
    grid-template-columns: 1fr;
  }
}

.btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-cta-outline .btn-cta-arrow {
  color: var(--color-accent);
}

.about-cta-row,
.services-outro,
.projects-outro {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

.about-page .about-cta-row {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.services-outro,
.projects-outro {
  justify-content: flex-start;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

.section .inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 3.5rem;
}

.section-title-muted {
  color: #fff;
  margin-right: 0.35em;
}

.section-title-accent {
  color: var(--color-accent);
}

.section-title-left {
  text-align: left;
  margin-bottom: 1.5rem;
}

.section-title-left .section-title-muted {
  color: var(--color-muted);
}

.section-title-left .section-title-accent {
  color: #fff;
}

/* About */
.about {
  background: var(--color-bg);
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
}

.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.about-col {
  position: relative;
}

/* Large “About” watermark layered behind the lead line (reference layout) */
.about-head-stack {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 1.5rem;
  min-height: clamp(6.75rem, 19vw, 10rem);
}

.about-head-stack .about-watermark {
  position: absolute;
  left: -0.06em;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-family: "Overpass", var(--font);
  font-size: clamp(4rem, 13.5vw, 9rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.about-subhead-lead {
  position: relative;
  z-index: 1;
  max-width: 36ch;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  line-height: 1.4;
  font-weight: 700;
  color: #fff;
  /* Foreground line sits over the watermark; “We” starts just past the “A” */
  padding-left: clamp(0.35rem, 1.2vw, 0.65rem);
}

.about-col-left > p {
  position: relative;
  z-index: 1;
}

.about-divider {
  width: 1px;
  min-height: 280px;
  background: rgba(255, 255, 255, 0.25);
  align-self: stretch;
  margin-top: 0.5rem;
}

.about-subhead {
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.about-subhead.about-subhead-lead {
  margin: 0;
}

.about-col-right .about-subhead {
  margin-top: 0;
  font-size: 1.15rem;
}

.about-col p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.spec-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  font-weight: 400;
}

.spec-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  margin-top: 0.45em;
}

.about-logo-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.5rem;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-divider {
    width: 100%;
    height: 1px;
    min-height: 0;
    margin: 1rem 0;
  }

  .about-logo-side {
    flex-direction: row;
    align-items: center;
  }
}

/* Projects */
.projects {
  background: var(--color-bg-elevated);
}

.projects-intro {
  max-width: 560px;
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0 0 2.5rem;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(179, 27, 27, 0.35);
}

.project-card-media-wrap {
  position: relative;
}

.project-card-media {
  aspect-ratio: 4 / 3;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
}

.project-card-date {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  margin: 0;
  padding: 0.4rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.project-card h3,
.project-card .project-card-heading {
  margin: 0;
  padding: 1.25rem 1.25rem 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.project-card p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  font-weight: 400;
}

.projects-page .project-cards {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .project-cards {
    grid-template-columns: 1fr;
  }

  .projects-page .project-cards {
    grid-template-columns: 1fr;
  }
}

/* Services */
.services {
  background: var(--color-bg);
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
}

.services-list li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.05rem;
  font-weight: 500;
}

.services-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.services-list-page li {
  align-items: flex-start;
  gap: 1.5rem;
}

.services-item-body {
  flex: 1;
  min-width: 0;
}

.services-item-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.services-item-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.6;
}

.services-capabilities {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 640px;
}

.services-page {
  background: var(--color-bg-elevated);
}

/* Contact */
.contact-section {
  background: var(--color-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.contact-form-title,
.contact-aside-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-form-note {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}

.form-row--captcha {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.captcha-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}

.form-row--captcha .h-captcha {
  min-height: 5.5rem;
}

.form-row .optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-muted);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-cta-submit {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  margin-top: 0.25rem;
}

.form-feedback {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-muted);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.form-feedback[hidden] {
  display: none;
}

.form-feedback.is-success {
  color: #b8e6c8;
  border-color: rgba(125, 206, 160, 0.45);
  background: linear-gradient(135deg, rgba(46, 125, 80, 0.22) 0%, rgba(20, 60, 40, 0.35) 100%);
  box-shadow: 0 0 0 1px rgba(125, 206, 160, 0.12) inset;
}

.form-feedback.is-error {
  color: #f5c0b8;
  border-color: rgba(241, 148, 138, 0.45);
  background: linear-gradient(135deg, rgba(150, 50, 45, 0.25) 0%, rgba(60, 25, 25, 0.4) 100%);
  box-shadow: 0 0 0 1px rgba(241, 148, 138, 0.1) inset;
}

.contact-aside {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.contact-details {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.contact-details li {
  margin-bottom: 1.25rem;
}

.contact-details-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.contact-details a {
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.contact-details-block {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.contact-aside-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background: #161616;
  padding: 4rem 1.5rem 2rem;
}

.footer-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.logo-footer {
  text-decoration: none;
}

.logo-footer:hover {
  text-decoration: none;
  opacity: 0.92;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer-col p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-social,
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.footer-nav li {
  margin-bottom: 0.65rem;
}

.footer-social li {
  margin-bottom: 0;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-social-link:hover {
  background: rgba(179, 27, 27, 0.28);
  color: #fff;
  text-decoration: none;
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.footer-social-icon {
  display: block;
  flex-shrink: 0;
}

.footer-nav a {
  font-size: 0.9rem;
}

.footer-address {
  line-height: 1.55;
  max-width: 280px;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  margin-top: 0;
}

.footer-designer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-designer-label {
  font-family: "Overpass", var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.footer-designer-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s var(--ease);
}

.footer-designer-link:hover {
  opacity: 0.9;
}

.footer-designer-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.footer-designer-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-copy {
  text-align: center;
  margin: 0;
  padding-top: 0;
  border-top: none;
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 400;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-address {
    max-width: none;
  }
}

/* Back to top */
.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s,
    background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.scroll-top.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: rgba(179, 27, 27, 0.5);
  border-color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

.scroll-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.scroll-top__icon {
  display: block;
  margin-top: 2px;
}

@media (max-width: 520px) {
  .scroll-top {
    right: 1rem;
    bottom: 1rem;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.18s;
}

.reveal-delay-3 {
  transition-delay: 0.26s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    animation: none;
    opacity: 1;
    transform: none;
  }

  body.is-page-leaving {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-cta:hover,
  .project-card:hover,
  .teaser-card:hover {
    transform: none;
  }

  .btn-cta-arrow {
    transition: none;
  }

  .scroll-top {
    transition: none;
  }
}
