/* Brand guidelines (/brand) - openai.com/brand-style: centred hero, hairline
   section heads, logo tiles with generous space. Tokens from the NXT4AP kit. */
.bx { --bx-grad: radial-gradient(120% 140% at 0% 0%, #10164D 0%, #0C056D 50%, #2027E1 100%); --bx-text: color-mix(in srgb, #10164D 70%, #fff); }
.bx-hero-stage { margin-top: 72px; aspect-ratio: 16 / 6; border-radius: 24px; background: var(--bx-grad); display: grid; place-items: center; }
.bx-hero-stage img { width: min(46%, 520px); height: auto; }

.bx-prose { max-width: 62ch; }
.bx-prose p, .bx-split p, .bx-cols p, .bx-type p { font-size: 16px; line-height: 1.7; color: var(--bx-text); margin: 0 0 16px; }
.bx h3 { font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--nxt-midnight); margin: 0 0 8px; }
.bx-split p + h3 { margin-top: 28px; }
.bx-fine { font-size: 14px !important; color: var(--nxt-gray) !important; margin-top: 24px !important; }
.bx a:not(.px-btn):not(.px-more) { color: var(--nxt-cobalt); }

/* Logo tiles */
.bx-tiles { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 24px; }
.bx-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bx-tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bx-tiles li > p { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--bx-text); }
.bx-tiles li > p strong { font-weight: 500; color: #B4232A; }
.bx-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; display: grid; place-items: center; overflow: hidden; }
.bx-tile > img { width: 56%; height: auto; max-height: 44%; object-fit: contain; }
.bx-on-white { background: #fff; box-shadow: inset 0 0 0 1px var(--border-subtle); }
.bx-on-sunken { background: var(--nxt-ink-50); }
.bx-on-midnight { background: #10164D; }
.bx-on-gradient { background: var(--bx-grad); }
.bx-on-busy { background: #E2412F url("/assets/brand/busy-background.jpg") center 35% / cover no-repeat; }

/* The don'ts: the supplied file, with the mistake applied */
.bx-x-stretch { transform: scaleX(1.45) scaleY(0.7); }
.bx-x-recolour { filter: invert(37%) sepia(88%) saturate(2600%) hue-rotate(345deg) brightness(95%); }
.bx-x-effect { filter: drop-shadow(6px 8px 0 rgba(32, 39, 225, 0.55)) drop-shadow(0 0 2px #F2B33D); }
.bx-x-rotate { transform: rotate(-14deg); }
.bx-x-retype { font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 40px); font-weight: 300; color: #10164D; letter-spacing: 0.04em; }
.bx-x-retype b { font-weight: 700; }
.bx-crowd { grid-auto-flow: column; gap: 4px; }
.bx-crowd > img { width: auto; height: 22%; max-height: none; }
.bx-crowd span, .bx-added span { font-size: clamp(16px, 1.6vw, 22px); font-weight: 600; color: #10164D; }
.bx-crowd span { padding: 6px 10px; background: #E7E8F2; border-radius: 4px; }
.bx-added { grid-auto-flow: row; align-content: center; gap: 2px; }
.bx-added > img { max-height: 30%; }
.bx-added span { font-weight: 400; letter-spacing: 0.35em; text-transform: uppercase; font-size: 13px; }
.bx-donts .bx-tile::after { content: ""; position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: #B4232A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 7l8 8M15 7l-8 8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat; }

/* Clear space and symbol */
.bx-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 56px; }
.bx-clear { aspect-ratio: 16 / 10; }
.bx-clear-box { display: block; width: 62%; padding: 9%; outline: 1.5px dashed rgba(32, 39, 225, 0.55); outline-offset: 0; background: repeating-linear-gradient(45deg, rgba(32, 39, 225, 0.06) 0 6px, transparent 6px 12px); }
.bx-clear-box img { display: block; width: 100%; height: auto; background: var(--nxt-ink-50); }
.bx-symbols { display: flex; align-items: center; gap: 20px; }
.bx-symbol-dark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: #10164D; }

/* Colours */
.bx-swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.bx-swatches li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--bx-text); }
.bx-swatches strong { font-weight: 500; color: var(--nxt-midnight); }
.bx-sw { display: block; aspect-ratio: 1; border-radius: 16px; margin-bottom: 12px; }
.bx-sw-snow { background: #fff; box-shadow: inset 0 0 0 1px var(--border-default); }
.bx-gradient { margin-top: 32px; height: 120px; border-radius: 16px; background: var(--bx-grad); }
.bx-caption { margin: 12px 0 0; font-size: 14px; color: var(--nxt-gray); }

/* Typeface */
.bx-type { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.bx-type-big { margin: 0 !important; font-size: clamp(120px, 16vw, 220px) !important; font-weight: 500; line-height: 1 !important; letter-spacing: -0.04em; color: var(--nxt-midnight) !important; }
.bx-type-name { font-size: 28px !important; font-weight: 500; color: var(--nxt-midnight) !important; margin-bottom: 8px !important; }
.bx-weights { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 20px; color: var(--nxt-midnight); }

/* Co-branding */
.bx-lockup { grid-auto-flow: column; justify-content: center; gap: 28px; }
.bx-lockup > img { width: auto; height: 15%; max-height: none; }
.bx-divider { width: 1px; height: 26%; background: var(--border-strong); }
.bx-partner { display: grid; place-items: center; height: 15%; min-height: 36px; padding: 0 18px; border: 1.5px dashed var(--border-strong); border-radius: 8px; font-size: 14px; color: var(--nxt-gray); }

.bx-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }

@media (max-width: 860px) {
  .bx-tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-split, .bx-type, .bx-cols { grid-template-columns: 1fr; gap: 32px; }
  .bx-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bx-hero-stage { aspect-ratio: 4 / 3; margin-top: 48px; }
  .bx-hero-stage img { width: 64%; }
}
@media (max-width: 540px) {
  .bx-tiles-3, .bx-tiles-2 { grid-template-columns: 1fr; }
}

/* OpenAI-order layout (19 Nov): subsections, do/don't marks, gallery, lists, FAQ */
.bx .px-hero h1 { max-width: none; }
.bx-sub { margin-top: 64px; }
.bx-sub:first-of-type { margin-top: 0; }
.bx-sub > h3 { font-size: 20px; margin-bottom: 16px; }
.bx-sub .bx-split { margin-top: 32px; align-items: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bx-big { aspect-ratio: 16 / 10; }
.bx-big > img { width: 60%; }
.bx-tile > img.bx-symbol { width: auto; height: 34%; max-height: none; }
.bx-tile > img.bx-symbol-sm { width: auto; height: 18%; max-height: none; }
.bx-no { color: #B4232A !important; }
.bx-yes { color: #0E7A55 !important; }
.bx-tiles li > p strong.bx-yes { color: #0E7A55; }
.bx-dont::after, .bx-do::after { content: ""; position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; background-position: center; background-size: 22px; background-repeat: no-repeat; }
.bx-dont::after { background-color: #B4232A; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 7l8 8M15 7l-8 8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.bx-do::after { background-color: #0E7A55; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.bx-note { margin: 24px 0 0; font-size: 14px; color: var(--nxt-gray); }
.bx-note a + a { margin-left: 12px; }

.bx-lockup > img.bx-symbol-sm { height: 15%; }
.bx-uneven > img { height: 7% !important; }
.bx-uneven .bx-partner { height: 30%; min-height: 64px; padding: 0 32px; }
.bx-divider-w { background: rgba(255, 255, 255, 0.5); }
.bx-partner-w { border-color: rgba(255, 255, 255, 0.6); color: rgba(255, 255, 255, 0.85); }
.bx-lockup .bx-partner { font-size: 12px; }

.bx-list-head { font-weight: 500; color: var(--nxt-midnight) !important; margin-bottom: 8px !important; }
.bx-list { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.bx-list li::marker { color: var(--nxt-cobalt, #2027E1); }
.bx-list li { font-size: 16px; line-height: 1.7; color: var(--bx-text); margin-bottom: 6px; }

.bx-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bx-gallery li { aspect-ratio: 4 / 3; border-radius: 16px; display: grid; place-items: center; overflow: hidden; }
.bx-gallery li.bx-g-wide { grid-column: span 2; aspect-ratio: auto; min-height: 260px; }
.bx-gallery img { width: 52%; height: auto; }
.bx-gallery .bx-g-wide img { width: 40%; }
.bx-gallery img.bx-symbol { width: auto; height: 34%; }

.bx-download { display: grid; gap: 24px; max-width: 68ch; }
.bx-kit { background: #F4F5FB; border-radius: 16px; padding: 28px; }
.bx-kit-label { display: block; font-size: 14px; font-weight: 500; color: var(--nxt-midnight, #10164D); margin-bottom: 8px; }
.bx-kit-row { display: flex; gap: 12px; flex-wrap: wrap; }
.bx-kit-input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; padding: 12px 16px; border: 1px solid #D5D8EA; border-radius: 999px; background: #fff; color: var(--nxt-midnight, #10164D); }
.bx-kit-input:focus { outline: 2px solid #2027E1; outline-offset: 1px; border-color: #2027E1; }
.bx-kit button[disabled] { opacity: 0.6; cursor: progress; }
.bx-kit-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bx-kit-msg { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; color: var(--bx-text); }
.bx-kit-msg.is-ok { color: #1E7A4C; }
.bx-kit-msg.is-error { color: #B3261E; }
.bx-kit-fine { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--nxt-gray, #8A8FAD); }
.bx-download .bx-prose p:last-child { margin-bottom: 0; }

.bx-faq details { border-bottom: 1px solid var(--border-subtle); }
.bx-faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 18px; font-weight: 500; color: var(--nxt-midnight); display: flex; justify-content: space-between; align-items: center; }
.bx-faq summary::-webkit-details-marker { display: none; }
.bx-faq summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--nxt-gray); }
.bx-faq details[open] summary::after { content: "–"; }
.bx-faq p { max-width: 70ch; margin: 0 0 20px; font-size: 16px; line-height: 1.7; color: var(--bx-text); }

@media (max-width: 860px) {
  .bx-sub .bx-split { grid-template-columns: 1fr; }
  .bx-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-download { gap: 20px; }
}
@media (max-width: 540px) {
  .bx-gallery { grid-template-columns: 1fr; }
  .bx-gallery li.bx-g-wide { grid-column: auto; aspect-ratio: 4 / 3; }
}
.bx-on-dark { background: #3A3F5C; }

/* ---------- The logo story (hero, 19 Nov): dots, minimal lines, then nxt / 4 / ap
   with their meaning, on the Brilliant Blue gradient. 14 s, loops. ---------- */
.bx-story { position: relative; }
.bx-story svg { width: 100%; height: 100%; display: block; }
.bx-story * { animation-duration: 14s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.2,.7,.2,1); animation-fill-mode: both; }
.bx-story.is-paused * { animation-play-state: paused; }
.bx-s-dots circle { transform-box: fill-box; transform-origin: center; animation-name: bx-dot; }
.bx-s-d2 { animation-delay: .15s; } .bx-s-d3 { animation-delay: .3s; } .bx-s-d4 { animation-delay: .45s; } .bx-s-d5 { animation-delay: .6s; } .bx-s-d6 { animation-delay: .75s; }
.bx-s-lines line { stroke-opacity: .45; stroke-dasharray: 1000; animation-name: bx-line; }
.bx-s-l2 { animation-delay: .2s; } .bx-s-l3 { animation-delay: .4s; } .bx-s-l4 { animation-delay: .6s; }
.bx-s-nxt, .bx-s-4, .bx-s-ap { transform-box: fill-box; transform-origin: center bottom; }
.bx-s-nxt { animation-name: bx-part-1; } .bx-s-4 { animation-name: bx-part-2; } .bx-s-ap { animation-name: bx-part-3; }
.bx-s-c1 { animation-name: bx-cap-1; } .bx-s-c2 { animation-name: bx-cap-2; } .bx-s-c3 { animation-name: bx-cap-3; }
.bx-s-cap text { opacity: 0; letter-spacing: .02em; }

@keyframes bx-dot  { 0% { opacity: 0; transform: scale(0); } 6% { opacity: 1; transform: scale(1); } 66% { opacity: 1; transform: scale(1); } 76%, 100% { opacity: 0; transform: scale(0); } }
@keyframes bx-line { 0%, 4% { stroke-dashoffset: 1000; } 18% { stroke-dashoffset: 0; } 66% { stroke-dashoffset: 0; opacity: 1; } 76%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes bx-part-1 { 0%, 20% { opacity: 0; transform: translateY(18px); } 28%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes bx-part-2 { 0%, 34% { opacity: 0; transform: translateY(18px); } 42%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes bx-part-3 { 0%, 48% { opacity: 0; transform: translateY(18px); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes bx-cap-1 { 0%, 24% { opacity: 0; } 29%, 66% { opacity: .75; } 74%, 100% { opacity: 0; } }
@keyframes bx-cap-2 { 0%, 38% { opacity: 0; } 43%, 66% { opacity: .75; } 74%, 100% { opacity: 0; } }
@keyframes bx-cap-3 { 0%, 52% { opacity: 0; } 57%, 66% { opacity: .75; } 74%, 100% { opacity: 0; } }

.bx-s-toggle { position: absolute; left: 20px; bottom: 18px; padding: 6px 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font: 500 13px/1.2 Poppins, sans-serif; cursor: pointer; }
.bx-s-toggle:hover { background: rgba(255,255,255,.24); }
.bx-s-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .bx-story * { animation: none !important; }
  .bx-s-lines, .bx-s-dots, .bx-s-cap { display: none; }
  .bx-s-toggle { display: none; }
}

/* Text-only sections: heading on the left, text beside it (as on openai.com/brand) */
@media (min-width: 900px) {
  .px-wrap:has(> .px-head + .bx-prose:last-child),
  .px-wrap:has(> .px-head + .bx-download:last-child) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 64px; align-items: start;
  }
  .px-wrap:has(> .px-head + .bx-prose:last-child) > .bx-prose { max-width: 68ch; }
}

/* Usage terms: a calm note instead of a warning */
.bx-callout { background: #F4F5FB; border-radius: 12px; padding: 18px 22px; margin: 24px 0 8px; }
.bx-callout p { margin: 0 !important; }

/* Sign-off: a quiet close, with the way to the About page */
.bx-signoff-card {
  background: var(--bx-grad); color: #fff; border-radius: 24px; padding: 72px 48px;
  text-align: center; width: 100%; box-sizing: border-box; margin: 0;
}
.bx-signoff-card p { color: rgba(255, 255, 255, 0.82); font-size: 16px; line-height: 1.7; margin: 0 auto 12px; max-width: 72ch; }
.bx-signoff-mark { display: block; margin: 0 auto 20px; width: 40px; height: auto; opacity: 0.9; }
.bx-signoff .bx-signoff-card p.bx-signoff-lead { color: #fff; font-size: 24px; line-height: 1.4; margin-bottom: 16px; }
.bx-signoff-card .bx-signoff-sign { color: #fff; font-weight: 500; margin: 20px auto 28px; }
.bx-signoff-btn { background: #fff; color: #10164D; }
.bx-signoff-btn:hover { background: #E8EAF8; color: #10164D; }
.bx-signoff { padding-bottom: 96px; }
