/* ==========================================================================
   Naumann Interior Design – Onepager Styles
   ========================================================================== */

:root {
  /* Brand palette (from mockup) */
  --color-gold: #c4a574;
  --color-gold-hover: #b3905e;
  --color-charcoal: #1a1a1a;
  --color-dark: #222222;
  --color-dark-soft: #2c2c2c;
  --color-cream: #f3f0eb;
  --color-beige: #ebe6de;
  --color-warm-white: #faf8f5;
  --color-text: #1c1c1c;
  --color-text-muted: #5c5c5c;
  --color-white: #ffffff;
  --color-border: rgba(196, 165, 116, 0.35);

  /* Typography */
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;

  /* Layout */
  --header-height: 5rem;
  --container: 72rem;
  --section-space: clamp(4.5rem, 8vw, 7.5rem);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-warm-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-gold);
  color: var(--color-white);
  font-size: 0.9rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(100% - 2.5rem, var(--container));
  height: 100%;
  margin-inline: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.15rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.lang-switch-btn:hover,
.lang-switch-btn:focus-visible {
  color: var(--color-white);
}

.lang-switch-btn.is-active {
  color: var(--color-gold);
}

.lang-switch-icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0.15rem;
  color: rgba(255, 255, 255, 0.7);
}

.lang-switch-divider {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--color-white);
}

.logo-tag {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.175em;
  color: var(--color-gold);
}

.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.primary-nav a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: var(--color-white);
}

.primary-nav a.is-active::after,
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--color-white);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    transform 0.3s var(--ease);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-lg {
  padding: 1.1rem 1.75rem;
  width: 100%;
  max-width: 22rem;
}

.btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.btn-arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 0.2rem;
  width: fit-content;
  transition: color 0.25s ease, gap 0.25s var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--color-gold);
  gap: 0.75rem;
}

.text-link--mobile {
  display: none;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 14, 14, 0.92) 0%,
    rgba(14, 14, 14, 0.82) 28%,
    rgba(14, 14, 14, 0.45) 48%,
    rgba(14, 14, 14, 0.18) 68%,
    rgba(14, 14, 14, 0.08) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding-block: calc(var(--header-height) + 4rem) 5rem;
  max-width: 36rem;
  margin-left: max(1.25rem, calc((100% - var(--container)) / 2));
  animation: heroFade 1.1s var(--ease) both;
}

.hero h1 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 1.5rem 0 2.4rem;
  max-width: 26rem;
  font-size: 1.02rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Sections shared
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-space);
}

/* Faster first paint: below-the-fold sections skip layout until near viewport */
.benefits,
.projects,
.materials,
.process,
.cta,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.section-label {
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.section-intro {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  background: var(--color-warm-white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-portrait {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 250px;
  width: auto;
  max-width: 200px;
  background: var(--color-beige);
}

.about-portrait picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.8s var(--ease);
}

.about-portrait:hover img {
  transform: scale(1.03);
}

.about-content h2 {
  margin-bottom: 1.4rem;
}

.about-text {
  max-width: 32rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */

.benefits {
  background: var(--color-cream);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}

.benefit-card {
  text-align: left;
}

.benefit-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.15rem;
  color: var(--color-gold);
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
}

.benefit-icon--img {
  background-color: var(--color-gold);
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.benefit-card h3 {
  margin-bottom: 0.55rem;
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 16rem;
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */

.projects {
  background: var(--color-warm-white);
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.project-item {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-beige);
}

.project-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project-item:hover img {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   Materials
   -------------------------------------------------------------------------- */

.materials {
  background: var(--color-beige);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.material-card {
  background: var(--color-warm-white);
  padding: 1.25rem 1.25rem 1.6rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.material-swatch {
  aspect-ratio: 16 / 10;
  margin-bottom: 1.15rem;
  border-radius: var(--radius);
}

.material-swatch--cement {
  background: linear-gradient(145deg, #cfc8bd, #a89f92 45%, #8f877c);
}

.material-swatch--lime {
  background: linear-gradient(145deg, #e8e1d4, #d4c8b4 50%, #bfb19a);
}

.material-swatch--clay {
  background: linear-gradient(145deg, #d9cfc2, #c4b09a 50%, #a89278);
}

.material-swatch--stone {
  background: linear-gradient(145deg, #b8b4ad, #8f8a83 50%, #6e6a64);
}

.material-card h3 {
  margin-bottom: 0.45rem;
}

.material-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.process {
  background: var(--color-warm-white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.process-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-gold);
  line-height: 1;
}

.process-line {
  width: 100%;
  height: 1px;
  margin: 1rem 0 1.25rem;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.process-step h3 {
  margin-bottom: 0.65rem;
}

.process-step p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 16rem;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  background: var(--color-charcoal);
  color: var(--color-white);
  overflow: hidden;
  padding-block: clamp(4rem, 7vw, 6rem);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(196, 165, 116, 0.08), transparent 55%),
    linear-gradient(90deg, #1a1a1a 0%, #1a1a1a 55%, #1f1f1f 100%);
}

.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.7fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.cta-content h2 {
  font-weight: 500;
}

.cta-content h2 {
  margin-bottom: 1rem;
  max-width: 14ch;
}

.cta-content p {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.7);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}

.cta-visual {
  justify-self: end;
  width: min(100%, 16rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.cta-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.cta-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #121212;
  color: rgba(255, 255, 255, 0.72);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-heading {
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
}

.site-footer ul {
  display: grid;
  gap: 0.55rem;
}

.site-footer a {
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-gold);
}

.social-link {
  display: inline-flex;
  margin-top: 1.1rem;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--color-white);
}

.social-link svg {
  width: 100%;
  height: 100%;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.25rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Scroll to top
   -------------------------------------------------------------------------- */

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease),
    visibility 0.35s ease, background 0.25s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--color-gold-hover);
}

.scroll-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

.scroll-top[hidden] {
  display: none;
}

.scroll-top:not([hidden]) {
  display: grid;
}

/* --------------------------------------------------------------------------
   Legal pages (Impressum etc.)
   -------------------------------------------------------------------------- */

.page-legal .site-header {
  background: rgba(250, 248, 245, 0.96);
}

.legal-main {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: var(--section-space);
  background: var(--color-warm-white);
  min-height: 70vh;
}

.legal-article {
  max-width: 42rem;
}

.legal-header {
  margin-bottom: 2.75rem;
}

.legal-header h1 {
  margin-bottom: 0.85rem;
}

.legal-intro {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.legal-block {
  margin-bottom: 2rem;
}

.legal-block h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.legal-block p,
.legal-block address {
  font-style: normal;
  color: var(--color-text);
  line-height: 1.75;
}

.legal-block a {
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.legal-block a:hover,
.legal-block a:focus-visible {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.legal-article .text-link {
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Desktop: schwarze Menüschrift + heller Header für Lesbarkeit */
@media (min-width: 901px) {
  .site-header {
    background: rgba(250, 248, 245, 0.88);
    backdrop-filter: blur(12px);
  }

  .site-header.is-scrolled {
    background: rgba(250, 248, 245, 0.96);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  }

  .site-header .logo-name {
    color: var(--color-charcoal);
  }

  .primary-nav a {
    color: #1c1c1c;
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible,
  .primary-nav a.is-active {
    color: #000000;
  }

  .lang-switch-btn {
    color: rgba(28, 28, 28, 0.45);
  }

  .lang-switch-btn:hover,
  .lang-switch-btn:focus-visible {
    color: var(--color-charcoal);
  }

  .lang-switch-btn.is-active {
    color: var(--color-gold);
  }

  .lang-switch-icon {
    color: rgba(28, 28, 28, 0.65);
  }

  .lang-switch-divider {
    color: rgba(28, 28, 28, 0.3);
  }
}

@media (max-width: 1100px) {
  .projects-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-item:nth-child(4),
  .project-item:nth-child(5) {
    grid-column: span 1;
  }

  .cta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-visual {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: stretch;
    height: 100%;
    max-height: 28rem;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    background: rgba(18, 18, 18, 0.97);
    backdrop-filter: blur(12px);
    padding: 1.25rem 1.5rem 1.75rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s ease,
      visibility 0.35s ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .primary-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-portrait {
    max-height: 250px;
    max-width: 200px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }

  .section-header--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .text-link--desktop {
    display: none;
  }

  .text-link--mobile {
    display: inline-flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 4.25rem;
  }

  .hero-content {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(18, 18, 18, 0.55) 0%,
      rgba(18, 18, 18, 0.72) 45%,
      rgba(18, 18, 18, 0.88) 100%
    );
  }

  .benefits-grid,
  .materials-grid,
  .process-steps,
  .projects-gallery,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .projects-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .project-item:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .cta-visual {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
    width: min(100%, 14rem);
    max-height: none;
  }

  .cta-actions {
    align-items: stretch;
  }

  .btn-lg {
    max-width: none;
  }

  .cta-content h2 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-content,
  .project-item img,
  .about-portrait img,
  .btn,
  .scroll-top {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
