/* ═══════════════════════════════════════
   ATLAS — A DMT Company
   css/style.css
═══════════════════════════════════════ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Prevent horizontal overflow on all elements */
* {
  max-width: 100%;
}

:root {
  --black:  #060606;
  --white:  #f4f0e8;
  --gold:   #c9a85c;
  --gold2:  #e8c87a;
  --dim:    #888;
  --border: rgba(201, 168, 92, 0.15);
  --F: 'Syne', sans-serif;
  --B: 'DM Sans', sans-serif;
}

/* ── ACCESSIBILITY ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip links for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold);
  color: var(--black);
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Prevent overflow on all SVGs */
svg {
  max-width: 100%;
  height: auto;
}

/* Focus styles for keyboard navigation */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html  { 
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}
body  {
  background: var(--black);
  color: var(--white);
  font-family: var(--B);
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

/* Custom cursor - desktop only */
@media (pointer: fine) and (hover: hover) {
  body { cursor: none; }
  #cur {
    position: fixed; width: 12px; height: 12px;
    background: var(--gold); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transition: width .2s, height .2s, background .2s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }
  #cur.big { width: 80px; height: 80px; background: rgba(201,168,92,.15); }
  #cur-ring {
    position: fixed; width: 44px; height: 44px;
    border: 1px solid rgba(201,168,92,.4);
    border-radius: 50%; pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width .3s, height .3s, border-color .3s;
  }
  #cur-label {
    position: fixed; font-size: 10px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--gold);
    pointer-events: none; z-index: 9999;
    opacity: 0; transition: opacity .3s; white-space: nowrap;
    transform: translate(-50%, -50%);
  }
}

/* Hide cursor on touch devices */
@media (pointer: coarse), (hover: none) {
  #cur, #cur-ring, #cur-label { display: none !important; }
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 88px;
  padding: 0 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all .5s ease;
  background: transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
nav.stuck {
  height: 72px;
  background: rgba(6,6,6,.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* Safe area support for notched devices */
@supports (padding: max(0px)) {
  nav {
    padding-left: max(64px, env(safe-area-inset-left));
    padding-right: max(64px, env(safe-area-inset-right));
  }
  nav.stuck {
    padding-left: max(64px, env(safe-area-inset-left));
    padding-right: max(64px, env(safe-area-inset-right));
  }
}

/* Logo */
.dmt-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
  background: transparent;
  object-fit: contain;
}

.dmt-logo-footer {
  max-width: 140px;
  margin: 0 auto 12px;
}

.n-logo {
  text-decoration: none;
  display: flex; flex-direction: row;
  align-items: center; gap: 16px;
  text-align: left;
  max-width: 35%;
  flex-shrink: 0;
}

@media (pointer: fine) and (hover: hover) {
  .n-logo { cursor: none; }
}

.n-logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  min-width: 0;
}

.n-logo-main {
  font-family: var(--F);
  font-size: 18px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  color: #ffffff;
  display: block;
  white-space: nowrap;
  line-height: 1.2;
}
.n-logo-sub {
  font-family: var(--B);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: #ffffff;
  display: block; white-space: nowrap;
  line-height: 1.3;
}
.n-logo-tag {
  font-family: var(--B);
  font-size: 10px; font-weight: 400;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold);
  display: block; white-space: nowrap;
}

.n-links { display: flex; gap: 48px; list-style: none; flex: 1; justify-content: center; }
.n-links a {
  font-size: 11px; font-weight: 400; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
  text-decoration: none; transition: color .3s;
  white-space: nowrap;
}
.n-links a:hover { color: var(--white); }

.n-btn {
  font-size: 11px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--black);
  background: var(--gold); border: none;
  padding: 10px 26px;
  text-decoration: none;
  transition: background .3s, transform .2s;
  flex-shrink: 0;
}
@media (pointer: fine) and (hover: hover) {
  .n-btn { cursor: none; }
}
.n-btn:hover { background: var(--white); }

/* ── HERO ── */
#hero {
  height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 64px 72px;
  position: relative; overflow: visible;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

/* Safe area support for hero */
@supports (padding: max(0px)) {
  #hero {
    padding-top: max(140px, env(safe-area-inset-top));
  }
}

#heroCanvas { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.hero-title {
  position: relative; z-index: 2;
  font-family: var(--F);
  font-size: clamp(48px, 10.5vw, 160px);
  font-weight: 800; line-height: .88;
  letter-spacing: -.025em; text-transform: uppercase;
  margin-bottom: 52px; 
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
.hero-title .word-wrap {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
}
.mag-letter {
  display: inline-block;
  transition: color .3s; 
  will-change: transform;
  max-width: none;
  transform: translateZ(0);
  overflow: visible;
}
@media (pointer: fine) and (hover: hover) {
  .mag-letter { cursor: none; }
}
.mag-letter.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}
.mag-letter.gold { color: var(--gold); -webkit-text-stroke: 0; }

.hero-bot {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 80px;
  opacity: 0; animation: fadeUp .8s .9s ease forwards;
  justify-content: center;
  width: 100%;
}
.hero-desc {
  font-size: 14px; font-weight: 300; color: var(--dim);
  max-width: 320px; line-height: 1.9;
  text-align: center;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }

.btn-p {
  font-size: 11px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--black);
  background: var(--gold); border: 1px solid var(--gold);
  padding: 14px 32px;
  text-decoration: none;
  display: inline-block; transition: all .3s;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (pointer: fine) and (hover: hover) {
  .btn-p { cursor: none; }
}
.btn-p:hover { background: var(--white); border-color: var(--white); }

.btn-g {
  font-size: 11px; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; color: var(--white);
  background: transparent; border: 1px solid rgba(255,255,255,.18);
  padding: 14px 32px;
  text-decoration: none;
  display: inline-block; transition: all .3s;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (pointer: fine) and (hover: hover) {
  .btn-g { cursor: none; }
}
.btn-g:hover { border-color: var(--gold); color: var(--gold); }

.scroll-ind {
  position: absolute; bottom: 40px; right: 64px; z-index: 2;
  writing-mode: vertical-rl;
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim); display: flex; align-items: center; gap: 10px;
}
.scroll-ind::after {
  content: ''; width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--dim), transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* ── MARQUEE ── */
.mq {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0; overflow: hidden;
}
.mq-track {
  display: flex; white-space: nowrap;
  animation: mq 22s linear infinite;
}
.mq-track:hover { animation-play-state: paused; }
.mq-item {
  font-family: var(--F); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim); padding: 0 44px;
  display: inline-flex; align-items: center; gap: 44px;
}
.mq-item::after { content: '◆'; font-size: 5px; color: var(--gold); }

/* ── SERVICES ── */
#services { 
  padding: 140px 64px;
  width: 100%;
  max-width: 100vw;
}
.section-h2 {
  font-family: var(--F);
  font-size: clamp(32px, 5.5vw, 72px);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -.025em; line-height: .95; margin-bottom: 0;
  word-wrap: break-word;
}
.svc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; background: var(--border); margin-top: 80px;
  width: 100%;
  max-width: 100%;
}
.svc-card {
  background: var(--black); padding: 52px 44px;
  position: relative; overflow: hidden;
  transition: background .4s;
  cursor: none;
  max-width: 100%;
  box-sizing: border-box;
}
@media (pointer: coarse), (hover: none) {
  .svc-card { cursor: auto; }
}
.svc-card::before {
  content:''; position:absolute; bottom:-80px; right:-80px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,92,.06) 0%, transparent 70%);
  transition: all .6s ease;
}
.svc-card:hover              { background: #0c0c0c; }
.svc-card:hover::before      { bottom: -40px; right: -40px; }
.svc-num                     { font-family: var(--F); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--gold); margin-bottom: 24px; }
.svc-card h3                 { font-family: var(--F); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; color: var(--white); margin-bottom: 14px; transition: color .3s; }
.svc-card:hover h3           { color: var(--gold); }
.svc-card p                  { font-size: 13px; font-weight: 300; color: var(--dim); line-height: 1.8; }
.svc-price                   { margin-top: 28px; font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--gold); }

/* ── QUOTE / PARALLAX ── */
#quote-section {
  height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  width: 100%;
  max-width: 100vw;
}
#quoteCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.quote-inner { position: relative; z-index: 2; text-align: center; padding: 0 64px; max-width: 1100px; }
.big-quote {
  font-family: var(--F);
  font-size: clamp(28px, 5.5vw, 72px);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -.02em; line-height: 1.1; color: var(--white);
  word-wrap: break-word;
}
.big-quote em  { font-style: normal; color: var(--gold); }
.big-quote .out { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3); }

@media (max-width: 768px) {
  #quote-section {
    height: auto;
    min-height: 100vh;
    padding: 80px 24px;
  }
  .quote-inner {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  #quote-section {
    padding: 64px 16px;
  }
  .quote-inner {
    padding: 0 16px;
  }
}

/* ── STATS ── */
#stats {
  padding: 0 64px 140px;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 2px; background: var(--border);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}
.stat {
  background: var(--black); padding: 60px 40px; text-align: center; transition: background .4s;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (pointer: fine) and (hover: hover) {
  .stat { cursor: none; }
}
.stat:hover { background: #0d0d0d; }
.snum  { font-family: var(--F); font-size: 60px; font-weight: 800; color: var(--gold); letter-spacing: -.02em; line-height: 1; margin-bottom: 10px; display: block; }
.slabel { font-size: 10px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }

@media (max-width: 768px) {
  #stats {
    padding: 0 24px 80px;
  }
  .stat {
    padding: 40px 24px;
  }
  .snum {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  #stats {
    padding: 0 16px 72px;
  }
  .stat {
    padding: 32px 16px;
  }
  .snum {
    font-size: 40px;
  }
  .slabel {
    font-size: 9px;
  }
}

@media (max-width: 375px) {
  #stats {
    padding: 0 14px 64px;
  }
  .stat {
    padding: 28px 14px;
  }
  .snum {
    font-size: 36px;
  }
}

@media (max-width: 320px) {
  #stats {
    padding: 0 12px 56px;
  }
  .stat {
    padding: 24px 12px;
  }
  .snum {
    font-size: 32px;
  }
  .slabel {
    font-size: 8px;
  }
}

/* ── FEATURES ── */
#features { padding: 140px 64px; }
.feat-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 80px; }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--border); }

@media (max-width: 768px) {
  .feat-grid { 
    grid-template-columns: 1fr; 
    gap: 2px;
  }
}
.feat {
  background: var(--black); padding: 48px 40px;
  transition: background .4s;
  position: relative; overflow: hidden;
}
@media (pointer: fine) and (hover: hover) {
  .feat { cursor: none; }
}
.feat::after {
  content:''; position:absolute; top:-60px; left:-60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,92,.05) 0%, transparent 70%);
  transition: all .5s;
}
.feat:hover           { background: #0c0c0c; }
.feat:hover::after    { top: -20px; left: -20px; }
.feat-icon            { 
  width: 48px; 
  height: 48px; 
  color: var(--gold); 
  margin-bottom: 28px; 
  display: block; 
  transition: color .3s;
  flex-shrink: 0;
  max-width: 100%;
}
.feat:hover .feat-icon { color: var(--gold2); }
.feat h3              { font-family: var(--F); font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--white); margin-bottom: 14px; transition: color .3s; }
.feat:hover h3        { color: var(--gold); }
.feat p               { font-size: 13px; font-weight: 300; color: var(--dim); line-height: 1.8; }

/* ── PORTFOLIO ── */
#portfolio { padding: 140px 64px; background: var(--black); }

/* ── CTA / CONTACT FORM ── */
#cta {
  padding: 140px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  border-top: 1px solid var(--border);
}

#cta-pre {
  padding: 140px 64px;
  background: var(--black);
  text-align: center;
}

@media (max-width: 768px) {
  #cta-pre {
    padding: 80px 24px;
  }
}

@media (max-width: 480px) {
  #cta-pre {
    padding: 64px 16px;
  }
}

@media (max-width: 320px) {
  #cta-pre {
    padding: 56px 12px;
  }
}
.cta-r p {
  font-size: 14px;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.9;
  margin-bottom: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  max-inline-size: 100%;
  background: transparent;
  border: 1px solid var(--border);
  padding: 14px 18px;
  font-family: var(--B);
  font-size: 16px;
  color: var(--white);
  outline: none;
  transition: border-color .3s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height: 48px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #444;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a85c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--black);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  font-family: var(--B);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 32px;
  cursor: pointer;
  transition: all .3s;
  align-self: flex-start;
  min-height: 48px;
  min-width: 160px;
  max-width: 100%;
  box-sizing: border-box;
}

@media (pointer: fine) and (hover: hover) {
  .submit-btn { cursor: none; }
}

.submit-btn:hover {
  background: var(--white);
  border-color: var(--white);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Newsletter form styles */
.newsletter-form input {
  min-height: 44px;
}

.newsletter-form input:focus {
  border-color: var(--gold);
}

.newsletter-btn:hover {
  background: var(--white) !important;
  border-color: var(--white) !important;
}

@media (pointer: fine) and (hover: hover) {
  .newsletter-btn { cursor: none; }
}

/* Form validation styles */
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #e74c3c;
}

/* Loading spinner for submit button */
.submit-btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(6, 6, 6, 0.3);
  border-top-color: #060606;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Success and error message styles */
#formMessage.success {
  color: #27ae60;
}

#formMessage.error {
  color: #e74c3c;
}

/* ── FOOTER ── */
footer { 
  padding: 80px 64px 40px; 
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}
.ft    { 
  display: grid; 
  grid-template-columns: 1.6fr 1fr 1fr 1fr; 
  gap: 60px; 
  margin-bottom: 80px;
  width: 100%;
  max-width: 100%;
}
.fb .logo { display: none; }
.fb p    { font-size: 13px; font-weight: 300; color: var(--dim); line-height: 1.9; max-width: 220px; }
.fc h4   { font-size: 9px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.fc ul   { list-style: none; }
.fc ul li          { margin-bottom: 12px; }
.fc ul li a        { font-size: 13px; font-weight: 300; color: var(--dim); text-decoration: none; transition: color .3s; }
.fc ul li a:hover  { color: var(--white); }
.fb2 { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); }
.fb2 p { font-size: 11px; color: #333; letter-spacing: .05em; }
.fsoc   { display: flex; gap: 24px; }
.fsoc a { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: #444; text-decoration: none; transition: color .3s; }
.fsoc a:hover { color: var(--gold); }

/* ── UTILITIES ── */
.sl { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sl::before { content:''; width: 28px; height: 1px; background: var(--gold); }

.reveal    { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.rd1 { transition-delay: .1s; } .rd2 { transition-delay: .2s; }
.rd3 { transition-delay: .3s; } .rd4 { transition-delay: .4s; }
.rd5 { transition-delay: .5s; }

/* Process grid responsive */
.process-step {
  min-width: 0;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr !important;
    gap: 1px !important;
  }
  .process-step {
    padding: 32px 20px !important;
  }
  .process-step span {
    font-size: 36px !important;
  }
  .process-step h3 {
    font-size: 15px !important;
  }
  .process-step p {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .process-step {
    padding: 28px 16px !important;
  }
  .process-step span {
    font-size: 32px !important;
  }
  .process-step h3 {
    font-size: 14px !important;
  }
}

@media (max-width: 375px) {
  .process-step {
    padding: 24px 14px !important;
  }
  .process-step span {
    font-size: 28px !important;
  }
  .process-step h3 {
    font-size: 13px !important;
  }
  .process-step p {
    font-size: 11px !important;
  }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp  { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }
@keyframes pulse   { 0%,100% { opacity:.3; transform:scaleY(.3); } 50% { opacity:1; transform:scaleY(1); } }
@keyframes mq      { from { transform:translateX(0); } to { transform:translateX(-50%); } }

@keyframes jiggle {
  0%   { transform: rotate(0) scale(1); }
  15%  { transform: rotate(-8deg) scale(1.2) translateY(-8px); }
  30%  { transform: rotate(6deg)  scale(1.15) translateY(-4px); }
  45%  { transform: rotate(-4deg) scale(1.1)  translateY(-6px); }
  60%  { transform: rotate(3deg)  scale(1.05) translateY(-2px); }
  80%  { transform: rotate(-1deg) scale(1.02); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes bounce {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-20px) scale(1.15); }
  60%  { transform: translateY(-8px)  scale(1.07); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes spin {
  0%   { transform: rotate(0) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ═══════════════════════════════════════
   RESPONSIVE DESIGN
═══════════════════════════════════════ */

/* Laptop / Small Desktop (max-width: 1440px) */
@media (max-width: 1440px) {
  #hero { padding: 120px 48px 72px; }
  #services, #features, #portfolio, #cta { padding: 140px 48px; }
  footer { padding: 80px 48px 40px; }
  nav { padding: 0 48px; }
  nav.stuck { padding: 0 48px; height: 72px; }
  
  .dmt-logo { width: 68px; height: 68px; }
  .n-logo-main { font-size: 17px; }
  .n-logo-sub { font-size: 11px; }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  #hero { padding: 120px 32px 64px; }
  #services, #why-choose, #portfolio, #cta { padding: 120px 32px; }
  footer { padding: 64px 32px 32px; }
  nav { padding: 0 32px; }
  nav.stuck { padding: 0 32px; height: 72px; }

  .hero-desc { max-width: 280px; font-size: 13px; }
  .hero-actions { gap: 12px; }

  .svc-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-head { grid-template-columns: 1fr; gap: 32px; }

  #cta { 
    grid-template-columns: 1fr; 
    gap: 48px;
    padding: 80px 24px;
  }
  
  .cta-r {
    max-width: 100%;
  }
  
  .contact-form {
    max-width: 100%;
  }
  
  .form-group {
    max-width: 100%;
  }
  
  .submit-btn {
    width: 100%;
    max-width: 100%;
  }
  
  .ft { grid-template-columns: repeat(2, 1fr); gap: 40px; }

  .dmt-logo { width: 60px; height: 60px; }
  .n-logo-main { font-size: 16px; }
  .n-logo-sub { font-size: 11px; }
  .n-logo-tag { font-size: 9px; }
  
  .n-links { gap: 32px; }
}

/* Mobile Landscape / Large Phone (max-width: 768px) */
@media (max-width: 768px) {
  #hero {
    padding: max(100px, calc(env(safe-area-inset-top) + 40px)) 24px 48px;
    height: auto;
    min-height: 100vh;
    justify-content: flex-start;
  }
  #services, #why-choose, #cta-pre, #cta { padding: 80px 24px; }
  footer { padding: 48px 24px 24px; }

  nav {
    padding: 0 24px;
    height: 76px;
    justify-content: center;
  }
  nav.stuck { 
    padding: 0 24px;
    height: 68px;
  }

  @supports (padding: max(0px)) {
    nav {
      padding-left: max(24px, env(safe-area-inset-left));
      padding-right: max(24px, env(safe-area-inset-right));
    }
    nav.stuck {
      padding-left: max(24px, env(safe-area-inset-left));
      padding-right: max(24px, env(safe-area-inset-right));
    }
  }

  .n-logo {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    max-width: 100%;
    padding: 0 8px;
  }
  
  .n-logo-text {
    align-items: center;
    gap: 3px;
  }
  
  .n-logo-main {
    font-size: 13px;
    white-space: normal;
    text-align: center;
    max-width: 180px;
    line-height: 1.2;
  }
  
  .n-logo-sub {
    font-size: 9px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  
  .n-logo-tag {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  
  .dmt-logo { width: 44px; height: 44px; }

  .n-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 6, 6, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .n-links.active { display: flex; }

  .n-btn { display: none; }

  .hero-title {
    font-size: clamp(32px, 8.5vw, 72px);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .hero-bot {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .hero-desc { 
    max-width: 100%;
    text-align: center;
    padding: 0 8px;
  }
  .hero-actions { width: 100%; justify-content: center; }

  .section-h2 { font-size: clamp(26px, 7vw, 52px); }

  #stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px 80px;
  }
  .stat { padding: 40px 24px; }
  .snum { font-size: 48px; }

  .feat-grid { grid-template-columns: 1fr; }

  .mq-item { font-size: 10px; padding: 0 24px; }
  .mq-item::after { font-size: 4px; }

  .quote-inner { padding: 0 24px; }
  .big-quote { font-size: clamp(22px, 6vw, 42px); }

  .ft { grid-template-columns: 1fr; gap: 32px; }
  .fb2 { flex-direction: column; gap: 16px; text-align: center; }
  .fsoc { justify-content: center; }

  .contact-form { 
    gap: 16px;
    max-width: 100%;
  }
  .submit-btn { 
    width: 100%;
    max-width: 100%;
  }
  
  .cta-r {
    max-width: 100%;
  }

  .dmt-logo-footer { max-width: 110px; }

  .scroll-ind { display: none; }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    width: 100%;
    min-width: 100%;
  }
  
  .newsletter-btn {
    width: 100%;
  }
}

/* Mobile Portrait (max-width: 480px) */
@media (max-width: 480px) {
  #hero { 
    padding: max(90px, calc(env(safe-area-inset-top) + 35px)) 16px 40px;
    justify-content: flex-start;
  }
  #services, #why-choose, #cta-pre, #cta { padding: 64px 16px; }
  footer { padding: 32px 16px 16px; }

  nav { 
    padding: 0 16px;
    height: 72px;
    justify-content: center;
  }
  nav.stuck { 
    padding: 0 16px;
    height: 64px;
  }

  @supports (padding: max(0px)) {
    nav {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
    nav.stuck {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }

  .dmt-logo { width: 40px; height: 40px; }
  
  .n-logo-main { font-size: 11px; letter-spacing: 0.5px; }
  .n-logo-sub { font-size: 8px; }
  .n-logo-tag { font-size: 6px; letter-spacing: 1px; }

  .hero-title {
    font-size: clamp(28px, 8vw, 60px);
    margin-bottom: 22px;
    letter-spacing: -0.015em;
    line-height: 1;
  }
  .hero-desc {
    font-size: 13px;
    line-height: 1.7;
    padding: 0 4px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-p, .btn-g {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    min-height: 48px;
  }

  .svc-card { padding: 32px 20px; }
  .svc-card h3 { font-size: 17px; }
  .svc-card p { font-size: 12px; }

  .feat { padding: 32px 20px; }
  .feat h3 { font-size: 15px; }
  .feat p { font-size: 12px; }

  .stat { padding: 32px 16px; }
  .snum { font-size: 40px; }
  .slabel { font-size: 9px; }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 14px 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .submit-btn {
    padding: 14px 24px;
    font-size: 12px;
    min-width: 100%;
    max-width: 100%;
  }

  .dmt-logo-footer { max-width: 100px; }
  
  .section-h2 { font-size: clamp(24px, 7vw, 48px); }
  
  .big-quote { font-size: clamp(20px, 5.5vw, 38px); }
}

/* Small Mobile (max-width: 414px) */
@media (max-width: 414px) {
  #hero { 
    padding: max(86px, calc(env(safe-area-inset-top) + 30px)) 16px 36px;
    justify-content: flex-start;
  }
  .hero-title { 
    font-size: clamp(26px, 8vw, 54px);
    letter-spacing: -0.01em;
    line-height: 1;
  }
  
  nav { 
    height: 68px;
    padding: 0 16px;
  }
  nav.stuck { 
    height: 62px;
    padding: 0 16px;
  }
  
  @supports (padding: max(0px)) {
    nav {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
    nav.stuck {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
  
  .dmt-logo { width: 38px; height: 38px; }
  .n-logo-main { font-size: 10px; }
  .n-logo-sub { font-size: 8px; }
  .n-logo-tag { font-size: 6px; }
  
  .section-h2 { font-size: clamp(22px, 7vw, 46px); }
  
  .big-quote { font-size: clamp(18px, 5vw, 36px); }
}

/* Extra Small Mobile (max-width: 375px) */
@media (max-width: 375px) {
  #hero {
    padding: max(82px, calc(env(safe-area-inset-top) + 28px)) 14px 34px;
  }
  
  .hero-title { 
    font-size: clamp(24px, 8vw, 50px);
    letter-spacing: -0.01em;
    line-height: 1;
  }
  .hero-desc { 
    font-size: 12px;
    line-height: 1.65;
  }
  
  .section-h2 { 
    font-size: clamp(22px, 8vw, 44px);
  }
  
  .big-quote { 
    font-size: clamp(18px, 5vw, 34px);
  }
  
  .svc-card { 
    padding: 28px 18px; 
  }
  .svc-card h3 { 
    font-size: 16px; 
  }
  
  .stat { 
    padding: 28px 14px; 
  }
  .snum { 
    font-size: 36px; 
  }
  
  nav {
    padding: 0 14px;
    height: 66px;
  }
  nav.stuck {
    height: 60px;
  }
  
  @supports (padding: max(0px)) {
    nav {
      padding-left: max(14px, env(safe-area-inset-left));
      padding-right: max(14px, env(safe-area-inset-right));
    }
    nav.stuck {
      padding-left: max(14px, env(safe-area-inset-left));
      padding-right: max(14px, env(safe-area-inset-right));
    }
  }
  
  .dmt-logo { width: 36px; height: 36px; }
  .n-logo-main { font-size: 10px; }
  .n-logo-sub { font-size: 7px; }
  .n-logo-tag { font-size: 6px; }
}

/* iPhone SE / Smallest Mobile (max-width: 320px) */
@media (max-width: 320px) {
  #hero { 
    padding: max(78px, calc(env(safe-area-inset-top) + 25px)) 12px 32px;
    justify-content: flex-start;
  }
  #services, #why-choose, #cta { 
    padding: 52px 12px; 
  }
  footer { 
    padding: 28px 12px 12px; 
  }
  
  .hero-title { 
    font-size: clamp(22px, 8vw, 46px);
    letter-spacing: 0;
    margin-bottom: 18px;
    line-height: 1;
  }
  .hero-desc { 
    font-size: 11px; 
    line-height: 1.6;
    padding: 0 2px;
  }
  
  nav { 
    padding: 0 12px; 
    height: 62px;
  }
  nav.stuck { 
    height: 56px;
  }
  
  @supports (padding: max(0px)) {
    nav {
      padding-left: max(12px, env(safe-area-inset-left));
      padding-right: max(12px, env(safe-area-inset-right));
    }
    nav.stuck {
      padding-left: max(12px, env(safe-area-inset-left));
      padding-right: max(12px, env(safe-area-inset-right));
    }
  }
  
  .dmt-logo { 
    width: 34px; 
    height: 34px; 
  }
  .n-logo-main { 
    font-size: 9px;
    max-width: 140px;
  }
  .n-logo-sub { 
    font-size: 7px; 
  }
  .n-logo-tag { 
    font-size: 5px; 
    letter-spacing: 1px;
  }
  
  .n-logo {
    gap: 6px;
  }
  
  .btn-p, .btn-g {
    padding: 12px 20px;
    font-size: 11px;
    min-height: 44px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 16px;
  }
  
  .submit-btn {
    padding: 12px 20px;
    font-size: 11px;
    min-height: 44px;
  }
  
  .svc-card { 
    padding: 24px 14px; 
  }
  .svc-card h3 { 
    font-size: 15px; 
  }
  .svc-card p { 
    font-size: 11px; 
  }
  
  .stat { 
    padding: 24px 12px; 
  }
  .snum { 
    font-size: 32px; 
  }
  .slabel { 
    font-size: 8px; 
  }
  
  .section-h2 {
    font-size: clamp(20px, 8vw, 42px);
  }
  
  .big-quote {
    font-size: clamp(16px, 5vw, 32px);
  }
  
  .feat {
    padding: 28px 14px;
  }
  .feat h3 {
    font-size: 14px;
  }
  .feat p {
    font-size: 11px;
  }
}
