/* Danzlian — torchlit dungeon stone, purple D20, teal ring, parchment */
:root {
  --stone: #121016;
  --stone-2: #1a1720;
  --stone-3: #241f2c;
  --iron: rgba(214, 200, 235, 0.13);
  --iron-strong: rgba(214, 200, 235, 0.24);
  --text: #ece6f3;
  --muted: #aaa1b8;
  --violet: #a77cf2;
  --violet-deep: #6a35cc;
  --violet-dark: #3d1890;
  --teal: #2fe0bc;
  --torch: #f2a541;
  --parchment: #efe3c6;
  --parchment-2: #e0cda2;
  --ink: #2b2118;
  --ink-muted: #6a5640;
  --radius: 12px;
  --wrap: 1180px;
  --display: "Cinzel", Georgia, serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background-color: var(--stone);
  background-image:
    linear-gradient(rgba(14, 12, 18, .82), rgba(14, 12, 18, .82)),
    url("../img/brand/stone.jpg");
  background-size: auto, 420px 420px;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .02em; }
h2 { font: 400 clamp(2.2rem, 4.6vw, 3.3rem)/1.15 var(--script); letter-spacing: 0; text-shadow: 0 3px 18px rgba(0, 0, 0, .55); }
.parchment h2 { text-shadow: none; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); flex: none; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* .torchlit sections: just a soft purple pool now; the torch glows are placed with data-torch */
.torchlit { background: radial-gradient(ellipse 50% 25% at 50% 72%, rgba(106, 53, 204, .14), transparent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 8px;
  font: 600 .95rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(180deg, #8452e6, var(--violet-deep));
  color: #fff; border-color: #b48af7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 20px -8px rgba(106, 53, 204, .9);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 3px rgba(47, 224, 188, .35), 0 8px 26px -8px rgba(106, 53, 204, 1); }
.btn-ghost { color: var(--text); border-color: var(--iron-strong); background: rgba(18, 16, 22, .55); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-ink { background: var(--ink); color: var(--parchment); }
.btn-ink:hover { background: #45362a; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 12, 18, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--iron);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { width: auto; height: 38px; object-fit: contain; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.brand:hover .brand-logo { transform: rotate(-12deg) scale(1.08); }
.brand-text { height: 31px; width: auto; display: block; }
.brand-name { font: 400 1.75rem/1 var(--script); color: var(--text); text-shadow: 0 2px 8px rgba(0, 0, 0, .6); padding-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); }
.header-right { display: flex; align-items: center; gap: 8px; }
.social-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none;
  font: 600 .85rem/1 var(--body); color: var(--text); border: 1px solid var(--iron-strong); background: rgba(255, 255, 255, .03);
  transition: border-color .2s, background-color .2s, transform .15s;
}
.social-btn svg { width: 19px; height: 19px; flex: none; }
.social-btn:hover { border-color: var(--violet); background: rgba(106, 53, 204, .2); transform: translateY(-1px); }
.social-btn.s-ig svg { color: #f77ab5; }
.social-btn.s-yt svg { color: #ff4d4d; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--stone-2); border-bottom: 1px solid var(--iron); padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* Hero */
.hero { position: relative; min-height: min(72vh, 680px); display: grid; align-items: end; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 15% 30%, rgba(242, 165, 65, .14), transparent 70%),
    linear-gradient(180deg, rgba(14, 12, 18, .35) 0%, rgba(14, 12, 18, .1) 35%, rgba(14, 12, 18, .7) 75%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; padding: 0 0 clamp(48px, 9vh, 96px); }
.hero-title { font: 400 clamp(3rem, 8vw, 5.6rem)/1 var(--script); margin: 0 0 12px; text-shadow: 0 4px 24px rgba(0, 0, 0, .7); }
.hero h1 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; max-width: 30ch; color: var(--text); text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Sections */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head .lede { margin: 0; }

/* Photo grid: rows left to right, so newest-first reads naturally */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.grid .tile {
  display: block; width: 100%; aspect-ratio: 4 / 5;
  border: 1px solid var(--iron-strong); padding: 0; background: var(--stone-3); border-radius: 6px; overflow: hidden; cursor: zoom-in;
  position: relative; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .9);
  transition: border-color .25s, box-shadow .25s;
}
.grid .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.grid .tile:hover { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 12px 30px -10px rgba(106, 53, 204, .7); }
.grid .tile:hover img { transform: scale(1.04); filter: brightness(1.08); }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.more { text-align: center; margin-top: 40px; }

/* Parchment (tavern) panels */
.parchment {
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(120, 84, 40, .2) 100%),
    linear-gradient(180deg, var(--parchment), var(--parchment-2));
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(90, 60, 25, .25), inset 0 0 60px rgba(120, 84, 40, .18);
}
.parchment .eyebrow { color: var(--violet-deep); }
.parchment .lede, .parchment p { color: var(--ink-muted); }
.parchment h2, .parchment h3 { color: var(--ink); }

/* The Table */
.table-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); align-items: center; }
.table-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.table-shots button { border: 0; padding: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: #00000022; aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px rgba(90, 60, 25, .35); }
.table-shots button:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.table-shots img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.facts li { padding-left: 26px; position: relative; color: var(--ink-muted); }
.facts li::before { content: "◆"; position: absolute; left: 4px; color: var(--violet-deep); font-size: .8em; top: .15em; }
.note { font-size: .85rem; color: var(--ink-muted); margin-top: 14px; }
@media (max-width: 860px) { .table-panel { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.portrait { position: relative; }
.portrait img {
  border-radius: 50% 50% 8px 8px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  border: 3px solid #3a3342; box-shadow: 0 0 0 1px var(--iron-strong), 0 30px 60px -20px rgba(0, 0, 0, .9);
}
.portrait::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50% 50% 14px 14px; z-index: -1;
  background: radial-gradient(60% 50% at 50% 30%, rgba(242, 165, 65, .22), transparent 70%);
}
.about-body p { color: var(--muted); font-size: 1.05rem; }
.about-body p.big { color: var(--text); font-size: 1.25rem; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 280px; } }

/* YouTube */
.yt {
  display: grid; grid-template-columns: 1fr 1.35fr; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--iron-strong); background: var(--stone-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.yt-art { position: relative; order: 2; min-height: 320px; }
.yt-art img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.1); }
.yt-logo { position: absolute; left: 50%; top: 50%; width: 46%; max-width: 260px; translate: -50% -50%; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .8)); }
.yt-body {
  display: flex; flex-direction: column; justify-content: center; align-items: start;
  padding: clamp(24px, 4vw, 48px);
}
.yt-body p { color: var(--muted); max-width: 40ch; }
@media (max-width: 760px) {
  .yt { grid-template-columns: 1fr; }
  .yt-art { order: 0; min-height: 0; aspect-ratio: 16 / 9; }
}

/* Follow strip */
.follow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.follow a {
  display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--radius);
  background: var(--stone-2); border: 1px solid var(--iron-strong); color: var(--text); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.follow a:hover { border-color: var(--violet); transform: translateY(-2px); }
.follow img { width: 52px; height: 52px; object-fit: contain; }
.follow strong { display: block; font-family: var(--display); font-size: 1.2rem; }
.follow span { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .follow { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--iron); background: rgba(8, 7, 11, .7); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(8, 7, 11, .95); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); border-radius: 6px; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .88rem; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 10px; translate: none; } .lb-caption { bottom: 26px; } }

/* Legal page */
.prose { max-width: 72ch; }
.prose h2 { font: 600 1.5rem/1.2 var(--display); margin-top: 2em; text-shadow: none; }
.prose p, .prose li { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ───────── Web design half ───────── */
/* Crossover band between the two halves */
.crossover {
  position: relative; text-align: center; padding: clamp(80px, 12vw, 140px) 0;
  background:
    radial-gradient(50% 60% at 50% 40%, rgba(106, 53, 204, .28), transparent 70%),
    linear-gradient(180deg, transparent, rgba(8, 7, 11, .55) 50%, transparent);
  border-block: 1px solid var(--iron);
}
.crossover .eyebrow { justify-content: center; }
.crossover h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.crossover .lede { margin: 0 auto 34px; }
.crossover-die { width: 120px; margin: 0 auto 18px; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 12px 30px rgba(106, 53, 204, .6)); }
.skills { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.skills li {
  padding: 10px 18px; border-radius: 999px; background: rgba(26, 23, 32, .85);
  border: 1px solid var(--iron-strong); color: var(--text); font-size: .93rem;
}
.skills li::before { content: "◆"; color: var(--teal); margin-right: 8px; font-size: .7em; vertical-align: 2px; }

/* Portfolio */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--stone-2); border: 1px solid var(--iron-strong); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s;
}
.work-card:hover { transform: translateY(-6px); border-color: var(--violet); box-shadow: 0 24px 50px -20px rgba(106, 53, 204, .7); }
.work-card.feature { grid-column: 1 / -1; flex-direction: row; }
.work-card.feature .work-shot { flex: 1.5; border-bottom: 0; border-right: 1px solid var(--iron); }
.work-card.feature .work-shot img { aspect-ratio: auto; min-height: 320px; }
.work-card.feature .work-info { flex: 1; align-self: center; padding: clamp(24px, 4vw, 48px); }
.work-card.feature h3 { font-size: 2.2rem; }
.work-shot { display: flex; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--iron); }
.work-shot img { flex: 1; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.work-card:hover .work-shot img { transform: scale(1.05); }
.work-info { padding: 20px 22px 24px; }
.work-tag { font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.work-info h3 { font: 400 1.6rem/1.15 var(--script); margin: 10px 0 6px; }
.work-info p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card.feature { flex-direction: column; }
  .work-card.feature .work-shot { border-right: 0; border-bottom: 1px solid var(--iron); }
  .work-card.feature .work-shot img { min-height: 0; aspect-ratio: 16 / 10; }
}

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px;
  background: linear-gradient(180deg, rgba(36, 31, 44, .95), rgba(22, 19, 27, .95));
  border: 1px solid var(--iron-strong); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.tier.popular { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 30px 70px -25px rgba(106, 53, 204, .8); }
.tier-badge {
  position: absolute; top: -13px; left: 50%; translate: -50% 0; white-space: nowrap;
  background: var(--teal); color: #06231d; font: 700 .75rem/1 var(--body); padding: 7px 14px; border-radius: 999px;
}
.tier-level { font: 600 .74rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.tier h3 { font: 400 2.2rem/1.1 var(--script); margin: 10px 0 2px; }
.tier-what { color: var(--muted); margin: 0 0 16px; }
.tier-price { font: 700 2.6rem/1 var(--display); margin: 0 0 22px; color: var(--text); }
.tier-price small { display: block; font: 500 .8rem/1 var(--body); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.tier ul { list-style: none; padding: 20px 0 0; margin: 0 0 26px; border-top: 1px solid var(--iron); display: grid; gap: 10px; flex: 1; align-content: start; }
.tier li { padding-left: 26px; position: relative; color: var(--muted); font-size: .95rem; }
.tier li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal); font-weight: 700; }
.tier .btn { justify-content: center; }
.care {
  margin-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 26px 30px; border-radius: var(--radius); border: 1px dashed var(--iron-strong); background: rgba(18, 16, 22, .7);
}
.care h3 { font: 600 1.25rem/1.3 var(--display); margin: 8px 0 6px; }
.care-price { color: var(--teal); font: 600 1rem var(--body); margin-left: 8px; }
.care p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; gap: 30px; } }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before { content: ""; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--violet-deep), var(--teal)); opacity: .5; }
.steps li { position: relative; text-align: center; padding: 0 8px; }
.step-die {
  width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; position: relative;
  font: 700 1.4rem/1 var(--display); color: #fff;
  background: linear-gradient(160deg, #b48af7, var(--violet-deep) 60%, var(--violet-dark));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.steps h3 { font: 600 1.25rem/1.2 var(--display); margin: 0 0 6px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .steps::before { display: none; }
}

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.facts-dark { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.facts-dark li { padding-left: 26px; position: relative; color: var(--muted); }
.facts-dark li::before { content: "◆"; position: absolute; left: 4px; color: var(--teal); font-size: .75em; top: .2em; }
.contact-form {
  display: grid; gap: 16px; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius);
  background: var(--stone-2); border: 1px solid var(--iron-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--text); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px; font: 400 1rem/1.4 var(--body); color: var(--text);
  background: rgba(10, 9, 13, .7); border: 1px solid var(--iron-strong); transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47, 224, 188, .2); }
.contact-form [aria-invalid="true"] { border-color: #ff7a7a; }
.contact-form .btn { justify-self: start; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; color: var(--teal); font-size: .95rem; }
.form-status.error { color: #ff9a9a; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }


/* Browser windows drawn in Windows 11 style */
.win { border-radius: 8px; overflow: hidden; background: #0b0a0f; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
.win-bar {
  display: flex; align-items: center; justify-content: space-between; height: 26px; padding-left: 10px;
  background: #1f1b27; color: #c9c2d6; font: 500 .66rem/1 var(--body); letter-spacing: .02em;
}
.win-bar span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-ctrls { display: flex; height: 100%; flex: none; }
.win-ctrls i { width: 34px; height: 100%; display: grid; place-items: center; }
.win-ctrls i::before { content: ""; display: block; }
.win-ctrls i:nth-child(1)::before { width: 9px; height: 1px; background: #c9c2d6; }
.win-ctrls i:nth-child(2)::before { width: 8px; height: 8px; border: 1px solid #c9c2d6; border-radius: 1px; }
.win-ctrls i:nth-child(3)::before { width: 11px; height: 11px; background:
  linear-gradient(45deg, transparent calc(50% - .6px), #c9c2d6 calc(50% - .6px), #c9c2d6 calc(50% + .6px), transparent calc(50% + .6px)),
  linear-gradient(-45deg, transparent calc(50% - .6px), #c9c2d6 calc(50% - .6px), #c9c2d6 calc(50% + .6px), transparent calc(50% + .6px)); }
.win img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* Simple page header for inner pages */
.page-hero {
  position: relative; padding: clamp(70px, 11vw, 130px) 0 clamp(40px, 6vw, 70px); text-align: center; overflow: hidden;
  background: radial-gradient(55% 70% at 50% 0%, rgba(106, 53, 204, .3), transparent 70%);
  border-bottom: 1px solid var(--iron);
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font: 400 clamp(2.8rem, 7vw, 5rem)/1.05 var(--script); margin: 0 0 16px; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.page-hero .lede { margin: 0 auto; }
.page-hero > .wrap > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero > .wrap > :nth-child(2) { animation-delay: .12s; }
.page-hero > .wrap > :nth-child(3) { animation-delay: .24s; }
.page-hero > .wrap > :nth-child(4) { animation-delay: .36s; }
.page-hero .hero-actions { justify-content: center; }

/* Home: teasers */
.web-teaser .work-grid { margin-top: 10px; }
.price-strip {
  margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 28px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(106, 53, 204, .3), rgba(47, 224, 188, .1));
  border: 1px solid var(--iron-strong);
}
.price-strip p { margin: 0; font-size: 1.1rem; }
.price-strip strong { font: 700 1.5rem var(--display); color: #fff; }
.about-teaser { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.about-teaser .portrait { max-width: 220px; }
@media (max-width: 680px) { .about-teaser { grid-template-columns: 1fr; } .about-teaser .portrait { max-width: 180px; } }
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.cta-band .lede { margin: 0 auto 26px; }
.cta-band .hero-actions { justify-content: center; }

/* About page: the two crafts */
.crafts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.craft {
  position: relative; overflow: hidden; padding: clamp(26px, 4vw, 40px); border-radius: var(--radius);
  background: var(--stone-2); border: 1px solid var(--iron-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.craft h3 { font: 400 2.2rem/1.1 var(--script); margin: 6px 0 12px; }
.craft p { color: var(--muted); }
.craft ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.craft li { padding-left: 24px; position: relative; color: var(--muted); }
.craft li::before { content: "◆"; position: absolute; left: 2px; color: var(--teal); font-size: .75em; top: .2em; }
.craft-web { background: radial-gradient(70% 60% at 100% 0%, rgba(106, 53, 204, .3), transparent 70%), var(--stone-2); }
.craft-dnd { background: radial-gradient(70% 60% at 100% 0%, rgba(242, 165, 65, .16), transparent 70%), var(--stone-2); }
@media (max-width: 760px) { .crafts { grid-template-columns: 1fr; } }


/* ───────── Home page ───────── */
/* Hero sits higher, with two big choices */
.hero.hero-home { align-items: start; }
.hero-home .hero-content { padding: clamp(56px, 12vh, 130px) 0 120px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 8px 16px; border-radius: 999px; font: 600 .85rem/1 var(--body);
  background: rgba(14, 12, 18, .6); border: 1px solid rgba(47, 224, 188, .4); backdrop-filter: blur(8px);
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 224, 188, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(47, 224, 188, 0); } }
.hero-sub { color: #d5cde2; font-size: 1.12rem; max-width: 48ch; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); animation: rise .9s cubic-bezier(.2, .7, .2, 1) .5s both; }
.hero-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 16px; margin-top: 30px; animation: rise .9s cubic-bezier(.2, .7, .2, 1) .65s both; }
.choice {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 14px;
  text-decoration: none; color: var(--text); overflow: hidden;
  border: 1px solid var(--iron-strong); background: rgba(14, 12, 18, .62); backdrop-filter: blur(10px);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s;
}
.choice::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: linear-gradient(120deg, rgba(106, 53, 204, .55), rgba(47, 224, 188, .25));
}
.choice-web { background: linear-gradient(120deg, rgba(106, 53, 204, .75), rgba(61, 24, 144, .65)); border-color: #b48af7; }
.choice-dnd::before { background: linear-gradient(120deg, rgba(242, 165, 65, .35), rgba(106, 53, 204, .25)); }
.choice:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(106, 53, 204, .9); }
.choice:hover::before { opacity: 1; }
.choice svg, .choice img { width: 42px; height: 42px; flex: none; }
.choice span { display: grid; gap: 3px; }
.choice b { font: 600 1.35rem/1.1 var(--body); }
.choice small { color: #cfc6dc; font-size: .88rem; }
.choice .arrow { margin-left: auto; font-style: normal; font-size: 1.4rem; transition: transform .3s; }
.choice:hover .arrow { transform: translateX(5px); }
.choice-dnd:hover img { animation: spin-once .8s cubic-bezier(.2, .7, .2, 1); }
@keyframes spin-once { to { rotate: 360deg; } }
.scroll-cue { position: absolute; left: 50%; bottom: 64px; z-index: 2; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(236, 230, 243, .6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 700px) {
  .hero-choices { grid-template-columns: 1fr; }
  .hero-home .hero-content { padding-top: 40px; }
  .scroll-cue { display: none; }
}

/* Tilted ribbon of skills */
.ribbon { position: relative; z-index: 3; margin: -34px -20px 0; rotate: -2deg; overflow: hidden;
  background: linear-gradient(90deg, var(--violet-deep), #8452e6 50%, #1fb79a); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); }
.ribbon-track { display: flex; width: max-content; padding: 16px 0; animation: ribbon 32s linear infinite; }
.ribbon span { font: 600 1.05rem/1 var(--body); color: #fff; white-space: nowrap; padding: 0 22px; letter-spacing: .02em; }
.ribbon span::after { content: "◆"; padding-left: 44px; color: rgba(255, 255, 255, .55); font-size: .7em; vertical-align: 2px; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  position: relative; padding: 28px 24px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(36, 31, 44, .9), rgba(22, 19, 27, .9)); border: 1px solid var(--iron-strong);
  transform-style: preserve-3d; transition: transform .25s ease-out, border-color .3s, box-shadow .3s;
}
.service::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(167, 124, 242, .25), transparent 60%);
}
.service:hover { border-color: var(--violet); box-shadow: 0 24px 50px -24px rgba(106, 53, 204, .8); }
.service:hover::after { opacity: 1; }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(150deg, rgba(167, 124, 242, .3), rgba(47, 224, 188, .15)); color: var(--teal);
  border: 1px solid rgba(47, 224, 188, .3);
}
.service-icon svg { width: 28px; height: 28px; }
.service h3 { font: 600 1.2rem/1.25 var(--body); margin: 0 0 8px; letter-spacing: 0; }
.service p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 980px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Work showcase: one big window that flips between sites */
.showcase { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: center; }
.showcase-frame { border-radius: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(167, 124, 242, .25); }
.showcase-screens { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0a0f; }
.showcase-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .7s, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.showcase-screens img.on { opacity: 1; transform: none; }
.showcase-list { display: grid; gap: 10px; }
.show-item {
  position: relative; overflow: hidden; display: grid; gap: 4px; text-align: left; cursor: pointer;
  padding: 18px 20px; border-radius: 12px; border: 1px solid var(--iron); background: rgba(26, 23, 32, .7); color: var(--text);
  font: inherit; transition: border-color .3s, background-color .3s;
}
.show-item b { font: 400 1.45rem/1.2 var(--script); }
.show-item small { color: var(--muted); font-size: .9rem; }
.show-item.on { border-color: var(--violet); background: rgba(61, 24, 144, .35); }
.show-item .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--violet), var(--teal)); transform: scaleX(0); transform-origin: left; }
.show-item.on .bar { animation: progress var(--dur, 6s) linear forwards; }
.showcase.paused .show-item.on .bar { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.showcase-list .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }

/* Stats band */
.stats-band { border-block: 1px solid var(--iron); background: linear-gradient(90deg, rgba(61, 24, 144, .35), rgba(18, 16, 22, .6) 50%, rgba(31, 183, 154, .15)); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 46px 0; text-align: center; }
.stats b { display: block; font: 700 clamp(2rem, 4vw, 2.8rem)/1.1 var(--display); color: #fff; }
.stats span { color: var(--muted); font-size: .92rem; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; row-gap: 26px; } }

/* Process on parchment */
.process-panel { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(26px, 4vw, 56px); padding: clamp(28px, 5vw, 56px); align-items: center; }
.process-intro p { color: var(--ink-muted); font-size: 1.05rem; }
.quest { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.quest::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; border-left: 2px dashed rgba(106, 53, 204, .45); }
.quest li { display: flex; gap: 18px; align-items: center; position: relative; padding: 12px 16px 12px 0; border-radius: 12px; transition: background-color .3s, transform .3s; }
.quest li:hover { background: rgba(255, 255, 255, .35); transform: translateX(6px); }
.quest .step-die { margin: 0; flex: none; }
.quest h3 { font: 600 1.2rem/1.2 var(--display); margin: 0 0 2px; color: var(--ink); }
.quest p { margin: 0; color: var(--ink-muted); }
@media (max-width: 860px) { .process-panel { grid-template-columns: 1fr; } }

/* Mini pricing */
.mini-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini-tier {
  position: relative; display: grid; gap: 6px; padding: 28px 26px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, rgba(36, 31, 44, .95), rgba(22, 19, 27, .95)); border: 1px solid var(--iron-strong);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s;
}
.mini-tier:hover { transform: translateY(-6px); border-color: var(--violet); box-shadow: 0 24px 50px -24px rgba(106, 53, 204, .8); }
.mini-tier.popular { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 30px 60px -30px rgba(106, 53, 204, .9); }
.mini-tier b { font: 400 2rem/1.1 var(--script); }
.mini-price { font: 700 2.4rem/1.1 var(--display); }
.mini-price.quote { font-size: 1.7rem; padding: 6px 0; }
.mini-tier small { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .mini-tiers { grid-template-columns: 1fr; gap: 26px; } }

/* Dungeon band: full-width photo with a card over it */
.dungeon-band { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 150px) 0; }
.dungeon-band-bg { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; object-position: 50% 60%; filter: brightness(.55) saturate(1.1); transform: translateY(var(--band-shift, 0)); will-change: transform; }
.dungeon-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(14, 12, 18, .85), rgba(14, 12, 18, .1) 65%), linear-gradient(180deg, var(--stone), transparent 18%, transparent 82%, var(--stone)); pointer-events: none; }
.dungeon-band .wrap { position: relative; z-index: 1; }
.dungeon-card { max-width: 520px; margin-left: auto; padding: clamp(26px, 4vw, 40px); border-radius: var(--radius); background: rgba(14, 12, 18, .7); border: 1px solid rgba(242, 165, 65, .3); backdrop-filter: blur(10px); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.dungeon-card p { color: #d5cde2; }
.dungeon-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 6px; }
.dungeon-thumbs img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 6px; border: 1px solid var(--iron-strong); cursor: zoom-in; transition: transform .3s, border-color .3s; }
.dungeon-thumbs img:hover { transform: scale(1.05); border-color: var(--torch); }

/* ───────── Motion ───────── */

/* Scroll progress bar */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--violet-deep), var(--violet), var(--teal));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  box-shadow: 0 0 10px rgba(47, 224, 188, .6);
}
.site-header { transition: background-color .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(10, 9, 13, .95); box-shadow: 0 8px 30px -10px rgba(0, 0, 0, .9); }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-60px) rotate(-200deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(3deg); } }
.hero .eyebrow { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
.hero-title { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .25s both; }
.hero h1 { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .4s both; }
.hero-actions { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .55s both; }
.hero-bg { will-change: transform; transform: translateY(var(--hero-shift, 0)) scale(1.08); }
.hero-content { opacity: var(--hero-fade, 1); }

/* Embers drifting up through the hero */
.embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.embers i {
  position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #ffd58a 0%, #f2a541 45%, transparent 70%);
  box-shadow: 0 0 8px 2px rgba(242, 165, 65, .55);
  opacity: 0; animation: ember var(--d) linear var(--delay) infinite;
}
.embers i.violet { background: radial-gradient(circle, #e2cfff 0%, #a77cf2 45%, transparent 70%); box-shadow: 0 0 8px 2px rgba(167, 124, 242, .6); }
@keyframes ember {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: .9; }
  60% { opacity: .7; }
  100% { opacity: 0; transform: translate(var(--drift), -85vh); }
}

/* Torchlight: torch glow spilling in from the screen edge in the empty stone between sections, at different heights and
   alternating sides (set with data-torch="left|right" on a section; data-torch-end adds one
   below the last section). Each has a hot core inside a wide orange glow that breathes and
   wavers on its own uneven timing, like real flames. */
/* z-index -1 with no stacking context on the section: the glow sits on the stone background,
   behind every section and card on the page (including the section above it) */
[data-torch], [data-torch-end] { position: relative; }
[data-torch]::before, [data-torch-end]::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(520px, 60%); height: min(900px, 130vw);
  mix-blend-mode: screen; will-change: opacity, transform;
  --tx: calc(100% + min(110px, 14vw));  /* the fire sits well past the screen edge; only the outer glow shows */
  background:
    radial-gradient(circle min(280px, 40vw) at var(--tx) 50%, rgba(255, 196, 110, .5), rgba(255, 140, 45, .24) 50%, transparent 100%),
    radial-gradient(circle min(440px, 62vw) at var(--tx) 50%, rgba(240, 110, 30, .26), rgba(200, 70, 20, .1) 55%, transparent 100%);
  animation: fire-a 3.7s ease-in-out infinite alternate;
}
[data-torch]::before { top: var(--torch-shift, 0px); transform: translateY(-50%); }
/* the right side of the photography heading starts lower (the text sits beside the heading), so that glow sits a bit lower */
#highlights { --torch-shift: clamp(24px, 3.5vw, 44px); }
/* last one: centered in the space under the last card (half the section padding up from the bottom) */
[data-torch-end]::after { bottom: calc(clamp(64px, 10vw, 120px) / 2); transform: translateY(50%);
  -webkit-mask-image: linear-gradient(#000 44%, transparent 56%); mask-image: linear-gradient(#000 44%, transparent 56%); }
/* keep the glows from making the page longer than its content */
main { overflow: clip; }
[data-torch="right"]::before, [data-torch-end="right"]::after { right: 0; transform-origin: 100% 50%; }
[data-torch="left"]::before, [data-torch-end="left"]::after { left: 0; --tx: calc(0% - min(110px, 14vw)); transform-origin: 0% 50%; }
[data-torch]:nth-of-type(odd)::before { animation-name: fire-b; animation-duration: 4.3s; }
[data-torch-end]::after { animation-name: fire-b; animation-duration: 3.2s; }
@keyframes fire-a {
  0%   { opacity: .72; translate: 0 0;      scale: 1 1; }
  11%  { opacity: .9;  translate: 0 -.5%;  scale: 1.04 1.07; }
  19%  { opacity: .78; translate: 0 .4%; scale: .99 1.02; }
  32%  { opacity: 1;   translate: 0 -.6%; scale: 1.06 1.1; }
  41%  { opacity: .84; translate: 0 .3%;   scale: 1.02 1.03; }
  55%  { opacity: .7;  translate: 0 -.3%; scale: .98 1; }
  67%  { opacity: .95; translate: 0 .5%; scale: 1.05 1.08; }
  78%  { opacity: .8;  translate: 0 -.4%; scale: 1.01 1.04; }
  89%  { opacity: .92; translate: 0 .2%; scale: 1.04 1.06; }
  100% { opacity: .76; translate: 0 0;      scale: 1 1.01; }
}
@keyframes fire-b {
  0%   { opacity: .8;  translate: 0 0;   scale: 1.02 1.03; }
  14%  { opacity: .68; translate: 0 -.5%;  scale: .98 1; }
  27%  { opacity: .94; translate: 0 .4%; scale: 1.05 1.09; }
  38%  { opacity: .82; translate: 0 -.6%; scale: 1.01 1.03; }
  52%  { opacity: 1;   translate: 0 .3%; scale: 1.06 1.1; }
  63%  { opacity: .74; translate: 0 -.3%;    scale: .99 1.01; }
  76%  { opacity: .9;  translate: 0 .5%; scale: 1.04 1.06; }
  88%  { opacity: .78; translate: 0 -.4%; scale: 1 1.02; }
  100% { opacity: .88; translate: 0 .2%; scale: 1.03 1.05; }
}

/* Scroll reveals (added by site.js; content stays visible without JS) */
.js [data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal="left"] { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.js [data-reveal="zoom"] { transform: scale(.88); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Parchment unrolls top to bottom */
.js [data-reveal="wrap"] { opacity: 1; transform: none; }
.js [data-reveal="wrap"] > .parchment { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.3s cubic-bezier(.6, 0, .2, 1); }
.js [data-reveal="wrap"].in > .parchment { clip-path: inset(0 0 0 0 round var(--radius)); }

/* Photos flip up like cards being dealt */
.js .grid .tile[data-reveal] { transform: perspective(800px) rotateX(18deg) translateY(50px); }
.js .grid .tile[data-reveal].in { transform: none; }
.js .grid .tile[data-reveal].in:hover { transform: translateY(-4px); }
.grid .tile { transition: border-color .25s, box-shadow .25s, transform .35s cubic-bezier(.2, .7, .2, 1), opacity .9s; }

/* Heading underline that draws in */
.section-head h2::after, .yt-body h2::after, .about-body h2::after {
  content: ""; display: block; height: 2px; width: 90px; margin-top: 12px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .4s;
}
.in h2::after, h2.in::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero-title, .hero-logo, .hero h1, .hero-actions, .embers i, [data-torch]::before, [data-torch-end]::after, .page-hero > .wrap > *, .status-pill, .status-pill i, .hero-sub, .hero-choices, .ribbon-track, .scroll-cue span, .show-item .bar { animation: none !important; }
  .dungeon-band-bg { transform: none; }
  .hero-bg { transform: none; }
  .js [data-reveal], .js [data-reveal="wrap"] > .parchment, .js .grid .tile[data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .section-head h2::after, .yt-body h2::after, .about-body h2::after { transform: scaleX(1); }
}
.legal-title { font: 400 clamp(2.4rem, 5vw, 3.4rem)/1.1 var(--script); margin: 0 0 8px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--iron); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 600 1.1rem/1.4 var(--body); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  font-size: 1.5rem; color: var(--teal); transition: rotate .3s cubic-bezier(.2, .7, .2, 1);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); margin: 0 0 20px; max-width: 70ch; animation: rise .4s ease both; }

/* Home hero: the dungeon, with the D20 and name */
.hero-home { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); }
.hero-mark { display: flex; align-items: center; gap: clamp(10px, 2vw, 20px); margin-bottom: 14px; }
.hero-logo { width: clamp(90px, 13vw, 150px); flex: none; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .8)); animation: drop-in 1.1s cubic-bezier(.2, .9, .25, 1.15) both, bob 6s ease-in-out 1.2s infinite; }
.hero-mark .hero-title { margin: 0; font-size: clamp(3.4rem, 10vw, 7rem); }
.hero-home h1 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); max-width: 26ch; }

/* Smaller photo grid */
.grid.compact { grid-template-columns: repeat(6, 1fr); gap: 10px; }
.grid.compact .tile { aspect-ratio: 1; border-radius: 6px; }
@media (max-width: 900px) { .grid.compact { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .grid.compact { grid-template-columns: repeat(3, 1fr); gap: 6px; } }

/* Tier priced by quote */
.tier-price.tier-quote { font-size: 2.1rem; }
@media (max-width: 760px) { .dungeon-card { margin-left: 0; } .dungeon-band::after { background: linear-gradient(180deg, var(--stone), rgba(14, 12, 18, .5) 30%, rgba(14, 12, 18, .5) 70%, var(--stone)); } }

/* ───────── Round 6 ───────── */
/* Hero: stacked choices, no arrows */
.hero-choices { grid-template-columns: minmax(0, 400px); gap: 12px; }
.choice { padding: 22px 24px; }
.choice b { font-size: 1.45rem; }

/* How it works: dark glass instead of parchment */
.process-panel {
  border-radius: var(--radius); border: 1px solid var(--iron-strong);
  background: radial-gradient(80% 120% at 0% 0%, rgba(106, 53, 204, .28), transparent 60%), linear-gradient(180deg, rgba(30, 26, 38, .95), rgba(18, 16, 22, .95));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.process-intro p { color: var(--muted); }
.quest::before { border-left-color: rgba(167, 124, 242, .45); }
.quest li:hover { background: rgba(167, 124, 242, .1); }
.quest h3 { color: var(--text); font: 600 1.15rem/1.25 var(--body); }
.quest p { color: var(--muted); }
.step-num {
  flex: none; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.3rem/1 var(--body); color: #fff;
  background: linear-gradient(150deg, #8452e6, var(--violet-deep)); box-shadow: 0 0 0 6px rgba(106, 53, 204, .18);
}

/* Pricing extras */
.fine-print { text-align: center; color: var(--muted); margin: 26px auto 0; max-width: 70ch; }
.fine-print b { color: var(--text); }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.extra { padding: 26px 28px; border-radius: var(--radius); border: 1px dashed var(--iron-strong); background: rgba(18, 16, 22, .7); }
.extra h3 { font: 600 1.25rem/1.3 var(--body); margin: 8px 0 6px; letter-spacing: 0; }
.extra p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .extras { grid-template-columns: 1fr; } }

/* Compact call to action */
.cta-strip { padding: 34px 0; border-top: 1px solid var(--iron); background: linear-gradient(90deg, rgba(61, 24, 144, .45), rgba(18, 16, 22, .4)); }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cta-strip p { margin: 0; font: 400 clamp(1.7rem, 3.4vw, 2.3rem)/1.1 var(--script); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }

/* Store */
.store-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.store-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.store-filters button { border: 1px solid var(--iron-strong); background: var(--stone-2); color: var(--muted); padding: 9px 18px; border-radius: 999px; font: 500 .92rem/1 var(--body); cursor: pointer; transition: color .2s, background-color .2s, border-color .2s; }
.store-filters button:hover { color: var(--text); }
.store-filters button[aria-pressed="true"] { background: var(--violet-deep); border-color: var(--violet); color: #fff; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--stone-3); font-size: .8rem; }
.cart-count.has { background: var(--teal); color: #06231d; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product {
  display: grid; gap: 4px; text-align: left; text-decoration: none; color: var(--text); cursor: pointer; font: inherit;
  padding: 14px 14px 18px; border-radius: var(--radius); border: 1px solid var(--iron-strong);
  background: linear-gradient(180deg, rgba(36, 31, 44, .9), rgba(22, 19, 27, .9));
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s;
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
.product:hover { transform: translateY(-6px); border-color: var(--violet); box-shadow: 0 24px 50px -24px rgba(106, 53, 204, .8); }
.product-art { display: block; aspect-ratio: 1; border-radius: 8px; margin-bottom: 10px; overflow: hidden;
  background: radial-gradient(75% 75% at 50% 40%, #f6f2fa, #d9d1e4); }
.product-art svg { width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.product:hover .product-art svg { transform: scale(1.06) rotate(-2deg); }
.product-cat { font: 600 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.product b { font: 600 1.05rem/1.3 var(--body); }
.product-price { color: var(--muted); }
.store-perks { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.store-perks div { flex: 1 1 200px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--iron); background: rgba(18, 16, 22, .6); display: grid; gap: 2px; }
.store-perks span { color: var(--muted); font-size: .9rem; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.store-teaser .product-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 680px) { .store-teaser .product-grid { grid-template-columns: repeat(2, 1fr); } }

.cart-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(150deg, #8452e6, var(--violet-deep)); box-shadow: 0 14px 30px -10px rgba(106, 53, 204, .9); display: grid; place-items: center; }
.cart-fab svg { width: 26px; height: 26px; }
.cart-fab .cart-count { position: absolute; top: -4px; right: -4px; }
.cart-shade { position: fixed; inset: 0; z-index: 80; background: rgba(6, 5, 12, .6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-shade.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(400px, 100vw); display: flex; flex-direction: column;
  background: var(--stone-2); border-left: 1px solid var(--iron-strong); box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .8);
  transform: translateX(100%); transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.cart-drawer.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--iron); }
.cart-head h2 { margin: 0; font-size: 2rem; text-shadow: none; }
.cart-close, .pm-close { border: 1px solid var(--iron-strong); background: none; color: var(--text); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }
.cart-lines { flex: 1; overflow: auto; padding: 12px 22px; }
.cart-empty { color: var(--muted); text-align: center; margin-top: 40px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--iron); animation: rise .4s ease both; }
.cart-art { width: 64px; height: 64px; border-radius: 8px; background: radial-gradient(75% 75% at 50% 40%, #f6f2fa, #d9d1e4); overflow: hidden; }
.cart-art svg { width: 100%; height: 100%; }
.cart-line b { display: block; font-weight: 600; }
.cart-line small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--iron-strong); background: none; color: var(--text); cursor: pointer; }
.cart-foot { padding: 18px 22px 24px; border-top: 1px solid var(--iron); display: grid; gap: 8px; }
.cart-row { display: flex; justify-content: space-between; }
.cart-note { margin: 0; color: var(--teal); font-size: .88rem; min-height: 1.2em; }
.cart-checkout { justify-content: center; }
.cart-msg { margin: 0; color: var(--muted); font-size: .9rem; min-height: 1.2em; }
.product-modal {
  position: fixed; left: 50%; top: 50%; z-index: 95; width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 28px; border-radius: 16px;
  background: var(--stone-2); border: 1px solid var(--iron-strong); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9);
  opacity: 0; pointer-events: none; translate: -50% -46%; transition: opacity .3s, translate .4s cubic-bezier(.2, .7, .2, 1);
}
.product-modal.open { opacity: 1; pointer-events: auto; translate: -50% -50%; }
.pm-close { position: absolute; top: 14px; right: 14px; }
.pm-art { aspect-ratio: 1; border-radius: 12px; background: radial-gradient(75% 75% at 50% 40%, #f6f2fa, #d9d1e4); }
.pm-art svg { width: 100%; height: 100%; }
.pm-name { font-size: 2.4rem; margin: 8px 0 4px; text-shadow: none; }
.pm-price { font: 700 1.6rem var(--display); margin: 0 0 10px; }
.pm-blurb { color: var(--muted); }
.pm-opt { margin: 16px 0; display: grid; gap: 8px; }
.pm-opt > span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.swatches, .sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--iron-strong); cursor: pointer; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--teal); outline-offset: 2px; }
.sizes button { min-width: 46px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--iron-strong); background: none; color: var(--text); cursor: pointer; font: 600 .9rem var(--body); }
.sizes button[aria-pressed="true"] { background: var(--violet-deep); border-color: var(--violet); }
.pm-add { margin-top: 10px; }
@media (max-width: 680px) { .product-modal { grid-template-columns: 1fr; padding: 22px; } .pm-art { max-width: 240px; } }

/* ───────── Round 7 ───────── */
/* Table panel: stone gray instead of parchment */
.parchment {
  color: var(--text);
  background:
    linear-gradient(rgba(58, 54, 66, .78), rgba(34, 31, 40, .9)),
    url("../img/brand/stone.jpg");
  background-size: auto, 360px 360px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(214, 200, 235, .16), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.parchment .eyebrow { color: var(--teal); }
.parchment .lede, .parchment p, .parchment .note { color: #c5bed1; }
.parchment h2, .parchment h3 { color: var(--text); }
.parchment h2 { text-shadow: 0 3px 18px rgba(0, 0, 0, .55); }
.facts li { color: #c5bed1; }
.facts li::before { color: var(--teal); }

/* Blue button (blueprints) */
.btn-blue {
  background: linear-gradient(180deg, #3b8df5, #1f5fd1); color: #fff; border-color: #7db3ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 20px -8px rgba(31, 95, 209, .9);
}
.btn-blue:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 3px rgba(125, 179, 255, .35), 0 8px 26px -8px rgba(31, 95, 209, 1); }

/* Table angle viewer */
.table-panel { grid-template-columns: 1.25fr 1fr; }
.angle-viewer { display: grid; gap: 10px; min-width: 0; }
.angle-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #0b0a0f; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); }
.angle-stage img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.angle-stage img.swap { animation: angle-in .55s cubic-bezier(.2, .7, .2, 1); }
@keyframes angle-in { from { opacity: .2; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.angle-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 9, 13, .55); color: #fff; backdrop-filter: blur(6px); transition: background-color .2s, transform .2s;
}
.angle-nav:hover { background: rgba(106, 53, 204, .8); }
.angle-nav svg { width: 22px; height: 22px; }
.angle-nav.prev { left: 12px; }
.angle-nav.next { right: 12px; }
.angle-info { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 10px; padding: 26px 16px 12px; font-size: .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); pointer-events: none; }
.angle-info span:last-child { color: #c5bed1; }
.angle-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.angle-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 4 / 3; opacity: .6; transition: opacity .2s, border-color .2s; }
.angle-thumbs button:hover { opacity: 1; }
.angle-thumbs button[aria-selected="true"] { opacity: 1; border-color: var(--teal); }
.angle-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .table-panel { grid-template-columns: 1fr; } }

/* Home hero choices: no icons, richer website button */
.choice { padding: 22px 28px; display: grid; gap: 4px; }
.choice b { font: 600 1.5rem/1.15 var(--body); }
.choice-web {
  border: 0; isolation: isolate;
  background: linear-gradient(110deg, #5a26c2, #8452e6 40%, #2a9e9a 100%); background-size: 200% 100%;
  animation: web-flow 7s ease-in-out infinite alternate, rise .9s cubic-bezier(.2, .7, .2, 1) .65s both;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 18px 40px -16px rgba(106, 53, 204, .95);
}
@keyframes web-flow { to { background-position: 100% 0; } }
.choice-web::before { display: none; }
.choice-web::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg); transition: left .7s cubic-bezier(.2, .7, .2, 1);
}
.choice-web:hover::after { left: 120%; }
.choice-web small { color: #ece4ff; }
.choice-dnd { border-color: rgba(242, 165, 65, .35); }

/* Home: Concepts I've Done, all three at once */
.concepts-done .work-grid { perspective: 1200px; }
.js .concepts-done .work-card[data-reveal] { opacity: 0; transform: translateY(70px) rotateX(14deg) scale(.96); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s; transition-delay: calc(var(--i, 0) * 140ms); }
.js .concepts-done .work-card[data-reveal].in { opacity: 1; transform: none; }
.js .concepts-done .work-card[data-reveal].in:hover { transform: translateY(-8px); }
.concepts-done .work-shot img { object-position: 50% 0; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1), object-position 2.4s ease; }
.concepts-done .work-card:hover .work-shot img { transform: scale(1.06); object-position: 50% 30%; }
.concepts-done .work-card .open-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: .9rem; color: var(--teal); }

/* Websites page hero */
.web-hero { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 120px) 0 clamp(70px, 9vw, 110px); border-bottom: 1px solid var(--iron); }
.web-hero::before {
  content: ""; position: absolute; inset: -20%; z-index: 0; filter: blur(60px); opacity: .9;
  background:
    radial-gradient(30% 35% at 20% 30%, rgba(132, 82, 230, .7), transparent 70%),
    radial-gradient(28% 32% at 75% 25%, rgba(47, 224, 188, .35), transparent 70%),
    radial-gradient(35% 40% at 60% 85%, rgba(61, 24, 144, .8), transparent 70%);
  animation: aurora 14s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate(4%, -3%) rotate(6deg) scale(1.08); } }
.web-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(167, 124, 242, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 124, 242, .1) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 80% at 40% 40%, #000, transparent);
  mask-image: radial-gradient(70% 80% at 40% 40%, #000, transparent);
}
.web-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.web-hero h1 { font: 400 clamp(2.8rem, 6vw, 4.6rem)/1.02 var(--script); margin: 0 0 18px; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.web-hero .lede { color: #d5cde2; }
.web-hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.web-hero-copy > :nth-child(2) { animation-delay: .12s; }
.web-hero-copy > :nth-child(3) { animation-delay: .24s; }
.web-hero-copy > :nth-child(4) { animation-delay: .36s; }
.web-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn-glow {
  position: relative; overflow: hidden; padding: 17px 32px; font-size: 1.05rem; border-radius: 12px; color: #fff; border: 0;
  background: linear-gradient(110deg, #6a35cc, #9a6bf0 50%, #2fbfa2); background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 14px 34px -12px rgba(132, 82, 230, .95);
  animation: web-flow 6s ease-in-out infinite alternate;
}
.btn-glow::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); transition: left .7s cubic-bezier(.2, .7, .2, 1); }
.btn-glow:hover::after { left: 120%; }
.btn-glow:hover { transform: translateY(-2px); }
.btn-glass {
  padding: 17px 30px; font-size: 1.05rem; border-radius: 12px; color: var(--text);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .12); border-color: var(--teal); transform: translateY(-2px); }
.hero-stack { position: relative; height: clamp(300px, 34vw, 430px); }
.hero-stack .win { position: absolute; width: 74%; animation: drift 9s ease-in-out infinite; }
.hero-stack .s1 { top: 0; left: 0; rotate: -5deg; animation-delay: -2s; }
.hero-stack .s2 { top: 18%; right: 0; rotate: 4deg; animation-delay: -5s; z-index: 1; }
.hero-stack .s3 { bottom: 0; left: 12%; rotate: -1deg; z-index: 2; animation-delay: -7s; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (max-width: 900px) { .web-hero .wrap { grid-template-columns: 1fr; } .hero-stack { height: 300px; max-width: 520px; } }

/* Websites page: premium "every site includes" grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  position: relative; padding: 26px 24px 24px; border-radius: 16px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(36, 31, 44, .96), rgba(20, 17, 25, .96)) padding-box,
    linear-gradient(140deg, rgba(167, 124, 242, .7), rgba(47, 224, 188, .35) 50%, rgba(255, 255, 255, .06)) border-box;
  border: 1px solid transparent;
  transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .3s;
}
.feature::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(167, 124, 242, .22), transparent 60%); }
.feature:hover { box-shadow: 0 24px 50px -24px rgba(106, 53, 204, .9); }
.feature:hover::after { opacity: 1; }
.feature .f-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff;
  background: linear-gradient(150deg, #8452e6, #3d1890); box-shadow: 0 10px 24px -10px rgba(106, 53, 204, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.feature .f-icon svg { width: 26px; height: 26px; }
.feature h3 { font: 600 1.15rem/1.3 var(--body); margin: 0 0 6px; letter-spacing: 0; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 20px; align-items: center; align-content: center; }
.feature.wide h3 { align-self: end; }
.feature.wide p { align-self: start; }
.feature.full { grid-column: 1 / -1; }
.feature.wide .f-icon { grid-row: span 2; margin: 0; width: 64px; height: 64px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } .feature.wide, .feature.full { grid-column: span 2; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .feature.wide, .feature.full { grid-column: auto; grid-template-columns: 1fr; } .feature.wide .f-icon { margin-bottom: 14px; } }

@media (prefers-reduced-motion: reduce) {
  .choice-web, .btn-glow, .web-hero::before, .hero-stack .win, .web-hero-copy > * { animation: none !important; }
}

/* Shared header button */
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.header-cta { white-space: nowrap; }
@media (max-width: 640px) { .header-cta { display: none; } }

/* Online DMing */
.dm-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); border: 1px solid rgba(242, 165, 65, .35);
  background: radial-gradient(70% 120% at 100% 0%, rgba(242, 165, 65, .16), transparent 60%), linear-gradient(180deg, rgba(36, 31, 44, .95), rgba(22, 19, 27, .95)); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.dm-photo { position: relative; }
.dm-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: 12px; border: 1px solid rgba(242, 165, 65, .35); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); }
.dm-price { position: absolute; left: -14px; bottom: -18px; padding: 16px 22px; border-radius: 16px; background: rgba(15, 13, 21, .94); border: 1px solid rgba(242, 165, 65, .55); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9); }
.dm-price b { display: block; font: 700 2.6rem/1.05 var(--display); color: #fff; }
.dm-price span { display: block; color: #e6defa; font-weight: 500; }
.dm-price small { display: block; color: var(--torch); font-size: .82rem; margin-top: 2px; }
@media (max-width: 800px) { .dm-card { grid-template-columns: 1fr; } .dm-price { left: 12px; bottom: 12px; } }

/* Big, clearly clickable buttons (D&D hero and booking) */
.btn-play, .btn-cream { padding: 17px 32px; font-size: 1.05rem; font-weight: 600; border-radius: 12px; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .2s; }
.btn-play { color: #fff; border: 1px solid #c4a8ff; background: linear-gradient(180deg, #a06cf5, #6a35cc); box-shadow: 0 6px 0 #3d1890, 0 20px 34px -10px rgba(106, 53, 204, .95); }
.btn-play:hover { transform: translateY(3px); filter: brightness(1.08); box-shadow: 0 3px 0 #3d1890, 0 12px 26px -8px rgba(106, 53, 204, .95); }
.btn-play:active { transform: translateY(6px); box-shadow: 0 0 0 #3d1890, 0 6px 14px -6px rgba(106, 53, 204, .9); }
.btn-cream { color: #1b1230; border: 1px solid #fff; background: linear-gradient(180deg, #ffffff, #e7def7); box-shadow: 0 6px 0 #a89cc6, 0 20px 34px -12px rgba(0, 0, 0, .75); }
.btn-cream:hover { transform: translateY(3px); box-shadow: 0 3px 0 #a89cc6, 0 12px 26px -10px rgba(0, 0, 0, .75); }
.btn-cream:active { transform: translateY(6px); box-shadow: 0 0 0 #a89cc6, 0 6px 14px -8px rgba(0, 0, 0, .7); }
.hero .hero-actions { gap: 18px; }

/* Headlines: capitalize every word */
h1, h2, h3, h4 { text-transform: capitalize; }

/* Buttons: capitalize every word */
.btn, button, input[type="submit"] { text-transform: capitalize; }

/* Buttons match the home page: rounded pills, purple gradient, see-through ghost, soft lift on hover */
.btn { border-radius: 999px; padding: 14px 26px; font: 600 .98rem/1 var(--body); justify-content: center; transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, background-color .2s, border-color .2s, filter .2s; }
.btn-primary, .btn-play { color: #fff; border: 1px solid transparent; background: linear-gradient(135deg, #8452e6, #6a35cc); box-shadow: 0 10px 24px -10px rgba(106, 53, 204, .8), inset 0 1px 0 rgba(255, 255, 255, .25); filter: none; }
.btn-primary:hover, .btn-play:hover { transform: translateY(-2px); filter: none; box-shadow: 0 16px 30px -10px rgba(106, 53, 204, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost, .btn-cream { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .24); box-shadow: none; backdrop-filter: blur(6px); }
.btn-ghost:hover, .btn-cream:hover { transform: translateY(-2px); color: #fff; background: rgba(255, 255, 255, .16); border-color: #fff; box-shadow: none; }
.btn-blue { border: 1px solid transparent; background: linear-gradient(180deg, #3b8df5, #1f5fd1); box-shadow: 0 10px 24px -10px rgba(31, 95, 209, .9); }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(31, 95, 209, 1); }
.btn-primary:active, .btn-play:active, .btn-ghost:active, .btn-cream:active, .btn-blue:active { transform: scale(.97); }
.hero-actions .btn-play, .hero-actions .btn-cream { padding: 18px 36px; font-size: 1.08rem; }

/* Titles match the home page: Geist for the first words, purple script for the last */
h2 { font: 700 clamp(2rem, 4.2vw, 3.3rem)/1.1 var(--body); letter-spacing: -.03em; }
.hero-title { font: 700 clamp(3rem, 8vw, 5.6rem)/1 var(--body); letter-spacing: -.04em; }
h2 .script, .hero-title .script { font-family: var(--script); font-weight: 400; letter-spacing: 0; font-size: 1.06em; color: #c4a8ff; padding-right: .06em; }
.hero-title .script { background: linear-gradient(120deg, #c4a8ff, #5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero title all white (two fonts kept); keep "D&D online." on one line */
.hero-title .script { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; }
.script.nowrap { white-space: nowrap; }

/* Dungeon Master card: a little see-through so the stone shows behind it */
.dm-card { background: radial-gradient(70% 120% at 100% 0%, rgba(242, 165, 65, .14), transparent 60%), linear-gradient(180deg, rgba(36, 31, 44, .8), rgba(22, 19, 27, .84)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* Table viewer: no thumbnail strip or scroll bar; cycle with the arrows */
.angle-thumbs { display: none; }
.angle-nav { opacity: 1; }
.dm-card { background: radial-gradient(70% 120% at 100% 0%, rgba(242, 165, 65, .12), transparent 60%), linear-gradient(180deg, rgba(36, 31, 44, .62), rgba(22, 19, 27, .68)); }

/* Footer (same on every page): brand + links, dark starry */
.site-footer { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 72px) 0 26px; color: #b9aed0; font-size: .95rem; border-top: 1px solid rgba(255, 255, 255, .08); background: radial-gradient(50% 120% at 0% 0%, rgba(106, 53, 204, .32), transparent 60%), radial-gradient(40% 100% at 100% 100%, rgba(18, 179, 155, .14), transparent 60%), #120d20; }
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(1px 1px at 12% 30%, #fff, transparent), radial-gradient(1px 1px at 28% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 46% 20%, #d4c1ff, transparent), radial-gradient(1px 1px at 63% 62%, #fff, transparent), radial-gradient(1.5px 1.5px at 78% 28%, #5eead4, transparent), radial-gradient(1px 1px at 90% 74%, #fff, transparent), radial-gradient(1px 1px at 6% 82%, #fff, transparent), radial-gradient(1px 1px at 55% 88%, #d4c1ff, transparent); }
.site-footer .wrap { position: relative; display: block; }
.ft-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.ft-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.ft-logo img { height: 40px; width: auto; }
.ft-logo span { font: 400 1.9rem/1 var(--script); padding-top: 4px; }
.ft-brand p { margin: 14px 0 20px; max-width: 30ch; color: #c9bfdc; line-height: 1.55; }
.ft-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ft-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, border-color .2s, transform .2s; }
.ft-ico svg { width: 19px; height: 19px; }
.ft-ico:hover { background: rgba(132, 82, 230, .35); border-color: rgba(196, 168, 255, .6); transform: translateY(-2px); }
.ft-mail { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; background: linear-gradient(135deg, #8452e6, #6a35cc); box-shadow: 0 10px 24px -12px rgba(106, 53, 204, .9); transition: transform .2s; }
.ft-mail[hidden] { display: none; }
.ft-mail svg { width: 18px; height: 18px; }
.ft-mail:hover { transform: translateY(-2px); }
.ft-col { display: flex; flex-direction: column; gap: 10px; }
.ft-col b { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.site-footer .ft-col a, .site-footer .ft-bottom a { color: #b9aed0; text-decoration: none; transition: color .2s; }
.site-footer .ft-col a:hover, .site-footer .ft-bottom a:hover { color: #fff; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: #9a8fb3; }
@media (max-width: 860px) { .ft-top { grid-template-columns: 1fr 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ft-top { grid-template-columns: 1fr 1fr; gap: 26px 20px; } .ft-col:last-child { grid-column: auto; } .ft-bottom { flex-direction: column; align-items: flex-start; } }

/* Footer v2: brand, main page links, social icons in one row */
.ft-top { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px 40px; }
.ft-brand p { margin: 10px 0 0; }
.ft-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.site-footer .ft-links a { color: #d4cbe6; text-decoration: none; font-weight: 500; transition: color .2s; }
.site-footer .ft-links a:hover { color: #fff; }
.ft-bottom { justify-content: center; margin-top: 32px; }
@media (max-width: 860px) { .ft-top { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ft-brand { grid-column: auto; } .ft-brand p { margin-left: auto; margin-right: auto; } }
@media (max-width: 520px) { .ft-top { grid-template-columns: 1fr; } .ft-links { gap: 12px 22px; } .ft-bottom { align-items: center; } }

/* Footer v3: brand + icons on the left; links in two columns with Legal & privacy centered below */
.ft-top { grid-template-columns: 1fr auto; align-items: center; gap: 32px 48px; }
.ft-brand p { margin: 10px 0 18px; }
.ft-links { display: grid; grid-template-columns: auto auto; justify-content: end; justify-items: center; gap: 14px 64px; }
.ft-links .ft-legal { grid-column: 1 / -1; margin-top: 4px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); width: 100%; text-align: center; color: #b9aed0; font-size: .9rem; }
@media (max-width: 760px) { .ft-top { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ft-social { justify-content: center; } .ft-links { justify-content: center; } }

/* Footer v4: links back in one row */
.site-footer .ft-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px 28px; }
@media (max-width: 760px) { .site-footer .ft-links { justify-content: center; gap: 12px 22px; } }
@media (max-width: 760px) { .site-footer .ft-links a { display: inline-block; padding: 8px 4px; } .ft-links { row-gap: 4px; } }

/* Desktop header: larger menu text and buttons */
@media (min-width: 981px) {
  html { scroll-padding-top: 96px; }
  .site-header .wrap { height: 80px; gap: 20px; }
  .brand-logo { height: 42px; }
  .brand-text { height: 35px; }
  .nav { gap: 6px; }
  .nav a { font-size: 1.08rem; padding: 10px 18px; }
  .header-right { gap: 10px; }
  .social-btn { width: 44px; height: 44px; }
  .social-btn svg { width: 20px; height: 20px; }
  .header-cta.btn-sm { padding: 13px 24px; font-size: 1rem; }
}
