/* Garden Atelier – cinematic Kleingarten auth
   Motion: cinema easing, staggered reveal, foliage drift
   Accessibility: prefers-reduced-motion fully honored */

body.theme-entry {
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

.entry-header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 0.85rem 1rem 0 0;
  pointer-events: none;
}
.entry-header-inner { display: flex; justify-content: flex-end; }
.entry-header .brand-prestige { display: none; }
.entry-header-actions { pointer-events: auto; }
.entry-header:not(:has(.entry-header-actions)) { display: none; }
.entry-footer { display: none; }

.flash-stack {
  position: fixed;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--z-preview) + 1);
  width: min(26.5rem, calc(100% - 2rem));
}

/* —— Shell —— */
.atelier {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.4rem 1.1rem 1.6rem;
}

.atelier-stage {
  position: relative;
  z-index: var(--z-content);
  width: min(27rem, 100%);
  display: grid;
  gap: 1rem;
  justify-items: center;
}

/* —— Cinema background —— */
.cinema {
  position: fixed;
  inset: 0;
  z-index: var(--z-atm);
  pointer-events: none;
  overflow: hidden;
}

.cinema-photo {
  position: absolute;
  inset: -4%;
  background-color: var(--bg);
  background-image:
    var(--overlay),
    var(--atmosphere-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.08) translate3d(0, 0, 0);
  will-change: transform;
  animation: cinemaKen 42s var(--ease-cinema) infinite alternate;
  filter: var(--cinema-filter);
}

.cinema-grade {
  position: absolute;
  inset: 0;
  background: var(--cinema-grade);
  mix-blend-mode: normal;
}

.cinema-vignette {
  position: absolute;
  inset: 0;
  background: var(--cinema-vignette);
}

.cinema-bokeh i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bokeh-color) 0%, transparent 70%);
  opacity: var(--bokeh-opacity);
  filter: blur(1px);
  animation: bokehPulse 9s var(--ease-cinema) infinite;
}
.cinema-bokeh i:nth-child(1) { width: 7px; height: 7px; left: 14%; top: 28%; animation-delay: 0s; }
.cinema-bokeh i:nth-child(2) { width: 11px; height: 11px; left: 72%; top: 18%; animation-delay: 1.4s; }
.cinema-bokeh i:nth-child(3) { width: 6px; height: 6px; left: 58%; top: 62%; animation-delay: 2.8s; }
.cinema-bokeh i:nth-child(4) { width: 9px; height: 9px; left: 28%; top: 70%; animation-delay: 0.7s; }
.cinema-bokeh i:nth-child(5) { width: 5px; height: 5px; left: 84%; top: 48%; animation-delay: 3.5s; }
.cinema-bokeh i:nth-child(6) { width: 8px; height: 8px; left: 42%; top: 22%; animation-delay: 4.2s; }

.cinema-pollen span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--pollen-color);
  opacity: 0;
  animation: pollenRise linear infinite;
}

/* —— Winter snow (micro-atmosphere) —— */
.cinema-snow {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

html[data-theme="winter"] .cinema-snow {
  display: block;
}

html[data-theme="winter"] .cinema-foliage {
  opacity: 0 !important;
  visibility: hidden;
}

html[data-theme="winter"] .cinema-pollen {
  opacity: 0.35;
}

.snowflake {
  --n: 1;
  position: absolute;
  top: -8%;
  left: 50%;
  width: 6px;
  height: 6px;
  color: color-mix(in srgb, #eef6fa 88%, #b8c8d0);
  opacity: 0;
  filter: drop-shadow(0 0 2px rgba(220, 235, 245, 0.55));
  will-change: transform, opacity;
  animation-name: snowFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: calc(11s + (var(--n) * 0.42s));
  animation-delay: calc(var(--n) * -0.72s);
}

.snowflake:nth-child(odd) { width: 4px; height: 4px; }
.snowflake:nth-child(3n) { width: 7px; height: 7px; }

.snow-v1 {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #dce8f0 55%, transparent 72%);
  box-shadow: 0 0 6px rgba(230, 240, 248, 0.55);
}

.snow-v2 {
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat,
    linear-gradient(45deg, transparent 42%, currentColor 42%, currentColor 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, currentColor 42%, currentColor 58%, transparent 58%);
  border-radius: 1px;
  opacity: 0;
}

.snow-v3 {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(200, 220, 230, 0.35) 55%, transparent 70%);
  filter: blur(0.4px);
}

.snowflake:nth-child(1)  { left: 3%;  animation-duration: 13s; }
.snowflake:nth-child(2)  { left: 9%;  animation-duration: 17s; }
.snowflake:nth-child(3)  { left: 14%; animation-duration: 12s; }
.snowflake:nth-child(4)  { left: 19%; animation-duration: 19s; }
.snowflake:nth-child(5)  { left: 24%; animation-duration: 14s; }
.snowflake:nth-child(6)  { left: 30%; animation-duration: 21s; }
.snowflake:nth-child(7)  { left: 36%; animation-duration: 15s; }
.snowflake:nth-child(8)  { left: 41%; animation-duration: 18s; }
.snowflake:nth-child(9)  { left: 47%; animation-duration: 12.5s; }
.snowflake:nth-child(10) { left: 52%; animation-duration: 20s; }
.snowflake:nth-child(11) { left: 58%; animation-duration: 16s; }
.snowflake:nth-child(12) { left: 63%; animation-duration: 22s; }
.snowflake:nth-child(13) { left: 68%; animation-duration: 13.5s; }
.snowflake:nth-child(14) { left: 74%; animation-duration: 18.5s; }
.snowflake:nth-child(15) { left: 79%; animation-duration: 15.5s; }
.snowflake:nth-child(16) { left: 84%; animation-duration: 23s; }
.snowflake:nth-child(17) { left: 89%; animation-duration: 14.5s; }
.snowflake:nth-child(18) { left: 94%; animation-duration: 19.5s; }
.snowflake:nth-child(19) { left: 6%;  animation-duration: 24s; animation-delay: -3s; }
.snowflake:nth-child(20) { left: 17%; animation-duration: 16.5s; animation-delay: -5s; }
.snowflake:nth-child(21) { left: 28%; animation-duration: 21.5s; animation-delay: -2s; }
.snowflake:nth-child(22) { left: 39%; animation-duration: 13.8s; animation-delay: -7s; }
.snowflake:nth-child(23) { left: 50%; animation-duration: 25s; animation-delay: -4s; }
.snowflake:nth-child(24) { left: 61%; animation-duration: 17.2s; animation-delay: -6s; }
.snowflake:nth-child(25) { left: 72%; animation-duration: 14.2s; animation-delay: -1s; }
.snowflake:nth-child(26) { left: 81%; animation-duration: 20.5s; animation-delay: -8s; }
.snowflake:nth-child(27) { left: 91%; animation-duration: 15.8s; animation-delay: -3.5s; }
.snowflake:nth-child(28) { left: 45%; animation-duration: 18.2s; animation-delay: -9s; }
.snowflake:nth-child(29) { left: 11%; animation-duration: 22.5s; animation-delay: -2.5s; }
.snowflake:nth-child(30) { left: 33%; animation-duration: 16.8s; animation-delay: -6.5s; }
.snowflake:nth-child(31) { left: 55%; animation-duration: 19.8s; animation-delay: -4.5s; }
.snowflake:nth-child(32) { left: 66%; animation-duration: 13.2s; animation-delay: -7.5s; }
.snowflake:nth-child(33) { left: 77%; animation-duration: 21.2s; animation-delay: -1.5s; }
.snowflake:nth-child(34) { left: 22%; animation-duration: 24.5s; animation-delay: -5.5s; }
.snowflake:nth-child(35) { left: 88%; animation-duration: 17.8s; animation-delay: -8.5s; }
.snowflake:nth-child(36) { left: 42%; animation-duration: 15.2s; animation-delay: -3.2s; }

.drift-leaf {
  position: absolute;
  width: 18px;
  height: auto;
  color: var(--foliage-color);
  opacity: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  will-change: transform, opacity;
  animation-name: leafCinema;
  animation-timing-function: cubic-bezier(0.33, 0.02, 0.28, 1);
  animation-iteration-count: infinite;
}

.leaf-1  { left: 6%;  top: -8%;  width: 16px; animation-duration: 18s; animation-delay: 0s; }
.leaf-2  { left: 14%; top: -12%; width: 22px; animation-duration: 22s; animation-delay: 2.2s; }
.leaf-3  { left: 28%; top: -6%;  width: 14px; animation-duration: 16s; animation-delay: 5.1s; }
.leaf-4  { left: 41%; top: -14%; width: 19px; animation-duration: 24s; animation-delay: 1.1s; }
.leaf-5  { left: 55%; top: -9%;  width: 15px; animation-duration: 19s; animation-delay: 7.4s; }
.leaf-6  { left: 67%; top: -11%; width: 21px; animation-duration: 21s; animation-delay: 3.6s; }
.leaf-7  { left: 76%; top: -7%;  width: 13px; animation-duration: 17s; animation-delay: 8.8s; }
.leaf-8  { left: 86%; top: -13%; width: 18px; animation-duration: 23s; animation-delay: 4.5s; }
.leaf-9  { left: 22%; top: -16%; width: 11px; animation-duration: 20s; animation-delay: 10.2s; }
.leaf-10 { left: 93%; top: -5%;  width: 17px; animation-duration: 25s; animation-delay: 6.3s; }

/* —— Card —— */
.atelier-card {
  position: relative;
  width: 100%;
  padding: 2rem 1.55rem 1.55rem;
  border-radius: 1.65rem;
  isolation: isolate;
  background:
    linear-gradient(165deg,
      color-mix(in srgb, var(--card) 88%, white 6%) 0%,
      color-mix(in srgb, var(--card-solid) 92%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px color-mix(in srgb, var(--gold) 12%, transparent),
    0 30px 80px rgba(0, 0, 0, 0.48),
    0 0 60px color-mix(in srgb, var(--glow) 35%, transparent);
  backdrop-filter: blur(22px) saturate(1.2);
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow;
}

.card-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--highlight) 40%, transparent),
    transparent 38%,
    color-mix(in srgb, var(--gold) 28%, transparent));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.55;
}

.card-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 36%, transparent 64%, rgba(255, 255, 255, 0.03));
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

.atelier-header {
  text-align: center;
  margin-bottom: 1.45rem;
}

.seal {
  position: relative;
  width: 4.1rem;
  height: 4.1rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
}

.seal img {
  position: relative;
  z-index: 1;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: block;
}

.seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px var(--brand-ring),
    0 0 28px var(--glow),
    0 0 42px var(--glow-gold);
  animation: sealPulse 5.5s var(--ease-cinema) infinite;
}

.atelier-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.4vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.35;
}

.atelier-brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.atelier-header h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.45rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text);
  text-wrap: balance;
}

.atelier-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* —— Form —— */
.atelier-form {
  display: grid;
  gap: 0.15rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  min-height: 5.25rem;
}

.field-shell {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 15px;
  border: 0;
  background: var(--neu-field);
  box-shadow:
    inset 10px 10px 20px var(--neu-inset-dark),
    inset -10px -10px 20px var(--neu-inset-light),
    inset 0 0 0 1px color-mix(in srgb, var(--neu-inset-dark) 55%, transparent);
  transition:
    box-shadow var(--motion-med) var(--ease-cinema),
    transform var(--motion-fast) var(--ease-cinema),
    background var(--motion-med) var(--ease-cinema);
}

.field-shell:hover {
  box-shadow:
    inset 9px 9px 18px var(--neu-inset-dark),
    inset -9px -9px 18px var(--neu-inset-light),
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 22%, transparent);
}

.field-shell:focus-within {
  transform: scale(0.985);
  box-shadow:
    inset 5px 5px 12px var(--neu-inset-dark),
    inset -5px -5px 12px var(--neu-inset-light),
    0 0 0 2px color-mix(in srgb, var(--highlight) 32%, transparent),
    0 0 24px color-mix(in srgb, var(--glow) 45%, transparent);
}

.field-ico {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  color: var(--muted);
  pointer-events: none;
  transition: color var(--motion-fast) var(--ease-cinema);
}
.field-ico svg { width: 100%; height: 100%; }
.field-shell:focus-within .field-ico { color: var(--highlight); }

.field-shell input {
  width: 100%;
  min-height: 3.55rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  padding: 1.25rem 1.1rem 0.55rem 3.35rem;
}

.field-shell.has-action input { padding-right: 3.35rem; }
.field-shell input::placeholder { color: transparent; }

.field-shell label {
  position: absolute;
  left: 3.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  pointer-events: none;
  transition:
    top var(--motion-med) var(--ease-cinema),
    font-size var(--motion-med) var(--ease-cinema),
    color var(--motion-med) var(--ease-cinema),
    transform var(--motion-med) var(--ease-cinema);
}

.field-shell input:focus + label,
.field-shell input:not(:placeholder-shown) + label {
  top: 0.48rem;
  transform: none;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.field-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--neu-field);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    4px 4px 10px var(--neu-raise-dark),
    -4px -4px 10px var(--neu-raise-light);
  transition:
    color var(--motion-fast) var(--ease-cinema),
    box-shadow var(--motion-fast) var(--ease-cinema),
    transform var(--motion-fast) var(--ease-cinema);
}

.field-toggle:hover {
  color: var(--highlight);
}

.field-toggle:active,
.field-toggle.show-password {
  box-shadow:
    inset 3px 3px 7px var(--neu-inset-dark),
    inset -3px -3px 7px var(--neu-inset-light);
}

.field-toggle:focus-visible {
  outline: none;
  box-shadow:
    4px 4px 10px var(--neu-raise-dark),
    -4px -4px 10px var(--neu-raise-light),
    var(--focus-ring);
}

.field-toggle svg { width: 1.1rem; height: 1.1rem; }
.field-toggle .eye-closed { display: none; }
.field-toggle.show-password .eye-open { display: none; }
.field-toggle.show-password .eye-closed { display: block; }

.field-msg {
  margin: 0;
  min-height: 1.1rem;
  padding-inline: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.field.has-error .field-msg { color: var(--danger); }
.field.has-error .field-shell {
  box-shadow:
    inset 7px 7px 14px color-mix(in srgb, var(--danger) 28%, var(--neu-inset-dark)),
    inset -7px -7px 14px var(--neu-inset-light),
    0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent);
}

.form-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0.35rem 0 1rem;
}

.form-meta-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--motion-fast) var(--ease-cinema);
}
.form-meta-link:hover { color: var(--highlight); }

.remember-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  min-width: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.remember-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.remember-box {
  position: relative;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  color: transparent;
  background: var(--neu-field);
  box-shadow:
    inset 5px 5px 10px var(--neu-inset-dark),
    inset -5px -5px 10px var(--neu-inset-light),
    inset 0 0 0 1px color-mix(in srgb, var(--neu-inset-dark) 50%, transparent);
  transition:
    background var(--motion-fast) var(--ease-cinema),
    box-shadow var(--motion-fast) var(--ease-cinema),
    color var(--motion-fast) var(--ease-cinema),
    transform var(--motion-fast) var(--ease-cinema);
}

.remember-box svg {
  width: 0.78rem;
  height: 0.78rem;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity var(--motion-fast) var(--ease-cinema),
    transform var(--motion-fast) var(--ease-cinema);
}

.remember-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.remember-title {
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.remember-hint {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.remember-toggle:hover .remember-box {
  box-shadow:
    inset 4px 4px 9px var(--neu-inset-dark),
    inset -4px -4px 9px var(--neu-inset-light),
    inset 0 0 0 1px color-mix(in srgb, var(--gold) 28%, transparent);
}

.remember-toggle:hover .remember-title {
  color: var(--text);
}

.remember-toggle input:focus-visible + .remember-box {
  box-shadow:
    inset 4px 4px 9px var(--neu-inset-dark),
    inset -4px -4px 9px var(--neu-inset-light),
    0 0 0 2px color-mix(in srgb, var(--highlight) 40%, transparent),
    0 0 16px color-mix(in srgb, var(--glow) 35%, transparent);
}

.remember-toggle input:checked + .remember-box {
  color: #1a1408;
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--gold) 88%, white 8%),
      color-mix(in srgb, var(--highlight) 72%, var(--gold)));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent),
    0 6px 16px color-mix(in srgb, var(--glow-gold, var(--glow)) 40%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent);
}

.remember-toggle input:checked + .remember-box svg {
  opacity: 1;
  transform: scale(1);
}

.remember-toggle input:checked ~ .remember-copy .remember-title {
  color: var(--text);
}

@media (max-width: 420px) {
  .form-meta {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .form-meta-link {
    margin-left: 2.05rem;
  }
}

.atelier-submit {
  position: relative;
  width: 100%;
  min-height: 3.35rem;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  overflow: hidden;
  background: var(--btn-grad);
  color: #08140c;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    8px 8px 18px color-mix(in srgb, var(--neu-raise-dark) 85%, transparent),
    -6px -6px 16px color-mix(in srgb, var(--neu-raise-light) 35%, transparent),
    0 14px 34px color-mix(in srgb, var(--primary) 24%, transparent);
  transition:
    transform var(--motion-fast) var(--ease-cinema),
    filter var(--motion-fast) var(--ease-cinema),
    box-shadow var(--motion-fast) var(--ease-cinema);
}

.submit-glow {
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: submitSheen 4.8s var(--ease-cinema) infinite;
}

.submit-label { position: relative; z-index: 1; }

.atelier-submit:hover {
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 18px 40px color-mix(in srgb, var(--primary) 38%, transparent);
}

.atelier-submit:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    inset 4px 4px 10px rgba(0, 0, 0, 0.22),
    inset -2px -2px 6px rgba(255, 255, 255, 0.18);
}

.atelier-submit:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 14px 34px color-mix(in srgb, var(--primary) 28%, transparent);
}

.atelier-submit.is-disabled,
.atelier-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.atelier-switch {
  margin: 1.05rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.atelier-switch a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-cinema);
}
.atelier-switch a:hover { color: var(--highlight); }

.atelier-club-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.85rem;
  text-align: center;
  color: color-mix(in srgb, var(--muted) 70%, var(--gold));
  font-size: 0.82rem;
  font-weight: 500;
}

.atelier-club-links a {
  color: color-mix(in srgb, var(--gold) 88%, var(--text));
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-cinema);
}

.atelier-club-links a:hover {
  color: var(--highlight);
}

.atelier-club-links span {
  opacity: 0.45;
}

.atelier-legal {
  margin: 0;
  text-align: center;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  font-size: 0.78rem;
}
.atelier-legal a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-cinema);
}
.atelier-legal a:hover { color: var(--gold); }

/* —— Reveal choreography —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 0.7s var(--ease-cinema) forwards;
}
[data-reveal="1"] { animation-delay: 0.08s; }
[data-reveal="2"] { animation-delay: 0.16s; }
[data-reveal="3"] { animation-delay: 0.24s; }
[data-reveal="4"] { animation-delay: 0.32s; }
[data-reveal="5"] { animation-delay: 0.4s; }
[data-reveal="6"] { animation-delay: 0.48s; }
[data-reveal="7"] { animation-delay: 0.56s; }
[data-reveal="8"] { animation-delay: 0.64s; }
[data-reveal="9"] { animation-delay: 0.72s; }

.atelier-card {
  animation: cardEnter 0.85s var(--ease-cinema) both;
}

/* —— Keyframes —— */
@keyframes cinemaKen {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.4%, 1.1%, 0); }
}

@keyframes bokehPulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.32; transform: scale(1.35); }
}

@keyframes pollenRise {
  0% { transform: translate3d(0, 12px, 0); opacity: 0; }
  12% { opacity: 0.55; }
  100% { transform: translate3d(-12px, -70px, 0); opacity: 0; }
}

@keyframes leafCinema {
  0% {
    transform: translate3d(0, -6vh, 0) rotate(0deg) scale(0.9);
    opacity: 0;
  }
  8% { opacity: 0.55; }
  35% {
    transform: translate3d(3.5vw, 32vh, 0) rotate(95deg) scale(1);
    opacity: 0.42;
  }
  70% {
    transform: translate3d(-2.5vw, 72vh, 0) rotate(210deg) scale(0.95);
    opacity: 0.28;
  }
  100% {
    transform: translate3d(2vw, 112vh, 0) rotate(320deg) scale(0.85);
    opacity: 0;
  }
}

@keyframes snowFall {
  0% {
    transform: translate3d(0, -4vh, 0) rotate(0deg);
    opacity: 0;
  }
  6% { opacity: 0.75; }
  25% {
    transform: translate3d(2.2vw, 24vh, 0) rotate(90deg);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(-2.8vw, 52vh, 0) rotate(180deg);
    opacity: 0.65;
  }
  75% {
    transform: translate3d(1.6vw, 78vh, 0) rotate(270deg);
    opacity: 0.45;
  }
  100% {
    transform: translate3d(-1.2vw, 108vh, 0) rotate(360deg);
    opacity: 0;
  }
}

@keyframes sealPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes submitSheen {
  0%, 55% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(280%) skewX(-18deg); }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.975);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .atelier {
    align-items: flex-start;
    padding-top: 0.9rem;
  }
  .atelier-card { padding: 1.55rem 1.15rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-photo,
  .cinema-bokeh i,
  .cinema-pollen span,
  .drift-leaf,
  .snowflake,
  .seal-ring,
  .submit-glow,
  .atelier-card,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  html[data-theme="winter"] .snowflake {
    opacity: 0.35 !important;
    top: auto;
  }
  html[data-theme="winter"] .snowflake:nth-child(n+9) {
    display: none;
  }

  .cinema-photo { transform: none; }
  .field-shell:focus-within,
  .atelier-submit:hover,
  .atelier-submit:active {
    transform: none;
  }
}
