/* ===========================
   STUDIO SPOTTEDone — Styles
   Built from transcript spec
   =========================== */

/* --------- Theme: body.theme-light / body.theme-dark --------- */
:root{
  --brand-color: #7a6a62;
  --brand-color-rgb: 122, 106, 98;
  --radius-xl: 0;
  --radius-pill: 0;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition: 260ms var(--ease);
  --process-stroke: var(--brand-color);
  --process-stroke-dash: 0 25.5;
  --container: 1400px;
  --pad-x: 3rem;
  --pad-y: 6rem;
}

/* Light option: warm muted beige (to match reference), dark text, premium editorial */
body.theme-light{
  --bg: #DEDBD5;
  --bg-2: #D8D5CE;
  --text: #2b2624;
  --muted: rgba(43, 38, 36, 0.7);
  --border: rgba(60, 55, 50, 0.2);
  --card-bg: rgba(255,255,255,0.25);
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --link: #2b2624;
  --text-secondary: rgba(43, 38, 36, 0.72);
  --text-muted: rgba(43, 38, 36, 0.55);
  --process-glass-bg: rgba(255,255,255,0.55);
  --process-glass-border: rgba(60,55,50,0.35);
  --process-glass-shadow: 0 10px 30px rgba(0,0,0,0.06);
  --process-glass-hover-bg: rgba(255,255,255,0.75);
  --process-glass-hover-border: rgba(60,55,50,0.45);
  --process-glass-hover-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

/* Dark option: deep brown-gray, light text */
body.theme-dark{
  --bg: #1c1917;
  --bg-2: #181614;
  --text: #efeae3;
  --muted: rgba(239, 234, 227, 0.7);
  --border: rgba(239,234,227,0.15);
  --card-bg: rgba(255,255,255,0.05);
  --shadow: 0 10px 30px rgba(0,0,0,0.2);
  --link: #efeae3;
  --text-secondary: rgba(239, 234, 227, 0.72);
  --text-muted: rgba(239, 234, 227, 0.55);
  --process-glass-bg: rgba(255,255,255,0.22);
  --process-glass-border: rgba(239,234,227,0.35);
  --process-glass-shadow: 0 18px 50px rgba(0,0,0,0.35);
  --process-glass-hover-bg: rgba(255,255,255,0.35);
  --process-glass-hover-border: rgba(239,234,227,0.5);
  --process-glass-hover-shadow: 0 22px 70px rgba(0,0,0,0.45);
}

/* --------- Resets --------- */
*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; width: 100%; }
body{
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--bg);
}

/* Optional: vintage-paper class left for future texture; for now same as default */
body.vintage-paper{
  background: var(--bg);
}

/* No global grain/overlays — film treatment is section-specific (footage gallery only) */

/* Main + sections */
main,
#main-content,
section{
  background: transparent;
}
#main-content{
  position: relative;
  z-index: 1;
}
main{ width: 100%; }

/* Text selection (discouragement; cannot fully prevent) */
body{
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea{
  -webkit-user-select: text;
  user-select: text;
}

/* --------- Typography --------- */
h1,h2,h3,h4,h5,h6{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1rem; line-height: 1.7; color: var(--text-secondary); }
a{ color: inherit; text-decoration: none; }
.muted{ color: var(--text-secondary); }

.section-label{
  display:inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.section-title{
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

/* --------- Layout helpers: max-width only on inner containers --------- */
.container,
.section-inner,
.header-inner,
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* --------- Header: full width, inner content centered --------- */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(42, 37, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.theme-light .header{
  background: rgba(245, 242, 235, 0.88);
  border-bottom-color: rgba(60,55,50,0.12);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.45rem 0;
}
.logo img{
  display:block;
  height: 56px;
  width: auto;
}
.nav{
  display:flex;
  align-items:center;
  gap: 1.4rem;
}
.nav-link{
  display:inline-block;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: transform var(--transition), color var(--transition);
  transform-origin: center;
}
.nav-link:hover{
  color: var(--text);
  transform: translateY(-2px) scale(1.02);
  transition: transform 220ms ease, color 260ms ease;
}

.header-actions{
  display:flex;
  align-items:center;
  gap: 0.75rem;
}
.search-btn, .theme-toggle, .menu-btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.14);
  color: var(--text);
  border-radius: 0;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.search-btn:hover, .theme-toggle:hover, .menu-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(var(--brand-color-rgb),0.45);
  background: rgba(255,255,255,0.22);
}
.theme-icon.moon{ display:none; }
body.theme-dark .theme-icon.sun{ display:none; }
body.theme-dark .theme-icon.moon{ display:inline; }

/* Dropdown menus (if present in HTML) */
.nav-dropdown{ position: relative; }
.nav-trigger{
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform var(--transition), color var(--transition);
}
.nav-trigger:hover{ color: var(--text); transform: scale(1.06); }
.nav-menu{
  position:absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: inherit;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-dropdown.open .nav-menu{
  max-height: 280px;
  opacity: 1;
}
.nav-sub{
  display:block;
  padding: 10px 10px;
  border-radius: 0;
  color: var(--text-secondary);
  transition: background var(--transition), transform var(--transition), color var(--transition);
}
.nav-sub:hover{
  color: var(--text);
  background: rgba(255,255,255,0.16);
  transform: translateX(2px);
}

/* Mobile nav fallback */
@media (max-width: 900px){
  .nav{ display:none; }
  .header.nav-open .nav{
    display:flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 1rem var(--pad-x);
    flex-direction: column;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    background: inherit;
  }
  .nav-menu{
    position: static;
    width: 100%;
    box-shadow: none;
    padding: 6px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-dropdown.open .nav-menu{
    max-height: 280px;
    opacity: 1;
  }
}

/* --------- Buttons --------- */
/* Buttons: rectangular, sharp corners, thin border (reference) */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0;
  border: 1px solid rgba(var(--brand-color-rgb), 0.4);
  background: rgba(var(--brand-color-rgb), 0.1);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn:hover{
  transform: translateY(-2px);
  background: rgba(var(--brand-color-rgb), 0.14);
  border-color: rgba(var(--brand-color-rgb), 0.55);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}
.btn-outline{
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 0;
}
.btn-outline:hover{
  color: var(--text);
  border-color: rgba(var(--brand-color-rgb),0.55);
  background: rgba(255,255,255,0.12);
}
body.theme-light .btn,
body.theme-light .btn-outline{
  border-color: rgba(60,55,50,0.32);
  color: var(--text);
}
body.theme-light .btn{
  background: rgba(245,242,235,0.9);
}
body.theme-light .btn-outline{
  background: rgba(245,242,235,0.5);
  color: var(--text-secondary);
}
body.theme-light .btn:hover{
  background: rgba(235,230,220,0.95);
  border-color: rgba(60,55,50,0.45);
}
body.theme-light .btn-outline:hover{
  border-color: rgba(60,55,50,0.45);
  background: rgba(255,255,255,0.4);
}

/* --------- Loader: white background, video blends seamlessly, no logo --------- */
.loader{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.loader, .loader *{ cursor: none !important; }
.loader.hidden{ display: none; }

.loader-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Video ~50% of viewport height (15% bigger), centered */
.loader-video-wrap{
  position: relative;
  width: 88.5vh;    /* 16:9 for height 49.7vh */
  max-width: 90vw;
  height: 49.7vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.loader-video{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}
.loader-bar{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 0;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  box-sizing: border-box;
}
.loader-bar-fill{
  width: 0%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg,
    rgba(var(--brand-color-rgb),0.9),
    rgba(var(--brand-color-rgb),0.5),
    rgba(var(--brand-color-rgb),0.9)
  );
  transition: width 240ms linear;
}

/* --------- Main content show/hide --------- */
.main-content.hidden{
  visibility: hidden;
}
.main-content{
  visibility: visible;
}

/* --------- Scroll down button (fixed bottom, circle, semi-transparent, bounce) --------- */
.scroll-down-btn{
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
  animation: scroll-down-bounce 2s ease-in-out infinite;
}
.scroll-down-btn:hover{
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--text-muted);
}
.scroll-down-btn:focus{
  outline: 2px solid var(--text-muted);
  outline-offset: 3px;
}
.scroll-down-icon{
  flex-shrink: 0;
  opacity: 0.9;
}
@keyframes scroll-down-bounce{
  0%, 100%{ transform: translateX(-50%) translateY(0); }
  50%{ transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce){
  .scroll-down-btn{ animation: none; }
}

/* --------- Scroll up button (same style, bottom right, visible when scrolled) --------- */
.scroll-up-btn{
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
  animation: scroll-up-bounce 2s ease-in-out infinite;
}
.scroll-up-btn.visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.scroll-up-btn:hover{
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--text-muted);
}
.scroll-up-btn:focus{
  outline: 2px solid var(--text-muted);
  outline-offset: 3px;
}
.scroll-up-icon{
  flex-shrink: 0;
  opacity: 0.9;
}
@keyframes scroll-up-bounce{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce){
  .scroll-up-btn{ animation: none; }
}

/* --------- Hero --------- */
.hero{
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}
.hero-media{
  position: relative;
  width: 100%;
  height: min(78vh, 760px);
  min-height: 520px;
  overflow: hidden;
}
.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}
.hero-image img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: sepia(0.85) saturate(0.88) hue-rotate(-12deg) contrast(1.05) brightness(0.98);
}
body.theme-light .hero-image img{
  filter: sepia(0.7) saturate(0.9) hue-rotate(-10deg) contrast(1.03) brightness(0.98);
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.35));
  mix-blend-mode: multiply;
}
body.theme-dark .hero-overlay{
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
}

.hero-content{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 4rem;
  width: 100%;
}
.hero-content-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
}
.hero h1{
  color: rgba(255,255,255,0.95);
  font-size: clamp(2rem, 4.4vw, 3.36rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.hero-tagline{
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin: 0.75rem 0 1.25rem;
  max-width: 42ch;
  line-height: 1.5;
}
.hero-actions{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}
.hero .btn, .hero .btn-outline{
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.08);
}
.hero .btn:hover, .hero .btn-outline:hover{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
}

/* --------- Footage gallery: vintage film strip (bars, perforations, vignette on photos) --------- */
.hero-gallery{
  --film-bar: 16px;
  --film-hole-w: 12px;
  --film-hole-h: 6px;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: var(--film-bar) 0;
  position: relative;
  background: #1a1816;
  min-height: 260px;
  box-shadow:
    inset 0 36px 56px -20px rgba(0,0,0,0.4),
    inset 0 -36px 56px -20px rgba(0,0,0,0.4);
}
/* Top film bar + perforations */
.hero-gallery::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--film-bar);
  background: #252220;
  opacity: 0.95;
  pointer-events: none;
  z-index: 2;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Crect width='12' height='6' fill='white'/%3E%3Crect x='1' y='0.5' width='10' height='5' rx='1' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Crect width='12' height='6' fill='white'/%3E%3Crect x='1' y='0.5' width='10' height='5' rx='1' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: var(--film-hole-w) var(--film-hole-h);
  mask-size: var(--film-hole-w) var(--film-hole-h);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}
/* Bottom film bar + perforations */
.hero-gallery::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--film-bar);
  background: #252220;
  opacity: 0.95;
  pointer-events: none;
  z-index: 2;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Crect width='12' height='6' fill='white'/%3E%3Crect x='1' y='0.5' width='10' height='5' rx='1' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Crect width='12' height='6' fill='white'/%3E%3Crect x='1' y='0.5' width='10' height='5' rx='1' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: var(--film-hole-w) var(--film-hole-h);
  mask-size: var(--film-hole-w) var(--film-hole-h);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}

/* Film marquee: clip area for drifting track */
.film-marquee,
.hero-gallery-viewport{
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 220px;
  padding-left: 1rem;
  box-sizing: border-box;
}
/* Film dust / light streaks (subtle, occasional) */
.hero-gallery-viewport::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(255,248,240,0.03) 0%, transparent 8%),
    linear-gradient(105deg, transparent 56%, rgba(255,255,255,0.04) 58%, transparent 60%),
    linear-gradient(88deg, transparent 22%, rgba(0,0,0,0.03) 24%, transparent 26%);
  background-size: 100% 100%, 220% 100%, 160% 100%;
  animation: film-dust 8s ease-in-out infinite;
}
@keyframes film-dust{
  0%, 68%, 100%{ opacity: 0; }
  74%, 94%{ opacity: 0.5; }
  82%{ opacity: 0.28; }
}

/* Gate weave: micro shift every few seconds, not constant */
.hero-gallery-viewport{
  animation: film-weave 4s ease-in-out infinite;
}
@keyframes film-weave{
  0%, 88%, 100%{ transform: translate(0, 0); }
  92%{ transform: translate(1px, -1px); }
  96%{ transform: translate(-1px, 1px); }
}

/* Film track: seamless loop, drift right (GPU transform only) */
.film-track,
.hero-gallery-track{
  --film-loop-width: 50%;
  display: flex;
  width: max-content;
  will-change: transform;
  gap: 0.35rem;
  padding: 0.5rem 0;
  position: relative;
  z-index: 0;
  flex-wrap: nowrap;
  animation:
    film-drift 100s linear infinite,
    film-flicker 3.2s steps(2) infinite;
}
.hero-gallery-track::-webkit-scrollbar{ display: none; }

@keyframes film-drift{
  from{ transform: translateX(0); }
  to{ transform: translateX(calc(-1 * var(--film-loop-width, 50%))); }
}
@keyframes film-flicker{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.96; }
}

@media (prefers-reduced-motion: reduce){
  .hero-gallery-viewport{
    animation: none;
  }
  .hero-gallery-track,
  .film-track{
    animation: none;
  }
  .hero-gallery-viewport::before{
    animation: none;
    opacity: 0;
  }
  .film-grain-overlay{
    animation: none !important;
  }
}

.hero-gallery-item{
  flex: 0 0 min(320px, 85vw);
  flex-shrink: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  margin: 0;
  text-decoration: none;
  color: inherit;
  display: block;
  transform: translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
  padding: 5px;
  background: #1e1c1a;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,0.25);
}
/* Vignette on each photo + highlight compression (multiply) */
.hero-gallery-item::before{
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  background:
    radial-gradient(ellipse 75% 75% at 50% 50%, transparent 32%, rgba(0,0,0,0.12) 65%, rgba(0,0,0,0.38) 100%),
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,0,0,0.05), transparent 58%);
  box-shadow: inset 0 0 28px rgba(0,0,0,0.08);
}
.hero-gallery-item::after{
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 4px;
  border: 1px solid rgba(80,70,60,0.35);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
  pointer-events: none;
  z-index: 1;
}
.hero-gallery-item:hover{
  transform: translateY(-4px) scale(1.02);
}
.hero-gallery-item:hover::after{
  transform: scaleX(1);
}
/* Film grain above image, below label — visible vintage texture */
.film-grain-overlay{
  position: absolute;
  inset: 5px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4' seed='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 96px 96px;
  mix-blend-mode: overlay;
  animation: film-grain-jitter 0.5s steps(3) infinite;
}
@keyframes film-grain-jitter{
  0%{ transform: translate(0, 0); }
  33%{ transform: translate(0.5px, 0); }
  66%{ transform: translate(0, 0.5px); }
  100%{ transform: translate(0, 0); }
}
/* Spacing between photos is equal and controlled by .hero-gallery-track gap */
.hero-gallery-item:first-child,
.hero-gallery-item--dup-first{ margin: 0; }
.hero-gallery-item img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  transition: filter 260ms ease, transform 260ms ease;
  /* Vintage film: warm sepia, compressed highlights, matte shadows */
  filter: sepia(0.55) saturate(0.78) hue-rotate(-8deg) contrast(0.88) brightness(0.91);
}
.hero-gallery-item:hover img{
  filter: none;
  transform: scale(1.05);
}
.hero-gallery-label{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: rgba(255,255,255,0.95);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}
.hero-gallery-item:hover .hero-gallery-label{
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

/* --------- Sections: full width; inner content centered --------- */
section{
  width: 100%;
  padding: var(--pad-y) 0;
}
.section-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section-title{
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-align: center;
}
.contact-subtitle{
  max-width: 42ch;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* --------- Vision / Moment of Discovery: text left, video right --------- */
.vision-layout{
  display: grid;
  grid-template-columns: 1fr min(420px, 42%);
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.vision-copy{
  min-width: 0;
}
.vision-copy p{
  margin-bottom: 1rem;
}
.vision-media{
  position: relative;
  min-width: 0;
}
.vision-video-wrap{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 0;
}
.vision-video{
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: sepia(0.35) saturate(0.88) hue-rotate(-4deg) contrast(0.96) brightness(0.97);
  transition: filter var(--transition);
}
.vision-video-wrap:hover .vision-video{
  filter: sepia(0.2) saturate(0.95) contrast(0.98) brightness(1);
}
.vision-video-overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 50%, rgba(0,0,0,0.06) 100%);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.04);
}
@media (max-width: 900px){
  .vision-layout{
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .vision-media{
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* --------- Instagram / Follow the Journey section (site style) --------- */
.instagram-section .section-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.instagram-follow-link{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
.instagram-follow-link:hover{
  color: var(--text);
}
.instagram-follow-icon{
  font-size: 0.6rem;
  opacity: 0.85;
}
.instagram-section .section-title{
  margin-bottom: 2.5rem;
}
.instagram-gallery-wrap{
  width: 100%;
  overflow: hidden;
  padding: 0 var(--pad-x);
}
.instagram-gallery{
  display: flex;
  gap: 1.25rem;
  width: max-content;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 0.5rem 0 1.5rem;
  animation: instagram-marquee 40s linear infinite;
  will-change: transform;
}
.instagram-gallery::-webkit-scrollbar{
  display: none;
}
.instagram-card{
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 min(220px, 42vw);
  width: min(220px, 42vw);
  aspect-ratio: 1;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  transform: translateZ(0);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.instagram-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
  pointer-events: none;
}
.instagram-card:hover{
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow), 0 20px 50px rgba(0,0,0,0.12);
}
.instagram-card:hover::after{
  transform: scaleX(1);
}
.instagram-card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter var(--transition), transform var(--transition);
}
.instagram-card:hover .instagram-card-image img{
  transform: scale(1.03);
}

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

@media (max-width: 768px){
  .instagram-gallery{
    animation: none;
    transform: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
}
/* Mini post header (Instagram-style bar) */
.instagram-card-header{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 100%);
  min-height: 28px;
}
.instagram-card-avatar{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.instagram-card-dots{
  margin-left: auto;
  font-size: 14px;
  line-height: 1;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
}
.instagram-card-image{
  position: absolute;
  inset: 0;
  display: block;
}
.instagram-card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter var(--transition), transform var(--transition);
}
.instagram-card img{
  filter: sepia(0.5) saturate(0.82) hue-rotate(-6deg) contrast(0.92) brightness(0.94);
}
.instagram-card:hover img{
  filter: none;
  transform: scale(1.03);
}
/* Hover: “View on Instagram” cue */
.instagram-card-hint{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.instagram-card:hover .instagram-card-hint{
  opacity: 1;
}

.projects-grid, .expertise-grid, .why-grid, .news-grid{
  display: grid;
  gap: 1.5rem;
}

.projects-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.expertise-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.why-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.news-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards: outline draw-in + jump on hover (premium micro-interaction) */
.project-card, .expertise-card, .why-card, .news-card{
  position: relative;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}
.project-card::after, .expertise-card::after, .why-card::after, .news-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
  pointer-events: none;
}
.project-card:hover, .expertise-card:hover, .why-card:hover, .news-card:hover{
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow), 0 20px 50px rgba(0,0,0,0.12);
}
.project-card:hover::after, .expertise-card:hover::after, .why-card:hover::after, .news-card:hover::after{
  transform: scaleX(1);
}
body.theme-light .project-card,
body.theme-light .expertise-card,
body.theme-light .why-card,
body.theme-light .news-card,
body.theme-light .instagram-card{
  background: rgba(255,255,255,0.18);
  border-color: rgba(60,55,50,0.14);
}
body.theme-light .project-card:hover,
body.theme-light .expertise-card:hover,
body.theme-light .why-card:hover,
body.theme-light .news-card:hover,
body.theme-light .instagram-card:hover{
  background: rgba(255,255,255,0.28);
}

/* Estancia-style project card: full card link, image zoom, meta line */
.project-card-link{
  display: block;
  text-decoration: none;
  color: inherit;
}
.project-card .project-image{
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
/* Same film-like sepia as hero strip: soft highlights, lifted shadows, gentle contrast */
.project-card .project-image::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,0,0,0.07), transparent 60%);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.08);
}
/* Gallery images: base styles; projects get film-like sepia below */
.project-image img, .news-image img{
  width: 100%;
  height: 390px;
  object-fit: cover;
  display: block;
  transition: filter 260ms ease, transform 260ms ease;
  filter: sepia(1) saturate(0.88) hue-rotate(-12deg) contrast(1.05) brightness(0.98);
}
/* Exploring Spaces gallery: same film-like sepia as hero strip */
.project-card .project-image img{
  filter: sepia(0.5) saturate(0.82) hue-rotate(-6deg) contrast(0.92) brightness(0.94);
}

/* Latest from the World: same film-like sepia + highlight compression */
.news-card .news-image{
  position: relative;
  overflow: hidden;
}
.news-card .news-image::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,0,0,0.07), transparent 60%);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.08);
}
.news-card .news-image img{
  filter: sepia(0.5) saturate(0.82) hue-rotate(-6deg) contrast(0.92) brightness(0.94);
}
.project-card:hover .project-image img,
.news-card:hover .news-image img{
  filter: none;
  transform: scale(1.03);
}
.project-card .project-info{
  padding: 1.25rem 1.25rem 1.25rem;
}
.project-card h3{
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.project-meta{
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.project-year{
  color: var(--brand-color);
  font-weight: 500;
}
.project-card .project-link,
.read-more{
  display: inline-block;
  font-size: 0.9rem;
  color: var(--link);
  transition: transform 220ms ease, color 260ms ease;
}
.project-card:hover .project-link,
.project-link:hover, .read-more:hover{
  color: var(--text);
  transform: translateY(-2px) translateX(4px);
}
.project-card p, .news-card p{ padding: 0 1rem 0.75rem; margin: 0; }
.news-card h3{ padding: 1rem 1rem 0; }
.news-card .news-content .read-more{ padding: 0 1rem 1rem; }

.number{
  display:inline-block;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--brand-color);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

/* Founder block */
.founder-section{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: center;
}
.founder-image img{
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow);
  display: block;
  /* Sepia with reddish tint */
  filter: sepia(0.75) saturate(0.88) hue-rotate(-10deg) contrast(1.04) brightness(0.98);
}
body.theme-light .founder-image img{
  filter: sepia(0.6) saturate(0.9) hue-rotate(-8deg) contrast(1.02) brightness(0.98);
}
.founder-content blockquote{
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.5;
}
.founder-content .name{ color: var(--text); margin: 0; }
.founder-content .title{ color: var(--text-muted); margin: 0.15rem 0 0; }

/* --------- Intro overlay --------- */
.intro-overlay{
  position: fixed;
  inset: 0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 999;
}
.intro-overlay.active{ display:flex; }
.intro-overlay-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
}
.intro-overlay-content{
  position: relative;
  width: min(1200px, 100vw);
  height: min(675px, 90vh);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  padding: 1rem;
  border-radius: 0;
  overflow:hidden;
}
.intro-overlay-frame{
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.intro-video{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: rgba(0,0,0,0.08);
}
.intro-overlay-close{
  position:absolute;
  top: 10px;
  right: 10px;
  border:none;
  background: rgba(255,255,255,0.14);
  border: 1px solid var(--border);
  border-radius: 0;
  width: 44px;
  height: 44px;
  cursor:pointer;
  color: var(--text);
  transition: transform var(--transition), background var(--transition);
}
.intro-overlay-close:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.22); }

/* Project image overlay: same window as intro, image fills frame like video */
.project-overlay-image{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: rgba(0,0,0,0.08);
}

.project-gallery-frame{
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-gallery-image{
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: calc(100% - 80px); /* leave room for thumbs */
  object-fit: contain;
  transform-origin: center center;
}
.project-gallery-image.project-gallery-zoom{
  animation: project-gallery-zoom 16s ease-in-out forwards;
}

@keyframes project-gallery-zoom{
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.project-gallery-thumbs{
  flex: 0 0 auto;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.4rem 0.2rem;
  overflow-x: auto;
  background: radial-gradient(circle at top, rgba(0,0,0,0.25), transparent 55%);
}
.project-gallery-thumb{
  flex: 0 0 64px;
  height: 48px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition);
}
.project-gallery-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-gallery-thumb:hover{
  opacity: 0.85;
  transform: translateY(-1px);
}
.project-gallery-thumb.is-active{
  opacity: 1;
  border-color: rgba(255,255,255,0.8);
}

.vision-overlay-body{
  width: 100%;
  max-width: 720px;
  height: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  color: var(--text);
}
.vision-overlay-body h2{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0 0 1rem;
}
.vision-overlay-body p{
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 0.9rem;
}

/* --------- Process diagram: centered in viewport via wrapper --------- */
.process-diagram-wrap{
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  box-sizing: border-box;
}
.process-loop{
  position: relative;
  width: min(1536px, 96vw);
  min-height: 648px;
  flex-shrink: 0;
}
.process-svg{
  position:absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--process-stroke);
}
.process-quote{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0 5rem;
  text-align:center;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--text-muted);
  pointer-events:none;
  z-index: 0;
}
.process-quote-default,
.process-quote-module{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 5rem;
  text-align: center;
}
.process-quote-default[hidden]{ display: none !important; }
.process-quote-default:not([hidden]){ display: flex !important; }
.process-quote-default p{
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
}
.process-quote-module[hidden]{ display: none !important; }
.process-quote-module:not([hidden]){
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.process-quote-title{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  font-style: normal;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.02em;
}
.process-quote-desc{
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 42em;
}

.process-pill{
  position:absolute;
  width: 150px;
  height: 150px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(140%);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transform: translate3d(-50%, -50%, 0);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  z-index: 2;
  /* Dark theme: inner gradient — darker center, lighter edges */
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(28, 25, 23, 0.96) 0%, rgba(42, 38, 35, 0.92) 45%, rgba(52, 46, 43, 0.88) 100%);
  box-shadow: var(--shadow), 0 0 28px rgba(122, 106, 98, 0.22), 0 0 48px rgba(122, 106, 98, 0.08);
}
body.theme-light .process-pill{
  /* Light theme: inner gradient — darker center, lighter edges */
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(168, 161, 152, 0.94) 0%, rgba(182, 176, 168, 0.9) 45%, rgba(198, 192, 185, 0.88) 100%);
  box-shadow: var(--shadow), 0 0 24px rgba(122, 106, 98, 0.18), 0 0 40px rgba(122, 106, 98, 0.06);
}
.process-pill:hover{
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(35, 31, 28, 0.98) 0%, rgba(48, 43, 40, 0.94) 45%, rgba(58, 52, 48, 0.9) 100%);
  border-color: var(--border);
  box-shadow: var(--shadow), 0 0 32px rgba(122, 106, 98, 0.28), 0 16px 48px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.2);
  transform: translate3d(-50%, -54%, 0) scale(1.02);
}
body.theme-light .process-pill:hover{
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(158, 150, 140, 0.96) 0%, rgba(172, 165, 156, 0.93) 45%, rgba(186, 179, 170, 0.9) 100%);
  box-shadow: var(--shadow), 0 0 28px rgba(122, 106, 98, 0.22), 0 16px 40px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
}

/* Timeline fallback on small screens */
@media (max-width: 768px){
  :root{ --pad-x: 1rem; --pad-y: 4.5rem; }
  .logo img{ height: 45px; }
  .hero-media{ min-height: 460px; height: 66vh; }
  .hero-content{ padding: 0 0 2.5rem; }
  .hero-gallery-item{ flex: 0 0 min(280px, 78vw); margin-left: var(--pad-x); }
  .projects-grid, .expertise-grid, .why-grid, .news-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .newsletter-form{ flex-direction: column; }

  .process-svg{ display:none; }
  .process-diagram-wrap{ margin-top: 1.5rem; }
  .process-loop{
    width: 100%;
    min-height: auto;
  }
  .process-quote{
    position: static;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 1.05rem;
  }
  .process-quote-default,
  .process-quote-module{ position: static; padding: 0; }
  .process-pill{
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    min-height: 64px;
    margin: 0.65rem 0;
    border-radius: 999px;
  }
  .process-pill:hover{
    transform: translateY(-4px) scale(1.02);
  }
  .founder-section{ grid-template-columns: 1fr; }
}

/* --------- Footer: full width, inner content centered --------- */
.footer{
  width: 100%;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}
body.theme-light .footer{
  border-top-color: rgba(60,55,50,0.12);
}
body.theme-light .footer-bottom{
  border-top-color: rgba(60,55,50,0.1);
}
body.theme-light .newsletter-form input{
  border-color: rgba(60,55,50,0.2);
  background: rgba(255,255,255,0.4);
}
body.theme-light .newsletter-form input:focus{
  border-color: rgba(60,55,50,0.4);
  background: rgba(255,255,255,0.55);
}
body.theme-light .social-links a{
  border-color: rgba(60,55,50,0.18);
  background: rgba(255,255,255,0.35);
}
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.footer-newsletter h4{
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.newsletter-form{
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.newsletter-form input{
  flex: 1;
  min-width: 180px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}
.newsletter-form input::placeholder{
  color: var(--text-muted);
}
.newsletter-form input:focus{
  outline: none;
  border-color: rgba(var(--brand-color-rgb),0.5);
  background: rgba(255,255,255,0.08);
}
.newsletter-form .btn{
  padding: 0.7rem 1.25rem;
  white-space: nowrap;
}
.footer-links{
  list-style:none;
  padding:0;
  margin:0;
}
.footer-links li{ margin: 0.4rem 0; }
.footer-links a{
  color: var(--text-secondary);
  transition: transform var(--transition), color var(--transition);
  display:inline-block;
}
.footer-links a:hover{ color: var(--text); transform: scale(1.04); }
.social-links{
  display:flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.social-links a{
  width: 44px;
  height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 0;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.10);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.social-links a:hover{
  transform: translateY(-2px);
  border-color: rgba(var(--brand-color-rgb),0.45);
  background: rgba(255,255,255,0.18);
}
.social-links svg{ width: 18px; height: 18px; }

.footer-bottom{
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display:flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --------- Custom cursor: dot only, no pointer on links; 20% smaller --------- */
body.has-cursor-dot,
body.has-cursor-dot a,
body.has-cursor-dot button,
body.has-cursor-dot [role="button"],
body.has-cursor-dot .btn,
body.has-cursor-dot .nav-trigger,
body.has-cursor-dot .search-btn,
body.has-cursor-dot .theme-toggle,
body.has-cursor-dot .menu-btn,
body.has-cursor-dot input[type="submit"],
body.has-cursor-dot input[type="button"]{
  cursor: none !important;
}
#cursor-dot,
.cursor-dot{
  position: fixed;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 180ms ease, background 180ms ease;
}
body.has-cursor-dot #cursor-dot,
body.has-cursor-dot .cursor-dot{
  opacity: 1;
}
body.theme-dark.has-cursor-dot #cursor-dot,
body.theme-dark.has-cursor-dot .cursor-dot{
  background: rgba(255,255,255,0.14);
}
/* Slightly lighter dot when over link/button */
body.has-cursor-dot.cursor-over-link #cursor-dot,
body.has-cursor-dot.cursor-over-link .cursor-dot{
  background: rgba(0,0,0,0.28);
}
body.theme-dark.has-cursor-dot.cursor-over-link #cursor-dot,
body.theme-dark.has-cursor-dot.cursor-over-link .cursor-dot{
  background: rgba(255,255,255,0.28);
}
@media (hover: none), (pointer: coarse){
  body.has-cursor-dot{ cursor: auto; }
  #cursor-dot, .cursor-dot{ display: none !important; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
