/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles - Aussy / Ausjamcian portfolio
   ========================================================================== */

:root {
  --bg: #0b0b0d;
  --bg-2: #121215;
  --ink: #0a0a0a;
  --paper: #f6f3ec;
  --paper-pure: #ffffff;
  --line: rgba(255, 255, 255, 0.10);
  --muted: #9a978f;
  --muted-2: #8a877f;

  /* Primary brand accent */
  --brand: #0065ca;
  --brand-deep: #004f9e;
  --brand-rgb: 0, 101, 202;

  /* Red is reserved for warning / age-restriction elements only */
  --red: #e0353b;
  --red-deep: #b3262b;
  --green: #1fc77a;
  --blue: #2f9be0;
  --cream: #efe9da;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --marker: 'Permanent Marker', var(--mono);

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --shadow-card: 0 18px 50px -18px rgba(0, 0, 0, 0.7);

  /* Signature doodle texture: drop img/doodle-bg.png to override the SVG fallback */
  --doodle:
    repeating-linear-gradient(125deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-40deg, rgba(255,255,255,0.016) 0 2px, transparent 2px 34px),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.04) 0 1.5px, transparent 2px),
    radial-gradient(circle at 72% 64%, rgba(255,255,255,0.035) 0 1.5px, transparent 2px),
    radial-gradient(circle at 44% 86%, rgba(255,255,255,0.03) 0 1.5px, transparent 2px);
}

* { box-sizing: border-box; }

html {
  color: var(--cream);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--mono);
  background: transparent;
  color: var(--cream);
  overflow-x: hidden;
}

/* Fixed (sticky) full-screen background video */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: var(--bg);
}

/* Dark veil + atmosphere over the video so content stays readable */
.bg-veil {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    var(--doodle),
    radial-gradient(1200px 700px at 80% -10%, rgba(var(--brand-rgb), 0.14), transparent 60%),
    radial-gradient(1000px 600px at -10% 30%, rgba(47, 155, 224, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(11,11,13,0.78), rgba(11,11,13,0.70));
}

/* When the real doodle asset exists, layer it on top of the fallback */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../img/doodle-bg.png");
  background-size: 620px auto;
  opacity: 0.05;
  mix-blend-mode: screen;
}

body[data-locked="true"] { overflow: hidden; height: 100vh; }

::selection { background: var(--brand); color: #fff; text-shadow: none; }
::-moz-selection { background: var(--brand); color: #fff; text-shadow: none; }

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.4em;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
  white-space: nowrap;
}
.btn i { font-size: 0.95em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid { background: var(--brand); color: #fff; box-shadow: 0 12px 30px -12px rgba(var(--brand-rgb),0.9); }
.btn--solid:hover { background: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(255,255,255,0.25); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ---------- NSFW Gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 600px at 50% 0%, rgba(224,53,59,0.18), transparent 60%),
    rgba(7, 7, 9, 0.86);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__noise {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: var(--doodle);
}
.gate__card {
  position: relative;
  width: min(560px, 100%);
  padding: 44px 40px 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20,20,23,0.95), rgba(12,12,14,0.97));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: gatePop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes gatePop { from { transform: translateY(18px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.gate__mark {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(224,53,59,0.12);
  border: 1px solid rgba(224,53,59,0.4);
  color: var(--red);
  font-size: 1.6rem;
}
.gate__brand { font-family: var(--marker); font-size: 1.5rem; color: #fff; margin: 0 0 4px; letter-spacing: 0.02em; }
.gate__title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin: 0 0 14px; color: #fff; letter-spacing: -0.01em; }
.gate__copy { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin: 0 auto 26px; max-width: 44ch; }
.gate__copy strong { color: var(--cream); }
.gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn--enter { background: var(--green); color: #06281b; font-weight: 800; }
.btn--enter:hover { background: #19b06c; }
.btn--leave { background: transparent; color: var(--muted); border-color: rgba(255,255,255,0.18); }
.btn--leave:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.gate__remember {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; color: var(--muted-2); font-size: 0.82rem; cursor: pointer; user-select: none;
}
.gate__remember input { accent-color: var(--brand); width: 15px; height: 15px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 56px);
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(11,11,13,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__logo { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo-mark {
  width: 40px; height: 40px; display: block; object-fit: contain;
}
.nav__logo-word { font-family: var(--marker); font-size: 1.25rem; color: #fff; }
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a {
  padding: 8px 14px; font-size: 0.86rem; color: var(--muted); border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav__links a.is-active { color: #fff; background: rgba(var(--brand-rgb), 0.22); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), 0.45); }
.nav__cta { background: var(--brand) !important; color: #fff !important; font-weight: 700; }
.nav__cta:hover { background: var(--brand-deep) !important; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 9vw, 130px) 0; position: relative; }
.section--hero { padding-top: clamp(96px, 12vw, 150px); }
.section__head {
  width: min(90vw, 1180px); margin: 0 auto clamp(28px, 4vw, 52px);
  padding: 0 clamp(4px, 2vw, 8px);
}
.section__title {
  font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; margin: 0 0 8px;
  color: #fff; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 16px;
}
.section__num {
  font-family: var(--mono); font-size: 0.9rem; font-weight: 700;
  color: var(--brand); letter-spacing: 0.2em; transform: translateY(-0.4em);
}
.section__lead { color: var(--muted); font-size: 1rem; margin: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 1. HERO ---------- */
.hero {
  position: relative;
  width: 90vw; max-width: 1500px; margin: 0 auto;
  background:
    linear-gradient(150deg, rgba(var(--brand-rgb),0.12), transparent 42%),
    linear-gradient(180deg, #161619, #0e0e10);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green);
  margin: 0 0 18px; padding: 6px 14px; border: 1px solid rgba(31,199,122,0.4);
  border-radius: 999px; background: rgba(31,199,122,0.08);
}
.hero__eyebrow i { font-size: 0.6rem; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero__name { margin: 0 0 18px; line-height: 0.94; }
.hero__name-line {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(3rem, 8.5vw, 6.5rem);
  object-fit: contain;
  object-position: left center;
}
.hero__name-sub { display: block; margin-top: 14px; font-size: clamp(0.78rem, 2vw, 1rem); color: var(--muted); letter-spacing: 0.04em; }
.hero__bio { color: var(--cream); opacity: 0.85; font-size: clamp(0.95rem, 1.4vw, 1.08rem); line-height: 1.7; max-width: 52ch; margin: 0 0 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__stats { list-style: none; display: flex; gap: clamp(18px, 4vw, 40px); margin: 0; padding: 0; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b { font-size: clamp(1.3rem, 3vw, 1.9rem); color: #fff; font-weight: 800; }
.hero__stats span { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }

.hero__portrait {
  position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #1c1c20, #0c0c0e);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), var(--shadow-card);
}
.hero__portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Pan the source image inside the frame. Higher X = show more of the right
     side. 50% = centered, 100% = right edge. Tune to taste. */
  object-position: 15% 50%;
}
.hero__portrait img.is-missing { display: none; }
.hero__portrait-fallback {
  position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: var(--muted-2);
}
.hero__portrait img.is-missing ~ .hero__portrait-fallback { display: flex; }
.hero__portrait-fallback i { font-size: 2.4rem; opacity: 0.4; }
.hero__portrait-fallback span { font-size: 0.8rem; letter-spacing: 0.06em; }
.hero__badge {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  background: var(--red); color: #fff; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.hero__marquee {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  overflow: hidden; padding: 14px 0;
}
.hero__marquee-track {
  display: flex; width: max-content;
  animation: marquee 60s linear infinite;
}
.hero__marquee-group {
  display: flex; align-items: center; gap: 22px;
  padding-left: 22px; /* keeps spacing uniform across the seam between the two groups */
  white-space: nowrap;
  font-family: var(--marker); font-size: 1.2rem; color: rgba(255,255,255,0.55);
}
.hero__marquee-group .dot { color: var(--brand); }
/* Two identical groups; shifting by exactly one group width loops seamlessly */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 2. GALLERY ---------- */
.gallery {
  width: min(90vw, 1180px); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px;
}
.gallery__item {
  position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(160deg, #18181b, #0d0d0f);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: var(--posx, 50%) var(--posy, 50%);
  transform: scale(var(--zoom, 1)); transform-origin: var(--posx, 50%) var(--posy, 50%);
  transition: transform 0.4s ease; }
.gallery__item.is-empty img { display: none; }
.gallery__item:hover { transform: translateY(-4px); border-color: rgba(var(--brand-rgb),0.55); box-shadow: var(--shadow-card); }
.gallery__item:hover img { transform: scale(calc(var(--zoom, 1) * 1.05)); }
.gallery__slot {
  position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: var(--muted-2);
  font-size: 0.78rem; letter-spacing: 0.04em;
  background-image: var(--doodle);
}
.gallery__item.is-empty .gallery__slot { display: flex; }
.gallery__slot i { font-size: 1.6rem; opacity: 0.4; }

/* ---------- 3. PRICES ---------- */
.star { color: var(--red); font-style: normal; margin-right: 1px; }

/* ---------- Commission status (open / closed) ---------- */
.hero__eyebrow.is-closed { color: var(--red); }
.hero__eyebrow.is-closed i { color: var(--red); }

/* Commissions-closed overlay on the builder */
.builder-wrap { position: relative; }
.builder__closed { display: none; }
.commissions-closed .builder {
  filter: blur(5px) grayscale(1); opacity: 0.5; pointer-events: none;
  -webkit-filter: blur(5px) grayscale(1);
}
.commissions-closed .builder__closed {
  display: grid; place-items: center; text-align: center;
  position: absolute; inset: 0; z-index: 10;
}
.builder__closed-text {
  font-family: var(--marker); color: var(--red);
  font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: 0.9;
  transform: rotate(-4deg);
  text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 34px rgba(0,0,0,0.7);
}

/* ---------- Commission queue (Trello board) ---------- */
.trello { width: min(90vw, 1180px); margin: 0 auto; }
.trello__board {
  display: flex; gap: 16px; align-items: flex-start;
  overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity;
}
.trello__board::-webkit-scrollbar { height: 10px; }
.trello__board::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 999px; }
.trello__state {
  display: flex; align-items: center; gap: 12px; color: var(--muted);
  font-family: var(--mono); font-size: 0.9rem; padding: 40px 8px;
}
.trello__state i { font-size: 1.4rem; color: var(--brand); }
.trello__list {
  flex: 1 1 0; min-width: 210px; max-width: 360px; scroll-snap-align: start;
  background: var(--brand); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; gap: 12px;
}
.trello__list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trello__list-title { font-family: var(--mono); font-weight: 800; font-size: 0.95rem; color: #fff; }
.trello__list-count {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 700; color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.16); border-radius: 999px; padding: 2px 9px;
}
.trello__cards { display: flex; flex-direction: column; gap: 10px; }
.trello__card {
  background: rgba(8,10,16,0.22); border: 1px solid rgba(255,255,255,0.22); border-radius: 10px;
  padding: 11px 13px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.trello__card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.5); }
.trello__labels { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.trello__label { width: 30px; height: 7px; border-radius: 999px; background: var(--lc, var(--brand)); display: block; }
.trello__label--tag { display: inline-block; width: auto; height: auto; padding: 2px 8px; border-radius: 6px; color: #16181d; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.55; white-space: nowrap; }
.trello__card-name { font-size: 0.9rem; color: #fff; line-height: 1.4; }
.trello__due { font-size: 0.76rem; color: rgba(255,255,255,0.82); display: inline-flex; align-items: center; gap: 6px; }
.trello__empty { font-size: 0.8rem; color: var(--muted-2); font-style: italic; margin: 0; }
.trello__foot { width: min(90vw, 1180px); margin: 16px auto 0; text-align: right; }
.trello__link { color: var(--muted); font-family: var(--mono); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 8px; }
.trello__link:hover { color: var(--brand); }

/* ---------- Commission builder ---------- */
.builder {
  width: min(90vw, 1180px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: 28px;
  align-items: start;
}
.builder__stage { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }
.doll {
  position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(var(--brand-rgb),0.12), transparent 60%),
    repeating-conic-gradient(#efe9da 0% 25%, #e6dfce 0% 50%) 50% / 38px 38px;
}
.doll__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.doll__layer[hidden] { display: none; }
.doll__layer--comic { z-index: 5; }
.doll__sticker { display: flex; align-items: center; justify-content: center; gap: 5%; padding: 8%; }
.doll__sticker-single, .doll__sticker-multi { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.doll__sticker-single img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.doll__sticker-multi img { max-width: 100%; max-height: 48%; object-fit: contain; display: block; }
.doll__empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 20px; background-image: var(--doodle);
}
.doll__empty[hidden] { display: none; }
.doll__empty i { font-size: 2rem; color: var(--brand); opacity: 0.6; }
.doll__empty span { font-weight: 800; color: #34322b; font-size: 0.98rem; font-family: var(--mono); }
.doll__empty em { font-style: normal; font-size: 0.76rem; letter-spacing: 0.05em; color: #6f6b5e; text-transform: uppercase; }
.doll__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.doll__tag { font-family: var(--mono); font-weight: 800; font-size: 0.9rem; color: #fff; background: var(--brand); padding: 6px 14px; border-radius: 999px; }
.doll__extras { font-size: 0.8rem; color: var(--muted); flex: 1; text-align: right; min-width: 120px; }

.builder__form {
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(18px, 2.4vw, 28px);
}
.optset { margin-bottom: 26px; }
.optset:last-of-type { margin-bottom: 0; }
.optset__title {
  position: relative; font-family: var(--mono); font-weight: 800; font-size: 1.05rem; color: var(--cream);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.optset__title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--brand); border-radius: 2px; }
.optset__sub { display: block; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px; }
.optset__opts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.optset__opts:last-child { margin-bottom: 0; }
.opt {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 15px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--cream);
  font-family: var(--mono); font-size: 0.9rem;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.opt:hover { border-color: rgba(var(--brand-rgb),0.6); background: rgba(255,255,255,0.07); transform: translateY(-2px); }
.opt__name em { font-style: normal; color: var(--muted); font-size: 0.76rem; margin-left: 4px; }
.opt__price { font-weight: 800; color: #fff; }
.opt__price--free { color: var(--green); }
.opt.is-active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 12px 30px -12px rgba(var(--brand-rgb),0.9); }
.opt.is-active .opt__name em { color: rgba(255,255,255,0.78); }
.opt.is-active .opt__price--free { color: #fff; }

.stepper { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.stepper:last-child { border-bottom: 0; }
.stepper__info { display: flex; flex-direction: column; gap: 2px; }
.stepper__name { font-weight: 600; color: var(--cream); font-size: 0.95rem; }
.stepper__price { font-size: 0.78rem; color: var(--muted); }
.stepper__price em { font-style: normal; color: var(--muted-2); }
.stepper.is-on .stepper__name { color: #fff; }
.stepper__ctrl { display: inline-flex; align-items: center; gap: 4px; }
.stepper__btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--cream); font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.stepper__btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper__count { min-width: 34px; text-align: center; font-family: var(--mono); font-weight: 800; color: #fff; font-size: 1rem; }

.builder__summary { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.builder__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.builder__total-label { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.builder__total-value { font-family: var(--mono); font-weight: 800; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--brand); line-height: 1; }
.builder__note { margin: 12px 0 18px; font-size: 0.82rem; color: var(--red); }
.builder__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.builder__actions .btn { flex: 1; justify-content: center; min-width: 150px; }
#builder-copy.is-done { background: var(--green); border-color: var(--green); color: #06281b; }
.opt:disabled, .opt.is-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.opt__price--soft { font-weight: 600; opacity: 0.72; font-size: 0.8rem; }
.opt.is-active .opt__price--soft { opacity: 0.85; }
.optset.is-disabled .optset__title { opacity: 0.6; }
.optset__locked { margin: 0 0 10px; font-size: 0.8rem; color: var(--muted); font-style: italic; }
.optset__hint { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.stepper.is-disabled { opacity: 0.42; }
.stepper.is-disabled .stepper__btn { pointer-events: none; cursor: not-allowed; }
.builder__quote { margin: 12px 0 0; font-size: 0.86rem; color: var(--cream); line-height: 1.5; }
.builder__quote b { color: #fff; font-weight: 700; }

@media (max-width: 860px) {
  .builder { grid-template-columns: 1fr; }
  .builder__stage { position: static; max-width: 460px; margin: 0 auto; width: 100%; }
}

/* ---------- 4. DRAWPILE ---------- */
.dp { width: min(90vw, 1100px); margin: 0 auto; }
.dp__frame {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: #0d0d0f; box-shadow: var(--shadow);
}
.dp__chrome {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.dp__dots { display: inline-flex; gap: 7px; }
.dp__dots i { width: 11px; height: 11px; border-radius: 50%; background: #333; display: block; }
.dp__dots i:nth-child(1) { background: #e0353b; }
.dp__dots i:nth-child(2) { background: #f1b73b; }
.dp__dots i:nth-child(3) { background: #1fc77a; }
.dp__host { font-weight: 600; color: var(--cream); display: inline-flex; align-items: center; gap: 8px; }
.dp__live { color: var(--red); font-size: 0.55rem; animation: pulse 1.6s ease-in-out infinite; }
.dp__chrome-right { display: inline-flex; align-items: center; gap: 7px; }

.dp__stage {
  position: relative; width: 100%; aspect-ratio: 2555 / 1298;
  background:
    var(--doodle),
    radial-gradient(700px 400px at 50% 0%, rgba(var(--brand-rgb),0.14), transparent 65%),
    #0a0a0c;
}
.dp__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; z-index: 1; }

.dp__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(18px, 4vw, 40px); overflow: auto;
}
/* On macOS the disabled-button note adds height; let the card grow the window
   instead of turning the overlay into an inner scroll area (which hijacked
   page scrolling). Mobile/iPhone keep the scrollable overlay. */
.is-mac .dp__stage { aspect-ratio: auto; }
.is-mac .dp__overlay { position: relative; inset: auto; overflow: visible; }
.dp__card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; width: min(620px, 100%); margin: auto;
  padding: clamp(22px, 3.5vw, 36px);
  background: rgba(10,10,12,0.82); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.92);
}
.dp__brand { font-family: var(--marker); font-size: 1.4rem; color: #fff; margin: 0; }
.dp__title { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; color: #fff; margin: 0; }
.dp__sub { color: var(--muted); margin: 0; font-size: 0.95rem; }
.dp__sub strong { color: var(--cream); }
.dp__warn {
  width: min(560px, 100%); margin: 4px 0; padding: 13px 18px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 0.82rem; line-height: 1.55;
  display: flex; align-items: center; gap: 14px; text-align: left;
}
.dp__warn i { font-size: 1.7rem; flex-shrink: 0; }
.dp__warn span { flex: 1; }
.dp__warn strong { font-weight: 800; }
.dp__link {
  display: flex; align-items: stretch; gap: 0; width: min(560px, 100%);
  background: transparent; border-radius: 10px;
}
.dp__link code {
  flex: 1; text-align: left; padding: 14px 16px; color: #111; font-size: 0.88rem;
  font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: #fff; border-radius: 10px 0 0 10px;
}
.dp__copy {
  border: 0; background: #323232; color: #fff; padding: 0 18px; cursor: pointer; font-size: 1rem;
  border-radius: 0 10px 10px 0;
  transition: background 0.2s ease;
}
.dp__copy:hover { background: var(--brand); }
.dp__copy.is-done { background: var(--green); }
.dp__buttons { display: flex; gap: 12px; width: min(560px, 100%); }
.dp__buttons .btn { flex: 1; justify-content: center; padding: 1em; }
.dp__mac-note { display: flex; align-items: flex-start; gap: 8px; width: min(560px, 100%); margin: 12px 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--muted-2); }
.dp__mac-note i { margin-top: 2px; color: var(--muted-2); }
.dp__mac-note strong { color: #fff; font-weight: 700; }
.btn.is-disabled { opacity: 0.4; filter: grayscale(0.6); pointer-events: none; cursor: not-allowed; }
.btn--dp-app { background: var(--green); color: #06281b; font-weight: 800; }
.btn--dp-app:hover { background: #19b06c; }
.btn--dp-web { background: var(--blue); color: #fff; font-weight: 800; }
.btn--dp-web:hover { background: #1f86c8; }
.dp__peek {
  margin-top: 4px; background: none; border: 0; color: var(--muted);
  font-family: var(--mono); font-size: 0.8rem; cursor: pointer; padding: 6px;
}
.dp__peek:hover { color: #fff; }
.dp__restore {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  background: rgba(0,0,0,0.7); border: 1px solid var(--line); color: #fff;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-family: var(--mono);
  font-size: 0.78rem; display: inline-flex; align-items: center; gap: 8px;
}
.dp__restore:hover { background: var(--brand); }

/* ---------- Footer ---------- */
.footer { position: relative; padding: clamp(60px, 9vw, 110px) clamp(18px, 5vw, 56px) 0; overflow: hidden; }
.footer__glow {
  position: absolute; bottom: -220px; left: 50%; transform: translateX(-50%);
  width: 1900px; height: 510px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--brand-rgb),0.24), transparent 72%);
}
.footer__inner {
  position: relative; width: min(90vw, 1180px); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: center;
}
.footer__brand { font-family: var(--marker); font-size: 1.5rem; color: #fff; margin: 0 0 6px; }
.footer__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; margin: 0 0 10px; letter-spacing: -0.02em; }
.footer__copy { color: var(--muted); margin: 0; }
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.social {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.social:hover { transform: translateY(-3px); background: rgba(255,255,255,0.06); }
.social__icon {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 12px; font-size: 1.3rem; color: #fff; background: #1a1a1e;
}
.social__meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.social__meta b { font-size: 0.95rem; color: #fff; }
.social__meta i { font-style: normal; font-size: 0.78rem; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; }
.social--fa:hover { border-color: #faaf3b; }
.social--fa:hover .social__icon { background: #faaf3b; color: #1a1a1e; }
.social--bsky:hover { border-color: #1185fe; }
.social--bsky:hover .social__icon { background: #1185fe; }
.social--kofi:hover { border-color: #ff5e5b; }
.social--kofi:hover .social__icon { background: #ff5e5b; }
.social--discord:hover { border-color: #5865f2; }
.social--discord:hover .social__icon { background: #5865f2; }
.social--tg:hover { border-color: #2aabee; }
.social--tg:hover .social__icon { background: #2aabee; }

.footer__base {
  width: min(90vw, 1180px); margin: clamp(40px, 6vw, 70px) auto 0;
  padding: 22px 0; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 0.78rem; color: var(--muted-2); flex-wrap: wrap;
}
.footer__18 {
  padding: 4px 12px; border: 1px solid rgba(224,53,59,0.5); color: var(--red);
  border-radius: 999px; font-weight: 700; letter-spacing: 0.08em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__right { order: -1; max-width: 360px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .socials { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery__item--wide { grid-column: auto; }
  .dp__buttons { flex-direction: column; }
  .dp__warn { font-size: 0.76rem; }
  .hero__stats { gap: 18px; }
}
/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.opt:focus-visible, .btn:focus-visible, .stepper__btn:focus-visible, .nav__links a:focus-visible { outline-offset: 3px; }

.skip-link {
  position: fixed; left: 12px; top: -64px; z-index: 1000;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-family: var(--mono); font-weight: 700; text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

.a11y-controls { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.a11y-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: rgba(13,13,15,0.85); border: 1px solid var(--line); color: var(--cream);
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.02em;
  backdrop-filter: blur(8px); opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.a11y-btn:hover, .a11y-btn:focus-visible { opacity: 1; border-color: rgba(var(--brand-rgb),0.6); transform: translateY(-1px); }
.a11y-btn i { font-size: 0.82rem; color: var(--brand); }
.a11y-btn.is-on { opacity: 1; border-color: var(--brand); }

.motion-off *, .motion-off *::before, .motion-off *::after { animation-play-state: paused !important; }

/* ---------- High-contrast mode ---------- */
.hc {
  --bg: #000; --bg-2: #000;
  --paper: #fff; --paper-pure: #fff; --ink: #000; --cream: #ffffff;
  --line: #ffffff; --muted: #ffffff; --muted-2: #ffffff;
  --brand: #6ab0ff; --brand-deep: #6ab0ff; --brand-rgb: 106, 176, 255;
  --red: #ff7a7a; --green: #34e08f; --blue: #6ab0ff;
}
.hc body { background: #000 !important; color: #fff; }
.hc .bg-video, .hc .bg-veil, .hc .footer__glow { display: none !important; }
.hc .builder__form, .hc .dp__card, .hc .nav, .hc .a11y-btn { background: #000 !important; }
.hc .hero__marquee-group { color: #fff; }

/* strong white borders on structure + controls */
.hc .opt, .hc .stepper__btn, .hc .builder__form, .hc .dp__frame, .hc .dp__card,
.hc .gallery__item, .hc .a11y-btn, .hc .doll { border-color: #fff !important; }

/* light artboard keeps black text */
.hc .doll { background: #fff !important; }
.hc .doll__empty span, .hc .doll__empty em { color: #000 !important; }
.hc .doll__tag { background: var(--brand) !important; color: #000 !important; }

/* gate as a solid high-contrast panel */
.hc .gate { background: #000 !important; }
.hc .gate__card { background: #000 !important; border: 2px solid #fff; }
.hc .gate__title, .hc .gate__copy, .hc .gate__copy strong, .hc .gate__brand, .hc .gate__remember { color: #fff !important; }

/* selected option inverts (a non-color-only cue) */
.hc .opt { background: #000 !important; color: #fff !important; }
.hc .opt .opt__price, .hc .opt .opt__price--free { color: #fff !important; }
.hc .opt.is-active { background: #fff !important; color: #000 !important; box-shadow: none !important; }
.hc .opt.is-active .opt__name em, .hc .opt.is-active .opt__price, .hc .opt.is-active .opt__price--free { color: #000 !important; }

/* buttons: primary = white fill/black text; others = black fill/white text, all bordered */
.hc .btn { border: 2px solid #fff !important; }
.hc .btn--solid, .hc .btn--enter { background: #fff !important; color: #000 !important; box-shadow: none !important; }
.hc .btn--ghost, .hc .btn--leave, .hc .btn--dp-app, .hc .btn--dp-web { background: #000 !important; color: #fff !important; }
.hc .nav__cta { background: #000 !important; color: #fff !important; border: 2px solid var(--brand) !important; }

/* warning banner stays legible */
.hc .dp__warn, .hc .dp__warn strong { background: var(--red) !important; color: #000 !important; }

/* links underlined for a non-color distinction */
.hc a:not(.btn):not(.nav__logo):not(.social):not(.skip-link) { text-decoration: underline; }

/* accents that must read on black */
.hc .builder__total-value, .hc .a11y-btn i, .hc .section__num { color: var(--brand) !important; }
.hc .a11y-btn { opacity: 1; }
.hc .a11y-btn.is-on { background: #fff !important; color: #000 !important; }
.hc .a11y-btn.is-on i { color: #000 !important; }

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

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

