/* Brand Colors */
:root {
  --color-beige: #feeddf;
  --color-red: #b60d0e;
  --color-white: #ffffff;
  --color-black: #000000;
}

@font-face {
  font-family: "Saint Canard";
  src: url("./fonts/saint-canard-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeneralSans";
  src: url("./fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeneralSans";
  src: url("./fonts/GeneralSans-VariableItalic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

/* Brand Color Utility Classes */
.bg-beige {
  background-color: var(--color-beige);
}

.bg-red {
  background-color: var(--color-red);
}

.bg-white {
  background-color: var(--color-white);
}

.bg-black {
  background-color: var(--color-black);
}

.text-beige {
  color: var(--color-beige);
}

.text-red {
  color: var(--color-red);
}

.text-white {
  color: var(--color-white);
}

.text-black {
  color: var(--color-black);
}

.saint-canard {
  font-family: "Saint Canard", sans-serif;
}

.general-sans {
  font-family: "GeneralSans", sans-serif;
}

.hero-logo {
  margin-left: clamp(1rem, 5vw, 4rem);
}

.font-black {
  font-variation-settings: "wght" 900;
}

.font-medium {
  font-variation-settings: "wght" 500;
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: scroll 20s linear infinite;
}

.marquee-text {
  display: inline-block;
  font-family: "Saint Canard", sans-serif;
  font-variation-settings: "wght" 900;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  white-space: nowrap;
}

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

/* --- Accordion Styles --- */
.panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition: grid-template-rows 360ms cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 280ms ease;
  contain: layout paint;
}
.panel.open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.panel > .reveal {
  overflow: hidden;
}

.accordion-title {
  contain: paint;
}

.mini-fade {
  transition: opacity 0.2s ease;
  opacity: 0;
}
.group:hover .mini-fade {
  opacity: 1;
}

/* --- Projects Carousel Styles --- */
.projects-carousel {
  min-height: 300px;
}

.projects-track {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.projects-container {
  will-change: transform;
  display: flex;
}

.project-card {
  flex-shrink: 0;
  padding: 2rem 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .project-card {
    padding: 3rem 0;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

@media (min-width: 768px) {
  .project-content {
    gap: 1.5rem;
  }
}

.project-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .project-image-wrapper {
    width: 45%;
    max-width: 500px;
  }
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-company {
  font-family: "Saint Canard", sans-serif;
  font-variation-settings: "wght" 900;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.85;
  margin-bottom: -0.75rem;
}

.project-sub {
  font-family: "GeneralSans", sans-serif;
  font-variation-settings: "wght" 500;
  /* font-size: clamp(1rem, 1.5vw, 1.25rem); */
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.project-section-header {
  font-family: "Saint Canard", sans-serif;
  font-variation-settings: "wght" 300;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  text-transform: uppercase;
  /* opacity: 0.5; */
  letter-spacing: 0.05em;
  margin-bottom: -0.25rem;
}

.project-actions {
  font-family: "GeneralSans", sans-serif;
  font-variation-settings: "wght" 600;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
}

.project-effect {
  font-family: "GeneralSans", sans-serif;
  font-variation-settings: "wght" 600;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
}

.projects-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-red);
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: none;
  padding: 0;
}

.projects-dot:hover {
  opacity: 0.6;
  transform: scale(1.2);
}

.projects-dot.active {
  opacity: 1;
  transform: scale(1.3);
}

.projects-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Animated exclamation mark styling */
.animated-exclamation {
  display: inline-block;
  transition: font-family 0.1s ease;
  /* font-variation-settings is set dynamically via JavaScript */
  box-sizing: border-box;

  /* ADJUST THESE VALUES FOR POSITIONING: */
  width: 0.6em; /* Horizontal size - increase/decrease to make wider/narrower */
  min-width: 0.6em;
  /* max-width: 0.8em; */
  height: 1em; /* Vertical size - increase/decrease to make taller/shorter */
  min-height: 1em;
  max-height: 1em;
  line-height: 1em;
  vertical-align: middle; /* Vertical position: middle, baseline, text-top, text-bottom, top, bottom */
  /* Fine positioning: translate(x, y) - first value is horizontal, second is vertical */
  /* Scale multiplier for font size adjustment */
  --exclamation-translate-x: -0.2em;
  --exclamation-translate-y: -0.08em;
  --exclamation-scale: 1;
  transform: scale(var(--exclamation-scale))
    translate(var(--exclamation-translate-x), var(--exclamation-translate-y));
  transform-origin: center center;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
  font-size: inherit;
}
