/* Daiane Moreira — portfolio
   Base tokens: bg #FDF8EA / body #F2F1ED / ink #0D0D0D / muted #9C968C */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  background: #F2F1ED;
  overflow-x: clip;
  color: #0D0D0D;
  font-family: 'Bricolage Grotesque', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: #0D0D0D; color: #F2F1ED; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dm-hero-kicker { margin: 0; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #9C968C; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }
#dm-cases { scroll-margin-top: 90px; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #0D0D0D; outline-offset: 3px; border-radius: 4px;
}
[data-theme="dark"] a:focus-visible, [data-theme="dark"] button:focus-visible, [data-theme="dark"] [tabindex]:focus-visible {
  outline-color: #FDF8EA;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- keyframes ---------- */
@keyframes dmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dmMenu { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes dmMarquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes dmPreWord { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes dmHero { from { transform: translateY(40px); } to { transform: none; } }
@keyframes dmGlowDrift {
  0%   { transform: translate(-2%, 0) scale(1); }
  50%  { transform: translate(2%, 1.5%) scale(1.06); }
  100% { transform: translate(-2%, 0) scale(1); }
}

/* ---------- background glow ---------- */
#dm-glow {
  position: fixed; inset: -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0%, #EEE1D0 0%, rgba(238,225,208,.45) 32%, rgba(238,225,208,0) 60%);
  transition: background .4s ease;
  animation: dmGlowDrift 16s ease-in-out infinite;
  will-change: transform;
}
[data-theme="dark"] #dm-glow {
  background: radial-gradient(120% 60% at 50% 0%, rgba(98,93,93,.30) 0%, rgba(98,93,93,.10) 34%, rgba(98,93,93,0) 62%);
}
@media (prefers-reduced-motion: reduce) {
  #dm-glow { animation: none; }
}

.dm-gridlines {
  position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 1180px; max-width: 100%; pointer-events: none; z-index: 0; opacity: .7;
  background-image: repeating-linear-gradient(to right, rgba(140,135,128,.10) 0, rgba(140,135,128,.10) 1px, transparent 1px, transparent 20%);
}

/* ---------- root theme transition ---------- */
#dm-root, #dm-header { transition: background-color .4s ease, color .4s ease; }
body { transition: background-color .4s ease, color .4s ease, opacity .32s ease; }
body.dm-page-enter, body.dm-page-leave { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  body.dm-page-enter, body.dm-page-leave { opacity: 1 !important; }
}
#dm-root { position: relative; min-height: 100vh; color: #0D0D0D; background-color: #FDF8EA; }
html[data-theme="dark"] #dm-root { background-color: #0D0D0D; color: #EDE9E1; }
html[data-theme="dark"] body { background-color: #0D0D0D; }

/* ---------- preloader ---------- */
#dm-preloader {
  position: fixed; inset: 0; z-index: 10000; background: #0D0D0D;
  display: flex; align-items: center; justify-content: center;
  will-change: transform; transition: transform .9s cubic-bezier(.76,0,.24,1);
}
#dm-preloader.dm-pre-hide { transform: translateY(-100%); }
.dm-pre-word {
  margin: 0; font-weight: 500; font-size: clamp(48px, 9vw, 120px);
  letter-spacing: -.02em; color: #E5DDC9;
  animation: dmPreWord 1s cubic-bezier(.16,1,.3,1) both;
}
.dm-pre-foot {
  position: absolute; left: 0; right: 0; bottom: 34px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 40px; font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #7A746B;
}
#dm-pre-counter { color: #C9C4BB; }

/* ---------- header ---------- */
#dm-header {
  position: sticky; top: 0; z-index: 50; background-color: transparent;
  transition: transform .4s cubic-bezier(.16,1,.3,1), background-color .3s ease, backdrop-filter .3s ease;
}
#dm-header.dm-scrolled { backdrop-filter: saturate(120%) blur(10px); -webkit-backdrop-filter: saturate(120%) blur(10px); }
.dm-header-inner { max-width: 1180px; margin: 0 auto; padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; }
.dm-logo { cursor: pointer; text-decoration: none; font-weight: 700; font-size: 25px; letter-spacing: -.02em; color: #1c1916; transition: opacity .25s ease; }
.dm-logo:hover { opacity: .55; }
[data-theme="dark"] .dm-logo { color: #FDF8EA; }
.dm-header-right { display: flex; align-items: center; gap: 22px; }

.dm-theme-btn {
  cursor: pointer; border: 1px solid rgba(22,19,16,.18); background: transparent; color: #0D0D0D;
  width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0; transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.dm-theme-btn:hover { background: rgba(22,19,16,.06); transform: translateY(-1px); }
.dm-theme-btn:active { transform: scale(.9); }
.dm-theme-btn svg { transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.dm-theme-btn.dm-spin svg { transform: rotate(180deg); }
[data-theme="dark"] .dm-theme-btn { border-color: rgba(255,255,255,.22); color: #EDE9E1; }
[data-theme="dark"] .dm-theme-btn:hover { background: rgba(255,255,255,.08); }
#dm-icon-moon { display: none; }
[data-theme="dark"] #dm-icon-sun { display: none; }
[data-theme="dark"] #dm-icon-moon { display: block; }
@media (prefers-reduced-motion: reduce) {
  .dm-theme-btn:hover { transform: none; }
  .dm-theme-btn svg { transition: none; }
}

.dm-lang { display: flex; align-items: center; gap: 6px; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .06em; }
.dm-lang span { cursor: pointer; color: #9C968C; transition: color .2s ease; }
.dm-lang span:not(.sep):hover { color: #0D0D0D; }
[data-theme="dark"] .dm-lang span:not(.sep):hover { color: #FDF8EA; }
.dm-lang span.active { color: #0D0D0D; }
[data-theme="dark"] .dm-lang span.active { color: #FDF8EA; }
.dm-lang .sep { cursor: default; color: #9C968C !important; }

.dm-burger { cursor: pointer; display: flex; flex-direction: column; gap: 7px; padding: 6px 0; width: 48px; align-items: flex-end; border: none; background: none; }
.dm-burger span { display: block; height: 1.5px; width: 48px; background: #0D0D0D; transition: width .3s ease; }
[data-theme="dark"] .dm-burger span { background: #FDF8EA; }
.dm-burger:hover span:last-child { width: 30px; }

/* ---------- hero meta row ---------- */
.dm-hero-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 6px; font-size: 15px; color: #1c1916; }
[data-theme="dark"] .dm-hero-meta { color: #FDF8EA; }
.dm-dot { width: 7px; height: 7px; border-radius: 50%; background: #5BBE7B; display: inline-block; animation: blink 2s infinite; }
.dm-bars-photo { display: flex; align-items: center; }
.dm-bars { display: flex; gap: 5px; align-items: center; height: 64px; padding: 0 11px; }
.dm-bars span { width: 12px; height: 46px; display: block; background-color: #1C1916; }
.dm-bars span:nth-child(2) { width: 5px; }
.dm-bars span:nth-child(3) { width: 3px; }
[data-theme="dark"] .dm-bars { background: transparent !important; }
[data-theme="dark"] .dm-bars span { background: #fff !important; }
.dm-avatar-top { width: 64px; height: 64px; border-radius: 0; object-fit: cover; }

@media (max-width: 1024px) { [data-hide-tablet] { display: none !important; } }

/* ---------- hero title (roaming color reveal) ---------- */
#dm-hero-stage { position: relative; margin-top: 6px; display: flex; justify-content: center; }
.dm-hero-wrap { position: relative; width: max-content; animation: dmHero 1.1s cubic-bezier(.16,1,.3,1) both; }
.dm-hero-title {
  margin: 0; white-space: nowrap; font-weight: 500;
  font-size: clamp(82px, 25vw, 460px); letter-spacing: -.045em; line-height: .9;
}
.dm-hero-gray { color: rgba(0,0,0,.06); }
[data-theme="dark"] .dm-hero-gray { color: rgba(255,255,255,.04); }
.dm-hero-black {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 130%; height: 340%; display: flex; align-items: center; justify-content: center;
  color: #141413;
  -webkit-mask-image: radial-gradient(circle clamp(110px,13vw,260px) at var(--mx,50%) var(--my,50%), #000 0 47%, transparent 49%);
  mask-image: radial-gradient(circle clamp(110px,13vw,260px) at var(--mx,50%) var(--my,50%), #000 0 47%, transparent 49%);
}
[data-theme="dark"] .dm-hero-black { color: #FDF8EA; }
@media (prefers-reduced-motion: reduce) {
  .dm-hero-gray { color: #0D0D0D; }
  [data-theme="dark"] .dm-hero-gray { color: #FDF8EA; }
  .dm-hero-black { -webkit-mask-image: none; mask-image: none; }
}

.dm-hero-hint { display: flex; align-items: center; gap: 10px; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #9C968C; transition: opacity .6s ease; }
.dm-hero-hint span.line { display: inline-block; width: 26px; height: 1px; background: #9C968C; }

/* ---------- arrow buttons / cta links ---------- */
.dm-cta {
  text-decoration: none; color: #0D0D0D; display: flex; align-items: center; gap: 14px; font-size: 15px; white-space: nowrap;
}
[data-theme="dark"] .dm-cta { color: #FDF8EA; }
.dm-arrowbtn {
  width: 34px; height: 34px; background: #0D0D0D; color: #F2F1ED; display: flex; align-items: center; justify-content: center;
  font-size: 15px; border-radius: 7px; transition: transform .4s cubic-bezier(.16,1,.3,1);
}
[data-theme="dark"] .dm-arrowbtn { background: #FDF8EA; color: #1C1916; }
a:hover .dm-arrowbtn, .dm-cta:hover .dm-arrowbtn { transform: translateX(4px); }
.dm-upwork-cta { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .04em; color: #9C968C; text-decoration: none; transition: color .25s ease; }
.dm-upwork-cta:hover { color: #0D0D0D; }
[data-theme="dark"] .dm-upwork-cta:hover { color: #FDF8EA; }
a:active .dm-arrowbtn, .dm-cta:active .dm-arrowbtn { transform: translateX(4px) scale(.92); }

/* ---------- section heads ---------- */
.dm-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.dm-eyebrow .bar { height: 8px; background: #0D0D0D; display: block; }
[data-theme="dark"] .dm-eyebrow .bar { background: #FDF8EA; }
.dm-eyebrow .bar.b1 { width: 26px; } .dm-eyebrow .bar.b2 { width: 14px; } .dm-eyebrow .bar.b3 { width: 5px; } .dm-eyebrow .bar.b4 { width: 5px; }
.dm-eyebrow .label { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .08em; color: #9C968C; margin-left: 4px; }
.dm-sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.dm-sec-head h2 { margin: 0; font-weight: 500; font-size: clamp(34px, 4.4vw, 56px); line-height: 1; letter-spacing: -.025em; }
.dm-sec-head p { margin: 0; font-size: clamp(20px, 2.3vw, 27px); line-height: 1.25; color: #B0AAA0; }
.ink { color: #0D0D0D; }
[data-theme="dark"] .ink { color: #FDF8EA; }

/* ---------- about ---------- */
.dm-about-body { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: start; }
.dm-about-body p { margin: 0 0 22px; color: #9C968C; font-size: 15px; line-height: 1.6; }
.dm-portrait { width: 100%; height: 560px; object-fit: cover; border-radius: 16px; }
.dm-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; border-top: 1px solid rgba(22,19,16,.12); padding-top: 30px; }
[data-theme="dark"] .dm-stats { border-color: rgba(255,255,255,.14); }
.dm-stats .lbl { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .06em; color: #9C968C; text-transform: uppercase; margin-bottom: 14px; }
.dm-stats .num { font-weight: 500; font-size: 54px; letter-spacing: -.03em; }
.dm-stats .num .suffix { color: #B0AAA0; }
.dm-divider-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(22,19,16,.12); margin-top: 54px; padding-top: 22px; }
[data-theme="dark"] .dm-divider-row { border-color: rgba(255,255,255,.14); }
.dm-divider-row .lbl { font-family: 'Space Mono', monospace; font-size: 11px; color: #9C968C; }

/* ---------- services ---------- */
.dm-srow { display: grid; grid-template-columns: 220px 1fr 320px 46px; gap: 24px; align-items: center; border-top: 1px solid rgba(22,19,16,.12); padding: 30px 0; transition: background .4s ease; }
[data-theme="dark"] .dm-srow { border-color: rgba(255,255,255,.14); }
.dm-srow:hover { background: rgba(22,19,16,.035); }
[data-theme="dark"] .dm-srow:hover { background: rgba(255,255,255,.04); }
.dm-srow img { width: 200px; height: 118px; object-fit: cover; border-radius: 16px; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.dm-srow:hover img { transform: scale(1.05); }
.dm-srow h3 { margin: 0 0 14px; font-weight: 500; font-size: 24px; letter-spacing: -.01em; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.dm-srow:hover h3 { transform: translateX(10px); }
.dm-srow p { margin: 0; color: #9C968C; font-size: 14px; line-height: 1.5; }
.dm-srow .dm-svc-meta { margin-top: 10px; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .02em; color: #B0AAA0; }
[data-theme="dark"] .dm-srow .dm-svc-meta { color: #8B857B; }
.dm-srow .num { font-family: 'Space Mono', monospace; font-size: 14px; color: #9C968C; text-align: right; align-self: start; }
.dm-srow-end { border-top: 1px solid rgba(22,19,16,.12); }
[data-theme="dark"] .dm-srow-end { border-color: rgba(255,255,255,.14); }

/* ---------- case cards (sticky stack) ---------- */
.dm-card { display: block; position: sticky; top: 0; width: 100%; height: 76vh; min-height: 460px; cursor: pointer; overflow: hidden; text-decoration: none; box-shadow: 0 -1px 0 rgba(255,255,255,.06); }
.dm-card .dm-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s cubic-bezier(.16,1,.3,1); }
.dm-card:hover .dm-bg { transform: scale(1.06); }
.dm-card .dm-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,7,.8), rgba(8,8,7,.44) 55%, rgba(8,8,7,.72)); }
.dm-case-grid { position: relative; max-width: 1180px; margin: 0 auto; padding: 60px 32px; height: 100%; display: grid; grid-template-columns: repeat(12,1fr); grid-template-rows: auto 1fr; gap: 18px; }
.dm-case-grid h3 { grid-column: 1 / 6; grid-row: 1; margin: 0; align-self: start; font-weight: 500; font-size: clamp(28px,3.4vw,44px); letter-spacing: -.02em; color: #fff; transition: transform .55s cubic-bezier(.16,1,.3,1); }
.dm-card:hover .dm-case-grid h3 { transform: translateX(12px); }
.dm-case-grid p { grid-column: 6 / 10; grid-row: 1; margin: 0; align-self: start; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.45; }
.dm-case-grid .tags { grid-column: 6 / 10; grid-row: 2; align-self: end; display: flex; flex-direction: column; gap: 4px; }
.dm-case-grid .tags span { color: rgba(255,255,255,.7); font-size: 13px; }

/* ---------- process ---------- */
.dm-process { border-top: 1px solid rgba(22,19,16,.12); padding-top: 46px; display: flex; align-items: flex-start; gap: 18px; }
[data-theme="dark"] .dm-process { border-color: rgba(255,255,255,.14); }
.dm-process .step { flex: 1; opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.dm-process.dm-in .step { opacity: 1; transform: none; }
.dm-process.dm-in .step:nth-child(1) { transition-delay: .05s; }
.dm-process.dm-in .step:nth-child(3) { transition-delay: .13s; }
.dm-process.dm-in .step:nth-child(5) { transition-delay: .21s; }
.dm-process.dm-in .step:nth-child(7) { transition-delay: .29s; }
.dm-process .step .head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; white-space: nowrap; }
.dm-process .step .head .n { font-family: 'Space Mono', monospace; color: #9C968C; }
.dm-process .step .head .t { font-weight: 500; font-size: 26px; }
.dm-process .step p { margin: 0; color: #9C968C; font-size: 14px; line-height: 1.5; }
.dm-process .arrow { color: #9C968C; font-size: 20px; padding-top: 4px; }

/* ---------- marquee ---------- */
.dm-marquee { width: 100%; overflow: hidden; white-space: nowrap; background: #2E5E2A; color: #ECE9E1; padding: 18px 0; }
.dm-mq-track { display: inline-flex; align-items: center; white-space: nowrap; animation: dmMarquee 18s linear infinite; }
.dm-marquee:hover .dm-mq-track { animation-play-state: paused; }
.dm-mq-track span { font-weight: 300; font-size: 30px; padding: 0 15px; }
.dm-mq-track .dm-mq-dot { opacity: .5; padding: 0; }
@media (prefers-reduced-motion: reduce) { .dm-mq-track { animation: none; } }

/* ---------- footer ---------- */
footer.dm-footer { color: #C9C4BB; padding: 46px 0 70px; background-color: #020201; }
[data-theme="dark"] footer.dm-footer { background: #0D0D0D !important; }
.dm-logo-foot { cursor: pointer; text-decoration: none; font-weight: 500; font-size: 18px; color: #7A746B; margin-bottom: 40px; display: inline-block; transition: opacity .25s ease; }
.dm-logo-foot:hover { opacity: .7; }
.dm-foot-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .03em; color: #9A948A; }
.dm-foot-meta .loc, .dm-foot-meta .avail { color: #C9C4BB; }
.dm-foot-bars { display: flex; gap: 3px; align-items: center; }
.dm-foot-bars span { width: 14px; height: 48px; background: #fff; display: block; }
.dm-foot-bars span:nth-child(2) { width: 6px; } .dm-foot-bars span:nth-child(3) { width: 3px; } .dm-foot-bars span:nth-child(4) { width: 2px; }
.dm-foot-avatar { width: 48px; height: 48px; object-fit: cover; }
.dm-cols3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top: 120px; }
.dm-cols3[data-stagger] > div { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.dm-cols3[data-stagger].dm-in > div:nth-child(1) { transition-delay: .05s; }
.dm-cols3[data-stagger].dm-in > div:nth-child(2) { transition-delay: .13s; }
.dm-cols3[data-stagger].dm-in > div:nth-child(3) { transition-delay: .21s; }
.dm-cols3[data-stagger].dm-in > div { opacity: 1; transform: none; }
.dm-cols3 .col-lbl { font-family: 'Space Mono', monospace; font-size: 11px; color: #6F6A61; margin-bottom: 24px; }
.dm-navlink { display: flex; width: fit-content; align-items: center; text-decoration: none; font-size: 15px; color: #C9C4BB; margin-bottom: 16px; cursor: pointer; transition: color .25s ease, transform .35s cubic-bezier(.16,1,.3,1); }
.dm-navlink:last-child { margin-bottom: 0; }
.dm-navlink::after { content: '→'; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: opacity .3s ease, max-width .3s ease, margin-left .3s cubic-bezier(.16,1,.3,1); }
.dm-navlink:hover { color: #9A948A !important; }
.dm-navlink:hover::after { opacity: 1; max-width: 30px; margin-left: 10px; }
footer.dm-footer a:hover { color: #fff; }
.dm-foot-credit { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(201,196,187,.14); margin-top: 64px; padding-top: 26px; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .04em; color: #6F6A61; }

/* ---------- cursor / to-top / menu ---------- */
#dm-cursor { position: fixed; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50px; mix-blend-mode: difference; pointer-events: none; z-index: 9999; transform: translate3d(-100px,-100px,0); transition: opacity .3s ease; opacity: 0; will-change: transform; margin: -6px 0 0 -6px; background-color: #FDF8EA; }

.dm-totop { position: fixed; right: 28px; bottom: 28px; z-index: 90; width: 52px; height: 52px; border: none; border-radius: 8px; background: #0D0D0D; color: #F2F1ED; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s cubic-bezier(.16,1,.3,1), transform .4s cubic-bezier(.16,1,.3,1), background .25s ease; }
.dm-totop.show { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
.dm-totop:hover { background: #000 !important; transform: translateY(-3px) !important; }
.dm-totop:active { transform: translateY(-1px) scale(.93) !important; }
[data-theme="dark"] .dm-totop { background: #FDF8EA; color: #1C1916; }
[data-theme="dark"] .dm-totop:hover { background: #fff !important; }

.dm-menu-overlay { position: fixed; inset: 0; z-index: 100; background: #0D0D0D; color: #C9C4BB; overflow-y: auto; display: none; }
.dm-menu-overlay.open { display: block; animation: dmMenu .35s ease; }
[data-theme="dark"] .dm-menu-overlay { background: #0D0D0D !important; }
.dm-menu-close { cursor: pointer; width: 34px; height: 34px; position: relative; border: none; background: none; }
.dm-menu-close span { position: absolute; top: 50%; left: 0; width: 34px; height: 1.5px; background: #C9C4BB; }
.dm-menu-close span:first-child { transform: rotate(45deg); }
.dm-menu-close span:last-child { transform: rotate(-45deg); }
.dm-menu-cols { animation: dmFade .5s ease; }
.dm-menu-cols .dm-navlink { font-size: 19px; margin-bottom: 16px; }
.dm-menu-cols .dm-navlink:last-child { margin-bottom: 0; }
body.dm-menu-open { overflow: hidden; }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
[data-reveal].dm-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .dm-hero-wrap { animation: none !important; }
}

/* ---------- detail pages ---------- */
.dm-detail-main { max-width: 1180px; margin: 0 auto; padding: 40px 32px 0; }
.dm-back { cursor: pointer; text-decoration: none; color: #0D0D0D; display: inline-flex; align-items: center; gap: 12px; font-size: 15px; margin-bottom: 40px; }
[data-theme="dark"] .dm-back { color: #FDF8EA; }
.dm-back .arrow { width: 30px; height: 30px; border-radius: 7px; background: #0D0D0D; color: #F2F1ED; display: flex; align-items: center; justify-content: center; font-size: 14px; }
[data-theme="dark"] .dm-back .arrow { background: #FDF8EA; color: #1C1916; }
.dm-detail-kicker { font-family: 'Space Mono', monospace; font-size: 12px; color: #9C968C; margin-bottom: 18px; }
.dm-detail-title { margin: 0; font-weight: 500; font-size: clamp(40px,4.6vw,62px); line-height: 1.02; letter-spacing: -.03em; }
.dm-detail-subtitle { margin: 16px 0 0; font-weight: 400; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.3; letter-spacing: -.01em; color: #B0AAA0; }
[data-theme="dark"] .dm-detail-subtitle { color: #A7A198; }
.dm-detail-hero { width: 100%; margin: 0; height: 640px; object-fit: cover; border-radius: 16px; display: block; }
.dm-detail-meta { display: grid; gap: 48px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(22,19,16,.12); }
[data-theme="dark"] .dm-detail-meta { border-color: rgba(255,255,255,.14); }
.dm-detail-meta.cols2 { grid-template-columns: 1fr 1fr; }
.dm-detail-meta.cols3 { grid-template-columns: 1fr 1fr 1fr; }
.dm-detail-meta h2 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.dm-detail-meta p { margin: 0; color: #9C968C; font-size: 13.5px; line-height: 1.55; }
.dm-detail-body { margin-top: 70px; }
.dm-detail-body h2 { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.dm-detail-body p { margin: 0 0 22px; color: #9C968C; font-size: 14px; line-height: 1.6; }
.dm-detail-body p:last-child { margin-bottom: 0; }
.dm-detail-body p.strong { color: #0D0D0D; font-weight: 600; }
[data-theme="dark"] .dm-detail-body p.strong { color: #FDF8EA; }
.dm-detail-body p.tight { margin-bottom: 10px; }
.dm-detail-body ul, .dm-detail-body ol { margin: 0 0 24px; padding-left: 18px; color: #9C968C; font-size: 14px; line-height: 1.6; }
.dm-detail-body ul:last-child, .dm-detail-body ol:last-child { margin-bottom: 0; }
.dm-detail-body .ink { font-weight: 700; }
.dm-detail-img { width: 100%; display: block; object-fit: cover; border-radius: 16px; margin-top: 46px; }
.dm-detail-row { display: flex; gap: 20px; width: 100%; margin-top: 46px; flex-wrap: wrap; }
.dm-detail-row img { flex: 1; min-width: 280px; height: 100%; object-fit: cover; border-radius: 16px; }

.dm-other-wrap { max-width: 1180px; margin: 100px auto 0; padding-top: 40px; border-top: 1px solid rgba(22,19,16,.12); padding-bottom: 120px; }
[data-theme="dark"] .dm-other-wrap { border-color: rgba(255,255,255,.14); }
.dm-other-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.dm-other-head h2 { margin: 0; font-weight: 500; font-size: clamp(24px,3vw,34px); letter-spacing: -.02em; }
.dm-other-head span { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .06em; color: #9C968C; }
.dm-other { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dm-other-card { position: relative; height: 300px; border-radius: 24px; overflow: hidden; cursor: pointer; text-decoration: none; display: block; }
.dm-other-card .dm-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s cubic-bezier(.16,1,.3,1); }
.dm-other-card:hover .dm-bg { transform: scale(1.06); }
.dm-other-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,7,.22), rgba(8,8,7,.72)); }
.dm-other-card .content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.dm-other-card h3 { margin: 0 0 6px; font-weight: 500; font-size: 24px; color: #fff; }
.dm-other-card span.tags { color: rgba(255,255,255,.72); font-size: 13px; }

/* ============ responsive ============ */
@media (max-width: 880px) {
  .dm-sec-head { grid-template-columns: 1fr !important; gap: 16px !important; margin-bottom: 48px !important; }
  .dm-about-body { grid-template-columns: 1fr !important; gap: 36px !important; }
  .dm-about-body .dm-portrait { height: 380px !important; }
  .dm-srow { grid-template-columns: 1fr !important; gap: 16px !important; }
  .dm-srow img { width: 100% !important; height: 190px !important; }
  .dm-srow .spacer { display: none !important; }
  .dm-process { flex-direction: column !important; gap: 34px !important; }
  .dm-process .arrow { display: none !important; }
  .dm-hero-intro { grid-template-columns: 1fr !important; gap: 22px !important; }
  .dm-hero-intro > * { grid-column: auto !important; max-width: none !important; justify-self: start !important; }
  .dm-case-grid { grid-template-columns: 1fr !important; padding: 36px 24px !important; }
  .dm-case-grid > * { grid-column: auto !important; grid-row: auto !important; }
  .dm-detail-meta { grid-template-columns: 1fr !important; gap: 24px !important; }
  .dm-cols3 { grid-template-columns: 1fr 1fr !important; gap: 28px !important; margin-top: 64px !important; }
  .dm-detail-hero, .dm-detail-img { height: 46vw !important; min-height: 200px !important; max-height: 320px !important; }
  .dm-detail-row { flex-direction: column !important; }
  .dm-detail-row img { height: 44vw !important; min-height: 180px !important; max-height: 300px !important; }
  .dm-detail-body { margin-top: 52px !important; }
  .dm-detail-img { margin-top: 32px !important; }
  .dm-detail-row { margin-top: 32px !important; }
  .dm-detail-meta { margin-top: 28px !important; padding-top: 24px !important; }
  .dm-other-wrap { margin-top: 64px !important; padding-top: 28px !important; padding-bottom: 72px !important; }
  .dm-menu-cols { margin-top: 90px !important; }
}
@media (max-width: 480px) {
  .dm-pre-foot { padding: 0 18px !important; font-size: 9px !important; letter-spacing: .1em !important; }
  .dm-pre-word { font-size: clamp(40px, 16vw, 64px) !important; }
}
@media (max-width: 560px) {
  .dm-hero-meta { gap: 14px !important; font-size: 13px !important; }
  .dm-header-inner { padding: 16px 20px !important; }
  .dm-logo { font-size: 19px !important; }
  .dm-header-right { gap: 12px !important; }
  .dm-theme-btn { width: 34px !important; height: 34px !important; }
  .dm-burger { width: 34px !important; gap: 6px !important; }
  .dm-burger span { width: 34px !important; }
  .dm-burger:hover span:last-child { width: 22px !important; }
  .dm-back { margin-bottom: 26px !important; }
  .dm-menu-cols { margin-top: 56px !important; }
  .dm-detail-main { padding-top: 28px !important; }
  [data-hide-mobile] { display: none !important; }
  .dm-other { grid-template-columns: 1fr !important; }
  .dm-stats { gap: 14px !important; }
  .dm-stats .num { font-size: 38px !important; }
  .dm-cols3 { grid-template-columns: 1fr !important; }
  .dm-case-grid { min-height: 420px !important; }
  .dm-detail-hero, .dm-detail-img { height: 62vw !important; max-height: 340px !important; }
  .dm-detail-row { flex-direction: column !important; }
  .dm-detail-row img { height: 62vw !important; min-height: 160px !important; max-height: 300px !important; }
  .dm-detail-body { margin-top: 40px !important; }
  .dm-detail-img { margin-top: 24px !important; }
  .dm-detail-row { margin-top: 24px !important; }
  .dm-other-wrap { margin-top: 48px !important; }
  main > section { padding-top: 52px !important; padding-bottom: 52px !important; }
  .dm-hero-intro { margin-top: 28px !important; }
  .dm-other-wrap { margin-top: 56px !important; }
  #dm-hero-stage { margin-top: 18px !important; line-height: .8 !important; }
  #dm-hero-stage .dm-hero-title { line-height: .8 !important; }
  #dm-hero-stage .dm-hero-black { height: 260% !important; width: 140% !important; }
}

/* ============ interactive polish (added) ============ */

/* scroll progress bar */
#dm-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 210;
  background: #0D0D0D; pointer-events: none;
}
[data-theme="dark"] #dm-progress { background: #FDF8EA; }

/* word-cascade heading reveal */
.dm-word { display: inline-block; overflow: hidden; }
.dm-word-inner {
  display: inline-block; transform: translateY(115%); opacity: 0;
  transition: transform .7s cubic-bezier(.16,1,.3,1), opacity .5s ease;
}
.dm-split.dm-in .dm-word-inner { transform: none; opacity: 1; }
.dm-split[data-reveal] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .dm-word-inner { opacity: 1 !important; transform: none !important; }
}

/* cursor-follow "Ver projeto" label */
#dm-cursor-label {
  position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none;
  transform: translate3d(-999px,-999px,0); will-change: transform;
}
.dm-cursor-label-inner {
  display: inline-block; margin: -20px 0 0 26px;
  background: #0D0D0D; color: #F2F1ED; padding: 10px 20px; border-radius: 40px;
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .04em; white-space: nowrap;
  opacity: 0; transform: scale(.7); transform-origin: left center;
  transition: opacity .35s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
#dm-cursor-label.show .dm-cursor-label-inner { opacity: 1; transform: scale(1); }
[data-theme="dark"] .dm-cursor-label-inner { background: #FDF8EA; color: #1C1916; }
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  #dm-cursor-label { display: none !important; }
}

/* magnetic icon buttons */
.dm-theme-btn, .dm-burger { will-change: transform; }
@media (pointer: coarse) {
  .dm-theme-btn, .dm-burger { transform: none !important; }
}
