/* ==========================================================================
   DOVYE + D-WORKS — merged stylesheet
   Base tokens follow the original DOVYE studio look (warm cream, coffee, rose)
   and the original D-WORKS hub look (deep night, violet #c084fc).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --nav-h: 76px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.19, .82, .25, 1);
  --dur: .45s;

  /* DOVYE studio palette */
  --bg: #faf7f4;
  --bg-soft: #f3ebe4;
  --bg-elevated: #ffffff;
  --ink: #1a1410;
  --mute: #6f6259;
  --mute-strong: #4a3f38;
  --line: rgba(26, 20, 16, .1);
  --line-strong: rgba(26, 20, 16, .18);
  --accent: #c4787a;
  --accent-deep: #a2585b;
  --accent-soft: #f0b4b6;
  --coffee: #8b6b4f;
  --card: rgba(255, 255, 255, .86);
  --glow: rgba(196, 120, 122, .32);

  /* D-WORKS palette (used on dark surfaces everywhere) */
  --dw-bg: #0c1018;
  --dw-bg-elev: #121826;
  --dw-ink: #eef2ff;
  --dw-mute: rgba(238, 242, 255, .62);
  --dw-line: rgba(255, 255, 255, .1);
  --dw-accent: #c084fc;
  --dw-accent-2: #d8b4fe;
  --dw-accent-deep: #8e54c0;
}

body.brand-dworks {
  --bg: #0c1018;
  --bg-soft: #121826;
  --bg-elevated: #151b2a;
  --ink: #eef2ff;
  --mute: rgba(238, 242, 255, .6);
  --mute-strong: rgba(238, 242, 255, .78);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --accent: #c084fc;
  --accent-deep: #d8b4fe;
  --accent-soft: #e9d5ff;
  --card: rgba(255, 255, 255, .06);
  --glow: rgba(142, 84, 192, .32);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: hidden;
}
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { line-height: 1.12; overflow-wrap: break-word; hyphens: manual; }
p, li { overflow-wrap: break-word; }
::selection { background: rgba(196, 120, 122, .28); }
body.brand-dworks ::selection { background: rgba(192, 132, 252, .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 14px; transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.06;
  text-wrap: balance;
}
.eyebrow, .eyebrow-muted {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow-muted { color: var(--mute); }
.eyebrow--line::before {
  content: ""; width: 28px; height: 1.5px; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(90deg, currentColor, transparent);
  transform-origin: left; transform: scaleX(var(--line-s, 1));
  transition: transform 1.2s var(--ease-out) .25s;
}
html.js .eyebrow--line[data-reveal]:not(.is-in)::before { --line-s: 0; }
.sec-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-title { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin: 12px 0 14px; }
.sec-lead { color: var(--mute-strong); font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.7; max-width: 36rem; text-wrap: pretty; }
.sec-head--center .sec-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  text-align: center; white-space: normal;
  border: 1px solid transparent;
  overflow: hidden;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform .5s var(--ease-out), box-shadow .4s ease, background-color .4s ease, color .3s ease, border-color .3s ease;
}
.btn .ico { transition: transform .45s var(--ease-out); flex-shrink: 0; }
.btn:hover .ico { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.btn:hover::before { opacity: 1; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 26px rgba(26, 20, 16, .18); }
.btn-primary:hover { box-shadow: 0 14px 36px rgba(26, 20, 16, .26); }
.btn-secondary { background: var(--bg-elevated); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(26, 20, 16, .08); }
.btn-glass {
  background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-light { background: #fff; color: #1a1410; box-shadow: 0 6px 22px rgba(0, 0, 0, .18); }
.btn-violet { background: rgba(142, 84, 192, .95); color: #fff; box-shadow: 0 10px 30px rgba(142, 84, 192, .3); }
.btn-violet:hover { background: var(--dw-accent); box-shadow: 0 14px 40px rgba(142, 84, 192, .42); }
body.brand-dworks .btn-primary { background: rgba(142, 84, 192, .95); color: #fff; box-shadow: 0 10px 30px rgba(142, 84, 192, .28); }
body.brand-dworks .btn-primary:hover { background: var(--dw-accent); }
body.brand-dworks .btn-secondary { background: rgba(255, 255, 255, .06); color: var(--dw-ink); border-color: var(--dw-line); }
.btn-sm { min-height: 40px; padding: 10px 18px; font-size: 13px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--accent-deep);
}
.link-arrow .ico { transition: transform .45s var(--ease-out); }
.link-arrow:hover .ico, a:hover > .link-arrow .ico { transform: translateX(5px); }

/* ---------- Progress + page veil ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--coffee), var(--accent), #e8a0a2);
}
body.brand-dworks .progress span { background: linear-gradient(90deg, #8e54c0, #c084fc, #d8b4fe); }

.veil {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(196, 120, 122, .22), transparent 70%),
    #0d0b0c;
  opacity: 0; visibility: hidden;
  display: grid; place-items: center;
}
body.brand-dworks .veil { background: radial-gradient(60% 50% at 50% 50%, rgba(142, 84, 192, .3), transparent 70%), #0a0d14; }
.veil-mark {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .18); border-top-color: rgba(255, 255, 255, .8);
  opacity: 0;
}
/* JS fallback transition (browsers without cross-document view transitions) */
html.pt-js.is-leaving .veil { visibility: visible; opacity: 1; transition: opacity .42s var(--ease-io); }
html.pt-js.is-leaving .veil-mark { opacity: 1; animation: spin 1s linear infinite; transition: opacity .3s .5s; }
html.pt-js.is-entering .veil { visibility: visible; opacity: 1; }
html.pt-js.is-entered .veil { visibility: hidden; opacity: 0; transition: opacity .7s var(--ease-out), visibility 0s .7s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cross-document view transitions (Chromium / Safari 18+) */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out .38s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .55s var(--ease-out), border-color .55s ease, box-shadow .55s ease, transform .6s var(--ease-out), backdrop-filter .55s ease;
}
.nav.is-solid {
  background: rgba(250, 247, 244, .82);
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom-color: rgba(26, 20, 16, .07);
  box-shadow: 0 10px 36px rgba(26, 20, 16, .06);
}
body.brand-dworks .nav.is-solid {
  background: rgba(12, 16, 24, .58);
  border-bottom-color: rgba(142, 84, 192, .16);
  box-shadow: 0 10px 36px rgba(0, 0, 0, .25);
}
.nav.is-hidden { transform: translateY(-105%); }
html.menu-open .nav { transform: none; background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; position: relative; z-index: 2; }
.brand-mark { height: 30px; width: auto; transition: transform .8s var(--ease-out), filter .5s ease; }
.brand-word { height: 18px; width: auto; transition: filter .5s ease, opacity .3s ease; }
.brand-word--dworks { height: 22px; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
body.brand-dworks .nav .brand-word--dworks {
  filter: brightness(0) saturate(100%) invert(85%) sepia(25%) saturate(1500%) hue-rotate(220deg) brightness(1.08) contrast(1.02);
}
.nav--dark:not(.is-solid) .brand-mark, .nav--dark:not(.is-solid) .brand-word,
html.menu-open .brand-mark, html.menu-open .brand-word { filter: brightness(0) invert(1); }
html.menu-open body.brand-dworks .nav .brand-word--dworks { filter: brightness(0) invert(1); }

.nav-links ul { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center;
  font-size: 13.5px; font-weight: 500; color: var(--mute);
  padding: 10px 16px; border-radius: var(--radius-pill);
  transition: color .35s ease, background .35s ease;
}
.nav-link span { position: relative; display: inline-block; }
.nav-link span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover span::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--ink); font-weight: 600; background: rgba(28, 22, 18, .06); }
.nav-link.is-active span::after { transform: scaleX(.45); transform-origin: center; }
.nav-link--dw.is-active span::after, body.brand-dworks .nav-link span::after { background: var(--dw-accent); }
body.brand-dworks .nav-link.is-active { background: rgba(255, 255, 255, .08); }
.nav--dark:not(.is-solid) .nav-link { color: rgba(255, 255, 255, .78); }
.nav--dark:not(.is-solid) .nav-link:hover, .nav--dark:not(.is-solid) .nav-link.is-active { color: #fff; }
.nav--dark:not(.is-solid) .nav-link.is-active { background: rgba(255, 255, 255, .12); }
.nav--dark:not(.is-solid) .nav-link span::after { background: #e8a0a2; }
body.brand-dworks .nav--dark:not(.is-solid) .nav-link span::after { background: var(--dw-accent-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.lang {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink);
  padding: 7px 13px 7px 9px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg-elevated);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .4s var(--ease-out);
}
.lang:hover { border-color: var(--line-strong); box-shadow: 0 6px 18px rgba(26, 20, 16, .08); transform: translateY(-1px); }
.flag { width: 22px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(28, 22, 18, .12); }
.lang-code--tr .t-red { color: #ef4444; }
body.brand-dworks .lang { background: rgba(255, 255, 255, .06); color: var(--dw-ink); }
.nav--dark:not(.is-solid) .lang { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); }
.nav-cta { margin-left: 4px; }
.nav--dark:not(.is-solid) .nav-cta { background: #fff; color: #1a1410; box-shadow: 0 4px 20px rgba(0, 0, 0, .15); }
body.brand-dworks .nav--dark:not(.is-solid) .nav-cta { background: rgba(142, 84, 192, .95); color: #fff; }

.burger {
  display: none; width: 46px; height: 46px; border-radius: 14px;
  align-items: center; justify-content: center;
  color: var(--ink); background: rgba(255, 255, 255, .55); border: 1px solid var(--line);
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.burger-lines { position: relative; width: 20px; height: 12px; }
.burger-lines i {
  position: absolute; left: 0; right: 0; height: 1.75px; border-radius: 2px; background: currentColor;
  transition: transform .55s var(--ease-out), top .55s var(--ease-out);
}
.burger-lines i:first-child { top: 1px; }
.burger-lines i:last-child { top: 9px; }
.burger[aria-expanded="true"] .burger-lines i:first-child { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines i:last-child { top: 5px; transform: rotate(-45deg); }
body.brand-dworks .burger { background: rgba(255, 255, 255, .06); color: var(--dw-ink); }
.nav--dark:not(.is-solid) .burger, html.menu-open .burger { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 380px) {
  .lang { padding: 6px 10px 6px 8px; }
  .brand-word { height: 15px; }
  .brand-mark { height: 26px; }
}

/* Mobile menu panel */
.mnav { position: fixed; inset: 0; z-index: 85; color: #fff; }
.mnav[hidden] { display: none; }
.mnav-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 85% 10%, rgba(196, 120, 122, .28), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgba(139, 107, 79, .25), transparent 60%),
    #0d0b0c;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path .8s var(--ease-io);
}
body.brand-dworks .mnav-bg {
  background:
    radial-gradient(80% 60% at 85% 10%, rgba(142, 84, 192, .36), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgba(192, 132, 252, .14), transparent 60%),
    #0a0d14;
}
.mnav.is-open .mnav-bg { clip-path: circle(150% at calc(100% - 44px) 38px); }
.mnav-inner {
  position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding-top: calc(var(--nav-h) + 24px); padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.mnav-list { display: flex; flex-direction: column; gap: 4px; }
.mnav-list a, .mnav-foot > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(.18s + var(--i, 0) * 60ms);
}
.mnav-list li { --i: inherit; }
.mnav.is-open .mnav-list a, .mnav.is-open .mnav-foot > * { opacity: 1; transform: none; }
.mnav-list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.03em; line-height: 1.1;
  color: rgba(255, 255, 255, .86); border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mnav-list a[aria-current="page"] { color: #fff; }
.mnav-list a[aria-current="page"] .mnav-num { color: #e8a0a2; }
body.brand-dworks .mnav-list a[aria-current="page"] .mnav-num { color: var(--dw-accent-2); }
.mnav-num { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: rgba(255, 255, 255, .4); min-width: 22px; }
.mnav-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mnav-foot .btn { background: #fff; color: #1a1410; }
.mnav-lang { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.mnav-lang img { width: 22px; height: 15px; border-radius: 2px; }
.mnav-mail { font-size: 14px; color: rgba(255, 255, 255, .6); overflow-wrap: anywhere; }
html.menu-open, html.menu-open body { overflow: hidden; }
html.menu-open .nav .lang { opacity: 0; pointer-events: none; }
.nav .lang { transition: opacity .4s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .4s var(--ease-out); }

/* ---------- Reveal system ---------- */
/* Entrances use the individual `translate` / `scale` properties so they never
   fight with hover transforms (tilt, lift) that use `transform`. */
html.js [data-reveal] {
  opacity: 0;
  translate: 0 30px;
  transition: opacity .95s var(--ease-out) var(--d, 0s), translate 1.15s var(--ease-out) var(--d, 0s), scale 1.15s var(--ease-out) var(--d, 0s), clip-path 1.2s var(--ease-io) var(--d, 0s);
}
html.js [data-reveal="scale"] { translate: none; scale: .95; }
html.js [data-reveal="left"] { translate: -34px 0; }
html.js [data-reveal="right"] { translate: 34px 0; }
html.js [data-reveal="fade"] { translate: none; }
html.js [data-reveal="mask"] { opacity: 1; translate: none; clip-path: inset(0 0 100% 0 round var(--radius-lg)); }
html.js [data-reveal].is-in { opacity: 1; translate: none; scale: none; clip-path: inset(0 0 0 0 round var(--radius-lg)); }

html.js [data-stagger] > * {
  opacity: 0; translate: 0 34px;
  transition: opacity .9s var(--ease-out), translate 1.15s var(--ease-out), transform .7s var(--ease-out), box-shadow .5s ease, border-color .5s ease, background-color .5s ease;
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0s)), calc(var(--i, 0) * 90ms + var(--d, 0s)), 0s, 0s, 0s, 0s;
}
html.js [data-stagger].is-in > * { opacity: 1; translate: none; }
html.js [data-stagger] > [data-tilt].is-tilting { transition: opacity .9s var(--ease-out), translate 1.15s var(--ease-out), transform .15s linear, box-shadow .5s ease, border-color .5s ease; }

/* Split headline words */
/* Padding on all sides keeps accents (İ, Ü, Ö, Ç, Ş) and descenders inside the mask; negative margins cancel it in layout */
.w { display: inline-block; vertical-align: top; overflow: hidden; padding: .16em .06em .18em .02em; margin: -.16em -.06em -.18em -.02em; }
@supports (overflow: clip) { .w { overflow: clip; } }
.wi { display: inline-block; will-change: transform; }
html.js [data-split] .wi { transform: translate3d(0, 112%, 0) rotate(2deg); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--wi, 0) * 55ms + var(--d, 0s)); }
html.js [data-split].is-in .wi { transform: none; }

/* If main.js never runs, nothing stays hidden */
html.js:not(.io) [data-reveal], html.js:not(.io) [data-stagger] > *, html.js:not(.io) [data-split] .wi { animation: failsafe 0s 2.5s forwards; }
@keyframes failsafe { to { opacity: 1; translate: none; scale: none; clip-path: none; } }
html.js:not(.io) [data-split] .wi { animation-name: failsafe-word; }
@keyframes failsafe-word { to { transform: none; } }

/* ---------- Spotlight + tilt cards ---------- */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--spot, rgba(196, 120, 122, .16)), transparent 60%);
  opacity: 0; transition: opacity .5s ease;
}
.spot:hover::after { opacity: 1; }
body.brand-dworks .spot, .dw-surface .spot { --spot: rgba(192, 132, 252, .18); }
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .7s var(--ease-out), box-shadow .5s ease, border-color .5s ease; }
[data-tilt].is-tilting { transition: transform .15s linear, box-shadow .5s ease, border-color .5s ease; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero-studio {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 56px) 96px;
  background: #07060c; color: #fff;
}
.hero-bg {
  position: absolute; inset: -6% 0; z-index: -3;
  background: url("../img/hero.jpg") center 38% / cover no-repeat;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.06);
  will-change: transform;
}
html.js .hero-studio .hero-bg { animation: hero-zoom 2.8s var(--ease-out) both; }
@keyframes hero-zoom { from { opacity: 0; scale: 1.08; } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 12% 50%, rgba(6, 6, 12, .88) 0%, transparent 70%),
    linear-gradient(105deg, rgba(6, 6, 12, .8) 0%, rgba(6, 6, 12, .55) 32%, rgba(6, 6, 12, .18) 58%, transparent 80%),
    linear-gradient(180deg, transparent 70%, rgba(6, 6, 12, .55) 100%);
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; opacity: .95; }
.hero-glow { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: .55; animation: breathe 9s ease-in-out infinite alternate; }
.hero-glow--a { width: min(420px, 50vw); aspect-ratio: 1; left: -8%; top: 18%; background: radial-gradient(circle, rgba(196, 120, 122, .45), transparent 70%); }
.hero-glow--b { width: min(280px, 36vw); aspect-ratio: 1; left: 28%; bottom: 8%; background: radial-gradient(circle, rgba(139, 107, 79, .38), transparent 70%); animation-delay: -4s; }
@keyframes breathe { from { transform: translate3d(0, 0, 0) scale(1); opacity: .45; } to { transform: translate3d(24px, -18px, 0) scale(1.12); opacity: .62; } }

.hero-inner { position: relative; max-width: 640px; margin-left: clamp(0px, 1.8vw, 24px); }
.hero-tagline { color: rgba(255, 200, 180, .95); }
.hero-title {
  font-size: clamp(2.45rem, 5.6vw, 4.1rem);
  margin: 18px 0 20px; color: #fff; line-height: 1.04;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 32px rgba(0, 0, 0, .28);
}
.hero-title > span { display: block; }
.hero-sub {
  font-size: .44em; font-weight: 600; letter-spacing: -.012em; line-height: 1.3;
  color: #f0b4b6; margin-top: .55em; max-width: 22em;
}
.hero-lead { font-size: clamp(1.04rem, 1.5vw, 1.15rem); color: rgba(255, 255, 255, .86); line-height: 1.72; max-width: 31rem; margin-bottom: 34px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(rgba(255, 255, 255, .7), transparent); transform-origin: top; animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 720px) {
  .hero-studio { padding-bottom: 110px; }
  .hero-shade { background: linear-gradient(180deg, rgba(6, 6, 12, .66) 0%, rgba(6, 6, 12, .45) 50%, rgba(6, 6, 12, .62) 100%); }
  .hero-glow { opacity: .3; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.7rem); }
}

/* Brands duo */
.duo-sec { position: relative; padding-block: clamp(88px, 11vw, 140px); background: var(--bg); overflow: hidden; }
.duo-sec::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 85% 10%, rgba(196, 120, 122, .1), transparent 60%), radial-gradient(ellipse 40% 40% at 5% 90%, rgba(139, 107, 79, .08), transparent 60%);
}
.duo { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.duo-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  min-height: clamp(420px, 46vw, 560px); padding: clamp(26px, 3.4vw, 44px);
  border-radius: var(--radius-lg); color: #fff;
  box-shadow: 0 30px 80px rgba(26, 20, 16, .14);
}
.duo-media { position: absolute; inset: -8% 0; z-index: -2; background-size: cover; background-position: center; transform: translate3d(0, var(--py, 0px), 0) scale(1.04); transition: scale 1.4s var(--ease-out); }
.duo-card:hover .duo-media { scale: 1.06; }
.duo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 8, 12, .08) 0%, rgba(10, 8, 12, .45) 45%, rgba(10, 8, 12, .9) 100%); }
.duo-card--dworks::before { background: linear-gradient(180deg, rgba(8, 6, 14, .1) 0%, rgba(8, 6, 14, .5) 45%, rgba(8, 6, 14, .94) 100%); }
.duo-logo { height: 26px; width: auto; filter: brightness(0) invert(1); margin-bottom: auto; align-self: flex-start; }
.duo-card--dworks .duo-logo { filter: brightness(0) saturate(100%) invert(85%) sepia(25%) saturate(1500%) hue-rotate(220deg) brightness(1.08); }
.duo-role { font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: #f0b4b6; }
.duo-card--dworks .duo-role { color: var(--dw-accent-2); }
.duo-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 650; letter-spacing: -.03em; }
.duo-text { color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.65; max-width: 30rem; }
.duo-card .link-arrow { color: #fff; }
.duo-card { --spot: rgba(255, 255, 255, .12); }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } .duo-card { min-height: 400px; } }

/* Process (DOVYE "How we work") */
.process { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 11vw, 140px) clamp(88px, 10vw, 120px); }
.process-bg { position: absolute; inset: -10% 0; z-index: -1; background: url("../img/process-bg.jpg") center / cover; opacity: .12; transform: translate3d(0, var(--py, 0px), 0); }
.process::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(196, 120, 122, .12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(139, 107, 79, .1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(250, 247, 244, .9) 0%, rgba(246, 240, 234, .94) 100%);
}
.stage { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1080px; }
.stage-line { position: absolute; top: 25px; left: calc(12.5% - 8px); right: calc(12.5% - 8px); height: 2px; border-radius: 2px; background: rgba(196, 120, 122, .16); overflow: hidden; }
.stage-line::after {
  content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #8b6b4f, #c4787a, #d4a0a2);
}
.node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.num {
  position: relative; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 20px;
  font-size: 14px; font-weight: 800; letter-spacing: .04em; color: #fff;
  background: linear-gradient(145deg, #8b6b4f 0%, #c4787a 55%, #d4a0a2 100%);
  box-shadow: 0 10px 24px rgba(196, 120, 122, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .6s var(--ease-out);
}
.num::after { content: ""; position: absolute; inset: -6px; border-radius: 20px; border: 1px solid rgba(196, 120, 122, .3); opacity: 0; transform: scale(.85); transition: opacity .5s, transform .7s var(--ease-out); }
.node:hover .num { transform: translateY(-3px) rotate(-4deg); }
.node:hover .num::after { opacity: 1; transform: scale(1); }
.node-card {
  width: 100%; min-height: 150px; padding: 22px 20px 24px; border-radius: 20px;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 4px 8px rgba(26, 20, 16, .03), 0 18px 48px rgba(26, 20, 16, .06);
  transition: transform .6s var(--ease-out), box-shadow .5s ease;
}
.node:hover .node-card { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(26, 20, 16, .04), 0 26px 60px rgba(26, 20, 16, .1); }
.node-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; margin-bottom: 8px; }
.node-desc { font-size: 14px; color: var(--mute); line-height: 1.55; }
.n2 .node-card { margin-top: 28px; } .n3 .node-card { margin-top: 56px; } .n4 .node-card { margin-top: 84px; }
@media (max-width: 900px) {
  .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .stage-line { display: none; }
  .n2 .node-card, .n4 .node-card { margin-top: 32px; } .n3 .node-card { margin-top: 0; }
}
@media (max-width: 560px) {
  .stage { grid-template-columns: 1fr; gap: 16px; }
  .n2 .node-card, .n3 .node-card, .n4 .node-card { margin-top: 0; }
  .node { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; }
  .num { width: 46px; height: 46px; margin: 0; }
  .node-card { min-height: 0; padding: 18px; }
}

/* Services */
.svc-sec { position: relative; padding-block: clamp(88px, 10vw, 130px); background: var(--bg); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: 28px 26px 26px; min-height: 260px; border-radius: var(--radius);
  background: var(--bg-elevated); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 12px 34px rgba(26, 20, 16, .04);
}
.svc-card:hover { --ty: -6px; border-color: rgba(196, 120, 122, .35); box-shadow: 0 26px 60px rgba(26, 20, 16, .1); }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent-deep); background: rgba(196, 120, 122, .1);
  transition: background .5s ease, color .5s ease, transform .7s var(--ease-out);
}
.svc-card:hover .svc-ico { background: var(--ink); color: #fff; transform: rotate(-8deg) scale(1.05); }
.svc-idx { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--mute); letter-spacing: .06em; }
.svc-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; }
.svc-text { color: var(--mute); font-size: 14.5px; line-height: 1.6; flex: 1; }
.svc-card .link-arrow { margin-top: 6px; position: relative; z-index: 2; }
.svc-card::before {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--coffee), var(--accent)); transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.svc-card:hover::before { transform: scaleX(1); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } .svc-card { min-height: 0; } }

/* Marquee of technologies */
.marquee {
  position: relative; overflow: hidden; margin-top: clamp(48px, 6vw, 72px);
  border-block: 1px solid var(--line); padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 0; padding-right: 0; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 22px; padding-inline: 22px;
  font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.02em;
  color: var(--mute-strong); white-space: nowrap;
}
.marquee-item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Portal (D-WORKS preview window) */
.portal { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 9vw, 120px); background: #e8eaf0; }
.portal-bg { position: absolute; inset: -10% 0; z-index: -1; background: url("../img/portal-bg.jpg") center / cover; transform: translate3d(0, var(--py, 0px), 0); }
.portal-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(232, 234, 240, .35), rgba(232, 234, 240, .7)); }
.portal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.portal-head .sec-head { margin-bottom: 0; }
.portal-head .sec-title { color: var(--ink); }
.portal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.browser {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #0c0c0e; border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 40px 100px rgba(26, 20, 40, .28), 0 0 0 1px rgba(255, 255, 255, .4) inset;
  transform: perspective(1400px) rotateX(var(--bx-r, 0deg)) scale(var(--bx-s, 1));
  transform-origin: 50% 0;
}
.chrome { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #16161a; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.url {
  flex: 1; min-width: 0; margin-left: 8px; font-size: 12px; color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .06); border-radius: 8px; padding: 6px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.url b { color: rgba(255, 255, 255, .85); font-weight: 500; }
.browser-body { position: relative; isolation: isolate; color: var(--dw-ink); background: var(--dw-bg); padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px) clamp(26px, 4vw, 48px); overflow: hidden; }
.browser-body::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/bg/home.jpg") center / cover; opacity: .9; }
.browser-body::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 7, 8, .25), rgba(7, 7, 8, .55) 45%, rgba(12, 16, 24, .96) 85%); }
.browser-hero { text-align: center; margin-bottom: clamp(26px, 4vw, 44px); }
.browser-hero .powered { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #e9d5ff; text-shadow: 0 0 20px rgba(216, 180, 254, .45); }
.browser-hero h3 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; margin: 10px auto 10px; max-width: 16ch; text-wrap: balance; }
.browser-hero p { color: rgba(255, 255, 255, .78); max-width: 42ch; margin-inline: auto; font-size: 15px; }
.mini-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mini-cards { grid-template-columns: 1fr; } }

/* Tool card (shared by portal + D-WORKS page) */
.tool {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 22px 20px; border-radius: 18px; color: var(--dw-ink);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  --spot: rgba(192, 132, 252, .2);
}
a.tool:hover { --ty: -6px; border-color: rgba(192, 132, 252, .38); background: rgba(255, 255, 255, .09); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.tool-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--dw-accent); background: rgba(142, 84, 192, .16); transition: transform .7s var(--ease-out), background .5s; }
a.tool:hover .tool-ic { transform: rotate(-8deg) scale(1.06); background: rgba(142, 84, 192, .28); }
.tool-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.badge--live { color: #bbf7d0; background: rgba(34, 197, 94, .14); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.4s ease-out infinite; }
.badge--soon { color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.tool-cat { font-size: 12px; font-weight: 600; color: var(--dw-mute); letter-spacing: .03em; }
.tool h3, .tool h4 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.tool p { color: var(--dw-mute); font-size: 14px; line-height: 1.55; flex: 1; }
.tool-cta { font-size: 13.5px; font-weight: 600; color: var(--dw-accent); display: inline-flex; align-items: center; gap: 6px; }
.tool-cta .ico { transition: transform .45s var(--ease-out); }
a.tool:hover .tool-cta .ico { transform: translateX(4px); }
.tool.is-soon { border-style: dashed; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .03); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; font-weight: 600; color: var(--dw-accent); background: rgba(142, 84, 192, .14); padding: 4px 9px; border-radius: 999px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; }
.step { font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .06); padding: 5px 9px; border-radius: 8px; }

/* Founder */
.founder { position: relative; padding-block: clamp(88px, 10vw, 130px); background: radial-gradient(ellipse at 20% 30%, rgba(196, 120, 122, .1) 0%, transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(139, 107, 79, .08) 0%, transparent 45%), var(--bg); }
.founder-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px 44px; align-items: center;
  max-width: 880px; margin-inline: auto; padding: clamp(32px, 5vw, 60px);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96) 0%, rgba(243, 235, 228, .9) 100%);
  box-shadow: 0 24px 64px rgba(26, 20, 16, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.avatar {
  position: relative; width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--coffee) 0%, var(--accent) 100%);
  box-shadow: 0 14px 36px rgba(196, 120, 122, .32);
}
.avatar::before, .avatar::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.avatar::before { inset: -8px; border: 1px solid rgba(196, 120, 122, .28); }
.avatar::after { inset: -18px; border: 1px dashed rgba(196, 120, 122, .22); animation: spin 40s linear infinite; }
.founder-role { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; }
.founder-name { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 650; letter-spacing: -.03em; margin-bottom: 12px; }
.founder-bio { color: var(--mute-strong); font-size: 16px; line-height: 1.65; margin-bottom: 24px; max-width: 32rem; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink);
  transition: transform .45s var(--ease-out), box-shadow .4s ease, border-color .3s ease;
}
.social:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 10px 24px rgba(26, 20, 16, .08); }
@media (max-width: 640px) {
  .founder-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .founder-bio { margin-inline: auto; }
  .socials { justify-content: center; }
}

/* CTA band */
.cta-band { position: relative; overflow: hidden; text-align: center; padding-block: clamp(80px, 9vw, 120px); background: var(--bg); }
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(196, 120, 122, .16), transparent); pointer-events: none;
  animation: breathe 10s ease-in-out infinite alternate;
}
.cta-title { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 14px auto 14px; max-width: 18ch; }
.cta-lead { color: var(--mute-strong); margin: 0 auto 30px; max-width: 32rem; font-size: 1.02rem; }
.cta-band .wrap { position: relative; }

/* ==========================================================================
   Inner page heads (services, detail)
   ========================================================================== */
.page-top { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px)); }
.page-head { position: relative; padding-bottom: clamp(40px, 5vw, 64px); }
.page-title { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 12px 0 18px; max-width: 18ch; }
.page-lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--mute-strong); line-height: 1.7; max-width: 40rem; }
.page-orb {
  position: absolute; right: -10%; top: -40%; width: min(560px, 70vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle at 40% 40%, rgba(196, 120, 122, .22), rgba(139, 107, 79, .08) 45%, transparent 70%);
  filter: blur(20px); animation: breathe 12s ease-in-out infinite alternate;
}
.services-page, .service-page { position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(80px, 9vw, 120px); }

/* Service list rows */
.svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.svc-row {
  position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1.4fr) 140px; align-items: center; gap: 24px;
  padding: 30px 8px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
.svc-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(196, 120, 122, .1), rgba(139, 107, 79, .04));
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease-out);
}
.svc-row:hover::before { transform: scaleY(1); }
.svc-row-idx { font-family: var(--font-display); font-weight: 700; color: var(--accent-deep); font-size: 14px; letter-spacing: .06em; }
.svc-row-title { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 650; letter-spacing: -.03em; transition: transform .7s var(--ease-out); }
.svc-row:hover .svc-row-title { transform: translateX(8px); }
.svc-row-text { color: var(--mute); font-size: 15px; line-height: 1.6; }
.svc-row-img { width: 140px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; justify-self: end; }
.svc-row-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(.8); transition: transform 1s var(--ease-out), filter .6s ease; }
.svc-row:hover .svc-row-img img { transform: scale(1); filter: none; }
@media (max-width: 900px) {
  .svc-row { grid-template-columns: 52px minmax(0, 1fr); gap: 8px 16px; padding: 24px 4px; }
  .svc-row-text { grid-column: 2; }
  .svc-row-img { display: none; }
}

/* Service detail */
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--mute); margin-bottom: 26px; transition: color .3s ease; }
.back .ico { transition: transform .45s var(--ease-out); }
.back:hover { color: var(--ink); }
.back:hover .ico { transform: translateX(-4px); }
.svc-hero-img { position: relative; height: clamp(220px, 34vw, 420px); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: clamp(36px, 5vw, 56px); }
.svc-hero-img img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; max-width: none; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); }
.svc-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 8, 12, .35)); }
.psv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: clamp(48px, 6vw, 72px); }
.psv-card { padding: 26px 24px; border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(26, 20, 16, .04); }
.psv-card h2 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; }
.psv-card p { color: var(--mute-strong); font-size: 15px; line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); margin-bottom: clamp(48px, 6vw, 72px); }
.d-block h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 650; letter-spacing: -.02em; margin-bottom: 18px; }
.features li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); color: var(--mute-strong); font-size: 15px; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: rgba(196, 120, 122, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a2585b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; padding: 9px 15px; border-radius: 999px; background: var(--bg-elevated); border: 1px solid var(--line); color: var(--mute-strong); transition: transform .45s var(--ease-out), border-color .3s; }
.chips li:hover { transform: translateY(-2px); border-color: rgba(196, 120, 122, .4); }
.proc-list { counter-reset: p; display: flex; flex-direction: column; gap: 4px; }
.proc-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--mute-strong); font-size: 15px; }
.proc-list span { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 16px; background: var(--bg-elevated); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, box-shadow .4s; }
.faq details[open] { border-color: rgba(196, 120, 122, .35); box-shadow: 0 14px 36px rgba(26, 20, 16, .06); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex-shrink: 0; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .5s var(--ease-out); color: var(--accent-deep); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq p { padding: 0 20px 20px; color: var(--mute); font-size: 14.5px; line-height: 1.65; }
.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.other { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--line); }
.other:hover { --ty: -5px; box-shadow: 0 22px 50px rgba(26, 20, 16, .08); border-color: rgba(196, 120, 122, .35); }
.other h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 650; }
.other p { color: var(--mute); font-size: 14px; line-height: 1.55; flex: 1; }
.dw-link-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 24px 26px; border-radius: var(--radius); margin-bottom: clamp(48px, 6vw, 72px);
  color: var(--dw-ink); background: linear-gradient(120deg, #120e1c, #1b1230 60%, #0c1018);
  border: 1px solid rgba(192, 132, 252, .22); box-shadow: 0 20px 60px rgba(30, 10, 60, .25);
}
.dw-link-card p { color: var(--dw-mute); font-size: 14.5px; max-width: 44ch; }
.dw-link-card strong { display: block; font-size: 1.05rem; color: var(--dw-ink); margin-bottom: 4px; }
@media (max-width: 900px) { .psv, .others { grid-template-columns: 1fr; } .detail-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   ABOUT / CONTACT (photo pages)
   ========================================================================== */
.photo-page { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 72px; }
.photo-bg { position: absolute; inset: -6% 0; z-index: -2; background-size: cover; background-position: center; transform: translate3d(0, var(--py, 0px), 0) scale(1.04); }
.about-page .photo-bg { background-image: url("../img/about-bg.jpg"); }
.contact-page .photo-bg { background-image: url("../img/contact-bg.jpg"); }
.photo-page::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 255, 255, .25), transparent 70%); }

.about-top { max-width: 40rem; margin: 0 auto 40px; text-align: center; }
.about-top .eyebrow { font-size: 13px; }
.about-title { font-size: clamp(2.3rem, 5vw, 3.4rem); margin: 14px 0 16px; text-shadow: 0 1px 12px rgba(255, 255, 255, .7); }
.about-lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--mute-strong); line-height: 1.65; font-weight: 600; text-shadow: 0 1px 8px rgba(255, 255, 255, .6); }
.glass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 980px; margin-inline: auto; }
.glass-card {
  padding: 26px 24px; text-align: center; border-radius: 20px;
  background: rgba(255, 255, 255, .42); border: 1px solid rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 10px 30px rgba(26, 20, 16, .08);
}
.glass-card:hover { --ty: -5px; box-shadow: 0 24px 50px rgba(26, 20, 16, .12); }
.glass-card h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 650; margin-bottom: 10px; }
.glass-card p { font-size: 14.5px; color: var(--mute-strong); line-height: 1.55; }
.glass-ico { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--coffee), var(--accent)); box-shadow: 0 8px 20px rgba(196, 120, 122, .3); }
.about-cta { text-align: center; margin-top: 44px; }
.about-cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 18px; text-shadow: 0 1px 8px rgba(255, 255, 255, .5); }
@media (max-width: 800px) {
  .photo-page { justify-content: flex-start; min-height: 0; }
  .glass-grid { grid-template-columns: 1fr; }
  .about-top { text-align: left; margin-left: 0; }
  .glass-card { text-align: left; }
  .glass-ico { margin-left: 0; }
}

.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 40px); align-items: stretch; max-width: 1000px; }
.contact-intro { display: flex; flex-direction: column; justify-content: center; padding: 12px 4px 0; }
.contact-title { font-size: clamp(2.2rem, 4.4vw, 3.1rem); margin: 10px 0 16px; text-shadow: 0 1px 16px rgba(255, 255, 255, .55); }
.contact-lead { color: var(--mute-strong); line-height: 1.65; margin-bottom: 24px; font-size: clamp(1.05rem, 1.5vw, 1.18rem); font-weight: 600; text-shadow: 0 1px 10px rgba(255, 255, 255, .45); }
.chips-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  font-size: 14px; font-weight: 600; color: var(--ink); padding: 12px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 6px 24px rgba(26, 20, 16, .08);
  transition: transform .45s var(--ease-out), box-shadow .4s ease;
}
.chip span { overflow-wrap: anywhere; }
.chip:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(26, 20, 16, .12); }
.chip--wa { background: rgba(37, 211, 102, .25); border-color: rgba(37, 211, 102, .45); color: #0d6b35; }
.glass-panel {
  border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 34px) clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, .42); border: 1px solid rgba(255, 255, 255, .72);
  backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 20px 56px rgba(26, 20, 16, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
}
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } .chips-col { flex-direction: row; flex-wrap: wrap; } }

/* Form */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 500; color: var(--mute-strong); min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 14px; padding: 13px 14px; color: var(--ink); font-size: 15px;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(196, 120, 122, .75); background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 4px rgba(196, 120, 122, .16); }
.field .is-invalid { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, .12); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231a1410' stroke-opacity='.55' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select option { background: #fff; color: #1a1410; }
.field textarea { resize: vertical; min-height: 120px; }
.field-hint { font-size: 12px; color: #c0392b; min-height: 0; }
.field-note { font-size: 11.5px; color: var(--mute); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: 14px; font-weight: 600; padding: 12px 14px; border-radius: 12px; }
.form-msg[hidden] { display: none; }
.form-msg.ok { color: #0f5132; background: rgba(209, 250, 229, .75); }
.form-msg.err { color: #9b2c2c; background: rgba(254, 226, 226, .8); }
.form .btn { align-self: flex-start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .form .btn { align-self: stretch; } }

/* 404 */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 60px) 0 80px; position: relative; overflow: hidden; }
.nf-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 22vw, 14rem); line-height: .9; letter-spacing: -.06em; background: linear-gradient(135deg, var(--coffee), var(--accent), #e8a0a2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 12px 0 14px; }
.nf p { color: var(--mute); margin-bottom: 28px; }

/* ==========================================================================
   D-WORKS hub page
   ========================================================================== */
.dw-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; text-align: center; background: #070708; color: #fff; }
.dw-hero-bg { position: absolute; inset: -4% 0; z-index: -3; background: url("../img/bg/home.jpg") center / cover no-repeat; transform: translate3d(0, var(--py, 0px), 0); }
html.js .dw-hero-bg { animation: hero-zoom 2.6s var(--ease-out) both; }
.dw-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 7, 8, .22) 0%, rgba(7, 7, 8, .38) 38%, rgba(7, 7, 8, .85) 80%, var(--dw-bg) 100%); }
.dw-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.dw-hero .wrap { padding-top: calc(var(--nav-h) + 6vh); padding-bottom: 16vh; }
.dw-hero-copy { transform-origin: 50% 0; transform: translate3d(0, var(--hy, 0px), 0) scale(var(--hs, 1)); opacity: var(--ho, 1); will-change: transform, opacity; }
.powered { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #e9d5ff; text-shadow: 0 0 20px rgba(216, 180, 254, .45); }
.dw-hero h1 { font-family: var(--font-body); font-size: clamp(2.4rem, 6.6vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; max-width: 15ch; margin: 16px auto 0; text-shadow: 0 2px 28px rgba(0, 0, 0, .5); text-wrap: balance; }
.dw-hero .lead { margin: 22px auto 0; max-width: 42ch; color: rgba(255, 255, 255, .88); font-size: clamp(1rem, 1.4vw, 1.15rem); text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.dw-hero .ctas { justify-content: center; margin-top: 32px; }

.dw-sec { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding-block: clamp(80px, 10vw, 120px); }
.dw-sec-bg { position: absolute; inset: -12% 0; z-index: -2; background-size: cover; background-position: center; filter: brightness(.66) saturate(1.05); transform: translate3d(0, var(--py, 0px), 0); }
.dw-sec::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--dw-bg) 0%, rgba(12, 16, 24, .15) 22%, rgba(12, 16, 24, .15) 78%, var(--dw-bg) 100%); }
.dw-sec .wrap { max-width: 1040px; }
.cat-label {
  display: inline-block; margin-bottom: 16px; padding: 8px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e9d5ff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.dw-sec h2 { font-family: var(--font-body); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.dw-sec .sub { color: rgba(255, 255, 255, .9); font-size: clamp(15px, 1.3vw, 17px); max-width: 48ch; margin: 14px auto 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.dw-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 36px auto 0; text-align: left; }
.dw-cards--tools { max-width: 1040px; }
.dw-card {
  padding: 26px 24px; border-radius: var(--radius); color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  --spot: rgba(192, 132, 252, .18);
}
.dw-card:hover { --ty: -4px; border-color: rgba(192, 132, 252, .3); background: rgba(255, 255, 255, .1); }
.dw-card h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.dw-card p { color: rgba(255, 255, 255, .82); font-size: 15px; }
.dw-more { margin-top: 26px; display: flex; justify-content: center; }
.dw-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--dw-accent-2); padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(216, 180, 254, .25); background: rgba(12, 16, 24, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .4s, border-color .4s; }
.dw-more a:hover { background: rgba(142, 84, 192, .25); border-color: rgba(216, 180, 254, .5); }
.dw-more a .ico { transition: transform .45s var(--ease-out); }
.dw-more a:hover .ico { transform: translateX(4px); }
.dw-sec + .dw-sec { border-top: 12px solid var(--dw-bg); }
@media (max-width: 760px) { .dw-cards { grid-template-columns: 1fr; } .dw-sec { min-height: 0; } }

/* Side rail (D-WORKS signature navigation, ≥1440px) */
.rail { position: fixed; left: 0; top: calc(var(--nav-h) + 16px); bottom: 14px; width: 210px; z-index: 40; pointer-events: none; display: none; }
.rail::before {
  content: ""; position: absolute; inset: -8px 0; pointer-events: none;
  background: radial-gradient(130% 90% at 0% 50%, rgba(12, 16, 24, .72) 0%, rgba(12, 16, 24, .36) 48%, transparent 78%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 100%);
}
.rail-track { position: absolute; inset: 0; }
.rail a {
  position: absolute; left: 18px; right: 6px; top: 0; padding: 5px 2px; pointer-events: auto;
  font-size: 13px; font-weight: 700; letter-spacing: .03em; color: rgba(255, 255, 255, .92); white-space: nowrap;
  text-shadow: 0 0 12px rgba(255, 255, 255, .2);
  transform-origin: left center;
  transform: translate3d(0, var(--y, 0px), 0);
  transition: transform 1.5s var(--ease-soft), color .9s ease, font-size 1.2s var(--ease-soft), letter-spacing 1s ease;
}
.rail a:hover { color: #fff; }
.rail a.is-on { color: var(--dw-accent-2); font-size: 24px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 0 24px rgba(216, 180, 254, .7); transform: translate3d(8px, var(--y, 0px), 0); }
.rail a.rail-home { text-transform: uppercase; letter-spacing: .1em; }
.rail a.rail-home.is-on { font-size: 20px; letter-spacing: .05em; }
@media (min-width: 1440px) { .rail { display: block; } }

/* Section chips (D-WORKS, below 1440px) */
.dw-chips {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%);
  z-index: 60; max-width: calc(100vw - 32px - 70px); margin-left: -35px;
  display: flex; gap: 4px; padding: 6px; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
  background: rgba(12, 16, 24, .72); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  transition: transform .8s var(--ease-out);
}
.dw-chips::-webkit-scrollbar { display: none; }
.dw-chips.is-shown { transform: translate(-50%, 0); }
.dw-chips a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .72); white-space: nowrap; transition: background .4s, color .4s; }
.dw-chips a.is-on { background: rgba(142, 84, 192, .9); color: #fff; }
@media (min-width: 1440px) { .dw-chips { display: none; } }

/* D-WORKS → studio band */
.dw-studio { position: relative; padding-block: clamp(72px, 8vw, 110px); text-align: center; background: var(--dw-bg); overflow: hidden; }
.dw-studio::before { content: ""; position: absolute; left: 50%; top: 0; width: min(800px, 110vw); height: 100%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(142, 84, 192, .22), transparent); pointer-events: none; }
.dw-studio .wrap { position: relative; }
.dw-studio h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin: 14px auto; max-width: 20ch; }
.dw-studio p { color: var(--dw-mute); max-width: 44ch; margin: 0 auto 28px; }

/* ==========================================================================
   Footer (DOVYE lockup — shared by both brands)
   ========================================================================== */
.footer { position: relative; isolation: isolate; overflow: hidden; background: #0a0a0c; color: #f5f5f7; }
.footer-bg { position: absolute; inset: -10% 0; z-index: -2; background: url("../img/footer-bg.jpg") top center / cover no-repeat; transform: translate3d(0, var(--py, 0px), 0); }
.footer-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .7) 100%); }
.footer-glow { position: absolute; z-index: -1; left: 50%; top: 10%; width: min(700px, 100vw); height: 320px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(196, 120, 122, .2), transparent); pointer-events: none; }
body.brand-dworks .footer-glow { background: radial-gradient(closest-side, rgba(142, 84, 192, .26), transparent); }
.footer-inner { padding-top: clamp(56px, 7vw, 88px); padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.footer-left { max-width: 22rem; }
.footer-studio { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin-bottom: 10px; }
.footer-blurb { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .6); }
.lockup { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; justify-items: center; width: clamp(280px, 34vw, 460px); }
.lockup-a { display: block; line-height: 0; min-width: 0; max-width: calc(100% - 10px); }
.lockup-a img { width: 100%; max-width: 200px; height: auto; filter: brightness(0) invert(1); opacity: .94; transition: opacity .3s, transform .6s var(--ease-out); }
@media (max-width: 900px) { .lockup { width: min(100%, 440px); } }
.lockup-a:hover img { opacity: 1; transform: scale(1.04); }
.lockup-a--dovye { grid-column: 1; grid-row: 1; justify-self: end; align-self: end; margin: 0 10px 4px 0; }
.lockup-a--dworks { grid-column: 3; grid-row: 2; justify-self: start; align-self: start; margin: 4px 0 0 10px; }
.amp { grid-column: 2; grid-row: 1 / 3; position: relative; width: clamp(56px, 6vw, 72px); aspect-ratio: 1; display: grid; place-items: center; }
.amp-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 55%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .04), inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 24px rgba(0, 0, 0, .25);
}
.amp-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .18); animation: spin 30s linear infinite; }
.amp-glyph { position: relative; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; font-style: italic; color: #fff; line-height: 1; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.footer-right { justify-self: end; text-align: right; max-width: 20rem; }
.footer-col-title { font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 12px; }
.footer-list li { margin-bottom: 8px; }
.footer-list a, .footer-nav a { font-size: 14px; color: rgba(255, 255, 255, .78); transition: color .3s; overflow-wrap: anywhere; }
.footer-list a:hover, .footer-nav a:hover { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: clamp(40px, 5vw, 56px); padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-nav a { position: relative; }
.footer-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.footer-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 26px; }
.footer-copy { font-size: 12px; color: rgba(255, 255, 255, .45); line-height: 1.5; }
.footer-dw { display: inline-block; margin-left: 6px; color: rgba(255, 255, 255, .55); }
.credit { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: rgba(255, 255, 255, .5); transition: color .3s; }
.credit:hover { color: #fff; }
.credit-mark { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #FF5A1F; color: #141414; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0; transition: transform .6s var(--ease-out); }
.credit:hover .credit-mark { transform: rotate(-10deg); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .footer-left { margin-inline: auto; max-width: 28rem; }
  .footer-right { justify-self: center; text-align: center; }
  .lockup { order: -1; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* WhatsApp button */
.wa-fab {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: #25d366; box-shadow: 0 10px 28px rgba(37, 211, 102, .38);
  transition: transform .5s var(--ease-out), box-shadow .4s ease;
}
html.js .wa-fab { animation: fab-in 1s var(--ease-out) 1.4s both; }
@keyframes fab-in { from { opacity: 0; transform: translateY(20px) scale(.7); } }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(37, 211, 102, .5); animation: ring 3.2s ease-out infinite 2.4s; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.wa-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 36px rgba(37, 211, 102, .45); }

/* ==========================================================================
   Reduced motion — everything readable, nothing moving
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js [data-reveal], html.js [data-stagger] > * { opacity: 1 !important; translate: none !important; scale: none !important; clip-path: none !important; }
  html.js [data-split] .wi { transform: none !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .hero-canvas, .dw-canvas { display: none; }
  [data-tilt] { transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
html.rm .hero-canvas, html.rm .dw-canvas { display: none; }
