.bot-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.font-display { font-family: "Instrument Serif", ui-serif, Georgia, serif; }
.font-sans { font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif; }
.font-signature { font-family: "Great Vibes", cursive; font-weight: 400; }

.prose-custom { max-width: 65ch; color: #525252; line-height: 1.75; }
.dark .prose-custom { color: #a3a3a3; }

.home-label { letter-spacing: 0.35em; }

/* Split hero */
.hero-split { overflow: hidden; }
.hero-split-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f0efec;
}
.hero-split-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.dark .hero-split-photo { background: #171717; }
.dark .hero-split-panel { background: #0a0a0a; }

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow { animation: spin-slow 28s linear infinite; }

/* Film grain (CTA section) */
.home-grain {
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll cue pulse */
.home-scroll-line { animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50% { transform: scaleY(0.6); opacity: 0.8; }
}

/* Marquee */
.home-marquee { overflow: hidden; }
.home-marquee-track { animation: marquee 30s linear infinite; width: max-content; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Cards */
.home-card { display: block; position: relative; background: #171717; }

/* Site header */
.site-header { border-color: #ebe8e4; }
.dark .site-header { border-color: #262626; }

.site-header-inner { position: relative; }

.site-logo-img {
  display: block;
  max-width: min(180px, 42vw);
  height: auto;
  object-fit: contain;
}
.desktop-header-nav { display: none; }
.mobile-header-control { display: inline-flex; }
@media (min-width: 1024px) {
  .desktop-header-nav { display: flex; align-items: center; gap: 2rem; }
  .mobile-header-control { display: none !important; }
  .mobile-menu { display: none !important; }
}

.site-nav-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #737373;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}
.site-nav-link:hover,
.site-nav-link.is-active { color: #171717; }
.dark .site-nav-link { color: #a3a3a3; }
.dark .site-nav-link:hover,
.dark .site-nav-link.is-active { color: #fafafa; }

.site-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
}

.site-nav-cta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.625rem 1.25rem;
  border: 1px solid #171717;
  color: #171717;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.site-nav-cta:hover,
.site-nav-cta.is-active {
  background: #171717;
  color: #faf9f7;
}
.dark .site-nav-cta { border-color: #fafafa; color: #fafafa; }
.dark .site-nav-cta:hover,
.dark .site-nav-cta.is-active { background: #fafafa; color: #171717; }

.site-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #d4d4d4;
  border-radius: 9999px;
  color: #525252;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.site-header-icon:hover { border-color: #171717; color: #171717; }
.dark .site-header-icon { border-color: #404040; color: #a3a3a3; }
.dark .site-header-icon:hover { border-color: #fafafa; color: #fafafa; }

.mobile-menu-panel {
  box-shadow: 4px 0 24px rgb(0 0 0 / 0.08);
  animation: slideInMenu 0.35s ease;
}
@keyframes slideInMenu {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
body.menu-open { overflow: hidden; }

/* Transparent header on hero */
.header-transparent {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-color: transparent !important;
  background: transparent !important;
  backdrop-filter: none !important;
}
.header-transparent .nav-link { color: rgb(255 255 255 / 0.7); }
.header-transparent .nav-link:hover,
.header-transparent .nav-link-active { color: white; }
.header-transparent .site-logo { color: white; }
.header-transparent .header-btn {
  border-color: rgb(255 255 255 / 0.3);
  color: white;
}
.header-scrolled {
  position: fixed !important;
  border-color: rgb(229 229 229 / 0.8) !important;
  background: rgb(250 250 250 / 0.9) !important;
  backdrop-filter: blur(12px) !important;
}
.dark .header-scrolled {
  border-color: rgb(38 38 38 / 0.8) !important;
  background: rgb(10 10 10 / 0.9) !important;
}
.header-scrolled .nav-link { color: rgb(115 115 115); }
.header-scrolled .nav-link:hover,
.header-scrolled .nav-link-active { color: rgb(23 23 23); }
.dark .header-scrolled .nav-link:hover,
.dark .header-scrolled .nav-link-active { color: rgb(250 250 250); }
.dark .header-scrolled .nav-link { color: rgb(163 163 163); }
.header-scrolled .site-logo { color: inherit; }
.header-scrolled .header-btn {
  border-color: rgb(212 212 212);
  color: inherit;
}
.dark .header-scrolled .header-btn { border-color: rgb(64 64 64); }

/* Gallery grid (portfolio pages) */
.gallery-grid { display: grid; align-items: start; gap: 0.75rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery-grid-item { display: block; width: 100%; overflow: hidden; border-radius: 0.125rem; background: #e5e5e5; cursor: zoom-in; }
.dark .gallery-grid-item { background: #262626; }
.gallery-grid-item img { display: block; width: 100%; height: auto; object-fit: contain; }
.lightbox-open { overflow: hidden; }
#lightbox { display: none; }
#lightbox.active { display: flex; }

/* Instagram strip on home */
.home-ig-grid a { position: relative; overflow: hidden; }
.home-ig-grid a::after {
  content: "";
  position: absolute; inset: 0;
  background: rgb(0 0 0 / 0);
  transition: background 0.3s;
}
.home-ig-grid a:hover::after { background: rgb(0 0 0 / 0.25); }

/* Portfolio — Solene standard layout */
.portfolio-header { border-color: #ebe8e4; }
.dark .portfolio-header { border-color: #262626; }

.portfolio-standard-grid { padding: 0; margin: 0; }

.portfolio-item-link { text-decoration: none; color: inherit; }

.portfolio-item-image {
  position: relative;
  line-height: 0;
}

.portfolio-item-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0);
  transition: background 0.5s ease;
  pointer-events: none;
}

.portfolio-item-link:hover .portfolio-item-image::after {
  background: rgb(0 0 0 / 0.06);
}

.portfolio-item-meta h2 {
  position: relative;
  display: inline-block;
}

.portfolio-item-meta h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s ease, left 0.4s ease;
}

.portfolio-item-link:hover .portfolio-item-meta h2::after {
  width: 100%;
  left: 0;
}

.portfolio-load-more {
  letter-spacing: 0.3em;
  background: transparent;
  cursor: pointer;
}
/* Keyboard and motion accessibility */
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 9999; transform: translateY(-200%); background: #fff; color: #111; padding: .75rem 1rem; border: 2px solid currentColor; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #2563eb !important; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
