/* IttisalX page CSS: only what sits inside a visual and the kit lacks.
   Brand colours from the logo packs: graphite #2A2724, paper #F5F3EF, ferozi #12989A, gold #C29B4A. */
:root { --brand-gold: #c29b4a; --brand-graphite: #2a2724; --brand-ferozi: #12989a; --brand-dark: #211f1d; }

/* ---------- the mascot: the gold square of the IX mark, with eyes ---------- */
.mascot { display: inline-block; flex: none; line-height: 0; }
.mascot svg { width: 100%; height: auto; display: block; overflow: visible; }
.mx-body { fill: var(--brand-gold); }
.mx-eye { fill: var(--brand-graphite); transform-box: fill-box; transform-origin: center; transition: transform 120ms ease; }
.mx-eyes { transition: transform 160ms cubic-bezier(.22, 1, .36, 1); }
.mx-legs { stroke: var(--brand-graphite); stroke-width: 3; stroke-linecap: round; fill: none; }
.mascot.is-blink .mx-eye { transform: scaleY(.12); }
.mascot.is-hop svg { animation: mx-hop 520ms cubic-bezier(.22, 1, .36, 1); }
@keyframes mx-hop { 0% { transform: none; } 35% { transform: translateY(-22%) scaleY(1.04); } 70% { transform: translateY(2%) scaleY(.96); } 100% { transform: none; } }
.mascot--tile { width: 26px; }
.mascot--avatar { width: 30px; margin-top: 2px; }
.mascot--big { width: 72px; }
@media (prefers-reduced-motion: reduce) { .mascot svg, .mx-eyes, .mx-eye { animation: none !important; transition: none !important; } }

/* ---------- the hero window: IttisalX One with the AI assistant open ---------- */
.hero--centred .hero__window { background: var(--brand-dark); }
.mw { background: #fff; color: #23201d; border-radius: 14px; overflow: hidden; font: 400 14px/1.45 var(--font-text);
  box-shadow: 0 0 0 1px rgb(42 39 36 / .1), 0 30px 60px -30px rgb(0 0 0 / .45); }
.mw__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(42 39 36 / .08); font-size: 13px; color: #6a6764; white-space: nowrap; }
.mw__bar b { color: #23201d; font-weight: 600; }
.mw__bar .sp { flex: 1; }
.mw__dots { display: flex; gap: 6px; } .mw__dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2ded7; }
.mw__body--hero { display: grid; grid-template-columns: 250px 1fr; min-height: 420px; }
.inbox { border-right: 1px solid rgb(42 39 36 / .08); padding: 10px; display: grid; align-content: start; gap: 2px; background: #faf9f6; }
.inbox .q { height: 34px; margin-bottom: 6px; border-radius: 9px; background: #efece6; display: flex; align-items: center; padding: 0 10px; color: #6a6764; font-size: 13px; }
.inbox .t { display: grid; grid-template-columns: 26px 1fr; gap: 1px 10px; padding: 9px 8px; border-radius: 9px; font-size: 13px; align-items: center; }
.inbox .t.is-on { background: #e7f3f2; }
.inbox .t > img, .inbox .t > .mascot { grid-row: 1 / span 2; width: 26px; height: auto; }
.inbox .t b { font-weight: 600; color: #23201d; }
.inbox .t span:not(.mascot) { grid-column: 2; color: #6a6764; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo { display: grid; min-width: 0; align-content: start; }
.d-chat { display: grid; gap: 8px; align-content: start; padding: 14px 18px; font-size: 14px; }
.d-msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.d-msg--me { justify-self: end; background: var(--brand-graphite); color: #f5f3ef; border-bottom-right-radius: 6px; }
.d-bot { display: flex; gap: 10px; align-items: flex-start; max-width: 90%; }
.d-msg--bot { max-width: none; background: #f1eee8; color: #23201d; border-bottom-left-radius: 6px; }
.d-msg small { display: block; margin-top: 4px; font-size: 13px; color: #0d6e70; font-weight: 500; }
.d-tool { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6a6764; padding-left: 40px; }
.d-tool::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brand-ferozi); border-right-color: transparent; }
.acts { display: flex; gap: 8px; padding-left: 40px; }
.acts { gap: 16px; }
.acts span { font-size: 13px; font-weight: 500; color: #0d6e70; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.acts span + span { color: #6a6764; }
@media (max-width: 639px) {
  .mw__body--hero { grid-template-columns: 1fr; min-height: 0; }
  .inbox, .mw__apps, .d-tool, .d-msg--bot small { display: none; }
  .hero__window .d-chat { font-size: 13px; padding: 12px 14px; }
  .acts, .d-tool { padding-left: 0; }
  .mascot--avatar { width: 26px; }
}

/* ---------- app-frame (sections-library.md, app-frame: the recipe's own CSS) ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* the open record */
.rec { padding: 24px 28px; display: grid; gap: 20px; align-content: start; font-family: var(--font-text); color: var(--u-ink, #23201d); }
.rec__head { display: flex; align-items: center; gap: 14px; }
.rec__av { width: 44px; height: 44px; font-size: 15px; }
.rec__title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.rec__sub { margin: 2px 0 0; font-size: 13px; color: var(--u-muted, #6a6764); }
.rec__chip { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: #fbf1dc; color: #6f5317; font-size: 13px; font-weight: 500; }
.rec__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 16px 0; border-block: 1px solid var(--u-line); }
.rec__fields dt { font-size: 13px; color: var(--u-muted, #6a6764); }
.rec__fields dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.rec__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rec__grid > .ui-panel { width: 100%; }
.rec__org { display: grid; gap: 10px; justify-items: start; }
.rec__label { margin: 0 0 4px; font-size: 13px; color: var(--u-muted, #6a6764); }
.rec__node { position: relative; padding: 8px 12px; border: 1px solid var(--u-line); border-radius: 10px; font-size: 13px; font-weight: 500; background: var(--u-bg); }
.rec__node + .rec__node { margin-left: 20px; }
.rec__node + .rec__node::before { content: ""; position: absolute; left: -14px; top: -12px; width: 12px; height: 28px; border-left: 1px solid var(--u-line); border-bottom: 1px solid var(--u-line); border-bottom-left-radius: 6px; }
.rec__node--this { font-weight: 700; }
@media (max-width: 1279px) { .rec__grid { grid-template-columns: minmax(0, 1fr); } .rec__org { display: none; } }
@media (max-width: 639px) { .rec { padding: 16px; } .rec__fields { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ArchlyShelf steps: drawn windows on the lit ground ---------- */
#archive-indexer .mo-pc__visual--lit { background: #e9e3d8; }
.mw--step { width: min(100%, 460px); }
.mw__pad { padding: 18px 20px 22px; display: grid; gap: 12px; }
.cat__drive { display: flex; gap: 12px; align-items: center; }
.cat__drive img { width: 36px; height: 36px; }
.cat__drive b { display: block; font-weight: 600; }
.cat__drive span, .cat__count { font-size: 13px; color: #6a6764; margin: 0; }
.cat__bar { height: 8px; border-radius: 99px; background: #efece6; overflow: hidden; }
.cat__bar i { display: block; width: 84%; height: 100%; background: var(--brand-ferozi); border-radius: inherit; }
.cat__rows, .srch__rows { list-style: none; margin: 0; padding: 0; display: grid; }
.cat__rows li { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid rgb(42 39 36 / .08); font-size: 13px; }
.cat__rows li span + span { color: #6a6764; font-variant-numeric: tabular-nums; }
.srch__field { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid var(--brand-ferozi); border-radius: 10px; font-weight: 500; }
.srch__field svg { width: 16px; height: 16px; fill: none; stroke: #6a6764; stroke-width: 1.6; stroke-linecap: round; }
.srch__rows li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.srch__rows li b { font-weight: 500; font-size: 14px; }
.srch__rows li span { color: #6a6764; }
.srch__rows li.is-sel { background: #e7f3f2; }
.srch__rows li.is-sel span { color: #0d6e70; }

/* step 3: the shelf, the mascot pulling Drive 0193, the request beside it */
.fetch { gap: 20px; flex-direction: column; }
.shelf { position: relative; width: min(100%, 420px); display: grid; gap: 14px; padding: 18px 18px 8px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgb(42 39 36 / .1); }
.shelf__row { display: grid; grid-template-columns: 34px repeat(6, 1fr); gap: 6px; align-items: end; padding-bottom: 6px; border-bottom: 4px solid var(--brand-graphite); }
.shelf__row span { font-size: 13px; font-weight: 600; color: #6a6764; align-self: center; }
.shelf__row i { height: 44px; border-radius: 4px 4px 0 0; background: #d8d2c7; }
.shelf__row i:nth-child(odd) { background: #cfc8bb; }
.shelf__row i.is-gap { background: transparent; border: 1px dashed #b7afa2; border-bottom: 0; }
.fetcher { position: absolute; right: 64px; top: 52px; display: flex; align-items: flex-end; gap: 0; }
.drive { order: 2; display: grid; place-items: center; width: 34px; height: 44px; margin-left: -12px; margin-bottom: 18px; border-radius: 4px; background: var(--brand-ferozi); color: #111; font: 600 11px/1 var(--font-mono); writing-mode: vertical-rl; transform: rotate(-8deg); }
.req { width: min(100%, 420px); background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: 0 0 0 1px rgb(42 39 36 / .1); display: grid; gap: 10px; font-size: 13px; }
.req__title { margin: 0; font-weight: 600; font-size: 14px; }
.req__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.req__steps li { padding: 6px 8px; border-radius: 8px; background: #efece6; color: #6a6764; text-align: center; }
.req__steps li.is-done { background: #e7f3f2; color: #0d6e70; }
.req__steps li.is-now { background: var(--brand-graphite); color: #f5f3ef; }
.req__eta { margin: 0; color: #6a6764; }
/* live: when step 3 opens, the mascot walks in from the left and carries the drive out */
.mo-pc__visual.is-on .fetcher { animation: mx-walk 1.4s cubic-bezier(.22, 1, .36, 1) both; }
.mo-pc__visual.is-on .fetcher .drive { animation: mx-pull 1.4s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes mx-walk { 0% { transform: translateX(-220px); } 55% { transform: translateX(-120px); } 100% { transform: none; } }
@keyframes mx-pull { 0%, 45% { opacity: 0; transform: translate(-96px, -20px) rotate(0); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .mo-pc__visual.is-on .fetcher, .mo-pc__visual.is-on .fetcher .drive { animation: none; } }
@media (max-width: 1023px) { .mascot--big { width: 52px; } .fetcher { top: 44px; } }
@media (max-width: 639px) { .shelf__row i { height: 30px; } .req { display: none; } }

/* ---------- the statement ---------- */
#apps .mo-lt__type { max-width: none; font-weight: var(--display-weight); letter-spacing: var(--display-tracking-xl); }
.statement__row { margin-top: var(--s-7); }
.statement__dg { --p-h: 360px; height: var(--p-h); }
.statement__dg .dg { height: 100%; }
@media (max-width: 639px) { .statement__dg { --p-h: 300px; margin-top: var(--s-6); } }

/* ---------- features: panel heights ---------- */
#included .panel { --p-h: 300px; }
#included .panel .dg { height: 100%; }
@media (max-width: 639px) { #included .panel { --p-h: 200px; } }

/* ---------- Deskhopps ---------- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; }
.facts li { padding: 12px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- the close: the mascot is the dot of the i ---------- */
.close__word .x { color: var(--brand-ferozi); }
.idot { position: relative; display: inline-block; }
.mascot--dot { position: absolute; left: 50%; width: .15em; bottom: .6em; transform: translateX(-50%); }

/* ---------- phone screens: the resting ArchlyShelf steps take exactly two screens ---------- */
@media (max-width: 639px) {
  main > #archive-indexer[data-moment]:not(.is-live) { min-height: 200lvh; }
  #included .panel { --p-h: 168px; }
}

/* body text in the ink (7:1): the kit's centred lead is grey */
.hero--centred .hero__lead { color: var(--ink); }

/* the close: room above the letters for the mascot dot, nothing clipped */
.close__word { line-height: 1.04; overflow: visible; padding-top: .08em; }

/* the questions: three ways to reach IttisalX, with real icons */
.routes { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); max-width: 420px; }
.routes a { display: flex; align-items: center; gap: var(--s-4); min-height: 56px; padding: var(--s-2) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--g-alt, var(--surface)); color: var(--ink); text-decoration: none; }
.routes .ic, .routes .mascot--route { width: 32px; height: auto; flex: none; }
.routes b { display: block; font-weight: 500; }
.routes a span span { color: var(--muted); font-size: var(--t-small); }

/* ---------- Also from IttisalX: ArchlyShelf (Windows app) and Deskhopps ---------- */
#products .panel { --p-h: 232px; }
#products .card > .facts { margin-top: var(--s-2); }
#products .card > .facts li { padding: 8px 0; }
.prod-mark { width: 28px; height: 28px; vertical-align: -6px; margin-right: 10px; }
.as-win .mw__bar img { width: 18px; height: 18px; }
.as-job { display: grid; gap: 0; margin: 0; }
.as-job > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgb(42 39 36 / .08); font-size: 13px; }
.as-job dt { color: #6a6764; }
.as-job dd { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: #23201d; }
.as-sum { margin: 0 0 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.as-sum b { font-weight: 600; color: #0d6e70; }
.as-sum span { color: #6a6764; }
.as-log { list-style: none; margin: 0; padding: 10px 12px; border-radius: 10px; background: #f1eee8; font: 400 12.5px/1.6 var(--font-mono); color: #23201d; }
.as-log time { color: #6a6764; margin-right: 10px; }
.as-log .is-warn { color: #8a6417; }
@media (max-width: 639px) { #products .panel { --p-h: 220px; } .as-job > div { grid-template-columns: 88px 1fr; } }
#products .card > .link { justify-self: start; align-self: flex-start; width: fit-content; }

/* ---------- laptops (1280 and up, any height): a section grows past its screen rather than overlap the next.
   The kit does this from 640 to 1279; at 1440x900 every section already fits, so nothing changes there. ---------- */
@media (min-width: 1280px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing {
    height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
  }
  :where(main > :is(section, .section):not(.hero, .section--hero), footer.closing) { display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}
/* the close: the big name never runs into the links under it */
footer.closing .close--word { display: flex; flex-direction: column; gap: var(--s-5); }
footer.closing .close__word { margin-top: 0; padding-top: .04em; }
/* a fact list under a lead keeps its own air */
.t-lead + .facts { margin-top: var(--s-2); }

/* split heroes: the h1 a step smaller so a 45-character headline keeps to three lines in Manrope */
.hero--split h1 { font-size: clamp(40px, 4.4vw, 62px); }
