/* ============================================================
   page-home.css — index.html-specific styles
   Plan 01-C: extracted from index.html lines 24-284.
   Loaded AFTER base.css. No :root, no reset, no shared
   topbar/btn/footer/logos-strip rules (those live in base.css).
   D-12: tweak-panel selectors removed.
   D-14: variant/density selectors removed.
   D-34: typographic client-mark placeholder selectors removed.
   ============================================================ */

/* ------------------------------------------------------------
   HERO — sharper claim
   ------------------------------------------------------------ */
.hero { padding-top: 8rem; padding-bottom: var(--pad-section); text-align: center; position: relative; }
.hero-tag { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.hero-tag b { color: var(--accent); font-weight: 600; }
.hero-tag::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }

.hero h1 {
  margin-top: 2rem;
  font-weight: 600; letter-spacing: -.045em; line-height: .96;
  font-size: clamp(3rem, 8vw, 6.5rem);
  text-wrap: balance;
  max-width: 16ch; margin-left: auto; margin-right: auto;
}
.hero h1 em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: var(--accent); letter-spacing: -.02em; }
.hero h1 em::before, .hero h1 em::after { content: ""; }
.hero h1 .hl { color: var(--accent); font-style: normal; font-family: inherit; }
.hero p.lead { margin: 1.75rem auto 0; max-width: 38rem; }
.hero-cta { margin-top: 2.5rem; display: inline-flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }

/* tiny meta strip under hero */
.hero-meta { margin-top: 3rem; display: inline-flex; gap: 2.5rem; font-family: var(--font-mono); font-size: .6875rem; color: var(--fg-mute); letter-spacing: .06em; }
.hero-meta b { color: var(--fg); font-weight: 500; }

.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 0%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 6rem);
  opacity: .5;
  mask: linear-gradient(180deg, #000 30%, transparent);
}
.hero > * { position: relative; }

/* ------------------------------------------------------------
   Logo strip — homepage offset above the section
   (Shared .logos-strip + .client-mk--img primitive is in base.css)
   ------------------------------------------------------------ */
.logos-strip { margin-top: 6rem; }

/* ------------------------------------------------------------
   Services — 5 honest tiles
   ------------------------------------------------------------ */
.svc-grid { margin-top: 4.5rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.svc { background: var(--bg); padding: 2rem 1.75rem; min-height: 16rem; display: flex; flex-direction: column; transition: background .2s; grid-column: span 2; }
.svc.feat { grid-column: span 6; min-height: 14rem; flex-direction: row; align-items: center; gap: 2.5rem; padding: 2.25rem 2rem; background: var(--bg-2); }
.svc.feat .svc-icon { width: 3rem; height: 3rem; background: var(--accent-soft); border-color: transparent; flex-shrink: 0; }
.svc.feat .svc-icon svg { width: 1.4rem; height: 1.4rem; }
.svc.feat .svc-body { flex: 1; }
.svc.feat h3 { margin-top: 0; font-size: 1.5rem; }
.svc.feat p { margin-top: .5rem; max-width: 60ch; font-size: .9375rem; }
.svc.feat .more { padding-top: 0; }
.svc-icon { width: 2.25rem; height: 2.25rem; border-radius: .45rem; border: 1px solid var(--line-2); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.svc-icon svg { width: 1.15rem; height: 1.15rem; }
.svc h3 { margin-top: 1.5rem; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.svc p { margin-top: .5rem; color: var(--fg-dim); font-size: .875rem; line-height: 1.55; }
.svc .more { margin-top: auto; padding-top: 1.5rem; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); display: inline-flex; align-items: center; gap: .45rem; transition: color .15s; }
.svc .more::after { content: "→"; }

/* ------------------------------------------------------------
   AI section — beefier
   ------------------------------------------------------------ */
.ai-section { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ai-claim { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 4rem; align-items: end; }
.ai-claim h3 { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.15; font-weight: 400; letter-spacing: -.015em; max-width: 22ch; }
.ai-claim h3 strong { font-family: var(--font-sans); font-style: normal; font-weight: 600; color: var(--accent); letter-spacing: -.025em; }
.ai-claim .pts { display: flex; flex-direction: column; gap: 1.5rem; }
.ai-pt { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.ai-pt:last-child { border-bottom: none; padding-bottom: 0; }
.ai-pt .n { font-family: var(--font-mono); font-size: .75rem; color: var(--accent); letter-spacing: .14em; padding-top: 2px; }
.ai-pt h4 { font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; }
.ai-pt p { margin-top: .4rem; font-size: .875rem; color: var(--fg-dim); line-height: 1.55; }

/* Use-case tabs */
.cases-head { margin-top: 5rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.cases-head .micro { display: block; }
.cases-h { margin-top: 1rem; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.35; color: var(--fg); max-width: 42ch; }
.cases-h em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.005em; }
.ai-cases { margin-top: 2.25rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--bg); overflow: hidden; }
.ai-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.ai-tab { padding: 1.25rem 1.5rem; text-align: left; border-right: 1px solid var(--line); transition: background .15s; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: .35rem; }
.ai-tab:last-child { border-right: none; }
.ai-tab .ts { font-size: .75rem; color: var(--fg-mute); line-height: 1.4; margin-top: .1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-tab.on .ts { color: var(--fg-dim); }
.ai-tab:hover { background: var(--bg-2); }
.ai-tab.on { background: var(--bg-2); }
.ai-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.ai-tab .tn { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); }
.ai-tab.on .tn { color: var(--accent); }
.ai-tab .tt { margin-top: .45rem; font-size: .875rem; font-weight: 500; letter-spacing: -.005em; }

.ai-content { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; }
.ai-detail { padding: 2.5rem 2rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.ai-detail h4 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin-top: 1.25rem; }
.ai-detail p { margin-top: 1rem; max-width: 42ch; }
.case-meta { display: flex; flex-wrap: wrap; gap: .45rem .9rem; font-family: var(--font-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-mute); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.case-foot { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ai-bench { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.ai-bench .cell { padding: .6rem .7rem; border: 1px solid var(--line); border-radius: .4rem; }
.ai-bench .k { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-mute); }
.ai-bench .v { display: block; font-family: var(--font-mono); font-size: .875rem; color: var(--fg); margin-top: .2rem; }

.ai-visual {
  position: relative; min-height: 26rem; padding: 1.75rem 1.5rem 3rem;
  background:
    radial-gradient(60% 60% at 90% 10%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 62%),
    var(--bg-3);
  display: flex; flex-direction: column;
}
.ai-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.pipe { position: relative; display: flex; flex-direction: column; gap: .5rem; margin-top: .25rem; flex: 1; justify-content: space-between; }
.pipe-step { flex: 1 1 0; min-height: 3.25rem; }
.pipe-step { position: relative; display: grid; grid-template-columns: 2.25rem 1fr auto; gap: .85rem; align-items: center; padding: .7rem .85rem; background: rgba(11,13,16,.75); border: 1px solid var(--line-2); border-radius: .55rem; backdrop-filter: blur(10px); transition: border-color .2s, background .2s; }
.pipe-step:hover { border-color: color-mix(in oklab, var(--accent) 55%, var(--line-2)); background: rgba(11,13,16,.88); }
.pipe-step .pn { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em; color: var(--accent); width: 2.25rem; padding: .1rem 0; text-align: center; border-right: 1px solid var(--line); }
.pipe-step .pb { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.pipe-step .plabel { font-family: var(--font-sans); font-size: .8125rem; font-weight: 500; color: var(--fg); letter-spacing: -.005em; }
.pipe-step .pmeta { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-mute); }
.pipe-step .ptech { font-family: var(--font-mono); font-size: .625rem; color: var(--fg-dim); padding: .2rem .45rem; border: 1px solid var(--line); border-radius: .3rem; background: rgba(255,255,255,.03); white-space: nowrap; }
.pipe-step .ptech.acc { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.pipe-step.human { border-style: dashed; }
.pipe-step.human .pn { color: var(--fg-dim); }
.pipe-step::after { content: ""; position: absolute; left: calc(.85rem + 1.125rem - 1px); top: 100%; width: 2px; height: .5rem; background: color-mix(in oklab, var(--accent) 40%, transparent); }
.pipe-step:last-child::after { display: none; }
.vtag { position: absolute; bottom: 1rem; left: 1.5rem; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); display: flex; align-items: center; gap: .5rem; }
.vtag::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }

/* ------------------------------------------------------------
   PROCESS
   ------------------------------------------------------------ */
.proc { margin-top: 4.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.proc-step { padding: 2rem 1.75rem 0 1.75rem; border-right: 1px solid var(--line); }
.proc-step:first-child { padding-left: 0; }
.proc-step:last-child { border-right: none; padding-right: 0; }
.proc-step .pn { font-family: var(--font-mono); font-size: .6875rem; color: var(--accent); letter-spacing: .18em; }
.proc-step h4 { margin-top: 1.25rem; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.proc-step p { margin-top: .5rem; font-size: .875rem; color: var(--fg-dim); line-height: 1.55; }

/* ------------------------------------------------------------
   QUOTE in CTA
   ------------------------------------------------------------ */
.cta { text-align: center; padding: var(--pad-section) 0 calc(var(--pad-section) - 2rem); border-top: 1px solid var(--line); position: relative; }
.cta-quote { max-width: 44rem; margin: 0 auto 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.cta-quote q { quotes: none; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 400; line-height: 1.3; color: var(--fg); text-wrap: balance; letter-spacing: -.01em; }
.cta-quote .by { margin-top: 1.5rem; font-family: var(--font-mono); font-size: .75rem; color: var(--fg-mute); letter-spacing: .06em; }
.cta-quote .by strong { color: var(--fg); font-weight: 500; }
.cta h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1; font-size: clamp(2.5rem, 5.5vw, 4.5rem); max-width: 16ch; margin: 0 auto; text-wrap: balance; }
.cta h2 em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: var(--accent); }
.cta p { margin: 1.5rem auto 0; max-width: 32rem; }
.cta-row { margin-top: 2.5rem; display: inline-flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------
   Mobile breakpoint
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .nav { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc.feat { grid-column: span 1; }
  .svc.feat { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .ai-claim { grid-template-columns: 1fr; gap: 2.5rem; }
  .ai-tabs { grid-template-columns: 1fr; }
  .ai-tab { border-right: none; border-bottom: 1px solid var(--line); }
  .ai-tab:last-child { border-bottom: none; }
  .ai-tab .ts { display: none; }
  .ai-content { grid-template-columns: 1fr; }
  .ai-detail { border-right: none; border-bottom: 1px solid var(--line); padding: 2rem 1.5rem; }
  .ai-visual { min-height: auto; padding: 1.5rem 1.25rem 2.5rem; }
  .ai-visual::before { display: none; }
  .pipe { flex: none; gap: .5rem; justify-content: flex-start; }
  .pipe-step { display: flex; flex-wrap: wrap; align-items: center; grid-template-columns: none; grid-template-rows: none; gap: .35rem .65rem; padding: .8rem .85rem; min-height: auto; flex: 0 0 auto; }
  .pipe-step .pn { flex: 0 0 1.5rem; width: 1.5rem; border-right: none; padding: 0; text-align: center; }
  .pipe-step .pb { flex: 1 1 0; min-width: 0; }
  .pipe-step .pmeta { display: none; }
  .pipe-step .ptech { flex: 0 0 auto; margin-left: calc(1.5rem + .65rem); margin-top: .15rem; font-size: .55rem; padding: .15rem .4rem; white-space: normal; }
  .pipe-step .plabel { font-size: .75rem; line-height: 1.3; }
  .vtag { display: none; }
  .proc { grid-template-columns: 1fr; }
  .proc-step { border-right: none; border-bottom: 1px solid var(--line); padding: 1.75rem 0; }
  .proc-step:first-child { padding-top: 1.75rem; }
  .proc-step:last-child { border-bottom: none; }
  .foot-cols { gap: 1.5rem; }
  .hero-meta { flex-direction: column; gap: .75rem; }
}
