/* =========================================================
   DuKa Studios — design tokens
   Paper: cool off-white dossier ground. Ink: near-black text.
   Signal: the studio's own purple, the single loud color.
   Stamp: restrained ink-red, used only for the "live" mark.
   ========================================================= */
:root {
  --paper: #FAFAF7;
  --paper-alt: #F1F0EA;
  --ink: #14171C;
  --slate: #5B6472;
  --slate-soft: #8A93A0;
  --line: #E1E0D8;

  --violet: #6D4AE8;
  --violet-dim: rgba(109, 74, 232, 0.08);
  --violet-ink: #4A2FA8;

  --stamp: #B23A26;
  --stamp-dim: rgba(178, 58, 38, 0.08);

  --amber: #E2A33D;
  --amber-dim: rgba(226, 163, 61, 0.14);

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 4px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; background: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; color: var(--ink); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

::selection { background: var(--violet); color: var(--paper); }

html { scrollbar-color: var(--violet) var(--paper-alt); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-alt); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 999px; border: 2px solid var(--paper-alt); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.brand-thin { font-weight: 500; color: var(--slate); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { position: relative; font-size: 14.5px; color: var(--slate); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--violet); transition: right 0.2s ease;
}
.nav-links a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  color: var(--violet) !important; border: 1px solid var(--violet); border-radius: var(--radius);
  padding: 7px 14px;
}
.nav-cta:hover { background: var(--violet-dim); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px;
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--slate-soft);
}
.lang-opt { padding: 3px 8px; border-radius: 999px; transition: all 0.15s; }
.lang-opt.active { background: var(--violet-dim); color: var(--violet-ink); }
.lang-div { opacity: 0.4; }

.burger { display: none; flex-direction: column; gap: 4px; padding: 6px; }
.burger span { width: 20px; height: 2px; background: var(--ink); display: block; }

/* =========================================================
   COVER / HERO — dossier front page
   ========================================================= */
.cover {
  max-width: var(--container); margin: 0 auto; padding: 90px 24px 0;
  border-bottom: 1px solid var(--line); position: relative;
}
.cover-inner { max-width: 640px; padding-bottom: 60px; }
.cover-kicker {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--violet-ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 26px;
}
.cover-title-wrap { position: relative; display: inline-block; }
.cover-title {
  font-size: clamp(64px, 11vw, 128px); line-height: 0.92; letter-spacing: -0.03em;
  animation: coverRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cover-dot { color: var(--violet); display: inline-block; animation: dotPop 0.5s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.cover-badge {
  position: absolute; top: 6px; right: -18px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--amber); border: 1.5px solid var(--amber); background: var(--paper);
  padding: 5px 12px; border-radius: 999px; transform: rotate(7deg);
  animation: badgeIn 0.5s 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes coverRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dotPop { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes badgeIn { from { opacity: 0; transform: rotate(7deg) scale(0.7); } to { opacity: 1; transform: rotate(7deg) scale(1); } }
.cover-sub { font-size: 18px; color: var(--slate); max-width: 480px; margin: 26px 0 0; }
.cover-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 13px 24px; border-radius: var(--radius); display: inline-block;
  border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--violet-ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { border-color: var(--violet); color: var(--violet-ink); }

.cover-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.fact {
  padding: 22px 8px 26px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.fact:first-child { border-left: none; }
.fact-num { font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.fact-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.04em; }

/* =========================================================
   MARQUEE — ambient motion strip between cover and catalog
   ========================================================= */
.marquee {
  border-bottom: 1px solid var(--line); background: var(--paper-alt);
  overflow: hidden; padding: 13px 0;
}
.marquee-track {
  display: flex; gap: 40px; width: max-content;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--slate);
  animation: marqueeScroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.marquee-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--violet); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   SECTION HEAD (shared, numbered like a table of contents)
   ========================================================= */
section { max-width: var(--container); margin: 0 auto; padding: 90px 24px; border-bottom: 1px solid var(--line); position: relative; }
.footer { border-bottom: none; }
.section-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 44px; max-width: 640px; }
.section-index {
  font-family: var(--font-mono); font-size: 13px; color: var(--violet-ink);
  background: var(--violet-dim); border-radius: var(--radius); padding: 5px 9px; margin-top: 6px; flex-shrink: 0;
}
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 10px; }
.section-head p { color: var(--slate); font-size: 15.5px; margin: 0; }

/* =========================================================
   CATALOG — numbered app index with stamp badges
   ========================================================= */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.filter-tab {
  border: 1px solid var(--line); color: var(--slate);
  font-family: var(--font-mono); font-size: 12.5px; padding: 8px 16px; border-radius: 999px;
  transition: all 0.15s;
}
.filter-tab:hover { color: var(--ink); transform: translateY(-1px); border-color: var(--ink); }
.filter-tab.active { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: none; }

.catalog-list { border-top: 1px solid var(--line); }
.catalog-row {
  display: grid; grid-template-columns: 56px 1.5fr 1.2fr auto 130px;
  align-items: center; gap: 16px; padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.catalog-row:hover {
  background: var(--paper-alt); transform: translateX(4px);
  box-shadow: -4px 0 0 var(--violet);
}
.row-index { font-family: var(--font-mono); font-size: 13px; color: var(--slate-soft); }
.row-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.row-cat { color: var(--slate); font-size: 14px; }

.stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  padding: 5px 11px; border-radius: 999px; border: 1px solid transparent; width: fit-content;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stamp.live { color: var(--stamp); border-color: var(--stamp); background: var(--stamp-dim); }
.stamp.soon { color: var(--amber); border-color: var(--amber); background: var(--amber-dim); }
.catalog-row:hover .stamp { transform: rotate(-3deg) scale(1.05); }

.row-action {
  font-family: var(--font-mono); font-size: 12px; color: var(--violet-ink);
  border: 1px solid var(--line); padding: 7px 13px; border-radius: var(--radius);
  text-align: center; transition: border-color 0.15s;
}
.row-action:hover { border-color: var(--violet); }
.row-action.disabled { color: var(--slate-soft); pointer-events: none; }

/* =========================================================
   PROCESS
   ========================================================= */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.process-steps li { padding: 26px 22px 0 0; border-left: 1px solid var(--line); padding-left: 22px; }
.process-steps li:first-child { border-left: none; padding-left: 0; }
.process-num { font-family: var(--font-mono); font-size: 13px; color: var(--violet-ink); }
.process-steps h3 { font-size: 17px; margin: 12px 0 8px; }
.process-steps p { color: var(--slate); font-size: 14px; margin: 0; }

/* =========================================================
   TEAM — ID card style
   ========================================================= */
.id-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.id-card { background: var(--paper); padding: 30px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.id-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(20, 23, 28, 0.08); }
.id-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.id-tag { font-family: var(--font-mono); font-size: 12px; color: var(--slate-soft); }
.id-stamp { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--violet-ink); background: var(--violet-dim); padding: 4px 9px; border-radius: 999px; transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.id-card:hover .id-stamp { transform: rotate(-4deg) scale(1.06); }
.id-card h3 { font-size: 21px; margin-bottom: 6px; }
.id-role { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate); margin: 0 0 14px; }
.id-desc { color: var(--slate); font-size: 14.5px; margin: 0; }

/* =========================================================
   NOTES / BLOG — table-of-contents style list
   ========================================================= */
.notes-list { border-top: 1px solid var(--line); }
.note-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
  transition: background 0.15s, transform 0.15s;
}
.note-row:hover { background: var(--paper-alt); transform: translateX(4px); }
.note-date { font-family: var(--font-mono); font-size: 12px; color: var(--slate-soft); }
.note-body h3 { font-size: 16.5px; margin-bottom: 5px; }
.note-body p { color: var(--slate); font-size: 14px; margin: 0; }
.note-tag { font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; height: fit-content; }
.note-tag.violet { color: var(--violet-ink); background: var(--violet-dim); }
.note-tag.amber { color: var(--amber); background: var(--amber-dim); }
.note-tag.stamp { color: var(--stamp); background: var(--stamp-dim); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 12.5px; color: var(--slate); font-family: var(--font-mono); }
.form-row input, .form-row select, .form-row textarea {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); padding: 12px 14px; font-family: var(--font-body); font-size: 14.5px;
  transition: border-color 0.15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--violet); outline: none; }
.form-row textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 12px; color: var(--slate-soft); margin: 0; }

.contact-side { display: flex; flex-direction: column; }
.side-row { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.side-row:first-child { padding-top: 0; }
.side-label { font-family: var(--font-mono); font-size: 11px; color: var(--slate-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.side-value { color: var(--violet-ink); font-weight: 600; font-size: 15px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 50px 24px 26px; position: relative; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--slate); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.footer-admin-link { color: var(--slate-soft) !important; font-family: var(--font-mono); font-size: 12px !important; }
.footer-bottom {
  max-width: var(--container); margin: 22px auto 0; padding: 0 0;
  display: flex; justify-content: space-between; color: var(--slate-soft); font-size: 12.5px;
  font-family: var(--font-mono);
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-reveal="stagger"] { opacity: 1; transform: none; transition: none; }
[data-reveal="stagger"] > * { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-reveal="stagger"].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal="stagger"].is-visible > *:nth-child(1) { transition-delay: 0.02s; }
[data-reveal="stagger"].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal="stagger"].is-visible > *:nth-child(3) { transition-delay: 0.14s; }
[data-reveal="stagger"].is-visible > *:nth-child(4) { transition-delay: 0.2s; }
[data-reveal="stagger"].is-visible > *:nth-child(5) { transition-delay: 0.26s; }
[data-reveal="stagger"].is-visible > *:nth-child(6) { transition-delay: 0.32s; }
[data-reveal="stagger"].is-visible > *:nth-child(7) { transition-delay: 0.38s; }
[data-reveal="stagger"].is-visible > *:nth-child(8) { transition-delay: 0.44s; }
[data-reveal="stagger"].is-visible > *:nth-child(9) { transition-delay: 0.5s; }

/* =========================================================
   EASTER EGGS — gift boxes, confetti, scratch card, toast
   ========================================================= */
.explore-hint {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--slate-soft);
  margin-top: 22px;
}

.gift-box {
  position: absolute; font-size: 22px; line-height: 1; border: none; background: none;
  cursor: pointer; padding: 6px; opacity: 0.55; transition: transform 0.2s ease, opacity 0.2s ease;
  filter: grayscale(0.3);
}
.gift-box:hover { transform: scale(1.25) rotate(-8deg); opacity: 1; filter: grayscale(0); }
.gift-box.found { opacity: 0.2; pointer-events: none; filter: grayscale(1); transform: scale(0.85); }
.cover .gift-box { top: 26px; right: 18px; }
.catalog .gift-box { bottom: 14px; left: 6px; }
.team .gift-box { top: 8px; right: 4px; }
.notes .gift-box { bottom: 10px; right: 10px; }
.footer .gift-box { top: 12px; right: 20px; }

.gift-counter {
  position: fixed; left: 18px; bottom: 18px; z-index: 60;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--slate);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; box-shadow: 0 6px 18px rgba(20,23,28,0.08);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.gift-counter.bump { transform: scale(1.12); }

.egg-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  max-width: min(420px, 86vw); background: var(--ink); color: var(--paper);
  font-size: 13.5px; line-height: 1.5; padding: 14px 20px; border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20,23,28,0.25); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.egg-toast.show { opacity: 1; transform: translate(-50%, 0); }

.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti-piece {
  position: absolute; top: -12px; width: 8px; height: 14px; opacity: 0.9;
  border-radius: 1px;
}

/* ============ SCRATCH CARD ============ */
.scratch-section { text-align: center; }
.scratch-card {
  position: relative; max-width: 480px; height: 150px; margin: 0 auto;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
}
.scratch-reveal {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--violet-ink); background: var(--violet-dim); text-align: center; line-height: 1.4;
}
.scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.scratch-canvas.cleared { opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .cover-facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .process-steps li:nth-child(3) { border-left: none; padding-left: 0; }
  .id-cards { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .catalog-row { grid-template-columns: 40px 1.4fr 1fr 100px; }
  .row-action { display: none; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 18px 24px; gap: 16px;
    transform: translateY(-140%); transition: transform 0.2s;
  }
  .nav-links.open { transform: translateY(0); }
  .burger { display: flex; }
  .cover { padding-top: 70px; }
  .cover-facts { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps li { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .process-steps li:first-child { border-top: none; padding-top: 0; }
  section { padding: 60px 20px; }
  .catalog-row { grid-template-columns: 32px 1fr 90px; }
  .row-cat, .row-action { display: none; }
  .note-row { grid-template-columns: 1fr; gap: 8px; }
  .gift-counter { left: 10px; bottom: 10px; font-size: 11.5px; padding: 7px 11px; }
  .gift-box { font-size: 18px; }
}
