/* ===== Umang Arts — Stylesheet ===== */

:root {
  /* Backgrounds — charcoal/stone (matched from mateshwaritemple.in) */
  --navy: #1E1B18;        /* charcoal — primary page background */
  --navy-soft: #2D2727;   /* stone — alt-section background */
  --navy-deep: #1A1510;   /* deepest — footer / dark bands */
  --surface: #2A2520;     /* elevated card background */

  /* Text on dark */
  --beige: #FFFFFF;
  --beige-soft: #CBBFA8;
  --border: rgba(201, 151, 58, 0.2);

  /* Accent — gold */
  --gold: #C9973A;
  --gold-light: #E8C572;
  --gold-deep: #A0792E;
  --gold-subtle: rgba(201, 151, 58, 0.15);

  /* Secondary accent — orange (used for the primary CTA pill, matching reference) */
  --orange: #F27B2C;
  --orange-deep: #E06A1A;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, Segoe UI, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--beige);
  background: var(--navy);
  line-height: 1.65;
  font-weight: 300;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--beige);
  line-height: 1.25;
}

h2 { font-size: 2.2rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }

p { color: var(--beige-soft); }

em { font-style: italic; color: var(--gold); }

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

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-sub { max-width: 560px; margin: 0 auto 50px; }

.hero-inner .eyebrow { color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-ghost:hover { background: var(--gold); color: var(--navy); }

.hero-cta .btn-primary {
  background: #1A1510;
  color: #fff;
}
.hero-cta .btn-primary:hover {
  background: var(--navy-soft);
  color: #fff;
}
/* Product page intro keeps the standard gold primary button */
.about-content .hero-cta .btn-primary,
.about-content .hero-cta .btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
}

.btn.full { width: 100%; text-align: center; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 27, 24, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}

.logo-mark {
  display: block;
  height: 52px;
  width: auto;
}

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--beige);
  transition: color 0.25s;
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a.active { color: var(--gold); font-weight: 500; }

.nav-item { position: relative; display: flex; align-items: center; }
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--beige);
  cursor: pointer;
  transition: color 0.25s;
}
.nav-dropdown-trigger:hover,
.nav-item.open .nav-dropdown-trigger,
.nav-dropdown-trigger.active { color: var(--gold); font-weight: 500; }
.nav-dropdown-trigger .chevron { transition: transform 0.2s ease; flex: none; }
.nav-item.open .nav-dropdown-trigger .chevron { transform: rotate(180deg); }

@media (min-width: 721px) {
  .nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
  }
  .nav-item:hover .nav-dropdown-trigger { color: var(--gold); font-weight: 500; }
  .nav-item:hover .nav-dropdown-trigger .chevron { transform: rotate(180deg); }
  .nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}
.nav-item.open .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--beige);
}
.nav-dropdown a:hover { background: var(--navy-soft); color: var(--gold-light); }
.nav-dropdown a.nav-view-all {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.nav-dropdown a.nav-view-all:hover { background: none; color: var(--gold); }

.nav-subitem { border-radius: 6px; }
.nav-subtrigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: none;
  border: none;
  padding: 10px 14px;
  margin: 0;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--beige);
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
}
.nav-subtrigger:hover,
.nav-subitem.open .nav-subtrigger,
.nav-subtrigger.active { background: var(--navy-soft); color: var(--gold-light); }
.nav-subtrigger .chevron-right { transition: transform 0.2s ease; flex: none; transform: rotate(-90deg); }
.nav-subitem.open .nav-subtrigger .chevron-right { transform: rotate(0deg); }

.nav-subdropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding-left: 10px;
}
.nav-subitem.open .nav-subdropdown { max-height: 300px; }
.nav-subdropdown a {
  padding: 8px 14px;
  font-size: 0.86rem;
  color: var(--beige-soft);
}
.nav-subdropdown a:hover { color: var(--gold-light); background: var(--navy-soft); }

.nav-cta {
  background: var(--orange);
  color: #FFFFFF !important;
  padding: 10px 22px;
  border-radius: 50px;
}
.nav-cta:hover { background: var(--orange-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
  position: relative;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--beige);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-open { overflow: hidden; }

/* ===== Page Header (inner pages) ===== */
.page-header {
  position: relative;
  padding: 70px 0 60px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(30, 27, 24, 0.74), rgba(30, 27, 24, 0.9)),
    url('../assets/hero-section/red-fort-slide3.webp') center/cover no-repeat;
}
.page-header .hero-veins { position: absolute; inset: 0; pointer-events: none; }
.page-header h1 { position: relative; font-size: 2.6rem; margin-bottom: 10px; }
.breadcrumb {
  position: relative;
  font-size: 0.9rem;
  color: var(--beige-soft);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

/* ===== CTA Banner ===== */
.cta-banner {
  padding: 70px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--surface), var(--navy-soft));
  border-top: 3px solid var(--gold);
}
.cta-banner p { max-width: 520px; margin: 0 auto 28px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 0 0 50px;
  overflow: hidden;
  background: var(--navy);
}

.hero-slider {
  position: relative;
  height: 660px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  z-index: 1;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }

.hero-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: #0000003d;
}

.hero-inner { position: relative; text-align: center; max-width: 780px; margin: 0 auto; z-index: 1; }

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.about-content .hero-cta { justify-content: flex-start; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.7); }
.hero-dot.active { background: #fff; transform: scale(1.2); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.hero-arrow:hover { background: #fff; border-color: #fff; color: #000; }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding-top: 56px;
}
.hero-stats div { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--gold);
}
.hero-stats span { font-size: 0.85rem; color: var(--beige-soft); }

/* ===== About ===== */
.about { padding: 60px 0 100px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.marble-frame {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.marble-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.marble-frame .placeholder-figure {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  margin: 0;
}
.about-points { list-style: none; margin-top: 24px; }
.about-points li {
  padding: 8px 0;
  color: var(--beige);
  font-size: 0.98rem;
}
.about-points span { color: var(--gold); font-weight: 600; margin-right: 8px; }

/* ===== Services ===== */
.services { padding: 100px 0; background: var(--navy-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.services-grid-4 { grid-template-columns: repeat(4, 1fr); }
.services-grid-2 { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
.service-card .sub-list {
  list-style: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.service-card .sub-list li {
  font-size: 0.88rem;
  color: var(--beige-soft);
  padding: 4px 0 4px 16px;
  position: relative;
}
.service-card .sub-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
a.service-card { color: inherit; text-decoration: none; }
a.service-card:hover .card-link { color: var(--gold-light); }
.service-card.service-card-media { padding: 0; overflow: hidden; }
.service-card-image { margin: 0; line-height: 0; }
.service-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
/* Show the whole image (no crop); --fit-bg fills the spare space to match the image's edges */
.service-card-image.is-fit img { object-fit: contain; background: var(--fit-bg, #fff); }
.service-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--gold-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 18px;
  flex: none;
}
.card-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
  align-self: flex-start;
}
.card-link:hover { color: var(--gold-light); }

.capabilities { background: var(--navy); border-top: 1px solid var(--border); }
section.bg-black { background: var(--navy-deep); }
.capability-wide { grid-column: span 2; }
.service-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
}
.service-tags li {
  background: var(--gold-subtle);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 50px;
}
.service-tags li a { color: inherit; }
.service-tags.center { justify-content: center; margin-left: auto; margin-right: auto; }

.text-narrow {
  max-width: 720px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--beige-soft);
}

.card-num { color: var(--gold); margin-right: 4px; }

.service-card h3 code {
  font-family: monospace;
  color: var(--gold-light);
  background: var(--gold-subtle);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.95em;
}

.tag-group h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px 24px;
  margin-top: 56px;
}
.workflow-step { text-align: center; }
.workflow-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-soft);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
}
.services.bg-black .workflow-num { background: var(--navy-deep); }
.workflow-step h3 { font-size: 1rem; margin-bottom: 8px; }
.workflow-step p { font-size: 0.88rem; color: var(--beige-soft); }

.note-box {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  color: var(--beige-soft);
  font-style: italic;
  line-height: 1.7;
}

.compare-table {
  max-width: 640px;
  margin: 40px auto 0;
  border-collapse: collapse;
  width: 100%;
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
}
.compare-table th {
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 600;
}
.compare-table th:last-child, .compare-table td:last-child {
  text-align: center;
  color: var(--gold);
  font-weight: 600;
}

.table-scroll { overflow-x: auto; margin: 40px auto 0; }
.compare-table.wide {
  min-width: 760px;
  margin: 0;
}
.compare-table.wide th, .compare-table.wide td { padding: 12px 16px; white-space: nowrap; }
.compare-table.wide th:last-child, .compare-table.wide td:last-child {
  text-align: left;
  color: var(--beige);
  font-weight: 400;
}

.faq-list { max-width: 820px; margin: 56px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--gold-light); }
.faq-item p { font-size: 0.95rem; color: var(--beige-soft); }

/* ===== Featured Projects ===== */
.gallery { padding: 100px 0 40px; }
.gallery .section-sub a,
.services .section-sub a { color: var(--gold); font-weight: 500; }
.gallery .section-sub a:hover,
.services .section-sub a:hover { color: var(--gold-light); }

.project-case {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.project-case:first-of-type { border-top: none; padding-top: 48px; }
.project-case.reverse .project-media { order: 2; }
.project-case.reverse .project-info { order: 1; }

.project-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
}
.project-case-grid .project-case {
  display: block;
  padding: 0;
  border-top: none;
}
.project-case-grid .project-case:first-of-type { padding-top: 0; }
.project-case-grid .project-case .project-media { margin-bottom: 24px; }
.project-case-grid .project-case.reverse .project-media,
.project-case-grid .project-case.reverse .project-info { order: 0; }
@media (max-width: 720px) {
  .project-case-grid { grid-template-columns: 1fr; }
}

.project-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project-media.single { grid-template-columns: 1fr; }
.project-media figure { position: relative; margin: 0; line-height: 0; }
.project-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.project-media.single img { aspect-ratio: 16 / 10; }
.status-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 50px;
  background: rgba(20, 17, 14, 0.78);
  border: 1px solid rgba(201, 151, 58, 0.45);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 0 rgba(232, 197, 114, 0.6);
  animation: status-pulse 1.8s ease-out infinite;
}
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 197, 114, 0.6); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(232, 197, 114, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}
.placeholder-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-soft), var(--surface));
  position: relative;
  overflow: hidden;
}
.placeholder-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(201, 151, 58, 0.2), transparent 60%);
}
.placeholder-figure svg { position: relative; width: 26%; height: 26%; color: var(--gold); opacity: 0.7; }
.project-media.single .placeholder-figure { aspect-ratio: 16 / 10; }
.project-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 12px 8px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  color: var(--beige);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.project-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
}
.project-info .tag {
  order: 2;
  flex: none;
  margin-left: auto;
  white-space: nowrap;
  display: inline-block;
  background: var(--gold-subtle);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.project-info h3 { order: 1; flex: 1 1 0; min-width: 0; font-size: 1.7rem; margin-bottom: 14px; }
.project-info > :not(h3):not(.tag) { order: 3; flex-basis: 100%; }
.project-info h3 a { color: inherit; transition: color 0.25s ease; }
.project-info h3 a:hover { color: var(--gold); }
.project-media a { display: block; }
.project-info p { margin-bottom: 22px; }
.project-info .ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
}
.project-info .ig-link svg { width: 17px; height: 17px; flex: none; }
.project-info .ig-link:hover { color: var(--gold-light); }

/* ===== Photo Gallery ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.photo-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.photo-card .placeholder-figure { aspect-ratio: 4 / 3; }
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ===== Gallery Carousel (Home page) ===== */
.gallery-carousel-wrap { position: relative; }
.gallery-carousel { overflow: hidden; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(30, 27, 24, 0.55);
  color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.carousel-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.carousel-arrow-prev { left: -22px; }
.carousel-arrow-next { right: -22px; }
@media (max-width: 900px) {
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-arrow-prev { left: 8px; }
  .carousel-arrow-next { right: 8px; }
}
.gallery-carousel-track {
  display: flex;
  gap: 22px;
}
.gallery-carousel-slide {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - 3 * 22px) / 4);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
a.gallery-carousel-slide:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gallery-carousel-slide .slide-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-soft), var(--surface));
  position: relative;
  overflow: hidden;
}
.gallery-carousel-slide .slide-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(201, 151, 58, 0.2), transparent 60%);
}
.gallery-carousel-slide .slide-placeholder svg { position: relative; width: 30%; height: 30%; color: var(--gold); opacity: 0.7; }
.gallery-carousel-slide .slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
}
.gallery-carousel-slide .slide-caption .tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.gallery-carousel-slide .slide-caption h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--beige);
  margin: 0;
  line-height: 1.25;
}
@media (max-width: 900px) {
  .gallery-carousel-slide { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 560px) {
  .gallery-carousel-track { gap: 16px; }
  .gallery-carousel-slide { flex-basis: 100%; }
}

/* ===== Masonry Gallery (Gallery page) ===== */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 40px;
}
.gallery-filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--beige-soft);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.gallery-filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.gallery-filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.masonry-gallery {
  column-count: 4;
  column-gap: 22px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 22px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--navy-soft);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.masonry-item.is-hidden { display: none; }
.masonry-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.masonry-item img,
.masonry-item video {
  width: 100%;
  height: auto;
  display: block;
}
.masonry-item .masonry-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  color: var(--beige);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.masonry-item:hover .masonry-caption { opacity: 1; transform: translateY(0); }
.masonry-item .play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(30, 27, 24, 0.55);
  border: 1px solid rgba(244, 232, 213, 0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--beige);
  pointer-events: none;
}
.masonry-item .play-badge svg { width: 20px; height: 20px; }

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 18, 16, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.gallery-lightbox.open { opacity: 1; visibility: visible; }
.gallery-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
}
.gallery-lightbox-inner img,
.gallery-lightbox-inner video {
  max-width: 90vw;
  max-height: 86vh;
  display: block;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(244, 232, 213, 0.3);
  background: rgba(30, 27, 24, 0.6);
  color: var(--beige);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.gallery-lightbox-close { top: 24px; right: 24px; }
.gallery-lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .masonry-gallery { column-count: 2; column-gap: 16px; }
  .masonry-item { margin-bottom: 16px; }
}
@media (max-width: 560px) {
  .gallery-lightbox-prev, .gallery-lightbox-next { width: 38px; height: 38px; }
  .gallery-lightbox-prev { left: 8px; }
  .gallery-lightbox-next { right: 8px; }
  .gallery-lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
}
.gallery-more { display: none; }

/* Phones: tight 2-column masonry, one-line sticky filter bar, paged "load more" */
@media (max-width: 600px) {
  .gallery-filters {
    position: sticky;
    top: var(--hh, 64px);
    z-index: 5;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 -24px 16px;
    padding: 10px 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: var(--navy);
    border-bottom: 1px solid var(--border);
  }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .gallery-filter-btn { flex: 0 0 auto; padding: 7px 14px; font-size: 0.78rem; white-space: nowrap; }

  .masonry-gallery { column-count: 2; column-gap: 8px; }
  .masonry-item { margin-bottom: 8px; border-radius: 8px; box-shadow: none; }
  .masonry-item:hover { transform: none; box-shadow: none; }
  .masonry-item.is-paged { display: none; }

  .gallery-more { display: flex; justify-content: center; gap: 8px; padding: 24px 0 8px; }
  .gallery-more[hidden] { display: none; }
  .gallery-more span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold);
    animation: galleryDots 1s ease-in-out infinite;
  }
  .gallery-more span:nth-child(2) { animation-delay: 0.15s; }
  .gallery-more span:nth-child(3) { animation-delay: 0.3s; }
  @keyframes galleryDots { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

  .gallery-lightbox-inner { transition: transform 0.25s ease, opacity 0.25s ease; touch-action: none; }
  .gallery-lightbox-inner.is-dragging { transition: none; }
}

@media (max-width: 560px) {
  .hero-slide {
    align-items: flex-end;
    padding-bottom: 70px;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
  }
  .hero-inner .hero-cta { order: 1; margin-bottom: 18px; }
  .hero .hero-inner h1 { order: 2; font-size: 1.4rem; line-height: 1.3; }
  .hero-inner .hero-sub { display: none; }
  .hero-inner .eyebrow { order: 4; margin-bottom: 0; }
}

/* ===== Portfolio Grid ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.portfolio-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-media { aspect-ratio: 4 / 3; position: relative; }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--navy-soft), var(--surface));
  overflow: hidden;
}
.portfolio-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(201, 151, 58, 0.2), transparent 60%);
}
.portfolio-placeholder svg { position: relative; width: 34%; height: 34%; color: var(--gold); opacity: 0.7; }
.portfolio-info { padding: 18px 20px 22px; }
.portfolio-info .tag {
  display: inline-block;
  background: var(--gold-subtle);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.portfolio-info h3 { font-size: 1.05rem; margin-bottom: 4px; line-height: 1.3; }
.portfolio-note { font-size: 0.82rem; color: var(--beige-soft); line-height: 1.5; margin: 0; }

/* ===== Process ===== */
.process { padding: 100px 0; background: var(--navy-soft); }
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 40px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}
.process-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--navy-soft);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  flex: none;
}
.process-icon img { width: 34px; height: 34px; object-fit: contain; }
.process-step h3 { font-size: 1.05rem; }
.process.bg-black .process-icon { background: var(--navy-deep); }
.services.process .process-icon img { width: 50px; height: 50px; }

@media (min-width: 901px) {
  .services.process.process-7 .process-grid { grid-template-columns: repeat(7, 1fr); }
  .services.process.process-9 .process-grid { grid-template-columns: repeat(9, 1fr); }
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .process-grid::before { display: none; }
  .process-step h3 br { display: none; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .process-grid::before {
    display: block;
    top: 40px;
    bottom: 40px;
    left: 40px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .process-step {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 0;
  }
  .process-step .process-icon { margin: 0; }
  .process-step h3 { margin: 0; }
}

/* ===== Contact ===== */
.contact { padding: 100px 0; background: var(--navy-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.contact-list { list-style: none; margin-top: 24px; }
.contact-list li { margin-bottom: 10px; color: var(--beige); }
.contact-list li strong { color: var(--gold); }

.contact-map {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form {
  background: var(--surface);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: flex; gap: 16px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--navy);
  color: var(--beige);
}
.contact-form select option { background: var(--navy); color: var(--beige); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--beige-soft); opacity: 0.7; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-note { font-size: 0.9rem; color: var(--gold); min-height: 1em; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: var(--beige);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr 0.8fr;
  gap: 32px;
  padding-bottom: 44px;
}
.footer-logo { display: inline-flex; align-items: center; gap: 10px; }
.footer-logo .logo-mark { height: 44px; }
.footer-brand p {
  color: var(--beige-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 16px 0 22px;
  max-width: 260px;
}
.footer-social { display: flex; gap: 12px; }
.footer-col .footer-social a {
  width: 38px;
  height: 38px;
  margin-bottom: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 151, 58, 0.2);
  color: var(--beige);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.footer-col .footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}
.footer-social svg { width: 18px; height: 18px; display: block; }

.footer-col h4 {
  font-family: var(--font-head);
  color: var(--beige);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 18px;
}
.footer-col a,
.footer-col p {
  display: block;
  color: var(--beige-soft);
  font-size: 0.92rem;
  margin-bottom: 11px;
}
.footer-col a { transition: color 0.25s ease; }
.footer-col a:hover { color: var(--gold); }

.footer-col .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-col .footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  color: var(--gold);
}

.footer-bottom { border-top: 1px solid rgba(201, 151, 58, 0.12); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  font-size: 0.82rem;
  color: var(--beige-soft);
}
.footer-bottom-inner p { margin: 0; }
.back-to-top { color: var(--beige-soft); font-size: 0.82rem; transition: color 0.25s ease; }
.back-to-top:hover { color: var(--gold); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-slider { height: 700px; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .services-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .project-case { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
  .project-case.reverse .project-media,
  .project-case.reverse .project-info { order: 0; }
}

@media (max-width: 520px) {
  .project-media { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    height: calc(100vh - 85px);
    background: var(--navy);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    padding: 32px 28px 40px;
    overflow-y: auto;
    display: none;
    z-index: 150;
  }
  .main-nav.open { display: flex; }

  .main-nav > a {
    padding: 16px 4px;
    font-size: 1.2rem;
    font-family: var(--font-head);
    border-bottom: 1px solid var(--border);
  }
  .main-nav > a:last-of-type { border-bottom: none; }
  .main-nav > .nav-cta {
    align-self: center;
    margin-top: 24px;
    padding: 14px 36px;
    border-bottom: none;
    font-family: var(--font-body);
    font-size: 1rem;
  }

  .hero-slider { height: 640px; }
  .hero-arrow { width: 36px; height: 36px; }
  .hero-arrow-prev { left: 10px; }
  .hero-arrow-next { right: 10px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { padding: 13px 18px; font-size: 0.84rem; }
  .hero-stats { gap: 30px; flex-wrap: wrap; }
  .services-grid, .services-grid-4 { grid-template-columns: 1fr; }
  .services-grid-2 { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .capability-wide { grid-column: span 1; }
  .form-row { flex-direction: column; }

  .nav-toggle { display: flex; }
  .nav-item {
    display: block;
    width: 100%;
    padding: 16px 4px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0;
    font-size: 1.2rem;
    font-family: var(--font-head);
  }
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 8px 0 0 10px;
    margin-top: 12px;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .nav-item.open .nav-dropdown { display: block; transform: none; }
  .nav-dropdown > a,
  .nav-subtrigger { font-size: 1.02rem; }
  .nav-subdropdown a { font-size: 0.94rem; }
}

/* ===== Home Gallery Preview: Our Machines ===== */
.machines-section { padding: 100px 0; }
.machines-title { margin-bottom: 56px; }
.machines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.machines-col { display: flex; flex-direction: column; }
.machines-col-header { margin-bottom: 22px; }
.machines-col-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 10px;
}
.machines-col-sub {
  color: var(--beige-soft);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 42ch;
  margin: 0;
}
.machines-col-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  margin-bottom: 24px;
}
.machines-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  background: var(--navy-deep);
  border: 1px solid var(--surface);
}
.machines-col-grid .machines-cell:first-child { grid-area: 1 / 1 / span 2; aspect-ratio: auto; }
.machines-col-grid .machines-cell:nth-child(2) { grid-area: 1 / 2; }
.machines-col-grid .machines-cell:nth-child(3) { grid-area: 2 / 2; }
.machines-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.machines-cell:hover img { transform: scale(1.04); }
.machines-col-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid rgba(201, 151, 58, 0.35);
  border-radius: 2px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.machines-col-cta span { transition: transform 0.25s ease; }
.machines-col-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
}
.machines-col-cta:hover span { transform: translateX(4px); }

@media (max-width: 900px) {
  .machines-section { padding: 64px 0; }
  .machines-title { margin-bottom: 36px; }
  .machines-grid { grid-template-columns: 1fr; gap: 48px; }
  .machines-col-grid { gap: 4px; }
  .machines-col-cta { align-self: stretch; justify-content: center; padding: 12px 18px; font-size: 0.7rem; }
}
@media (max-width: 700px) {
  .machines-grid { gap: 40px; }
  .machines-col-header { margin-bottom: 16px; }
  .machines-col-sub { max-width: none; font-size: 0.95rem; }
  .machines-col-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 6px; margin-bottom: 18px; }
  .machines-col-grid .machines-cell:first-child { grid-area: 1 / 1 / auto / -1; aspect-ratio: 16 / 10; }
  .machines-col-grid .machines-cell:nth-child(2) { grid-area: 2 / 1; }
  .machines-col-grid .machines-cell:nth-child(3) { grid-area: 2 / 2; }
}

/* ===== Home Gallery Strip (auto-scrolling photo mosaic) ===== */
.gs-section { background: var(--navy); padding: 80px 0 0; overflow: hidden; }
.gs-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 56px 36px;
}
.gs-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.gs-more {
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 151, 58, 0.4);
  padding-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.gs-more:hover { color: var(--gold-light); border-color: var(--gold-light); }
.gs-viewport { position: relative; width: 100%; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.gs-viewport.is-dragging { cursor: grabbing; }
.gs-viewport .gs-img { -webkit-user-drag: none; pointer-events: none; }
.gs-track { display: flex; gap: 4px; will-change: transform; }
.gs-group {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 320px 220px 220px;
  grid-template-rows: 260px 260px;
  gap: 4px;
}
.gs-large { grid-row: 1 / 3; overflow: hidden; background: var(--navy-deep); }
.gs-small { overflow: hidden; background: var(--navy-deep); }
.gs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.gs-large:hover .gs-img,
.gs-small:hover .gs-img { transform: scale(1.05); }
.gs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  background: rgba(20, 17, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.gs-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.gs-arrow--left { left: 16px; }
.gs-arrow--right { right: 16px; }

@media (max-width: 860px) {
  .gs-section { padding-top: 60px; }
  .gs-header { padding: 0 24px 28px; }
  .gs-group { grid-template-columns: 220px 150px 150px; grid-template-rows: 180px 180px; }
  .gs-arrow { width: 40px; height: 40px; font-size: 22px; }
}
@media (max-width: 520px) {
  .gs-group { grid-template-columns: 160px 110px 110px; grid-template-rows: 140px 140px; }
}

/* ===== Phone refinements: smaller buttons, tighter sections, smaller titles ===== */
@media (max-width: 600px) {
  /* Buttons */
  .btn,
  .hero-cta .btn { padding: 10px 18px; font-size: 0.8rem; line-height: 1.5; }
  .machines-col-cta { padding: 11px 16px; }

  /* Section spacing */
  section.services,
  section.process,
  section.contact { padding-top: 56px; padding-bottom: 56px; }
  section.about { padding-top: 40px; padding-bottom: 56px; }
  section.gallery { padding-top: 56px; padding-bottom: 24px; }
  section.machines-section { padding-top: 56px; padding-bottom: 56px; }
  .gs-section { padding-top: 48px; }
  .cta-banner { padding-top: 48px; padding-bottom: 48px; }
  .page-header { padding-top: 48px; padding-bottom: 40px; }
  .section-sub { margin-bottom: 32px; }
  .machines-title { margin-bottom: 28px; }
  .project-case { padding: 32px 0; }

  /* Titles */
  h2 { font-size: 1.75rem; }
  .page-header h1 { font-size: 2.1rem; }
  .project-info h3 { font-size: 1.4rem; }
  .machines-col-title { font-size: 1.5rem; }
}

/* ===== About: Our Infrastructure (stack-spread on scroll) ===== */
.infra-spread { position: relative; background: var(--navy-soft); }
.infra-spread.is-ready { height: 300vh; }
/* Once fully spread it stays open, so the extra scroll length is dropped */
.infra-spread.is-ready.is-done { height: 100vh; }
.infra-spread.is-ready .infra-spread-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.infra-spread-copy {
  position: relative;
  z-index: 5;
  padding: 100px 24px 40px;
  text-align: center;
  pointer-events: none;
}
.infra-spread.is-ready .infra-spread-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--hh, 0px) 24px 0;
  opacity: 0;
  will-change: opacity, transform;
}
.infra-spread-copy h2 { font-size: clamp(1.9rem, 3.4vw, 3.2rem); line-height: 1.08; margin-bottom: 0; }
/* Phones: heading sits at the top, photos settle into a 2-column grid below it */
.infra-spread.is-ready.is-small .infra-spread-copy {
  justify-content: flex-start;
  padding-top: calc(var(--hh, 0px) + 20px);
}
.infra-spread.is-small .infra-spread-sub { margin-top: 10px; font-size: 0.9rem; }
.infra-spread-copy h2 span { opacity: 0.6; }
.infra-spread-sub {
  max-width: 42ch;
  margin: 18px auto 0;
  color: var(--beige-soft);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.6;
}

/* Cards: a simple grid until the script takes over (no-JS fallback) */
.infra-spread-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.infra-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.infra-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.infra-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
  color: var(--beige);
  font-family: var(--font-head);
  font-size: 0.95rem;
  line-height: 1.2;
}
.infra-spread.is-ready .infra-spread-cards {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  max-width: none;
  padding: 0;
}
.infra-spread.is-ready .infra-card {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--hh, 0px) / 2);
  aspect-ratio: auto;
  will-change: transform;
}
.infra-spread.is-ready .infra-card figcaption { opacity: 0; transition: opacity 0.4s ease; }
.infra-spread.is-spread .infra-card figcaption { opacity: 1; }

.infra-spread-hint { display: none; }
.infra-spread.is-ready .infra-spread-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3vh;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--beige-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
}
.infra-spread-hint svg { animation: infra-hint-bounce 1.2s ease-in-out infinite; }
@keyframes infra-hint-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

@media (max-width: 900px) {
  .infra-spread-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .infra-spread-cards { grid-template-columns: 1fr; }
  .infra-card figcaption { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .infra-spread-hint svg { animation: none; }
}
