/* Page L'atelier — préfixe .at- */

.at-page {
  background: #fff;
  color: var(--color-navy, #1E3557);
  overflow-x: clip;
}

/* —— HERO —— */
.at-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #fff;
  touch-action: pan-y;
}
.at-paint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.at-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(76px + clamp(24px, 5vh, 56px)) clamp(20px, 4vw, 56px) clamp(28px, 5vh, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.at-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.at-hero-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.at-meta-line {
  width: 28px;
  height: 2px;
  background: var(--color-coral, #FF8D7A);
  flex-shrink: 0;
}
.at-hero-title {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  font-weight: 900;
  font-size: clamp(88px, 21vw, 380px);
  line-height: 1;
  letter-spacing: -0.02em;
  gap: 0.015em;
}
.at-hlet {
  display: inline-block;
  overflow: visible;
  line-height: 1;
  padding: 0 0.01em;
}
.at-hline {
  display: inline-block;
  font-weight: 900;
  line-height: 1;
}
.at-hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}
.at-hero-lead {
  margin: 0;
  max-width: 22em;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  font-weight: 700;
  text-wrap: balance;
}
.at-paint-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Bimbo, 'Gochi Hand', cursive;
  font-size: clamp(22px, 2vw, 30px);
  transform: rotate(-3deg);
}
.at-hint-coarse { display: none; }
@media (hover: none), (pointer: coarse) {
  .at-hint-fine { display: none; }
  .at-hint-coarse { display: inline; }
}
@media (max-width: 899px) {
  .at-hint-fine { display: none; }
  .at-hint-coarse { display: inline; }
}
@media (max-width: 899px), (hover: none), (pointer: coarse) {
  body:not(.is-edit) .at-bureau-hint { display: none; }
}
.at-paint-arrow {
  width: 44px;
  height: 32px;
  color: var(--color-coral, #FF8D7A);
}

body.is-edit .at-paint { pointer-events: none; opacity: 0.35; }

/* —— MÉTHODE —— */
.at-mt {
  position: relative;
  background: #faf9f7;
}
.at-mt-stage {
  position: relative;
  overflow: hidden;
}
.at-mt-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(84px, 8vh, 104px) clamp(20px, 4vw, 56px) clamp(36px, 6vh, 64px);
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px clamp(32px, 5vw, 80px);
}
.at-mt-copy {
  flex: 1.2 1 460px;
  min-width: 0;
}
.at-mt-flat {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.at-mt-flat-item .at-mt-verb {
  font-weight: 900;
  font-size: clamp(40px, 5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.at-mt-flat-item .at-mt-desc {
  margin: 10px 0 0;
  max-width: 26em;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
}
.at-mt-live {
  display: none;
  flex-direction: column;
}
.at-mt-verb-mask {
  width: 100%;
  height: 1.18em;
  overflow: hidden;
  font-weight: 900;
  font-size: clamp(48px, 5.8vw, 112px);
  line-height: 1.18;
  letter-spacing: -0.055em;
}
.at-mt-verbs {
  display: flex;
  flex-direction: column;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.at-mt-verb-slide {
  display: flex;
  align-items: center;
  height: 1.18em;
  white-space: nowrap;
  transform-origin: 0 50%;
}
.at-mt-desc-mask {
  margin-top: 20px;
  height: 4.8em;
  overflow: hidden;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  font-weight: 600;
  max-width: 26em;
}
.at-mt-descs {
  display: flex;
  flex-direction: column;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1) 0.06s;
}
.at-mt-desc-slide {
  display: block;
  height: 4.8em;
}
.at-mt-bars {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  max-width: 360px;
}
.at-mt-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.at-mt-bar-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(30, 53, 87, 0.16);
  position: relative;
  overflow: hidden;
  display: block;
}
.at-mt-bar {
  position: absolute;
  inset: 0;
  background: var(--color-navy, #1E3557);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.at-mt-scene {
  flex: 1 1 480px;
  min-width: 0;
  position: relative;
  height: min(64vh, 620px);
  min-height: 420px;
}
.at-mt-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(66%, 340px);
  aspect-ratio: 4 / 5;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 6px 40px 6px 40px;
  box-shadow: 0 40px 80px -36px rgba(30, 53, 87, 0.55);
  overflow: hidden;
  z-index: 2;
}
.at-ly {
  position: absolute;
  inset: 0;
}
.at-ly-brief {
  padding: 10%;
  display: flex;
  flex-direction: column;
  gap: 9%;
}
.at-brief-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.at-brief-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.at-brief-lines span {
  height: 9px;
  border-radius: 5px;
  background: var(--color-sky, #EDF4FF);
}
.at-brief-lines span:nth-child(1) { width: 92%; }
.at-brief-lines span:nth-child(2) { width: 74%; }
.at-brief-lines span:nth-child(3) { width: 84%; }
.at-brief-lines span:nth-child(4) { width: 56%; }
.at-brief-note {
  margin-top: auto;
  font-family: Bimbo, 'Gochi Hand', cursive;
  font-size: 22px;
  line-height: 1.2;
}
.at-ly-mood {
  padding: 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  opacity: 0;
}
.at-mood-tile {
  border-radius: 4px;
  background-repeat: no-repeat;
}
.at-ly-logo {
  padding: 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10%;
  opacity: 0;
}
.at-logo-mark {
  background-repeat: no-repeat;
}
.at-pal-row {
  display: flex;
  justify-content: space-between;
}
.at-pal-dot {
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(30, 53, 87, 0.12);
}
.at-ly-final {
  opacity: 0;
  background-repeat: no-repeat;
}

.at-sat {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  will-change: transform;
}
.at-sat-quote {
  background: var(--color-navy, #1E3557);
  color: var(--color-sky, #EDF4FF);
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 18px 30px -18px rgba(30, 53, 87, 0.6);
}
.at-sat-img {
  background: #fff;
  padding: 6px;
  box-shadow: 0 20px 34px -20px rgba(30, 53, 87, 0.6);
}
.at-sat-img > div {
  background-repeat: no-repeat;
}
.at-sat-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff, 0 18px 30px -18px rgba(30, 53, 87, 0.6);
}
.at-sat-type {
  background: #fff;
  padding: 10px 14px;
  border-radius: 4px 18px 4px 18px;
  box-shadow: 0 18px 30px -18px rgba(30, 53, 87, 0.6);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.at-sat-aa {
  font-weight: 900;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.03em;
}
.at-sat-type span:last-child {
  font-size: 12px;
  font-weight: 700;
}

/* —— JOURNÉE —— */
.at-day {
  position: relative;
  background: var(--color-sky, #EDF4FF);
}
.at-day-stage {
  position: relative;
  overflow: hidden;
  color: var(--color-navy, #1E3557);
  background: var(--color-sky, #EDF4FF);
  --sky: #EDF4FF;
}
.at-day-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}
.at-day.is-scene .at-day-sky { display: block; }
.at-day.is-scene .at-day-stage {
  height: 100vh;
  height: 100svh;
}
.at-day-beam {
  position: absolute;
  left: -30%;
  right: -30%;
  top: -40%;
  bottom: -40%;
  display: flex;
  justify-content: center;
  gap: 5vw;
  opacity: 0;
  --beam: rgba(255, 255, 255, 0.55);
  will-change: transform, opacity;
}
.at-day-beam span {
  flex: none;
  width: 9vw;
  background: linear-gradient(90deg, transparent, var(--beam) 35%, var(--beam) 65%, transparent);
}
.at-day-beam span:nth-child(2) { width: 14vw; }
.at-day-beam span:nth-child(3) { width: 5vw; }
.at-day-leaf {
  position: absolute;
  right: 0;
  top: 0;
  width: min(52vw, 760px);
  height: 86%;
  background: currentColor;
  opacity: 0.05;
  transform: scaleX(-1);
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 200%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 0 L176 0 C 166 26 132 30 118 54 C 102 82 126 106 98 128 C 70 148 38 120 20 142 C 6 158 12 186 0 198 Z%22/%3E%3C/svg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 200%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 0 L176 0 C 166 26 132 30 118 54 C 102 82 126 106 98 128 C 70 148 38 120 20 142 C 6 158 12 186 0 198 Z%22/%3E%3C/svg%3E');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.at-day-stars {
  position: absolute;
  inset: 0 0 45% 0;
  opacity: 0;
}
.at-day-stars span {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #EDF4FF;
  box-shadow: 0 0 8px 2px rgba(237, 244, 255, 0.5);
  animation: at-twinkle 2.6s ease-in-out var(--d) infinite;
}
@keyframes at-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.6); }
}
.at-day-arc {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 46%;
  height: 62%;
  overflow: visible;
  color: inherit;
}
.at-day-sun {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: none;
  width: clamp(90px, 11vw, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-coral, #FF8D7A);
  box-shadow: 0 0 0 18px rgba(255, 141, 122, 0.18), 0 0 0 44px rgba(255, 141, 122, 0.08);
}
.at-day-moon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sky);
  transform: translate3d(130%, -130%, 0);
}
.at-day-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(84px, 8vh, 104px) clamp(20px, 4vw, 56px) clamp(56px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
}
.at-day.is-scene .at-day-inner {
  height: 100%;
  padding-bottom: clamp(28px, 5vh, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "head desk" "live desk" "ruler ruler";
  gap: clamp(20px, 3vh, 32px) clamp(32px, 5vw, 96px);
}
.at-day-head { grid-area: head; }
.at-day-edit-notes {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.8;
}
.at-day-edit-notes .hand {
  font-size: 22px;
  color: var(--color-coral, #FF8D7A);
}
.at-day-line { background: currentColor; }
.at-day-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.at-day-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 48px clamp(24px, 3vw, 40px);
}
.at-day.is-scene .at-day-list { display: none; }
.at-hour {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.at-hour-pol {
  margin: 0 0 14px;
  padding: 10px 10px 34px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 24px 40px -26px rgba(30, 53, 87, 0.5);
  transform: rotate(-2deg);
}
.at-hour:nth-child(even) .at-hour-pol { transform: rotate(2.5deg); }
.at-hour-time {
  font-weight: 200;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.at-hour-copy { max-width: 30em; }
.at-hour-label {
  font-weight: 900;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
}
.at-hour-desc {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.at-pol-img {
  width: 100%;
  border-radius: 2px;
  background: var(--color-sky, #EDF4FF);
}
.at-pol-ph {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 141, 122, 0.35) 0 18%, transparent 19%),
    linear-gradient(160deg, #EDF4FF, #D9E6F7);
}
.at-pol-img.is-empty .at-pol-ph { display: flex; }
.at-pol-ph b {
  font-weight: 200;
  font-size: clamp(30px, 3.4vw, 52px);
  letter-spacing: -0.04em;
  color: var(--color-navy, #1E3557);
  font-variant-numeric: tabular-nums;
}

.at-day-live {
  grid-area: live;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(16px, 2.4vh, 28px);
  min-height: 0;
}
.at-day.is-scene .at-day-live { display: flex; }
.at-clock {
  --dh: 1em;
  display: flex;
  align-items: flex-start;
  margin: -0.1em 0 -0.12em;
  font-weight: 900;
  font-size: clamp(96px, min(15vw, 24vh), 240px);
  line-height: var(--dh);
  letter-spacing: -0.06em;
  font-variant-numeric: lining-nums tabular-nums;
}
.at-clock-dg {
  display: block;
  height: var(--dh);
  overflow: hidden;
  margin-right: -0.05em;
}
.at-clock-reel {
  display: flex;
  flex-direction: column;
}
.at-clock-reel span {
  display: block;
  height: var(--dh);
}
.at-clock-sep {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 0.16em;
  margin: 0 0.05em 0 0.07em;
}
.at-clock-sep i {
  display: block;
  width: 0.13em;
  height: 0.13em;
  border-radius: 50%;
  background: var(--color-coral, #FF8D7A);
  animation: at-blink 2s ease-in-out infinite;
}
@keyframes at-blink {
  50% { opacity: 0.3; }
}
.at-day-act {
  max-width: 460px;
  min-width: 0;
}
.at-act-t-mask {
  height: 1.3em;
  overflow: hidden;
  font-weight: 900;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.at-act-t {
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.at-act-t > span {
  display: block;
  height: 1.3em;
  white-space: nowrap;
}
.at-act-d-mask {
  margin-top: 8px;
  height: 3em;
  overflow: hidden;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  font-weight: 600;
}
.at-act-d {
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.05s;
}
.at-act-d > span {
  display: block;
  height: 3em;
}
/* Bureau de la journée : pile de polaroids */
.at-desk {
  grid-area: desk;
  position: relative;
  display: none;
  min-height: 0;
  perspective: 1400px;
}
.at-day.is-scene .at-desk { display: block; }
.at-desk-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.at-pol {
  --pw: clamp(180px, min(19vw, 30vh), 300px);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--pw);
  margin: 0;
  transform: translate(-50%, -50%) translate(calc(var(--dx) * var(--spread, 1)), calc(var(--dy) * var(--spread, 1))) rotate(var(--r));
  transition: transform 0.95s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.35s ease;
}
.at-pol[data-state="future"] {
  opacity: 0;
  transform: translate(-50%, -50%) translate(var(--dx), calc(var(--dy) - 70vh)) rotate(calc(var(--r) * -2 + 14deg)) scale(1.1);
  transition: transform 0.6s cubic-bezier(0.55, 0, 0.8, 0.3), opacity 0.3s ease 0.25s;
}
.at-pol[data-state="past"] {
  transform: translate(-50%, -50%) translate(calc(var(--dx) * var(--spread, 1) * 1.15), calc(var(--dy) * var(--spread, 1) * 1.15)) rotate(var(--r)) scale(0.92);
}
.at-desk.is-closed { --spread: 0.25; }
.at-pol-card {
  position: relative;
  padding: 7% 7% 0;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 30px 50px -28px rgba(30, 53, 87, 0.55), 0 2px 6px rgba(30, 53, 87, 0.08);
  transition: box-shadow 0.6s ease, filter 0.6s ease;
}
.at-pol[data-state="now"] .at-pol-card {
  box-shadow: 0 50px 80px -34px rgba(30, 53, 87, 0.6), 0 4px 10px rgba(30, 53, 87, 0.1);
  animation: at-pol-breathe 5s ease-in-out infinite;
}
.at-pol[data-state="past"] .at-pol-card { filter: brightness(0.94) saturate(0.85); }
@keyframes at-pol-breathe {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(1.2deg) translateY(-6px); }
}
.at-pol-tape {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: -12px;
  width: 38%;
  height: 26px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(255, 141, 122, 0.78);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.28) 0 6px, transparent 6px 12px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
  mask-image: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
}
.at-pol-tape.is-blue {
  background-color: rgba(124, 156, 199, 0.8);
  transform: translateX(-30%) rotate(5deg);
}
.at-pol-cap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 3.1em;
  padding: 0.35em 0.1em 0.5em;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.1;
  color: var(--color-navy, #1E3557);
}
.at-pol-h {
  flex: none;
  color: var(--color-coral, #FF8D7A);
}
.at-desk-note,
.at-desk-bye {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1;
  pointer-events: none;
}
.at-desk-note {
  left: 0;
  bottom: 4%;
  flex-direction: row-reverse;
  transform: rotate(-5deg);
}
.at-desk-arrow { transform: scaleY(-1) rotate(-8deg); }
.at-desk-arrow {
  width: 56px;
  height: 32px;
  color: var(--color-coral, #FF8D7A);
}
.at-desk-bye {
  right: 4%;
  bottom: 4%;
  transform: rotate(-6deg) translateY(10px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.at-desk.is-closed .at-desk-bye {
  opacity: 1;
  transform: rotate(-6deg);
}
.at-desk-star {
  width: 34px;
  height: 34px;
  color: var(--color-coral, #FF8D7A);
}
.at-desk-star path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s ease 0.3s;
}
.at-desk.is-closed .at-desk-star path { stroke-dashoffset: 0; }

/* Frise horaire */
.at-ruler {
  grid-area: ruler;
  position: relative;
  display: none;
  height: 44px;
  margin: 0 8px;
}
.at-day.is-scene .at-ruler { display: block; }
.at-day.is-scene .at-day-inner,
.at-day.is-scene .at-desk,
.at-day.is-scene .at-desk-tilt { pointer-events: none; }
.at-day.is-scene .at-pol { pointer-events: auto; }
.at-day.is-scene .at-day-sun { display: block; }
.at-day.is-scene .at-day-sun,
.at-day.is-scene .at-ruler {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.at-day-sun.is-drag,
.at-ruler.is-drag { cursor: grabbing; }
.at-day-sun:focus-visible,
.at-ruler:focus-visible {
  outline: 2px solid var(--color-coral, #FF8D7A);
  outline-offset: 4px;
}
.at-ruler-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 18%, transparent);
}
.at-ruler-fill {
  position: absolute;
  inset: 0;
  background: var(--color-coral, #FF8D7A);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.at-ruler-tick {
  position: absolute;
  top: 6px;
  width: 1px;
  height: 14px;
  background: currentColor;
  opacity: 0.25;
}
.at-ruler-mark {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.at-ruler-mark i {
  display: block;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: var(--sky);
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.6, 0.64, 1);
}
.at-ruler-mark b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums tabular-nums;
}
.at-ruler-mark.is-past { opacity: 0.85; }
.at-ruler-mark.is-past i {
  background: var(--color-coral, #FF8D7A);
  border-color: var(--color-coral, #FF8D7A);
}
.at-ruler-mark.is-now { opacity: 1; }
.at-ruler-mark.is-now i { transform: scale(1.5); }
.at-ruler-mark.is-now b { font-weight: 900; }
.at-ruler-cur {
  position: absolute;
  left: 0;
  top: 13px;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--color-coral, #FF8D7A);
  box-shadow: 0 0 0 6px rgba(255, 141, 122, 0.25);
}

/* —— BUREAU —— */
.at-bureau {
  position: relative;
  background: #fff;
}
.at-bureau-head {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(88px, 8vh, 112px) clamp(20px, 4vw, 56px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}
.at-bureau-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(40px, 5.4vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.at-bureau-title .italic-light {
  white-space: nowrap;
}
.at-bureau-hint {
  font-family: Bimbo, 'Gochi Hand', cursive;
  font-size: clamp(22px, 2vw, 30px);
  transform: rotate(-4deg);
  display: inline-block;
}
.at-bureau-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(12px, 2.4vw, 40px) clamp(80px, 10vw, 140px);
}
.at-table {
  position: relative;
  height: clamp(460px, 68vh, 700px);
  background: var(--color-sky, #EDF4FF);
  border-radius: 6px 64px 6px 64px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.at-body {
  position: absolute;
  left: 0;
  top: 0;
  width: 120px;
  height: 120px;
  cursor: grab;
  will-change: transform;
  filter: drop-shadow(0 16px 18px rgba(30, 53, 87, 0.28));
}
.at-st {
  position: absolute;
  inset: 0;
}

/* Stickers */
.at-st-vinyl {
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #1E3557 0 2px, #243E63 2px 4px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.at-vinyl-label {
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-coral, #FF8D7A);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14%;
  font-weight: 900;
  font-size: 0.075em;
  white-space: nowrap;
  color: var(--color-navy, #1E3557);
  box-shadow: 0 0 0 3px #1E3557;
  background-image: radial-gradient(circle at 50% 50%, #faf9f7 0 4.5%, transparent 5%);
}

.at-st-cup {
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px #1E3557;
  display: flex;
  align-items: center;
  justify-content: center;
}
.at-st-cup::before {
  content: '';
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #C99A6E 0 18%, #7A4E34 42%, #5A3726 70%);
  box-shadow: inset 0 0 0 5px #EDE3D6;
}
.at-cup-handle {
  position: absolute;
  right: -12%;
  top: 40%;
  width: 20%;
  height: 20%;
  border: 3px solid #1E3557;
  border-left: 0;
  border-radius: 0 50% 50% 0;
  background: #fff;
}

.at-st-pantone {
  background: #fff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(30, 53, 87, 0.15);
}
.at-pantone-swatch { flex: 1; }
.at-pantone-meta {
  padding: 8% 8% 10%;
  color: var(--color-navy, #1E3557);
  white-space: nowrap;
}
.at-pantone-brand {
  font-weight: 900;
  font-size: 0.085em;
  letter-spacing: 0;
}
.at-pantone-code {
  font-weight: 600;
  font-size: 0.08em;
  margin-top: 2px;
}

.at-st-postit {
  background: linear-gradient(160deg, #FFE9A3 0%, #FFE08A 70%, #F5D06C 100%);
  border-radius: 2px 2px 22px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12%;
  font-family: Bimbo, 'Gochi Hand', cursive;
  font-size: 0.2em;
  line-height: 1.05;
  color: var(--color-navy, #1E3557);
}

.at-st-app {
  border-radius: 24%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.3em;
  letter-spacing: -0.03em;
}

.at-st-polaroid {
  background: #fff;
  padding: 7% 7% 0;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
}
.at-polaroid-img {
  width: 100%;
  aspect-ratio: 1;
  background-repeat: no-repeat;
}
.at-polaroid-cap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Bimbo, 'Gochi Hand', cursive;
  font-size: 0.14em;
  color: var(--color-navy, #1E3557);
}

.at-st-kraft {
  background: #C9A57A;
  background-image: radial-gradient(rgba(90, 55, 38, 0.18) 1px, transparent 1.4px);
  background-size: 7px 7px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10%;
  font-weight: 900;
  font-size: 0.15em;
  line-height: 1;
  color: #3F2D23;
  box-shadow: inset 0 0 0 7px #C9A57A, inset 0 0 0 9px rgba(63, 45, 35, 0.4);
}

.at-st-plant { position: absolute; inset: 0; }
.at-leaf {
  position: absolute;
}
.at-leaf-a {
  left: 18%;
  top: 2%;
  width: 34%;
  height: 52%;
  background: #5E8E47;
  border-radius: 0 100% 0 100%;
  transform: rotate(-18deg);
}
.at-leaf-b {
  right: 18%;
  top: 0;
  width: 34%;
  height: 54%;
  background: #4A7A38;
  border-radius: 100% 0 100% 0;
  transform: rotate(16deg);
}
.at-leaf-c {
  left: 40%;
  top: 6%;
  width: 22%;
  height: 44%;
  background: #6FA256;
  border-radius: 100% 0 100% 0;
}
.at-pot {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 46%;
  background: #C4532F;
  border-radius: 6px 6px 22% 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.12em;
  color: #faf9f7;
}

.at-st-notebook {
  background: var(--color-navy, #1E3557);
  border-radius: 4px 10px 10px 4px;
  display: flex;
  align-items: flex-end;
  padding: 12%;
  color: var(--color-sky, #EDF4FF);
  font-weight: 900;
  font-size: 0.15em;
  overflow: hidden;
  box-shadow: inset 6px 0 0 #152844;
}
.at-notebook-band {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 18%;
  width: 6%;
  background: var(--color-coral, #FF8D7A);
}

.at-st-tape {
  border-radius: 50%;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.35) 0 6px, transparent 6px 14px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.at-tape-hole {
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #faf9f7;
  box-shadow: inset 0 0 0 4px rgba(30, 53, 87, 0.12);
}

.at-st-card {
  border-radius: 3px;
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(30, 53, 87, 0.12);
}

.at-st-sticker {
  border-radius: 50%;
  background: #fff;
  padding: 6%;
}
.at-st-sticker > div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-repeat: no-repeat;
}

.at-st-envelope {
  border-radius: 3px;
  background: #EDE3D6;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(63, 45, 35, 0.2);
}
.at-env-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60%;
  background: #E2D5C3;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.at-env-seal {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 18%;
  aspect-ratio: 1;
  margin-left: -9%;
  border-radius: 50%;
  background: #C4532F;
}
.at-env-label {
  position: absolute;
  left: 8%;
  bottom: 10%;
  font-family: Bimbo, 'Gochi Hand', cursive;
  font-size: 0.11em;
  color: #3F2D23;
}

.at-st-stamp { position: absolute; inset: 0; }
.at-stamp-top {
  position: absolute;
  left: 30%;
  right: 30%;
  top: 0;
  height: 46%;
  background: #B0704F;
  border-radius: 40% 40% 10% 10%;
}
.at-stamp-pad {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 56%;
  background: #faf9f7;
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px #1E3557;
  display: flex;
  align-items: center;
  justify-content: center;
}
.at-stamp-pad span {
  font-weight: 900;
  font-size: 0.16em;
  letter-spacing: 0.08em;
  color: #E4553F;
  border: 2px solid #E4553F;
  padding: 2px 6px;
  border-radius: 3px;
  transform: rotate(-8deg);
}

.at-st-word {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10%;
  font-size: 0.17em;
  line-height: 1;
  letter-spacing: -0.02em;
}

body.is-edit .at-body { pointer-events: none; }
body.is-edit .at-st [data-edit],

/* —— CTA —— */
.at-cta {
  position: relative;
  overflow: hidden;
  background: var(--color-coral, #FF8D7A);
  color: var(--color-navy, #1E3557);
  cursor: default;
}
.at-orb {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(150px, 14vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-navy, #1E3557);
  color: var(--color-sky, #EDF4FF);
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.2;
  text-decoration: none;
  z-index: 3;
  pointer-events: none;
  transform: translate3d(-999px, -999px, 0) scale(0);
}
.at-cta-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(96px, 10vw, 150px) clamp(20px, 4vw, 56px) clamp(110px, 14vw, 210px);
}
.at-cta-title {
  margin: 0;
  font-size: clamp(56px, 10vw, 190px);
  line-height: 0.86;
  letter-spacing: -0.06em;
}
.at-cta-title .line-wrap {
  display: block;
  overflow: visible;
  padding-top: 0.06em;
  padding-bottom: 0.06em;
}
.at-cta-line2 {
  padding: 0.14em 0.12em 0.1em 0;
}
.at-cta-strong {
  display: inline-block;
  font-weight: 900;
}
.at-cta-title .italic-light {
  display: inline-block;
  font-weight: 200;
  font-style: italic;
}
.at-cta-actions {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.at-cta .btn-navy {
  text-decoration: none;
  background: var(--color-navy, #1E3557);
  color: var(--color-sky, #EDF4FF);
  font-weight: 700;
  font-size: 18px;
  padding: 20px 32px;
  border-radius: 2px 26px 2px 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}
.at-cta .btn-navy:hover {
  background: #fff;
  color: var(--color-navy, #1E3557);
  border-radius: 26px 2px 26px 2px;
}
.at-cta .link-strong {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-navy, #1E3557);
  text-decoration-color: var(--color-navy, #1E3557);
  text-decoration-thickness: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .at-mt-verbs,
  .at-mt-descs,
  .at-act-t,
  .at-act-d,
  .at-hdot,
  .at-cta .btn-navy { transition: none !important; }
}

@media (max-width: 899px) {
  .at-page {
    overflow-x: clip;
  }

  .at-hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .at-hero-inner {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    gap: clamp(28px, 6vh, 48px);
    padding: calc(96px + env(safe-area-inset-top, 0px)) clamp(20px, 4vw, 56px) clamp(24px, 4vh, 40px);
  }

  .at-hero-title {
    font-size: clamp(56px, 18vw, 96px);
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 0;
  }

  .at-hero-lead {
    font-size: clamp(16px, 4.4vw, 20px);
  }

  .at-day-title,
  .at-cta-title {
    font-size: clamp(36px, 11vw, 64px);
  }

  .at-bureau-title {
    font-size: clamp(36px, 11vw, 64px);
  }

  .at-bureau-title .italic-light {
    display: block;
  }

  .at-mt-verb-slide,
  .at-hour-time {
    font-size: clamp(40px, 12vw, 72px);
  }

  .at-day-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 36px 18px;
  }

  .at-day.is-scene .at-day-stage {
    height: 100vh;
    height: 100svh;
  }

  .at-day.is-scene .at-day-inner {
    padding-top: clamp(76px, 8svh, 92px);
    padding-bottom: 20px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "head" "desk" "live" "ruler";
    gap: 14px;
  }

  .at-day.is-scene .at-day-title {
    font-size: clamp(30px, 9vw, 44px);
  }

  .at-day.is-scene .at-day-head .eyebrow {
    margin-bottom: 10px;
  }

  .at-day-live {
    gap: 8px;
  }

  .at-clock {
    font-size: clamp(56px, min(20vw, 10svh), 96px);
  }

  .at-day-act {
    max-width: none;
  }

  .at-act-t-mask {
    font-size: clamp(19px, 5.4vw, 24px);
  }

  .at-act-d-mask {
    margin-top: 4px;
    font-size: 14px;
  }

  .at-pol {
    --pw: clamp(120px, min(46vw, 26svh), 220px);
  }

  .at-pol-cap {
    font-size: 15px;
  }

  .at-pol-tape {
    height: 18px;
    top: -9px;
  }

  .at-desk-note {
    display: none;
  }

  .at-desk-bye {
    right: 0;
    bottom: 0;
    font-size: 20px;
  }

  .at-day-arc {
    left: 6%;
    width: 88%;
    top: 20%;
    height: 34%;
  }

  .at-day-sun {
    width: 64px;
    box-shadow: 0 0 0 10px rgba(255, 141, 122, 0.18), 0 0 0 24px rgba(255, 141, 122, 0.08);
  }

  .at-day-leaf {
    width: 90vw;
    height: 60%;
  }

  .at-ruler {
    height: 38px;
    margin: 0 12px;
  }

  .at-ruler-mark b {
    font-size: 10px;
  }
}

body.motion-off .at-paint { display: none; }
