/* The sectors, one at a time (canvas SX, v45 → the local site 2026-09-25). Markup:
 * tools/sectors-markup.mjs. Behaviour: sinora-sectors.js.
 *
 * The canvas's two boards are the two layouts here:
 *   a landscape screen ≥1024 = the 1440 board: the words on the reading side, the photo on the
 *     other, the six sectors under the words; its composition is 1280 × 720 at --u = 1px and
 *     shrinks as a whole with the width and, on a fitted screen (sinora-fit.css), the room
 *   one column (phones, tablets, portrait) = the 390 board: the photo, the six sectors 3 × 2, the
 *     words; the pause on the photo's corner
 * Every size below is the board's own number.
 *
 * Scoping: the theme sets h1–h6 with `!important`, and sinora-redesign.css gives every link
 * and button a transition at (1,2,0); so the headline goes through the id with !important and
 * the controls through `#hozeha.sx`. */

#hozeha.sx {
  --g: #090a09; --ink: #f8f6f2; --soft: #dedbd3; --muted: #b9b5ab; --gold: #e6ba5a; --edge: #f5d28a;
  --hair: rgba(238, 225, 188, .14);
  --grad: linear-gradient(115deg, #f7d785, #e6b454 66%, #c38d35);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: linear(0, .0502, .1647, .3042, .4447, .573, .6827, .7723, .8425, .8956, .9344, .9618, .9804, .9925, .9998, 1.0039, 1.0058, 1.0063, 1.006, 1.0053, 1.0044, 1.0035, 1.0027, 1.002, 1.0015, 1);
  position: relative; isolation: isolate; container-type: inline-size; overflow-x: clip;
  color: var(--ink); font-family: IranSans, Tahoma, sans-serif; text-align: start;
}
#hozeha.sx--tr { font-family: Inter, system-ui, sans-serif; }
#hozeha.sx *, #hozeha.sx *::before, #hozeha.sx *::after { box-sizing: border-box; }
#hozeha.sx :where(p, h3, ul) { margin: 0; padding: 0; }
#hozeha.sx :where(ul) { list-style: none; }

/* ─────────────────────────── one column (the 390 board) ─────────────────────────── */
#hozeha .sx__in { position: relative; display: grid; grid-template-areas: "media" "bar" "panels"; row-gap: 16px; width: min(100%, 640px); margin-inline: auto; }
/* the gold glow behind the photo: out of the flow, so it never makes its row taller */
#hozeha .sx__in::before { content: ""; position: absolute; grid-area: media; left: 50%; top: 50%; translate: -50% -50%; width: 150%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(214, 166, 73, .1), rgba(214, 166, 73, 0)); }

/* the photo: a real moment, one at a time */
#hozeha .sx__media { grid-area: media; position: relative; z-index: 1; width: 100%; aspect-ratio: 358 / 430; max-height: 62svh; border-radius: 24px; overflow: hidden; isolation: isolate;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
#hozeha .sx__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(145deg, rgba(247, 215, 133, .55), rgba(230, 186, 90, .16) 38%, rgba(230, 186, 90, .06) 62%, rgba(247, 215, 133, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
#hozeha .sx-photo { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 1.1s var(--ease); }
#hozeha .sx-photo.is-on { z-index: 2; opacity: 1; }
#hozeha .sx-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
#hozeha .sx-photo.is-on img { animation: sxKB 9s linear forwards; }
@keyframes sxKB { from { transform: scale(1.07); } to { transform: scale(1); } }
#hozeha .sx-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(9, 10, 9, 0) 60%, rgba(9, 10, 9, .35)); }
/* the Turkish gym coach: the offer in green, with no third party's name or logo */
#hozeha .sx-deal { position: absolute; z-index: 4; inset-inline-start: 12px; bottom: 12px; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 24px); padding: 8px 12px;
  border-radius: 16px; background: rgba(9, 10, 9, .66); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 30px rgba(0, 0, 0, .35); }
#hozeha .sx-deal b { color: #5be38a; font-size: 12px; font-weight: 700; line-height: 1.35; }
#hozeha .sx-deal b i { margin-inline-end: 4px; font-size: 15px; font-style: normal; font-weight: 800; letter-spacing: -.01em; }
#hozeha .sx-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the six, and where the autoplay is */
#hozeha .sx__bar { grid-area: bar; z-index: 1; }
#hozeha .sx-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 4px; padding: 6px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02) 48%, rgba(255, 255, 255, .04)), rgba(12, 12, 11, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 20px 50px rgba(0, 0, 0, .35); }
#hozeha .sx-tabs::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, .06) 32%, rgba(255, 255, 255, 0) 58%, rgba(230, 186, 90, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
#hozeha .sx-sel { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 16px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02)), rgba(201, 169, 97, .14);
  box-shadow: inset 0 0 0 1px rgba(232, 212, 168, .38), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -8px 14px rgba(201, 169, 97, .12), 0 8px 22px rgba(201, 169, 97, .2);
  transition: transform .6s var(--spring), width .6s var(--spring), height .6s var(--spring); }
#hozeha.sx .sx-tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; height: 46px; padding: 0 6px;
  border: 0; border-radius: 16px; background: none; color: var(--muted); font: inherit; font-size: 15px; line-height: 1.3; cursor: pointer; transition: color .3s ease; }
#hozeha.sx--tr .sx-tab { font-size: 14px; font-weight: 500; }
#hozeha.sx .sx-tab[aria-selected="true"] { color: var(--ink); }
#hozeha .sx-tab > span:first-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hozeha .sx-tab:not(:first-of-type)::before { content: ""; position: absolute; inset-inline-start: 0; top: 16px; bottom: 16px; width: 1px; background: rgba(255, 255, 255, .1); transition: opacity .3s ease; }
#hozeha .sx-tab:nth-of-type(4)::before, #hozeha .sx-tab[aria-selected="true"]::before, #hozeha .sx-tab[aria-selected="true"] + .sx-tab::before { opacity: 0; }
#hozeha .sx-prog { position: absolute; inset-inline: 22%; bottom: 7px; height: 2px; border-radius: 2px; background: rgba(230, 186, 90, .16); overflow: hidden; opacity: 0; transition: opacity .3s ease; }
#hozeha .sx-prog i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: right; }
#hozeha.sx--tr .sx-prog i { transform-origin: left; }
#hozeha .sx-tab[aria-selected="true"] .sx-prog { opacity: 1; }
#hozeha .sx-tab[aria-selected="true"] .sx-prog i { animation: sxProg var(--dwell, 6.5s) linear forwards; }
#hozeha.sx.is-paused .sx-prog i, #hozeha.sx.is-paused .sx-photo.is-on img { animation-play-state: paused; }
@keyframes sxProg { to { transform: scaleX(1); } }
/* 44px, the targets' floor (the canvas drew it at 40) */
#hozeha.sx .sx-ctl { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--muted); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
#hozeha .sx-ctl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#hozeha .sx-ctl .i-play { display: none; fill: currentColor; stroke: none; }
#hozeha .sx-ctl[aria-pressed="true"] .i-pause { display: none; }
#hozeha .sx-ctl[aria-pressed="true"] .i-play { display: block; }
#hozeha.sx :is(.sx-tab, .sx-ctl, .sx-cta):focus-visible { outline: 2px solid var(--edge); outline-offset: 3px; }

/* the words */
#hozeha .sx__panels { grid-area: panels; display: grid; z-index: 1; padding-inline: 4px; }
#hozeha .sx-panel { grid-area: 1 / 1; visibility: hidden; }
#hozeha .sx-panel.is-on { visibility: visible; }
#hozeha .sx-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .01em; line-height: 1.5; }
#hozeha .sx-eyebrow::after { content: ""; width: 44px; height: 1px; background: var(--gold); opacity: .55; }
#hozeha .sx-h { margin-top: 14px !important; color: var(--ink); font-family: "w_Ray Extra Black", IranSans, sans-serif !important; font-weight: 900 !important; font-size: 30px; line-height: 1.4; word-spacing: .12em; letter-spacing: normal; }
#hozeha.sx--tr .sx-h { font-family: Inter, system-ui, sans-serif !important; font-weight: 750 !important; font-size: 29px; line-height: 1.18; letter-spacing: -.035em; word-spacing: normal; }
#hozeha .sx-h span { display: block; }
#hozeha .sx-h em { color: var(--gold); font-style: normal; }
#hozeha .sx-lead { margin-top: 22px; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.75; }
#hozeha.sx--tr .sx-lead { font-weight: 600; line-height: 1.5; }
#hozeha .sx-ticks { margin-top: 13px; }
#hozeha .sx-ticks li { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--hair); color: var(--soft); font-size: 15px; line-height: 1.75; }
#hozeha.sx--tr .sx-ticks li { line-height: 1.55; }
#hozeha .sx-ticks li:last-child { border-bottom: 0; }
#hozeha .sx-ticks svg { flex: none; width: 20px; height: 20px; margin-top: .28em; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#hozeha .sx-act { margin-top: 24px; }
#hozeha.sx .sx-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--edge); background: var(--grad);
  color: #171309; font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap; text-decoration: none;
  box-shadow: inset 0 1px 1px rgba(255, 233, 175, .4), 0 5px 20px rgba(218, 161, 66, .12); }
#hozeha .sx-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ─────────────── a landscape screen (the 1440 board), 1280 × 720 at --u = 1px ─────────────── */
@media (min-width: 1024px) and (min-aspect-ratio: 5/6) {
  /* --u follows the width (the composition is 1280 wide) and, where sinora-fit.css gives it
     the room under the header (--sx-room), the height (720 tall); never over its size */
  #hozeha .sx__in {
    --u: clamp(.6px, min(calc(100cqw / 1280), calc(var(--sx-room, 100000px) / 720)), 1px);
    width: auto; margin: 0; row-gap: 0; column-gap: calc(80 * var(--u)); justify-content: center;
    grid-template-columns: calc(560 * var(--u)) calc(640 * var(--u)); grid-template-rows: 1fr auto; grid-template-areas: "panels media" "bar media";
  }
  #hozeha .sx__in::before { width: calc(760 * var(--u)); }
  /* 720 tall at its size; as tall as the words beside it where their floors (small text, 44px
     targets) make them taller than that — a 1024 screen, which is not fitted */
  #hozeha .sx__media { height: auto; min-height: calc(720 * var(--u)); aspect-ratio: auto; max-height: none; border-radius: calc(30 * var(--u)); }
  #hozeha .sx-deal { inset-inline-start: calc(20 * var(--u)); bottom: calc(20 * var(--u)); gap: 12px; padding: 10px 16px 10px 14px; max-width: calc(100% - 40px); }
  #hozeha .sx-deal b { font-size: 14px; }
  #hozeha .sx-deal b i { font-size: 18px; }
  #hozeha .sx__panels { align-self: start; padding: calc(20 * var(--u)) 0 0; }
  #hozeha .sx-h { font-size: calc(46 * var(--u)); }
  #hozeha.sx--tr .sx-h { font-size: calc(44 * var(--u)); }
  #hozeha .sx-lead { margin-top: calc(30 * var(--u)); font-size: max(15px, calc(21 * var(--u))); }
  #hozeha .sx-ticks { margin-top: calc(18 * var(--u)); }
  #hozeha .sx-ticks li { padding-block: calc(14 * var(--u)); font-size: max(13.5px, calc(17 * var(--u))); }
  #hozeha .sx-act { margin-top: calc(33 * var(--u)); }
  #hozeha.sx .sx-cta { min-height: max(44px, calc(54 * var(--u))); }
  #hozeha .sx__bar { align-self: end; display: flex; align-items: center; gap: 14px; }
  #hozeha .sx-tabs { flex: 1; grid-template-columns: repeat(6, 1fr); row-gap: 0; }
  /* six in a row: the names shrink with the composition (never under 11.5px) and a long one
     takes two lines rather than an ellipsis */
  #hozeha.sx .sx-tab { height: max(44px, calc(52 * var(--u))); padding-inline: calc(6 * var(--u)); font-size: max(11.5px, calc(15 * var(--u))); }
  #hozeha.sx--tr .sx-tab { font-size: max(11.5px, calc(14 * var(--u))); }
  #hozeha .sx-tab > span:first-child { overflow: visible; text-overflow: clip; white-space: normal; text-align: center; line-height: 1.15; }
  #hozeha .sx-tab:nth-of-type(4):not([aria-selected="true"]):not([aria-selected="true"] + .sx-tab)::before { opacity: 1; }
  #hozeha.sx .sx-ctl { position: relative; top: auto; inset-inline-end: auto; flex: none; }
}

/* ─────────────────────────── preferences ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #hozeha.sx :is(.sx-photo, .sx-sel, .sx-tab) { transition: none !important; }
  #hozeha .sx-photo.is-on img { animation: none; transform: none; }
  #hozeha .sx-prog, #hozeha.sx .sx-ctl { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  #hozeha :is(.sx-tabs, .sx-deal, .sx-ctl) { background: #161512; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  #hozeha .sx-tabs { border: 1px solid rgba(248, 246, 242, .5); }
}
