:root {
  --buttermilk: #fff1b5;
  --pastelBlue: #c1dbe8;
  --oldBurgundy: #43302e;
  --ink: #111111;
  --paper: #f4f3ef;

  --font-display: "Space Grotesk", sans-serif;
  --font-sans: "Sora", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-hand: "Caveat", cursive;

  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.03"/%3E%3C/svg%3E');
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--oldBurgundy);
  line-height: 1.1;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
}
@media (min-width: 1024px) {
  section {
    padding: 10rem 0;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO */
.hero {
  min-height: 115vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 4rem;
  overflow: visible;
}
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 28vw;
  font-weight: 700;
  color: var(--oldBurgundy);
  opacity: 0.04;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.05em;
}
.hero-content {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--oldBurgundy);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin-bottom: 0;
  position: relative;
  z-index: 3;
  color: var(--oldBurgundy);
}
.handwriting {
  font-family: var(--font-hand);
  font-size: 1.2em;
  text-transform: none;
  font-weight: normal;
  letter-spacing: 0;
}
.hero-image-wrapper {
  position: absolute;
  bottom: -120px;
  left: 5%;
  transform: none;
  width: min(720px, 92vw);
  height: 90vh;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.hero-image {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom left;
}
.hero-annotations {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 4;
}
.annotation {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--oldBurgundy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.annotation svg {
  width: 40px;
  height: 40px;
  stroke-width: 1px;
}
.ann-2 {
  top: 45%;
  right: 10%;
}
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding-top: 80px;
  }
  .ann-2 {
    top: 32%;
    right: 5%;
  }
.hero-image-wrapper {
  height: 60vh;
  width: 100%;
  left: 0;
  justify-content: center;
  bottom: -2vh;
}
  .hero-image {
    object-position: bottom center;
  }
  .hero-content {
    top: 15%;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
}
.hero-cta {
  position: absolute;
  bottom: 2rem;
  z-index: 10;
  pointer-events: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background-color: var(--oldBurgundy);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  transition: all 0.3s ease;
  border: 1px solid var(--oldBurgundy);
}
.btn:hover {
  background-color: transparent;
  color: var(--oldBurgundy);
}

/* ABOUT */
.about {
  background-color: var(--paper);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 5fr 6fr;
    gap: 6rem;
  }
}
.about-text {
  position: relative;
  z-index: 2;
}
.about-note-hand {
  font-family: var(--font-hand);
  font-size: 2.5rem;
  color: var(--oldBurgundy);
  transform: rotate(-5deg);
  margin-bottom: 1rem;
  opacity: 0.8;
}
.about-text h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.about-paragraphs p {
  font-size: clamp(15px, 1.5vw, 18px);
  margin-bottom: 1.5rem;
  color: rgba(67, 48, 46, 0.8);
  font-weight: 300;
}
.about-image-container {
  position: relative;
  z-index: 1;
}
.about-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* STRENGTHS */
.strengths {
  background-color: var(--paper);
  padding-top: 2rem;
}
.section-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: center;
}
.strengths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) {
  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .strengths-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.strength-card {
  background: var(--oldBurgundy);
  color: var(--paper);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.strength-card:hover {
  transform: translateY(-5px);
}
.strength-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pastelBlue);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}
.strength-card h3 {
  color: var(--buttermilk);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.strength-card p {
  color: rgba(250, 250, 247, 0.8);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  font-weight: 300;
  flex-grow: 1;
}
.strength-metric {
  width: 100%;
  height: 4px;
  background: rgba(250, 250, 247, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: auto;
}
.metric-bar {
  height: 100%;
  background: var(--pastelBlue);
  border-radius: 2px;
}

/* ASSET SLOT */
.asset-slot {
  width: 100%;
  height: 100%;
  min-height: 100px;
  border: 1px dashed rgba(67, 48, 46, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(67, 48, 46, 0.02);
}
.asset-slot::after {
  content: attr(data-slot);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(67, 48, 46, 0.5);
}

/* PORTFOLIO */
.portfolio {
  background: var(--paper);
  overflow: hidden;
}
.portfolio-header {
  text-align: center;
  margin-bottom: 4rem;
}
.portfolio-header h2 {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.02em;
}
/* 
  Scoped to .video-carousel to avoid global resets.
  Safe to embed in any landing page.
*/
.video-carousel {
  --carousel-bg: var(--paper);
  --slide-width-desktop: 260px;
  --slide-width-mobile: 200px;
  --slide-gap: 24px;
  --center-scale: 1.15;
  --side-scale: 0.85;
  --transition-speed: 0.5s;
  
  width: 100%;
  background-color: var(--carousel-bg);
  padding: 80px 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none; /* Hide focus outline, rely on custom styles if needed */
  font-family: system-ui, -apple-system, sans-serif;
  touch-action: pan-y; /* Allow vertical scrolling, handle horizontal in JS */
}

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

.carousel-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1400px;
}

.carousel-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  /* Mask edges for a cleaner fade-out look on the sides */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
  display: flex;
  align-items: center;
  /* JS will set transform: translate3d(...) */
  will-change: transform;
}

.carousel-track.is-animating {
  transition: transform var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  flex: 0 0 var(--slide-width-desktop);
  width: var(--slide-width-desktop);
  aspect-ratio: 9 / 16;
  margin: 0 calc(var(--slide-gap) / 2);
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  transform: scale(var(--side-scale));
  opacity: 0.4;
  filter: blur(3px) grayscale(40%);
  transition: transform var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1),
              opacity var(--transition-speed) ease,
              filter var(--transition-speed) ease;
  will-change: transform, opacity, filter;
}

.carousel-slide.is-active {
  transform: scale(var(--center-scale));
  opacity: 1;
  filter: blur(0) grayscale(0%);
  z-index: 10;
  cursor: pointer;
}

.audio-toggle-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease;
  pointer-events: none;
}

.carousel-slide.is-active .audio-toggle-btn {
  opacity: 1;
}

/* The screen area that clips the video/poster */
.slide-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background-color: #000;
  /* Fix Safari border-radius clipping issue with transforms */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Media Content */
.slide-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.slide-poster {
  z-index: 1;
}

.slide-video {
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.carousel-slide.is-active .slide-video.is-playing {
  opacity: 1;
}

/* Navigation Buttons */
.nav-button {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
  margin: 0 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-button:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.nav-button:active {
  transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
  .video-carousel {
    --slide-width-desktop: var(--slide-width-mobile);
    --slide-gap: 16px;
    --center-scale: 1.1;
    --side-scale: 0.8;
    padding: 40px 0;
  }
  
  .nav-button {
    display: none; /* Hide arrows on mobile, rely on swipe */
  }
  
  .carousel-track-wrapper {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .video-carousel {
    --transition-speed: 0.1s;
    --center-scale: 1.05;
    --side-scale: 0.95;
  }
  
  .carousel-slide {
    filter: none;
    opacity: 0.6;
  }
  
  .carousel-slide.is-active {
    opacity: 1;
  }
}

/* LOGOS */
.logos {
  padding: 4rem 0;
  background: var(--paper);
  color: var(--oldBurgundy);
  overflow: hidden;
}
.logos-title {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 3rem;
  opacity: 0.7;
}

:root {
  --marquee-duration: 40s;
  --trusted-gap: 48px;
}

.trusted-by-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Mask edges for a seamless fade effect */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  touch-action: pan-y; /* Allow vertical scroll, handle horizontal in JS */
  cursor: grab;
  padding: 16px 0;
}

.trusted-by-marquee-wrapper:active {
  cursor: grabbing;
}

.trusted-by-marquee-track {
  display: flex;
  align-items: center;
  gap: var(--trusted-gap);
  list-style: none;
  padding: 0;
  margin: 0;
  width: max-content;
  will-change: transform;
}

.trusted-by-logo-item {
  flex-shrink: 0;
  height: 48px; /* Desktop height */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.trusted-by-logo-link {
  display: block;
  height: 100%;
  text-decoration: none;
  outline: none;
}

.trusted-by-logo-link:focus-visible .trusted-by-logo-img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.08);
  outline: 2px solid #333;
  outline-offset: 8px;
  border-radius: 4px;
}

.trusted-by-logo-img {
  height: 100%;
  width: auto;
  max-width: 180px; /* Prevent super-wide logos */
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none; /* Let the link/list-item handle hover */
}

/* Hover effects */
.trusted-by-logo-item:hover .trusted-by-logo-img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.08);
}

.trusted-by-logo-item:hover {
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08));
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .trusted-by-logo-item {
    height: 36px; /* Mobile height */
  }
  
  :root {
    --trusted-gap: 32px;
  }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .trusted-by-marquee-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    cursor: auto;
    mask-image: none;
    -webkit-mask-image: none;
    padding-bottom: 24px; /* Space for scrollbar */
  }
  
  .trusted-by-marquee-wrapper:active {
    cursor: auto;
  }
  
  .trusted-by-logo-item {
    scroll-snap-align: start;
  }
  
  /* Hide scrollbar for cleaner look but keep functionality */
  .trusted-by-marquee-wrapper::-webkit-scrollbar {
    height: 6px;
  }
  .trusted-by-marquee-wrapper::-webkit-scrollbar-track {
    background: transparent;
  }
  .trusted-by-marquee-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
  }
}

/* COOPERATION */
.cooperation {
  background: var(--pastelBlue);
  padding: 6rem 0;
  overflow: hidden;
}

.coop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

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

.coop-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 3rem;
  color: var(--oldBurgundy);
  letter-spacing: -0.02em;
}

.coop-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.coop-card {
  background: rgba(244, 243, 239, 0.6);
  padding: 1.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.coop-card:hover {
  transform: translateY(-5px);
  background: rgba(244, 243, 239, 0.9);
}

.coop-icon {
  width: 56px;
  height: 56px;
  background: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oldBurgundy);
  flex-shrink: 0;
}

.coop-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--oldBurgundy);
  text-transform: uppercase;
}

.coop-text p {
  font-size: 0.95rem;
  color: var(--oldBurgundy);
  opacity: 0.8;
}

.coop-image-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.coop-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Premium mobile spacing (mniejszy gap + bliżej obraz) */
@media (max-width: 768px) {
  .cooperation {
    padding: 1.75rem 0; /* premium: było 6rem */
  }

  .coop-grid {
    gap: 1rem; /* premium: było 4rem */
  }

  .coop-title {
    margin-bottom: 1.5rem; /* mniej oddechu nad kartami */
  }

  .coop-cards {
    gap: 1rem; /* delikatnie ciaśniej na mobile */
  }

  .coop-image-wrapper {
    margin-top: -5rem; /* dociąga etapy.webp bliżej treści */
  }
}

/* CONTACT */
.contact {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.contact h2 {
  font-size: clamp(3rem, 8vw, 8rem);
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.contact-email {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--oldBurgundy);
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.contact-email::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--oldBurgundy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* PORTFOLIO ARROWS */
.portfolio-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--paper);
  border: 1px solid var(--oldBurgundy);
  color: var(--oldBurgundy);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
}
.portfolio-arrow:hover {
  background: var(--oldBurgundy);
  color: var(--paper);
}
.prev-arrow {
  left: 10%;
}
.next-arrow {
  right: 10%;
}
@media (max-width: 1024px) {
  .prev-arrow {
    left: 5%;
  }
  .next-arrow {
    right: 5%;
  }
}
@media (max-width: 768px) {
  .prev-arrow {
    left: 2%;
  }
  .next-arrow {
    right: 2%;
  }
}

/* FOOTER */
.site-footer {
  /* Colors & Typography */
  background-color: #f4f3ef;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout & Sizing */
  width: 100%;
  height: clamp(140px, 15vw, 180px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  
  /* Prevent large watermark from causing horizontal scrollbars */
  overflow: hidden; 
}

.site-footer__container {
  /* Comfortable left padding that scales down on mobile */
  padding-left: clamp(24px, 5vw, 80px);
  padding-right: clamp(24px, 5vw, 80px);
  box-sizing: border-box;
}

.site-footer__content {
  /* Creates a positioning context for the absolute watermark */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer__watermark {
  /* Centered exactly behind the text */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  /* Responsive sizing: large enough to be a stamp, caps at 640px */
  width: clamp(280px, 60vw, 640px);
  height: clamp(140px, 30vw, 320px);
  
  /* SVG Background */
  background-image: url('/assets/9seo.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  
  /* Visual style */
  opacity: 0.06;
  z-index: 0;
  
  /* Prevent capturing clicks intended for the link */
  pointer-events: none;
}

.site-footer__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.5;
  
  /* Prefer single line, but will wrap on extremely narrow screens if necessary */
  white-space: nowrap;
}

.site-footer__text-light {
  /* Softer gray-blue for lower emphasis */
  color: #64748b; 
  font-weight: 400;
}

.site-footer__link {
  /* Darker, bold, highest emphasis */
  color: #0f172a; 
  font-weight: 700;
  text-decoration: none;
  margin: 0 0.25em;
  
  /* Smooth transitions for hover/focus states */
  transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer__link:hover {
  /* Subtle underline and slight opacity change */
  text-decoration-color: #0f172a;
  opacity: 0.8;
}

.site-footer__link:focus-visible {
  /* Accessible focus outline */
  outline: 2px solid #0f172a;
  outline-offset: 4px;
  border-radius: 2px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--oldBurgundy);
  color: var(--paper);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.social-link:hover {
  transform: translateY(-3px);
  background-color: rgba(67, 48, 46, 0.8);
}
.social-link svg {
  width: 20px;
  height: 20px;
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--oldBurgundy);
  color: var(--paper);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: rgba(67, 48, 46, 0.8);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
  }
}
