/* =============================================
   IPC_Effects.css — Visual Polish & Animation
   ============================================= */

/* ── TYPOGRAPHY FOUNDATION ── */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.hero-headline, .section-title, .contact-headline, .testimonial-quote, .reach-headline {
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}
::selection { background: rgba(201,125,42,0.22); color: #0A1628; }
::-moz-selection { background: rgba(201,125,42,0.22); color: #0A1628; }

/* ── GRAIN TEXTURE OVERLAY ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 250px 250px;
}

/* ── CUSTOM CURSOR (desktop only) ── */
@media (pointer: fine) {
  .cursor-dot {
    width: 7px; height: 7px;
    background: #C97D2A; border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 10001;
    will-change: transform;
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(201,125,42,0.4); border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 10000;
    will-change: transform;
    transition: width 0.3s cubic-bezier(0.16,1,0.3,1),
                height 0.3s cubic-bezier(0.16,1,0.3,1),
                border-color 0.3s, background 0.3s;
  }
  body.cursor-hover .cursor-dot  { width: 10px; height: 10px; background: #E8A04A; }
  body.cursor-hover .cursor-ring { width: 52px; height: 52px; border-color: rgba(201,125,42,0.22); background: rgba(201,125,42,0.04); }
}

/* ── BUTTON SHIMMER + SHADOW ── */
.btn-primary, .nav-cta, .form-submit {
  position: relative; overflow: hidden;
}
.btn-primary::after,
.nav-cta::after,
.form-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover::after,
.nav-cta:hover::after,
.form-submit:hover::after { left: 160%; }

.btn-primary:hover { box-shadow: 0 8px 28px rgba(201,125,42,0.28); }
.form-submit:hover  { box-shadow: 0 6px 20px rgba(201,125,42,0.22); }

/* ── NAV LINKS — underline slide ── */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 0.5px; background: #C97D2A;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ── ENHANCED REVEAL ── */
.reveal {
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.25s; }
.reveal-delay-3 { transition-delay: 0.38s; }

/* ── PROJECT PORTFOLIO GRID ── */
#portfolio { background: var(--navy); }
#portfolio .section-inner { padding-bottom: 5rem; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 3.5rem;
  background: rgba(201,125,42,0.07);
}

.portfolio-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-mid);
  cursor: pointer;
}
.portfolio-item.wide  { grid-column: span 2; aspect-ratio: 16/7; }
.portfolio-item.full  { grid-column: span 3; aspect-ratio: 21/6; }

.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(18%) saturate(0.82);
  opacity: 0.85;
  transition: transform 0.75s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.55s ease, opacity 0.55s ease;
}
.portfolio-item:hover img {
  transform: scale(1.07);
  filter: grayscale(0%) saturate(1.08);
  opacity: 1;
}

.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,22,40,0.9) 0%,
    rgba(10,22,40,0.3) 45%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.75rem;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.16,1,0.3,1),
              opacity 0.42s ease;
}
.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
  opacity: 1;
}
.portfolio-tag {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber); font-weight: 500;
  font-family: 'DM Sans', sans-serif; margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.portfolio-tag::before {
  content: ''; width: 18px; height: 0.5px; background: var(--amber);
}
.portfolio-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--cream); line-height: 1.25;
}

/* ── FILTERABLE GALLERY ── */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 2.5rem; margin-bottom: 0.25rem;
}
.gallery-filter-btn {
  padding: 0.42rem 1rem;
  background: transparent;
  border: 0.5px solid rgba(240,235,225,0.18);
  color: var(--steel-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.76rem; font-weight: 400;
  letter-spacing: 0.09em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.22s, color 0.22s, background 0.22s;
}
.gallery-filter-btn:hover {
  border-color: rgba(201,125,42,0.5);
  color: var(--amber-light);
}
.gallery-filter-btn.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
  font-weight: 500;
}
.gallery-filters-type {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 0.5px solid rgba(240,235,225,0.12);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 1.75rem;
  background: rgba(201,125,42,0.06);
}
.gallery-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-mid);
  cursor: pointer;
}
.gallery-item.hidden { display: none; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(15%) saturate(0.85);
  opacity: 0.88;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.45s ease, opacity 0.45s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
  filter: grayscale(0%) saturate(1.05);
  opacity: 1;
}
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,13,26,0.96) 0%, rgba(6,13,26,0.55) 42%, rgba(6,13,26,0.05) 75%, transparent 100%);
  opacity: 0;
  transition: opacity 0.36s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.1rem 1.15rem;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(0.16,1,0.3,1), opacity 0.36s ease;
}
.gallery-item:hover .gallery-info { transform: translateY(0); opacity: 1; }
.gallery-tag {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-light); font-weight: 600;
  font-family: 'DM Sans', sans-serif; margin-bottom: 0.35rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.85);
}
.gallery-caption {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--cream); line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}
.gallery-subcaption {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem; font-weight: 400; font-style: italic;
  color: var(--steel-light); line-height: 1.3;
  margin-top: 0.2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.85);
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,9,16,0.97);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  padding: 4rem 5rem;
}
.lightbox-img-wrap {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  max-width: calc(100vw - 10rem);
  max-height: calc(100vh - 8rem);
}
.lightbox-img {
  max-width: 100%; max-height: calc(100vh - 12rem);
  object-fit: contain;
  border: 0.5px solid rgba(201,125,42,0.18);
  box-shadow: 0 24px 72px rgba(0,0,0,0.7);
  transition: opacity 0.22s ease;
  display: block;
}
.lightbox-img.fading { opacity: 0; }

.lightbox-info {
  text-align: center;
}
.lightbox-info-tag {
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber-light); font-weight: 600;
  font-family: 'DM Sans', sans-serif; margin-bottom: 0.45rem;
}
.lightbox-info-caption {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; font-weight: 700; color: var(--cream);
}
.lightbox-related-tag {
  align-self: flex-end;
  margin-top: -0.85rem;
  background: var(--amber);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.lightbox-close {
  position: fixed; top: 1.25rem; right: 1.5rem;
  width: 42px; height: 42px;
  background: rgba(10,22,40,0.75);
  border: 0.5px solid rgba(201,125,42,0.28);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--steel-light);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  z-index: 10;
}
.lightbox-close:hover {
  background: rgba(201,125,42,0.12);
  border-color: rgba(201,125,42,0.65);
  color: var(--cream);
}
.lightbox-close svg { width: 18px; height: 18px; }

.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 56px;
  background: rgba(10,22,40,0.72);
  border: 0.5px solid rgba(201,125,42,0.22);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--steel-light);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  z-index: 10;
}
.lightbox-nav:hover {
  background: rgba(201,125,42,0.12);
  border-color: rgba(201,125,42,0.6);
  color: var(--cream);
}
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(154,175,196,0.5);
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 0.5rem;
}
.lightbox-counter::before, .lightbox-counter::after {
  content: ''; display: block; width: 20px; height: 0.5px;
  background: rgba(201,125,42,0.25);
}

@media (max-width: 640px) {
  .lightbox-stage { padding: 3.5rem 3rem; }
  .lightbox-nav { width: 38px; height: 48px; }
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
}

/* ── QUOTE TEASER CARD (replaces contact form) ── */
.quote-teaser {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(201,125,42,0.22);
  padding: 2.75rem 2.5rem;
  display: flex; flex-direction: column; gap: 1.15rem;
}
.quote-teaser-icon {
  width: 46px; height: 46px;
  border: 0.5px solid rgba(201,125,42,0.45);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quote-teaser-icon svg { width: 22px; height: 22px; }
.quote-teaser-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--cream); line-height: 1.28;
}
.quote-teaser-desc {
  font-size: 0.92rem; color: var(--steel-light);
  line-height: 1.75; font-weight: 300;
}
.quote-teaser-points {
  display: flex; flex-direction: column; gap: 0.65rem;
  margin: 0.15rem 0 0.5rem; padding: 0; list-style: none;
}
.quote-teaser-points li {
  font-size: 0.85rem; color: var(--steel-light);
  display: flex; align-items: center; gap: 0.65rem;
}
.quote-teaser-points li::before {
  content: ''; width: 6px; height: 6px; background: var(--amber); flex-shrink: 0;
}
.quote-teaser-btn { width: 100%; }

/* ── QUOTE WIZARD MODAL ── */
.quote-modal {
  position: fixed; inset: 0; z-index: 2100;
  background: rgba(5,9,16,0.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.quote-modal.open { opacity: 1; pointer-events: all; }
.quote-modal-panel {
  position: relative;
  background: var(--navy-mid);
  border: 0.5px solid rgba(201,125,42,0.25);
  width: 100%; max-width: 640px; max-height: 88vh;
  overflow-y: auto;
  padding: 3rem 3rem 2.5rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  transform: translateY(16px) scale(0.98); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease;
}
.quote-modal.open .quote-modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.quote-modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(122,143,163,0.25);
  color: var(--steel-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.quote-modal-close:hover {
  border-color: rgba(201,125,42,0.6); color: var(--cream);
  background: rgba(201,125,42,0.08);
}
.quote-modal-close svg { width: 16px; height: 16px; }

.quote-progress-track {
  width: 100%; height: 3px; background: rgba(122,143,163,0.15);
  margin: 0.25rem 0 0.75rem;
}
.quote-progress-fill {
  height: 100%; background: var(--amber); width: 9.09%;
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
}
.quote-step-label {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 1.75rem;
}

.qz-step { display: none; }
.qz-step.active { display: block; animation: qzFadeIn 0.35s ease; }
@keyframes qzFadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.qz-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber); font-weight: 500; margin-bottom: 0.6rem;
}
.qz-question {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--cream); line-height: 1.32;
}
.qz-hint { font-size: 0.78rem; color: var(--steel); margin-top: 0.5rem; }
.qz-options {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem; margin-top: 1.75rem;
}
.qz-option {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(122,143,163,0.22);
  color: var(--cream-dark);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 400;
  padding: 0.85rem 1.1rem; text-align: left; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.qz-option:hover { border-color: rgba(201,125,42,0.5); color: var(--cream); }
.qz-option.selected {
  border-color: var(--amber); background: rgba(201,125,42,0.12);
  color: var(--amber-light); font-weight: 500;
}
.qz-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.75rem; }
.qz-textarea { margin-top: 1.75rem; min-height: 130px; }
.qz-step[data-step="11"] .form-row,
.qz-step[data-step="11"] .form-group { margin-top: 1.25rem; }
.qz-step[data-step="11"] .form-row:first-of-type { margin-top: 1.75rem; }

.quote-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2.25rem; padding-top: 1.5rem;
  border-top: 0.5px solid rgba(122,143,163,0.12);
}
.quote-btn-back {
  background: none; border: none; color: var(--steel-light);
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; cursor: pointer;
  display: flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s; padding: 0.5rem;
}
.quote-btn-back:hover { color: var(--cream); }
.quote-btn-back.hidden { visibility: hidden; }
.quote-btn-next {
  padding: 0.85rem 1.85rem; background: var(--amber); color: var(--navy);
  border: none; font-family: 'DM Sans', sans-serif; font-weight: 500;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, opacity 0.2s;
}
.quote-btn-next:hover { background: var(--amber-light); }
.quote-btn-next.disabled { opacity: 0.35; pointer-events: none; }

.qz-success-step { text-align: center; padding: 1.5rem 0; }
.qz-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1.5px solid var(--amber);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.qz-success-icon svg { width: 26px; height: 26px; }
.qz-success-text {
  font-size: 0.92rem; color: var(--steel-light); line-height: 1.75;
  margin: 0.75rem auto 0; max-width: 420px;
}
.qz-upload-btn {
  display: inline-block; margin-top: 1.75rem;
  padding: 0.85rem 1.85rem; background: var(--amber); color: var(--navy);
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s;
}
.qz-upload-btn:hover { background: var(--amber-light); }

.qz-submit-error {
  display: none;
  font-size: 0.82rem; color: #E8846A; line-height: 1.6;
  margin-top: 0.75rem; padding: 0.7rem 0.9rem;
  border: 0.5px solid rgba(232,132,106,0.35); background: rgba(232,132,106,0.08);
}
.qz-submit-error.visible { display: block; }
.quote-btn-next.sending { opacity: 0.6; pointer-events: none; }

@media (max-width: 640px) {
  .quote-modal { padding: 0; align-items: flex-end; }
  .quote-modal-panel {
    max-width: 100%; max-height: 92vh;
    padding: 2.25rem 1.5rem 2rem;
  }
  .qz-question { font-size: 1.2rem; }
  .qz-options { grid-template-columns: 1fr; }
  .qz-field-row { grid-template-columns: 1fr; }
}

/* ── CHAT WIDGET ── */
.chat-widget {
  position: fixed; bottom: 6.5rem; right: 2rem; z-index: 600;
  width: 360px; max-width: calc(100vw - 2rem); height: 520px; max-height: 72vh;
  background: var(--navy-mid);
  border: 0.5px solid rgba(201,125,42,0.25);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.chat-widget.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.chat-widget-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.1rem; border-bottom: 0.5px solid rgba(122,143,163,0.15);
  flex-shrink: 0;
}
.chat-widget-title {
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600;
  color: var(--cream);
}
.chat-widget-subtitle {
  font-size: 0.72rem; color: var(--steel-light); margin-top: 0.15rem;
}
.chat-widget-close {
  background: none; border: none; color: var(--steel-light);
  cursor: pointer; padding: 0.3rem; display: flex; transition: color 0.2s;
}
.chat-widget-close:hover { color: var(--cream); }
.chat-widget-close svg { width: 18px; height: 18px; }
.chat-widget-messages {
  flex: 1; overflow-y: auto; padding: 1.1rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.chat-msg {
  max-width: 82%; padding: 0.6rem 0.85rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; line-height: 1.5;
  white-space: pre-wrap;
}
.chat-msg-assistant {
  align-self: flex-start; background: rgba(122,143,163,0.12);
  color: var(--cream); border: 0.5px solid rgba(122,143,163,0.18);
}
.chat-msg-user {
  align-self: flex-end; background: var(--amber); color: var(--navy);
}
.chat-typing { display: flex; align-items: center; gap: 0.3rem; padding: 0.75rem 0.9rem; }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--steel-light);
  animation: chatTypingBounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-widget-input-row {
  display: flex; align-items: flex-end; gap: 0.6rem;
  padding: 0.85rem 1rem; border-top: 0.5px solid rgba(122,143,163,0.15);
  flex-shrink: 0;
}
.chat-widget-input {
  flex: 1; resize: none; max-height: 96px; min-height: 20px;
  background: transparent; border: none; outline: none;
  color: var(--cream); font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
  line-height: 1.4; padding: 0.35rem 0;
}
.chat-widget-input::placeholder { color: var(--steel); }
.chat-widget-send {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--amber); color: var(--navy); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}
.chat-widget-send:hover { background: var(--amber-light); }
.chat-widget-send:disabled { opacity: 0.5; cursor: default; }
.chat-widget-send svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .chat-widget {
    bottom: 0; right: 0; width: 100%; max-width: 100%;
    height: 100%; max-height: 100%;
  }
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute; bottom: 2.75rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0; animation: fadeIn 1s 1.8s forwards;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(201,125,42,0.65), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-label {
  font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(201,125,42,0.4); font-family: 'DM Sans', sans-serif;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1.18); }
}

/* ── MARQUEE STRIP ── */
.marquee-strip {
  background: #C97D2A;
  padding: 0.65rem 0;
  overflow: hidden;
  border-top: 0.5px solid rgba(201,125,42,0.5);
  border-bottom: 0.5px solid rgba(201,125,42,0.5);
}
.marquee-track {
  display: flex; white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 0 1.6rem;
  font-size: 0.68rem; letter-spacing: 0.17em; text-transform: uppercase;
  font-weight: 500; color: #0A1628; font-family: 'DM Sans', sans-serif;
}
.marquee-sep { opacity: 0.35; font-size: 0.45rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SERVICES SHOWCASE ── */
.services-showcase {
  display: flex; flex-direction: column;
  gap: 2px; background: rgba(26,53,40,0.1);
  margin-top: 3.5rem;
}
.showcase-panel {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 420px; overflow: hidden;
}

.showcase-img {
  position: relative; overflow: hidden;
  background: #0F2040;
}
.showcase-panel.flip .showcase-img { order: -1; }

.showcase-img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.58;
  transition: opacity 0.75s ease, transform 0.85s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.75s ease;
  filter: grayscale(35%) saturate(0.75);
  display: block;
}
.showcase-panel:hover .showcase-img img {
  opacity: 0.78; transform: scale(1.05);
  filter: grayscale(0%) saturate(1.05);
}
.showcase-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.12) 100%);
}
.showcase-img-tag {
  position: absolute; bottom: 1.5rem; left: 1.75rem;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(240,235,225,0.55); font-family: 'DM Sans', sans-serif;
}

.showcase-content {
  background: #F0EBE1;
  padding: 3.75rem 3.25rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  transition: background 0.35s;
}
.showcase-panel:hover .showcase-content { background: #EAE4D8; }

.showcase-num {
  font-family: 'Playfair Display', serif;
  font-size: 7rem; font-weight: 700;
  color: rgba(201,125,42,0.07); line-height: 1;
  position: absolute; top: 0.5rem; right: 1.5rem;
  letter-spacing: -0.04em; pointer-events: none;
  user-select: none;
}
.showcase-icon {
  width: 50px; height: 50px;
  border: 0.5px solid rgba(201,125,42,0.45);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}
.showcase-panel:hover .showcase-icon {
  border-color: rgba(201,125,42,0.85);
  background: rgba(201,125,42,0.07);
}
.showcase-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: #0A1628; line-height: 1.2; margin-bottom: 1rem;
}
.showcase-desc {
  font-size: 0.91rem; color: #4A5568;
  line-height: 1.85; font-weight: 300; max-width: 400px;
}
.showcase-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 2rem; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #C97D2A; font-weight: 500; text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}
.showcase-arrow {
  display: inline-block;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-panel:hover .showcase-arrow { transform: translateX(8px); }

/* ── SERVICES SUB GRID ── */
.services-sub-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5px; background: rgba(26,53,40,0.1);
  margin-top: 2px;
}
.service-sub {
  background: #F0EBE1;
  padding: 2.25rem 2rem;
  position: relative; overflow: hidden;
  transition: background 0.3s;
}
.service-sub::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: #C97D2A;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-sub:hover { background: #EAE4D8; }
.service-sub:hover::before { transform: scaleY(1); }

.service-sub-num {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(201,125,42,0.45); font-weight: 600;
  font-family: 'DM Sans', sans-serif; margin-bottom: 0.9rem;
}
.service-sub-icon { width: 38px; height: 38px; margin-bottom: 1rem; }
.service-sub-icon svg { width: 100%; height: 100%; }
.service-sub-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem; font-weight: 600;
  color: #0A1628; margin-bottom: 0.55rem; line-height: 1.3;
}
.service-sub-desc {
  font-size: 0.8rem; color: #5A6A7A;
  line-height: 1.65; font-weight: 300;
}

/* ── TECH ITEM HOVER ── */
.tech-item {
  transition: background 0.3s; position: relative;
}
.tech-item::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: #C97D2A;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tech-item:hover { background: #EAE4D8; }
.tech-item:hover::before { transform: scaleX(1); }

/* ── TEAM AVATAR GLOW ── */
.team-avatar {
  box-shadow: 0 0 0 4px rgba(201,125,42,0.07), 0 0 0 8px rgba(201,125,42,0.03);
  transition: box-shadow 0.35s;
}
.team-card:hover .team-avatar {
  box-shadow: 0 0 0 4px rgba(201,125,42,0.22), 0 0 0 8px rgba(201,125,42,0.09);
}

/* ── TESTIMONIAL HOVER ── */
.testimonial-card { transition: background 0.3s; }
.testimonial-card:hover { background: rgba(15,32,64,0.95); }

/* ── LOCATION TAG HOVER ── */
.location-tag {
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  cursor: default;
}
.location-tag:hover {
  background: rgba(201,125,42,0.1);
  border-color: rgba(201,125,42,0.5);
}

/* ── HERO FLOAT CARD PULSE ── */
@keyframes floatPulse {
  0%, 100% { border-color: rgba(201,125,42,0.25); box-shadow: none; }
  50%       { border-color: rgba(201,125,42,0.42); box-shadow: 0 0 24px rgba(201,125,42,0.07); }
}
.hero-float-card {
  animation: fadeIn 1s 1s forwards, floatPulse 4s 2s ease-in-out infinite;
}

/* ── STAT BLOCK HOVER ── */
.stat-block { transition: background 0.3s; padding: 1rem; }
.stat-block:hover { background: rgba(201,125,42,0.05); }

/* ── FOCUS RING ── */
*:focus-visible {
  outline: 1.5px solid #C97D2A;
  outline-offset: 3px;
}

/* ══════════════════════════════════════════
   TYPOGRAPHY SCALE — Global size increases
   ══════════════════════════════════════════ */

/* NAV */
.nav-links a        { font-size: 0.9rem; }
.nav-cta            { font-size: 0.86rem; }
.nav-logo-sub       { font-size: 0.72rem; }

/* HERO */
.hero-tag           { font-size: 0.8rem; }
.hero-sub           { font-size: 1.15rem; line-height: 1.8; }
.hero-stat-label    { font-size: 0.8rem; }
.float-card-label   { font-size: 0.74rem; }
.float-card-item    { font-size: 0.9rem; }
.cert-badge         { font-size: 0.74rem; }

/* STATS BAND */
.stat-desc          { font-size: 0.83rem; line-height: 1.65; }

/* SECTION COMMONS */
.section-eyebrow    { font-size: 0.76rem; }
.section-body       { font-size: 1.08rem; line-height: 1.85; }

/* SECTORS */
.sectors-col-title  { font-size: 0.76rem; }
.sector-tag         { font-size: 0.86rem; }

/* TEAM */
.team-role          { font-size: 0.86rem; }
.team-years         { font-size: 0.86rem; }
.cred-badge         { font-size: 0.75rem; }

/* TESTIMONIALS */
.testimonial-quote  { font-size: 1.12rem; line-height: 1.8; }
.t-name             { font-size: 0.97rem; }
.t-company          { font-size: 0.8rem; }

/* TECHNOLOGY */
.tech-item-name     { font-size: 0.97rem; }
.tech-item-desc     { font-size: 0.86rem; line-height: 1.7; }

/* CONTACT */
.contact-detail-text { font-size: 0.97rem; }
.form-label         { font-size: 0.76rem; }
.form-input,
.form-select,
.form-textarea      { font-size: 0.97rem; }
.form-submit        { font-size: 0.92rem; }
.location-tag       { font-size: 0.8rem; }

/* FOOTER */
.footer-copy        { font-size: 0.8rem; }
.footer-links a     { font-size: 0.8rem; }

/* BUTTONS */
.btn-primary,
.btn-outline        { font-size: 0.92rem; }

/* MARQUEE */
.marquee-item       { font-size: 0.76rem; letter-spacing: 0.15em; }

/* SHOWCASE SERVICES */
.showcase-title     { font-size: 1.7rem; }
.showcase-desc      { font-size: 1rem; line-height: 1.9; }
.showcase-link      { font-size: 0.78rem; }

/* SERVICE SUB GRID */
.service-sub-num    { font-size: 0.7rem; }
.service-sub-name   { font-size: 1.08rem; }
.service-sub-desc   { font-size: 0.88rem; line-height: 1.7; }

/* SCROLL INDICATOR */
.scroll-label       { font-size: 0.66rem; }

/* ── LOGO IMAGE ── */
.nav-logo-img {
  height: 66px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-img {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.88;
  transition: opacity 0.2s;
}
.footer-logo-img:hover { opacity: 1; }

/* =============================================
   RESPONSIVE LAYOUT
   Central overrides for both IPC pages.
   ============================================= */
@media (max-width: 1180px) {
  nav {
    padding: 1rem 2rem !important;
  }

  .nav-links {
    gap: 1.35rem !important;
  }

  .hero-inner,
  .section-inner,
  .stats-grid,
  .reach-inner,
  .contact-layout {
    max-width: 980px !important;
  }
}

@media (max-width: 980px) {
  nav {
    padding: 0.85rem 1.5rem !important;
  }

  .nav-logo-img {
    height: 54px !important;
  }

  .nav-links {
    display: none !important;
  }

  #hero {
    min-height: auto !important;
    padding: 8.5rem 1.5rem 4rem !important;
  }

  .hero-inner {
    max-width: 720px !important;
  }

  .hero-headline {
    max-width: 100% !important;
  }

  .hero-sub {
    max-width: 640px !important;
  }

  .hero-inner {
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .hero-float-card {
    width: min(100%, 440px) !important;
    align-self: flex-start !important;
  }
  .hero-photo-panel { height: 300px !important; }

  .hero-stats,
  .hero-divider {
    flex-wrap: wrap !important;
    gap: 1.5rem 2rem !important;
  }

  .stats-grid,
  .services-grid,
  .team-grid,
  .reach-cards,
  .services-sub-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .services-intro,
  .sectors-layout,
  .tech-intro,
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  .client-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .market-sectors-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .market-sector-tile:nth-child(13),
  .market-sector-tile:nth-child(14) { grid-column: auto !important; }
  .sectors-cta-strip { flex-direction: column !important; align-items: flex-start !important; }

  .showcase-panel {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .showcase-panel.flip .showcase-img {
    order: 0 !important;
  }

  .showcase-img {
    min-height: 260px !important;
  }

  .testimonials-grid,
  .tech-grid {
    grid-template-columns: 1fr !important;
  }

  .portfolio-item.wide {
    grid-column: span 2 !important;
    aspect-ratio: 16/9 !important;
  }
  .portfolio-item.full {
    grid-column: span 2 !important;
    aspect-ratio: 16/9 !important;
  }
  .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }

  .footer-main {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
    padding: 2.5rem 1.5rem 2rem !important;
  }
  .footer-contact-col { grid-column: 1 / -1 !important; }

  .nav-hamburger { display: flex !important; }
}

@media (max-width: 640px) {
  body {
    min-width: 0 !important;
  }

  nav {
    padding: 0.7rem 1rem !important;
  }

  .nav-logo-img {
    height: 42px !important;
    max-width: 128px !important;
  }

  .nav-cta {
    padding: 0.48rem 0.8rem !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
  }

  #hero {
    padding: 6.75rem 1rem 3rem !important;
  }

  .hero-headline {
    font-size: clamp(2.15rem, 11vw, 3rem) !important;
    line-height: 1.08 !important;
  }

  .hero-sub,
  .section-body,
  .cta-sub {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  .hero-actions,
  .cta-inner .reveal:last-child {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .btn-primary,
  .btn-outline {
    width: 100% !important;
    text-align: center !important;
    margin-left: 0 !important;
    padding: 0.85rem 1rem !important;
  }

  .hero-stats,
  .hero-divider {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.35rem !important;
    margin-top: 2.5rem !important;
    padding-top: 2rem !important;
  }

  #stats,
  #reach,
  #cta {
    padding: 3.25rem 1rem !important;
  }

  .section-inner,
  .testimonials-inner,
  .contact-layout {
    padding: 4rem 1rem !important;
  }

  .stats-grid,
  .services-grid,
  .team-grid,
  .reach-cards,
  .services-sub-grid,
  .portfolio-grid,
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .portfolio-item,
  .portfolio-item.wide,
  .portfolio-item.full {
    grid-column: auto !important;
    aspect-ratio: 4/3 !important;
  }
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .gallery-filter-btn { font-size: 0.7rem !important; padding: 0.38rem 0.75rem !important; }
  .gallery-info { padding: 0.75rem 0.8rem !important; }
  .gallery-tag { font-size: 0.62rem !important; }
  .gallery-caption { font-size: 0.95rem !important; }

  .scroll-indicator { display: none !important; }
  .hero-photo-panel { height: 240px !important; }
  .client-cards-grid { grid-template-columns: 1fr !important; }
  .market-sectors-grid { grid-template-columns: 1fr !important; }

  .service-card,
  .team-card,
  .testimonial-card,
  .reach-card,
  .service-sub,
  .showcase-content,
  .tech-item {
    padding: 1.6rem 1.25rem !important;
  }

  .showcase-img {
    min-height: 210px !important;
  }

  .showcase-num {
    font-size: 4.8rem !important;
  }

  .section-eyebrow,
  .hero-tag,
  .cta-eyebrow {
    letter-spacing: 0.14em !important;
  }

  .contact-detail-text,
  .contact-detail-text a {
    overflow-wrap: anywhere !important;
  }

  .footer-main {
    grid-template-columns: 1fr !important;
    padding: 2rem 1rem !important;
  }
  .footer-contact-col { grid-column: auto !important; }
  .footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    padding: 1rem !important;
  }

  .footer-links {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.85rem 1.25rem !important;
  }

  .footer-logo-img {
    height: 52px !important;
  }

  .float-contact {
    right: 1rem !important;
    bottom: 1rem !important;
  }
}

@media (max-width: 380px) {
  .nav-logo-img {
    height: 36px !important;
    max-width: 108px !important;
  }

  .nav-cta {
    padding: 0.44rem 0.65rem !important;
    font-size: 0.62rem !important;
  }

  .hero-headline {
    font-size: 2rem !important;
  }

  .stat-big,
  .reach-card-num {
    font-size: 2.75rem !important;
  }
}
