    /* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --bg-light: #ffffff;
  --bg-soft: #f5f5f3;
  --text: #1a1a1a;
  --text-light: #f0f0f0;
  --text-muted: #888;
  --accent: #c0a062;
  --line: rgba(255,255,255,.12);
  --line-dark: rgba(0,0,0,.08);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1280px;
  --header-h: 70px;
  --ease: cubic-bezier(.22,1,.36,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 760px; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ===== Sections ===== */
.section { padding: 6rem 0; }
.section-sm { padding: 3.5rem 0; }
.dark { background: var(--bg); color: var(--text-light); }
.dark .eyebrow { color: var(--accent); }

.section-head { text-align: center; margin-bottom: 3.5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .9rem 2.2rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  cursor: pointer;
  transition: all .4s var(--ease);
}
.btn-light { background: transparent; color: var(--text-light); border-color: var(--text-light); }
.btn-light:hover { background: var(--text-light); color: var(--bg); }
.btn-dark { background: transparent; color: var(--text); border-color: var(--text); }
.btn-dark:hover { background: var(--text); color: var(--bg-light); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled { background: rgba(10,10,10,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }

.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 2rem; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800; letter-spacing: .05em;
  color: var(--text-light);
}
.logo span { color: var(--accent); font-weight: 400; }

.main-nav ul { display: flex; gap: 2.2rem; }
.main-nav a {
  font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-light); position: relative; padding: .3rem 0;
  transition: color .3s;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--accent); transition: width .4s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.menu-toggle span { width: 26px; height: 2px; background: var(--text-light); transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.15); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.7) 100%);
  }
.hero__content { position: relative; z-index: 2; padding: 0 24px; max-width: 800px; }
.hero__eyebrow {
  font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px; font-weight: 500;
}
.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 24px; color: var(--text-light);
}
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 2rem; }
.hero-subtitle { font-size: .8rem; letter-spacing: .4em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5rem; }
.hero-title { color: var(--text-light); font-size: clamp(2rem, 5.5vw, 4.5rem); line-height: 1.1; margin-bottom: 2.5rem; }
.hero-title span { font-size: .5em; font-weight: 400; display: block; margin-top: .5rem; color: rgba(240,240,240,.7); }
.hero-content .btn { margin-top: 1rem; }

.scroll-down {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.4);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-down span { width: 4px; height: 8px; background: var(--text-light); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ===== Page Banner ===== */
.page-banner, .contact-hero, .detail-hero {
  position: relative; min-height: 55vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.page-banner::before, .contact-hero::before, .detail-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.75) 100%);
}
.banner-content, .detail-hero-content { position: relative; z-index: 2; padding-top: var(--header-h); }
.banner-content h1, .detail-hero-content h1 { color: var(--text-light); margin-bottom: 1rem; }
.banner-content p, .detail-hero-content p { color: rgba(240,240,240,.75); font-size: 1.1rem; max-width: 560px; }

/* ===== Categories ===== */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.category-card { overflow: hidden; background: var(--bg-soft); border-radius: 2px; transition: transform .5s var(--ease); }
.category-card:hover { transform: translateY(-8px); }
.cat-img { height: 400px; background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.category-card:hover .cat-img { transform: scale(1.08); }
.cat-body { padding: 1.5rem; }
.cat-body h3 { margin-bottom: .6rem; }
.cat-body p { font-size: .9rem; color: var(--text-muted); }


/* The container holds both the image and text */
.image-container {
  position: center;
  display: inline-block; /* Keeps the container the exact size of the image */
  width: 100%;           /* Makes it responsive */
  max-width: 600px;      /* Optional: sets a maximum width */
}

/* Ensures the image behaves responsively */
.image-container img {
  width: 100%;
  display: block;        /* Removes unwanted whitespace at the bottom of the image */
  height: auto;
}

/* The overlay positioned on top of the image */
.text-overlay {
  position: absolute;
  top: 90%;              /* Move down 50% from the top of the container */
  left: 50%;             /* Move right 50% from the left of the container */
  transform: translate(-50%, -50%); /* Pulls the text back by half its own width/height to center it perfectly */
  
  /* Text Styling */
  color: white;
  font-family: sans-serif;
  text-align: center;
  
  /* Optional: Adds a dark background tint behind the text for better readability */
  background-color: rgba(0, 0, 0, 0.5); 
  padding: 10px;
  border-radius: 8px;
}

/* Fade the image and darken it for text contrast */
.cat-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.35)
  );
}

/* Keep the text above the image */
.category-card > *:not(.cat-img) {
  position: relative;
  z-index: 1;
  color: #fff;
}

/* ===== Stats ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item { padding: 1rem; }
.stat-num, .stat-suffix { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--accent); display: inline; }
.stat-item p { margin-top: .5rem; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(240,240,240,.6); }

/* ===== Bio ===== */
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.bio-img { height: 520px; background-size: cover; background-position: center; }
.bio-text h2 { margin-bottom: 1.5rem; }
.bio-text p { margin-bottom: 1.2rem; color: #555; }
.bio-text .btn { margin-top: 1rem; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.gallery-item {
  position: relative; overflow: hidden; aspect-ratio: 2 / 3;
  background-size: cover; background-position: center;
  transition: transform .5s var(--ease);
}
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,.8) 100%);
  opacity: 0; transition: opacity .4s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-label {
  position: absolute; bottom: 1.2rem; left: 1.2rem; z-index: 2;
  color: var(--text-light); font-size: .85rem; font-weight: 500; letter-spacing: .05em;
  opacity: 0; transform: translateY(10px); transition: all .4s var(--ease);
}
.gallery-item:hover .gallery-label { opacity: 1; transform: translateY(0); }

/* ===== Filter Bar ===== */
.filter-bar { border-bottom: 1px solid var(--line-dark); }
.filters { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.filter-btn {
  background: none; border: none; cursor: pointer;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); padding: .5rem 0; position: relative; transition: color .3s;
}
.filter-btn::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width .4s var(--ease); }
.filter-btn:hover, .filter-btn.active { color: var(--text); }
.filter-btn.active::after, .filter-btn:hover::after { width: 100%; }
.gallery-item.hidden { display: none; }

/* ===== Latest ===== */
.latest { background: var(--bg-soft); }

/* ===== CTA ===== */
.cta { text-align: center; }
.cta h2 { margin-bottom: 2rem; }

/* ===== Detail Page ===== */
.detail-hero-content { padding-top: var(--header-h); }
.detail-hero-content .eyebrow { color: var(--accent); }
.detail-hero-content h1 { color: var(--text-light); margin-bottom: 1rem; }
.detail-hero-content p { color: rgba(240,240,240,.75); max-width: 560px; }

.info-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; text-align: center; }
.info-item { display: flex; flex-direction: column; gap: .4rem; }
.info-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.info-value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }

.detail-text h2 { margin-bottom: 1.5rem; }
.detail-text p { margin-bottom: 1.2rem; color: #555; }

.detail-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.detail-shot { height: 420px; background-size: cover; background-position: center; transition: transform .5s var(--ease); }
.detail-shot:hover { transform: scale(1.01); }

.detail-quote { text-align: center; }
.detail-quote blockquote {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: italic; line-height: 1.4; margin-bottom: 1.5rem;
}
.detail-quote cite { font-size: .9rem; letter-spacing: .1em; color: var(--accent); font-style: normal; }

.pagination-inner { display: flex; justify-content: space-between; }
.page-link { font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); transition: color .3s; }
.page-link:hover { color: var(--text); }

/* ===== About Page ===== */
.about-hero-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: center; }
.about-portrait { height: 560px; background-size: cover; background-position: center; }
.about-intro h1 { margin-bottom: .5rem; }
.about-intro .lead { font-size: 1.2rem; color: var(--accent); margin-bottom: 1.5rem; font-weight: 500; }
.about-intro p { margin-bottom: 1.2rem; color: #555; }

.passion-content { text-align: center; }
.passion-content h2 { margin-bottom: 1.5rem; }
.passion-content p { margin-bottom: 1.2rem; color: rgba(240,240,240,.7); }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.service-card { padding: 2rem; background: var(--bg-soft); border-top: 3px solid var(--accent); transition: transform .4s var(--ease); }
.service-card:hover { transform: translateY(-6px); }
.service-card h3 { margin-bottom: .8rem; }
.service-card p { font-size: .9rem; color: var(--text-muted); }

.timeline-list { max-width: 760px; margin: 0 auto; }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line-dark); }
.timeline-year { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.timeline-body h3 { margin-bottom: .5rem; }
.timeline-body p { color: var(--text-muted); font-size: .9rem; }

/* ===== Contact Page ===== */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.info-card { padding: 2.5rem 2rem; background: var(--bg-soft); border-radius: 2px; transition: transform .4s var(--ease); }
.info-card:hover { transform: translateY(-6px); }
.info-icon { font-size: 2rem; color: var(--accent); display: block; margin-bottom: 1rem; }
.info-card h3 { margin-bottom: .5rem; }
.info-card p { color: var(--text-muted); }

.form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
.form-side h2 { margin-bottom: 1rem; }
.form-side > p { margin-bottom: 2rem; color: #555; }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 1rem 1.2rem; border: 1px solid #ddd; background: #fff;
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  transition: border-color .3s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; border: none; background: var(--text); color: var(--bg-light); }
.contact-form .btn:hover { background: var(--accent); color: var(--bg); }
.form-success { display: none; color: #2a7f2a; font-size: .9rem; margin-top: .5rem; }
.form-success.show { display: block; }

.form-img { height: 480px; background-size: cover; background-position: center; }

.map-box {
  position: relative; height: 380px; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.map-box::after { content: ''; position: absolute; inset: 0; background: rgba(10,10,10,.35); }
.map-pin {
  position: relative; z-index: 2; background: var(--bg); color: var(--text-light);
  padding: 1rem 2rem; font-size: .85rem; letter-spacing: .1em;
}

/* ===== Footer ===== */
.site-footer { background: var(--bg); color: var(--text-light); padding: 4rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-col .logo { margin-bottom: 1rem; display: inline-block; }
.footer-col p { font-size: .85rem; color: rgba(240,240,240,.5); margin-bottom: .4rem; }
.footer-col h4 { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1.2rem; color: var(--accent); }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { font-size: .85rem; color: rgba(240,240,240,.6); transition: color .3s; }
.footer-col ul li a:hover { color: var(--text-light); }
.socials { display: flex; gap: 1rem; }
.socials a {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 600; letter-spacing: .05em;
  color: rgba(240,240,240,.6); transition: all .3s;
}
.socials a:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.5rem 0; text-align: center; }
.footer-bottom p { font-size: .8rem; color: rgba(240,240,240,.4); }

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-grid, .about-hero-grid, .form-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; width: 100%;
    background: rgba(10,10,10,.96); backdrop-filter: blur(12px);
    padding: 2rem; transform: translateY(-130%); transition: transform .4s var(--ease);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 1.5rem; }
  .menu-toggle { display: flex; }

  .section { padding: 4rem 0; }
  .container { padding: 0 1.5rem; }
  .category-grid, .stats-grid, .services-grid, .info-grid, .gallery-grid, .detail-gallery-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .timeline-item { grid-template-columns: 1fr; gap: .5rem; }
  .pagination-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .bio-img, .about-portrait, .form-img { height: 320px; }
  .detail-shot { height: 260px; }
}

/* ============================================================
   MODERN FX — preloader, page transitions, custom cursor,
   scroll progress, split text, clip reveals, parallax,
   magnetic buttons, marquee, back-to-top
   ============================================================ */

.hero-bg { animation: none; }

/* --- Preloader --- */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800;
  color: var(--text-light); letter-spacing: .08em; display: block;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
.preloader-logo span { color: var(--accent); font-weight: 400; }
.preloader-bar {
  width: 180px; height: 2px; background: rgba(255,255,255,.15);
  margin: 1.2rem auto 0; overflow: hidden; border-radius: 2px;
}
.preloader-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--accent); border-radius: 2px;
  animation: preloaderSlide 1.1s ease-in-out infinite;
}
@keyframes preloaderSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(450%); } }
@keyframes preloaderPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* --- Page transition curtain --- */
.page-transition {
  position: fixed; inset: 0; z-index: 99998;
  background: var(--bg);
  transform: scaleY(0);
  pointer-events: none;
}
.page-transition.active { animation: curtainIn .55s var(--ease) forwards; }
.page-transition.leaving { animation: curtainOut .55s var(--ease) forwards; }
@keyframes curtainIn {
  0% { transform: scaleY(0); transform-origin: top; }
  100% { transform: scaleY(1); transform-origin: top; }
}
@keyframes curtainOut {
  0% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Custom cursor (fine pointers only) --- */
@media (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 99997;
    pointer-events: none; border-radius: 50%;
    opacity: 0; will-change: transform;
  }
  .cursor-dot {
    width: 8px; height: 8px; background: var(--accent);
    box-shadow: 0 0 10px rgba(192,160,98,.8);
    transition: opacity .3s;
  }
  .cursor-ring {
    width: 40px; height: 40px;
    border: 1.5px solid rgba(192,160,98,.65);
    transition: width .35s var(--ease), height .35s var(--ease),
                border-color .35s, background .35s, opacity .3s;
  }
  .cursor-ring.hover {
    width: 68px; height: 68px;
    background: rgba(192,160,98,.1);
    border-color: var(--accent);
  }
  body, a, button, .gallery-item, .category-card, .filter-btn,
  input, select, textarea, .service-card, .info-card { cursor: none; }
}

/* --- Scroll progress --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 99996;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), #ecd9a8, var(--accent));
  transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 14px rgba(192,160,98,.55);
}

/* --- Back to top --- */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9995;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10,10,10,.78);
  backdrop-filter: blur(8px); color: var(--text-light); font-size: 1.05rem;
  opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: all .4s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* --- Split text --- */
.split-word {
  display: inline-block; overflow: hidden;
  padding-bottom: .12em; margin-bottom: -.12em;
  opacity: 0; transform: translateY(70%) rotate(2deg);
  transition: opacity .55s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.split-word.in { opacity: 1; transform: translateY(0) rotate(0); }

/* --- Clip reveal on scroll --- */
.reveal.clip {
  clip-path: inset(10% 6% 10% 6%);
  transition: opacity .8s var(--ease), transform .8s var(--ease),
              clip-path 1.15s var(--ease);
}
.reveal.clip.visible { clip-path: inset(0 0 0 0); }

/* --- Gallery shine sweep --- */
.gallery-item::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, transparent 32%, rgba(192,160,98,.28) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform .9s var(--ease);
}
.gallery-item:hover::before { transform: translateX(130%); }

/* --- Marquee --- */
.marquee {
  background: var(--bg); color: var(--text-light);
  overflow: hidden; padding: 1.1rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.marquee-track { display: flex; white-space: nowrap; animation: marquee 22s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .12em;
  padding-right: 2.5rem; color: rgba(240,240,240,.85);
}
.marquee-track em { color: var(--accent); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
