/*
 * Secondary pages (Version E system, 16 Nov 2026). Shared primitives for every page that is not Home:
 * hero, micro label / crumbs, capability cards, process, FAQ, index, work grid, call to action.
 * Same tokens and type as hx.css (loaded alongside it); each page adds its own signature section
 * from assets/css/sections/sx-*.css, loaded only where it is used.
 */
.sx { position: relative; }
.sx-pad { padding: 120px 0; }
.sx-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.sx-head--c { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.sx-head--c .hx-lede { margin-left: auto; margin-right: auto; }
.sx-head .hx-lede { margin: 0; }
.sx-h2 { margin: 0; font: 700 clamp(40px, 5.2vw, 78px)/.95 var(--x-d); font-stretch: 88%; letter-spacing: -.045em; color: var(--x-white); }
.sx-h2 .hx-it { font-size: 1.05em; }
.sx-h3 { margin: 0; font: 600 22px/1.15 var(--x-d); letter-spacing: -.02em; color: var(--x-white); }
.sx-p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--x-soft); }

/* ---------- hero ---------- */
.sx-hero { padding: calc(var(--x-head) + 70px) 0 90px; overflow: hidden; }
.sx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; font: 500 12px/1 var(--x-d); letter-spacing: .16em; text-transform: uppercase; color: var(--x-grey); }
.sx-crumbs a { color: var(--x-grey); text-decoration: none; transition: color .25s; }
.sx-crumbs a:hover { color: var(--x-white); }
.sx-crumbs li + li::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 10px; border-radius: 50%; background: var(--x-acc); vertical-align: 1px; }
.sx-hero__h { margin: 0; font: 700 clamp(52px, 7.4vw, 118px)/.9 var(--x-d); font-stretch: 88%; letter-spacing: -.05em; color: var(--x-white); }
.sx-hero__h .hx-it { font-size: 1.05em; padding-right: .04em; }
.sx-hero__p { max-width: 560px; margin: 28px 0 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--x-soft); }
.sx-hero__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.sx-hero__pts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--x-grey); }
.sx-hero__pts li { display: flex; align-items: center; gap: 8px; }
.sx-hero__pts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--x-acc); }
.sx-hero--center { text-align: center; }
.sx-hero--center .sx-crumbs, .sx-hero--center .sx-hero__act, .sx-hero--center .sx-hero__pts { justify-content: center; }
.sx-hero--center .sx-hero__p { margin-left: auto; margin-right: auto; }
.sx-hero--split .hx-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.sx-hero__media { position: relative; min-height: 520px; }
.sx-hero--center .sx-hero__media { min-height: 0; margin-top: 70px; }
/* hero media: a fan of three phones (full-bleed creative) */
.sx-fan { position: relative; height: 560px; perspective: 1400px; }
.sx-fan .sx-ph { position: absolute; left: 50%; top: 50%; width: 230px; margin: -235px 0 0 -115px; }
.sx-fan .sx-ph:nth-child(1) { transform: translateX(-170px) translateY(30px) rotate(-9deg) translateZ(-60px); }
.sx-fan .sx-ph:nth-child(2) { z-index: 2; }
.sx-fan .sx-ph:nth-child(3) { transform: translateX(170px) translateY(40px) rotate(8deg) translateZ(-60px); }
/* the phone shell used by every page (screen = the creative, full bleed) */
.sx-ph { position: relative; aspect-ratio: .488; padding: 3%; border-radius: 17% / 8.2%; background: linear-gradient(145deg, #45454a 0%, #1d1d20 34%, #2b2b2f 68%, #151517 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 0 0 3px #0b0b0c, 0 40px 70px -34px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .6); }
.sx-ph__scr { position: relative; height: 100%; overflow: hidden; border-radius: 14% / 6.8%; background: #000; }
.sx-ph__scr > img, .sx-ph__scr > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-ph__scr::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 32%); pointer-events: none; }
.sx-ph__isl { position: absolute; z-index: 3; top: 2.1%; left: 50%; width: 31%; height: 3.5%; transform: translateX(-50%); border-radius: 20px; background: #000; }
/* hero media: a single framed image */
.sx-frame { position: relative; overflow: hidden; border-radius: 28px; background: var(--x-char); box-shadow: inset 0 0 0 1px var(--x-line), 0 50px 90px -50px rgba(0, 0, 0, .9); }
.sx-frame > img, .sx-frame > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sx-cap { margin: 14px 0 0; font-size: 12px; color: var(--x-grey); }

/* ---------- capability cards ("what we make") ---------- */
.sx-cards__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sx-cards__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 26px 24px 24px; border-radius: 26px; background: linear-gradient(180deg, #121212, #0C0C0C); box-shadow: inset 0 0 0 1px var(--x-line); overflow: hidden; color: var(--x-white); text-decoration: none; isolation: isolate; }
.sx-card__n { font: 600 12px/1 var(--x-d); letter-spacing: .08em; color: var(--x-acc); }
.sx-card .sx-h3 { margin-top: auto; }
.sx-card:not(.sx-card--media):not(:has(.sx-card__g)) { min-height: 230px; }
a.sx-card::after { content: ''; position: absolute; right: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--x-acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .4s var(--x-ease); }
a.sx-card:hover::after { transform: rotate(45deg); }
.sx-card__g { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 26px 0 30px; color: rgba(241, 240, 236, .55); transition: color .5s var(--x-ease); }
.sx-card__g .sx-glyph { width: 124px; height: 68px; overflow: visible; transition: transform .7s var(--x-ease); }
.sx-card__g em { font: 600 11px/1 var(--x-d); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--x-grey); }
.sx-card:hover .sx-card__g { color: var(--x-white); }
.sx-card:hover .sx-glyph { transform: translateY(-4px) scale(1.04); }
.sx-card .sx-p { margin-top: 10px; font-size: 14.5px; }
.sx-card--media { min-height: 380px; justify-content: flex-end; padding: 22px; }
.sx-card--media > img, .sx-card--media > video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--x-ease); }
.sx-card--media::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .3) 45%, rgba(0, 0, 0, 0) 70%); }
.sx-card--media:hover > img { transform: scale(1.04); }
.sx-card--media .sx-h3 { margin-top: 0; }
.sx-card--media .sx-card__n { position: absolute; top: 22px; left: 22px; }

/* ---------- process ---------- */
.sx-steps__row { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.sx-steps__row::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--x-line-2); }
.sx-step { position: relative; padding-top: 64px; }
.sx-step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--x-black); box-shadow: inset 0 0 0 1px var(--x-line-2); font: 600 12.5px/1 var(--x-d); color: var(--x-acc); }
.sx-step .sx-h3 { font-size: 20px; }
.sx-step .sx-p { margin-top: 10px; font-size: 14.5px; }

/* ---------- FAQ ---------- */
.sx-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.sx-faq__list { border-top: 1px solid var(--x-line); }
.sx-faq__q { border-bottom: 1px solid var(--x-line); }
.sx-faq__q summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; cursor: pointer; list-style: none; font: 600 18px/1.3 var(--x-d); letter-spacing: -.01em; color: var(--x-white); }
.sx-faq__q summary::-webkit-details-marker { display: none; }
.sx-faq__q summary i { position: relative; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--x-line-2); }
.sx-faq__q summary i::before, .sx-faq__q summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--x-white); transition: transform .4s var(--x-ease); }
.sx-faq__q summary i::after { transform: rotate(90deg); }
.sx-faq__q[open] summary i { background: var(--x-acc); box-shadow: none; }
.sx-faq__q[open] summary i::before, .sx-faq__q[open] summary i::after { background: #0A0A0A; }
.sx-faq__q[open] summary i::after { transform: rotate(0deg); }
.sx-faq__a { max-width: 640px; padding: 0 2px 24px; font-size: 15.5px; line-height: 1.6; color: var(--x-soft); }
.sx-faq__more { margin-top: 30px; }
.sx-faq__a p { margin: 0 0 10px; }
.sx-faq__a p:last-child { margin-bottom: 0; }
.sx-faq--all .sx-faq__side { position: sticky; top: 110px; }
.sx-faq--all .sx-faq__list { border-top: 0; }
.sx-faq__jump { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--x-line); }
.sx-faq__jump a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--x-line); color: var(--x-soft); font-size: 15px; text-decoration: none; transition: color .3s; }
.sx-faq__jump a:hover { color: var(--x-acc); }
.sx-faq__jump b { font-weight: 500; color: var(--x-grey); font-variant-numeric: tabular-nums; }
.sx-faq__group { scroll-margin-top: 110px; border-top: 1px solid var(--x-line); }
.sx-faq__group + .sx-faq__group { margin-top: 56px; }
.sx-faq__gh { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0; padding: 26px 2px 12px; font: 600 26px/1.1 var(--x-d); letter-spacing: -.02em; color: var(--x-white); }
.sx-faq__gh .hx-tlink { font-size: 13px; }
/* Selected creative on a service page (hx-picks with mod 'pc'): four columns, 4:5 feed ads in the stack */
.hx-picks--pc .hx-picks__spread { justify-content: center; }
.hx-picks--pc .hx-pk--film { width: 23%; }
.hx-picks--pc .hx-pk--long { width: 22%; }
.hx-picks--pc .hx-pk__stack { width: 19%; }
.hx-picks--pc .hx-pk--story { width: 19%; }
.hx-pk--45 .hx-pk__frame { aspect-ratio: 4 / 5; }

/* ---------- call to action ---------- */
.sx-cta { padding: 60px 0 24px; }
.sx-cta__panel { position: relative; margin: 0 var(--x-gut); padding: 100px 40px 90px; border-radius: var(--x-r); background: radial-gradient(60% 90% at 50% 120%, rgba(var(--x-acc-rgb), .14), transparent 60%), linear-gradient(180deg, #101010, #070707); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px var(--x-line); text-align: center; overflow: hidden; }
.sx-cta__h { margin: 0 auto; max-width: 980px; font: 700 clamp(46px, 6vw, 96px)/.92 var(--x-d); font-stretch: 88%; letter-spacing: -.05em; color: var(--x-white); }
.sx-cta__p { max-width: 520px; margin: 24px auto 0; font-size: 17px; line-height: 1.5; color: var(--x-soft); }
.sx-cta__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.sx-cta__lines { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14.5px; }
.sx-cta__lines a { color: var(--x-white); text-decoration: none; }
.sx-cta__lines span { color: var(--x-grey); }

/* ---------- services index ---------- */
.sx-index__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--x-line); }
.sx-index__i a { display: grid; grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 1fr) 52px; gap: 24px; align-items: center; padding: 28px 4px; border-bottom: 1px solid var(--x-line); color: var(--x-white); text-decoration: none; transition: background-color .3s, padding .45s var(--x-ease); }
.sx-index__i a:hover { padding-left: 14px; background: rgba(255, 255, 255, .02); }
.sx-index__n { font: 600 13px/1 var(--x-d); color: var(--x-acc); }
.sx-index__t { font: 700 clamp(26px, 2.6vw, 38px)/1 var(--x-d); font-stretch: 88%; letter-spacing: -.035em; }
.sx-index__l { font-size: 15px; line-height: 1.5; color: var(--x-soft); }
.sx-index__go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--x-line-2); transition: background-color .3s, color .3s, transform .5s var(--x-ease); }
.sx-index__i a:hover .sx-index__go { background: var(--x-acc); color: #0A0A0A; box-shadow: none; transform: rotate(45deg); }
/* launch pass: two tiers */
.sx-index__k { margin: 0 0 18px; font: 500 11.5px/1 var(--x-d); letter-spacing: .2em; text-transform: uppercase; color: var(--x-grey); }
.sx-index__k--also { margin-top: 64px; }
.sx-index__list--also .sx-index__i a { padding: 18px 4px; }
.sx-index__list--also .sx-index__t { font-size: clamp(20px, 1.7vw, 25px); color: var(--x-soft); }
.sx-index__list--also .sx-index__n { color: var(--x-grey); }
.sx-index__list--also .sx-index__go { width: 38px; height: 38px; }

/* ---------- real client work ---------- */
.sx-work__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sx-work__i { margin: 0; }
.sx-work__frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 22px; background: var(--x-char); box-shadow: inset 0 0 0 1px var(--x-line); }
.sx-work__frame img { position: absolute; left: 0; top: 0; width: 100%; height: auto; transition: transform 6s cubic-bezier(.45, .05, .35, 1); }
.sx-work__i:hover .sx-work__frame img { transform: translateY(calc(-100% + 100cqh)); }
.sx-work__frame { container-type: size; }
.sx-work__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.sx-work__cap b { font: 600 16px/1.2 var(--x-d); color: var(--x-white); }
.sx-work__cap span { font-size: 13px; color: var(--x-grey); }
.sx-work__cap a { color: var(--x-white); font-size: 13px; }

/* ---------- text block ---------- */
.sx-text__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; }
.sx-text__body p { margin: 0 0 18px; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--x-soft); }
.sx-text__body p:first-child { font-size: 24px; line-height: 1.4; color: var(--x-white); }

@media (max-width: 1023px) {
  .hx-picks--pc .hx-pk--film, .hx-picks--pc .hx-pk--long, .hx-picks--pc .hx-pk__stack, .hx-picks--pc .hx-pk--story { width: auto; }
  .sx-pad { padding: 90px 0; }
  .sx-head, .sx-hero--split .hx-wrap, .sx-faq__grid, .sx-text__grid { grid-template-columns: 1fr; gap: 28px; }
  .sx-cards__grid, .sx-cards__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-steps__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .sx-steps__row::before { display: none; }
  .sx-hero__media { min-height: 0; }
  .sx-index__i a { grid-template-columns: 44px minmax(0, 1fr) 46px; }
  .sx-index__l { grid-column: 2; }
}
@media (max-width: 767px) {
  .sx-pad { padding: 72px 0; }
  .sx-hero { padding: calc(var(--x-head) + 40px) 0 60px; }
  .sx-hero__h { font-size: clamp(44px, 12.5vw, 60px); }
  .sx-cards__grid, .sx-cards__grid--3 { grid-template-columns: 1fr; }
  .sx-card { min-height: 220px; }
  .sx-card--media { min-height: 320px; }
  .sx-steps__row { grid-template-columns: 1fr; }
  .sx-fan { height: 420px; }
  .sx-fan .sx-ph { width: 170px; margin: -175px 0 0 -85px; }
  .sx-fan .sx-ph:nth-child(1) { transform: translateX(-105px) translateY(26px) rotate(-9deg); }
  .sx-fan .sx-ph:nth-child(3) { transform: translateX(105px) translateY(34px) rotate(8deg); }
  .sx-work__grid { grid-template-columns: 1fr; }
  .sx-cta__panel { padding: 70px 22px 60px; }
  .sx-faq__q summary { font-size: 16.5px; }
  .sx-faq--all .sx-faq__side { position: static; }
  .sx-faq__gh { font-size: 21px; }
}

/* ---------- conversion round (16 Nov 2026): the next action under a section ---------- */
.sx-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 40px; padding: 22px 24px 22px 28px; border-radius: 22px; background: #0F0F0F; box-shadow: inset 0 0 0 1px var(--x-line); }
.sx-next p { margin: 0; max-width: 620px; font: 600 19px/1.3 var(--x-d); letter-spacing: -.015em; color: var(--x-white); }
.sx-next p:empty { display: none; }
@media (max-width: 767px) {
  .sx-next { padding: 20px 18px; margin-top: 30px; }
  .sx-next p { font-size: 17px; }
  .sx-next .hx-btn { width: 100%; justify-content: space-between; }
}

/* real builds on a desktop and a phone, with one detail each (sx-work 'devices', Websites page) */
.sx-dev { display: grid; gap: 22px; }
.sx-dev__i { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); gap: 22px; align-items: stretch; padding: 22px; border-radius: var(--x-r); background: linear-gradient(180deg, #111, #0A0A0A); box-shadow: inset 0 0 0 1px var(--x-line); }
.sx-dev__stage { position: relative; padding: 0 70px 40px 0; }
.sx-dev__desk { overflow: hidden; border-radius: 14px; background: #1A1A1A; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .95), inset 0 0 0 1px var(--x-line); }
.sx-dev__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1E1E1E; }
.sx-dev__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3A3A3A; }
.sx-dev__bar span { margin-left: 12px; padding: 3px 12px; border-radius: 99px; background: #111; font-size: 11px; color: var(--x-grey); }
.sx-dev__scr { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: size; }
.sx-dev__scr img { position: absolute; left: 0; top: 0; width: 100%; height: auto; transition: transform 7s cubic-bezier(.45, .05, .35, 1); }
.sx-dev__i:hover .sx-dev__scr img { transform: translateY(calc(-100% + 100cqh)); }
.sx-dev__phone { position: absolute; right: 0; bottom: 0; width: 26%; aspect-ratio: .462; padding: 2.4%; border-radius: 15% / 7%; background: linear-gradient(145deg, #45454a, #1b1b1e 36%, #2a2a2e 70%, #141416); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), 0 30px 50px -20px rgba(0, 0, 0, .95); }
.sx-dev__pscr { height: 100%; overflow: hidden; border-radius: 12% / 5.6%; background: #000; }
.sx-dev__pscr img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sx-dev__side { display: flex; flex-direction: column; gap: 18px; }
.sx-dev__det { margin: 0; overflow: hidden; border-radius: 18px; background: #151515; box-shadow: inset 0 0 0 1px var(--x-line); }
.sx-dev__det img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.sx-dev__det figcaption { padding: 16px 18px 18px; font: 600 16px/1.35 var(--x-d); letter-spacing: -.01em; color: var(--x-white); }
.sx-dev__det figcaption span { display: block; margin-bottom: 8px; font: 600 11px/1 var(--x-d); letter-spacing: .16em; text-transform: uppercase; color: var(--x-acc); }
.sx-dev__cap { margin-top: auto; padding: 4px 4px 2px; }
.sx-dev__cap b { display: block; font: 700 24px/1.05 var(--x-d); font-stretch: 88%; letter-spacing: -.03em; color: var(--x-white); }
.sx-dev__cap > span { display: block; margin-top: 6px; font-size: 14px; color: var(--x-grey); }
.sx-dev__cap .hx-tlink { margin-top: 6px; }
.sx-dev__more { margin: 26px 0 0; }
@media (max-width: 1023px) { .sx-dev__i { grid-template-columns: 1fr; } .sx-dev__side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; } .sx-dev__cap { margin-top: 0; } }
@media (max-width: 767px) { .sx-dev__i { padding: 14px; border-radius: 22px; } .sx-dev__stage { padding: 0 40px 28px 0; } .sx-dev__side { grid-template-columns: 1fr; } .sx-dev__phone { width: 30%; } }
