/* ============================================
   TRAZO STUDIOS — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  /* Light section palette (default) */
  --bg:           #f5f2ec;
  --bg-2:         #ede9e1;
  --bg-3:         #e4dfd5;
  --text:         #2c2a24;
  --text-muted:   #6b6b62;
  --border:       #d8d3c8;

  /* Dark section palette */
  --dark-bg:      #0f100f;
  --dark-bg-2:    #191c19;
  --dark-bg-3:    #272e27;
  --dark-text:    #edf0e8;
  --dark-muted:   #6b7a6b;
  --dark-border:  #272e27;

  /* Brand accents */
  --accent:       #5a8060;   /* deeper sage — primary */
  --accent-2:     #a0687a;   /* dusty rose — secondary */
  --accent-3:     #d4f000;   /* acid yellow — rarest pop */
  --neutral:      #6b6b62;   /* warm neutral */

  /* Typography */
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Layout */
  --max-width:    1200px;
  --gap:          clamp(1.5rem, 4vw, 3rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Dark section override ---- */
.dark-section {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.dark-section .eyebrow { color: var(--accent); }
.dark-section p { color: var(--dark-muted); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

p { max-width: 60ch; }
p + p { margin-top: 1rem; }

/* ---- Layout ---- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}
section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section-header { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-header .eyebrow { margin-bottom: 0.8rem; }

/* ---- Nav ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}
/* On hero (dark bg), nav starts transparent — light logo visible */
nav.scrolled {
  background: #0f100f;
  backdrop-filter: none;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(237,224,216,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Logo — single img, src swapped by JS */
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(237, 240, 232, 0.65); /* light on dark hero */
  transition: color 0.2s;
}
nav.scrolled .nav-links a {
  color: rgba(237, 240, 232, 0.65);
}
.nav-links a:hover,
.nav-links a.active { color: var(--dark-text); }
nav.scrolled .nav-links a:hover,
nav.scrolled .nav-links a.active { color: var(--dark-text); }

.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5rem 1.2rem;
  transition: background 0.2s, color 0.2s;
}
.nav-links .nav-cta:hover {
  background: var(--accent);
  color: var(--dark-bg);
}
nav.scrolled .nav-links .nav-cta {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--dark-text);
  transition: transform 0.3s, opacity 0.3s;
}
nav.scrolled .nav-toggle span { background: var(--text); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--dark-bg);
}
.btn-primary:hover {
  background: #6a9070;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138, 170, 122, 0.2);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}
/* Dark section buttons */
.dark-section .btn-outline {
  color: var(--dark-text);
  border-color: var(--dark-border);
}
.dark-section .btn-outline:hover { border-color: var(--dark-text); }

/* ---- Divider ---- */
.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem 0;
}

/* ============================================
   HOME — index.html
   ============================================ */

/* Hero — light cream version */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}
.hero .eyebrow { color: var(--accent); }
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(245,242,236,0) 0%, rgba(245,242,236,0.4) 50%, rgba(245,242,236,1) 100%);
  z-index: 1;
}

/* Hero Slideshow */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

/* Legacy single bg img (keep for fallback) */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  z-index: 0;
}
.hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

/* Slideshow nav dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(44, 42, 36, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.hero-content {
  position: relative;
  z-index: 2;
}
.hero-content .eyebrow { margin-bottom: 1.5rem; }
.hero h1 {
  max-width: 16ch;
  margin-bottom: 2rem;
  color: var(--text);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-outline {
  color: var(--text);
  border-color: var(--border);
}
.hero .btn-outline:hover { border-color: var(--text); }

/* Clients strip */
.clients {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg);
}
.clients-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.clients-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.clients-logos {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.clients-logos span {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.clients-logos span:hover { color: var(--text); }

/* Capabilities preview */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cap-item {
  background: var(--bg);
  padding: 3rem 2.5rem;
  border-left: 2px solid transparent;
  transition: background 0.2s, border-left-color 0.25s;
}
.cap-item:hover {
  background: var(--bg-2);
  border-left-color: var(--accent);
}
.cap-num {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.cap-item h3 { margin-bottom: 1rem; }
.cap-item p { color: var(--text-muted); font-size: 0.95rem; }
.cap-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.cap-link::after { content: '→'; }

/* Featured work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.work-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  cursor: pointer;
}
.work-item:nth-child(1) { grid-column: span 7; }
.work-item:nth-child(2) { grid-column: span 5; }
.work-item:nth-child(3) { grid-column: span 5; }
.work-item:nth-child(4) { grid-column: span 7; }
.work-item-img {
  aspect-ratio: 4/3;
  background: var(--bg-3);
  overflow: hidden;
}
.work-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease, opacity 0.35s ease;
  opacity: 0.8;
}
.work-item:hover .work-item-img img { transform: scale(1.05); opacity: 0.95; }
.work-item-info { padding: 1.25rem 1.5rem; }
.work-item-info .eyebrow { margin-bottom: 0.4rem; }
.work-item-info h4 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 400; }

/* Testimonial */
.testimonial { background: var(--bg-2); }
.testimonial-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
  align-items: center;
}
.testimonial blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  max-width: none;
}
.testimonial cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* About teaser */
.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.about-teaser h2 { margin-bottom: 1.5rem; }
.about-teaser p { color: var(--text-muted); }
.about-teaser .btn { margin-top: 2rem; }

/* ============================================
   CAPABILITIES — capabilities.html
   ============================================ */

.page-hero {
  padding-top: clamp(8rem, 15vw, 12rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero h1 { max-width: 18ch; margin-bottom: 1.5rem; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; }

.service-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border);
}
.service-block:last-of-type { border-bottom: 1px solid var(--border); }
.service-label { padding-top: 0.3rem; }
.service-label .eyebrow { margin-bottom: 0.5rem; }
.service-label h3 { margin-bottom: 0; }
.service-detail h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-top: 0;
  font-family: var(--font-body);
  text-transform: uppercase;
}
.service-detail p { color: var(--text-muted); margin-bottom: 1.5rem; }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.process { background: var(--bg-2); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.step-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}
.process-step h4 { margin-bottom: 0.75rem; }
.process-step p { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================
   WORK — work.html
   ============================================ */

.work-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--text);
  color: var(--text);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.case-item {
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s;
}
.case-item:hover { background: var(--bg-2); }
.case-thumb {
  aspect-ratio: 4/3;
  background: var(--bg-3);
  overflow: hidden;
}
.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.3s, transform 0.5s;
}
.case-item:hover .case-thumb img { opacity: 0.9; transform: scale(1.03); }
.case-info { padding: 1.5rem; }
.case-info .eyebrow { margin-bottom: 0.5rem; font-size: 0.65rem; }
.case-info h3 { font-size: 1.15rem; font-weight: 400; margin-bottom: 0.5rem; }
.case-info p { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================
   ABOUT — about.html
   ============================================ */

.about-hero {
  padding-top: clamp(8rem, 15vw, 12rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.about-layout {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(3rem, 8vw, 6rem);
}
.about-body h2 { margin-bottom: 1.5rem; }
.about-body p { color: var(--text-muted); }
.sidebar-block {
  padding: 2rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.sidebar-block h4 { margin-bottom: 1.2rem; color: var(--text-muted); }
.sidebar-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li strong { color: var(--text); font-weight: 400; display: block; }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.expertise-item {
  background: var(--bg);
  padding: 2rem;
}
.expertise-item h4 { margin-bottom: 0.75rem; }
.expertise-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================
   CONTACT — contact.html
   ============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 6rem);
  padding-top: clamp(8rem, 15vw, 12rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.contact-info h1 { margin-bottom: 1.5rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-detail { margin-top: 3rem; }
.contact-detail-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
}
.contact-detail-item:first-child { border-top: 1px solid var(--border); }
.contact-detail-item .eyebrow { min-width: 80px; }
.contact-detail-item a { color: var(--text-muted); transition: color 0.2s; }
.contact-detail-item a:hover { color: var(--text); }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select option { background: var(--bg-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }

/* ============================================
   FOOTER — always dark
   ============================================ */
footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  padding: 3rem 0;
  color: var(--dark-text);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo { display: flex; align-items: center; }
.footer-logo img { height: 31px; width: auto; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--dark-text); }
.footer-copy {
  font-size: 0.72rem;
  color: var(--dark-muted);
  width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .caps-grid { grid-template-columns: 1fr; }
  .work-item:nth-child(n) { grid-column: span 12; }
  .testimonial-inner { grid-template-columns: 1fr; }
  .about-teaser-inner { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--dark-bg);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
  }
  .nav-links.open a { font-size: 1rem; color: var(--dark-text); }
}
@media (max-width: 600px) {
  .case-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .clients-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   CASE STUDY DRAWER
   ============================================ */
.cap-case[data-case] { cursor: pointer; }
.cap-case[data-case] .cap-case-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}
.cap-case-open-hint {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.cap-case[data-case]:hover .cap-case-open-hint { opacity: 1; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(600px, 95vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 201;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
}
.drawer-header-text .eyebrow { margin-bottom: 0.4rem; }
.drawer-header-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; }
.drawer-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: border-color 0.2s, color 0.2s;
}
.drawer-close:hover { border-color: var(--text); color: var(--text); }

.drawer-body { padding: 2rem; flex: 1; }
.drawer-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 2rem;
  opacity: 0.85;
  display: block;
}
.drawer-role { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.drawer-role .eyebrow { color: var(--text-muted); white-space: nowrap; }
.drawer-role-value { font-size: 0.85rem; color: var(--text-muted); }
.drawer-desc { color: var(--text-muted); margin-bottom: 1.5rem; }
.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.drawer-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1.5rem; }
.drawer-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; opacity: 0.8; }
.drawer-cta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.drawer-cta p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }

@media (max-width: 500px) {
  .drawer-header, .drawer-body { padding: 1.25rem; }
  .drawer-gallery { grid-template-columns: 1fr; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================
   FEATURED VIDEO
   ============================================ */
.featured-video { padding: clamp(4rem, 8vw, 7rem) 0; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  overflow: hidden;
}
.video-frame-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}
.video-frame:hover .video-frame-poster { opacity: 0.45; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.video-play-circle {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(44, 42, 36, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.video-play-btn:hover .video-play-circle {
  background: rgba(138, 170, 122, 0.15);
  border-color: var(--accent);
  transform: scale(1.1);
}
.video-play-circle svg { width: 20px; height: 20px; fill: var(--text); margin-left: 4px; }
.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.video-meta-left .eyebrow { margin-bottom: 0.3rem; }
.video-meta-left h4 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.video-meta-right { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ============================================
   DRAWER CAROUSEL
   ============================================ */
.drawer-carousel { position: relative; width: 100%; margin-bottom: 2rem; background: var(--bg-2); overflow: hidden; }
.carousel-track { position: relative; width: 100%; }
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }
.carousel-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245, 242, 236, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-btn:hover { background: rgba(138, 170, 122, 0.15); border-color: var(--accent); }
.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }
.carousel-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: rgba(245, 242, 236, 0.85);
  padding: 0.25rem 0.6rem;
}
.carousel-thumbs { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.75rem 0 0.25rem; scrollbar-width: none; }
.carousel-thumbs::-webkit-scrollbar { display: none; }
.carousel-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 44px;
  border: 2px solid transparent;
  background: var(--bg-3);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.45;
}
.carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-thumb:hover { opacity: 0.75; }
.carousel-thumb.active { border-color: var(--accent); opacity: 1; }

/* ============================================
   LOOP VIDEOS
   ============================================ */
.drawer-loop-videos { margin: 2rem 0; padding-top: 2rem; border-top: 1px solid var(--border); }
.loop-video-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
.loop-video-item { position: relative; aspect-ratio: 16 / 9; background: var(--bg-3); overflow: hidden; }
.loop-video-item iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; pointer-events: none; }

/* ============================================
   NAV HOVER UNDERLINE
   ============================================ */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { width: 100%; }
