/* ============================================================
   HEAD_WEB — Website UI Kit styles
   Relies on ../../colors_and_type.css for tokens.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--navy); color: #fff; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.section { padding: clamp(72px, 11vh, 140px) 0; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); display: inline-flex; align-items: center; gap: 9px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }

/* ---------------- BUTTONS ---------------- */
.btn { font-family: var(--font-body); font-weight: 600; font-size: 15px; border-radius: var(--r-pill);
  padding: 14px 26px; border: 1.5px solid transparent; cursor: pointer; display: inline-flex; gap: 9px;
  align-items: center; line-height: 1; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--navy-tint); }
.btn .ic { width: 17px; height: 17px; stroke-width: 2; }

/* ---------------- NAV ---------------- */
.nav-spacer { height: 92px; }
.nav { position: fixed; top: 18px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav-pill { pointer-events: auto; display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--sh-md); border-radius: var(--r-pill); padding: 8px 8px 8px 18px; }
.nav-pill .brand { display: flex; align-items: center; margin-right: 12px; }
.nav-pill .brand img { height: 26px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--fg2); padding: 9px 15px; border-radius: var(--r-pill); transition: background var(--dur-fast), color var(--dur-fast); }
.nav-links a:hover { color: var(--ink); background: var(--bg-tint); }
.nav-links a.active { color: var(--ink); background: var(--bg-tint); }
.nav-cta { margin-left: 8px; }
.nav-burger { display: none; }

/* ---------------- HERO ---------------- */
.hero { padding: 120px 0 64px; }
.hero-words { display: flex; flex-direction: column; gap: 0; }
.hero-word { font-family: var(--font-display); font-weight: 500; font-size: var(--t-hero); line-height: .9; letter-spacing: -.045em; }
.hero-word.outline { color: transparent; -webkit-text-stroke: 1.6px var(--ink); }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-sub { max-width: 540px; }
.hero-marquee { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; overflow: hidden; }
.hero-marquee .track { display: flex; gap: 56px; white-space: nowrap; animation: marquee 26s linear infinite; }
.hero-marquee .item { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg3); display: inline-flex; gap: 56px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- VISION / STATS ---------------- */
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 72px; border-top: 1px solid var(--line); padding-top: 40px; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 6vw, 84px); letter-spacing: -.04em; line-height: 1; }
.stat .num b { color: var(--navy); font-weight: 600; }
.stat .lab { color: var(--fg3); font-size: 15px; margin-top: 8px; }

/* ---------------- SERVICES / PROCESS LISTS ---------------- */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; flex-wrap: wrap; }
.srv { display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding: 34px 8px; border-top: 1px solid var(--line); transition: padding var(--dur) var(--ease); cursor: default; }
.srv:last-child { border-bottom: 1px solid var(--line); }
.srv:hover { padding-left: 22px; }
.srv .idx { font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--navy); padding-top: 7px; }
.srv .body { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.srv h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.02em; }
.srv p { margin: 0; color: var(--fg2); font-size: 16px; line-height: 1.6; max-width: 460px; }
.srv .arr { justify-self: end; }

.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.proc { background: var(--white); padding: 32px 28px; min-height: 230px; display: flex; flex-direction: column; transition: background var(--dur) var(--ease); }
.proc:hover { background: var(--bg-tint); }
.proc .idx { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--navy); }
.proc h3 { margin: 18px 0 10px; font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.proc p { margin: auto 0 0; color: var(--fg2); font-size: 14.5px; line-height: 1.55; }

/* ---------------- PORTFOLIO ---------------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.work { cursor: pointer; }
.work .thumb { position: relative; aspect-ratio: 16/11; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-tint); }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: transform var(--dur-slow) var(--ease), filter var(--dur) var(--ease); }
.work:hover .thumb img { transform: scale(1.04); filter: grayscale(.55); }
.work .thumb .tagrow { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 11px; border-radius: 3px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--ink); }
.work .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.work .meta h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.work .meta .arr { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all var(--dur) var(--ease); }
.work:hover .meta .arr { background: var(--navy); border-color: var(--navy); color: #fff; }
.work .meta .arr svg { width: 16px; height: 16px; }

/* ---------------- ABOUT / TEAM BAND ---------------- */
.about { background: var(--ink-navy); color: #fff; border-radius: var(--r-xl); padding: clamp(40px,6vw,80px); }
.about .big { display: flex; gap: 56px; flex-wrap: wrap; margin-bottom: 40px; }
.about .big .n { font-family: var(--font-display); font-weight: 600; font-size: clamp(56px,8vw,110px); line-height: .9; letter-spacing: -.04em; }
.about .big .t { color: var(--fg-onnavy-2); font-size: 15px; margin-top: 6px; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about h2 { color: #fff; }
.about p { color: var(--fg-onnavy-2); }
.about .photo { aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; }
.about .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }

/* ---------------- PRICING ---------------- */
.price-head { text-align: center; max-width: 640px; margin: 0 auto 20px; }
.toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-tint); border-radius: var(--r-pill); padding: 5px; margin: 24px auto 56px; }
.toggle button { font-family: var(--font-body); font-weight: 600; font-size: 14px; border: none; background: transparent; color: var(--fg2); padding: 10px 20px; border-radius: var(--r-pill); cursor: pointer; transition: all var(--dur-fast); display: inline-flex; align-items: center; gap: 8px; }
.toggle button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.toggle .save { font-family: var(--font-mono); font-size: 10px; background: var(--navy-tint); color: var(--navy); padding: 3px 8px; border-radius: var(--r-pill); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; background: #fff; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.plan:hover { box-shadow: var(--sh-md); }
.plan.feat { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--sh-navy); }
.plan .ptop { display: flex; justify-content: space-between; align-items: center; }
.plan .pname { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.plan.feat .pname { color: #fff; }
.plan .badge { font-family: var(--font-mono); font-size: 10px; background: var(--navy-tint); color: var(--navy); padding: 5px 11px; border-radius: var(--r-pill); }
.plan.feat .badge { background: rgba(255,255,255,.16); color: #fff; }
.plan .amt { display: flex; align-items: baseline; gap: 5px; margin: 22px 0 4px; }
.plan .amt .v { font-family: var(--font-display); font-weight: 600; font-size: 48px; letter-spacing: -.03em; }
.plan .amt .per { font-size: 15px; color: var(--fg3); }
.plan.feat .amt .per { color: var(--fg-onnavy-2); }
.plan .pdesc { font-size: 14.5px; color: var(--fg2); line-height: 1.55; min-height: 66px; }
.plan.feat .pdesc { color: var(--fg-onnavy-2); }
.plan .pbtn { width: 100%; justify-content: center; margin: 18px 0 22px; }
.plan .feats { display: flex; flex-direction: column; gap: 11px; border-top: 1px solid var(--line); padding-top: 20px; }
.plan.feat .feats { border-color: rgba(255,255,255,.16); }
.plan .feats .f { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--fg2); }
.plan.feat .feats .f { color: #eef; }
.plan .feats .f svg { width: 16px; height: 16px; color: var(--navy); flex: none; }
.plan.feat .feats .f svg { color: #fff; }

/* ---------------- TESTIMONIALS ---------------- */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tst { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 26px; }
.tst .quote { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.32; letter-spacing: -.015em; color: var(--ink); }
.tst .who { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.tst .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: grayscale(.4); }
.tst .who .nm { font-weight: 600; font-size: 14.5px; }
.tst .who .rl { font-size: 13px; color: var(--fg3); }

/* ---------------- FAQ ---------------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa .q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 24px 4px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.qa .q .pm { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; transition: all var(--dur) var(--ease); }
.qa.open .q .pm { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(180deg); }
.qa .pm svg { width: 16px; height: 16px; }
.qa .a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.qa .a p { margin: 0; padding: 0 64px 26px 4px; color: var(--fg2); font-size: 15.5px; line-height: 1.6; }

/* ---------------- BLOG ---------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post { cursor: pointer; }
.post .thumb { aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden; background: var(--bg-tint); margin-bottom: 16px; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform var(--dur-slow) var(--ease), filter var(--dur); }
.post:hover .thumb img { transform: scale(1.04); filter: grayscale(.5); }
.post .date { font-family: var(--font-mono); font-size: 12px; color: var(--fg3); }
.post h3 { margin: 8px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -.015em; line-height: 1.25; }

/* ---------------- FOOTER / CTA ---------------- */
.cta { text-align: center; padding: clamp(80px,12vh,150px) 0; }
.cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px,6.5vw,92px); letter-spacing: -.04em; line-height: 1; max-width: 14ch; margin: 0 auto 32px; text-wrap: balance; }
.footer { background: var(--ink-navy); color: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 72px 0 40px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer .lead { color: var(--fg-onnavy-2); max-width: 420px; margin: 20px 0 0; line-height: 1.6; font-size: 16px; }
.footer .col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-onnavy-2); margin: 0 0 18px; }
.footer .col a { display: block; padding: 7px 0; color: #fff; font-size: 15px; opacity: .85; transition: opacity var(--dur-fast); }
.footer .col a:hover { opacity: 1; }
.footer .email { font-family: var(--font-display); font-size: clamp(22px,2.6vw,34px); font-weight: 500; letter-spacing: -.02em; color: #fff; }
.footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; color: var(--fg-onnavy-2); font-size: 13.5px; flex-wrap: wrap; gap: 12px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; border: none; }
  .vision-grid, .about-grid, .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .proc-grid, .price-grid, .tst-grid, .blog-grid, .work-grid, .stat-row { grid-template-columns: 1fr; }
  .srv .body { grid-template-columns: 1fr; gap: 12px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* entrance — content is visible by default; .in just plays the rise.
   If the observer never fires (print/PDF/capture), content still shows. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: rise .6s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------------- HERO (AI consulting headline) ---------------- */
.hero .eyebrow { margin-bottom: 28px; }
.hero-head { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5.4vw, 78px);
  line-height: 1.02; letter-spacing: -.035em; margin: 0; max-width: 18ch; text-wrap: balance; }
.hero-head .accent { color: var(--navy); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- STATEMENT / PROBLEM ---------------- */
.stmt { max-width: 940px; }
.stmt .paras { max-width: 760px; display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.stmt .paras p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--fg2); text-wrap: pretty; }
.stmt .paras p.key { color: var(--ink); font-weight: 500; border-left: 2px solid var(--navy); padding-left: 22px; }

/* ---------------- CASE STUDIES ---------------- */
.cases { margin-top: 8px; }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 64px 0; border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case .media { aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-tint); }
.case .media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.case.rev .media { order: 2; }
.case .ctags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.case h3 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 2.5vw, 33px); line-height: 1.12; letter-spacing: -.022em; }
.case .body { display: flex; flex-direction: column; gap: 14px; }
.case .body p { margin: 0; font-size: 16px; line-height: 1.62; color: var(--fg2); text-wrap: pretty; }
.ctag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); }
.ctag.solid { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------------- WHY HEAD ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.why { background: #fff; padding: 40px; min-height: 210px; display: flex; flex-direction: column;
  transition: background var(--dur) var(--ease); }
.why:hover { background: var(--bg-tint); }
.why .mk { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 22px; }
.why .mk img { height: 26px; }
.why h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.why p { margin: 0; color: var(--fg2); font-size: 15.5px; line-height: 1.6; }

/* ---------------- WHO band ---------------- */
.who { background: var(--ink-navy); color: #fff; border-radius: var(--r-xl); padding: clamp(40px,6vw,84px); }
.who h2 { color: #fff; }
.who .paras { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.who .paras p { margin: 0; color: var(--fg-onnavy-2); font-size: 16.5px; line-height: 1.66; }

@media (max-width: 900px) {
  .case, .why-grid, .who .paras { grid-template-columns: 1fr; gap: 28px; }
  .case .media { order: 0 !important; }
  .case.rev .media { order: 0; }
}
