/* Criterionyx - Home page sections. Reuses brand tokens from illustration.css + chrome from page.css. */

/* ---------- generic section heading ---------- */
.sec { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px) 0; }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
}
.sec-head .kicker::before { content: ""; width: 24px; height: 1.5px; background: var(--accent); }
.sec-head h2 {
  margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; max-width: 760px; text-wrap: balance;
}
.sec-head p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 640px; }

/* ---------- services trio ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.svc-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 18px 44px -20px rgba(10,29,61,.3); }
.svc-motif { height: 132px; position: relative; background: linear-gradient(160deg, #0a1d3d, #0e2a57); overflow: hidden; }
.svc-motif svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-no { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .04em; margin-bottom: 10px; }
.svc-card h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.18; letter-spacing: -.01em; }
.svc-card p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.svc-card p b { color: var(--ink); font-weight: 600; }
.svc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.svc-more .arrow { transition: transform .16s ease; }
.svc-card:hover .svc-more .arrow { transform: translateX(4px); }

/* ---------- mission ---------- */
.mission { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(56px, 8vw, 104px); }
.mission-inner { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.mission-mark { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.04; font-size: clamp(32px, 4.4vw, 52px); color: var(--ink); }
.mission-mark .q { color: var(--accent); }
.mission-mark .sub { display: block; margin-top: 14px; font-family: "Hanken Grotesk", sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--muted); }
.mission-list { display: flex; flex-direction: column; gap: 4px; }
.mission-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.mission-item:last-child { border-bottom: 0; }
.mission-item h4 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.mission-item p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---------- why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.why-cell { background: var(--surface); padding: 30px 28px; }
.why-cell .wn { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--accent); font-weight: 600; }
.why-cell h4 { margin: 14px 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.why-cell p { margin: 0; font-size: 14.5px; line-height: 1.58; color: var(--muted); }

/* ---------- footer ---------- */
.foot { max-width: 1180px; margin: clamp(40px,6vw,72px) auto 0; padding: 36px clamp(20px,5vw,64px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .c { font-size: 13px; color: var(--faint); }
.foot .fl { display: flex; gap: 22px; }
.foot .fl a { font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 600; }
.foot .fl a:hover { color: var(--accent); }

/* ---------- Heat Check spotlight (removable) ---------- */
.heat-spotlight { max-width: 1180px; margin: clamp(56px,8vw,104px) auto 0; padding: 0 clamp(20px,5vw,64px); }
.heat-card { position: relative; overflow: hidden; border-radius: 20px; padding: clamp(30px,4.4vw,54px); display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(28px,4vw,52px); align-items: center; background: linear-gradient(150deg,#0a1d3d,#0e2a57); color: #eaf0fb; }
.heat-card::after { content: ""; position: absolute; right: -90px; top: -90px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(229,57,53,.34), transparent 64%); pointer-events: none; }
.heat-card > * { position: relative; z-index: 1; }
.heat-card .badge { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff9a6c; background: rgba(229,57,53,.14); border: 1px solid rgba(229,57,53,.32); padding: 6px 13px; border-radius: 999px; margin-bottom: 18px; }
.heat-card .badge .bdot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.heat-card h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px,3.1vw,38px); letter-spacing: -.02em; line-height: 1.1; }
.heat-card h2 .hl { color: #ff9a6c; }
.heat-card p { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: #b9c6de; max-width: 520px; }
.heat-card .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.heat-visual { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 24px; }
.heat-visual .big { font-family: "IBM Plex Mono", monospace; font-size: clamp(34px,5vw,46px); font-weight: 600; color: #fff; line-height: 1; }
.heat-visual .big small { font-size: 14px; color: #9fb1d0; font-weight: 500; font-family: "Hanken Grotesk", sans-serif; }
.heat-visual .lvl { display: inline-flex; align-items: center; gap: 7px; margin: 12px 0 16px; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .04em; color: #ff8a5c; }
.heat-visual .lvl .ldot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.heat-bar { height: 10px; border-radius: 999px; background: linear-gradient(90deg,#2bb673,#e6c34a 40%,#ef8a3c 70%,#e53935); position: relative; }
.heat-bar .mk { position: absolute; top: -4px; left: 72%; width: 4px; height: 18px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 3px rgba(10,29,61,.55); }
.heat-chips { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 18px; }
.heat-chips .c { text-align: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; padding: 9px 4px; }
.heat-chips .k { font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6f82a6; }
.heat-chips .v { font-family: "IBM Plex Mono", monospace; font-size: 16px; font-weight: 600; color: #eaf0fb; margin-top: 4px; }

@media (max-width: 880px) {
  .svc-grid { grid-template-columns: 1fr; }
  .mission-inner { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .heat-card { grid-template-columns: 1fr; }
}
