/* ============================================================
   EHW Landscaping — styles.css
   Film photography aesthetic. Voigtländer Bessa R2M.
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400;1,600&family=Instrument+Sans:wght@400;500&family=JetBrains+Mono:wght@300;400&display=swap');

/* --- Design tokens --- */
:root {
  --bg: #f0ede5;
  --bg-deep: #111a0f;
  --ink: #1b2418;
  --green: #2c5028;
  --muted: #7a7568;
  --rule: rgba(27, 36, 24, 0.1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Leaf cursor — hotspot at the pointed tip (3,3) */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3 C6 12 8 22 14 28 C20 32 30 28 29 18 C28 8 18 2 3 3 Z' fill='%232c5028' opacity='0.85'/%3E%3Cline x1='3' y1='3' x2='22' y2='26' stroke='%23a8c4a0' stroke-width='0.9' stroke-linecap='round'/%3E%3C/svg%3E") 3 3, auto;
}

/* Restore sensible cursors for interactive & text elements */
a, button, label, select, [role="button"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3 C6 12 8 22 14 28 C20 32 30 28 29 18 C28 8 18 2 3 3 Z' fill='%232c5028' opacity='0.85'/%3E%3Cline x1='3' y1='3' x2='22' y2='26' stroke='%23a8c4a0' stroke-width='0.9' stroke-linecap='round'/%3E%3C/svg%3E") 3 3, pointer;
}

input, textarea {
  cursor: text;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ol,
ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

textarea,
input,
select {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* --- Layout container --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* --- Global overlays --- */
.overlay-grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 150px 150px;
  opacity: 0.038;
  mix-blend-mode: multiply;
}

.overlay-vignette {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 65%, rgba(17, 26, 15, 0.09) 100%);
}

/* --- Typography helpers --- */
.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}

.label-light {
  color: rgba(240, 237, 229, 0.35);
}

/* --- Section base --- */
.section {
  padding: 110px 0;
  background-color: var(--bg);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(240, 237, 229, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 48px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--green);
  text-decoration: none;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger — 2 lines */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 7px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background-color: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
  transform-origin: center;
}

.hamburger.open span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
  transform-origin: center;
}

/* Mobile dropdown */
.nav-mobile {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(240, 237, 229, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-mobile.open {
  max-height: 300px;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  padding: 16px 48px 24px;
  gap: 0;
  list-style: none;
}

.nav-mobile ul li a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-mobile ul li:last-child a {
  border-bottom: none;
}

.nav-mobile ul li a:hover {
  color: var(--ink);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

/* Hero logo */
.hero-logo {
  width: clamp(280px, 52vw, 660px);
  height: auto;
  opacity: 0;
  animation: hero-logo-in 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.4s;
  user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0 4px 24px rgba(44, 80, 40, 0.12));
}

@keyframes hero-logo-in {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Subtitle */
.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: hero-sub-in 1.2s ease both;
  animation-delay: 1.1s;
  user-select: none;
  -webkit-user-select: none;
}

@keyframes hero-sub-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: hero-scroll-fade-in 0.8s ease both, hero-scroll-pulse 2.5s ease-in-out infinite;
  animation-delay: 1.8s, 2.6s;
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  display: block;
}

@keyframes hero-scroll-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.75;
  }
}

@keyframes hero-scroll-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ============================================================
   WORK — Gallery
   ============================================================ */
.gallery-group {
  margin-bottom: 56px;
}

.gallery-group:last-child {
  margin-bottom: 0;
}

.gallery-heading {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

/* Lawn care grid — masonry-like with mixed sizes */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 2px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3 C6 12 8 22 14 28 C20 32 30 28 29 18 C28 8 18 2 3 3 Z' fill='%232c5028' opacity='0.85'/%3E%3Cline x1='3' y1='3' x2='22' y2='26' stroke='%23a8c4a0' stroke-width='0.9' stroke-linecap='round'/%3E%3C/svg%3E") 3 3, pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* First two items span larger */
.gallery-grid .gallery-item:nth-child(1) {
  grid-row: span 1;
}

.gallery-grid .gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-grid .gallery-item:nth-child(4) img {
  aspect-ratio: 3 / 2;
}

/* Before & After pairs */
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.ba-pair:last-child {
  margin-bottom: 0;
}

.ba-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3 C6 12 8 22 14 28 C20 32 30 28 29 18 C28 8 18 2 3 3 Z' fill='%232c5028' opacity='0.85'/%3E%3Cline x1='3' y1='3' x2='22' y2='26' stroke='%23a8c4a0' stroke-width='0.9' stroke-linecap='round'/%3E%3C/svg%3E") 3 3, pointer;
}

.ba-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ba-item:hover img {
  transform: scale(1.03);
}

.ba-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(27, 36, 24, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-container {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-statement {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 28px;
  quotes: none;
}

.about-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 520px;
  margin: 0 auto 48px;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-n {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3.5rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-l {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background-color: var(--bg-deep);
  padding: 110px 0;
}

.quotes-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quote-item {
  text-align: center;
  padding: 40px 0;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.quote-item p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: rgba(240, 237, 229, 0.85);
  line-height: 1.5;
  margin-bottom: 14px;
}

.quote-item cite {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(240, 237, 229, 0.3);
  font-style: normal;
  display: block;
  text-align: center;
  text-transform: uppercase;
}

.quote-rule {
  width: 100%;
  height: 1px;
  background-color: rgba(240, 237, 229, 0.08);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background-color: var(--bg-deep);
  padding: 100px 0;
  border-top: 1px solid rgba(240, 237, 229, 0.1);
}

.contact-header {
  text-align: center;
  margin-bottom: 56px;
}

.contact-header .label {
  margin-bottom: 16px;
}

.contact-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: rgba(240, 237, 229, 0.9);
  line-height: 1;
}

/* Form */
.quote-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 237, 229, 0.4);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(240, 237, 229, 0.05);
  border: 1px solid rgba(240, 237, 229, 0.15);
  border-radius: 4px;
  color: rgba(240, 237, 229, 0.85);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(240, 237, 229, 0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(240, 237, 229, 0.4);
}

.form-group select {
  cursor: pointer;
  color: rgba(240, 237, 229, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(240,237,229,0.4)' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option {
  background-color: var(--bg-deep);
  color: rgba(240, 237, 229, 0.85);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.form-submit {
  width: 100%;
  border: 1px solid rgba(240, 237, 229, 0.25);
  background: transparent;
  color: rgba(240, 237, 229, 0.85);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: 4px;
}

.form-submit:hover {
  background: rgba(240, 237, 229, 0.1);
  border-color: rgba(240, 237, 229, 0.6);
  color: rgba(240, 237, 229, 1);
}

.form-submit:active {
  background: rgba(240, 237, 229, 0.18);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: #0b1209;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: rgba(240, 237, 229, 0.3);
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(240, 237, 229, 0.2);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.04em;
}

.footer-nav a:hover {
  color: rgba(240, 237, 229, 0.5);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(240, 237, 229, 0.2);
  flex-shrink: 0;
}

/* ============================================================
   SCROLL REVEAL — bidirectional, 6 distinct animation types
   All GPU-composited (only transform, opacity, clip-path).
   data-anim="up|left|right|focus|tilt|wipe-up|wipe-right"
   ============================================================ */

/* --- Default: fade-up --- */
.reveal,
[data-stagger-item] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- From left --- */
.reveal[data-anim="left"],
[data-stagger-item][data-anim="left"] {
  transform: translateX(-30px);
}

/* --- From right --- */
.reveal[data-anim="right"],
[data-stagger-item][data-anim="right"] {
  transform: translateX(30px);
}

/* --- Scale-focus: cinematic push-in --- */
.reveal[data-anim="focus"],
[data-stagger-item][data-anim="focus"] {
  transform: scale(0.88);
}

/* --- Tilt-rise: haunting, slightly rotated --- */
.reveal[data-anim="tilt"],
[data-stagger-item][data-anim="tilt"] {
  transform: translateY(22px) rotate(1.6deg);
}

/* --- Wipe-up: clip-path curtain rises from below ---
   Visible area grows upward — content appears to rise   */
.reveal[data-anim="wipe-up"],
[data-stagger-item][data-anim="wipe-up"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Wipe-right: clip-path curtain pulls left→right ---
   Text appears left edge first, expands across             */
.reveal[data-anim="wipe-right"],
[data-stagger-item][data-anim="wipe-right"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Visible: all variants resolve to natural position --- */
.reveal.visible,
[data-stagger-item].visible {
  opacity: 1;
  transform: none;
}

/* Wipe variants complete the clip reveal */
.reveal[data-anim^="wipe"].visible,
[data-stagger-item][data-anim^="wipe"].visible {
  clip-path: inset(0 0 0 0);
}

/* ============================================================
   PROJECT MODAL — fullscreen slideshow
   ============================================================ */
.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 8, 0.97);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-close {
  position: absolute;
  top: 28px;
  right: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 237, 229, 0.3);
  background: none;
  border: none;
  transition: color 0.2s ease;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3 C6 12 8 22 14 28 C20 32 30 28 29 18 C28 8 18 2 3 3 Z' fill='%232c5028' opacity='0.85'/%3E%3Cline x1='3' y1='3' x2='22' y2='26' stroke='%23a8c4a0' stroke-width='0.9' stroke-linecap='round'/%3E%3C/svg%3E") 3 3, pointer;
}

.modal-close:hover { color: rgba(240, 237, 229, 0.8); }

.modal-body {
  width: 100%;
  max-width: 1140px;
  padding: 0 16px;
}

/* Stage: arrow | slides | arrow in a row */
.modal-stage {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.modal-slides {
  position: relative;
  flex: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(240, 237, 229, 0.04);
}

.modal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-slide.active { opacity: 1; }

.modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Large flanking arrows */
.modal-arrow {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: rgba(240, 237, 229, 0.28);
  background: none;
  border: 1px solid rgba(240, 237, 229, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease,
              transform 0.2s ease;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3 C6 12 8 22 14 28 C20 32 30 28 29 18 C28 8 18 2 3 3 Z' fill='%232c5028' opacity='0.85'/%3E%3Cline x1='3' y1='3' x2='22' y2='26' stroke='%23a8c4a0' stroke-width='0.9' stroke-linecap='round'/%3E%3C/svg%3E") 3 3, pointer;
}

.modal-arrow:hover {
  color: rgba(240, 237, 229, 0.9);
  border-color: rgba(240, 237, 229, 0.35);
  background: rgba(240, 237, 229, 0.07);
}

#modal-prev:hover { transform: translateX(-3px); }
#modal-next:hover { transform: translateX(3px); }

/* Footer row: info left, dots right */
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.modal-info { text-align: left; }

.modal-title {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: rgba(240, 237, 229, 0.85);
  line-height: 1.2;
  margin-bottom: 5px;
}

.modal-loc {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 237, 229, 0.28);
}

.modal-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.modal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(240, 237, 229, 0.15);
  border: none;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3 C6 12 8 22 14 28 C20 32 30 28 29 18 C28 8 18 2 3 3 Z' fill='%232c5028' opacity='0.85'/%3E%3Cline x1='3' y1='3' x2='22' y2='26' stroke='%23a8c4a0' stroke-width='0.9' stroke-linecap='round'/%3E%3C/svg%3E") 3 3, pointer;
}

.modal-dot.active {
  background: #4a7845;
  transform: scale(1.4);
}

@media (max-width: 768px) {
  .modal-body { padding: 0 8px; }
  .modal-close { top: 16px; right: 16px; }
  .modal-slides { aspect-ratio: 3 / 4; }
  .modal-stage { gap: 8px; }
  .modal-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .modal-foot { flex-direction: column; gap: 14px; align-items: center; }
  .modal-info { text-align: center; }
}

/* ============================================================
   MARQUEE BAND — infinite conveyor of accreditations
   ============================================================ */
.marquee-band {
  background: var(--bg-deep);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(240, 237, 229, 0.05);
  border-bottom: 1px solid rgba(240, 237, 229, 0.05);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  /* pause on hover so users can read */
  animation: marquee-scroll 32s linear infinite;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 237, 229, 0.3);
  white-space: nowrap;
  padding: 0 32px;
  transition: color 0.2s ease;
}

.marquee-band:hover .marquee-item {
  color: rgba(240, 237, 229, 0.55);
}

.marquee-sep {
  color: var(--green);
  opacity: 0.55;
  font-size: 0.45rem;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet landscape / small laptop (≤1024px) --- */
@media (max-width: 1024px) {
  .container {
    padding-left: 36px;
    padding-right: 36px;
  }

  .nav-inner {
    padding: 20px 36px;
  }

  .gallery-grid {
    gap: 10px;
  }

  .ba-pair {
    gap: 10px;
  }

  .gallery-group {
    margin-bottom: 44px;
  }

  .modal-arrow {
    width: 56px;
    height: 56px;
  }
}

/* --- Tablet portrait / large phone (≤768px) --- */
@media (max-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Navbar */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-inner {
    padding: 16px 24px;
  }

  .nav-mobile {
    display: block;
  }

  .nav-mobile ul {
    padding: 12px 24px 20px;
  }

  /* Hero */
  .hero-logo {
    width: clamp(230px, 58vw, 500px);
  }

  .hero-sub {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
  }

  /* Section padding */
  .section {
    padding: 64px 0;
  }

  .testimonials-section {
    padding: 64px 0;
  }

  .contact-section {
    padding: 64px 0;
  }

  /* Gallery — 2-column grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-grid .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

  .gallery-grid .gallery-item:nth-child(4) img {
    aspect-ratio: 3 / 4;
  }

  /* 5th item fills the row on its own — make it landscape */
  .gallery-grid .gallery-item:nth-child(5) {
    grid-column: span 2;
  }

  .gallery-grid .gallery-item:nth-child(5) img {
    aspect-ratio: 3 / 2;
  }

  .ba-pair {
    gap: 8px;
  }

  .ba-label {
    top: 8px;
    left: 8px;
    font-size: 0.52rem;
    padding: 3px 8px;
  }

  .gallery-heading {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }

  .gallery-group {
    margin-bottom: 40px;
  }

  .label {
    margin-bottom: 32px;
  }

  /* About */
  .about-statement {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  .about-stats {
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Testimonials */
  .quote-item {
    padding: 28px 0;
  }

  /* Contact */
  .contact-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  .contact-header {
    margin-bottom: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-form {
    padding: 0 4px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* --- Phone (≤480px) --- */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-logo {
    width: clamp(200px, 62vw, 350px);
  }

  .hero-sub {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .hero-content {
    gap: 6px;
  }

  /* Gallery — keep 2 columns but tighter */
  .gallery-item img {
    aspect-ratio: 1 / 1;
  }

  .gallery-grid .gallery-item:nth-child(4) img {
    aspect-ratio: 1 / 1;
  }

  .gallery-grid .gallery-item:nth-child(5) img {
    aspect-ratio: 2 / 1;
  }

  .ba-item img {
    aspect-ratio: 1 / 1;
  }

  .gallery-group {
    margin-bottom: 32px;
  }

  .gallery-heading {
    font-size: 1.1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .ba-pair {
    margin-bottom: 16px;
  }

  /* About */
  .about-stats {
    gap: 20px;
  }

  .stat-n {
    font-size: 2.8rem;
  }

  .about-statement {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  /* Testimonials */
  .quote-item p {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  /* Contact */
  .contact-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .footer-nav {
    gap: 12px;
  }
}

/* --- Very small phone (≤360px) --- */
@media (max-width: 360px) {
  .hero-logo {
    width: 190px;
  }

  .hero-sub {
    letter-spacing: 0.12em;
  }

  .about-stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .gallery-grid {
    gap: 6px;
  }

  .ba-pair {
    gap: 6px;
  }
}

/* ============================================================
   CUSTOM CURSOR — leaf div with smooth hover rotation
   ============================================================ */

.leaf-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 99999;
  transform-origin: 3px 3px;
  rotate: 0deg;
  transition: rotate 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: translate;
}

.leaf-cursor.hovering {
  rotate: -25deg;
}

html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

html.has-custom-cursor input,
html.has-custom-cursor textarea {
  cursor: text !important;
}

/* ============================================================
   CUSTOM SCROLLBAR — parchment track, forest green thumb
   ============================================================ */

/* Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #e4e0d6; /* slightly deeper than --bg */
}

::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e3a1b;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--green) #e4e0d6;
}
