/* kiarax.com, second look (owner 2026-11-18): wider, a glass top bar, a hero of two hands joined by code, live
   examples, a fuller account page. Loaded after site.css and wins over it. Colour lives only in pictures (the hands). */

:root {
  --wrap: 1320px;
}
.serif {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  letter-spacing: -0.04em;
}
.lead {
  max-width: 680px;
}
.eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
}
.eyebrow::before {
  content: '[ ';
  opacity: 0.5;
}
.eyebrow::after {
  content: ' ]';
  opacity: 0.5;
}

/* ------------------------------------------------------------ top bar: a floating glass pill */
.nav,
.nav.stuck {
  top: 14px;
  height: auto;
  border: 0;
  background: none;
  backdrop-filter: none;
  pointer-events: none;
}
.nav .wrap {
  width: min(1120px, 100% - 28px);
  height: 54px;
  padding: 0 9px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.48);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 50px -22px rgba(0, 0, 0, 0.9);
  pointer-events: auto;
  transition: background 220ms var(--ease);
}
.nav.stuck .wrap {
  background: rgba(8, 8, 8, 0.8);
}
.nav .btn.small {
  height: 36px;
  padding: 0 16px;
}

/* ------------------------------------------------------------ hero: the headline over two hands */
.hero2 {
  position: relative;
  display: block;
  min-height: max(100svh, 860px);
  overflow: hidden;
  isolation: isolate;
  background: #000;
}
.hero2::before {
  /* a faint grid of points, fading out toward the edges */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero2 .copy {
  position: relative;
  z-index: 2;
  width: min(1100px, 100% - 40px);
  margin: 0 auto;
  padding-top: clamp(122px, 15.5vh, 178px);
  text-align: center;
}
h1.mega {
  font-size: clamp(44px, 7.6vw, 116px);
  font-weight: 580;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
h1.mega .rot {
  display: inline-block;
  min-width: 3ch;
  padding: 0 0.06em 0.06em;
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.hero2 .lead {
  max-width: 720px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.5vw, 20px);
}
.hero2 .cta {
  margin-top: 30px;
}
.hero2 .btn {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
}
.hero2 .hero-note {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hands {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  width: 100%;
  height: clamp(320px, 48vh, 560px);
  pointer-events: none;
}
.hero2::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 44px;
  background: linear-gradient(transparent, #000);
  pointer-events: none;
}

/* ------------------------------------------------------------ the running band and the facts */
.ticker {
  overflow: hidden;
  padding: 17px 0;
  border-block: 1px solid var(--line);
  color: var(--ink-3);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker div {
  display: inline-flex;
  gap: 44px;
  padding-right: 44px;
  animation: kx-slide 46s linear infinite;
}
.ticker b {
  color: #fff;
  font-weight: 500;
}
@keyframes kx-slide {
  to {
    transform: translateX(-50%);
  }
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--line);
  overflow: hidden;
}
.facts div {
  padding: 30px 28px;
  background: var(--bg);
}
.facts b {
  display: block;
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1;
}
.facts span {
  display: block;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
}

/* ------------------------------------------------------------ what it builds: tabs and a live stage */
.show {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  margin-top: clamp(36px, 5vw, 60px);
}
.show-tabs {
  display: grid;
  gap: 8px;
  align-content: start;
}
.show-tab {
  display: block;
  width: 100%;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms var(--ease),
    background 160ms var(--ease);
}
.show-tab:hover {
  border-color: var(--line-strong);
}
.show-tab[aria-selected='true'] {
  border-color: rgba(255, 255, 255, 0.55);
  background: var(--raised);
}
.show-tab b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.show-tab b i {
  color: var(--ink-3);
  font: 400 11px 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
}
.show-tab span {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.45;
}
.show-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: #080808;
  overflow: hidden;
}
.show-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font: 400 12.5px 'Geist Mono', ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
}
.show-bar .dots {
  display: inline-flex;
  gap: 6px;
}
.show-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.show-bar .say {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.show-bar .live {
  margin-left: auto;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.show-bar .live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #fff;
  animation: kx-blink 1.6s ease-in-out infinite;
}
@keyframes kx-blink {
  50% {
    opacity: 0.2;
  }
}
.show-panel {
  flex: 1;
  display: none;
  place-items: center;
  min-height: 0;
  padding: 26px;
}
.show-panel[data-on] {
  display: grid;
}
.show-panel canvas {
  width: 100%;
  max-width: 820px;
  height: auto;
  aspect-ratio: 16 / 9.4;
  border-radius: 14px;
}
.show-panel pre {
  margin: 0;
  color: #fff;
  font: 500 11px/1.02 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
  user-select: none;
}
.show-note {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--ink-3);
  font: 400 11px 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
}

/* a small website, drawn */
.mini {
  width: min(760px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #f4f1ea;
  color: #171512;
  overflow: hidden;
  text-align: left;
}
.mini .top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  font-size: 12px;
}
.mini .top b {
  margin-right: auto;
  font: italic 400 20px 'Instrument Serif', serif;
}
.mini .top u {
  padding: 6px 12px;
  border-radius: 999px;
  background: #171512;
  color: #f4f1ea;
  text-decoration: none;
}
.mini .mid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 26px 22px 30px;
}
.mini h4 {
  margin: 0;
  font: 400 44px/0.98 'Instrument Serif', serif;
  letter-spacing: -0.02em;
}
.mini p {
  margin: 12px 0 16px;
  color: #5d574d;
  font-size: 13px;
}
.mini .cup {
  aspect-ratio: 1.2;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 46%, #2a2018 0 24%, transparent 25%),
    radial-gradient(circle at 50% 46%, #fff 0 33%, transparent 34%),
    radial-gradient(circle at 50% 50%, #d9d2c3 0 42%, transparent 43%), #e6e0d2;
}
.mini .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #ddd6c8;
  font-size: 12px;
}
.mini .row span {
  padding: 12px 22px;
  border-left: 1px solid #ddd6c8;
}
.mini .row span:first-child {
  border-left: 0;
}
.mini .row b {
  display: block;
  font-size: 13px;
}

/* ------------------------------------------------------------ the loop */
.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(36px, 5vw, 56px);
}
.loop .step {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}
.loop .step pre {
  margin: 0 0 18px;
  color: var(--ink-3);
  font: 400 11px/1.25 'Geist Mono', ui-monospace, monospace;
}
.loop .step p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}
.loop .step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 1;
  width: 12px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}
.again {
  margin: 18px 0 0;
  color: var(--ink-3);
  font: 400 12px 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ the co-worker */
.talk {
  display: grid;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  font-size: 14.5px;
}
.talk .who {
  color: var(--ink-3);
  font: 400 11px 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.talk p {
  margin: 0;
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--raised);
  line-height: 1.5;
}
.talk p.me {
  justify-self: end;
  background: #fff;
  color: #000;
}
.talk .tagline {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 12.5px;
}
.marks {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.marks li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.marks li i {
  align-self: start;
  padding: 3px 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font: 400 10.5px 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.marks li i.now {
  border-color: #fff;
  background: #fff;
  color: #000;
}
.marks li b {
  display: block;
  font-weight: 560;
}
.marks li span {
  color: var(--ink-2);
}

/* ------------------------------------------------------------ questions */
.faq {
  border-top: 1px solid var(--line);
}
.faq:last-of-type {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 520;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  color: var(--ink-3);
  font: 300 24px 'Geist Mono', ui-monospace, monospace;
  transition: transform 200ms var(--ease);
}
.faq[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  margin: 0 0 24px;
  max-width: 760px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ------------------------------------------------------------ the closing band: the landscape */
.close {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  background: #000 center / cover no-repeat;
}
.close canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 600ms ease-out;
}
.close canvas[data-ready] {
  opacity: 1;
}
.close::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 160px;
  background: linear-gradient(#000, transparent);
  pointer-events: none;
}
.close .copy {
  position: absolute;
  top: 132px;
  left: 50%;
  z-index: 2;
  width: min(900px, 100% - 40px);
  transform: translateX(-50%);
  text-align: center;
}
.close h2 {
  font-size: clamp(38px, 6vw, 84px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.close .lead {
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.7);
}

/* ------------------------------------------------------------ account: a fuller dashboard */
.dash > .panel.w3 {
  grid-column: span 3;
}
.dash > .panel.w9 {
  grid-column: span 9;
}
.big.xl {
  font-size: 46px;
}
.kpi-sub {
  margin: 10px 0 0;
  min-height: 20px;
  color: var(--ink-3);
  font-size: 13px;
}
.chart {
  position: relative;
}
.chart .days {
  height: 190px;
  gap: 5px;
  padding-top: 8px;
  background: repeating-linear-gradient(to top, transparent 0 46.5px, rgba(255, 255, 255, 0.05) 46.5px 47.5px);
}
.chart .days i {
  border-radius: 5px 5px 2px 2px;
}
.chart .read {
  position: absolute;
  top: -4px;
  right: 0;
  color: var(--ink-2);
  font: 400 12px 'Geist Mono', ui-monospace, monospace;
}
.mbars {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mbars li {
  font-size: 14px;
}
.mbars .top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.mbars .top span {
  color: var(--ink-2);
}
.track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width 500ms var(--ease);
}
.devs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px;
}
.dev {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--raised);
}
.dev .head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dev .head svg {
  flex: none;
  width: 22px;
  height: 22px;
}
.dev .head b {
  display: block;
  font-size: 15px;
  font-weight: 560;
}
.dev .head span {
  display: block;
  color: var(--ink-3);
  font-size: 12.5px;
}
.dev .head .btn {
  margin-left: auto;
}
.dev .use {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-2);
  font-size: 13px;
}
.dev .limit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
  font-size: 13px;
}
.dev select {
  height: 32px;
  padding: 0 30px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5 8 10l3.500-3.500' fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    right 9px center / 14px no-repeat;
  color: #fff;
  font: inherit;
  font-size: 13px;
  appearance: none;
  cursor: pointer;
}

/* ------------------------------------------------------------ small screens */
@media (max-width: 1000px) {
  .show {
    grid-template-columns: 1fr;
  }
  .show-tabs {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .show-tab span {
    display: none;
  }
  .loop,
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .loop .step::after {
    display: none;
  }
  .dash > .panel.w3 {
    grid-column: span 6;
  }
  .dash > .panel.w9 {
    grid-column: span 12;
  }
}
@media (max-width: 620px) {
  .nav .wrap {
    padding-left: 16px;
  }
  .loop,
  .facts {
    grid-template-columns: 1fr;
  }
  .show-stage {
    min-height: 420px;
  }
  .show-panel pre {
    font-size: 7px;
  }
  .mini .mid {
    grid-template-columns: 1fr;
  }
  .mini h4 {
    font-size: 32px;
  }
  .dash > .panel.w3 {
    grid-column: span 12;
  }
  .close .copy {
    top: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker div {
    animation: none;
  }
}

/* the hands come up once their first frame is set */
.hands {
  opacity: 0;
  transition: opacity 700ms ease-out;
}
.hands[data-ready] {
  opacity: 1;
}
