/* ==========================================================================
   Bay Cypress – modern forestry theme
   ========================================================================== */
:root {
  --forest: #0e1a13;
  --forest-2: #13241a;
  --moss: #1f3a2b;
  --fern: #4f6b4a;
  --sage: #a3b59a;
  --bark: #2d2018;
  --cream: #f5f0e6;
  --paper: #fbf8f2;
  --ink: #1b1f1b;
  --muted: #5d665c;
  --accent: #c8954a;
  --accent-2: color-mix(in srgb, var(--accent) 70%, #fff);
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-in-out: cubic-bezier(.77, 0, .18, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7;
  color: var(--ink); background: var(--paper); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.dark { background: var(--forest); color: var(--cream); }
::selection { background: var(--accent); color: #fff; }

/* subtle film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-5%,3%)} 40%{transform:translate(3%,-6%)} 60%{transform:translate(-7%,2%)} 80%{transform:translate(5%,5%)} }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
.section-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-variation-settings: "opsz" 144; }
.section-title.small { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 700; color: var(--accent);
}
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(var(--k, 0)); transition: transform 1s var(--ease) .2s; }
.kicker.in::before { --k: 1; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.dark .lead { color: color-mix(in srgb, var(--cream) 72%, transparent); }
.center-head { text-align: center; margin-bottom: clamp(40px, 6vw, 70px); }
.center-head .lead { margin-inline: auto; }
.prose p { margin: 0 0 1.1em; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--accent); position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 28px; border-radius: 999px; border: 0; background: var(--bg); color: #fff;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forest);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .6s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.btn:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.btn-ghost { --bg: transparent; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost::before { background: var(--cream); }
.btn-ghost:hover { color: var(--forest); }
.btn-light::before { background: var(--cream); }
.btn-light:hover { color: var(--forest); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.arrow { display: inline-block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .4s var(--ease); }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.arrow.left { transform: scaleX(-1); }
.arrow.up { transform: rotate(-90deg); }
.btn:hover .arrow, .text-link:hover .arrow, .learn-card:hover .arrow { transform: translateX(5px); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--forest); color: var(--cream);
  transition: clip-path 1.1s var(--ease-in-out) .1s; clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.rings { width: 130px; height: 130px; }
.rings circle {
  fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .85;
  stroke-dasharray: 600; stroke-dashoffset: 600; animation: ring 1.4s var(--ease) forwards; animation-delay: var(--d);
}
@keyframes ring { to { stroke-dashoffset: 0; } }
.loader-name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .3em; text-transform: uppercase; opacity: 0; animation: fadeUp .8s var(--ease) .6s forwards; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; transition: background .5s, box-shadow .5s, transform .5s var(--ease); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 28px; width: min(1360px, 100% - 40px); margin-inline: auto; transition: height .4s var(--ease); }
.site-header.scrolled { background: color-mix(in srgb, var(--forest) 86%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.site-header.scrolled .bar { height: 64px; }
.site-header.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; transition: transform .8s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: .02em; }
.brand-text small { font-size: .72rem; letter-spacing: .08em; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { margin-left: auto; display: flex; gap: 4px; }
.main-nav a { position: relative; padding: 8px 12px; text-decoration: none; font-size: .9rem; font-weight: 600; opacity: .85; transition: opacity .3s; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(var(--p, 0)); }

.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; position: relative; z-index: 102; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: transform .45s var(--ease), opacity .3s; }
.menu-toggle span:nth-child(1) { top: 16px; } .menu-toggle span:nth-child(2) { top: 22px; } .menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--forest); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 32px 40px;
  clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path .8s var(--ease-in-out); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); text-decoration: none; line-height: 1.2;
  display: flex; align-items: baseline; gap: 16px; opacity: 0; transform: translateY(30px);
  transition: opacity .5s, transform .6s var(--ease); transition-delay: calc(.25s + var(--i) * .06s);
}
.mobile-menu nav a span { font-family: var(--sans); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.mm-foot { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; opacity: .7; font-size: .95rem; }
.mm-foot a { text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--forest); }
.hero-media { position: absolute; inset: -8% 0 0; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); animation: kenburns 22s ease-out forwards; }
.is-loading .hero-media img { animation-play-state: paused; }
@keyframes kenburns { to { transform: scale(1.02); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(100deg, rgba(8,16,11,calc(var(--shade) + .25)) 0%, rgba(8,16,11,var(--shade)) 45%, rgba(8,16,11,calc(var(--shade) - .25)) 100%),
  linear-gradient(0deg, rgba(8,16,11,.7), transparent 40%); }
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding: calc(var(--header-h) + 40px) 0 160px; }
.eyebrow { display: flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .24em; font-size: .75rem; font-weight: 700; color: var(--accent-2); margin: 0 0 26px; }
.eyebrow .line { width: 48px; height: 1px; background: currentColor; }
.hero-title { font-size: clamp(3rem, 9.5vw, 8.4rem); line-height: 1; font-weight: 300; margin: 0 0 30px; font-variation-settings: "opsz" 144; }
.hero-title .t1, .hero-title .t2 { display: block; }
.hero-title .t1 { margin-bottom: -.08em; }
.hero-title .t2 { font-style: italic; color: var(--accent-2); font-weight: 400; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .22em 0; }
.w > span { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: left bottom; transition: transform 1.2s var(--ease); transition-delay: calc(.35s + var(--i) * .09s); }
.ready .w > span { transform: none; }
.hero-desc { max-width: 54ch; font-size: clamp(1.02rem, 1.6vw, 1.22rem); opacity: .88; margin: 0 0 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-anim { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d); }
.ready .hero-anim { opacity: 1; transform: none; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 120px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.treeline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 11vw, 160px); z-index: 2; }
.treeline .far { fill: var(--moss); opacity: .6; }
.treeline .near { fill: var(--forest); }

/* ---------- Stats ---------- */
.stats { background: var(--forest); color: var(--cream); padding: 10px 0 70px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.stat { padding: 34px 26px 0; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--accent-2); font-weight: 300; }
.stat-num small { font-size: .42em; margin-left: 4px; color: var(--cream); opacity: .7; }
.stat-label { margin-top: 10px; font-size: .9rem; opacity: .7; max-width: 22ch; }

/* ---------- About ---------- */
.about { overflow: hidden; background: var(--paper); }
.ring-deco { position: absolute; width: 640px; right: -220px; top: 40px; opacity: .5; pointer-events: none; }
.ring-deco circle { fill: none; stroke: color-mix(in srgb, var(--accent) 30%, transparent); stroke-width: 1; }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; position: relative; }
.about-media { position: relative; min-height: 560px; }
.about-media figure { margin: 0; position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: 0 40px 70px -40px rgba(20,30,20,.6); }
.about-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.8s var(--ease); }
.about-media .in img { transform: scale(1.02); }
.img-a { left: 0; top: 0; width: 66%; height: 86%; }
.img-b { right: 0; bottom: 0; width: 50%; height: 56%; border: 8px solid var(--paper); }
.badge { position: absolute; left: 50%; top: 8%; transform: translateX(10%); background: var(--accent); color: #fff; border-radius: 50%; width: 132px; height: 132px; display: grid; place-content: center; text-align: center; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.badge strong { font-family: var(--serif); font-size: 2.3rem; font-weight: 400; line-height: 1; }
.badge strong small { font-size: .5em; }
.badge span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; padding: 4px 14px 0; line-height: 1.3; }
.badge.in { animation: spinIn 1.2s var(--ease) both; }
@keyframes spinIn { from { transform: translateX(10%) rotate(-90deg) scale(.4); opacity: 0; } to { transform: translateX(10%) rotate(0) scale(1); opacity: 1; } }
.about-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 10px; }
.text-link { background: none; border: 0; padding: 4px 0; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--moss); border-bottom: 1px solid color-mix(in srgb, var(--moss) 30%, transparent); }
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Gallery ---------- */
.gallery { overflow: hidden; background: radial-gradient(ellipse at 20% 0%, var(--moss), var(--forest) 60%); }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; }
.g-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.g-count { font-family: var(--serif); font-size: 1.1rem; margin-right: 10px; opacity: .8; }
.g-count b { color: var(--accent-2); font-weight: 400; font-size: 1.5rem; }
.g-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; display: grid; place-items: center; transition: background .35s, border-color .35s, transform .35s var(--ease); }
.g-btn:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.g-btn:disabled { opacity: .3; pointer-events: none; }
.g-track {
  display: flex; gap: 26px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 10px max(24px, (100% - 1240px) / 2) 30px; scroll-padding-inline: max(24px, (100% - 1240px) / 2);
  scrollbar-width: none; cursor: grab; outline: none;
}
.g-track::-webkit-scrollbar { display: none; }
.g-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.g-track.dragging .g-item { pointer-events: none; }
.g-item { flex: 0 0 clamp(270px, 30vw, 400px); margin: 0; scroll-snap-align: start; opacity: 0; transform: translateX(80px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i) * .08s); }
.gallery.in .g-item { opacity: 1; transform: none; }
.g-item:nth-child(3n+2) .g-open { aspect-ratio: 4/5.2; }
.g-open { position: relative; display: block; width: 100%; aspect-ratio: 4/4.6; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--moss); }
.g-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.g-open::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 50%); opacity: 0; transition: opacity .5s; }
.g-item:hover .g-open img { transform: scale(1.08); filter: saturate(1.1); }
.g-item:hover .g-open::after { opacity: 1; }
.g-zoom { position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease); }
.g-zoom svg { width: 20px; fill: none; stroke: var(--forest); stroke-width: 2; }
.g-item:hover .g-zoom, .g-open:focus-visible .g-zoom { transform: none; }
.g-item figcaption { padding: 18px 4px 0; display: grid; gap: 4px; }
.g-num { font-size: .72rem; letter-spacing: .2em; color: var(--accent-2); }
.g-item strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.g-desc { font-size: .9rem; opacity: .65; line-height: 1.55; }
.g-progress { height: 2px; background: rgba(255,255,255,.12); margin-top: 20px; border-radius: 2px; overflow: hidden; }
.g-progress span { display: block; height: 100%; width: var(--w, 20%); background: var(--accent); transform: translateX(var(--x, 0)); transition: transform .15s linear; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(6,12,8,.96); display: grid; grid-template-rows: 1fr auto; visibility: hidden; opacity: 0; transition: opacity .45s, visibility 0s .45s; }
.lightbox.open { visibility: visible; opacity: 1; transition: opacity .45s; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 70px 90px 10px; overflow: hidden; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 8px; box-shadow: 0 40px 80px -30px #000; transition: transform .55s var(--ease), opacity .4s; }
.lb-stage img.swap-l { transform: translateX(-60px) scale(.96); opacity: 0; }
.lb-stage img.swap-r { transform: translateX(60px) scale(.96); opacity: 0; }
.lb-cap { color: var(--cream); text-align: center; padding: 16px 24px 28px; max-width: 760px; margin: 0 auto; }
.lb-cap .lb-n { display: block; font-size: .72rem; letter-spacing: .2em; color: var(--accent-2); }
.lb-cap strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.lb-cap p { margin: 4px 0 0; opacity: .7; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 2rem; line-height: 1; transition: transform .4s var(--ease), background .3s; }
.lb-close:hover { transform: rotate(90deg); background: var(--accent); }
.lb-prev, .lb-next { position: absolute; top: 45%; }
.lb-prev { left: 22px; } .lb-next { right: 22px; }
.lb-fly { position: fixed; z-index: 501; object-fit: cover; border-radius: var(--radius); transition: all .6s var(--ease); pointer-events: none; }

/* ---------- Learn more ---------- */
.learn { background: var(--cream); }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.learn-card {
  position: relative; text-align: left; border: 0; padding: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 30px 50px -40px rgba(20,40,20,.5);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.learn-card:hover { transform: translateY(-8px); box-shadow: 0 50px 70px -40px rgba(20,40,20,.6); }
.lc-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--moss); position: relative; }
.lc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.learn-card:hover .lc-media img { transform: scale(1.08); }
.lc-media::after { content: ""; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: multiply; opacity: 0; transition: opacity .6s; }
.learn-card:hover .lc-media::after { opacity: .25; }
.lc-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lc-num { font-size: .72rem; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
.lc-body strong { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.15; }
.lc-sum { color: var(--muted); font-size: .95rem; flex: 1; }
.lc-more { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: .88rem; color: var(--moss); margin-top: 10px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 3vh 3vw; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,16,11,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; width: min(1100px, 100%); height: min(92vh, 100%); background: var(--paper); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 60px 120px -40px rgba(0,0,0,.7);
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .8s var(--ease-in-out);
}
.modal.open .modal-panel { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 28px; background: var(--forest); color: var(--cream); }
.modal-head h2 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.modal-close { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 1.8rem; line-height: 1; transition: transform .4s var(--ease), background .3s; }
.modal-close:hover { transform: rotate(90deg); background: var(--accent); }
.modal-body { overflow-y: auto; padding: clamp(24px, 4vw, 54px); overscroll-behavior: contain; }
.modal-body > * { opacity: 0; transform: translateY(16px); animation: fadeUp .7s var(--ease) forwards; }
.modal-body > *:nth-child(2) { animation-delay: .06s; } .modal-body > *:nth-child(3) { animation-delay: .12s; } .modal-body > *:nth-child(n+4) { animation-delay: .18s; }
.modal-loading { display: grid; place-items: center; min-height: 40vh; }
.modal-loading .rings { width: 80px; height: 80px; }
.modal-loading .rings circle { animation-iteration-count: infinite; animation-direction: alternate; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* content pages inside the modal */
.lm-page { max-width: 880px; margin: 0 auto; font-size: 1.02rem; }
.lm-page h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 1.6em; color: var(--moss); }
.lm-page h3 { font-size: 1.35rem; margin-top: 1.4em; color: var(--moss); }
.lm-page h2:first-child, .lm-page > :first-child h2 { margin-top: 0; }
.lm-page .lm-intro { font-size: 1.18rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 20px; }
.lm-page ul { padding-left: 1.2em; } .lm-page li { margin-bottom: .4em; } .lm-page li::marker { color: var(--accent); }
.lm-page img { border-radius: 14px; width: 100%; height: auto; }
.lm-page figure { margin: 1.6em 0; } .lm-page figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.lm-page .lm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin: 1.5em 0; }
.lm-page .lm-split img { aspect-ratio: 4/5; object-fit: cover; }
.lm-page .lm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 1.4em 0; }
.lm-page .lm-cards > div { background: var(--cream); padding: 18px 20px; border-radius: 14px; }
.lm-page .lm-cards b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--moss); margin-bottom: 4px; }
.lm-page .table-wrap { overflow-x: auto; margin: 1.4em 0; border-radius: 14px; border: 1px solid #e6dfd2; }
.lm-page table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.lm-page th { background: var(--moss); color: var(--cream); text-align: left; padding: 12px 14px; font-weight: 600; }
.lm-page td { padding: 11px 14px; border-top: 1px solid #ece5d8; vertical-align: top; }
.lm-page tr:nth-child(even) td { background: #f7f2e9; }
.lm-page .lm-note { background: var(--forest); color: var(--cream); border-radius: 16px; padding: 22px 26px; margin: 1.8em 0; }
.lm-page .lm-note h3 { color: var(--accent-2); margin-top: 0; }
.lm-page .pill { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: .8rem; }

/* ---------- Talk to us ---------- */
.wood {
  background-color: var(--bark); color: var(--cream);
  background-image:
    linear-gradient(90deg, rgba(45,32,24,.97), rgba(45,32,24,.86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .09' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .78 0 0 0 0 .58 0 0 0 0 .29 0 0 0 1.2 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  background-size: cover, 600px 300px;
}
.talk-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.talk .lead { color: color-mix(in srgb, var(--cream) 75%, transparent); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.06rem; }
.checks svg { flex-shrink: 0; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--accent); fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .8s var(--ease) calc(.3s + var(--i) * .1s); }
.checks li.in svg { stroke-dashoffset: 0; }
.note-card { background: var(--cream); color: var(--ink); border-radius: 24px; padding: clamp(28px, 4vw, 44px); position: relative; box-shadow: 0 50px 80px -50px #000; }
.note-card h3 { font-size: 1.8rem; color: var(--moss); }
.note-card p { color: var(--muted); }
.note-ico { width: 54px; margin-bottom: 18px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; }
.note-card.in .note-ico { animation: drive 1.6s var(--ease) .5s both; }
@keyframes drive { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--paper); overflow: hidden; }
.t-slider { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.t-quote { width: 64px; fill: var(--accent); opacity: .9; margin: 0 auto 20px; }
.t-slides { display: grid; }
.t-slide { grid-area: 1/1; margin: 0; opacity: 0; transform: translateY(20px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s; pointer-events: none; }
.t-slide.active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.t-slide p { font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 2.25rem); line-height: 1.35; font-weight: 300; font-style: italic; margin: 0 0 34px; }
.t-slide footer { display: inline-flex; align-items: center; gap: 14px; text-align: left; flex-wrap: wrap; justify-content: center; }
.t-slide footer img, .t-initial { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.t-initial { display: grid; place-items: center; background: var(--moss); color: var(--cream); font-family: var(--serif); font-size: 1.4rem; }
.t-slide footer strong { display: block; font-size: 1.05rem; }
.t-slide footer small { color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 2px; margin-left: 6px; }
.stars i { font-style: normal; color: #d9d2c4; }
.t-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.t-nav .g-btn { border-color: #cfc6b5; color: var(--ink); }
.t-nav .g-btn:hover { color: #fff; }
.t-dots { display: flex; gap: 8px; }
.t-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: #d5ccbb; transition: width .5s var(--ease), background .4s; }
.t-dots button.on { width: 34px; background: var(--accent); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--forest), var(--forest-2)); }
.findus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: clamp(50px, 7vw, 90px); }
.find-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 32px; border-radius: var(--radius); text-decoration: none;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), border-color .4s;
}
.find-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); transition: transform .6s var(--ease); }
.find-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.find-card:hover::before { transform: none; }
.find-card svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.08); fill: none; stroke: var(--accent-2); stroke-width: 1.8; margin-bottom: 14px; transition: stroke .4s, background .4s; }
.find-card:hover svg { stroke: #fff; background: rgba(255,255,255,.2); }
.find-card small { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; opacity: .65; font-weight: 700; }
.find-card strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.8vw, 1.45rem); word-break: break-word; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: stretch; }
.contact-grid.no-map { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.map-wrap { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--moss); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.4) contrast(1.05) sepia(.15); }
.form-wrap { scroll-margin-top: 90px; }
.contact-form { display: grid; gap: 16px; margin-top: 26px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04);
  color: var(--cream); font: inherit; font-size: 1rem; outline: none; transition: border-color .3s, background .3s, box-shadow .3s; resize: vertical;
}
.field label { position: absolute; left: 19px; top: 18px; font-size: 1rem; opacity: .6; pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), opacity .3s, color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.74); opacity: .9; color: var(--accent-2); }
.field.invalid input, .field.invalid textarea { border-color: #e07a5f; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { justify-self: start; }
.btn-submit .spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-submit.busy .spin { display: block; } .btn-submit.busy .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 0; min-height: 1.6em; font-weight: 600; }
.form-status.ok { color: #a8d5a2; } .form-status.err { color: #f2a48d; }
.contact-form.sent { animation: sent .9s var(--ease); }
@keyframes sent { 40% { transform: scale(.98); opacity: .6; } }

/* ---------- Footer ---------- */
.site-footer { background: #08110c; color: color-mix(in srgb, var(--cream) 80%, transparent); padding: 80px 0 30px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.f-tag { font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin: 18px 0; color: var(--cream); max-width: 26ch; }
.site-footer h4 { font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .22em; color: var(--accent); font-weight: 700; }
.f-links, .f-contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; transition: color .3s; }
.f-links a:hover, .f-contact a:hover { color: var(--accent-2); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); transition: background .3s, transform .4s var(--ease); }
.socials a:hover { background: var(--accent); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.f-bottom { display: flex; align-items: center; gap: 20px; padding-top: 26px; font-size: .85rem; opacity: .7; }
.f-admin { margin-left: auto; opacity: .6; }
.to-top { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; transition: background .3s, transform .4s var(--ease); }
.to-top:hover { background: var(--accent); transform: translateY(-4px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * .1s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(0 100% 0 0 round var(--radius)); transition: clip-path 1.4s var(--ease-in-out); }
.reveal-clip.from-right { clip-path: inset(0 0 0 100% round var(--radius)); transition-delay: .25s; }
.reveal-clip.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.section-title.reveal { transform: translateY(40px) skewY(2deg); }
.section-title.reveal.in { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 960px) {
  .about-grid, .talk-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { min-height: 440px; order: 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .findus { grid-template-columns: 1fr; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .map-wrap, .map-wrap iframe { min-height: 320px; }
  .lm-page .lm-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 68px; }
  .container { width: calc(100% - 36px); }
  .brand img { width: 40px; height: 40px; }
  .brand-text small { display: none; }
  .hero-inner { padding-bottom: 130px; }
  .scroll-cue { bottom: 92px; }
  .row2 { grid-template-columns: 1fr; }
  .about-media { min-height: 360px; }
  .badge { width: 104px; height: 104px; } .badge strong { font-size: 1.8rem; }
  .g-controls .g-count { display: none; }
  .g-btn { width: 46px; height: 46px; }
  .g-item { flex-basis: 78vw; }
  .lb-stage { padding: 70px 12px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; }
  .lb-cap { padding-bottom: 86px; }
  .modal { padding: 0; }
  .modal-panel { height: 100%; border-radius: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .stat { padding: 26px 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .grain { display: none; }
}
