/* ── D8.Digital shared styles ───────────────────────────────
   Single source of truth for all pages.
   Page-specific styles stay in their own <style> blocks.
─────────────────────────────────────────────────────────── */

/* ── Custom properties ──────────────────────────────────── */
:root {
  --green:       oklch(72% 0.185 145);
  --green-dim:   oklch(56% 0.145 145);
  --green-muted: oklch(30% 0.08 145);
  --green-g1:    oklch(72% 0.185 145 / 0.13);
  --green-g2:    oklch(72% 0.185 145 / 0.26);

  --bg:  oklch(7.5%  0.009 145);
  --bg2: oklch(10.5% 0.011 145);
  --bg3: oklch(13.5% 0.013 145);

  --ink:  oklch(95% 0.007 145);
  --ink2: oklch(62% 0.018 145);
  --ink3: oklch(40% 0.012 145);

  --rule:  oklch(17% 0.014 145);
  --rule2: oklch(24% 0.018 145);

  --eq: cubic-bezier(0.25, 1, 0.5, 1);
  --ex: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Base ───────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: clamp(0.975rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* ── Cursor ─────────────────────────────────────────────── */
.cur {
  position: fixed; width: 10px; height: 10px;
  background: var(--green); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .18s var(--eq), height .18s var(--eq);
  will-change: left, top;
}
.cur-ring {
  position: fixed; width: 38px; height: 38px;
  border: 1.5px solid var(--green-dim); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s var(--eq), height .3s var(--eq), border-color .25s;
  will-change: left, top;
}
.cur.on-link  { width: 6px;  height: 6px; }
.cur-ring.on-link { width: 56px; height: 56px; border-color: var(--green); }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 200;
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: oklch(7.5% 0.009 145 / 0.88);
  backdrop-filter: blur(24px) saturate(1.6);
  border-color: var(--rule);
}
.nav-logo {
  font-family: 'Sora', sans-serif; font-size: 1.35rem;
  font-weight: 800; letter-spacing: -.045em;
  color: var(--ink); text-decoration: none;
}
.nav-logo .dot { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 2.75rem; list-style: none; }
.nav-links a {
  color: var(--ink2); text-decoration: none;
  font-size: .875rem; font-weight: 400; transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--green); }
.nav-cta {
  background: var(--green); color: var(--bg);
  font-family: 'Archivo', sans-serif;
  font-size: .84rem; font-weight: 600; letter-spacing: .01em;
  padding: .6rem 1.5rem; border-radius: 100px;
  text-decoration: none;
  transition: transform .2s var(--eq), box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--green-g2); }

/* ── Section scaffolding ────────────────────────────────── */
.section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.5rem, 4vw, 3rem); }
.inner { max-width: 1320px; margin: 0 auto; }

/* ── Interior page hero ─────────────────────────────────── */
.page-hero {
  padding: clamp(8rem, 16vw, 12rem) clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--green-g1) 0%, transparent 65%);
  top: -80px; right: -120px;
  border-radius: 50%; pointer-events: none;
}
.hero-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; }
.page-h1 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 800; line-height: .9; letter-spacing: -.048em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.page-h1 .ln { display: block; overflow: hidden; }
.page-h1 .ln-in {
  display: block; opacity: 0; transform: translateY(108%);
  animation: line .95s var(--ex) forwards;
}
.page-h1 .ln:nth-child(1) .ln-in { animation-delay: .2s; }
.page-h1 .ln:nth-child(2) .ln-in { animation-delay: .33s; }
.page-hero-sub {
  max-width: 560px; color: var(--ink2);
  font-size: 1.1rem; line-height: 1.7;
  opacity: 0; transform: translateY(16px);
  animation: up .8s var(--ex) .52s forwards;
}

/* ── CTA block ───────────────────────────────────────────── */
.cta-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.cta-h2 { font-family: 'Archivo', sans-serif; font-size: clamp(3rem, 7.5vw, 8rem); font-weight: 800; line-height: .9; letter-spacing: -.052em; margin-bottom: 2rem; }
.cta-sub { color: var(--ink2); font-size: 1.05rem; line-height: 1.68; margin-bottom: 2.75rem; }

.g { color: var(--green); }

.lbl {
  display: inline-flex; align-items: center; gap: .625rem;
  color: var(--green); font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2.75rem;
}
.lbl::before { content: ''; display: block; width: 18px; height: 1px; background: currentColor; flex-shrink: 0; }

/* ── Scroll reveal ──────────────────────────────────────── */
.rv {
  opacity: 0; transform: translateY(28px);
  transition: opacity .85s var(--ex), transform .85s var(--ex);
}
.rv.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-fill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green); color: var(--bg);
  font-family: 'Archivo', sans-serif; font-size: .9rem; font-weight: 600;
  padding: .875rem 1.875rem; border-radius: 100px;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--eq), box-shadow .25s;
}
.btn-fill:hover { transform: translateY(-3px); box-shadow: 0 20px 52px var(--green-g2); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--ink); font-size: .9rem; font-weight: 400;
  padding: .875rem 1.5rem; border-radius: 100px;
  border: 1px solid var(--rule2); text-decoration: none; white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--green-dim); color: var(--green); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg2); border-top: 1px solid var(--rule);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}
.foot {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: end;
}
.foot-logo {
  font-family: 'Sora', sans-serif; font-size: 1.75rem;
  font-weight: 800; letter-spacing: -.045em; margin-bottom: .5rem;
}
.foot-logo .dot { color: var(--green); }
.foot-sub  { color: var(--ink3); font-size: .825rem; margin-bottom: 1.25rem; }
.foot-email a {
  color: var(--green); text-decoration: none;
  font-size: .85rem; font-weight: 600; transition: opacity .2s;
}
.foot-email a:hover { opacity: .72; }
.foot-right { text-align: right; }
.foot-links {
  display: flex; gap: 2.25rem; list-style: none;
  justify-content: flex-end; margin-bottom: 1.5rem;
}
.foot-links a { color: var(--ink3); text-decoration: none; font-size: .825rem; transition: color .2s; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { color: var(--ink3); font-size: .75rem; }

/* ── Keyframes ──────────────────────────────────────────── */
@keyframes up   { to { opacity: 1; transform: translateY(0); } }
@keyframes line { to { opacity: 1; transform: translateY(0); } }
@keyframes glow {
  from { transform: scale(1); opacity: .7; }
  to   { transform: scale(1.2) translate(16px, -16px); opacity: 1; }
}

/* ── Work card CSS art ──────────────────────────────────── */
.art-blume {
  background:
    radial-gradient(ellipse 65% 80% at 75% 25%, oklch(30% 0.11 165) 0%, transparent 60%),
    radial-gradient(ellipse 80% 55% at 20% 85%, oklch(18% 0.06 175) 0%, transparent 65%),
    oklch(11% 0.02 165);
}
.art-blume::before {
  content: ''; position: absolute;
  width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid oklch(65% 0.18 165 / 0.28);
  top: 12%; right: 8%;
}
.art-blume::after {
  content: ''; position: absolute;
  width: 130px; height: 130px; border-radius: 50%;
  border: 1px solid oklch(65% 0.18 165 / 0.18);
  top: 32%; right: 27%;
}

.art-arw {
  background:
    radial-gradient(ellipse 70% 60% at 30% 30%, oklch(22% 0.06 315) 0%, transparent 58%),
    radial-gradient(ellipse 55% 75% at 82% 82%, oklch(18% 0.04 290) 0%, transparent 62%),
    oklch(10% 0.015 310);
}
.art-arw::before {
  content: ''; position: absolute;
  width: 56px; height: 76px;
  bottom: 28%; left: 50%;
  transform: translateX(-50%) rotate(12deg);
  border: 1.5px solid oklch(72% 0.07 320 / 0.38);
  border-radius: 50% 50% 42% 42%;
}

.art-edu {
  background:
    radial-gradient(ellipse 80% 55% at 60% 40%, oklch(24% 0.09 145) 0%, transparent 58%),
    radial-gradient(ellipse 45% 80% at 10% 90%, oklch(16% 0.05 160) 0%, transparent 68%),
    oklch(9% 0.012 145);
}
.art-edu::before {
  content: ''; position: absolute;
  inset: 18% 14%;
  border: 1px solid oklch(72% 0.185 145 / 0.2);
  border-radius: 8px;
}
.art-edu::after {
  content: ''; position: absolute;
  width: 40px; height: 4px;
  background: var(--green); opacity: .5;
  top: 35%; left: 20%; border-radius: 2px;
  box-shadow: 0 10px 0 oklch(72% 0.185 145 / 0.3), 0 20px 0 oklch(72% 0.185 145 / 0.2);
}

.art-prebody {
  background:
    radial-gradient(ellipse 70% 60% at 25% 30%, oklch(28% 0.08 50) 0%, transparent 60%),
    radial-gradient(ellipse 55% 70% at 80% 80%, oklch(20% 0.05 35) 0%, transparent 65%),
    oklch(10% 0.015 40);
}
.art-prebody::before {
  content: ''; position: absolute;
  width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid oklch(70% 0.12 50 / 0.22);
  top: 18%; right: 12%;
}
.art-prebody::after {
  content: ''; position: absolute;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, oklch(65% 0.14 50 / 0.18) 0%, transparent 70%);
  top: 40%; right: 28%;
}

.art-ruth {
  background:
    radial-gradient(ellipse 65% 55% at 70% 25%, oklch(26% 0.04 80) 0%, transparent 58%),
    radial-gradient(ellipse 45% 65% at 15% 80%, oklch(18% 0.03 70) 0%, transparent 65%),
    oklch(9% 0.01 75);
}
.art-ruth::before {
  content: ''; position: absolute;
  width: 64px; height: 44px;
  top: 28%; left: 50%; transform: translateX(-50%);
  border: 1.5px solid oklch(78% 0.06 80 / 0.35);
  border-radius: 4px;
}
.art-ruth::after {
  content: ''; position: absolute;
  width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid oklch(78% 0.06 80 / 0.14);
  top: 45%; left: 50%; transform: translate(-50%, -50%);
}

.art-psp {
  background:
    radial-gradient(ellipse 80% 60% at 40% 35%, oklch(22% 0.09 280) 0%, transparent 58%),
    radial-gradient(ellipse 50% 70% at 85% 80%, oklch(16% 0.06 300) 0%, transparent 62%),
    oklch(8% 0.012 280);
}
.art-psp::before {
  content: ''; position: absolute;
  inset: 22% 18%;
  border: 1px solid oklch(68% 0.18 280 / 0.22);
  border-radius: 6px;
}
.art-psp::after {
  content: ''; position: absolute;
  width: 36px; height: 4px;
  background: oklch(68% 0.18 280); opacity: .45;
  top: 38%; left: 24%; border-radius: 2px;
  box-shadow: 0 10px 0 oklch(68% 0.18 280 / 0.3), 0 20px 0 oklch(68% 0.18 280 / 0.18);
}

.art-novelsbymj {
  background:
    radial-gradient(ellipse 65% 70% at 55% 28%, oklch(24% 0.07 215) 0%, transparent 58%),
    radial-gradient(ellipse 50% 60% at 12% 82%, oklch(16% 0.04 220) 0%, transparent 65%),
    oklch(9% 0.01 215);
}
.art-novelsbymj::before {
  content: ''; position: absolute;
  width: 60px; height: 80px;
  top: 22%; right: 18%;
  border: 1.5px solid oklch(66% 0.08 215 / 0.36);
  border-radius: 3px 3px 3px 3px;
  box-shadow: 5px 0 0 oklch(66% 0.08 215 / 0.18);
}
.art-novelsbymj::after {
  content: ''; position: absolute;
  width: 34px; height: 3px;
  background: oklch(66% 0.08 215); opacity: .38;
  top: 54%; right: 22%; border-radius: 2px;
  box-shadow: 0 10px 0 oklch(66% 0.08 215 / 0.24), 0 20px 0 oklch(66% 0.08 215 / 0.14);
}

.art-lemljams {
  background:
    radial-gradient(ellipse 70% 60% at 55% 30%, oklch(32% 0.10 20) 0%, transparent 58%),
    radial-gradient(ellipse 55% 70% at 15% 80%, oklch(22% 0.07 10) 0%, transparent 65%),
    oklch(10% 0.015 15);
}
.art-lemljams::before {
  content: ''; position: absolute;
  width: 100px; height: 100px; border-radius: 50%;
  border: 1.5px solid oklch(68% 0.14 20 / 0.32);
  top: 22%; right: 14%;
}
.art-lemljams::after {
  content: ''; position: absolute;
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle, oklch(60% 0.16 20 / 0.2) 0%, transparent 70%);
  top: 38%; right: 30%;
}

.art-carlisle {
  background:
    radial-gradient(ellipse 65% 65% at 60% 28%, oklch(24% 0.08 290) 0%, transparent 58%),
    radial-gradient(ellipse 50% 70% at 12% 82%, oklch(17% 0.05 280) 0%, transparent 65%),
    oklch(9% 0.012 285);
}
.art-carlisle::before {
  content: ''; position: absolute;
  width: 72px; height: 96px;
  top: 24%; right: 16%;
  border: 1.5px solid oklch(68% 0.10 290 / 0.34);
  border-radius: 4px 4px 40% 40%;
}
.art-carlisle::after {
  content: ''; position: absolute;
  width: 36px; height: 3px;
  background: oklch(68% 0.10 290); opacity: .4;
  top: 56%; right: 18%; border-radius: 2px;
  box-shadow: 0 10px 0 oklch(68% 0.10 290 / 0.25), 0 20px 0 oklch(68% 0.10 290 / 0.15);
}

.art-gusi {
  background:
    radial-gradient(ellipse 75% 65% at 65% 30%, oklch(25% 0.09 200) 0%, transparent 58%),
    radial-gradient(ellipse 50% 70% at 15% 80%, oklch(18% 0.06 210) 0%, transparent 65%),
    oklch(9% 0.012 200);
}
.art-gusi::before {
  content: ''; position: absolute;
  inset: 22% 16%;
  border: 1px solid oklch(65% 0.14 200 / 0.22);
  border-radius: 50%;
}
.art-gusi::after {
  content: ''; position: absolute;
  width: 58px; height: 2px;
  background: oklch(68% 0.16 200); opacity: .45;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 -14px 0 oklch(68% 0.16 200 / 0.28), 0 14px 0 oklch(68% 0.16 200 / 0.28);
}

.art-crownjewels {
  background:
    radial-gradient(ellipse 70% 60% at 50% 28%, oklch(28% 0.08 45) 0%, transparent 58%),
    radial-gradient(ellipse 55% 65% at 18% 80%, oklch(20% 0.05 30) 0%, transparent 62%),
    oklch(9% 0.012 35);
}
.art-crownjewels::before {
  content: ''; position: absolute;
  width: 52px; height: 38px;
  top: 29%; left: 50%; transform: translateX(-50%);
  border: 1.5px solid oklch(72% 0.12 75 / 0.4);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.art-crownjewels::after {
  content: ''; position: absolute;
  width: 160px; height: 160px; border-radius: 50%;
  border: 1px solid oklch(72% 0.12 75 / 0.14);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.art-fdy {
  background:
    radial-gradient(ellipse 65% 70% at 30% 25%, oklch(22% 0.05 240) 0%, transparent 58%),
    radial-gradient(ellipse 55% 55% at 80% 80%, oklch(16% 0.03 230) 0%, transparent 62%),
    oklch(9% 0.01 230);
}
.art-fdy::before {
  content: ''; position: absolute;
  width: 80px; height: 80px;
  top: 26%; right: 18%;
  border: 1px solid oklch(62% 0.08 240 / 0.28);
  border-radius: 4px;
}
.art-fdy::after {
  content: ''; position: absolute;
  width: 42px; height: 3px;
  background: oklch(62% 0.08 240); opacity: .38;
  top: 54%; right: 22%; border-radius: 2px;
  box-shadow: 0 10px 0 oklch(62% 0.08 240 / 0.22), 0 20px 0 oklch(62% 0.08 240 / 0.14);
}

.art-default { background: oklch(12% 0.01 145); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  body { cursor: auto; }
  .cur, .cur-ring { display: none; }
  .nav-links { display: none; }
  .foot { grid-template-columns: 1fr; }
  .foot-right { text-align: left; }
  .foot-links { justify-content: flex-start; }
  /* Always show service detail text on touch devices — hover is not available */
  .svc-detail { grid-template-rows: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
  .page-h1 .ln-in,
  .page-hero-sub { opacity: 1 !important; transform: none !important; }
}
