:root {
  --bg-dark: #0F172A;
  --bg-dark-2: #141004;
  --bg-light: #11192f;
  --bg-light-2: #1a1408;
  --card-light: rgba(15, 23, 42, 0.82);
  --card-dark: rgba(255,255,255,0.06);
  --text-dark: #f8f4ed;
  --text-light: #f8f4ed;
  --muted-dark: rgba(248,244,237,0.74);
  --muted-light: rgba(248,244,237,0.80);
  --accent: #DCA54A;
  --accent-deep: #f0c46d;
  --accent-soft: rgba(220,165,74,0.14);
  --line: rgba(220,165,74,0.30);
  --line-soft: rgba(255,255,255,0.10);
  --shadow: 0 28px 72px rgba(4, 6, 12, 0.32);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1240px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
  background:
    radial-gradient(circle at top left, rgba(220,165,74,0.10), transparent 22%),
    radial-gradient(circle at bottom right, rgba(220,165,74,0.08), transparent 18%),
    linear-gradient(180deg, var(--bg-dark) 0%, #10192d 58%, var(--bg-dark-2) 100%);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
}
img, video { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, span, a, li, input, textarea, select {
  overflow-wrap: break-word;
  word-break: break-word;
}
body.menu-open,
body.fullpage-desktop { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, strong { font-family: 'Manrope', sans-serif; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.07) 0 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.05) 0 1px, transparent 1px);
  background-size: 180px 180px, 240px 240px, 160px 160px;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,23,42,0.94) 0%, rgba(20,16,4,0.78) 100%);
  backdrop-filter: blur(14px);
}
.site-header-inner {
  width: var(--container);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(220,165,74,0.22), 0 10px 22px rgba(0,0,0,0.22);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a,
.social-links a,
.pill-tab,
.case-link,
.btn,
.modal-close,
.service-card,
.case-study-card,
.featured-card,
.metric-card,
.about-statement,
.testimonial-card,
.admin-note {
  transition: 0.25s ease;
}
.site-nav a {
  font-size: 0.8rem;
  color: rgba(248,245,239,0.78);
  letter-spacing: 0.04em;
}
.site-nav a:hover,
.site-nav a.active { color: #fff; }
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.social-links a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(248,245,239,0.82);
  background: rgba(255,255,255,0.03);
}
.social-links a svg {
  width: 15px;
  height: 15px;
  display: block;
}
.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #16181e;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 7px 0;
  background: var(--text-light);
}

.snap-shell {
  position: relative;
  z-index: 2;
  scroll-snap-type: y mandatory;
}
.page-section {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
}
.page-section:nth-child(odd):not(.hero-section) {
  background:
    radial-gradient(circle at top right, rgba(220,165,74,0.08), transparent 20%),
    linear-gradient(180deg, var(--bg-light) 0%, var(--bg-light-2) 100%);
}
.page-section:nth-child(even):not(.hero-section) {
  background:
    radial-gradient(circle at bottom left, rgba(220,165,74,0.07), transparent 22%),
    linear-gradient(180deg, #121b31 0%, #171105 100%);
}
.section-shell {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  min-height: 100svh;
  padding: 92px 0 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-section {
  background: linear-gradient(180deg, #0F172A 0%, #10182c 55%, #141004 100%);
}
.hero-video-wrap,
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) saturate(0.46) brightness(0.26);
}
.hero-overlay {
  background:
    radial-gradient(circle at center, rgba(220,165,74,0.10) 0%, rgba(15,23,42,0.10) 26%, rgba(15,23,42,0.78) 100%),
    linear-gradient(180deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.30) 38%, rgba(20,16,4,0.82) 100%);
}
.hero-shell {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
}
.hero-center {
  width: min(760px, 100%);
  display: grid;
  place-items: center;
}
.hero-copy-panel--overlay {
  width: 100%;
  background: linear-gradient(180deg, rgba(15,23,42,0.34) 0%, rgba(20,16,4,0.22) 100%);
  border: 1px solid rgba(220,165,74,0.10);
  box-shadow: 0 20px 60px rgba(2,4,8,0.16);
  border-radius: 22px;
  padding: 28px 28px 30px;
  backdrop-filter: blur(6px);
}
.eyebrow,
.metric-kicker,
.stat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}
.eyebrow--center { justify-content: center; }
.hero-copy-panel--overlay h1 {
  margin: 18px auto 16px;
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.02;
  color: var(--text-light);
}
.hero-copy-panel--overlay p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted-light);
  line-height: 1.8;
  font-size: 1rem;
}
.hero-rich-text,
.rich-output {
  display: grid;
  gap: 0.85em;
}
.hero-rich-text,
.hero-rich-text p,
.hero-rich-text div,
.hero-rich-text li {
  color: var(--muted-light);
  line-height: 1.8;
  font-size: 1rem;
}
.hero-rich-text p,
.hero-rich-text div,
.hero-rich-text ul,
.hero-rich-text ol,
.rich-output p,
.rich-output div,
.rich-output ul,
.rich-output ol {
  margin: 0;
}
.hero-rich-text ul,
.hero-rich-text ol,
.rich-output ul,
.rich-output ol {
  padding-left: 1.2em;
}
.rich-output--about,
.rich-output--about p,
.rich-output--about div,
.rich-output--about li {
  color: var(--muted-dark);
  line-height: 1.8;
}
.rich-output--why,
.rich-output--why p,
.rich-output--why div,
.rich-output--why li {
  color: rgba(248,244,237,0.72);
  line-height: 1.68;
  font-size: 0.92rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  padding: 14px 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.btn-primary {
  color: #171b23;
  background: linear-gradient(180deg, #efc471 0%, var(--accent) 100%);
  box-shadow: 0 14px 30px rgba(220,165,74,0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(210,146,67,0.28);
}
.btn-secondary {
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.section-heading-row,
.about-layout,
.contact-grid {
  display: grid;
  gap: 28px;
}
.section-heading-row {
  grid-template-columns: 1fr 0.85fr;
  align-items: end;
  margin-bottom: 26px;
}
.split-tight { align-items: center; }
h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  color: var(--text-dark);
}
h3 {
  margin: 0 0 12px;
  font-size: clamp(1.28rem, 2.2vw, 1.85rem);
  color: var(--text-dark);
}
p {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.8;
}

.about-layout { grid-template-columns: 1.05fr 0.95fr; }
.glass-card,
.work-panel,
.service-card,
.case-study-card,
.featured-card,
.testimonial-card,
.modal-dialog,
.contact-card,
.about-statement,
.metric-card,
.admin-note {
  background: linear-gradient(180deg, rgba(15,23,42,0.84) 0%, rgba(20,16,4,0.66) 100%);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.glass-card,
.work-panel,
.contact-card,
.about-statement,
.admin-note { border-radius: var(--radius-lg); }
.about-statement,
.metric-card,
.service-card,
.contact-card,
.admin-note,
.testimonial-card,
.case-study-card,
.featured-card { padding: 24px; }
.about-copy { display: grid; gap: 16px; }
.about-item-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(220,165,74,0.10);
}
.about-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.item-icon-badge,
.service-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: rgba(220,165,74,0.14);
  border: 1px solid rgba(220,165,74,0.18);
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
}
.item-icon-badge .icon-render,
.service-card-icon .icon-render,
.why-card-icon .icon-render {
  display: inline-grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  width: auto;
  height: auto;
}
.why-card-icon .dashicons.icon-render,
.item-icon-badge .dashicons.icon-render,
.service-card-icon .dashicons.icon-render {
  font-size: 20px;
  width: 20px;
  height: 20px;
}
.about-item-title {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-dark);
}
.about-aside { display: grid; gap: 18px; }
.metric-card strong { color: var(--text-dark); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.service-card,
.case-study-card,
.featured-card,
.testimonial-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-card::before,
.case-study-card::before,
.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(220,165,74,0.15), transparent 42%);
  pointer-events: none;
}
.service-card { min-height: 260px; }
.service-card-icon {
  margin-bottom: 14px;
}
.rich-output--service,
.rich-output--service p,
.rich-output--service div,
.rich-output--service li {
  color: var(--muted-dark);
  line-height: 1.8;
}
.service-index {
  position: absolute;
  right: 22px;
  bottom: 14px;
  font-size: 3.7rem;
  color: rgba(44,49,56,0.06);
  font-weight: 800;
}
.service-card:hover,
.case-study-card:hover,
.featured-card:hover,
.metric-card:hover,
.about-statement:hover,
.testimonial-card:hover,
.admin-note:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(4, 6, 12, 0.34);
}

.work-heading-row {
  align-items: center;
}
.work-filter-bar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.work-filter {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #f8f4ed;
  border-radius: 999px;
  min-height: 46px;
  padding: 10px 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.25s ease;
}
.work-filter span {
  min-width: 26px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  color: inherit;
  font-size: 0.76rem;
}
.work-filter.active,
.work-filter:hover {
  background: linear-gradient(180deg, #efc471 0%, var(--accent) 100%);
  color: #182235;
  border-color: rgba(220,165,74,0.32);
}
.work-filter.active span,
.work-filter:hover span {
  background: rgba(24,34,53,0.10);
}
.work-panel {
  display: none;
  padding: 18px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(241,247,252,0.96) 0%, rgba(231,242,250,0.90) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 80px rgba(3, 8, 20, 0.22);
}
.work-panel.active { display: block; }
.case-studies-grid,
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
}
.portfolio-card--reference {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,252,255,0.96) 100%);
  border: 1px solid rgba(190,214,231,0.72);
  box-shadow: 0 18px 50px rgba(22, 49, 78, 0.12);
}
.card-media-slider {
  position: relative;
  overflow: hidden;
  background: #dcecf7;
}
.case-media-slider,
.featured-media-slider {
  min-height: 240px;
}
.media-slider-track {
  display: flex;
  width: 100%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.media-slide {
  min-width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
}
.media-slide img,
.modal-media-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #d8e8f3;
}
.media-slide video,
.modal-media-grid video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0b1420;
}
.media-slider-controls {
  position: absolute;
  inset: auto 14px 14px auto;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.slider-control {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(19, 43, 72, 0.08);
  background: rgba(30, 51, 81, 0.74);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: 0.25s ease;
  box-shadow: 0 10px 24px rgba(16, 31, 51, 0.18);
}
.slider-control:hover {
  background: #203856;
}
.media-slider-dots {
  position: absolute;
  left: 14px;
  right: 120px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.media-slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
  cursor: pointer;
  transition: 0.25s ease;
}
.media-slider-dots button.active {
  width: 24px;
  background: #40d9d4;
}
.portfolio-copy {
  display: grid;
  gap: 12px;
  padding: 18px 18px 12px;
}
.portfolio-copy--light h3 {
  margin: 0;
  min-height: 2.45em;
  color: #132948;
  font-size: clamp(1.18rem, 2vw, 1.75rem);
  line-height: 1.06;
}
.portfolio-copy--light p {
  color: #5d7086;
  font-size: 0.97rem;
  line-height: 1.68;
}
.portfolio-kicker {
  display: inline-flex;
  align-items: center;
  color: #2b9eb8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
}
.portfolio-meta-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.portfolio-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef7fd;
  color: #2c607f;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid rgba(151, 203, 233, 0.36);
}
.portfolio-pill--accent {
  background: #eef7eb;
  color: #4f7f46;
  border-color: rgba(146, 203, 135, 0.42);
}
.portfolio-footer {
  display: grid;
  gap: 16px;
  margin-top: auto;
  padding: 0 18px 18px;
}
.results-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.result-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5fbff;
  border: 1px solid rgba(188, 218, 236, 0.76);
  color: #37536d;
  font-size: 0.82rem;
  font-weight: 700;
}
.why-list { display: grid; gap: 10px; }
.why-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dark);
}
.why-item::before { content: '•'; color: var(--accent); }
.case-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}
.case-link--light {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(189, 207, 223, 0.92);
  color: #163153;
  box-shadow: 0 6px 16px rgba(31, 58, 86, 0.06);
}
.case-link--light:hover {
  background: #f3fbff;
  transform: translateY(-1px);
}

.contact-grid { grid-template-columns: 1fr 0.95fr; align-items: center; }
.why-shell {
  justify-content: center;
}
.why-heading {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 28px;
  text-align: center;
}
.why-heading h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.2rem, 4.8vw, 3.3rem);
}
.why-grid {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.why-card {
  min-height: 164px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 20px;
  background: linear-gradient(180deg, rgba(17,21,29,0.96) 0%, rgba(13,16,22,0.98) 100%);
  border: 1px solid rgba(220,165,74,0.16);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.why-card-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}
.why-card-icon .bi { font-size: 1.2rem; }
.why-card-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
.why-card-title {
  margin: 2px 0 0;
  font-size: 1.06rem;
  color: var(--text-light);
}
.why-card p {
  font-size: 0.92rem;
  line-height: 1.68;
  color: rgba(248,244,237,0.72);
}
.testimonials-block { margin-top: 34px; }
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.testimonials-slider--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-shell--single {
  align-items: stretch;
}
.contact-card--full {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}
.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 8px;
  left: 22px;
  font-size: 3rem;
  color: rgba(210,146,67,0.34);
}
.contact-column { display: grid; gap: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
label { display: grid; gap: 10px; color: var(--text-dark); font-weight: 500; }
label span { color: var(--muted-dark); font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8, 13, 24, 0.72);
  color: var(--text-dark);
  padding: 14px 16px;
  outline: none;
}
input::placeholder,
textarea::placeholder { color: rgba(248,244,237,0.42); }
input:focus, textarea:focus, select:focus {
  border-color: rgba(220,165,74,0.52);
  box-shadow: 0 0 0 4px rgba(220,165,74,0.12);
}
.full-span,
.full-width { grid-column: 1 / -1; }
.form-status { min-height: 24px; margin-top: 14px; }
.form-status.success { color: #2f8c4f; }
.form-status.error { color: #b84f4f; }

.section-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 38;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(210,146,67,0.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
  cursor: pointer;
  transition: 0.25s ease;
}
.section-dots button.active,
.section-dots button:hover {
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.site-footer-line {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 32;
  border-top: 1px solid var(--line);
  background: rgba(15,23,42,0.88);
  backdrop-filter: blur(10px);
}
.site-footer-inner {
  width: var(--container);
  margin: 0 auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(248,245,239,0.84);
  font-size: 0.8rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}
.modal.is-open { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 27, 0.62);
  backdrop-filter: blur(12px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 30px));
  max-height: calc(100vh - 34px);
  overflow: auto;
  margin: 17px auto;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(248,252,255,0.98) 0%, rgba(232,244,251,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 30px 90px rgba(6, 14, 28, 0.28);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #173152;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(22, 49, 82, 0.22);
}
.modal-layout { display: grid; gap: 18px; }
.gallery-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 18px;
  align-items: start;
}
.gallery-stage-card,
.gallery-side-panel,
.gallery-detail-card,
.gallery-summary-card {
  border-radius: 24px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(193, 214, 229, 0.88);
  box-shadow: 0 12px 34px rgba(32, 61, 92, 0.08);
}
.gallery-stage-card {
  padding: 18px;
}
.gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #e0edf6;
}
.gallery-stage-track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-stage-item {
  min-width: 100%;
  height: 470px;
  position: relative;
}
.gallery-stage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-stage-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0b1420;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(27, 49, 78, 0.74);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 12px 30px rgba(19, 41, 67, 0.20);
}
.gallery-nav--prev { left: 16px; }
.gallery-nav--next { right: 16px; }
.gallery-count-badge {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 2;
  min-height: 32px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(11, 18, 31, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.gallery-helper-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.gallery-helper-pill {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f3fbff;
  border: 1px solid rgba(178, 216, 235, 0.78);
  color: #5f7388;
  font-size: 0.8rem;
  font-weight: 700;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.gallery-thumb {
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: #d9ebf6;
  padding: 0;
  cursor: pointer;
  height: 72px;
}
.gallery-thumb.active {
  border-color: #4bd7f1;
  box-shadow: 0 0 0 2px rgba(75, 215, 241, 0.12);
}
.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-side-panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}
.gallery-side-panel h2 {
  margin: 4px 0 0;
  color: #163052;
  font-size: clamp(2rem, 3vw, 3.2rem);
}
.gallery-side-panel .eyebrow,
.gallery-side-panel .portfolio-kicker {
  color: #2c9ab6;
}
.gallery-meta-grid {
  display: grid;
  gap: 10px;
}
.gallery-meta-card,
.gallery-summary-card,
.gallery-detail-card {
  padding: 16px 18px;
}
.gallery-meta-card strong,
.gallery-summary-card h4,
.gallery-detail-card h4 {
  display: block;
  margin-bottom: 8px;
  color: #5f7187;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}
.gallery-meta-card span,
.gallery-summary-card p,
.gallery-detail-card p {
  color: #163052;
  font-size: 1rem;
  line-height: 1.66;
}
.gallery-summary-card h3 {
  margin: 0 0 10px;
  color: #163052;
  font-size: 1.65rem;
}
.gallery-close-cta {
  margin-top: 6px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #59efe2 0%, #34d8d4 100%);
  color: #173153;
  font-weight: 800;
  cursor: pointer;
  justify-self: start;
  box-shadow: 0 16px 30px rgba(52, 216, 212, 0.22);
}
.gallery-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 1024px) {
  .snap-shell {
    height: 100dvh;
    transition: transform 950ms cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
  }
  .page-section {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }
  .section-shell {
    height: 100dvh;
    max-height: 100dvh;
    padding: 92px 0 42px;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .section-shell::-webkit-scrollbar { display: none; }
}

@media (max-width: 1180px) {
  .section-heading-row,
  .about-layout,
  .contact-grid,
  .modal-copy-grid,
  .modal-media-grid { grid-template-columns: 1fr; }
  .services-grid,
  .case-studies-grid,
  .featured-grid,
  .testimonials-slider,
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-modal-layout,
  .gallery-extra-grid { grid-template-columns: 1fr; }
  .why-heading { max-width: 100%; }
}

@media (max-width: 1023px) {
  .snap-shell { scroll-snap-type: none; }
  .site-footer-line { position: static; }
  .section-dots { display: none; }
}

@media (max-width: 900px) {
  .site-header-inner {
    width: calc(100vw - 20px);
    min-height: 60px;
  }
  .header-right { gap: 12px; }
  .nav-toggle { display: block; }
  .site-nav,
  .social-links { display: none; }
  body.menu-open .site-nav {
    position: fixed;
    top: 68px;
    right: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 60px;
    border-radius: 18px;
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 36px rgba(0,0,0,0.22);
    z-index: 41;
  }
  body.menu-open .social-links {
    display: flex;
    position: fixed;
    top: 224px;
    left: 18px;
    right: 18px;
    justify-content: flex-start;
    gap: 12px;
    z-index: 42;
  }
  body.menu-open .social-links a {
    width: 34px;
    height: 34px;
  }
  .section-shell {
    width: calc(100vw - 24px);
    padding: 88px 0 30px;
    min-height: auto;
  }
  .hero-center { width: min(92vw, 760px); }
  .hero-copy-panel--overlay h1 { font-size: clamp(2.3rem, 12vw, 4rem); }
  .services-grid,
  .case-studies-grid,
  .featured-grid,
  .testimonials-slider,
  .why-grid,
  .form-grid,
  .modal-media-grid,
  .gallery-extra-grid { grid-template-columns: 1fr; }
  .work-filter-bar {
    justify-content: flex-start;
  }
  .why-card {
    min-height: auto;
  }
  .media-slide,
  .case-media-slider,
  .featured-media-slider {
    height: 220px;
    min-height: 220px;
  }
  .gallery-stage-item {
    height: 260px;
  }
  .portfolio-copy,
  .portfolio-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .media-slider-dots {
    right: 104px;
    bottom: 18px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .modal-dialog {
    width: calc(100vw - 12px);
    margin: 6px auto;
    padding: 18px;
    max-height: calc(100vh - 12px);
  }
}

@media (max-width: 640px) {
  :root { --container: min(1240px, calc(100vw - 32px)); }
  .hero-copy-panel--overlay { padding: 20px 16px 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 20px; }
  .hero-actions .btn { width: 100%; }
  .about-statement,
  .metric-card,
  .service-card,
  .contact-card,
  .admin-note,
  .testimonial-card,
  .case-study-card,
  .featured-card { padding: 18px; }
  .work-panel { padding: 14px; border-radius: 22px; }
  .services-grid,
  .case-studies-grid,
  .featured-grid,
  .why-grid,
  .testimonials-slider,
  .form-grid,
  .gallery-extra-grid { gap: 14px; }
  .section-heading-row { gap: 14px; margin-bottom: 20px; }
  .work-filter-bar { width: 100%; justify-content: center; }
  .work-filter { flex: 1 1 0; justify-content: center; padding: 10px 12px; font-size: 0.86rem; }
  .portfolio-cover { height: 200px; }
  .gallery-stage-item { height: 220px; }
  .gallery-side-panel { padding: 16px; }
  .gallery-side-panel h2 { font-size: clamp(1.5rem, 8vw, 2.1rem); }
  .gallery-meta-card,
  .gallery-summary-card,
  .gallery-detail-card { padding: 14px; }
  .gallery-helper-row { justify-content: center; }
  .gallery-nav {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .gallery-nav--prev { left: 8px; }
  .gallery-nav--next { right: 8px; }
  .gallery-count-badge { font-size: 0.7rem; padding: 6px 10px; }
  .modal-dialog { padding: 14px; border-radius: 20px; }
  .modal-close { width: 40px; height: 40px; top: 10px; right: 10px; }
  .site-footer-inner { font-size: 0.74rem; padding: 0 12px; text-align: center; }
  .testimonial-card::before { font-size: 2.2rem; }
  .why-heading h2 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
}

@media (max-width: 380px) {
  .hero-copy-panel--overlay h1 { font-size: clamp(2rem, 11vw, 2.6rem); }
  .hero-copy-panel--overlay p { font-size: 0.92rem; }
  .work-filter { font-size: 0.8rem; padding: 8px 10px; min-height: 42px; }
  .site-header-inner { gap: 10px; }
  .brand-mark { width: 30px; height: 30px; }
  .btn { padding: 12px 18px; font-size: 0.92rem; }
}

.portfolio-cover {
  display: block;
  height: 240px;
  overflow: hidden;
  background: #dcecf7;
}
.portfolio-cover img,
.portfolio-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-cover:hover img {
  transform: scale(1.02);
}
.portfolio-cover img {
  transition: transform 0.35s ease;
}

.site-footer-inner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer-inner a:hover { color: #fff; }
