:root {
  color-scheme: light;
  --burn-duration: 8s;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f2eddf;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.direction-picker {
  position: fixed;
  z-index: 30;
  inset: 18px 20px auto;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(142px, 1fr) auto minmax(72px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 8px 10px;
  border: 1px solid rgba(18, 17, 14, 0.24);
  background: rgba(247, 243, 234, 0.88);
  color: #171510;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 250ms ease, color 250ms ease, border-color 250ms ease;
}

body[data-concept="lab"] .direction-picker {
  border-color: rgba(198, 255, 0, 0.35);
  background: rgba(11, 14, 12, 0.88);
  color: #dafa6f;
}

body[data-concept="poster"] .direction-picker {
  border-color: #111;
  background: rgba(255, 81, 0, 0.91);
  color: #111;
  box-shadow: 7px 7px 0 #111;
}

.picker-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.picker-mark {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 4px 0 0 currentColor;
}

.picker-tabs {
  display: flex;
  gap: 4px;
}

.picker-tab {
  min-height: 36px;
  padding: 8px 13px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.picker-tab span {
  margin-right: 4px;
  opacity: 0.48;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.picker-tab:hover {
  transform: translateY(-1px);
}

.picker-tab.is-selected {
  background: #171510;
  color: #fff9eb;
}

body[data-concept="lab"] .picker-tab.is-selected {
  background: #c6ff00;
  color: #0b0e0c;
}

body[data-concept="poster"] .picker-tab.is-selected {
  background: #111;
  color: #ff5100;
}

.picker-note {
  justify-self: end;
  margin: 0 6px 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.concept {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.concept.is-active {
  animation: concept-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes concept-in {
  from { opacity: 0; transform: scale(1.008); }
  to { opacity: 1; transform: scale(1); }
}

.simulator {
  --burn-color: #ff4b18;
  width: min(100%, 420px);
}

.ignite-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.ignite-button:disabled {
  cursor: wait;
}

.ignite-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--burn-color);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--burn-color) 55%, transparent);
}

.is-burning .ignite-dot {
  animation: ember-pulse 900ms ease-in-out infinite alternate;
}

@keyframes ember-pulse {
  to { box-shadow: 0 0 0 9px color-mix(in srgb, var(--burn-color) 0%, transparent); }
}

.burn-track {
  height: 3px;
  margin-top: 20px;
  overflow: visible;
  background: currentColor;
  opacity: 0.25;
}

.burn-track span {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  background: var(--burn-color);
}

.burn-track span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--burn-color);
  box-shadow: 0 0 15px 5px color-mix(in srgb, var(--burn-color) 60%, transparent);
  transform: translateY(-50%);
  opacity: 0;
}

.is-burning .burn-track span {
  animation: slow-burn var(--burn-duration) linear forwards;
}

.is-burning .burn-track span::after {
  opacity: 1;
}

.is-complete .burn-track span {
  width: 100%;
}

@keyframes slow-burn {
  from { width: 0; }
  to { width: 100%; }
}

.burn-readout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 11px 0 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.safety-note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
}

/* 01 — ATELIER DULCE */
.concept--atelier {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 86px);
  padding: 118px clamp(34px, 7vw, 112px) 72px;
  background: #f2eddf;
  color: #16140f;
}

.concept--atelier::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(30, 22, 12, 0.07) 0.7px, transparent 0.7px);
  background-size: 7px 7px;
  mix-blend-mode: multiply;
}

.atelier-copy,
.atelier-image,
.atelier-side-note,
.safety-note--atelier {
  position: relative;
  z-index: 1;
}

.atelier-copy {
  max-width: 650px;
}

.atelier-eyebrow {
  margin: 0 0 clamp(24px, 5vh, 58px);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.atelier-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.55rem, 7.2vw, 8.6rem);
  font-weight: 500;
  letter-spacing: -0.068em;
  line-height: 0.82;
}

.atelier-copy h1 em {
  color: #ef3d12;
  font-weight: 400;
}

.atelier-lede {
  max-width: 520px;
  margin: clamp(28px, 5vh, 54px) 0 0;
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  line-height: 1.5;
}

.simulator--atelier {
  margin-top: clamp(28px, 4vh, 44px);
}

.simulator--atelier .ignite-button {
  padding: 0 21px;
  border-radius: 999px;
}

.atelier-image {
  align-self: stretch;
  min-height: min(72vh, 780px);
  margin: 0;
  overflow: hidden;
  background: #1f1c18;
  box-shadow: 18px 18px 0 #e9a82d;
}

.atelier-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% center;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.atelier-image:hover img {
  transform: scale(1.025);
}

.atelier-image figcaption {
  position: absolute;
  inset: auto 16px 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(242, 237, 223, 0.9);
  color: #16140f;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.atelier-side-note {
  position: absolute;
  top: 50%;
  left: 16px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.safety-note--atelier {
  position: absolute;
  right: clamp(34px, 7vw, 112px);
  bottom: 22px;
  max-width: 370px;
  text-align: right;
}

/* 02 — SLOW LAB */
.concept--lab {
  padding: 106px clamp(22px, 4vw, 62px) 32px;
  background: #0b0e0c;
  color: #e7f6b4;
}

.lab-grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(198, 255, 0, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 0, 0.46) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 86%, transparent);
}

.lab-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 138px);
  display: grid;
  grid-template-columns: minmax(330px, 0.88fr) minmax(360px, 1.12fr);
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(198, 255, 0, 0.48);
}

.lab-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(198, 255, 0, 0.48);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lab-header p {
  margin: 0;
}

.lab-copy {
  align-self: center;
  padding: clamp(28px, 5vw, 80px);
}

.lab-kicker {
  margin: 0 0 20px;
  color: #c6ff00;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-copy h1 {
  margin: 0;
  color: #c6ff00;
  font-family: var(--display);
  font-size: clamp(4.3rem, 9vw, 10.2rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.7;
}

.lab-copy h1 span {
  position: relative;
  top: -4em;
  margin-left: 0.4em;
  font-family: var(--mono);
  font-size: 0.07em;
  letter-spacing: 0;
}

.lab-lede {
  max-width: 530px;
  margin: 34px 0 0;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.55;
}

.lab-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 35px 0 0;
  border: 1px solid rgba(198, 255, 0, 0.34);
  background: rgba(198, 255, 0, 0.34);
}

.lab-specs div {
  min-height: 82px;
  padding: 12px;
  background: #0b0e0c;
}

.lab-specs dt {
  margin-bottom: 16px;
  color: #c6ff00;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-specs dd {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.25;
}

.lab-image {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(22px, 3.5vw, 54px);
  border-left: 1px solid rgba(198, 255, 0, 0.48);
}

.lab-image-frame {
  position: relative;
  height: 100%;
  min-height: 410px;
  overflow: hidden;
  clip-path: polygon(0 12%, 12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  background: #161d18;
}

.lab-image-frame::after {
  content: "SCAN / LIVE";
  position: absolute;
  right: 17px;
  bottom: 17px;
  padding: 7px 9px;
  border: 1px solid #c6ff00;
  background: #0b0e0c;
  color: #c6ff00;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.lab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.72) contrast(1.08) sepia(0.1);
}

.lab-crosshair {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid #c6ff00;
  border-radius: 50%;
}

.lab-crosshair::before,
.lab-crosshair::after {
  content: "";
  position: absolute;
  background: #c6ff00;
}

.lab-crosshair::before { top: 11px; left: -8px; width: 40px; height: 1px; }
.lab-crosshair::after { top: -8px; left: 11px; width: 1px; height: 40px; }
.lab-crosshair--one { top: 24%; left: 63%; }
.lab-crosshair--two { right: 14%; bottom: 29%; transform: scale(0.7); }

.lab-image figcaption {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.simulator--lab {
  grid-column: 1 / -1;
  width: auto;
  padding: 16px 20px 18px;
  border-top: 1px solid rgba(198, 255, 0, 0.48);
  --burn-color: #c6ff00;
}

.lab-sim-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lab-sim-heading p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.simulator--lab .ignite-button {
  min-height: 36px;
  padding: 0 13px;
  border-color: #c6ff00;
  color: #c6ff00;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.simulator--lab .burn-track {
  margin-top: 13px;
}

.safety-note--lab {
  position: absolute;
  right: 4px;
  bottom: -24px;
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* 03 — FITIL MANIFEST */
.concept--poster {
  padding: 110px clamp(24px, 5vw, 76px) 72px;
  background: #ff5100;
  color: #10100f;
}

.concept--poster::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 49.8%, rgba(17,17,17,0.14) 50%, transparent 50.2%);
}

.poster-layout {
  position: relative;
  z-index: 2;
  min-height: calc(100dvh - 182px);
  display: grid;
  grid-template-columns: 0.55fr 1.65fr 1.1fr 0.6fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 24px;
}

.poster-copy {
  grid-column: 2 / 4;
  grid-row: 1;
  align-self: center;
  z-index: 2;
}

.poster-copy > p {
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 10px;
  background: #111;
  color: #ff5100;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.poster-copy h1 {
  max-width: 970px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 10.5rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.78;
  text-transform: uppercase;
}

.poster-image {
  grid-column: 3 / 5;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  width: min(48vw, 670px);
  height: min(44vh, 440px);
  margin: 0 0 -7vh;
  overflow: hidden;
  border: 3px solid #111;
  border-radius: 50%;
  background: #111;
  z-index: 1;
}

.poster-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: grayscale(1) contrast(1.24);
  mix-blend-mode: luminosity;
}

.poster-meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poster-meta--left {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.poster-meta--right {
  grid-column: 4;
  grid-row: 2;
  justify-self: end;
  margin: 0;
  text-align: right;
}

.simulator--poster {
  grid-column: 2 / 4;
  grid-row: 2;
  width: 100%;
  max-width: none;
  --burn-color: #111;
}

.simulator--poster .ignite-button {
  min-width: 180px;
  padding: 0 18px;
  justify-content: space-between;
  border: 3px solid #111;
  background: #111;
  color: #ff5100;
  font-family: var(--display);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.simulator--poster .burn-track {
  height: 5px;
  margin-top: 16px;
  opacity: 1;
}

.poster-word {
  position: absolute;
  z-index: 0;
  font-family: var(--display);
  font-size: clamp(7rem, 21vw, 24rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 2px rgba(17, 17, 17, 0.2);
  user-select: none;
  white-space: nowrap;
}

.poster-word--top {
  top: 17%;
  left: -2vw;
}

.poster-word--bottom {
  right: -1vw;
  bottom: -2%;
}

.safety-note--poster {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 5vw, 76px);
  bottom: 22px;
  max-width: 400px;
  font-weight: 700;
  text-align: right;
}

.direction-announcer {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .direction-picker {
    grid-template-columns: auto 1fr auto;
  }

  .picker-tab {
    padding-inline: 9px;
    font-size: 0;
  }

  .picker-tab span {
    margin: 0;
    font-size: 0.72rem;
  }

  .concept--atelier {
    grid-template-columns: 1fr 0.92fr;
    padding-inline: 40px;
  }

  .atelier-copy h1 {
    font-size: clamp(3.7rem, 8vw, 6.2rem);
  }

  .lab-shell {
    grid-template-columns: 1fr 0.9fr;
  }

  .lab-specs {
    grid-template-columns: 1fr;
  }

  .lab-specs div {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .direction-picker {
    inset: auto 12px 12px;
    grid-template-columns: 1fr auto;
    gap: 8px;
    min-height: 58px;
    padding: 7px 8px;
  }

  .picker-brand {
    display: none;
  }

  .picker-tabs {
    justify-content: flex-start;
  }

  .picker-tab {
    min-width: 45px;
    min-height: 42px;
    padding: 9px 12px;
  }

  .picker-note {
    margin-right: 8px;
  }

  .concept {
    min-height: 100svh;
    padding-bottom: 104px;
  }

  .concept--atelier {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
    padding: 35px 24px 110px;
  }

  .atelier-eyebrow {
    margin-bottom: 34px;
  }

  .atelier-copy h1 {
    font-size: clamp(3.5rem, 17vw, 6.4rem);
    line-height: 0.84;
  }

  .atelier-lede {
    margin-top: 28px;
  }

  .atelier-image {
    width: calc(100% - 10px);
    min-height: 54vh;
    box-shadow: 10px 10px 0 #e9a82d;
  }

  .atelier-image figcaption {
    font-size: 0.57rem;
  }

  .atelier-side-note {
    display: none;
  }

  .safety-note--atelier {
    position: static;
    align-self: flex-end;
    max-width: 300px;
  }

  .concept--lab {
    padding: 24px 14px 110px;
  }

  .lab-shell {
    min-height: auto;
    display: block;
  }

  .lab-header {
    gap: 14px;
    font-size: 0.58rem;
  }

  .lab-copy {
    padding: 34px 22px 28px;
  }

  .lab-copy h1 {
    font-size: clamp(4.4rem, 24vw, 7.2rem);
  }

  .lab-specs {
    grid-template-columns: repeat(3, 1fr);
  }

  .lab-specs dd {
    font-size: 0.68rem;
  }

  .lab-image {
    padding: 18px;
    border-top: 1px solid rgba(198, 255, 0, 0.48);
    border-left: 0;
  }

  .lab-image-frame {
    min-height: 410px;
  }

  .safety-note--lab {
    position: static;
    margin: 12px 0 0;
    text-align: right;
  }

  .concept--poster {
    padding: 26px 20px 108px;
  }

  .poster-layout {
    min-height: calc(100svh - 134px);
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
  }

  .poster-meta--left {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .poster-copy {
    grid-column: 2;
    grid-row: 1;
    padding-top: 14px;
  }

  .poster-copy h1 {
    font-size: clamp(3.55rem, 18vw, 6.5rem);
  }

  .poster-image {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    width: 100%;
    height: 39vh;
    margin: 0;
  }

  .simulator--poster {
    grid-column: 2;
    grid-row: 3;
  }

  .poster-meta--right {
    display: none;
  }

  .poster-word--top {
    top: 30%;
  }

  .safety-note--poster {
    display: none;
  }
}

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