/* ============================================================
   DEMOLAB — Section & component styles
   ============================================================ */

/* ---------- Header / Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand-mark-img { height: 30px; width: auto; display: block; flex: none; }
.brand-word { height: 15px; width: auto; display: block; }
@media (max-width: 480px) { .brand-word { display: none; } }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 100px; overflow: hidden; font-family: var(--font-mono); font-size: 12px; }
.lang-toggle button { background: transparent; color: var(--muted); border: 0; padding: 7px 12px; cursor: pointer; transition: 0.2s; font-family: inherit; }
.lang-toggle button.active { background: var(--accent); color: #0a0f0c; }
.nav-burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; color: var(--text); flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.nav-burger span { width: 16px; height: 1.5px; background: currentColor; display: block; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta-btn { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { /* legibility wash on the left, mesh stays visible on the right */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 1%, color-mix(in oklab, var(--bg) 62%, transparent) 30%, color-mix(in oklab, var(--bg) 14%, transparent) 62%, color-mix(in oklab, var(--bg) 34%, transparent) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 24%, transparent 86%, color-mix(in oklab, var(--bg) 60%, transparent) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 60px; width: 100%; }
.hero-eyebrow { margin-bottom: 26px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 104px); max-width: 14ch; }
.hero h1 .dim { color: var(--muted); display: block; }
.hero h1 .pop { color: var(--accent); }
.hero-lede { color: var(--text-dim); font-size: clamp(17px, 1.7vw, 22px); max-width: 600px; margin-top: 30px; }
.hero-cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 46px; }
.hero-tags span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--text-dim);
  background: color-mix(in oklab, var(--surface) 50%, transparent);
}
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; text-transform: uppercase; }
.scroll-hint::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: scrolldrop 2s infinite; }
@keyframes scrolldrop { 0% { opacity: 0; transform: scaleY(0); transform-origin: top; } 40% { opacity: 1; } 100% { opacity: 0; transform: scaleY(1); transform-origin: top; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 22px; background: var(--bg-2); position: relative; }
.marquee-track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 34px); font-weight: 500; padding-inline: 34px; display: inline-flex; align-items: center; gap: 34px; color: var(--text); }
.marquee-item::after { content: "✳"; color: var(--accent); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Why / stats ---------- */
.why-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 80px); align-items: start; margin-top: 60px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stat {
  background: var(--surface); padding: 30px 26px; display: flex; flex-direction: column; gap: 10px;
  transition: background 0.3s;
}
.stat:hover { background: var(--surface-2); }
.stat-value { font-family: var(--font-display); font-size: clamp(38px, 5vw, 58px); font-weight: 600; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: 14.5px; color: var(--text-dim); }
.stat-src { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.03em; margin-top: auto; padding-top: 8px; }
.gap-card { margin-top: 34px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 14px; padding: 26px 28px; background: color-mix(in oklab, var(--surface) 50%, transparent); }
.gap-card h3 { font-size: 21px; margin-bottom: 8px; }
.gap-card p { color: var(--text-dim); font-size: 16px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- What we do — service list ---------- */
.svc-list { margin-top: 56px; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 84px minmax(160px, 1fr) 1.6fr 34px; gap: 28px; align-items: center;
  padding: 30px 8px; border-bottom: 1px solid var(--line); cursor: default;
  position: relative; transition: padding 0.4s cubic-bezier(.2,.8,.2,1);
}
.svc-row::before { content: ""; position: absolute; inset: 0; background: var(--surface); opacity: 0; transition: opacity 0.4s; z-index: -1; border-radius: 12px; }
.svc-row:hover { padding-inline: 24px; }
.svc-row:hover::before { opacity: 1; }
.svc-n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.svc-name { font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 30px); font-weight: 500; letter-spacing: -0.01em; }
.svc-desc { color: var(--text-dim); font-size: 15.5px; max-width: 52ch; }
.svc-arrow { color: var(--muted); transition: transform 0.4s, color 0.3s; }
.svc-row:hover .svc-arrow { transform: translate(6px, -6px); color: var(--accent); }
@media (max-width: 760px) {
  .svc-row { grid-template-columns: 1fr; gap: 10px; padding-block: 24px; }
  .svc-row:hover { padding-inline: 8px; }
  .svc-arrow { display: none; }
}

/* ---------- Who — segment cards ---------- */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.seg-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px 30px; background: var(--surface);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s, background 0.35s; position: relative; overflow: hidden;
}
.seg-card::after { content: ""; position: absolute; top: -40%; right: -40%; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14), transparent 70%); opacity: 0; transition: opacity 0.4s; }
.seg-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.seg-card:hover::after { opacity: 1; }
.seg-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.seg-card h3 { font-size: 21px; margin: 14px 0 10px; }
.seg-card p { color: var(--text-dim); font-size: 14.5px; }
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .who-grid { grid-template-columns: 1fr; } }

/* ---------- Method 5K ---------- */
.method-wrap { margin-top: 60px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.kstep { border-top: 2px solid var(--line); padding-top: 22px; position: relative; transition: border-color 0.4s; }
.kstep:hover { border-top-color: var(--accent); }
.kstep-k { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent); font-family: var(--font-mono); letter-spacing: 0.05em; }
.kstep-big { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 1; color: var(--text); opacity: 0.12; margin-bottom: 14px; transition: opacity 0.4s, color 0.4s; }
.kstep:hover .kstep-big { opacity: 1; color: var(--accent); }
.kstep h3 { font-size: 18px; margin: 10px 0 8px; }
.kstep p { color: var(--text-dim); font-size: 14px; }
@media (max-width: 980px) { .method-wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .method-wrap { grid-template-columns: 1fr; } }

/* ---------- Services / packages ---------- */
.pkg-list { margin-top: 56px; display: flex; flex-direction: column; gap: 14px; }
.pkg {
  display: grid; grid-template-columns: 0.9fr 0.8fr 1.3fr auto; gap: 26px; align-items: center;
  border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; background: var(--surface);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.pkg:hover { border-color: var(--accent); transform: translateX(4px); }
.pkg-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.pkg-format { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }
.pkg-role { color: var(--text-dim); font-size: 14.5px; }
.pkg-tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px; white-space: nowrap; }
@media (max-width: 880px) {
  .pkg { grid-template-columns: 1fr; gap: 10px; }
  .pkg-tag { justify-self: start; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 90px); margin-top: 56px; align-items: start; }
.about-quote { font-family: var(--font-display); font-size: clamp(22px, 2.5vw, 32px); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.about-quote .mark { color: var(--accent); }
.about-body { color: var(--text-dim); font-size: 16.5px; margin-top: 26px; }
.quote-attr { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--accent); margin-top: 18px; }
.tone-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tone-tags span { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; }
.portrait {
  aspect-ratio: 4/5; border-radius: 18px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, color-mix(in oklab, var(--surface) 80%, transparent) 0 12px, var(--surface-2) 12px 24px);
  display: grid; place-items: center;
}
.portrait .ph-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; text-align: center; padding: 10px 16px; border: 1px dashed var(--line-strong); border-radius: 8px; background: color-mix(in oklab, var(--bg) 60%, transparent); }
.vs-table { margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.vs-head { display: grid; grid-template-columns: 1fr 1fr; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.vs-head div { padding: 14px 22px; }
.vs-head .no { color: var(--muted); border-right: 1px solid var(--line); }
.vs-head .yes { color: var(--accent); }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); font-size: 15px; }
.vs-row div { padding: 14px 22px; }
.vs-row .no { color: var(--muted); border-right: 1px solid var(--line); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.vs-row .yes { color: var(--text); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 360px; } }

/* ---------- Messages strip ---------- */
.msg-section { background: var(--bg-2); border-block: 1px solid var(--line); }
.msg-list { margin-top: 46px; display: flex; flex-direction: column; }
.msg-row { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; }
.msg-row:last-child { border-bottom: 1px solid var(--line); }
.msg-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.msg-text { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; text-wrap: balance; transition: color 0.3s; }
.msg-row:hover .msg-text { color: var(--accent); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); margin-top: 50px; align-items: start; }
.contact h2 { font-size: clamp(34px, 5.4vw, 70px); }
.contact-email { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 15px; color: var(--accent); margin-top: 30px; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color 0.3s; }
.contact-email:hover { border-color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; transition: border-color 0.2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form .btn-primary { justify-content: center; margin-top: 6px; }
.form-ok { font-family: var(--font-mono); font-size: 13px; color: var(--accent); text-align: center; padding: 8px; }
.form-err { font-family: var(--font-mono); font-size: 13px; color: #f87171; text-align: center; padding: 8px; }
.form-err a { color: var(--accent); border-bottom: 1px solid var(--line); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding-block: 56px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.footer .brand { font-size: 17px; }
.footer .brand-mark-img { height: 38px; }
.footer .brand-word { height: 17px; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 49; background: color-mix(in oklab, var(--bg) 96%, transparent); backdrop-filter: blur(12px); display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--pad); overflow-y: auto; transform: translateY(-100%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.3s, visibility 0.45s; }
.mobile-menu.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 30px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:hover { color: var(--accent); }
