/* Kanik Studio — additions for the "one master brand" update.
   Loaded after site.css. Only adds new classes (ksx-*) and one hero override; nothing in site.css is changed. */

/* ---------- Hero headline (longer line than the original, so a slightly smaller scale) ---------- */
.ksx-h1,[data-view="home"] [data-hero-inner] h1.ksx-h1{font-size:clamp(2.4rem,10.4vw,8.4rem)!important;line-height:.96;letter-spacing:-.045em;font-weight:500;text-wrap:balance}
.ksx-h1 [data-hero-line]:nth-child(2){padding-left:0}
@media (min-width:48rem){.ksx-h1,[data-view="home"] [data-hero-inner] h1.ksx-h1{font-size:clamp(2.2rem,8vw,12rem)!important}.ksx-h1 [data-hero-line]{white-space:nowrap}.ksx-h1 [data-hero-line]:nth-child(2){padding-left:0}.ksx-h1{margin-left:-.05em}[data-view="home"] [data-hero-inner] p[data-hero-fade]{max-width:40rem}}
@media (min-width:48rem){[data-view="home"] #about>p:not(.kx-about-note){max-width:min(100%,30.5em)!important;text-wrap:balance}}

/* ---------- Section primitives ---------- */
.ksx-sec{position:relative;padding:12vh 4vw}
.ksx-head{display:flex;flex-direction:column;gap:1.25rem;margin-bottom:6vh;padding-bottom:1.75rem;border-bottom:1px solid var(--border)}
@media (min-width:48rem){.ksx-head{flex-direction:row;align-items:flex-end;justify-content:space-between}}
.ksx-kicker{font-family:var(--font-mono-ui);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent)}
.ksx-title{font-size:clamp(2rem,5vw,4.2rem);font-weight:500;line-height:.95;letter-spacing:-.04em;margin-top:.75rem}
.ksx-intro{max-width:24rem;font-size:.875rem;line-height:1.6;color:var(--muted-foreground)}
@media (min-width:48rem){.ksx-intro{text-align:right}}

/* ---------- Card grid ---------- */
.ksx-grid{display:grid;gap:1rem;grid-template-columns:minmax(0,1fr)}
@media (min-width:48rem){.ksx-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.ksx-c2{grid-column:span 2}.ksx-c3{grid-column:span 3}}
.ksx-card{position:relative;display:flex;flex-direction:column;gap:1rem;padding:1.75rem;border:1px solid var(--border);border-radius:.75rem;background:var(--card);transition:border-color .4s,background-color .4s;min-width:0}
.ksx-card:hover,.ksx-card:focus-within{border-color:color-mix(in oklab,var(--accent) 60%,transparent);background:var(--secondary)}
.ksx-num{font-family:var(--font-mono-ui);font-size:12px;letter-spacing:.22em;color:var(--accent)}
.ksx-card h3{font-size:1.5rem;font-weight:500;line-height:1.08;letter-spacing:-.02em}
.ksx-card p{font-size:.875rem;line-height:1.6;color:var(--muted-foreground)}
.ksx-meta{display:grid;gap:.35rem;margin-top:auto;padding-top:1rem;border-top:1px solid var(--border);font-size:.8125rem;line-height:1.5;color:var(--muted-foreground)}
.ksx-meta b{font-family:var(--font-mono-ui);font-size:9.5px;font-weight:400;letter-spacing:.2em;text-transform:uppercase;color:var(--foreground);margin-right:.5rem}
.ksx-link{display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:500;color:var(--foreground);text-decoration:underline;text-decoration-color:var(--border);text-underline-offset:5px;transition:text-decoration-color .2s,color .2s}
.ksx-link:hover{text-decoration-color:var(--accent);color:var(--accent)}
.ksx-link::after{content:"\2192"}
.ksx-card a.ksx-stretch::before{content:"";position:absolute;inset:0;border-radius:inherit}
.ksx-chips{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0;margin:0}
.ksx-chips li{padding:.25rem .65rem;border:1px solid var(--border);border-radius:999px;font-size:.75rem;color:var(--muted-foreground)}

/* ---------- Status label (Live / Beta / Concept / Available) ---------- */
.ksx-status{display:inline-flex;align-items:center;gap:.5rem;width:fit-content;font-family:var(--font-mono-ui);font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted-foreground)}
.ksx-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.ksx-status--live{color:var(--accent-ink,var(--accent))}
.ksx-status--beta{color:var(--foreground)}
.ksx-status--concept{color:var(--muted-foreground)}
.ksx-status--concept::before{background:transparent;box-shadow:inset 0 0 0 1px currentColor}
.ksx-key{margin-top:2.5rem;max-width:46rem;font-size:.8125rem;line-height:1.6;color:var(--muted-foreground)}
.ksx-key b{color:var(--foreground);font-weight:500}

/* ---------- Contact / inquiry form ---------- */
.ksx-form{display:grid;gap:1.25rem;max-width:46rem}
.ksx-row{display:flex;flex-wrap:wrap;gap:1.25rem}
.ksx-form .kx-field{flex:1 1 15rem}
.ksx-form textarea.kx-input{min-height:9rem;resize:vertical}
.ksx-req{color:var(--accent)}
.ksx-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}
.ksx-note{font-size:.8125rem;line-height:1.6;color:var(--muted-foreground);max-width:46rem}
.ksx-status-msg{display:none;padding:1rem 1.15rem;border:1px solid var(--border);border-radius:var(--radius);font-size:.875rem;line-height:1.6}
.ksx-status-msg[data-show]{display:block}
.ksx-status-msg[data-kind="error"]{border-color:#d4483b;color:var(--foreground)}
.ksx-status-msg[data-kind="ok"]{border-color:var(--accent)}
.ksx-steps{display:grid;gap:1rem;margin-top:1rem;padding:0;list-style:none;counter-reset:s;max-width:46rem}
.ksx-steps li{counter-increment:s;display:grid;grid-template-columns:2.25rem 1fr;gap:.75rem;font-size:.9rem;line-height:1.6;color:var(--muted-foreground)}
.ksx-steps li::before{content:counter(s,decimal-leading-zero);font-family:var(--font-mono-ui);font-size:12px;letter-spacing:.2em;color:var(--accent);padding-top:.15rem}
.ksx-steps b{color:var(--foreground);font-weight:500}
.ksx-two{display:grid;gap:3rem}
@media (min-width:64rem){.ksx-two{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:5vw}}

/* ---------- Footer CTA extra link row ---------- */
.ksx-fnav{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;margin-top:1.25rem}

/* ---------- Accessibility: visible focus + reduced motion ---------- */
.ksx-card a:focus-visible,.ksx-form :is(input,select,textarea,button,a):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.ksx-card,.ksx-link{transition:none}}

/* How-it-works cards: keep step titles on one line on desktop */
@media (min-width:768px){[data-sticky-card] h3{white-space:nowrap}[data-sticky-card]>div:first-child{max-width:none}[data-sticky-card] p{max-width:46ch}}

/* Journal: keep a gap between the featured post and the post grid (the ad slot that used to provide it is hidden) */
.kx-feature ~ .kx-posts{margin-top:clamp(3rem,10vh,6rem)}
html.kx-ads-on .kx-feature ~ .kx-posts{margin-top:0}

/* Sprint cards: with 3 cards, keep the last one the same width as the others on desktop (6-col grid, span 2 each) */
@media (min-width:64rem){.kx-sprints .kx-sprint:last-child{grid-column:span 2}}
