/* ═══════════════════════════════════════════════════════ */
/* COMPONENTS — Header, Buttons, Cards, Footer            */
/* ═══════════════════════════════════════════════════════ */

/* ─── Site Header ─── */

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-padding);
  pointer-events: none;
  background: transparent;
  transition: padding 0.4s var(--ease-out-expo);
}

.site-header > * {
  pointer-events: auto;
}

.site-logo-link {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
  transition: all 0.4s var(--ease-out-expo);
}

.header-cta-link {
  display: inline-flex;
  padding: 4px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
  transition: all 0.4s var(--ease-out-expo);
}

/* ─── Apple Dynamic Island Scrolled State ─── */

.site-header.scrolled .site-logo-link {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.site-header.scrolled .header-cta-link {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.site-logo-link:hover,
.header-cta-link:hover {
  transform: translateY(-2px) scale(1.02);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Real logo image — replaces the placeholder SVG + text */
.site-logo-img {
  display: block;
  height: 36px;   /* fits neatly inside the header pill */
  width: auto;    /* preserves the logo's natural aspect ratio */
  object-fit: contain;
}

.logo-bag {
  width: 28px;
  height: auto;
}

.logo-text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* ─── Buttons ─── */

.button-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.btn-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: background 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-pill:hover {
  background: #f5f5f5;
}

.btn-pill--icon {
  padding: 8px 12px;
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-pill__text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pill__icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.btn-pill__icon--forward {
  width: 18px;
  height: 18px;
}

/* ─── CTA Button (marquee) ─── */

.btn-cta {
  border-radius: 50px;
}

.btn-cta .btn-pill {
  border: 1px solid rgba(0,0,0,0.08);
}

.btn-pill__marquee {
  overflow: hidden;
  max-width: 120px;
  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);
}

.btn-pill__marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 8s linear infinite;
}

.btn-pill__marquee-group {
  display: flex;
  flex-shrink: 0;
}

.btn-pill__marquee-unit {
  flex-shrink: 0;
}

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

.btn-pill__marquee-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.btn-cta__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

/* ─── Dark Button ─── */

.btn-dark .btn-pill {
  background: var(--color-black);
  color: var(--color-white);
  border-color: transparent;
}

.btn-dark .btn-pill:hover {
  background: #1a2428;
}

.btn-dark .btn-pill--icon {
  background: var(--color-black);
  color: var(--color-white);
}

/* ─── Light Button (footer) ─── */

.btn-light .btn-pill {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* ─── Smooth Initial Page Load ─── */
body {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

body.page-loaded {
  opacity: 1;
}

/* ─── Hero Grid Cards ─── */

.hero-grid-card {
  background-color: #121a1d;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  will-change: transform;
}

.hero-grid-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: subtleShimmer 2s infinite linear;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero-grid-card.is-loaded::before {
  opacity: 0;
}

@keyframes subtleShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hero-grid-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.03);
  transition: opacity 0.5s ease-out, filter 0.5s ease-out, transform 0.5s var(--ease-out-expo);
}

.hero-grid-card img.is-loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.hero-grid-card:hover img.is-loaded {
  transform: scale(1.05);
}

/* ─── Carousel Cards ─── */

.carousel-card {
  flex-shrink: 0;
  width: 360px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out-expo);
  background: var(--card-bg, #ddd);
  color: var(--card-fg, #000);
  text-align: left;
  padding: 0;
}

.carousel-card:hover {
  transform: scale(1.02) translateY(-4px);
}

.carousel-card-shell {
  height: 100%;
}

.carousel-card-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  position: relative;
}

.carousel-card-inner--article {
  justify-content: space-between;
}

.carousel-card-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  white-space: nowrap;
  pointer-events: none;
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 800;
  color: var(--card-fg, currentColor);
}

.carousel-card-heading {
  padding-top: 60px;
  color: var(--card-fg, currentColor);
}

/* ─── Carousel Card Media ─── */

.carousel-card-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  position: relative;
}

.carousel-card-media--stack {
  display: grid;
  place-items: center;
}

.carousel-card-stack-img {
  grid-area: 1 / 1;
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.5s var(--ease-out-expo);
}

.carousel-card-stack-img:nth-child(1) {
  transform: rotate(var(--media-rotation, 0deg)) translateY(-8px);
  z-index: 3;
}

.carousel-card-stack-img:nth-child(2) {
  transform: rotate(calc(var(--media-rotation, 0deg) * -0.5)) translate(12px, 4px);
  z-index: 2;
}

.carousel-card-stack-img:nth-child(3) {
  transform: rotate(calc(var(--media-rotation, 0deg) * 0.3)) translate(-8px, 12px);
  z-index: 1;
}

.carousel-card:hover .carousel-card-stack-img:nth-child(1) {
  transform: rotate(calc(var(--media-rotation, 0deg) * 1.3)) translateY(-14px) scale(1.02);
}

.carousel-card:hover .carousel-card-stack-img:nth-child(2) {
  transform: rotate(calc(var(--media-rotation, 0deg) * -0.8)) translate(18px, 6px) scale(0.98);
}

.carousel-card:hover .carousel-card-stack-img:nth-child(3) {
  transform: rotate(calc(var(--media-rotation, 0deg) * 0.5)) translate(-14px, 16px) scale(0.96);
}

.carousel-card-media--single {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-card-media-frame {
  position: relative;
  width: 240px;
  overflow: hidden;
  border-radius: 16px;
  transform: rotate(var(--media-rotation, 0deg));
  transition: transform 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.carousel-card:hover .carousel-card-media-frame {
  transform: rotate(calc(var(--media-rotation, 0deg) * 0.5)) scale(1.03);
}

.carousel-card-media-img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-card-play-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--card-fg, currentColor);
  opacity: 0.8;
}

.carousel-card-play-label svg {
  width: 14px;
  height: 14px;
}

/* ─── Carousel Card Footer ─── */

.carousel-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 16px;
  color: var(--card-footer-fg, currentColor);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.carousel-card-footer-left {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-card-footer-right {
  flex-shrink: 0;
  text-align: right;
  margin-left: 16px;
}

/* ─── Site Footer ─── */

.site-footer {
  padding: var(--space-3xl) var(--page-padding) var(--space-4xl);
  position: relative;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-md);
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.footer-brand-bold {
  font-weight: 700;
  color: var(--color-text);
}

.footer-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-secondary);
}

.footer-line {
  height: 1px;
  background: var(--color-border);
  margin-bottom: var(--space-xl);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-cta-wrap {
  flex: 1;
}

.footer-headline {
  margin-bottom: var(--space-lg);
  max-width: 400px;
}

.footer-cta-link {
  display: inline-block;
}

.footer-capsule-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.footer-capsule {
  width: 60px;
  height: 140px;
  border-radius: 30px;
  background: linear-gradient(to bottom, #8899aa 50%, #e84040 50%);
  opacity: 0.9;
  transform: rotate(5deg);
  transition: transform 0.6s var(--ease-out-expo);
}

.footer-capsule:hover {
  transform: rotate(-5deg) scale(1.05);
}

/* ─── Brutalist Typography Cloud ─── */

.footer-brutalist-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 16px 28px;
  padding: var(--space-xl) 16px;
  margin: 0 -16px;
  overflow: visible;
}

.brutal-item {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo), color 0.3s ease, background-color 0.3s ease;
  user-select: none;
  transform-origin: center center;
  will-change: transform;
}

.brutal-item:hover {
  transform: scale(1.04) translateY(-2px);
}

.brutal-item--huge {
  font-size: clamp(36px, 5.5vw, 84px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--color-text);
}

.brutal-item--outline {
  -webkit-text-stroke: 1.5px var(--color-text);
  color: transparent;
  font-size: clamp(26px, 4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brutal-item--outline:hover {
  color: var(--color-text);
}

.brutal-item--pill {
  padding: 6px 20px;
  border-radius: 40px;
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 700;
  font-size: clamp(13px, 1.8vw, 22px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brutal-item--xl {
  font-size: clamp(22px, 3.2vw, 48px);
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.brutal-item--highlight {
  background: #FF0000;
  color: #ffffff;
  padding: 4px 16px;
  font-weight: 900;
  font-size: clamp(15px, 2.2vw, 30px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: rotate(-1deg);
  border-radius: 2px;
}

.brutal-item--mono {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.8vw, 26px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.brutal-item--badge {
  border: 2px solid var(--color-text);
  padding: 6px 16px;
  font-size: clamp(12px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
}

.brutal-item--serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(24px, 3.5vw, 52px);
  font-weight: 400;
  color: var(--color-text);
}

.brutal-item--large {
  font-size: clamp(20px, 2.8vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.brutal-item--medium {
  font-size: clamp(16px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* ─── Footer Bottom Socials ─── */

.footer-bottom-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: var(--space-lg);
  text-align: center;
}

.footer-social-label {
  color: var(--color-text-secondary);
  letter-spacing: 0.12em;
}

.footer-socials {
  margin-top: 0;
}

