/* ==========================================================================
   Digitalmart — Theme styles
   Palette: deep black + lime green. Vibe: space mission / astronaut.
   ========================================================================== */

:root {
  --dm-black: #050505;
  --dm-black-2: #0b0b0c;
  --dm-black-3: #131315;
  --dm-black-4: #1b1b1e;
  --dm-lime: #cbd400;
  --dm-lime-2: #b1b71c;
  --dm-lime-soft: rgba(203, 212, 0, 0.14);
  --dm-lime-glow: rgba(203, 212, 0, 0.35);
  --dm-white: #f4f6f0;
  --dm-gray: #9a9c97;
  --dm-gray-2: #6b6d69;
  --dm-border: rgba(255, 255, 255, 0.08);
  --dm-border-strong: rgba(255, 255, 255, 0.16);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --dm-mark-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 284.92 284.93%22 %3E%3Cg fill=%22%23000%22%3E%3Crect x=%22122.26%22 y=%2268.04%22 width=%2240.41%22 height=%2240.4%22 transform=%22translate(-20.67 126.57) rotate(-45)%22/%3E%3Crect x=%22176.48%22 y=%22122.26%22 width=%2240.41%22 height=%2240.4%22 transform=%22translate(-43.13 180.79) rotate(-45)%22/%3E%3Cpath d=%22M271.47%2C145.22l-2.76-2.76%2C2.75-2.75c.57-.57%2C1.12-1.15%2C1.65-1.74%2C1.44-1.59%2C2.73-3.27%2C3.91-5%2C12.37-18.25%2C10.36-43.7-7.17-61.24-9.08-9.08-21.24-15.06-34.15-15.2-.25%2C0-.48%2C0-.73%2C0-.93%2C0-1.86.04-2.8.11-.3.02-.6.04-.9.06-.15.01-.3.02-.45.03-1.02.11-2.04.25-3.07.44.16-.93.3-1.87.41-2.8.03-.31.05-.61.08-.92.06-.62.1-1.24.14-1.85.02-.37.02-.74.02-1.12%2C0-.54.01-1.09%2C0-1.64%2C0-.4-.02-.81-.04-1.21-.03-.5-.06-1.01-.1-1.5-.03-.43-.08-.85-.12-1.27-.05-.47-.12-.93-.18-1.39-.07-.45-.13-.9-.21-1.35-.08-.42-.16-.82-.25-1.23-.1-.49-.2-.97-.31-1.46-.07-.3-.16-.6-.24-.9-.77-2.95-1.83-5.81-3.16-8.56-.04-.08-.07-.16-.11-.24-.34-.69-.69-1.37-1.05-2.04-.04-.08-.09-.17-.14-.26-.38-.68-.76-1.36-1.18-2.02-.03-.06-.06-.11-.1-.16-2.25-3.68-4.95-7.1-8.01-10.16-18.58-18.59-46.06-19.75-64.45-4.81-1.21%2C1-2.4%2C2.06-3.54%2C3.2l-2.76%2C2.75-2.75-2.76c-18.22-18.22-48.15-18.22-67.98%2C1.62-10.93%2C10.92-17.4%2C26.29-14.56%2C42.08-15.78-2.84-31.16%2C3.63-42.09%2C14.56-18.76%2C18.77-19.76%2C46.58-4.37%2C64.95.06.06.11.12.16.18.82.97%2C1.68%2C1.93%2C2.6%2C2.85l2.75%2C2.76-2.76%2C2.76c-18.22%2C18.22-18.21%2C48.15%2C1.61%2C67.98%2C10.92%2C10.93%2C26.31%2C17.4%2C42.09%2C14.56-2.83%2C15.78%2C3.64%2C31.15%2C14.56%2C42.08%2C19.83%2C19.82%2C49.76%2C19.82%2C67.98%2C1.61l2.76-2.76%2C2.76%2C2.76c18.21%2C18.21%2C48.15%2C18.21%2C67.97-1.62%2C10.93-10.93%2C17.41-26.31%2C14.57-42.09%2C15.79%2C2.84%2C31.16-3.63%2C42.08-14.56%2C19.83-19.83%2C19.83-49.77%2C1.62-67.97ZM216.34%2C87.06c.15-.12.29-.21.42-.32.77-.58%2C1.53-1.13%2C2.29-1.63.19-.13.38-.27.57-.39.82-.53%2C1.63-1.01%2C2.43-1.46.22-.12.45-.24.68-.36.68-.35%2C1.34-.67%2C2-.96.19-.08.37-.18.56-.26.75-.31%2C1.49-.56%2C2.22-.79.29-.1.57-.18.86-.26.62-.17%2C1.25-.32%2C1.86-.44.34-.06.68-.12%2C1.01-.16.5-.08%2C1-.14%2C1.5-.18.32-.03.65-.05.98-.06.62-.03%2C1.25-.02%2C1.86.01.34.02.68.06%2C1.01.1.38.04.77.09%2C1.14.15.34.06.69.1%2C1.03.18%2C4.9%2C1.05%2C9.46%2C3.84%2C13.69%2C8.07%2C10.15%2C10.15%2C9.53%2C24.23-1.59%2C36.3l-36.17-36.18c.55-.46%2C1.11-.95%2C1.65-1.37ZM196.61%2C32.48c1.19%2C1.19%2C2.24%2C2.41%2C3.2%2C3.66.5.65.97%2C1.31%2C1.39%2C1.97.04.05.07.1.1.14.41.64.79%2C1.29%2C1.15%2C1.94.03.07.07.14.1.2.34.65.65%2C1.3.92%2C1.96.03.07.05.13.08.2.27.67.51%2C1.35.72%2C2.04%2C0%2C.02.02.04.02.06.82%2C2.78%2C1.04%2C5.67.65%2C8.68-.03.19-.04.39-.06.58-.09.53-.22%2C1.07-.34%2C1.62-.08.32-.15.65-.23.98-.14.49-.31.99-.47%2C1.48-.14.4-.27.79-.44%2C1.18-.18.47-.38.93-.59%2C1.4-.2.44-.41.87-.63%2C1.32-.23.45-.47.89-.72%2C1.34-.28.48-.56.97-.87%2C1.46-.27.43-.53.85-.83%2C1.28-.36.53-.75%2C1.07-1.15%2C1.61-.3.4-.57.79-.89%2C1.19-.38.49-.81.99-1.23%2C1.48l-36.18-36.17c12.06-11.12%2C26.15-11.74%2C36.3-1.6ZM142.47%2C51.83l36.41%2C36.41-36.42%2C36.42-36.41-36.41%2C36.42-36.42ZM88.32%2C32.48c10.15-10.14%2C24.24-9.53%2C36.3%2C1.59l-36.18%2C36.18c-12.36-14.71-10.64-27.24-.12-37.77ZM32.48%2C88.32c10.52-10.52%2C23.06-12.24%2C37.78.12l-36.18%2C36.17c-.32-.34-.67-.68-.97-1.04-.16-.18-.28-.36-.43-.53-.52-.63-1.04-1.26-1.51-1.9-.12-.16-.22-.32-.33-.48-.47-.67-.93-1.33-1.34-1.99-.08-.13-.14-.26-.21-.38-.42-.71-.83-1.42-1.18-2.14-.04-.09-.08-.17-.12-.25-.37-.76-.71-1.52-1.01-2.28-.02-.04-.03-.08-.04-.12-.3-.8-.57-1.61-.79-2.41%2C0-.02%2C0-.04-.01-.05-.22-.83-.41-1.65-.54-2.48%2C0-.01%2C0-.02%2C0-.03-.14-.83-.23-1.65-.27-2.47-.36-6.41%2C2.02-12.58%2C7.16-17.72ZM32.48%2C196.61c-10.15-10.15-9.53-24.23%2C1.6-36.3l8.99%2C8.98%2C27.2%2C27.2c-14.72%2C12.36-27.26%2C10.64-37.78.12ZM51.83%2C142.46l36.42-36.41%2C36.41%2C36.42-36.41%2C36.41-36.42-36.42ZM88.32%2C252.45c-10.52-10.52-12.24-23.06.12-37.77l36.18%2C36.19c-12.07%2C11.12-26.15%2C11.74-36.3%2C1.58ZM142.47%2C233.1l-6.75-6.75h0l-29.67-29.66%2C36.42-36.42%2C36.42%2C36.42-36.42%2C36.42ZM196.61%2C252.45c-3.84%2C3.84-8.25%2C6.12-12.9%2C6.9-1.96.32-3.95.37-5.96.16-.17-.02-.33-.04-.5-.06-.83-.11-1.67-.26-2.49-.46-.2-.04-.38-.09-.57-.13-.96-.26-1.93-.55-2.89-.92l-.05-.02c-1.01-.38-2-.85-2.99-1.36-.19-.1-.37-.21-.55-.31-.77-.42-1.53-.87-2.29-1.38-.29-.18-.57-.38-.85-.58-.69-.48-1.37-1-2.05-1.54-.27-.21-.54-.42-.8-.65-.48-.39-.94-.84-1.39-1.27l36.15-36.17c12.36%2C14.72%2C10.64%2C27.25.13%2C37.77ZM205.29%2C170.28l-3.11%2C3.09-5.5%2C5.51-36.41-36.41%2C36.42-36.42%2C36.41%2C36.42-27.81%2C27.81ZM252.44%2C196.61c-10.52%2C10.52-23.05%2C12.23-37.76-.12l5.35-5.35%2C30.82-30.83c11.13%2C12.07%2C11.74%2C26.16%2C1.59%2C36.3Z%22/%3E%3Crect x=%2268.05%22 y=%22122.26%22 width=%2240.41%22 height=%2240.4%22 transform=%22translate(-74.89 104.12) rotate(-45)%22/%3E%3C/g%3E%3C/svg%3E");

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease-out);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--dm-black);
  color: var(--dm-white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(203, 212, 0, 0.08), transparent 60%),
    radial-gradient(40vw 40vw at 0% 100%, rgba(203, 212, 0, 0.05), transparent 60%);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--dm-lime);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--dm-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--dm-white);
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 1.25em;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  background: var(--dm-black-2);
  border: 1px solid var(--dm-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow: auto;
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--dm-lime);
  background: var(--dm-black-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--dm-border);
  margin: 3rem 0;
}

::selection {
  background: var(--dm-lime);
  color: var(--dm-black);
}

:focus-visible {
  outline: 2px solid var(--dm-lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--dm-lime);
  color: var(--dm-black);
  clip: auto !important;
  clip-path: none;
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 14px 22px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section__head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .section__head--split {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }
  .section__head--split p {
    margin-bottom: 0.4rem;
  }
}

.section__head p {
  color: var(--dm-gray);
  font-size: 1.1rem;
  max-width: 54ch;
  margin-bottom: 0;
  text-wrap: pretty;
}

.section + .section {
  padding-top: clamp(3rem, 7vw, 6rem);
}

h2 em {
  font-style: normal;
  color: var(--dm-lime);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dm-lime);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--dm-mark-mask) center / contain no-repeat;
  mask: var(--dm-mark-mask) center / contain no-repeat;
}

.text-lime { color: var(--dm-lime); }
.text-muted { color: var(--dm-gray); }

.site-main {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Warp starfield: stars are born near the center and fly outwards.
   Each <i> is an axis rotated by --ang; the ::before travels along +X, so a
   single keyframe animates every star. Size, glow, brightness and speed come
   from a fake depth computed in PHP (digitalmart_get_starfield).
   -------------------------------------------------------------------------- */
.dm-warp {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.dm-warp i {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: rotate(var(--ang, 0deg));
}

.dm-warp i::before {
  content: "";
  position: absolute;
  width: var(--size, 2px);
  height: var(--size, 2px);
  margin: calc(var(--size, 2px) / -2) 0 0 calc(var(--size, 2px) / -2);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 calc(var(--size, 2px) * 2.6) calc(var(--size, 2px) * 0.35) rgba(255, 255, 255, 0.5);
  transform-origin: center;
  will-change: transform, opacity;
  animation: dmStarBorn var(--dur, 24s) linear var(--delay, 0s) infinite;
}

.dm-warp i.is-lime::before {
  background: var(--dm-lime);
  box-shadow: 0 0 calc(var(--size, 2px) * 3) calc(var(--size, 2px) * 0.4) rgba(203, 212, 0, 0.6);
}

/* Fewer layers on small screens: the golden angle keeps the remaining
   70 evenly spread, so it is the same sky, just thinner. */
@media (max-width: 768px) {
  .dm-warp i:nth-child(n + 71) {
    display: none;
  }
}

@keyframes dmStarBorn {
  0%   { transform: translateX(0) scale(0.25); opacity: 0; }
  12%  { opacity: var(--light, 0.7); }
  72%  { opacity: var(--light, 0.7); }
  100% { transform: translateX(62vmax) scale(1.35); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--dm-lime);
  --btn-fg: var(--dm-black);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform var(--transition);
}

.btn:hover,
.btn:focus-visible {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -8px var(--dm-lime-glow), 0 0 0 1px var(--dm-lime);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--dm-white);
  border-color: var(--dm-border-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--dm-lime);
  box-shadow: 0 10px 40px -12px var(--dm-lime-glow);
  color: var(--dm-lime);
}

.btn--sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 1.15rem 2.2rem;
  font-size: 1.1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--dm-white);
}

.link-arrow svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform var(--transition);
}

.link-arrow:hover {
  color: var(--dm-lime);
}

.link-arrow:hover svg {
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-block: 1rem;
  transition: padding var(--transition), background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-block: 0.65rem;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--dm-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--dm-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.site-brand:hover {
  color: var(--dm-white);
}

.site-brand {
  gap: 0.7rem;
  color: var(--dm-lime);
}

.dm-mark,
.dm-wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--dm-lime);
}

.dm-mark svg {
  width: 44px;
  height: 44px;
  transition: transform 0.7s var(--ease-out), width var(--transition), height var(--transition);
}

.dm-wordmark svg {
  height: 34px;
  width: auto;
  transition: height var(--transition);
}

/* The knot has 4-fold symmetry: a quarter turn reads as a seamless spin. */
.site-brand:hover .dm-mark svg,
.site-brand:focus-visible .dm-mark svg {
  transform: rotate(90deg);
}

.site-header.is-scrolled .dm-mark svg {
  width: 38px;
  height: 38px;
}

.site-header.is-scrolled .dm-wordmark svg {
  height: 29px;
}

@media (max-width: 640px) {
  .site-header .dm-mark svg,
  .site-header.is-scrolled .dm-mark svg {
    width: 36px;
    height: 36px;
  }
  .site-header .dm-wordmark svg,
  .site-header.is-scrolled .dm-wordmark svg {
    height: 26px;
  }
}

.site-footer .dm-mark svg {
  width: 52px;
  height: 52px;
}

.site-footer .dm-wordmark svg {
  height: 40px;
}

/* Logo uploaded via Customizer (WordPress prints .custom-logo-link > .custom-logo) */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-header .custom-logo,
.site-footer .custom-logo {
  height: 48px;
  width: auto;
  max-height: 48px;
  transition: height var(--transition);
}

.site-header.is-scrolled .custom-logo {
  height: 40px;
}

.site-footer .custom-logo {
  height: 56px;
  max-height: 56px;
}

@media (max-width: 640px) {
  .site-brand img,
  .site-header.is-scrolled .site-brand img,
  .site-header .custom-logo,
  .site-header.is-scrolled .custom-logo {
    height: 40px;
  }
}

.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  color: var(--dm-gray);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
  color: var(--dm-white);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav .sub-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 2px;
  padding: 0.5rem;
  background: var(--dm-black-2);
  border: 1px solid var(--dm-border);
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav .sub-menu a {
  display: block;
  border-radius: 8px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__cta {
  display: none;
}

@media (min-width: 640px) {
  .site-header__cta {
    display: inline-flex;
  }
}

/* Burger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--dm-border-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dm-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6.5rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  overflow-y: auto;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.mobile-nav .sub-menu {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dm-white);
  padding: 0.35rem 0;
}

.mobile-nav .sub-menu a {
  font-size: 1.2rem;
  color: var(--dm-gray);
}

.mobile-nav a:hover {
  color: var(--dm-lime);
}

.mobile-nav__footer {
  margin-top: auto;
  display: grid;
  gap: 1rem;
  color: var(--dm-gray);
  font-size: 0.95rem;
}

body.nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero: full-bleed video (or space fallback), centered copy
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 0 6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--dm-black);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__video.is-ready,
img.hero__video {
  opacity: 1;
}

.hero__stars {
  z-index: 1;
}

.hero--video .hero__stars {
  opacity: 0.55;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, var(--hero-overlay, 0.55)) 45%, var(--dm-black) 100%);
}

.hero--space .hero__overlay {
  background: linear-gradient(to bottom, transparent 55%, var(--dm-black) 100%);
}

.hero__nebula {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60vw 50vw at 50% 110%, rgba(203, 212, 0, 0.22), transparent 60%),
    radial-gradient(35vw 35vw at 85% 10%, rgba(203, 212, 0, 0.08), transparent 60%);
}

.hero__astronaut {
  position: absolute;
  right: 2vw;
  bottom: -6vw;
  width: clamp(220px, 26vw, 420px);
  aspect-ratio: 1;
  opacity: 0.85;
}

@media (min-width: 1500px) {
  .hero__astronaut {
    right: 8vw;
  }
}

@media (max-width: 900px) {
  .hero__astronaut {
    right: -12vw;
    bottom: -8vw;
    width: 62vw;
    opacity: 0.35;
  }
}

.hero__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(203, 212, 0, 0.3);
  animation: spin 60s linear infinite;
}

.hero__orbit--2 {
  inset: 12%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.07);
  animation-duration: 90s;
  animation-direction: reverse;
}

.hero__orbit::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dm-lime);
  box-shadow: 0 0 20px 4px var(--dm-lime-glow);
}

.hero__planet {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(203, 212, 0, 0.35), rgba(203, 212, 0, 0.05) 45%, transparent 70%);
  box-shadow: inset -20px -20px 60px rgba(0, 0, 0, 0.8), 0 0 120px -20px var(--dm-lime-glow);
}

.hero__astronaut-art {
  position: absolute;
  inset: 8%;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7));
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}

.hero__logo {
  width: clamp(180px, 24vw, 300px);
  margin-bottom: 2.25rem;
  color: var(--dm-lime);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

.hero__logo svg {
  width: 100%;
  height: auto;
}

.hero .eyebrow {
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.2rem, 6.2vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero__title em {
  font-style: normal;
  color: var(--dm-lime);
}

.hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(244, 246, 240, 0.82);
  max-width: 60ch;
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.hero--video .btn--ghost {
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(244, 246, 240, 0.7);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__scroll:hover {
  color: var(--dm-lime);
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--dm-lime), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Marquee (word strip)
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--dm-border);
  border-bottom: 1px solid var(--dm-border);
  background: rgba(11, 11, 12, 0.6);
  overflow: hidden;
  padding-block: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dm-gray);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
}

.marquee__track span::after {
  content: "";
  width: 1.1em;
  height: 1.1em;
  background: var(--dm-lime);
  -webkit-mask: var(--dm-mark-mask) center / contain no-repeat;
  mask: var(--dm-mark-mask) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Pillars (about) — three columns like the current site, modernized
   -------------------------------------------------------------------------- */
.pillars-section {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.pillars {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}

@media (min-width: 900px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .pillars > * + * {
    border-left: 1px solid var(--dm-border);
    padding-left: 2rem;
  }
}

.pillar__visual {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.75rem;
  display: grid;
  place-items: center;
}

.pillar__visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203, 212, 0, 0.18), transparent 70%);
}

.pillar__icon {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px dashed rgba(203, 212, 0, 0.5);
  color: var(--dm-lime);
  transition: opacity var(--transition);
}

.pillar__icon svg {
  width: 32px;
  height: 32px;
}

.pillar__lottie {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.pillar__visual.has-lottie .pillar__lottie {
  opacity: 1;
}

.pillar__visual.has-lottie .pillar__icon {
  opacity: 0;
}

/* Lottie files from the current site are dark-on-light: invert to fit the dark canvas. */
.pillar__lottie svg {
  filter: invert(1) hue-rotate(180deg) saturate(0.9);
}

.pillar h3 {
  font-size: 1.3rem;
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
}

.pillar p {
  color: var(--dm-gray);
  max-width: 40ch;
  margin-inline: auto;
  margin-bottom: 0;
}

.pillar {
  transition: transform var(--transition);
}

.pillar:hover {
  transform: translateY(-4px);
}

.pillar:hover .pillar__icon {
  border-style: solid;
  box-shadow: 0 0 40px -8px var(--dm-lime-glow);
}

/* --------------------------------------------------------------------------
   Services ("O que fazemos")
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  gap: 1px;
  background: var(--dm-border);
  border: 1px solid var(--dm-border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 700px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service {
  position: relative;
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--dm-black-2);
  transition: background var(--transition);
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(203, 212, 0, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.service:hover {
  background: var(--dm-black-3);
}

.service:hover::before {
  opacity: 1;
}

.service__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--dm-lime-soft);
  color: var(--dm-lime);
  transition: background var(--transition), color var(--transition);
}

.service__icon svg {
  width: 22px;
  height: 22px;
}

.service:hover .service__icon {
  background: var(--dm-lime);
  color: var(--dm-black);
}

.service__body {
  position: relative;
}

.service h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.service h3 a {
  color: inherit;
}

.service h3 a:hover {
  color: var(--dm-lime);
}

.service p {
  color: var(--dm-gray);
  font-size: 0.97rem;
  margin: 0;
}

.service__index {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--dm-gray-2);
}

/* --------------------------------------------------------------------------
   AI section ("IA em cada projeto")
   -------------------------------------------------------------------------- */
.ai {
  position: relative;
}

.ai::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 80% 30%, rgba(203, 212, 0, 0.09), transparent 70%),
    linear-gradient(to bottom, transparent, rgba(11, 11, 12, 0.6) 30%, rgba(11, 11, 12, 0.6) 70%, transparent);
}

.ai__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 960px) {
  .ai__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.ai__intro h2 {
  max-width: 16ch;
  text-wrap: balance;
}

.ai__desc {
  color: var(--dm-gray);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 2rem;
  text-wrap: pretty;
}

.ai__visual {
  position: relative;
  display: grid;
  gap: 1rem;
}

.ai__core {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
  border-radius: var(--radius);
  background: rgba(11, 11, 12, 0.7);
  border: 1px solid var(--dm-border);
  overflow: hidden;
  isolation: isolate;
}

.ai__core::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}

.ai__orbits {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.ai__ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  transform-origin: 200px 200px;
}

.ai__ring--1 {
  stroke-dasharray: 4 8;
  stroke: rgba(203, 212, 0, 0.35);
  animation: spin 80s linear infinite;
}

.ai__ring--2 {
  animation: spin 50s linear infinite reverse;
  stroke-dasharray: 200 40;
}

.ai__ring--3 {
  stroke: rgba(203, 212, 0, 0.2);
}

.ai__node circle {
  fill: var(--dm-lime);
  filter: drop-shadow(0 0 8px var(--dm-lime));
}

.ai__node {
  transform-origin: 200px 200px;
}

.ai__node--1 { animation: spin 18s linear infinite; }
.ai__node--2 { animation: spin 26s linear infinite reverse; }
.ai__node--3 { animation: spin 12s linear infinite; }

.ai__signal {
  stroke-width: 1.5;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 4s ease-in-out infinite;
}

.ai__center {
  fill: rgba(203, 212, 0, 0.12);
  stroke: var(--dm-lime);
  stroke-width: 1.5;
  transform-origin: 200px 200px;
  animation: pulse 3s ease-in-out infinite;
}

.ai__mark {
  position: absolute;
  inset: 0;
  z-index: 2; /* always above the orbits and the signal line */
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ai__mark svg {
  width: 17%;
  height: auto;
  color: var(--dm-lime);
  filter: drop-shadow(0 0 18px rgba(203, 212, 0, 0.6));
  animation: dmMarkPulse 3s ease-in-out infinite;
}

.ai__signals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.ai__signals li {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 11, 12, 0.7);
  border: 1px solid var(--dm-border);
  display: grid;
  gap: 0.15rem;
}

.ai__signals strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--dm-lime);
  line-height: 1;
}

.ai__signals span {
  font-size: 0.75rem;
  color: var(--dm-gray);
  line-height: 1.3;
}

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

.ai__items {
  display: grid;
  gap: 1px;
  background: var(--dm-border);
  border: 1px solid var(--dm-border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 700px) {
  .ai__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .ai__items {
    grid-template-columns: repeat(5, 1fr);
  }
}

.ai__item {
  padding: 1.75rem 1.5rem;
  background: var(--dm-black-2);
  transition: background var(--transition);
}

.ai__item:hover {
  background: var(--dm-black-3);
}

.ai__item-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--dm-lime-soft);
  color: var(--dm-lime);
  margin-bottom: 1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.ai__item-icon svg {
  width: 20px;
  height: 20px;
}

.ai__item:hover .ai__item-icon {
  background: var(--dm-lime);
  color: var(--dm-black);
  transform: rotate(-6deg);
}

.ai__item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.ai__item p {
  color: var(--dm-gray);
  font-size: 0.92rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Cards (blog) & tags
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card {
  position: relative;
  background: var(--dm-black-2);
  border: 1px solid var(--dm-border);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(203, 212, 0, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(203, 212, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--dm-gray);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--dm-border-strong);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dm-gray);
}

.tag--lime {
  border-color: transparent;
  background: var(--dm-lime);
  color: var(--dm-black);
  font-weight: 700;
}

.case-card__media--placeholder {
  background:
    radial-gradient(circle at 70% 20%, rgba(203, 212, 0, 0.25), transparent 45%),
    linear-gradient(135deg, var(--dm-black-3), var(--dm-black-4));
}

/* --------------------------------------------------------------------------
   Blog cards
   -------------------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dm-black-3);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.post-card:hover .post-card__media img {
  transform: scale(1.05);
}

.post-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dm-gray-2);
  margin-bottom: 0.9rem;
}

.post-card__meta a {
  color: var(--dm-lime);
}

.post-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.post-card h3 a {
  color: var(--dm-white);
}

.post-card h3 a:hover {
  color: var(--dm-lime);
}

.post-card p {
  color: var(--dm-gray);
  font-size: 0.97rem;
  margin-bottom: 1.25rem;
}

.post-card .link-arrow {
  margin-top: auto;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Contact section (home)
   -------------------------------------------------------------------------- */
.section__head--center {
  text-align: center;
  justify-items: center;
}

.section__head--center p {
  margin-inline: auto;
}

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.contact__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.contact__video.is-ready {
  opacity: 1;
}

.contact__stars {
  z-index: -1;
  opacity: 0.7;
}

.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--dm-black) 0%, rgba(5, 5, 5, 0.72) 30%, rgba(5, 5, 5, 0.72) 70%, var(--dm-black) 100%);
}

.contact__panel {
  display: grid;
  gap: 2rem;
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: calc(var(--radius) * 1.2);
  background: rgba(11, 11, 12, 0.78);
  border: 1px solid var(--dm-border-strong);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

@media (min-width: 960px) {
  .contact__panel {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
  }
}

.contact__aside {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  padding-top: 0.25rem;
}

@media (min-width: 960px) {
  .contact__aside {
    border-left: 1px solid var(--dm-border);
    padding-left: 3rem;
  }
}

.contact .dm-contact-form input:not([type="hidden"]),
.contact .dm-contact-form textarea {
  border-radius: 999px;
  padding: 1rem 1.5rem;
  background: rgba(5, 5, 5, 0.55);
  border-color: rgba(255, 255, 255, 0.28);
}

.contact .dm-contact-form textarea {
  border-radius: 24px;
}

.contact .dm-contact-form input::placeholder,
.contact .dm-contact-form textarea::placeholder {
  color: var(--dm-gray);
}

.contact .dm-contact-form .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--dm-border);
  background: linear-gradient(to bottom, transparent, rgba(11, 11, 12, 0.9));
  padding-top: clamp(3rem, 6vw, 5rem);
}

.site-footer__mark {
  position: absolute;
  right: -8vw;
  bottom: -10vw;
  width: clamp(280px, 40vw, 620px);
  aspect-ratio: 1;
  color: var(--dm-lime);
  opacity: 0.05;
  animation: dmMarkBreathe 8s ease-in-out infinite;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 900px) {
  .site-footer__mark {
  position: absolute;
  right: -8vw;
  bottom: -10vw;
  width: clamp(280px, 40vw, 620px);
  aspect-ratio: 1;
  color: var(--dm-lime);
  opacity: 0.05;
  animation: dmMarkBreathe 8s ease-in-out infinite;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
}

.site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  }
}

.site-footer__brand p {
  color: var(--dm-gray);
  max-width: 34ch;
  margin-top: 1rem;
}

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dm-lime);
  margin-bottom: 1.25rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.site-footer li a {
  color: var(--dm-gray);
}

.site-footer li a:hover {
  color: var(--dm-white);
}

.site-footer address {
  font-style: normal;
  color: var(--dm-gray);
  display: grid;
  gap: 0.5rem;
}

.site-footer address a {
  color: var(--dm-white);
}

.social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--dm-border-strong);
  color: var(--dm-white);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.social a:hover {
  background: var(--dm-lime);
  border-color: var(--dm-lime);
  color: var(--dm-black);
  transform: translateY(-3px);
}

.social svg {
  width: 18px;
  height: 18px;
}

.site-footer__bottom {
  border-top: 1px solid var(--dm-border);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--dm-gray-2);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.site-footer__bottom a {
  color: var(--dm-gray);
}

.site-footer__wordmark {
  display: block;
  width: 100%;
  padding-top: 2rem;
  user-select: none;
  pointer-events: none;
}

.site-footer__wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer__wordmark .wm-digital {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.site-footer__wordmark .wm-mart {
  fill: var(--dm-lime);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dm-black-2);
  border: 1px solid var(--dm-border-strong);
  color: var(--dm-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition), color var(--transition);
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--dm-lime);
  color: var(--dm-black);
  border-color: var(--dm-lime);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 5.25rem;
  z-index: 30;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dm-lime);
  color: var(--dm-black);
  box-shadow: 0 10px 40px -8px var(--dm-lime-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  color: var(--dm-black);
  transform: scale(1.08);
  box-shadow: 0 14px 50px -6px var(--dm-lime-glow);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

/* --------------------------------------------------------------------------
   Page / archive / single
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(9rem, 16vw, 13rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  border: 1px dashed rgba(203, 212, 0, 0.2);
  pointer-events: none;
}

.page-hero h1 {
  max-width: 20ch;
  text-wrap: balance;
}

.page-hero__desc {
  color: var(--dm-gray);
  font-size: 1.2rem;
  max-width: 60ch;
  margin-bottom: 0;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  color: var(--dm-gray);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

.page-hero__meta a {
  color: var(--dm-lime);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dm-gray-2);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--dm-gray);
}

.breadcrumbs a:hover {
  color: var(--dm-lime);
}

.content-wrap {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .content-wrap--sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 4rem;
  }
}

.entry-content {
  max-width: 74ch;
  font-size: 1.1rem;
}

.entry-content > * {
  margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2.5rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
}

.entry-content li {
  margin-bottom: 0.4rem;
}

.entry-content li::marker {
  color: var(--dm-lime);
}

.entry-content a {
  text-decoration: underline;
  text-decoration-color: rgba(203, 212, 0, 0.4);
  text-underline-offset: 3px;
}

.entry-content img,
.entry-content figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.entry-content .alignwide {
  max-width: none;
  width: min(100%, var(--container));
}

.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--dm-border);
  text-align: left;
}

.entry-content th {
  color: var(--dm-lime);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-featured {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
  border: 1px solid var(--dm-border);
}

.entry-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dm-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-navigation {
  margin-top: 4rem;
}

.post-navigation .nav-links {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .post-navigation .nav-links {
    grid-template-columns: 1fr 1fr;
  }
  .post-navigation .nav-next {
    grid-column: 2;
  }
}

.post-navigation a {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--dm-border);
  border-radius: var(--radius-sm);
  color: var(--dm-white);
  transition: border-color var(--transition), background var(--transition);
}

.post-navigation a:hover {
  border-color: var(--dm-lime);
  background: var(--dm-black-2);
}

.post-navigation .nav-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dm-lime);
  margin-bottom: 0.5rem;
}

.post-navigation .nav-next {
  text-align: right;
}

.pagination {
  margin-top: 3.5rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.dm-icon.is-flipped {
  transform: scaleX(-1);
}

.pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 0.9rem;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--dm-border-strong);
  color: var(--dm-gray);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--dm-lime);
  border-color: var(--dm-lime);
  color: var(--dm-black);
}

.pagination .dots {
  border: 0;
}

.sidebar .widget {
  background: var(--dm-black-2);
  border: 1px solid var(--dm-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.sidebar .widget-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dm-lime);
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.sidebar li a {
  color: var(--dm-gray);
}

.sidebar li a:hover {
  color: var(--dm-white);
}

/* Search */
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
}

.search-form input[type="search"] {
  flex: 1;
}

/* Forms */
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  padding: 0.95rem 1.15rem;
  background: var(--dm-black-2);
  border: 1px solid var(--dm-border-strong);
  border-radius: var(--radius-sm);
  color: var(--dm-white);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:not([type="submit"]):focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--dm-lime);
  box-shadow: 0 0 0 4px var(--dm-lime-soft);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dm-gray);
  margin-bottom: 0.5rem;
}

input[type="submit"],
button.btn {
  font: inherit;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid--2 .full {
    grid-column: 1 / -1;
  }
}

.form-notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--dm-lime);
  background: var(--dm-lime-soft);
  color: var(--dm-white);
  margin-bottom: 1.5rem;
}

.form-notice--error {
  border-color: #ff5c5c;
  background: rgba(255, 92, 92, 0.1);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Contact page */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
  }
}

.contact-info {
  display: grid;
  gap: 2rem;
  align-content: start;
}

.contact-info__item h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dm-lime);
  margin-bottom: 0.4rem;
}

.contact-info__item a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--dm-white);
}

.contact-info__item a:hover {
  color: var(--dm-lime);
}

/* Comments */
.comments-area {
  margin-top: 4rem;
  max-width: 74ch;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.comment-list .children {
  list-style: none;
  padding-left: 2rem;
}

.comment-body {
  padding: 1.5rem;
  background: var(--dm-black-2);
  border: 1px solid var(--dm-border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-meta .avatar {
  border-radius: 50%;
}

.comment-metadata {
  font-size: 0.8rem;
  color: var(--dm-gray-2);
  font-family: var(--font-mono);
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.reply a {
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.comment-respond .form-submit input {
  cursor: pointer;
}

/* 404 */
.error-404 {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem 0 4rem;
}

.error-404__stars {
  z-index: -1;
}

.error-404 .container {
  position: relative;
}

.error-404__visual {
  width: min(320px, 70vw);
  margin: 0 auto 2rem;
  animation: float 6s ease-in-out infinite, driftRotate 24s ease-in-out infinite;
}

.error-404 h1 {
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 1;
  color: var(--dm-lime);
}

.error-404 p {
  color: var(--dm-gray);
  max-width: 44ch;
  margin-inline: auto;
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Gutenberg alignment & block defaults
   -------------------------------------------------------------------------- */
.wp-block-button__link {
  background: var(--dm-lime);
  color: var(--dm-black);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--dm-white);
  border-color: var(--dm-border-strong);
}

.wp-block-quote {
  border-left-color: var(--dm-lime);
}

.wp-block-separator {
  border-color: var(--dm-border);
}

.has-dm-lime-background-color { background-color: var(--dm-lime) !important; color: var(--dm-black); }
.has-dm-lime-color { color: var(--dm-lime) !important; }
.has-dm-black-background-color { background-color: var(--dm-black) !important; }
.has-dm-black-color { color: var(--dm-black) !important; }
.has-dm-white-color { color: var(--dm-white) !important; }
.has-dm-white-background-color { background-color: var(--dm-white) !important; }
.has-dm-gray-color { color: var(--dm-gray) !important; }
.has-dm-surface-background-color { background-color: var(--dm-black-2) !important; }

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
.dm-preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--dm-black);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.dm-preloader__mark svg {
  width: 64px;
  height: 64px;
  color: var(--dm-lime);
  animation: dmMarkRise 1.6s cubic-bezier(0.33, 1, 0.68, 1) infinite;
  filter: drop-shadow(0 0 20px rgba(203, 212, 0, 0.5));
}

body.is-loaded .dm-preloader {
  opacity: 0;
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

@keyframes driftRotate {
  0%, 100% { rotate: -6deg; }
  50% { rotate: 8deg; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes dmMarkSpin {
  to { transform: rotate(360deg); }
}

/* Footer watermark: grows and shrinks in place, never rotates. */
@keyframes dmMarkBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Preloader: the icon rises upright, like a lift-off, and fades out at the top. */
@keyframes dmMarkRise {
  0% { transform: translateY(28px); opacity: 0; }
  25% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(-36px); opacity: 0; }
}

@keyframes dmMarkPulse {
  0%, 100% { scale: 1; opacity: 1; }
  50% { scale: 1.08; opacity: 0.85; }
}

@keyframes drawLine {
  0% { stroke-dashoffset: 600; opacity: 0; }
  15% { opacity: 0.22; }
  70% { stroke-dashoffset: 0; opacity: 0.22; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.75; }
}

@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .dm-warp i::before {
    animation: none;
    transform: translateX(var(--radius, 20vmax));
    opacity: var(--light, 0.6);
  }
  .dm-preloader {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .dm-stars,
  .back-to-top,
  .whatsapp-float,
  .mobile-nav {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */
.map {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--dm-border);
  border-bottom: 1px solid var(--dm-border);
}

.map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 45vw, 480px);
  border: 0;
  filter: grayscale(100%) invert(92%) contrast(90%) hue-rotate(180deg);
}

.map__card {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  left: var(--gutter);
  max-width: 320px;
  padding: 1.5rem;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--dm-border-strong);
  border-radius: var(--radius-sm);
}

.map__card p {
  color: var(--dm-white);
  margin-bottom: 1rem;
}

.map + .site-footer {
  margin-top: 0;
  border-top: 0;
}
