/* Campaign craft, app-first: brand media and editorial depth follow the working tools. */
body { --experience-ink: var(--ink, var(--sjr-ink, #342e2b)); --experience-muted: var(--muted, var(--sjr-muted, #68615d)); --experience-accent: var(--green, var(--clay, var(--sjr-gold, #715248))); --experience-paper: var(--surface, var(--paper, var(--sjr-base, #f4ede6))); --experience-line: var(--line, var(--material-edge, var(--sjr-border, #a8998266))); }
body[data-experience="jazz"] { --experience-accent: var(--sjr-gold); --experience-paper: var(--sjr-base); }
body[data-experience="lion"] { --experience-accent: #d5ab63; --experience-paper: #201c17; --experience-ink: #f0e7d5; }
.experience-chat-slot { position: sticky; top: var(--experience-dock-top, 150px); min-width: 0; align-self: start; }
.experience-chat-panel[data-placement="dock"] { position: relative !important; top: auto !important; right: auto !important; bottom: auto !important; width: 100% !important; margin: 0 !important; }
.experience-chat-slot[data-placement="float"], .experience-chat-slot[data-closed="true"] { min-height: var(--dock-height); }
.experience-panel-header { position: relative; padding-right: 92px !important; flex: none; }
.experience-chat-controls { position: absolute; right: 12px; top: 12px; display: flex; gap: 4px; }
.experience-icon { display: inline-grid; place-items: center; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; font: 22px/1 system-ui; border: 1px solid var(--experience-line); border-radius: 50%; background: color-mix(in srgb, var(--experience-paper) 70%, transparent); color: inherit; cursor: pointer; }
.experience-icon:hover, .experience-icon:focus-visible { border-color: var(--experience-accent); }
.experience-chat-panel[data-placement="float"] { position: fixed !important; inset: auto 24px 24px auto !important; z-index: 180 !important;     margin: 0 !important; box-shadow: 0 18px 50px #0003, inset 0 0 0 1px var(--experience-line); }
.experience-chat-panel[data-expanded="true"][data-placement="float"] {  }
.experience-chat-panel[hidden], .experience-icon[hidden], .experience-launcher[hidden] { display: none !important; }
.experience-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 181; padding: 14px 22px; min-height: 48px; border: 1px solid var(--experience-line); border-radius: 999px; background: var(--experience-paper); color: var(--experience-ink); box-shadow: 0 8px 28px #0002; font: 600 14px/1.4 inherit; cursor: pointer; }
.experience-welcome { position: relative; max-width: 100% !important; margin: 0 0 16px !important; padding: 18px !important; border: 1px solid var(--experience-line); background: color-mix(in srgb, var(--experience-paper) 80%, transparent) !important; border-radius: 14px !important; }
.experience-welcome-title { font: 500 clamp(24px, 2vw, 31px)/1.08 Georgia, serif !important; color: inherit !important; letter-spacing: -.035em !important; margin: 0 0 14px !important; }
.experience-welcome p { font-size: 15px !important; line-height: 1.6 !important; }
.experience-welcome strong { color: var(--experience-accent); font-weight: 600; }
.experience-welcome-photo { display: block; position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; margin: 0 0 14px; border: 1px solid var(--experience-line); }
.experience-welcome-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.experience-welcome-link { font-size: 13px; font-weight: 600; color: inherit; text-underline-offset: 4px; }
.experience-welcome-arrive { animation: experience-welcome-in .65s ease-out both; }
@keyframes experience-welcome-in { from { opacity: .45; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.experience-story { max-width: 1400px; margin: 32px auto 80px; padding: 0 clamp(20px, 4vw, 64px); color: var(--experience-ink); scroll-margin-top: 160px; }
.experience-story-head { padding: 52px 0 28px; max-width: 900px; border-top: 1px solid var(--experience-line); }
.experience-story-kicker { font: 600 12px/1.4 inherit; text-transform: uppercase; letter-spacing: .15em; color: var(--experience-accent); margin: 0 0 14px; }
.experience-story h2 { font: 500 clamp(38px, 5.8vw, 78px)/1.03 Georgia, serif; letter-spacing: -.045em; margin: 0 0 20px; max-width: 16ch; color: inherit; }
.experience-story-head > p:last-child { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; max-width: 56ch; }
.experience-editorial { display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; gap: clamp(24px, 4vw, 64px); }
.experience-feature { margin: 0; position: relative; }
.experience-feature img { display: block; width: 100%; height: 100%; min-height: 320px; max-height: 620px; object-fit: cover; border-radius: 12px; }
.experience-feature figcaption { position: absolute; left: 18px; bottom: 16px; right: 18px; padding: 10px 12px; background: #161410bf; color: #fff; backdrop-filter: blur(10px); border-radius: 6px; font-size: 13px; line-height: 1.5; }
.experience-story-copy { padding: clamp(20px, 3vw, 42px); border: 1px solid var(--experience-line); border-radius: 12px; background: color-mix(in srgb, var(--experience-paper) 86%, transparent); backdrop-filter: blur(18px); }
.experience-story h3 { font: 500 clamp(28px, 3vw, 40px)/1.15 Georgia, serif; letter-spacing: -.025em; margin: 0 0 18px; color: inherit; }
.experience-story-copy p { font-size: 17px; line-height: 1.75; }
.experience-story a { color: inherit; text-underline-offset: 5px; }
.experience-story details { margin-top: 28px; border-top: 1px solid var(--experience-line); padding-top: 18px; }
.experience-story summary { cursor: pointer; font-size: 17px; min-height: 44px; }
.experience-photo-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.experience-photo-note { margin: 0; }
.experience-photo-note img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.experience-photo-note figcaption { padding: 12px 0; font-size: 15px; line-height: 1.5; }
.experience-return { display: inline-flex; margin-top: 32px; min-height: 44px; align-items: center; font-weight: 600; }
.experience-intro-photo { width: 100%; aspect-ratio: 21/8; object-fit: cover; border-radius: 10px; display: block; margin: 20px 0 4px; }
body[data-experience="curio"] { --experience-dock-top: 130px; }
body[data-experience="jazz"] { --experience-dock-top: calc(var(--sjr-header-height) + 20px); }
body[data-experience="lion"] { --experience-dock-top: 120px; }
body[data-experience="cfr"] { --experience-dock-top: 172px; }
body[data-experience="cfr"] .experience-story h2, body[data-experience="cfr"] .experience-story h3, body[data-experience="cfr"] .experience-welcome-title { font-family: 'Cormorant Garamond', Georgia, serif !important; }
body[data-experience="lion"] .experience-story h2, body[data-experience="lion"] .experience-story h3, body[data-experience="lion"] .experience-welcome-title { font-family: 'Cinzel', Georgia, serif !important; }
@media (max-width:1050px) {
  .experience-editorial { grid-template-columns: 1fr; gap: 20px; }
  .experience-story { margin-bottom: 48px; }
}
@media (max-width:600px) {
  .experience-story-head { padding-top: 32px; }
  .experience-story h2 { font-size: clamp(36px, 11vw, 56px); }
  .experience-photo-notes { gap: 16px; }
  .experience-feature img { min-height: 240px; }
  .experience-chat-panel[data-placement="float"] { inset: auto 12px 12px auto !important;    }
  .experience-launcher { right: 12px; bottom: 12px; }
  .experience-welcome { padding: 14px !important; }
}
@media (prefers-reduced-motion:reduce) { .experience-welcome-arrive { animation: none; } }
@media print { .experience-chat-slot, .experience-chat-panel, .experience-launcher { display: none !important; } }

body[data-experience="cfr"] { --experience-ink: var(--charcoal); --experience-paper: var(--alabaster); --experience-accent: #875c4b; }
html[data-theme="dark"] body[data-experience="cfr"] { --experience-ink: var(--night-ink); --experience-paper: var(--night-raised); --experience-line: var(--night-edge); --experience-accent: #d9b3a1; }
.experience-launcher, .experience-story-kicker { font-family: inherit; font-weight: 600; }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto !important; } }

/* The welcome and transcript get the space; auxiliary prompts stay compact. */
.experience-panel-header > p { display: none; }
.experience-panel-header { padding-block: 16px !important; }
.experience-log { min-height: 0 !important; flex: 1 1 0% !important; overflow-y: auto !important; }
.experience-suggestions { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; max-height: 62px; min-height: 48px; flex: none !important; gap: 8px; padding-block: 6px !important; scrollbar-width: thin; }
.experience-suggestions > button { flex: none; white-space: nowrap; min-height: 38px; font-size: 13px; }
.experience-status:empty { display: none; }
.experience-form { flex: none !important; padding-block: 10px !important; }
.experience-intro-photo { height: auto; }

.experience-chat-panel[data-placement="float"] { z-index: 5000 !important;    }

@media (max-width:600px) {
 .experience-chat-panel[data-placement="float"] {   }
 .experience-chat-panel[data-expanded="true"][data-placement="float"] {  }
}

.experience-chat-panel[data-placement="dock"] .experience-welcome-photo { max-width: 220px; margin-inline: auto; }
.experience-welcome { padding: 14px !important; }
.experience-welcome-title { font-size: 25px !important; }
.experience-form textarea { min-height: 52px !important; height: 52px; }
#studio, #explore, #plan { scroll-margin-top: calc(var(--experience-dock-top, 150px) + 16px); }
@media (min-width:1051px) {
 body[data-experience="curio"] .layout, body[data-experience="lion"] .studio-layout, body[data-experience="jazz"] .planner-layout, body[data-experience="cfr"] .explorer-layout { grid-template-columns: minmax(0, 1fr) 420px; }
}

/* The working assistant starts beside the introduction, not below a marketing hero. */
.experience-task-intro { width: 100% !important; max-width: none !important; margin: 0 0 24px !important; padding: 24px !important; text-align: left !important; }
.experience-task-intro .wrap { max-width: none; padding: 0; }
.experience-task-intro .glass-content { padding: 0; }
.experience-task-intro h1, .planner-intro h1 { font-size: clamp(36px, 4.2vw, 58px) !important; margin-bottom: 16px !important; }
.experience-task-intro .section-deck { font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
.experience-task-intro p { font-size: 16px; line-height: 1.65; }
.experience-task-intro .reading.glass-panel { padding: 24px; }
.explorer-section { padding-top: 24px !important; }
.visualizer-page .studio-layout { padding-top: 28px; }
.planner-intro { padding: 28px !important; }
.planner-chat-intro { display: none; }

@media (max-width:900px) { .experience-chat-slot[data-active="false"][data-placement="dock"] { display: none; } }
@media (min-width:901px) { .experience-chat-slot[data-active="false"][data-placement="dock"] { display: block !important; } }

@media (max-width:900px) { .experience-chat-slot { position: relative; top: auto; } .experience-chat-panel[data-placement="dock"] { height: min(760px, calc(100dvh - 150px)); min-height: 440px; } }

/* Parent navigation and its menus remain above the nonmodal floating assistant. */
body[data-experience] > header { z-index: 6000 !important; }

/* Short desktop CFR viewports keep the complete privacy note and a compact editorial welcome. */
@media (min-width:861px) and (max-height:800px) {
 body[data-experience="cfr"] .experience-chat-panel[data-placement="dock"] .experience-welcome-photo { float: right; width: 140px; max-width: 45%; margin: 0 0 8px 12px; }
 body[data-experience="cfr"] .experience-chat-panel[data-placement="dock"] .experience-welcome p { font-size: 14px !important; line-height: 1.5 !important; margin-bottom: 8px; }
 body[data-experience="cfr"] .experience-chat-panel[data-placement="dock"] .experience-welcome-title { margin-bottom: 10px !important; }
 body[data-experience="cfr"] .experience-welcome::after { content: ''; display: block; clear: both; }
}

/* Task return and skip links clear the persistent brand navigation. */
#studio { scroll-margin-top: var(--experience-dock-top, 160px); }

/* Campaign widget controls: crisp SVGs, branded launcher and two floating sizes. */
.experience-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px !important; min-height: 72px; }
.experience-panel-header h2 { flex: 1; min-width: 0; font-size: 24px; line-height: 1.1; margin: 0; }
.experience-chat-controls { position: static; display: flex; align-items: center; gap: 4px; flex: none; }
.experience-icon { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; }
.experience-icon svg, .experience-launcher svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.experience-icon:focus-visible, .experience-launcher:focus-visible, .chat-note a:focus-visible, .studio-chat-note a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.experience-launcher { display: flex; align-items: center; gap: 10px; right: 4%; bottom: max(18px,env(safe-area-inset-bottom)); border-radius: 50px; padding: 14px 22px; min-height: 48px; border: 1px solid var(--experience-line); background: color-mix(in srgb,var(--experience-paper) 94%,transparent); backdrop-filter: blur(20px); box-shadow: inset 0 1px #ffffff30,0 8px 24px #0002; color: var(--experience-ink); font-size: 14px; line-height: 1.4; }
.experience-launcher:hover { border-color: var(--experience-accent); }
.experience-chat-panel[data-placement="float"] { inset: auto 4% calc(22px + var(--experience-keyboard-offset,0px)) auto !important; width: min(440px,calc(100vw - 24px)); height: min(650px,calc(var(--experience-available-height,100dvh) - var(--experience-float-top,100px) - 22px)); max-height: calc(var(--experience-available-height,100dvh) - var(--experience-float-top,100px) - 22px); min-height: 0 !important; border: 1px solid var(--experience-line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 75px #0004; }
.experience-chat-panel[data-expanded="true"][data-placement="float"] { width: min(680px,calc(100vw - 24px)); height: min(760px,84svh,calc(var(--experience-available-height,100dvh) - var(--experience-float-top,100px) - 22px)); }
.chat-note, .studio-chat-note { flex: none; margin: 0 !important; padding: 8px 12px !important; border-top: 1px solid var(--experience-line); font-size: 11px !important; line-height: 1.5 !important; text-align: center; }
.chat-note a, .studio-chat-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width:599px) {
 .experience-chat-panel[data-placement="float"] { right: 12px !important; bottom: calc(12px + var(--experience-keyboard-offset,0px)) !important; height: min(520px,68svh,calc(var(--experience-available-height,100dvh) - var(--experience-float-top,90px) - 12px)); max-height: calc(var(--experience-available-height,100dvh) - var(--experience-float-top,90px) - 12px); }
 .experience-chat-panel[data-expanded="true"][data-placement="float"] { width: min(440px,calc(100vw - 24px)); height: min(650px,78svh,calc(var(--experience-available-height,100dvh) - var(--experience-float-top,90px) - 12px)); }
 .experience-panel-header { gap: 8px; padding: 12px !important; min-height: 68px; }
 .experience-panel-header h2 { font-size: 21px; }
 .experience-launcher { right: 4%; bottom: max(8px,env(safe-area-inset-bottom)); font-size: 13px; padding: 13px 18px; }
}

/* Application-only top bar: native task tabs replace the website menu at every width. */
body[data-experience="curio"] { --experience-dock-top: 104px; }
body[data-experience="curio"] .app-nav { top: 12px; padding: 8px 14px; gap: 16px; width: min(1100px,calc(100% - 32px)); }
.app-nav .wordmark { padding: 5px 8px; }
.app-nav .wordmark img { width: 70px; }
body[data-experience="curio"] .app-nav .tabs { display: flex; flex: 1; position: static; margin: 0; padding: 0; gap: 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-nav .tabs button { flex: 1; position: relative; min-height: 44px; padding: 10px 16px; border: 1px solid currentColor; border-radius: 8px; background: transparent; color: inherit; font: 600 15px/1.2 var(--body); cursor: pointer; }
.app-nav .tabs button[aria-selected="true"] { background: #ffffffed; color: #513c78; border-color: #ffffffed; }
.app-nav .tabs button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.app-nav .tabs button.has-update::after { content: ''; position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #c7aae9; box-shadow: 0 0 0 1px #513c78; }
body[data-experience="curio"] .layout { grid-template-columns: minmax(0,1fr); max-width: 1150px; margin-top: 92px; padding-top: 12px; scroll-margin-top: 96px; }
body[data-experience="curio"] #studio[data-active="false"], body[data-experience="curio"] .experience-chat-slot[data-active="false"][data-placement="dock"] { display: none !important; }
body[data-experience="curio"] .experience-chat-slot { position: relative; top: auto; }
body[data-experience="curio"] .experience-chat-panel[data-placement="dock"] { height: calc(100dvh - 136px); min-height: 360px; max-height: 850px; }
body[data-experience="curio"] .experience-chat-panel[data-placement="dock"] .experience-log { padding: 18px clamp(14px,4vw,48px); }
body[data-experience="curio"] .experience-chat-panel[data-placement="dock"] .experience-welcome { max-width: 960px !important; margin-inline: auto !important; text-align: center; }
body[data-experience="curio"] .experience-chat-panel[data-placement="dock"] .experience-welcome-title { font-size: clamp(28px,3.2vw,40px) !important; }
body[data-experience="curio"] .experience-chat-panel[data-placement="dock"] .experience-welcome-photo { max-width: 540px; max-height: 180px; aspect-ratio: 3/1; margin-inline: auto; }
body[data-experience="curio"] .experience-chat-panel[data-placement="dock"] .experience-welcome p { max-width: 700px; margin-inline: auto; }
@media (max-width:599px) {
 body[data-experience="curio"] { --experience-dock-top: 88px; }
 body[data-experience="curio"] .app-nav { width: calc(100% - 20px); gap: 6px; padding: 8px; }
 .app-nav .wordmark { padding: 3px; }
 .app-nav .wordmark img { width: 50px; }
 body[data-experience="curio"] .app-nav .tabs { gap: 5px; }
 .app-nav .tabs button { font-size: 13px; padding: 8px 5px; }
 body[data-experience="curio"] .layout { margin-top: 80px; padding: 8px 10px; scroll-margin-top: 86px; }
 body[data-experience="curio"] .experience-chat-panel[data-placement="dock"] { height: calc(100dvh - 112px); min-height: 350px; }
 body[data-experience="curio"] .experience-chat-panel[data-placement="dock"] .experience-welcome-photo { aspect-ratio: 16/9; max-height: 180px; }
}

.experience-chat-controls .experience-icon:last-child { border-color: transparent; background: transparent; border-radius: 8px; }
.experience-chat-controls .experience-icon:last-child:is(:hover,:focus-visible) { background: color-mix(in srgb,var(--experience-paper) 65%,transparent); }
body[data-experience="curio"] { --experience-accent: var(--accent); }

/* App anchors own header clearance; avoid adding the inherited site's offset twice. */
html { scroll-padding-top: 0; }
.experience-story { scroll-margin-top: calc(var(--experience-dock-top,120px) + 12px); }

/* Optional lower one-sheet: one existing scene, compact proof, useful original routes. */
.one-sheet { position: relative; margin-top: clamp(40px,7vh,88px); }
.one-sheet .experience-story-head { padding-top: 32px; padding-bottom: 24px; max-width: 100%; }
.one-sheet .experience-story-head h2 { font-size: clamp(36px,5vw,66px); max-width: 20ch; }
.one-sheet-browse > h3, .one-sheet-routes > h3 { font-size: clamp(25px,3vw,34px); margin: 0 0 20px; }
.one-sheet-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.one-sheet-card { min-width: 0; border: 1px solid var(--experience-line); border-radius: 12px; overflow: hidden; background: color-mix(in srgb,var(--experience-paper) 90%,transparent); }
.one-sheet-card img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; display: block; }
.one-sheet-card-copy { padding: 20px; }
.one-sheet-card-copy h3 { font-size: 26px; margin-bottom: 14px; }
.one-sheet-card-copy p { font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.one-sheet-card details { border-top: 1px solid var(--experience-line); margin-top: 20px; padding-top: 14px; }
.one-sheet-card summary { min-height: 44px; cursor: pointer; font-size: 15px; font-weight: 600; }
.one-sheet-card details p { white-space: pre-wrap; }
.one-sheet-card .one-sheet-source-note { font-size: 11px; color: var(--experience-muted); }
.one-sheet-routes { margin: 28px 0; padding: 24px 0; border-block: 1px solid var(--experience-line); }
.one-sheet-routes > div { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.one-sheet-routes a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; }
.one-sheet-routes a span { opacity: .65; }
.one-sheet-next { display: flex; align-items: center; gap: 24px; padding: 28px; border: 1px solid var(--experience-line); border-radius: 12px; background: color-mix(in srgb,var(--experience-paper) 90%,transparent); }
.one-sheet-next > div { flex: 1; }
.one-sheet-next h3 { font-size: clamp(27px,3vw,40px); margin-bottom: 12px; }
.one-sheet-next p { font-size: 17px; line-height: 1.7; margin: 0; }
.one-sheet-action { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 12px 18px; border: 1px solid var(--experience-line); border-radius: 8px; font-size: 16px; }
.one-sheet :is(a,summary):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
#brand-browse, #brand-next, #brand-return { scroll-margin-top: calc(var(--experience-dock-top,140px) + 16px); }
@media (max-width:700px) { .one-sheet-grid { grid-template-columns: 1fr; } .one-sheet-card-copy { padding: 18px; } .one-sheet-next { align-items: flex-start; flex-direction: column; padding: 20px; } .one-sheet-routes > div { gap: 8px 20px; } }
