:root {
  --atelier-bg: #f5f2ec;
  --atelier-accent: #c8491a;
  --atelier-dark: #1a1a1a;
  --atelier-gray: #71717a;
  --atelier-border: #dadad6;
}

body {
  background-color: var(--atelier-bg);
  color: var(--atelier-dark);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

::selection {
  background-color: #ffedd5;
}

h1, h2, h3, .serif-text {
  font-family: 'Newsreader', serif;
  margin: 0;
}

.italic {
  font-style: italic;
}

.accent-text {
  color: var(--atelier-accent);
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* Navigation */

.nav-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem;
  background-color: rgba(245, 242, 236, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

@media (min-width: 768px) {
  .nav-custom {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.nav-logo {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--atelier-accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--atelier-dark);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.6;
}

.nav-link-active {
  border-bottom: 1px solid var(--atelier-dark);
}

/* Header */

.header-custom {
  padding-top: 8rem;
  padding-bottom: 4rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  text-align: center;
}

.header-subtitle {
  font-size: 10px;
  letter-spacing: 0.3em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--atelier-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.header-title {
  font-size: 4.5rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .header-title {
    font-size: 8rem;
  }
}

/* Main Container */

.main-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 6rem;
}

/* Feature Case Study */

.feature-group {
  margin-bottom: 6rem;
}

.feature-img-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 21 / 9;
  background-color: #e5e5e5;
}

.case-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #000;
  color: #fff;
  font-size: 9px;
  padding: 0.25rem 0.5rem;
  z-index: 10;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.img-grayscale {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.7s ease;
}

.feature-group:hover .img-grayscale {
  filter: grayscale(0%);
}

@media (min-width: 768px) {
  .flex-md-row {
    flex-direction: row;
  }
}

.max-w-2xl {
  max-width: 42rem;
}

.title-4xl {
  font-size: 2.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .title-4xl {
    font-size: 3rem;
  }
}

.text-sm-custom {
  color: var(--atelier-gray);
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.tag-badge {
  font-size: 9px;
  text-transform: uppercase;
  border: 1px solid var(--atelier-border);
  padding: 0.25rem 0.75rem;
  letter-spacing: -0.05em;
}

.year-label {
  color: var(--atelier-border);
  font-size: 0.75rem;
  font-family: monospace;
  padding-top: 0.5rem;
}

/* Small Grid */

.grid-custom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .grid-custom {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-custom {
    gap: 4rem;
  }
}

.small-group {
  display: block;
}

.small-img-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 1 / 1;
}

.bg-f0 {
  background-color: #f0f0f0;
}

.bg-ec {
  background-color: #ecebe7;
}

.img-scale {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.small-group:hover .img-scale {
  transform: scale(1.05);
}

.title-3xl {
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.text-xs-gray {
  color: var(--atelier-gray);
  font-size: 0.75rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
  max-width: 24rem;
  margin-top: 0;
}

.year-label-small {
  color: var(--atelier-border);
  font-size: 10px;
  font-family: monospace;
  padding-top: 0.5rem;
}

/* CTA Section */

.cta-section {
  background-color: #f0ede6;
  padding: 8rem 1.5rem;
}

.cta-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

@media (min-width: 768px) {
  .cta-container {
    flex-direction: row;
  }
}

.cta-content {
  max-width: 36rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-content {
    text-align: left;
  }
}

.cta-title {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 4.5rem;
  }
}

.btn-black {
  display: inline-block;
  background-color: #000;
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 1.25rem 3rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-black:hover {
  background-color: var(--atelier-accent);
}

/* Animated SVG Container */

.svg-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(200, 73, 26, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
  .svg-container {
    width: 450px;
  }
}

.svg-inner {
  width: 6rem;
  height: 6rem;
}

.bar {
  fill: #c8491a;
  animation: sound-wave 1s infinite ease-in-out;
}

.bar:nth-child(2) {
  animation-delay: 0.1s;
}

.bar:nth-child(3) {
  animation-delay: 0.2s;
}

.bar:nth-child(4) {
  animation-delay: 0.3s;
}

.bar:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes sound-wave {
  0%, 100% {
    height: 20%;
    y: 40%;
  }
  50% {
    height: 60%;
    y: 20%;
  }
}

/* Footer */

.footer-custom {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--atelier-border);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background-color: var(--atelier-bg);
}

@media (min-width: 768px) {
  .footer-custom {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.footer-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
  }
}

.footer-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--atelier-gray);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links a {
  color: var(--atelier-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--atelier-accent);
}

