/* ===========================================================
   Vemula Groups — shared stylesheet (v2, artistic / app-like)
   =========================================================== */

:root {
  --navy: #0d1c31;
  --navy-light: #16304f;
  --navy-softer: #24486f;
  --accent: #d9711f;
  --accent-light: #f0934a;
  --accent-dim: rgba(217, 113, 31, 0.14);
  --cream: #faf7f2;
  --cream-deep: #f2ede3;
  --ink: #1c2430;
  --muted: #667085;
  --line: #e9e4da;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 20px 45px rgba(13, 28, 49, 0.14);
  --shadow-sm: 0 8px 22px rgba(13, 28, 49, 0.08);
  --shadow-pop: 0 16px 34px rgba(217, 113, 31, 0.28);
  --maxw: 1180px;
  --font-head: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* "backwards" only (not "both") — holding the animation's forward-fill
     state indefinitely makes the browser treat <body> as permanently
     "transform-animating", which makes it the containing block for any
     position:fixed descendant (like the mobile nav drawer), breaking it
     site-wide. The "to" state here already matches the un-animated base
     styles, so dropping the forwards fill changes nothing visually once
     the 0.6s animation finishes — it just stops pinning the containing
     block. */
  animation: pageFadeIn 0.6s var(--ease) backwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* subtle grain / warmth on light sections */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(13,28,49,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.28rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 1em; color: var(--muted); }

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

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

::selection { background: var(--accent); color: #fff; }

/* custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy-softer); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 88px 0;
  position: relative;
}

.section--grey { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #c7cedb; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: transform, opacity;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal--left { transform: translate(-34px, 14px); }
.reveal--right { transform: translate(34px, 14px); }
.reveal--up { transform: translateY(34px) scale(0.97); }
.reveal--left.in-view,
.reveal--right.in-view,
.reveal--up.in-view { transform: translate(0, 0) scale(1); }

/* also fade the photo in slightly after its card lands, for a two-step feel */
.reveal .card-photo { opacity: 0; transition: opacity 0.6s ease 0.15s; }
.reveal.in-view .card-photo { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 300;
  transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s var(--ease);
  overflow: hidden;
  isolation: isolate;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-pop);
}
.btn--primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 20px 40px rgba(217,113,31,0.36); }
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.14); border-color: #fff; transform: translateY(-2px); }

.btn--outline-navy {
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline-navy:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  border-bottom: 1px solid rgba(233, 228, 218, 0.7);
  transition: box-shadow 0.3s ease;
}
/* backdrop-filter lives on a pseudo-element rather than the header itself —
   applying it directly to .site-header would make the header the containing
   block for its fixed-position descendants (the mobile nav drawer), which
   breaks its full-screen positioning. See .nav-links below. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.3s ease;
}
.site-header.scrolled::before {
  background: rgba(255,255,255,0.9);
}
.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(13,28,49,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  flex-wrap: nowrap;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}
.logo-mark {
  flex-shrink: 0;
}
.logo-divider {
  width: 1px;
  height: 30px;
  background: var(--line);
  flex-shrink: 0;
}
.logo-word {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
  flex-shrink: 0;
}
/* Only the "Groups" half (wrapped in <em>) takes the accent italic treatment —
   the enclosing .logo-word span itself must stay navy/upright, otherwise the
   whole wordmark renders orange (a prior bug from an older single-span logo). */
.logo-word em { color: var(--accent); font-style: italic; }

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 8px 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transition: right 0.28s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy);
  z-index: 220;
}

.nav-cta { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 700px at 15% -10%, rgba(217,113,31,0.28), transparent 60%),
              linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 55%, var(--navy-softer) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
.hero-blob--1 { width: 340px; height: 340px; background: var(--accent); top: -80px; right: 6%; }
.hero-blob--2 { width: 260px; height: 260px; background: #4d7cb8; bottom: -100px; left: 8%; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16px, 24px) scale(1.06); }
}

.hero .container {
  padding-top: 128px;
  padding-bottom: 128px;
  position: relative;
  z-index: 2;
}

.hero-inner { max-width: 640px; }

.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--accent-light); }
.hero p.lead { color: #d3dae5; font-size: 1.18rem; max-width: 540px; }

.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.hero-stats .stat-num {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--accent-light);
  display: block;
}
.hero-stats .stat-label { font-size: 0.85rem; color: #b9c2d1; margin-top: 4px; }

.hero-photo {
  position: absolute;
  right: -60px;
  top: 0;
  bottom: 0;
  width: 46%;
  background-size: cover;
  background-position: center;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.9;
}
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,28,49,0.55), transparent 40%);
}

.page-hero {
  position: relative;
  background: radial-gradient(900px 500px at 90% -20%, rgba(217,113,31,0.25), transparent 60%),
              linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 76px 0 68px;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero .crumb { color: var(--accent-light); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; display: block; }
.page-hero p { color: #c7cedb; max-width: 620px; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 30px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px) rotate(-0.35deg); box-shadow: var(--shadow); }

.card-photo {
  height: 210px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}
.card-photo > * { transition: transform 0.6s var(--ease); }
.card:hover .card-photo { }
.card:hover .card-photo { background-size: 112%; }

.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 8px; }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: transform 0.3s var(--ease);
}
.card:hover .service-icon { transform: rotate(-6deg) scale(1.08); }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.process-step .num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Portfolio live search ---------- */
.portfolio-search {
  position: relative;
  max-width: 460px;
  margin: 0 auto 24px;
}
.portfolio-search-ico {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  font-size: 0.95rem;
  pointer-events: none;
}
.portfolio-search input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.portfolio-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 113, 31, 0.12);
}
.portfolio-search input::placeholder { color: #9aa3b4; }

.portfolio-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.portfolio-empty p { font-size: 1.02rem; }

/* ---------- Project filter bar ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.project-card { cursor: pointer; }
.project-card .card-photo { height: 250px; position: relative; }
.project-card .card-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,28,49,0) 35%, rgba(13,28,49,0.6) 100%);
}
.project-card .card-meta {
  position: absolute;
  bottom: 16px; left: 20px; right: 20px;
  z-index: 2;
  color: var(--white);
}
.project-card { position: relative; }
.project-card::before {
  content: '↗';
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s var(--ease);
}
.project-card:hover::before { opacity: 1; transform: translateY(0); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-card .stars { color: var(--accent); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card .who { font-weight: 700; color: var(--navy); margin-top: 14px; }
.testimonial-card .who span { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- Contact info cards ---------- */
.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-card .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.map-box {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 260px;
}

/* ---------- Project detail ---------- */
.project-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
  margin-bottom: 44px;
}
.project-meta-bar .m-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.project-meta-bar .m-value { font-weight: 600; color: var(--navy); font-size: 1.05rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 14px;
  margin-bottom: 22px;
}
.gallery-grid .g-item {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.gallery-grid .g-item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,28,49,0) 55%, rgba(13,28,49,0.35) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-grid .g-item:hover { transform: scale(1.02); }
.gallery-grid .g-item:hover::before { opacity: 1; }
.gallery-grid .g-item:hover::after {
  content: '⤢  View full size';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.gallery-grid .g-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8, 13, 22, 0.94);
  z-index: 400;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  touch-action: pan-y;
}
.lightbox.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 86vw;
  max-height: 74vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption { color: #d3dae5; margin-top: 16px; font-size: 0.9rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

.related-projects .card-photo { height: 180px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(700px 300px at 100% 0%, rgba(217,113,31,0.35), transparent 60%),
              linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: #c7cedb; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c7cedb;
  padding: 60px 0 110px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #c7cedb; font-size: 0.9rem; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--accent-light); }
.footer-logo { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; color: var(--white); margin-bottom: 14px; }
.footer-logo span { color: var(--accent-light); font-style: italic; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

@media (min-width: 681px) {
  .site-footer { padding-bottom: 60px; }
}

/* ---------- Floating action stack (desktop) ---------- */
.fab-stack {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 180;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-pop);
  transition: transform 0.25s var(--ease), background 0.2s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.05); background: var(--accent-light); }
.fab--top {
  width: 42px; height: 42px;
  background: var(--navy);
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.fab--top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab--top:hover { background: var(--accent); }

/* ---------- Mobile app-style bottom nav ---------- */
.app-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(13,28,49,0.08);
}
.app-nav-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.app-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 12px;
  transition: color 0.2s ease;
}
.app-nav-item .ic {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.2s var(--ease);
}
.app-nav-item.active { color: var(--accent); }
.app-nav-item.active .ic { transform: translateY(-2px); }
.app-nav-item:active .ic { transform: scale(0.88); }

.app-nav-cta {
  flex: 0 0 auto;
  margin: 0 4px;
  transform: translateY(-16px);
}
.app-nav-cta .ic {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--shadow-pop);
  border: 4px solid var(--white);
}
.app-nav-cta span { color: var(--navy); margin-top: 2px; }

/* ---------- Responsive ---------- */
/* Header nav switches to the drawer/hamburger pattern at <=900px (tablet and
   below) rather than <=680px — the full desktop nav (6 links + CTA button)
   next to the enlarged logo lockup has no room to breathe on tablet widths
   (~768-900px) and was crowding into the brand wordmark / wrapping the CTA
   button onto two lines. Below 900px there's plenty of room for just the
   logo + hamburger button. */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-photo { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .project-meta-bar { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, var(--navy), var(--navy-light));
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 32px;
    gap: 26px;
    display: none;
    z-index: 210;
  }
  .nav-links.open { display: flex; animation: slideIn 0.35s var(--ease); }
  @keyframes slideIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .nav-links a { color: #fff; font-size: 1.5rem; font-family: var(--font-head); }
  .nav-links a::after { background: var(--accent-light); }
  .nav-links .nav-cta { margin-left: 0; margin-top: 10px; }
  .nav-toggle { display: block; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }

  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }

  .hero .container { padding-top: 80px; padding-bottom: 64px; }
  .hero-stats { gap: 28px; }
  .hero-stats .stat-num { font-size: 1.8rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .gallery-grid .g-item:first-child { grid-column: span 2; grid-row: span 1; }
  .project-meta-bar { grid-template-columns: repeat(2, 1fr); padding: 20px; gap: 18px; }

  .app-nav { display: block; }
  .site-footer { padding-bottom: 118px; }
  .fab-stack { display: none; }
  .fab { width: 50px; height: 50px; font-size: 1.2rem; }
}

/* ===========================================================
   Additional components — real-content site (v3)
   =========================================================== */

/* ---------- Logo mark (image) ---------- */
.logo-mark { height: 52px; width: auto; display: block; }
.footer-logo-mark { height: 46px; width: auto; display: block; margin-bottom: 4px; }
.footer-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo-word {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1;
}
.footer-logo-word em { color: var(--accent-light); font-style: italic; }

@media (max-width: 460px) {
  .logo-word { font-size: 1.2rem; }
  .logo-mark { height: 40px; }
  .logo-divider { display: none; }
  .logo { gap: 10px; }
}

/* ---------- Hero video background ---------- */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 700px at 15% -10%, rgba(217,113,31,0.25), transparent 60%),
              linear-gradient(150deg, rgba(13,28,49,0.92) 0%, rgba(22,48,79,0.88) 55%, rgba(36,72,111,0.85) 100%);
  z-index: 1;
}

/* ---------- Partner logo marquee (continuous auto-scroll) ---------- */
.partner-marquee {
  position: relative;
  overflow: hidden;
  /* fade the logos out at each edge instead of a hard clip */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.partner-track {
  display: flex;
  width: max-content;
  animation: partnerScroll 26s linear infinite;
}
.partner-marquee:hover .partner-track { animation-play-state: paused; }
.partner-set {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
  flex-shrink: 0;
}
.partner-set img {
  height: 46px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.partner-set img:hover { filter: grayscale(0) opacity(1); transform: translateY(-2px); }

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

@media (prefers-reduced-motion: reduce) {
  .partner-track { animation: none; }
}

@media (max-width: 680px) {
  .partner-set { gap: 40px; padding-right: 40px; }
  .partner-set img { height: 34px; }
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  text-align: center;
}
.stat-strip .stat-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
}
.stat-strip .stat-label { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }

/* ---------- Pull quote ---------- */
.pull-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--navy);
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 20px;
}
.pull-quote::before {
  content: '\201C';
  font-family: var(--font-head);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.5;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.pull-quote-by {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 18px;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 32px;
  border-left: 2px solid var(--line);
}
.timeline-item {
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

/* ---------- Amenity / feature list ---------- */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.amenity-item .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.amenity-item span { font-weight: 600; font-size: 0.92rem; color: var(--navy); }

/* ---------- Rhythm / day cards ---------- */
.rhythm-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.rhythm-card .time-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Product cards (coffee & spices) ---------- */
.product-card { text-align: left; }
.product-card .card-photo { height: 240px; }
.product-note {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin-top: 10px;
}

/* ---------- Engagement model cards ---------- */
.engagement-card { position: relative; padding: 30px; }
.engagement-card.popular { border-color: var(--accent); box-shadow: var(--shadow); }
.popular-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.engagement-duration {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--cream);
  padding: 6px 14px;
  border-radius: 20px;
}

/* ---------- FAQ (native details/summary) ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; margin-bottom: 0; }

/* ---------- Airport strip (portfolio page) ---------- */
.airport-strip .card-photo { height: 210px; }

/* ---------- Category badge variants ---------- */
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- Founder spotlight ---------- */
.founder-portrait-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.founder-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(217,113,31,0.22), transparent 60%),
              linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 60%, var(--navy-softer) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow);
}
.founder-ring::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.4;
}
.founder-monogram {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 4.2rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.founder-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-pop);
}

@media (max-width: 680px) {
  .founder-ring { width: 210px; height: 210px; }
  .founder-monogram { font-size: 3.2rem; }
}

@media (max-width: 900px) {
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { gap: 40px; }
}

@media (max-width: 680px) {
  .amenity-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 26px; }
  .stat-strip { gap: 30px; }
  .stat-strip .stat-num { font-size: 2rem; }
}
