/* ONE DAY experiences — composition systems driven by the owner's validated tokens (--tk-bg, --tk-fg, --tk-accent). */
.xp { --bg: var(--tk-bg, #0d0f14); --fg: var(--tk-fg, #f4f4f2); --ac: var(--tk-accent, #ffd400); position: relative; isolation: isolate; background: var(--bg); color: var(--fg); overflow: hidden; min-height: calc(100svh - 44px); padding: 56px 0 72px; }
.xp * { box-sizing: border-box; }
.xp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; }
.xp-h { margin: 0; line-height: .95; letter-spacing: -.035em; overflow-wrap: anywhere; font-size: clamp(2.3rem, 8.5vw, 6.4rem); }
.xp-sub { margin: 14px 0 0; font-size: clamp(1.1rem, 3.4vw, 1.6rem); line-height: 1.3; opacity: .92; }
.xp-body { margin: 14px 0 0; max-width: 62ch; font-size: clamp(1rem, 2.4vw, 1.12rem); line-height: 1.6; opacity: .88; }
.xp-kicker { display: inline-block; margin: 0 0 18px; padding: 6px 10px; border: 1px solid currentColor; font: 700 .72rem/1 ui-monospace, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
.xp-small { margin: 28px 0 10px; font: 700 .74rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.xp-cta { display: inline-flex; align-items: center; min-height: 52px; margin-top: 26px; padding: 0 26px; background: var(--ac); color: var(--bg); font-weight: 800; letter-spacing: .03em; text-decoration: none; border-radius: 999px; }
.xp-cta:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.xp-dest { margin: 8px 0 0; font-size: 12px; opacity: .7; }
.xp-dest span { font-weight: 700; }
.xp-by { display: block; margin-top: 10px; font-weight: 700; letter-spacing: .02em; }
.xp-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.xp-items li { display: flex; gap: 14px; align-items: baseline; font-size: 1.02rem; line-height: 1.4; }
.xp-n { font: 700 .78rem/1 ui-monospace, Menlo, monospace; color: var(--ac); min-width: 2ch; }
.xp-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.xp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.f-serif .xp-h, .xp-editorial .xp-h, .xp-statement .xp-h, .xp-exhibition .xp-h { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.02em; }
.f-mono .xp-h { font-family: ui-monospace, Menlo, monospace; letter-spacing: -.04em; }
.f-condensed .xp-h, .xp-stage .xp-h { font-stretch: condensed; text-transform: uppercase; font-weight: 900; letter-spacing: -.01em; }
.f-display .xp-h { font-weight: 900; letter-spacing: -.055em; }

/* LAUNCH — product stage */
.xp-launch .xp-grid-bg { position: absolute; inset: 0; z-index: -1; opacity: .22; background-image: linear-gradient(var(--ac) 1px, transparent 1px), linear-gradient(90deg, var(--ac) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.xp-launch-hero { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .xp-launch-hero { grid-template-columns: 1.05fr .95fr; } }
.xp-launch .xp-h { font-weight: 900; background: linear-gradient(100deg, var(--fg) 30%, var(--ac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xp-launch .xp-stage { perspective: 900px; }
.xp-product { width: 100%; max-height: 62vh; object-fit: contain; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); transition: transform .25s ease-out; animation: xp-float 7s ease-in-out infinite; }
.xp-cards { margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.xp-cards li { display: block; padding: 18px; border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--fg) 5%, transparent); }
.xp-cards .xp-n { display: block; margin-bottom: 10px; }
@keyframes xp-float { 50% { transform: translateY(-12px); } }

/* EXHIBITION — the work first */
.xp-exhibition { padding-top: 40px; }
.xp-gallery { display: grid; gap: 28px; }
@media (min-width: 900px) { .xp-gallery { grid-template-columns: 1.6fr .9fr; align-items: end; } }
.xp-work { margin: 0; padding: clamp(14px, 3vw, 36px); background: color-mix(in srgb, var(--fg) 7%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 15%, transparent); }
.xp-zoom { all: unset; display: block; cursor: zoom-in; width: 100%; }
.xp-zoom:focus-visible { outline: 3px solid var(--ac); outline-offset: 4px; }
.xp-piece { width: 100%; max-height: 74vh; object-fit: contain; display: block; }
.xp-zoom[aria-pressed="true"] { position: fixed; inset: 0; z-index: 50; background: #000; display: grid; place-items: center; cursor: zoom-out; padding: 2vmin; }
.xp-zoom[aria-pressed="true"] .xp-piece { max-height: 96vh; }
.xp-label { border-left: 2px solid var(--ac); padding-left: 18px; }
.xp-exhibition .xp-h { font-size: clamp(2rem, 5vw, 3.4rem); }

/* EDITORIAL — magazine spread */
.xp-editorial { padding-top: 0; }
.xp-masthead { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid currentColor; font: 700 .72rem/1 ui-monospace, Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 30px; }
.xp-giant { font-size: clamp(3rem, 13vw, 10.5rem); line-height: .86; }
.xp-spread { display: grid; gap: 30px; margin-top: 34px; }
@media (min-width: 900px) { .xp-spread { grid-template-columns: 1.4fr 1fr; } .xp-columns { column-count: 2; column-gap: 32px; } }
.xp-columns .xp-body { break-inside: avoid; }
.xp-dropcap::first-letter { float: left; font: 400 4.6em/.8 Georgia, serif; padding: 6px 10px 0 0; color: var(--ac); }
.xp-pull { margin: 24px 0; padding: 18px 0; border-top: 3px solid var(--ac); border-bottom: 1px solid currentColor; font: italic 400 clamp(1.4rem, 3vw, 2rem)/1.25 Georgia, serif; break-inside: avoid; }
.xp-portrait { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }

/* STATEMENT — one message */
.xp-statement { display: grid; align-items: center; text-align: center; }
.xp-narrow { max-width: 760px; position: relative; }
.xp-statement .xp-h { font-size: clamp(2.2rem, 6.4vw, 4.6rem); }
.xp-lines { margin-top: 26px; }
.xp-line { margin: 0 0 14px; font: 400 clamp(1.2rem, 3.2vw, 1.75rem)/1.45 Georgia, serif; }
.xp-sign { margin-top: 26px; font-style: italic; opacity: .85; }
.xp-backdrop { position: absolute; inset: -40% -30%; width: 160%; height: 180%; object-fit: cover; z-index: -1; opacity: .16; filter: blur(14px); }

/* SERVICE — clear offer */
.xp-service-hero { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .xp-service-hero { grid-template-columns: 1.1fr .9fr; } }
.xp-service .xp-h { font-size: clamp(2.1rem, 6vw, 4.4rem); font-weight: 800; }
.xp-service-media { width: 100%; border-radius: 18px; object-fit: cover; aspect-ratio: 4 / 3; }
.xp-benefits { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.xp-benefits li { padding: 16px; border-radius: 12px; background: color-mix(in srgb, var(--ac) 14%, transparent); }
.xp-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; max-width: 70ch; line-height: 1.55; }
.xp-sticky { position: sticky; bottom: 12px; text-align: center; margin-top: 24px; }

/* STAGE — poster */
.xp-poster .xp-giant { font-size: clamp(3.2rem, 15vw, 12rem); }
.xp-when { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; margin: 18px 0 0; font: 700 1rem/1.3 ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.xp-count { color: var(--ac); font-size: 1.3rem; }
.xp-stage-grid { display: grid; gap: 28px; margin-top: 30px; }
@media (min-width: 900px) { .xp-stage-grid { grid-template-columns: 1.3fr 1fr; } }
.xp-stage-media { width: 100%; display: block; object-fit: cover; }

/* Progressive reveal: content is visible without JS; only animated when JS opted in and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .xp-js [data-xp-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .xp-js [data-xp-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .xp-product { animation: none; } }

/* ONE DAY frame: always reachable, never on top of the owner's composition. */
.day-frame { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 6px 14px; background: rgba(12, 12, 14, .92); color: #f4f4f2; font: 600 13px/1.25 system-ui, -apple-system, Segoe UI, sans-serif; backdrop-filter: blur(6px); }
.day-frame a { color: inherit; text-decoration: none; }
/* Live presence (R7) on framed pages: a thin platform strip ABOVE the frame. The old floating pill (absolute,
   top: 34px) sat under the sticky frame: hidden on desktop, clipped on mobile (found in production 2026-10-16). */
body:has(.day-frame) > .note[data-presence] { position: static; display: block; margin: 0; padding: 3px 12px; border: 0; border-radius: 0; text-align: center; background: #0c0c0e; color: #c9c9c4; opacity: 1; font: 500 11px/1.4 system-ui, -apple-system, Segoe UI, sans-serif; }
.day-brand { font-weight: 900; letter-spacing: -.04em; font-size: 15px; white-space: nowrap; }
.day-today { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; }
.day-today b { font-weight: 800; }
.day-ad { margin-right: 4px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 4px; font-size: 10px; letter-spacing: .08em; }
.day-links { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.day-links a { min-height: 32px; display: inline-flex; align-items: center; gap: .35em; padding: 0 12px; border-radius: 999px; }
.day-links .day-tomorrow { background: #ffd400; color: #111; font-weight: 800; }
.day-links a:focus-visible, .day-brand:focus-visible { outline: 2px solid #ffd400; outline-offset: 2px; }
@media (max-width: 640px) { .day-frame .day-long, .day-links .day-archive { display: none; } .day-frame { gap: 8px; padding: 6px 10px; } .day-today { font-size: 12px; } }

/* HOUSE editions (no owner): same systems, labelled as ONE DAY's own page. */
.xp-house-note { display: inline-block; margin: 0 0 16px; padding: 6px 10px; border-radius: 6px; background: color-mix(in srgb, var(--fg) 12%, transparent); font: 700 .72rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.xp-facts { display: grid; gap: 12px; margin-top: 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.xp-facts div { padding: 16px; border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); border-radius: 12px; }
.xp-facts b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.xp-demo-banner { position: sticky; top: 44px; z-index: 39; margin: 0; padding: 8px 14px; background: #ffd400; color: #111; font: 800 12px/1.3 system-ui, sans-serif; letter-spacing: .04em; text-align: center; }
/* House palettes (no inline styles under CSP). */
.house-ink { --tk-bg: #0e0e10; --tk-fg: #f5f2ea; --tk-accent: #ffd400; }
.house-night { --tk-bg: #070a16; --tk-fg: #eef2ff; --tk-accent: #7cf0d5; }
.house-paper { --tk-bg: #f4efe6; --tk-fg: #141414; --tk-accent: #c4122f; }
.house-signal { --tk-bg: #b00020; --tk-fg: #ffffff; --tk-accent: #ffd400; }
.house-ocean { --tk-bg: #0b3d91; --tk-fg: #ffffff; --tk-accent: #7cffcb; }
.house-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-weight: 700; }
.house-links a { color: inherit; }
/* Editor: composition picker */
.xp-picker { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border: 1px solid #c9c6bd; padding: 12px; margin: 12px 0; }
.xp-picker legend { font-weight: 800; padding: 0 6px; }
.xp-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid #d8d5cc; border-radius: 8px; cursor: pointer; }
.xp-choice input { flex: none; margin: 3px 0 0; }
.xp-choice small { display: block; font-weight: 400; opacity: .8; margin-top: 2px; }
.xp-choice:has(input:checked) { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.showcase-list { list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.showcase-list a { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.showcase-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #111; }
.showcase-list b { font-size: 1.1rem; }
.owner-colophon { position: static; }
.xp-demo-banner a { color: inherit; }
@media (max-width: 640px) { .xp-statement { align-items: start; padding-top: 10vh; } .xp { min-height: auto; padding-top: 36px; } }
.xp:focus, .tk:focus { outline: none; }
@media (max-width: 640px) { .day-today { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; } }
/* Editor image affordances + studio placeholders */
.image-thumb { display: block; max-width: 220px; max-height: 160px; object-fit: contain; margin: 8px 0; border: 1px solid #c9c6bd; background: #fff; }
.xp-image-hint { margin-top: 4px; font-style: italic; }
.xp-placeholder { display: grid; place-items: center; min-height: 260px; border: 2px dashed currentColor; opacity: .55; font: 700 .8rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
