/* ────────────────────────────────────────────────────────────────────────────
   2Create360 AI — Shared Global Styles (Safe for all pages)
   Includes: Design Tokens | Reset | Navigation | Footer | Modal | Pixel Popup
   ──────────────────────────────────────────────────────────────────────────── */

/* ─── DESIGN TOKENS ────────────────────────────────────────────────────────── */
:root {
  --black:           #0a0a0b;
  --void:            #0e0e10;
  --surface:         #141416;
  --surface2:        #1a1a1d;
  --border:          rgba(255,255,255,0.07);
  --border-mid:      rgba(255,255,255,0.12);
  
  --crimson:         #8B1A1A;
  --crimson-mid:     #a82020;
  --gold:            #c9a84c;
  --gold-dim:        #9e7d34;
  --teal:            #0d6b6b;
  --teal-glow:       #0e9090;
  --teal-light:      #12b8b8;
  --amber:           #d4750a;
  --amber-light:     #f0922a;
  --amber-dim:       #9e5208;
  
  --text:            #e8e6e1;
  --text-muted:      #8a8680;
  --text-dim:        #5a5854;
  
  --font-display:    'Rajdhani', sans-serif;
  --font-serif:      'Cormorant Garamond', serif;
  --font-mono:       'JetBrains Mono', monospace;
  
  --page-accent-glow: rgba(139,26,26,0.3);
}

/* ─── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  --crimson-glow:    #c0392b;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--crimson);
}
body[data-accent="#0e9090"] ::-webkit-scrollbar-thumb { background: var(--teal-glow); }
body[data-accent="#c9a84c"] ::-webkit-scrollbar-thumb { background: var(--gold); }
body[data-accent="#d4750a"] ::-webkit-scrollbar-thumb { background: var(--amber); }

/* ─── UTILITY CLASSES ──────────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--crimson-glow);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--gold);
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.85;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  background: var(--crimson);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--crimson-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-teal {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  background: var(--teal-glow);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.btn-teal:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

.btn-gold {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  background: var(--gold);
  color: var(--black);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.btn-gold:hover {
  background: #e0bc58;
  transform: translateY(-2px);
}

.btn-amber {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  background: var(--amber);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.btn-amber:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
}

/* ─── NAVIGATION ───────────────────────────────────────────────────────────── */
#main-nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, background 0.4s;
}
nav.scrolled {
  padding: 0.8rem 4rem;
  background: rgba(10, 10, 11, 0.9);
}

.nav-logo img {
  height: 38px;
}

/* LOGO STYLES */
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}
.nav-logo-img:hover {
  opacity: 0.85;
}

.hero-logo-subdued {
  margin-bottom: 2rem;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}
.hero-logo-subdued:hover {
  opacity: 0.9;
}
.hero-logo-subdued img {
  max-width: 400px;
  height: auto;
  filter: grayscale(0.3);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}
.nav-logo-text span {
  color: var(--crimson-glow);
}

.nav-links {
  display: flex;
  gap: 1.5rem;  /*  Chaged from 2.5 */
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.55rem 1.6rem;
  border: 1px solid var(--crimson);
  color: var(--text) !important;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover {
  background: var(--crimson);
  color: #fff !important;
}
/* ─── TEAL CTA — Cal.com booking trigger ────────────────────────────────
   Mirrors .nav-cta geometry so the two buttons sit as a matched pair,
   but uses the teal accent to signal "book a slot" vs. "contact us".
   The anchor also carries data-cal-* attributes handled by main.js. */
.nav-cta-teal {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.55rem 1.6rem;
  border: 1px solid var(--teal-glow);
  color: var(--text) !important;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.nav-cta-teal:hover,

.nav-cta-teal:focus-visible {
  background: var(--teal-glow);
  color: #fff !important;
  box-shadow: 0 0 20px rgba(14, 144, 144, 0.35);
  outline: none;
}

/* Active-page variant (consistent with .nav-cta.active behaviour) */
.nav-links a.nav-cta-teal.active {
  background: transparent;
  color: var(--text) !important;
  padding: 0.55rem 1.6rem;
  margin: 0;
  border: 1px solid var(--teal-glow);
}
.nav-links a.nav-cta-teal.active:hover {
  background: var(--teal-glow);
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--text);
  display: block;
  transition: 0.3s;
}

.nav-links a.active-link {
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 20px var(--page-accent-glow), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.nav-links a.active-link::after {
  display: none;
}
.nav-links a.nav-cta.active {
  background: transparent;
  color: var(--text) !important;
  padding: 0.55rem 1.6rem;
  margin: 0;
  border: 1px solid var(--crimson);
}
.nav-links a.nav-cta.active:hover {
  background: var(--crimson);
  color: #fff !important;
}
/* ---------------- SCreen Readers ----------------------------------*/
.sr-only {
  position: absolute;        /* Take it out of normal flow */
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);    /* Clip the content so nothing shows */
  white-space: nowrap;
  border: 0;
}
/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
footer {
  background: var(--void);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

/* Footer logo */
.footer-logo-img {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.footer-brand-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 280px;
}

/* Footer grid layouts */
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.footer-col-links a:hover {
  color: var(--text-muted);
}
.footer-col-links a.active-footer-link {
  color: var(--text);
}
.footer-col-links a.active-footer-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--active-footer-color, currentColor);
  border-radius: 1px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}
.footer-socials a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-socials a:hover {
  color: var(--crimson-glow);
}
.footer-socials a svg {
  display: block;
  vertical-align: middle;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.footer-special {
  color: var(--gold) !important;
  position: relative;
}
.footer-special::before {
  content: '✦';
  position: absolute;
  left: -1.2rem;
  opacity: 0.8;
  font-size: 0.7rem;
  color: var(--gold);
}
.footer-special:hover {
  color: var(--crimson-glow) !important;
}
.footer-special:hover::before {
  color: var(--crimson-glow);
}


/* Responsive footer */
@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-logo-img {
    height: 32px;
  }
  .footer-logo-img {
    max-width: 200px;
  }
  .hero-logo-subdued img {
    max-width: 140px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .nav-logo-img {
    height: 36px;
  }
  .footer-logo-img {
    max-width: 230px;
  }
  .hero-logo-subdued img {
    max-width: 160px;
  }
}

/* ─── CONTACT MODAL ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 580px;
  padding: 3.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--text);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.modal-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--crimson-glow);
}
.form-group textarea {
  min-height: 100px;
}
.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--crimson);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.25s;
}
.form-submit:hover {
  background: var(--crimson-glow);
}
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.form-success.show {
  display: block;
}
.success-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.success-body {
  color: var(--text-muted);
  font-size: 0.9rem;
}
/* ─── PIXEL CLOUD MODAL (PopUp) - UPDATED LAYOUT ───────────────────────────── */
.pixel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}
.pixel-modal.active {
  visibility: visible;
}
.pixel-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 11, 0.94);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pixel-modal.active .pixel-modal-overlay {
  opacity: 1;
}
.pixel-cloud-container {
  position: relative;
  z-index: 10001;
  width: 90%;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
.pixel-modal.active .pixel-cloud-container {
  opacity: 1;
  transform: scale(1);
}
.pixel-cloud-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(20, 1fr);
  pointer-events: none;
  z-index: 0;
}
.pixel {
  background: var(--crimson);
  opacity: 0;
  transition: opacity 0.06s linear;
  border-radius: 1px;
}
.pixel.revealed {
  opacity: 1;
}
.pixel-modal-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  background: var(--surface);
  border-radius: 28px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.pixel-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: rgba(255,255,255,0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pixel-modal-close:hover {
  background: var(--crimson);
  color: #fff;
}

/* Header logo */
.pixel-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pixel-modal-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  display: inline-block;
}

/* Intro text (full width, no image) */
.pixel-modal-intro {
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.pixel-modal-intro p {
  margin-bottom: 1rem;
}
.pixel-modal-intro p:last-child {
  margin-bottom: 0;
}

/* Ron Singh section with image float */
.pixel-modal-ron-section {
  margin-bottom: 1rem;
  flex: 1;
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom scrollbar */
.pixel-modal-ron-section::-webkit-scrollbar {
  width: 4px;
}
.pixel-modal-ron-section::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 4px;
}
.pixel-modal-ron-section::-webkit-scrollbar-thumb {
  background: var(--crimson);
  border-radius: 4px;
}

/* Left-aligned image with text wrap */
.pixel-modal-image-left {
  float: left;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}
.pixel-modal-image-left img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

/* Ron Singh text that wraps around the floated image */
.pixel-modal-ron-text {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.pixel-modal-ron-text p {
  margin-bottom: 0;
}
.pixel-modal-ron-text strong {
  color: var(--gold);
  font-family: var(--font-display);
}

/* Clearfix */
.pixel-modal-ron-section::after {
  content: "";
  display: table;
  clear: both;
}

/* Links section */
.pixel-modal-links {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-shrink: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.pixel-modal-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.pixel-modal-links a:hover {
  background: var(--crimson);
  border-color: var(--crimson-glow);
  color: #fff;
}

/* Responsive */
@media (max-width: 560px) {
  .pixel-modal-ron-section {
    max-height: 280px;
  }
  .pixel-modal-image-left {
    float: none;
    display: flex;
    justify-content: center;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .pixel-modal-ron-text {
    text-align: center;
  }
  .pixel-modal-logo {
    max-width: 200px;
  }
}
/* ─── EXTERNAL LINK TOOLTIP ───────────────────────────────────────────────── */
.external-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(14,14,16,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.85rem 1rem;
  min-width: 260px;
  max-width: 320px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.02);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.external-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.external-tooltip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--teal-glow));
}
.external-tooltip-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--crimson-glow);
  margin-bottom: 0.45rem;
}
.external-tooltip-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.external-tooltip-url {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gold);
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── SHARED RESPONSIVE BREAKPOINTS ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .container {
    padding: 0 2.5rem;
  }
  nav {
    padding: 1.2rem 2.5rem;
  }
  nav.scrolled {
    padding: 0.8rem 2.5rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
  nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav-links.open a {
    font-size: 1.2rem;
  }
  .hamburger {
    display: flex;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 2rem 1.5rem;
  }
  .pixel-modal-content {
    padding: 1.8rem;
  }
  .pixel-modal-message {
    font-size: 0.9rem;
  }
  .pixel-modal-image img {
    width: 110px;
    height: 110px;
  }
}

    /* =======================================================
       CONTACT MODAL — MOBILE
       ======================================================= */

    /*
     * IMPORTANT:
     *
     * The modal is placed outside the navigation in the HTML,
     * but the navigation previously remained open when the
     * contact link was clicked.
     *
     * This gives the modal its own top-level viewport layer
     * as an additional safety measure.
     */
    #contactModal {
      position: fixed !important;

      top: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      left: 0 !important;

      width: 100vw !important;
      height: 100vh !important;
      height: 100dvh !important;

      max-width: 100vw !important;
      max-height: 100vh !important;
      max-height: 100dvh !important;

      box-sizing: border-box !important;

      /*
       * Start at the top rather than trying to vertically
       * center a form that may be taller than the phone.
       */
      display: flex !important;
      align-items: flex-start !important;
      justify-content: center !important;

      padding: 12px !important;

      overflow-x: hidden !important;
      overflow-y: auto !important;

      /*
       * Slightly above the mobile navigation.
       */
      z-index: 2147483647 !important;
    }


    /*
     * The actual white/dark modal panel.
     *
     * The panel itself scrolls when the form is taller
     * than the available phone height.
     */
    #contactModal .modal {
      position: relative !important;

      width: 100% !important;
      max-width: 600px !important;

      /*
       * Leave a small breathing space around the modal.
       */
      max-height: calc(100vh - 24px) !important;
      max-height: calc(100dvh - 24px) !important;

      margin: 0 auto !important;

      box-sizing: border-box !important;

      overflow-x: hidden !important;
      overflow-y: auto !important;

      /*
       * Do not allow desktop centering transforms to
       * push the modal off-screen.
       */
      transform: none !important;
    }


    /*
     * Stack the two-column fields on small screens.
     *
     * First/Last Name
     * Phone/Company
     *
     * become one field per row.
     */
    #contactModal .form-row {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;

      width: 100% !important;
      gap: 0 !important;
    }


    /*
     * Prevent form controls from creating horizontal
     * overflow on narrow phones.
     */
    #contactModal .form-group {
      min-width: 0 !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }


    #contactModal input,
    #contactModal select,
    #contactModal textarea {
      width: 100% !important;
      max-width: 100% !important;

      box-sizing: border-box !important;
    }


    /*
     * Give the message field enough room to use comfortably
     * on a phone.
     */
    #contactModal textarea {
      min-height: 120px !important;
      max-width: 100% !important;
      resize: vertical !important;
    }


    /*
     * Make sure the close control remains usable.
     */
    #contactModal .modal-close {
      position: sticky !important;
      top: 0 !important;

      z-index: 20 !important;
    }


    /*
     * Prevent long modal content from causing horizontal
     * scrolling.
     */
    #contactModal *,
    #contactModal *::before,
    #contactModal *::after {
      box-sizing: border-box !important;
      max-width: 100% !important;
    }
  }


  /* =========================================================
     SHORT MOBILE SCREENS
     ========================================================= */

  @media (max-width: 700px) and (max-height: 520px) {

    #main-nav {
      --mobile-nav-height: 56px;
    }


    #nav-links.open {
      top: 56px !important;

      height: calc(100vh - 56px) !important;
      height: calc(100dvh - 56px) !important;

      max-height: calc(100vh - 56px) !important;
      max-height: calc(100dvh - 56px) !important;

      padding: 5px 18px 10px !important;
    }


    #nav-links.open a {
      min-height: 36px !important;

      padding: 6px 0 !important;

      font-size: 0.8rem !important;
      line-height: 1.15 !important;
    }


    /*
     * Short phones need slightly tighter modal spacing.
     */
    #contactModal {
      padding: 8px !important;
    }


    #contactModal .modal {
      max-height: calc(100vh - 16px) !important;
      max-height: calc(100dvh - 16px) !important;
    }
  }

  /* =========================================================
   MOBILE NAVIGATION — self-contained inline override
   Works alongside styles_dev.css. No external file needed.
   ========================================================= */

/* ---------- BASE OVERRIDE: ensure nav position + z-index is safe on mobile ---------- */

@media (max-width: 700px) {

  /* Nav bar: fixed at top, above everything else */
  #main-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    z-index: 2147483646 !important;
    isolation: isolate !important;
  }

  /* Hamburger: ALWAYS visible on mobile */
  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    cursor: pointer !important;
  }

  /* Desktop nav links: hidden by default on mobile */
  .nav-links {
    display: none !important;
  }

  /* When .open is toggled by JS: full-screen vertical menu */
  #nav-links.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100vh - 64px) !important;
    height: calc(100dvh - 64px) !important;
    max-height: calc(100vh - 64px) !important;
    max-height: calc(100dvh - 64px) !important;
    margin: 0 !important;
    padding: 10px 20px 20px !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #0e0e10 !important;
    z-index: 2147483645 !important;
  }

  /* Each link in the mobile menu */
  #nav-links.open a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 9px 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    flex: 0 0 auto !important;
    color: var(--text) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    border-bottom: 1px solid var(--border) !important;
  }

  /* Get In Touch button inside mobile menu */
  #nav-links.open .nav-cta {
    margin-top: 12px !important;
    justify-content: center !important;
    text-align: center !important;
    border: 1px solid var(--crimson) !important;
    border-bottom: 1px solid var(--crimson) !important;
    padding: 12px !important;
  }

  /* Prevent hero stacking contexts from competing with the nav */
  .hero,
  .hero-bg,
  .hero-bg img,
  .hero-content {
    z-index: auto !important;
  }
}

/* ---------- LANDSCAPE PHONES (flat, non-nested query) ---------- */
@media (max-width: 700px) and (max-height: 520px) {
  #nav-links.open {
    top: 56px !important;
    height: calc(100vh - 56px) !important;
    height: calc(100dvh - 56px) !important;
    max-height: calc(100vh - 56px) !important;
    max-height: calc(100dvh - 56px) !important;
  }
  #nav-links.open a {
    min-height: 36px !important;
    padding: 6px 0 !important;
    font-size: 13px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE UTILITY KIT — LIVE STYLES (mirror of styles.css)
   ═══════════════════════════════════════════════════════════════════════════ */
   /* ---------- SIZING HELPERS ---------- */

.img-w150 { width: 150px; }
.img-w200 { width: 200px; }
.img-w250 { width: 250px; }
.img-w300 { width: 300px; }
.img-w400 { width: 400px; }
.img-w500 { width: 500px; }
.img-w600 { width: 600px; }
.img-full { width: 100%; }

/* Fluid sizes: shrink on small screens */
@media (max-width: 640px) {
  .img-w150, .img-w200, .img-w250,
  .img-w300, .img-w400, .img-w500, .img-w600 {
    width: 100%;
  }
}


/* Base hover zoom on every preview image */
.row-preview img {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.45s ease,
    border-radius 0.35s ease;
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════════════════
   IMAGE UTILITY KIT — SHAPE
   ═══════════════════════════════════════════════════════════════════════ */

.img-rcorner {
  border-radius: 12px !important;
  overflow: hidden;
}

.img-rcorner-lg {
  border-radius: 24px !important;
  overflow: hidden;
}

.img-round {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  overflow: hidden;
}

.img-pill {
  border-radius: 999px !important;
  overflow: hidden;
}
/* ---------- SHADOW ---------- */
.img-shadow {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 16px 40px -8px rgba(0, 0, 0, 0.65);
}
.img-shadow-hard {
  box-shadow:
    6px 6px 0 0 rgba(0, 0, 0, 0.75),
    10px 10px 24px -6px rgba(0, 0, 0, 0.55);
}
.img-shadow-glow {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(240, 146, 42, 0.15),
    0 12px 40px -8px rgba(240, 146, 42, 0.35);
}
.img-shadow-glow:hover {
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.65),
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(240, 146, 42, 0.3),
    0 12px 48px -8px rgba(240, 146, 42, 0.55);
}
.img-shadow-crimson {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(192, 57, 43, 0.15),
    0 12px 40px -8px rgba(192, 57, 43, 0.4);
}
.img-shadow-crimson:hover {
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.65),
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(192, 57, 43, 0.3),
    0 12px 48px -8px rgba(192, 57, 43, 0.6);
}

/* ---------- FILTERS ---------- */
.img-bw       { filter: grayscale(1) contrast(1.05); }
.img-bw:hover { filter: grayscale(0) contrast(1); }

.img-sepia       { filter: sepia(0.85) contrast(1.05) brightness(0.95); }
.img-sepia:hover { filter: sepia(0) contrast(1) brightness(1); }

.img-muted    { filter: saturate(0.65) brightness(0.92); }
.img-contrast { filter: contrast(1.15) saturate(1.05); }
.img-dim      { filter: brightness(0.65) saturate(0.9); }
.img-duotone  {
  filter: grayscale(1) sepia(0.4) hue-rotate(-10deg) saturate(2.2)
          contrast(1.05) brightness(0.95);
}

/* ---------- EFFECTS (continuous) ---------- */
.img-pulse {
  animation: img-pulse 3s ease-in-out infinite;
  transform-origin: center;
}
@keyframes img-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

.img-pulse-soft {
  animation: img-pulse-soft 4.5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes img-pulse-soft {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}

.img-pulse-glow {
  animation: img-pulse-glow 3.5s ease-in-out infinite;
}
@keyframes img-pulse-glow {
  0%, 100% {
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.5),
      0 0 0 0 rgba(240, 146, 42, 0.35);
  }
  50% {
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.5),
      0 0 0 14px rgba(240, 146, 42, 0);
  }
}

.img-float {
  animation: img-float 4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes img-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.img-float-soft {
  animation: img-float-soft 6s ease-in-out infinite;
}
@keyframes img-float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ---------- EFFECTS (hover only) ---------- */
.img-float-hover {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-float-hover:hover { transform: translateY(-6px); }

.img-tilt {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-tilt:hover { transform: rotate(-2deg) scale(1.02); }

.img-tilt-right {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-tilt-right:hover { transform: rotate(2deg) scale(1.02); }

.img-tilt-idle {
  transform: rotate(-1.5deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-tilt-idle:hover { transform: rotate(0deg) scale(1.02); }

.img-tilt-3d {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}
.img-tilt-3d:hover {
  transform: perspective(800px) rotateX(3deg) rotateY(-4deg) scale(1.03);
}

.img-zoom-slow { transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.img-zoom-slow:hover { transform: scale(1.08); }

.img-lift {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-lift:hover {
  transform: translateY(-6px);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.6),
    0 24px 64px -12px rgba(0, 0, 0, 0.75);
}

.img-shine { position: relative; overflow: hidden; }
.img-shine::after {
  content: "";
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255,255,255,0.12) 40%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.12) 60%,
    transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}
.img-shine:hover::after { left: 125%; }

.img-shine-auto::after { animation: img-shine-auto 4s ease-in-out infinite; }
@keyframes img-shine-auto {
  0%, 60%, 100% { left: -75%; }
  80%           { left: 125%; }
}

/* ---------- TREATMENT ---------- */
.img-frame {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.img-frame img { border-radius: 3px; width: 100%; height: auto; }

.img-frame-accent {
  padding: 6px;
  background: transparent;
  border: 1px solid var(--amber-light);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(240, 146, 42, 0.15);
}
.img-frame-accent img { border-radius: 6px; width: 100%; height: auto; }

.img-fade-bottom {
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.img-fade-top {
  mask-image: linear-gradient(to top, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 60%, transparent 100%);
}
.img-fade-edges {
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 95%);
}

.img-vignette { position: relative; }
.img-vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 55%,
    rgba(0, 0, 0, 0.55) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.img-outline {
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
}
.img-outline-amber {
  outline: 1px solid rgba(240, 146, 42, 0.4);
  outline-offset: -1px;
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  .img-pulse, .img-pulse-soft, .img-pulse-glow,
  .img-float, .img-float-soft, .img-shine-auto::after {
    animation: none;
  }
  .img-bw, .img-sepia, .img-tilt, .img-tilt-right, .img-tilt-idle,
  .img-tilt-3d, .img-zoom-slow, .img-lift, .img-float-hover,
  .img-shine::after {
    transition: none;
  }
}
/* ---- POSITION (with text wrap) ---- */

/* Left float, text wraps to the right */
.img-left {
  float: left !important;
  margin: 0.4rem 1.75rem 1rem 0 !important;
  max-width: 45% !important;
}

/* Right float, text wraps to the left */
.img-right {
  float: right !important;
  margin: 0.4rem 0 1rem 1.75rem !important;
  max-width: 45% !important;
}

/* Center — block, no wrap */
.img-center {
  float: none !important;
  display: block !important;
  margin: 2rem auto !important;
  max-width: 100% !important;
}

/* Clear float context */
.img-clear {
  clear: both !important;
}

/* Collapse floats on mobile so text doesn't get squeezed */
@media (max-width: 720px) {
  .img-left,
  .img-right {
    float: none !important;
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 2rem auto !important;
  }
}

