/* kotygon home · isometric test blocks (13.10.2026, after the user's ref "Cloud agents / 100 agents. 100 VMs.").
   First screen ?hero=iso (default for now) + catalog shelf before the map. ?iso=off hides the shelf;
   removing this file, lab-iso.js and the two sections in front-page.php undoes the test. */

/* ---------- first screen ---------- */
.kiso-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: clamp(520px, 44vw, 660px); padding: clamp(24px, 3vw, 40px) clamp(4px, 3vw, 48px) clamp(12px, 2vw, 24px); color: #f1eee7; }
.kih-copy { padding-left: clamp(0px, 3vw, 48px); }
.kiso-hero h1 { margin: 0; font-family: var(--text); font-weight: 600; font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.045em; text-transform: none; color: #f1eee7; }
.kiso-hero h1 em { font-style: normal; color: var(--hot); }
.kiso-hero .actions { margin-top: 34px; }
.kih-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 12.5px; color: #86837c; }
.kih-note i { width: 6px; height: 6px; background: #86837c; }
.kih-scene { position: relative; min-width: 0; }
.kih-canvas { display: block; width: 100%; aspect-ratio: 1.25; }

/* ---------- catalog shelf ---------- */
.kiso { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 64px); color: #f1eee7; }
.kiso h2 { margin: 0; font-family: var(--text); font-weight: 600; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -.045em; text-transform: none; color: #f1eee7; }
.kiso h2 em { font-style: normal; color: var(--hot); }
.kiso-scene { position: relative; min-width: 0; }
.kiso-canvas { display: block; width: 100%; aspect-ratio: 1.3; }
.kiso-box { border: 1px solid #2a2927; background: radial-gradient(ellipse 70% 60% at 50% 55%, #141413, #0b0b0b 72%); }
.kiso-corner { position: absolute; z-index: 1; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #77746d; pointer-events: none; }
.kiso-tl { left: 14px; top: 12px; }
.kiso-br { right: 14px; bottom: 10px; }
.kiso-shelf canvas.is-link { cursor: pointer; }
.kiso-lead { margin: 24px 0 0; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.55; color: #9a968e; }
.kiso-lead b { font-weight: 600; color: #f1eee7; }
.kiso-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 10px 14px; border: 1px solid #3a3936; font-family: var(--mono); font-size: 11.5px; color: #c4c0b8; text-decoration: none; transition: border-color .15s, color .15s; }
.kiso-chip i { width: 7px; height: 7px; background: var(--hot); }
.kiso-chip:hover, .kiso-chip:focus-visible { border-color: var(--hot); color: #f1eee7; }

@media (max-width: 860px) {
  .kiso-hero, .kiso { grid-template-columns: 1fr; }
  .kiso-hero { min-height: 0; padding-top: 18px; }
  .kih-copy { padding-left: 0; }
  .kiso-shelf .kiso-copy { order: -1; }
}
/* First screen follows the kotygon design bible: Tektur / Golos / JetBrains. */
.kiso-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  min-height: clamp(560px, 44vw, 640px);
  padding: 32px 0 0;
  color: var(--ink);
}
.kih-copy { padding: 0; min-width: 0; }
.kiso-hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 5.2vw, 80px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--ink);
}
.kiso-hero h1 em { color: var(--hot); }
.kiso-hero .actions { margin-top: 32px; }
.kiso-hero .btn {
  min-height: 48px;
  padding: 0 20px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 0;
}
.kih-note {
  gap: 8px;
  margin: 16px 0 0;
  max-width: 48ch;
  font-family: var(--text);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--mute);
}
.kih-note i { width: 6px; height: 6px; flex: 0 0 6px; background: var(--dim); }
.kih-scene { isolation: isolate; min-width: 0; }
.kih-canvas { aspect-ratio: 500 / 620; margin-inline: auto; }
@media (max-width: 1100px) and (min-width: 861px) {
  .kiso-hero h1 { font-size: clamp(42px, 5.1vw, 58px); }
}
@media (max-width: 860px) {
  .kiso-hero { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding-top: 24px; }
  .kiso-hero h1 { font-size: clamp(38px, 7.8vw, 62px); line-height: 1.08; }
  .kih-scene { width: 100%; max-width: 600px; justify-self: center; }
  .kiso-hero .actions { margin-top: 24px; }
}
@media (max-width: 480px) {
  .kiso-hero { gap: 24px; }
  .kiso-hero h1 { font-size: clamp(32px, 9.1vw, 43px); }
}
/* 14.10: sizes after the user's mockup: a bigger headline and cat, the hero fills the first screen. */
@media (min-width: 861px) {
  .kiso-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); min-height: clamp(560px, calc(100svh - 120px), 860px); padding: 0; }
  .kiso-hero h1 { font-size: clamp(48px, 7.1vw, 104px); line-height: 1.04; }
  .kiso-hero .actions { margin-top: clamp(28px, 3vw, 44px); }
  .kiso-hero .btn { min-height: clamp(52px, 4.4vw, 64px); padding: 0 clamp(20px, 2vw, 28px); font-size: clamp(15px, 1.3vw, 19px); }
  .kih-note { margin-top: 20px; font-size: clamp(13px, 1.1vw, 16px); }
  .kih-note i { width: 8px; height: 8px; flex-basis: 8px; }
}
/* 14.10, mockup 2: a lighter first screen: smaller headline, a lead line, a button plus a quiet text link. */
.kiso-hero h1 { font-size: clamp(40px, 6.3vw, 94px); line-height: 1.05; }
.kih-lead { max-width: 36ch; margin: clamp(20px, 2vw, 28px) 0 0; font-family: var(--text); font-size: clamp(17px, 1.55vw, 23px); line-height: 1.45; color: #c4c0b8; text-wrap: pretty; }
.kiso-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(24px, 2.4vw, 36px); margin-top: clamp(28px, 2.6vw, 38px); }
.kih-link { display: inline-flex; align-items: center; gap: 12px; font-family: var(--text); font-size: clamp(15px, 1.2vw, 18px); color: #c4c0b8; text-decoration: none; }
.kih-link span { color: var(--hot); transition: transform .15s ease-out; }
.kih-link { background: linear-gradient(var(--hot), var(--hot)) 0 100% / calc(100% - 30px) 1px no-repeat; padding-bottom: 4px; }
.kih-link:hover, .kih-link:focus-visible { color: #f1eee7; }
.kih-link:hover span { transform: translateX(3px); }
.kih-note { margin-top: clamp(20px, 2vw, 28px); }
@media (max-width: 860px) {
  .kih-lead { font-size: 17px; }
  .kiso-hero .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .kih-link span { transition: none; } }
/* 14.10, "the page presses on me": a calmer scale. Smaller type, more air, a smaller centered cat. */
@media (min-width: 861px) {
  .kiso-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); min-height: clamp(520px, calc(100svh - 160px), 720px); padding: clamp(24px, 3vw, 48px) 0; }
  .kih-copy { max-width: 540px; }
  .kiso-hero h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.06; letter-spacing: -.02em; }
  .kih-lead { max-width: 40ch; margin-top: 22px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; color: #a9a59d; }
  .kiso-hero .actions { gap: 14px 28px; margin-top: 32px; }
  .kiso-hero .btn { min-height: 48px; padding: 0 22px; font-size: 14px; }
  .kih-link { font-size: 15px; }
  .kih-note { margin-top: 22px; font-size: 13px; }
  .kih-note i { width: 6px; height: 6px; flex-basis: 6px; }
  .kih-scene { justify-self: center; width: 100%; max-width: 460px; }
}
/* 14.10: the user wants a 70/30 split, not 50/50: copy 70%, cat 30%. */
@media (min-width: 861px) {
  .kiso-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: clamp(24px, 3vw, 48px); }
  .kih-copy { max-width: none; }
  .kih-lead { max-width: 44ch; }
  .kih-scene { justify-self: end; max-width: none; }
}
/* 14.10 fix: the user meant cat 70% / copy 30%, kept together (no corners). */
@media (min-width: 861px) {
  .kiso-hero { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(16px, 2vw, 32px); }
  .kih-lead { max-width: 34ch; }
  .kiso-hero .actions { gap: 16px 24px; }
  .kih-scene { justify-self: stretch; }
  .kih-canvas { width: 100%; aspect-ratio: auto; height: clamp(440px, calc(100svh - 230px), 660px); }
}
/* 14.10: the copy + cat pair is centered as one group: the canvas is exactly as wide as the cat frame, no empty strip on the right. */
@media (min-width: 861px) {
  .kiso-hero { grid-template-columns: minmax(0, 360px) auto; justify-content: center; gap: clamp(8px, 1.2vw, 20px); }
  .kih-scene { justify-self: start; width: auto; }
  .kih-canvas { width: auto; max-width: 100%; height: clamp(440px, calc(100svh - 230px), 660px); aspect-ratio: 500 / 620; }
}
/* 14.10: copy sits on the site's left line, the cat closes the right line; a two-line headline fills the gap between them. */
@media (min-width: 861px) {
  .kiso-hero { grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); justify-content: stretch; gap: clamp(24px, 3vw, 40px); }
  .kiso-hero h1 { font-size: clamp(36px, 4.1vw, 60px); }
  .kiso-hero h1 span { white-space: nowrap; }
  .kih-lead { max-width: 46ch; }
  .kiso-hero .actions { flex-wrap: nowrap; }
  .kih-scene { justify-self: end; width: 100%; }
  .kih-canvas { width: 100%; height: auto; max-width: none; aspect-ratio: 500 / 620; }
}
@media (min-width: 861px) { .kih-mbr { display: none; } }

/* 14.10, user sketch: caps headline in the site display font, three lines (first orange), lead + two equal buttons. */
.kiso-hero h1.kih-caps { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: .98; font-size: clamp(40px, 5.6vw, 84px); color: #f1eee7; }
.kiso-hero h1.kih-caps .ln { display: block; white-space: nowrap; }
.kiso-hero h1.kih-caps .ln:first-child { color: var(--hot); }
.kiso-hero .kih-lead { max-width: 30em; margin-top: clamp(18px, 1.8vw, 26px); }
.kiso-hero .actions { flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 2.4vw, 32px); }
.kiso-hero .actions .btn { flex: 0 0 auto; }
@media (max-width: 560px) { .kiso-hero .actions .btn { flex: 1 1 100%; justify-content: center; } }

/* 14.10: the selected hero follows both themes, including its final caps variant. */
.kiso-hero h1.kih-caps { color: var(--ink); }
.kiso-hero .kih-lead { color: var(--mute); }
@media (max-width: 860px) {
  .kiso-hero { min-height: 0; gap: 18px; }
  .kih-scene { max-width: 400px; justify-self: center; }
  .kih-canvas { aspect-ratio: 500 / 560; }
}
