
/* Site-wide color, spacing, and surface variables */
:root {
  --bg: #f5f1ea;
  --bg-soft: #ede5d8;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --text: #1f1a16;
  --text-soft: #675d52;
  --primary: #8a6333;
  --primary-strong: #6c4c24;
  --accent: #c7a15c;
  --border: rgba(94, 69, 34, 0.16);
  --shadow: 0 18px 50px rgba(40, 28, 15, 0.14);
  --shadow-soft: 0 8px 24px rgba(40, 28, 15, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
  --transition: 0.3s ease;
  --surface-overlay: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.78));
}


/* Dark theme overrides used when the theme toggle is active */
body.dark-theme {
  --bg: #1a1714;
  --bg-soft: #24201c;
  --surface: rgba(48, 41, 34, 0.72);
  --surface-strong: rgba(58, 49, 40, 0.9);
  --text: #fbf3e8;
  --text-soft: #dfcfbf;
  --primary: #efbf72;
  --primary-strong: #f7cf8c;
  --accent: #d79a45;
  --border: rgba(239, 191, 114, 0.2);
  --shadow: 0 20px 55px rgba(8, 5, 2, 0.26);
  --shadow-soft: 0 8px 28px rgba(8, 5, 2, 0.18);
  --surface-overlay: linear-gradient(180deg, rgba(44, 36, 29, 0.88), rgba(44, 36, 29, 0.74));
}


/* Global reset and base page styling */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(199,161,92,0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(138,99,51,0.10), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, textarea { font: inherit; }


/* Decorative background glow shapes behind the page */
.page-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}
.page-glow-one { top: -80px; left: -60px; background: var(--accent); }
.page-glow-two { right: -80px; bottom: 10%; background: var(--primary); }


/* Shared layout helpers for section width and headings */
.container { width: min(92%, var(--container)); margin: 0 auto; }
.section { padding: 72px 0; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading h2,
.contact-copy h2 {
  font-family: "Inter", Arial, sans-serif;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero-copy h1 {
  font-family: "Inter", Arial, sans-serif;
  line-height: 1;
  letter-spacing: -0.03em;
}
.section-heading h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin-bottom: 12px; }
.section-heading p,
.contact-copy p,
.hero-copy p { color: var(--text-soft); }


/* Reusable glassmorphism surface used on major cards */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}


/* Header and navigation bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
body.dark-theme .site-header { background: rgba(32, 27, 22, 0.34); }
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), color var(--transition);
}
.brand:hover {
  transform: scale(1.08);
  color: var(--primary);
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text { font-family: "Inter", Arial, sans-serif; font-size: 1.6rem; font-weight: 700; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-links a {
  color: var(--text-soft);
  font-weight: 600;
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(138,99,51,0.08);
  transform: translateY(-1px);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.mobile-only { display: none; }


/* Hero section, CTA buttons, and headline metrics */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 26px;
  align-items: stretch;
}
.hero-copy {
  border-radius: var(--radius-xl);
  padding: 48px;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.3rem);
  margin-bottom: 18px;
  max-width: 11ch;
}
.hero-copy p {
  font-size: 1.06rem;
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), border var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--border);
}
.full-width { width: 100%; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.metric-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 18px;
}
body.dark-theme .metric-card {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.metric-card strong { display: block; font-size: 1.35rem; margin-bottom: 4px; }
.metric-card span { color: rgba(255,255,255,0.88); }
body:not(.dark-theme) .metric-card span { color: var(--text-soft); }

.hero-visual { min-height: 100%; }
.hero-image-card {
  min-height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,15,15,0.1), rgba(15,15,15,0.28)),
    url('https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero-overlay-card {
  border-radius: 22px;
  padding: 22px;
  max-width: 420px;
  width: min(100%, 420px);
}
.mini-label {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 8px;
}
.hero-overlay-card h3 {
  font-family: "Inter", Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 8px;
}
.hero-overlay-card p { color: var(--text-soft); }


/* Portfolio project cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.portfolio-card {
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.portfolio-card:hover { transform: translateY(-4px); }
.image-surface {
  background-position: center;
  background-size: cover;
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.image-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface-overlay);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.surface-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  min-height: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: var(--radius-lg);
}
.surface-content h3 {
  font-family: "Inter", Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 8px;
}
.surface-content p { color: var(--text-soft); }
.card-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(138,99,51,0.12);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(138,99,51,0.12);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.86rem;
}


/* Portfolio filter buttons */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.portfolio-card.hide { display: none; }


/* Gallery layout and image tiles */
.premium-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 110px;
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery-item {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.small { grid-column: span 1; grid-row: span 1; }
.gallery-item.tall { grid-column: span 2; grid-row: span 4; }
.gallery-item.wide { grid-column: span 4; grid-row: span 2; }


/* Contact section, details list, and inquiry form */
.contact-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}
.contact-copy {
  padding: 30px 8px 30px 0;
}
.contact-details {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.contact-details li {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-details strong {
  display: block;
  margin-bottom: 4px;
}
.contact-details a {
  color: var(--primary);
  font-weight: 600;
}
.contact-form {
  border-radius: var(--radius-lg);
  padding: 28px;
}
.field-group { display: grid; gap: 8px; margin-bottom: 16px; }
.field-group label { font-weight: 700; }
.field-group input,
.field-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.58);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
body.dark-theme .field-group input,
body.dark-theme .field-group textarea { background: rgba(255,255,255,0.07); }
.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(138,99,51,0.12);
}
.field-group textarea { min-height: 150px; resize: vertical; }
.form-note {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: -4px 0 12px;
}
.form-status {
  min-height: 24px;
  font-size: 0.95rem;
  margin: 0 0 16px;
  color: var(--text-soft);
}
.form-status.is-success {
  color: #2f7a45;
}
.form-status.is-error {
  color: #b14a3b;
}
/* Footer content area */
.site-footer {
  padding: 24px 0 48px;
  color: var(--text-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}


/* Scroll-in animation hooks used by JavaScript */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Media section layout */
.media-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}
.media-reels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.reel-card,
.media-video {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.reel-card {
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-position: center;
  background-size: cover;
  color: #f8f3ea;
  isolation: isolate;
}
.reel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.18), rgba(20, 16, 12, 0.78));
  z-index: 0;
}
.reel-card > * {
  position: relative;
  z-index: 1;
}
.reel-chip,
.media-platform {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(22, 18, 14, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reel-card-body {
  display: grid;
  gap: 18px;
}
.reel-card h3,
.media-video h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.05;
  margin-bottom: 10px;
}
.reel-card p,
.media-video p {
  color: rgba(248, 243, 234, 0.86);
}
.play-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff8ee;
  font-weight: 700;
}
.media-video {
  min-height: 460px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), var(--surface);
  display: grid;
  gap: 20px;
}
.media-video-header {
  display: grid;
  gap: 12px;
}
.media-video-header p {
  max-width: 58ch;
  color: var(--text-soft);
}
.media-video-frame {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--border);
  min-height: 340px;
  background: #0b0b0b;
}
.media-video-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}
/* Tablet layout adjustments */
@media (max-width: 1100px) {
  .hero-grid,
  .featured-project,
  .contact-shell,
  .testimonials-grid,
  .pdf-grid,
  .portfolio-grid,
  .media-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  .premium-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* Mobile layout adjustments */
@media (max-width: 820px) {
  .section { padding: 56px 0; }
}

@media (max-width: 820px) {
  .nav { flex-wrap: wrap; padding: 14px 0; }
  .mobile-only { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 10px;
  }
  .nav-links.show { display: flex; }
  .hero-grid,
  .featured-project,
  .testimonials-grid,
  .portfolio-grid,
  .contact-shell,
  .premium-gallery,
  .media-showcase,
  .project-shell {
    grid-template-columns: 1fr;
  }
  .pdf-carousel {
    grid-template-columns: 1fr;
  }
  .pdf-arrow {
    display: none;
  }
  .hero-copy { padding: 34px 24px; }
  .media-reels { grid-template-columns: 1fr; }
  .media-video { min-height: auto; }
  .media-video-frame,
  .media-video-frame iframe { min-height: 280px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .gallery-item.small,
  .gallery-item.tall,
  .gallery-item.wide { grid-column: auto; grid-row: auto; }
  .project-gallery { grid-template-columns: 1fr; }
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 700;
}
.project-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.project-hero,
.project-media,
.project-content {
  border-radius: var(--radius-lg);
  padding: 28px;
}
.project-media img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  max-height: 520px;
}
.project-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 16px;
}
.project-summary,
.project-content p,
.project-bullets li {
  color: var(--text-soft);
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.project-section-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.project-bullets {
  list-style: disc;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}






















/* Added sections: featured project, testimonials, PDF library, and richer project details */
.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  border-radius: var(--radius-xl);
  padding: 28px;
}
.featured-project-media {
  min-height: 360px;
  border-radius: calc(var(--radius-xl) - 6px);
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}
.featured-project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.06), rgba(20, 16, 12, 0.28));
}
.featured-project-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}
.featured-project-copy h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}
.featured-project-copy p,
.featured-project-stats span,
.testimonial-card p,
.pdf-card p {
  color: var(--text-soft);
}
.featured-project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.featured-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.testimonials-grid,
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.pdf-grid {
  display: flex;
  gap: 22px;
  align-items: stretch;
  width: max-content;
}
.testimonial-card,
.pdf-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.testimonial-card {
  display: grid;
  gap: 16px;
}
.testimonial-quote {
  font-size: 1.02rem;
}
.testimonial-author {
  display: grid;
  gap: 2px;
}
.testimonial-author strong {
  font-size: 1rem;
}
.pdf-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-height: 420px;
  width: 220px;
  flex: 0 0 220px;
}
.pdf-thumb-shell {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0.4));
  box-shadow: var(--shadow-soft);
}
.pdf-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdf-card h3 {
  font-size: 1.2rem;
}
.pdf-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.pdf-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.pdf-scroll-wrap::-webkit-scrollbar {
  display: none;
}
.pdf-arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  font-size: 1.5rem;
  line-height: 1;
}
.pdf-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}
.library-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.project-link-list,
.project-download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.project-download-list {
  margin-top: 14px;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.project-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.project-gallery-item img {
  height: 240px;
  object-fit: cover;
}
.project-video {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #0b0b0b;
  min-height: 320px;
}
.project-video iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}


.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.listing-page .section-heading h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}
.listing-shell {
  display: grid;
  gap: 28px;
}
.listing-heading {
  margin-bottom: 0;
}
.resource-grid-page {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.resource-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  border-radius: var(--radius-lg);
  padding: 22px;
}
.resource-thumb {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.resource-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-copy {
  display: grid;
  gap: 10px;
}
.resource-copy h3 {
  font-size: 1.25rem;
}
.resource-copy p {
  color: var(--text-soft);
}
.modern-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.modern-gallery-item {
  grid-column: span 4;
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
}
.modern-gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.modern-gallery-item figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--text-soft);
}
.modern-gallery-item figcaption span {
  color: var(--primary);
  font-weight: 700;
}
.modern-gallery-item figcaption p {
  flex: 1;
  text-align: right;
}
.modern-gallery-item.modern-tall {
  grid-row: span 2;
}
.modern-gallery-item.modern-tall img {
  height: 520px;
}
.modern-gallery-item.modern-wide {
  grid-column: span 8;
}
.modern-gallery-item.modern-wide img {
  height: 360px;
}
@media (max-width: 1100px) {
  .resource-grid-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modern-gallery-item,
  .modern-gallery-item.modern-wide {
    grid-column: span 6;
  }
}
@media (max-width: 820px) {
  .resource-grid-page {
    grid-template-columns: 1fr;
  }
  .modern-gallery {
    grid-template-columns: 1fr;
  }
  .modern-gallery-item,
  .modern-gallery-item.modern-wide,
  .modern-gallery-item.modern-tall {
    grid-column: auto;
    grid-row: auto;
  }
  .modern-gallery-item img,
  .modern-gallery-item.modern-wide img,
  .modern-gallery-item.modern-tall img {
    height: 280px;
  }
  .modern-gallery-item figcaption {
    display: grid;
  }
  .modern-gallery-item figcaption p {
    text-align: left;
  }
}

/* Active About section styles used by the homepage About block. */
/* About Section Reference Refresh Start */
.about-section {
  position: relative;
}
.about-section .container {
  position: relative;
  padding: clamp(42px, 6vw, 74px) clamp(22px, 4vw, 48px);
  border-radius: 38px;
  border: 1px solid rgba(199, 161, 92, 0.18);
  background:
    radial-gradient(circle at 16% 14%, rgba(240, 208, 150, 0.28), transparent 22%),
    radial-gradient(circle at 84% 84%, rgba(232, 198, 141, 0.2), transparent 22%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(249, 241, 229, 0.97));
  box-shadow: 0 26px 70px rgba(88, 63, 30, 0.1);
  overflow: hidden;
  color: #2b2118;
}
.about-section .container::before,
.about-section .container::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(199, 161, 92, 0.08);
  background: repeating-radial-gradient(circle at center, rgba(199, 161, 92, 0.035) 0 1px, transparent 1px 16px);
  opacity: 0.22;
  pointer-events: none;
}
.about-section .container::before {
  top: -128px;
  left: -118px;
}
.about-section .container::after {
  right: -132px;
  bottom: -18px;
}
.about-heading {
  position: relative;
  z-index: 1;
  text-align: left;
}
.about-heading .eyebrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 18px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 clamp(56px, 8vw, 120px);
  color: #9f7440;
  letter-spacing: 0.36em;
}
.about-heading .eyebrow::before,
.about-heading .eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(42px, 8vw, 108px);
  height: 1px;
  background: rgba(159, 116, 64, 0.34);
}
.about-heading .eyebrow::before {
  left: 0;
}
.about-heading .eyebrow::after {
  right: 0;
}
.about-heading h2 {
  margin: 18px 0 20px;
  max-width: 16ch;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.8rem, 5.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #231b15;
  text-shadow: 0 10px 28px rgba(255, 255, 255, 0.48);
}
.about-heading p {
  max-width: 500ch;
  width: 100%;
  margin: 0;
  text-align: left;
  font-size: clamp(1.2rem, 1.8vw, 1.9rem);
  line-height: 1.55;
  color: rgba(90, 73, 56, 0.92);
}
.about-story {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(270px, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: center;
  margin: clamp(36px, 5vw, 54px) 0 28px;
  padding-top: 38px;
  border-top: 1px solid rgba(199, 161, 92, 0.24);
}
.about-story::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 54px;
  height: 14px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent 0, transparent 18px, rgba(159, 116, 64, 0.78) 18px, rgba(159, 116, 64, 0.78) 36px, transparent 36px),
    radial-gradient(circle at center, rgba(159, 116, 64, 0.9) 0 2px, transparent 2px);
}
.about-visual {
  position: relative;
}
.about-visual::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px -16px;
  width: 110px;
  border: 1px solid rgba(199, 161, 92, 0.18);
  border-right: 0;
  border-radius: 26px 0 0 26px;
  pointer-events: none;
}
.about-visual-frame {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(199, 161, 92, 0.28);
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.74), rgba(243, 231, 214, 0.86));
  box-shadow: 0 18px 36px rgba(88, 63, 30, 0.12);
}
.about-visual-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(199, 161, 92, 0.18);
  border-radius: 22px;
  pointer-events: none;
  z-index: 1;
}
.about-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) brightness(1.02);
  transform: scale(1.03);
}
.about-identity {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding-right: clamp(0px, 1vw, 16px);
}
.about-name {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.02;
  color: #2a2018;
}
.about-role {
  display: inline-block;
  margin-top: -2px;
  color: #9f7440;
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.about-divider {
  width: 100%;
  height: 1px;
  margin: 8px 0 6px;
  background: linear-gradient(90deg, rgba(199, 161, 92, 0.62), rgba(199, 161, 92, 0.1));
}
.about-copy {
  display: grid;
  gap: 14px;
}
.about-copy p,
.about-identity p {
  margin: 0;
  max-width: 36ch;
  color: rgba(78, 63, 49, 0.92);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.8;
}
.about-philosophy {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  padding: 34px 12px 24px;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(199, 161, 92, 0.24);
  border-bottom: 1px solid rgba(199, 161, 92, 0.14);
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  overflow: hidden;
}
.about-philosophy-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(199, 161, 92, 0.08), transparent 42%),
    repeating-radial-gradient(circle at center, rgba(199, 161, 92, 0.03) 0 1px, transparent 1px 18px);
  opacity: 0.18;
  pointer-events: none;
}
.about-philosophy > * {
  position: relative;
  z-index: 1;
}
.about-quote {
  margin: 0 0 18px;
  max-width: 120ch;
  font-family: inherit;
  font-style: normal;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 500;
  line-height: 1.45;
  color: #3a2a1f;
}
.about-philosophy-text {
  max-width: 120ch;
  margin: 0;
  color: rgba(86, 68, 53, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
}
.about-pillars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}
.about-pillar {
  min-height: 344px;
  border: 1px solid rgba(199, 161, 92, 0.16);
  border-radius: 26px;
  overflow: hidden;
  background-position: center;
}
.about-pillar::after {
  background: linear-gradient(180deg, rgba(249, 241, 229, 0.18), rgba(58, 40, 24, 0.74));
}
.about-pillar .surface-content {
  justify-content: end;
  padding: 28px 26px 24px;
}
.about-pillar .card-kicker {
  color: rgba(242, 225, 201, 0.92);
}
.about-pillar .surface-content h3 {
  color: #fff8ef;
}
.about-pillar .surface-content p {
  color: rgba(255, 244, 230, 0.9);
}
.about-pillar .chip {
  color: #fff6ea;
  background: rgba(51, 34, 19, 0.44);
  border-color: rgba(233, 208, 168, 0.34);
}
/* Dark-theme overrides keep the About section readable when the site theme is toggled. */
body.dark-theme .about-section .container {
  border-color: rgba(216, 171, 103, 0.18);
  background:
    radial-gradient(circle at 16% 14%, rgba(154, 102, 36, 0.22), transparent 22%),
    radial-gradient(circle at 84% 84%, rgba(125, 82, 35, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(38, 29, 22, 0.96), rgba(24, 18, 14, 0.98));
  box-shadow: 0 26px 70px rgba(8, 5, 2, 0.24);
  color: #f4e9db;
}
body.dark-theme .about-section .container::before,
body.dark-theme .about-section .container::after {
  border-color: rgba(216, 171, 103, 0.06);
  background: repeating-radial-gradient(circle at center, rgba(216, 171, 103, 0.032) 0 1px, transparent 1px 16px);
}
body.dark-theme .about-heading .eyebrow {
  color: #d8ab67;
}
body.dark-theme .about-heading .eyebrow::before,
body.dark-theme .about-heading .eyebrow::after {
  background: rgba(216, 171, 103, 0.36);
}
body.dark-theme .about-heading h2 {
  color: #f7ead8;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
body.dark-theme .about-heading p,
body.dark-theme .about-copy p,
body.dark-theme .about-identity p,
body.dark-theme .about-philosophy-text {
  color: rgba(243, 223, 201, 0.9);
}
body.dark-theme .about-name {
  color: #f5e7d5;
}
body.dark-theme .about-role {
  color: #d8ab67;
}
body.dark-theme .about-divider,
body.dark-theme .about-story,
body.dark-theme .about-philosophy {
  border-color: rgba(216, 171, 103, 0.22);
}
body.dark-theme .about-story::before {
  background:
    linear-gradient(90deg, transparent 0, transparent 18px, rgba(216, 171, 103, 0.82) 18px, rgba(216, 171, 103, 0.82) 36px, transparent 36px),
    radial-gradient(circle at center, rgba(216, 171, 103, 0.95) 0 2px, transparent 2px);
}
body.dark-theme .about-visual::before {
  border-color: rgba(216, 171, 103, 0.18);
}
body.dark-theme .about-visual-frame {
  border-color: rgba(216, 171, 103, 0.26);
  background: linear-gradient(180deg, rgba(44, 33, 24, 0.86), rgba(28, 22, 17, 0.92));
  box-shadow: 0 18px 36px rgba(8, 5, 2, 0.18);
}
body.dark-theme .about-visual-frame::before {
  border-color: rgba(216, 171, 103, 0.14);
}
body.dark-theme .about-visual-frame img {
  filter: saturate(0.9) brightness(0.88);
}
body.dark-theme .about-quote {
  color: #f1dfca;
}
body.dark-theme .about-pillar {
  border-color: rgba(216, 171, 103, 0.16);
}
body.dark-theme .about-pillar::after {
  background: linear-gradient(180deg, rgba(37, 28, 21, 0.14), rgba(20, 14, 10, 0.84));
}
@media (max-width: 1100px) {
  .about-story,
  .about-pillars {
    grid-template-columns: 1fr;
  }
  .about-copy p,
  .about-identity p {
    max-width: none;
  }
}
@media (max-width: 820px) {
  .about-section .container {
    padding: 34px 18px;
    border-radius: 28px;
  }
  .about-heading .eyebrow {
    padding: 0 48px;
    letter-spacing: 0.28em;
  }
  .about-heading .eyebrow::before,
  .about-heading .eyebrow::after {
    width: 34px;
  }
  .about-story {
    gap: 22px;
    padding-top: 28px;
  }
  .about-visual::before {
    display: none;
  }
  .about-visual-frame {
    min-height: 420px;
  }
  .about-identity {
    padding-right: 0;
  }
  .about-pillars {
    gap: 18px;
  }
  .about-pillar {
    min-height: 300px;
  }
}
/* About Section Reference Refresh End */
