:root {
  --experience-ink: #302326;
  --experience-accent: #9b334b;
  --experience-line: rgba(91, 58, 61, 0.18);
  --experience-panel: #fffaf6;
}

.experience-section {
  position: relative;
  overflow: clip;
}

.experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 60px);
}

.experience-heading h2,
.experience-result h3,
.brief-dialog h2,
.story-caption strong {
  letter-spacing: 0;
}

.experience-heading > p:last-child {
  max-width: 660px;
  margin: 0;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.65;
}

.story-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
}

.story-launcher svg,
.brief-open svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.mood-section {
  background: #f3e8e1;
  color: var(--experience-ink);
}

.mood-section .eyebrow {
  color: var(--experience-accent);
}

html {
  scroll-padding-top: calc(var(--topbar-height, 80px) + 16px);
}

main > section[id],
#portfolioTitle {
  scroll-margin-top: calc(var(--topbar-height, 80px) + 16px);
}

.mood-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: stretch;
}

.mood-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mood-copy h2 {
  max-width: 640px;
  margin: 8px 0 18px;
}

.mood-copy > p:last-of-type {
  max-width: 570px;
  font-size: 18px;
  line-height: 1.65;
}

.mood-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mood-option {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(82, 49, 53, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.72);
  color: var(--experience-ink);
  font: inherit;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.mood-option:hover,
.mood-option:focus-visible,
.mood-option.is-active {
  border-color: var(--experience-accent);
  background: var(--experience-accent);
  color: #fff;
  transform: translateY(-2px);
}

.mood-result {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  min-height: 540px;
  border: 1px solid rgba(82, 49, 53, 0.13);
  border-radius: 8px;
  overflow: hidden;
  background: var(--experience-panel);
  box-shadow: 0 26px 70px rgba(63, 39, 42, 0.12);
}

.mood-result-media {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  min-height: 0;
  background: #dfd1cb;
}

.mood-result-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.mood-result-media img:first-child {
  grid-row: 1 / 3;
}

.experience-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
}

.experience-result p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.experience-result h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 38px);
}

.tone-section {
  background: #302326;
  color: #fff8f1;
}

.tone-section .eyebrow {
  color: #ed8798;
}

.tone-frame {
  position: relative;
  width: min(100%, 1120px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #181214;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  touch-action: pan-y;
  user-select: none;
}

.tone-frame img,
.tone-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tone-frame img {
  object-fit: cover;
}

.tone-before img {
  filter: saturate(0.7) contrast(0.93) brightness(1.05);
}

.tone-after {
  width: var(--tone-position, 56%);
  overflow: hidden;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
}

.tone-after img {
  width: calc(100vw - 0px);
  max-width: 1120px;
}

.tone-label {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(24, 16, 18, 0.72);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.tone-label--before { right: 18px; }
.tone-label--after { left: 18px; }

.tone-handle {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: var(--tone-position, 56%);
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(39, 25, 28, 0.78);
  color: #fff;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.tone-range {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.brief-strip {
  background: #fffaf6;
}

.brief-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(34px, 5vw, 64px);
}

.brief-strip h2 {
  margin: 5px 0 0;
}

.brief-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  white-space: nowrap;
}

.story-viewer,
.brief-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  border: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.story-viewer[hidden],
.brief-dialog[hidden] {
  display: none;
}

.story-backdrop,
.brief-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 12, 14, 0.88);
  backdrop-filter: blur(18px);
}

.story-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 720px);
  height: min(92dvh, 900px);
  margin: 4dvh auto;
  overflow: hidden;
  border-radius: 8px;
  background: #1c1416;
  color: #fff;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.52);
}

.story-progress {
  position: absolute;
  z-index: 6;
  top: 14px;
  left: 14px;
  right: 58px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
}

.story-progress span {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.story-progress span::after {
  content: "";
  display: block;
  width: var(--story-progress, 0%);
  height: 100%;
  background: #fff;
}

.story-close,
.brief-close {
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 14, 16, 0.66);
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}

.story-media {
  position: absolute;
  inset: 0;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 260ms ease, transform 480ms cubic-bezier(.2,.75,.25,1);
}

.story-media.is-changing img {
  opacity: 0.5;
  transform: scale(1.02);
}

.story-caption {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 90px clamp(22px, 5vw, 42px) clamp(26px, 5vw, 44px);
  background: linear-gradient(transparent, rgba(16, 10, 12, 0.88));
}

.story-caption strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 6vw, 48px);
}

.story-caption span {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.story-nav {
  position: absolute;
  z-index: 5;
  top: 60px;
  bottom: 110px;
  width: 38%;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.story-nav--prev { left: 0; }
.story-nav--next { right: 0; }

.brief-panel {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 780px);
  max-height: min(92dvh, 900px);
  margin: 4dvh auto;
  overflow: auto;
  border-radius: 8px;
  background: #fffaf6;
  color: var(--experience-ink);
  padding: clamp(26px, 5vw, 52px);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.35);
}

.brief-close {
  background: #efe5df;
  color: #51373b;
}

.brief-dialog h2 {
  max-width: 600px;
  margin: 7px 0 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
}

.brief-fields {
  display: grid;
  gap: 24px;
}

.brief-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.brief-fieldset legend,
.brief-date label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.brief-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brief-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.brief-choice span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid rgba(82, 49, 53, 0.2);
  border-radius: 999px;
  cursor: pointer;
}

.brief-choice input:checked + span {
  border-color: var(--experience-accent);
  background: var(--experience-accent);
  color: #fff;
}

.brief-date input,
.brief-note textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(82, 49, 53, 0.24);
  border-radius: 6px;
  background: #fff;
  padding: 12px 14px;
  color: inherit;
  font: inherit;
}

.brief-note textarea {
  min-height: 90px;
  resize: vertical;
}

.brief-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.brief-status {
  margin: 14px 0 0;
  color: #286d52;
  font-weight: 700;
}

.brief-status[hidden] { display: none; }

.experience-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(.2,.75,.25,1);
}

.experience-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.experience-progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: var(--experience-scroll, 0%);
  height: 2px;
  background: #df7183;
  pointer-events: none;
}

@media (max-width: 760px) {
  .experience-heading,
  .mood-shell,
  .brief-strip-inner {
    grid-template-columns: 1fr;
  }

  .experience-heading {
    gap: 14px;
  }

  .mood-result {
    min-height: 480px;
  }

  .mood-result-media {
    min-height: 310px;
  }

  .experience-result {
    grid-template-columns: 1fr;
  }

  .experience-result .secondary-button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .tone-frame {
    aspect-ratio: 4 / 5;
  }

  .tone-after img {
    width: calc(100vw - 40px);
    max-width: none;
  }

  .brief-open {
    width: 100%;
    box-sizing: border-box;
  }

  .story-shell,
  .brief-panel {
    width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .story-nav {
    display: none;
  }

  .brief-panel {
    box-sizing: border-box;
    padding-top: 58px;
  }

  .brief-actions {
    flex-direction: column;
  }

  .brief-actions > * {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .experience-reveal,
  .mood-option,
  .story-media img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.brief-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.brief-contact-grid label{display:grid;gap:8px;font-weight:700}.brief-contact-grid input{box-sizing:border-box;width:100%;min-height:48px;border:1px solid rgba(82,49,53,.24);border-radius:6px;background:#fff;padding:12px 14px;color:inherit;font:inherit}.brief-availability{display:flex;gap:8px;overflow:auto;margin-top:10px;padding-bottom:3px}.brief-availability:empty{display:none}.brief-availability button{display:grid;grid-template-columns:auto 1fr;gap:0 6px;min-width:118px;padding:8px 10px;border:1px solid #d7c8c3;border-radius:6px;background:#fff;color:inherit;text-align:left;cursor:pointer}.brief-availability button:hover,.brief-availability button.is-active{border-color:var(--experience-accent);background:#f6e4e8}.brief-availability strong{grid-row:1/3;font:700 22px Georgia,serif}.brief-availability span{align-self:center;font-size:11px}.brief-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.brief-status.is-error{color:#a62c45}.brief-actions button:disabled{cursor:wait;opacity:.65}
@media(max-width:760px){.brief-contact-grid{grid-template-columns:1fr}.brief-actions{align-items:stretch}.brief-actions button{flex:1}}
