/* Quality S&M Embroidery — purple & silver */
:root {
  --plum-950: #1a0b29;
  --plum-900: #2a1240;
  --plum-800: #3b1a5c;
  --plum-700: #4f2280;
  --plum-600: #6a2fa8;
  --plum-500: #8b3fd1;
  --plum-300: #c49be8;
  --plum-100: #f1e8fa;
  --plum-50:  #faf6fd;
  --silver-50:  #f7f7fa;
  --silver-100: #ececf1;
  --silver-200: #d9d9e2;
  --silver-400: #a8a9b8;
  --silver-600: #6b6c7d;
  --ink: #1d1626;
  --ink-soft: #4a4357;
  --white: #fff;
  --ok: #1f8a5b;
  --err: #c0392b;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(42, 18, 64, .35);
  --shadow-lg: 0 30px 60px -20px rgba(42, 18, 64, .45);
  --silver-grad: linear-gradient(135deg, #ffffff 0%, #c9cad6 40%, #f2f2f7 60%, #9c9daf 100%);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--silver-50);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--plum-600); text-decoration: none; }
a:hover { color: var(--plum-500); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--silver-600); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin: .35em 0; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem var(--font-body); color: var(--white);
  background: linear-gradient(135deg, var(--plum-500), var(--plum-700));
  box-shadow: 0 8px 20px -8px rgba(106, 47, 168, .7);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s;
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(106, 47, 168, .8); filter: brightness(1.07); }
.btn-silver { background: var(--silver-grad); color: var(--plum-900); box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.btn-silver:hover { color: var(--plum-900); }
.btn-ghost { background: transparent; color: var(--plum-700); border: 2px solid var(--plum-300); box-shadow: none; }
.btn-ghost:hover { color: var(--plum-800); background: var(--plum-100); }
.btn-outline-light { background: transparent; border: 1.5px solid rgba(255,255,255,.45); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-small { padding: .55em 1.15em; font-size: .92rem; }
.btn-danger { background: var(--err); box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 11, 41, .88); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-text { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text b {
  background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text small { font-family: var(--font-body); font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--silver-400); margin-top: .3em; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { color: var(--silver-200); font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--silver-200); transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 16px 1.25rem; background: var(--plum-950);
    border-bottom: 1px solid rgba(255,255,255,.08); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links .btn { margin-top: 1rem; }
}

/* ---------- flashes ---------- */
.flashes { margin-top: 1rem; }
.flash { padding: .9rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: .6rem; font-weight: 500; }
.flash-success { background: #e4f6ee; color: var(--ok); border: 1px solid #b6e4cf; }
.flash-error { background: #fdecea; color: var(--err); border: 1px solid #f5c1bb; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139, 63, 209, .55), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(196, 155, 232, .25), transparent 60%),
    linear-gradient(160deg, var(--plum-950), var(--plum-900) 55%, var(--plum-800));
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(5rem, 10vw, 8rem);
}
.hero::after { /* stitched edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 0;
  border-bottom: 2px dashed rgba(217, 217, 226, .35);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--plum-300); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--silver-grad); }
.hero h1 em { font-style: italic; background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--silver-200); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; color: var(--silver-400); font-size: .9rem; }
.hero-badges strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.5rem; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.hoop {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbf8ff, #ece4f6 60%, #d9cdea);
  box-shadow: 0 0 0 14px #c9cad6, 0 0 0 17px #8d8e9c, 0 0 0 20px rgba(255,255,255,.18), var(--shadow-lg);
  display: grid; place-items: center; overflow: hidden;
}
.hoop::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 2px dashed rgba(106, 47, 168, .35); }
.hoop img { width: 100%; height: 100%; object-fit: cover; }
.hoop-clamp { position: absolute; top: -1%; left: 50%; transform: translateX(-50%); width: 15%; height: 9%; border-radius: 6px; background: var(--silver-grad); box-shadow: var(--shadow); }
.hoop-mono { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 9vw, 5.4rem); color: var(--plum-700); text-shadow: 2px 2px 0 rgba(139,63,209,.15); position: relative; }
.hoop-mono small { display: block; text-align: center; font-family: var(--font-body); font-size: .8rem; letter-spacing: .4em; text-transform: uppercase; color: var(--silver-600); font-weight: 600; }
.thread { position: absolute; width: 74px; height: 74px; border-radius: 50%; box-shadow: var(--shadow); }
.thread::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: #f5f0fa; }
.thread-1 { right: -2%; bottom: 10%; background: repeating-linear-gradient(90deg, #6a2fa8 0 3px, #8b3fd1 3px 6px); }
.thread-2 { left: -3%; bottom: 2%; width: 56px; height: 56px; background: repeating-linear-gradient(90deg, #a8a9b8 0 3px, #e6e6ee 3px 6px); }
.thread-3 { right: 8%; top: 2%; width: 46px; height: 46px; background: repeating-linear-gradient(90deg, #c49be8 0 3px, #e3cff5 3px 6px); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 300px; order: -1; }
}

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--white); }
.section-dark { background: linear-gradient(160deg, var(--plum-950), var(--plum-800)); color: var(--white); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { justify-content: center; color: var(--plum-600); }
.section-dark .section-head .eyebrow { color: var(--plum-300); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-dark .section-head p { color: var(--silver-200); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  border: 1px solid var(--silver-100); box-shadow: 0 2px 0 var(--silver-100);
  transition: transform .2s, box-shadow .2s, border-color .2s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--plum-300); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--plum-100), #fff); border: 1px solid var(--plum-100); color: var(--plum-600);
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-soft); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step { padding: 1.8rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin-bottom: .5rem;
  background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { color: var(--silver-200); margin: 0; }

.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.promise div { display: flex; gap: .8rem; align-items: flex-start; }
.check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--plum-600); color: #fff; display: grid; place-items: center; font-size: .8rem; margin-top: .15rem; }

/* about */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.duo-card {
  aspect-ratio: 3/4; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.3rem; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.duo-card:nth-child(1) { background: linear-gradient(170deg, var(--plum-500), var(--plum-900)); }
.duo-card:nth-child(2) { background: linear-gradient(170deg, #b9bac6, #5d5e70); margin-top: 2.5rem; }
.duo-card .initial { position: absolute; top: .4rem; left: 1rem; font-family: var(--font-display); font-size: 5.5rem; opacity: .25; font-weight: 700; }
.duo-card b { font-family: var(--font-display); font-size: 1.5rem; }
.duo-card span { font-size: .85rem; opacity: .85; }
.duo-amp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; color: var(--plum-600); box-shadow: var(--shadow); font-weight: 700; }
.about-text p { color: var(--ink-soft); font-size: 1.06rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  border-radius: calc(var(--radius) + 8px); padding: clamp(2.2rem, 5vw, 3.6rem);
  background: radial-gradient(600px 300px at 90% 0%, rgba(139,63,209,.6), transparent 60%), linear-gradient(135deg, var(--plum-900), var(--plum-700));
  color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(255,255,255,.2); border-radius: calc(var(--radius) + 2px); pointer-events: none; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: var(--silver-200); }

/* ---------- gallery ---------- */
.page-hero { background: linear-gradient(160deg, var(--plum-950), var(--plum-800)); color: #fff; padding: 3.5rem 0 3rem; }
.page-hero p { color: var(--silver-200); max-width: 40em; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { padding: .45em 1.05em; border-radius: 999px; border: 1.5px solid var(--silver-200); color: var(--ink-soft); font-weight: 500; font-size: .92rem; background: #fff; }
.chip:hover { border-color: var(--plum-300); color: var(--plum-700); }
.chip.active { background: var(--plum-700); border-color: var(--plum-700); color: #fff; }
.masonry { columns: 4 260px; column-gap: 1.1rem; }
.tile { break-inside: avoid; margin-bottom: 1.1rem; border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--silver-100); cursor: zoom-in; display: block; box-shadow: 0 2px 10px -4px rgba(42,18,64,.2); }
.tile img { width: 100%; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem .9rem .8rem; color: #fff; font-weight: 600; font-size: .92rem;
  background: linear-gradient(transparent, rgba(26,11,41,.85)); opacity: 0; transition: opacity .25s;
}
.tile figcaption small { display: block; font-weight: 400; color: var(--silver-200); font-size: .78rem; }
.tile:hover figcaption, .tile:focus figcaption { opacity: 1; }
@media (hover: none) { .tile figcaption { opacity: 1; } }
.empty { text-align: center; padding: 3.5rem 1.5rem; border: 2px dashed var(--silver-200); border-radius: var(--radius); color: var(--silver-600); background: #fff; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 6, 24, .94); display: none; align-items: center; justify-content: center; padding: 2rem; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox .lb-cap { color: var(--silver-200); margin-top: 1rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; }
.lb-next { right: 1rem; top: 50%; }

/* ---------- forms ---------- */
.form-shell { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: var(--radius); padding: clamp(1.4rem, 3.5vw, 2.4rem); border: 1px solid var(--silver-100); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 1.4rem; }
.panel h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.panel h3 .num { width: 30px; height: 30px; border-radius: 50%; background: var(--plum-100); color: var(--plum-700); display: grid; place-items: center; font: 700 .9rem var(--font-body); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.2rem; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field label .req { color: var(--plum-500); }
.field .hint { font-size: .82rem; color: var(--silver-600); }
.field .err { font-size: .85rem; color: var(--err); font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: .8em .95em; border: 1.5px solid var(--silver-200); border-radius: var(--radius-sm);
  font: 1rem var(--font-body); color: var(--ink); background: var(--silver-50); transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--plum-500); box-shadow: 0 0 0 4px rgba(139,63,209,.15); background: #fff; }
.has-error input, .has-error select, .has-error textarea, .has-error .dropzone { border-color: var(--err); }
.radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio-row label { display: flex; align-items: center; gap: .45rem; font-weight: 500; padding: .55em 1em; border: 1.5px solid var(--silver-200); border-radius: 999px; cursor: pointer; background: var(--silver-50); }
.radio-row input { accent-color: var(--plum-600); }
.radio-row label:has(input:checked) { border-color: var(--plum-500); background: var(--plum-50); color: var(--plum-800); }
.check-row { display: flex; align-items: center; gap: .55rem; font-weight: 500; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--plum-600); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.dropzone {
  border: 2px dashed var(--plum-300); border-radius: var(--radius); background: var(--plum-50);
  padding: 2.2rem 1.2rem; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; position: relative;
}
.dropzone:hover, .dropzone.drag { background: var(--plum-100); border-color: var(--plum-500); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .dz-icon { width: 56px; height: 56px; margin: 0 auto .8rem; border-radius: 50%; background: #fff; color: var(--plum-600); display: grid; place-items: center; box-shadow: var(--shadow); }
.dropzone strong { color: var(--plum-700); }
.dropzone p { margin: .25rem 0 0; color: var(--silver-600); font-size: .9rem; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem; margin-top: 1rem; }
.preview { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--silver-100); aspect-ratio: 1; border: 1px solid var(--silver-200); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview .doc { display: grid; place-items: center; height: 100%; padding: .5rem; text-align: center; font-size: .75rem; color: var(--ink-soft); word-break: break-all; }
.preview .doc b { display: block; font-size: 1rem; color: var(--plum-600); margin-bottom: .2rem; }
.preview button { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(26,11,41,.75); color: #fff; cursor: pointer; font-size: .95rem; line-height: 1; }
.preview .size { position: absolute; left: 0; right: 0; bottom: 0; font-size: .7rem; color: #fff; background: rgba(26,11,41,.6); padding: 2px 6px; }

.side-card { position: sticky; top: 96px; }
.side-card .panel { box-shadow: none; }
.side-card ul { padding-left: 1.1rem; color: var(--ink-soft); margin: 0; }
.side-card li { margin: .45em 0; }
.submit-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.uploading .btn[type=submit] { opacity: .7; pointer-events: none; }
.progress { height: 6px; border-radius: 6px; background: var(--silver-100); overflow: hidden; display: none; margin-top: 1rem; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--plum-500), var(--plum-300)); transition: width .2s; }
.uploading .progress { display: block; }

/* thanks / error */
.notice { max-width: 640px; margin: 4rem auto; text-align: center; }
.notice .big-icon { width: 88px; height: 88px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--plum-500), var(--plum-700)); color: #fff; box-shadow: var(--shadow); }
.ref { display: inline-block; font-family: ui-monospace, monospace; font-size: 1.25rem; padding: .5em 1em; border-radius: var(--radius-sm); background: var(--plum-100); color: var(--plum-800); font-weight: 700; letter-spacing: .05em; margin: .5rem 0 1.5rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--plum-950); color: var(--silver-400); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 .8rem; }
.site-footer a { color: var(--silver-200); }
.site-footer a:hover { color: #fff; }
.brand-footer { margin-bottom: 1rem; }
.socials { display: flex; gap: 1rem; margin-top: .8rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; }
.footer-bottom a.muted { color: var(--silver-600); }

/* reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =================== ADMIN =================== */
.admin-body { background: var(--silver-50); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: linear-gradient(180deg, var(--plum-950), var(--plum-900)); color: var(--silver-200); padding: 1.4rem 1rem; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.admin-side .brand { margin: 0 .5rem 2rem; }
.admin-side nav a { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border-radius: var(--radius-sm); color: var(--silver-200); font-weight: 500; margin-bottom: .25rem; }
.admin-side nav a svg { width: 20px; height: 20px; opacity: .8; }
.admin-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side nav a.active { background: linear-gradient(135deg, var(--plum-600), var(--plum-700)); color: #fff; }
.admin-side .side-foot { margin-top: auto; font-size: .85rem; padding: 0 .5rem; }
.admin-side .side-foot button { background: none; border: 0; color: var(--plum-300); cursor: pointer; padding: 0; font: inherit; }
.admin-main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 3rem; min-width: 0; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.admin-top h1 { font-size: 2rem; margin: 0; }
.admin-mobile-nav { display: none; }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-mobile-nav { display: flex; gap: .4rem; overflow-x: auto; padding: .8rem 16px; background: var(--plum-950); position: sticky; top: 0; z-index: 10; }
  .admin-mobile-nav a { color: var(--silver-200); padding: .45rem .9rem; border-radius: 999px; white-space: nowrap; font-size: .9rem; }
  .admin-mobile-nav a.active { background: var(--plum-600); color: #fff; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { background: #fff; border-radius: var(--radius); padding: 1.2rem 1.3rem; border: 1px solid var(--silver-100); display: block; color: var(--ink); }
.stat:hover { border-color: var(--plum-300); color: var(--ink); }
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--plum-700); }
.stat span { font-size: .88rem; color: var(--silver-600); }
.stat.hl { background: linear-gradient(135deg, var(--plum-600), var(--plum-800)); color: #fff; border: 0; }
.stat.hl b, .stat.hl span { color: #fff; }

.table-wrap { background: #fff; border-radius: var(--radius); border: 1px solid var(--silver-100); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--silver-100); white-space: nowrap; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--silver-600); background: var(--silver-50); }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--plum-50); }
.badge { display: inline-block; padding: .25em .75em; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--silver-100); color: var(--ink-soft); }
.badge-New { background: #efe3fb; color: var(--plum-700); }
.badge-Quoted { background: #fff3d6; color: #8a5a00; }
.badge-Approved { background: #dff1ff; color: #1b5e8c; }
.badge-InProgress { background: #e3e7ff; color: #3843a8; }
.badge-Ready { background: #dcf5e9; color: var(--ok); }
.badge-Completed { background: #e9e9ee; color: #44454f; }
.badge-Cancelled { background: #fdecea; color: var(--err); }

.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.2rem; }
.toolbar form { display: flex; gap: .5rem; }
.toolbar input[type=search] { width: 240px; padding: .6em .9em; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.admin-photo { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--silver-100); }
.admin-photo .ph { aspect-ratio: 1; background: var(--silver-100); position: relative; }
.admin-photo .ph img { width: 100%; height: 100%; object-fit: cover; }
.admin-photo .star { position: absolute; top: 8px; left: 8px; background: var(--plum-600); color: #fff; font-size: .72rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; }
.admin-photo form { padding: .8rem; }
.admin-photo input, .admin-photo select { padding: .5em .7em; font-size: .88rem; margin-bottom: .5rem; }
.admin-photo .row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--err); cursor: pointer; font: 500 .85rem var(--font-body); }

.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.4rem; align-items: start; }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: 1fr; } }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: .6rem 1rem; margin: 0; }
dl.kv dt { color: var(--silver-600); font-size: .88rem; }
dl.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
@media (max-width: 560px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin-bottom: .5rem; } }
.details-box { white-space: pre-wrap; background: var(--silver-50); border-radius: var(--radius-sm); padding: 1rem; border: 1px solid var(--silver-100); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.file-card { border: 1px solid var(--silver-100); border-radius: var(--radius-sm); overflow: hidden; background: #fff; font-size: .82rem; }
.file-card .ph { aspect-ratio: 1; background: var(--silver-100); display: grid; place-items: center; color: var(--plum-600); font-weight: 700; }
.file-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.file-card .meta { padding: .5rem .6rem; display: flex; flex-direction: column; gap: .25rem; }
.file-card .meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.file-card .meta .acts { display: flex; gap: .7rem; flex-wrap: wrap; }
.file-card .meta button { background: none; border: 0; color: var(--plum-600); cursor: pointer; padding: 0; font: inherit; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(800px 500px at 80% 0%, rgba(139,63,209,.5), transparent 60%), linear-gradient(160deg, var(--plum-950), var(--plum-800)); }
.login-card { width: min(400px, 100%); background: #fff; border-radius: calc(var(--radius) + 4px); padding: 2.4rem 2rem; box-shadow: var(--shadow-lg); }
.login-card .brand { color: var(--plum-900); justify-content: center; margin-bottom: 1.6rem; }
.login-card .brand-text small { color: var(--silver-600); }
.login-card .brand-text b { background: linear-gradient(135deg, var(--plum-500), var(--plum-800)); -webkit-background-clip: text; background-clip: text; }
