/* ============================================================
   Homepage rebuild (late November 2026)
   Loaded last on the homepage only. Half the scroll and a louder
   first screen: a hero where a moving wall of built sites fills
   the view, one work section, one price list in place of the
   services cards and pricing cards, and a contact section that
   carries the "about" introduction.
   ============================================================ */

/* ---------- header: one surface with the hero until you scroll ---------- */
.focused-home .site-header:not([data-elevated="true"]) { background: #1E2024; }
[data-theme=light] .focused-home .site-header:not([data-elevated="true"]) { background: var(--bg); }

/* ---------- hero ---------- */
.khero {
  --khero-bg: #1E2024;
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(540px, calc(100svh - 96px), 860px); background: var(--khero-bg);
}
[data-theme=light] .khero { --khero-bg: var(--bg); }
.khero-inner { position: relative; z-index: 3; padding-block: clamp(36px, 6vh, 80px); }
.khero-copy { max-width: min(660px, 50%); }
.khero-copy .hero-kicker { margin-bottom: clamp(18px, 3vh, 30px); }
.khero-title {
  font-size: clamp(3.4rem, min(7.3vw, 11.4vh), 7rem); font-weight: 500; line-height: .9;
  letter-spacing: -.075em; margin: 0 0 clamp(20px, 3.2vh, 32px);
}
.khero-title > span, .khero-title > em { display: block; white-space: nowrap; }
.khero-title em { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; color: var(--accent-text, var(--accent)); }
.khero-title .khero-title-sub { font-size: .42em; line-height: 1.1; letter-spacing: -.05em; margin-top: .62em; }
.khero-lede { max-width: 46ch; font-size: 1.06rem; line-height: 1.65; color: var(--text-mid); margin-bottom: clamp(20px, 3.2vh, 30px); }
.khero-copy .hero-cta { margin: 0; gap: 14px 26px; align-items: center; }
.khero-copy .hero-proof { margin-top: clamp(20px, 3.2vh, 30px); animation: none; }

/* the wall: three lanes of sites, tilted, drifting, bleeding off every edge */
.khero-wall {
  position: absolute; z-index: 1; top: -22%; bottom: -22%; left: calc(50% + 28px); right: -9%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  transform: rotate(-8deg); pointer-events: none;
}
/* the copy sits on solid ground; the wall fades in beside it and softens at the top and bottom */
.khero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, var(--khero-bg), transparent 16%, transparent 80%, var(--khero-bg)),
    linear-gradient(90deg, var(--khero-bg) 50%, transparent 68%);
}
.khero-note {
  position: absolute; z-index: 3; right: clamp(22px, 4.5vw, 72px); bottom: 16px;
  padding: 6px 11px; border-radius: 99px; border: 1px solid var(--border-2);
  background: color-mix(in srgb, var(--khero-bg) 82%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mid);
}

@media (max-width: 1100px) {
  .khero-wall { left: 54%; right: -16%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .khero-wall .kw-c { display: none; }
  .khero::after {
    background:
      linear-gradient(180deg, var(--khero-bg), transparent 16%, transparent 80%, var(--khero-bg)),
      linear-gradient(90deg, var(--khero-bg) 50%, transparent 70%);
  }
}
/* narrow screens: the wall becomes a band of two lanes under the buttons */
@media (max-width: 820px) {
  .khero { display: block; min-height: 0; }
  .khero-inner { padding-block: 28px 0; }
  .khero-copy { max-width: none; }
  .khero-title { font-size: clamp(3rem, 13.4vw, 5.4rem); }
  .khero-lede { font-size: 1rem; }
  .khero-wall {
    position: relative; inset: auto; display: block; margin: 34px -30px 0; padding-bottom: 26px;
    transform: rotate(-4deg);
  }
  .khero-wall .kw-lane { margin-bottom: 12px; }
  .khero-wall .kw-c { display: none; }
  .khero-wall .kw-track { flex-direction: row; width: max-content; animation-name: kw-x; animation-duration: 70s; }
  .khero-wall .kw-b .kw-track { animation-duration: 84s; }
  .khero-wall .kw-tile { width: 200px; margin: 0 12px 0 0; }
  .khero-wall .kw-tile i { height: 16px; }
  .khero-wall .kw-tile i::before { left: 8px; top: 5px; width: 5px; height: 5px; box-shadow: 8px 0 0 var(--border-2), 16px 0 0 var(--border-2); }
  .khero::after { background: linear-gradient(180deg, transparent 88%, var(--khero-bg)); }
  .khero-note { position: relative; right: auto; bottom: auto; display: table; margin: 0 22px 20px; }
}

/* ---------- work: one feature, then everything else in a single row ---------- */
.kwork .feature-case { margin-bottom: clamp(28px, 3.6vw, 48px); padding-bottom: clamp(28px, 3.6vw, 48px); }
.kwork-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.kwork-row .project-card { min-width: 0; }
.kwork-row .project-visual.browser-frame { border-radius: 8px; }
.kwork-row .browser-frame .browser-bar { padding: 7px 9px; }
.kwork-row .project-info { padding-top: 12px; }
.kwork-row .project-category { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.kwork-row h3 { font-size: 1.02rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.25; }
.kwork-row h3 a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kwork-row h3 a span { color: var(--accent-text, var(--accent)); }
.kwork-note { margin-top: 16px; font-size: .82rem; color: var(--text-dim); }
@media (max-width: 1100px) {
  .kwork-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * clamp(22px, 4.5vw, 72px)); padding-inline: clamp(22px, 4.5vw, 72px);
    scroll-padding-inline: clamp(22px, 4.5vw, 72px);
  }
  .kwork-row::-webkit-scrollbar { display: none; }
  .kwork-row .project-card { flex: 0 0 min(250px, 66vw); scroll-snap-align: start; }
}

.work-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 48px;
  margin-top: clamp(32px, 4vw, 56px); padding: clamp(20px, 2.6vw, 32px) clamp(22px, 3vw, 40px);
  border: 1px solid var(--accent-border, var(--border-2)); border-radius: var(--radius);
  background:
    radial-gradient(120% 180% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%),
    var(--surface);
}
.work-cta h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; }
.work-cta p { margin-top: 8px; max-width: 52ch; font-size: .95rem; color: var(--text-mid); }
.work-cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }

/* ---------- services and prices: one list, like a menu ---------- */
.kp-list { border-top: 1px solid var(--border-2); }
.kp-row { border-bottom: 1px solid var(--border-2); }
.kp-row summary {
  list-style: none; cursor: pointer; display: grid; align-items: center; gap: 6px 28px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(170px, auto) 26px;
  padding: 22px 6px; transition: background .2s;
}
.kp-row summary::-webkit-details-marker { display: none; }
.kp-row summary:hover { background: var(--accent-soft); }
.kp-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: clamp(1.25rem, 2.1vw, 1.8rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.kp-tag {
  padding: 4px 8px; border-radius: 99px; font-size: .56rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
}
.kp-for { font-size: .97rem; line-height: 1.5; color: var(--text-mid); }
.kp-price { justify-self: end; white-space: nowrap; font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kp-price small { margin-right: 8px; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); vertical-align: middle; }
.kp-plus, .kp-quote { font-size: .56em; letter-spacing: -.01em; color: var(--text-mid); }
.kp-quote { font-size: .62em; }
.kp-icon { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-2); justify-self: end; }
.kp-icon::before, .kp-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px;
  background: var(--text); transition: transform .25s var(--ease);
}
.kp-icon::after { transform: rotate(90deg); }
.kp-row[open] .kp-icon::after { transform: rotate(0); }
.kp-row[open] .kp-icon { border-color: var(--accent); }
.kp-body { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; padding: 2px 6px 28px; }
.kp-body ul { flex: 1 1 480px; max-width: 760px; list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 36px; }
.kp-body li { position: relative; break-inside: avoid; padding: 0 0 9px 26px; font-size: .93rem; line-height: 1.45; }
.kp-body li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-border, var(--accent)); }
.kp-body li::after { content: ""; position: absolute; left: 5px; top: calc(.2em + 4px); width: 6px; height: 4px; border-left: 1.6px solid var(--accent-text, var(--accent)); border-bottom: 1.6px solid var(--accent-text, var(--accent)); transform: rotate(-45deg); }
.kp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
@media (max-width: 820px) {
  .kp-row summary { grid-template-columns: minmax(0, 1fr) auto 24px; gap: 4px 14px; padding: 16px 2px; }
  .kp-name { grid-column: 1; grid-row: 1; }
  .kp-price { grid-column: 2; grid-row: 1; }
  .kp-icon { grid-column: 3; grid-row: 1; width: 24px; height: 24px; }
  .kp-for { grid-column: 1 / -1; grid-row: 2; font-size: .9rem; }
  .kp-price small { display: block; margin: 0 0 2px; text-align: right; }
  .kp-body { padding: 0 2px 22px; }
  .kp-body ul { columns: 1; flex-basis: 100%; }
}

/* ---------- contact: who you'll talk to, and what happens after you write ---------- */
.kc-me { display: flex; align-items: center; gap: 16px; max-width: 540px; margin-bottom: clamp(22px, 3vw, 34px); }
.kc-me img { flex: none; width: 84px; height: 84px; border-radius: 16px; object-fit: cover; object-position: center 18%; border: 1px solid var(--border-2); }
.kc-me p { font-size: .95rem; line-height: 1.5; color: var(--text-mid); }
.kc-me strong { font-weight: 550; color: var(--text); }
.kc-me a { color: var(--text); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.contact-direct .contact-email { text-decoration-thickness: 1.5px; }
.contact-next { list-style: none; counter-reset: next; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--border); }
.contact-next li {
  counter-increment: next; display: grid; grid-template-columns: 22px minmax(0, 12.5em) minmax(0, 1fr);
  align-items: baseline; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: .95rem; line-height: 1.45;
}
.contact-next li::before { content: counter(next); font: 600 .72rem var(--mono); color: var(--accent-text, var(--accent)); }
.contact-next strong { font-weight: 550; color: var(--text); }
.contact-next span { color: var(--text-mid); }
.focused-home .contact .contact-card {
  border-color: var(--accent-border, var(--border-2));
  box-shadow: 0 50px 100px -60px #000, 0 30px 80px -50px color-mix(in srgb, var(--accent) 30%, transparent);
}
@media (min-width: 901px) {
  /* the form stays in view while the answers beside it are read */
  .focused-home .contact .contact-card { position: sticky; top: 118px; align-self: start; }
}

/* ---------- phones: say it once ---------- */
@media (max-width: 620px) {
  .khero-copy .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .work-cta { padding: 20px; }
  .work-cta p { display: none; }
  .work-cta-actions { width: 100%; }
  .work-cta-actions .btn { flex: 1 1 auto; justify-content: center; }
  /* the demo's own tabs and footnote already say these */
  .assistant-points, .assistant-honest { display: none; }
  .kc-me img { width: 68px; height: 68px; border-radius: 14px; }
  .contact-next { margin-top: 20px; }
  .contact-next li { grid-template-columns: 22px minmax(0, 1fr); padding: 10px 0; }
  .contact-next span { grid-column: 2; font-size: .9rem; }
  /* step one already says it */
  .kcontact .section-head .section-sub { display: none; }
  .kcontact .contact-direct { margin-top: 14px; }
  .site-footer .footer-brand p { display: none; }
}
