/* ==========================================================================
   Shared styles for the inner pages (About, services, Careers).
   These designs are regular responsive layouts (1200px container, clamp()
   type), so sizes are plain px / clamp() rather than the landing's --u scale.
   ========================================================================== */

/* Desktop header on inner pages: the same bar as the landing (same logo, links, button and sizes),
   only sticky with a backdrop because these pages have no full-screen hero underneath. */
@media (min-width: 1024px) {
  body.page-inner { --header-h: calc(93 * var(--u)); }
  body.page-inner .site-header {
    position: sticky;
    background: var(--bg-header);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 0;
  }
}
body.page-inner { background: var(--bg-2); }
[id] { scroll-margin-top: var(--header-h); }

/* ---------- Sections ---------- */
.pg-section { padding: 72px var(--gutter); }
.pg-section--alt { background: transparent; border-block: 1px solid var(--divider); }
.pg-wrap { max-width: var(--maxw); margin: 0 auto; }
@media (min-width: 1024px) { .pg-section { padding: 120px 24px; } }

.pg-head { display: flex; flex-direction: column; gap: 12px; }
.pg-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); }
.pg-title { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 1024px) { .pg-title { line-height: 1.15; letter-spacing: -0.02em; } }
@media (min-width: 1024px) {
  .pg-head { gap: 18px; }
  .pg-eyebrow { font-size: 13px; }
}

/* ---------- Hero entrance (pages.js adds .is-in) ---------- */
.js [data-hero-in] { opacity: 0; transform: translateY(12px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .is-in [data-hero-in], .js [data-hero-in].is-in { opacity: 1; transform: none; }
.hl-line { display: block; overflow: hidden; padding: 0 0.04em 0.08em; }
.hl-line > span { display: inline-block; }
.js .hl-line > span { transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2, .75, .15, 1); transition-delay: var(--d, 0ms); }
.js .is-in .hl-line > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-hero-in], .js .hl-line > span { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons used on inner pages ---------- */
.btn-outline {
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--divider); color: var(--text);
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease;
}
.btn-outline:hover { border-color: var(--lime); color: var(--text); }

/* ---------- Lime closing CTA (About) ---------- */
.lime-cta {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; border-radius: 24px;
  background: var(--lime); color: var(--on-lime);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.lime-cta h2 { font-size: clamp(30px, 4vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.lime-cta__btns { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.lime-cta__btns a {
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease, background-color 0.2s ease;
}
.lime-cta__solid { background: var(--on-lime); color: var(--text); }
.lime-cta__solid:hover { color: var(--text); }
.lime-cta__ghost { border: 1.5px solid var(--on-lime); color: var(--on-lime); }
.lime-cta__ghost:hover { background: rgba(16, 20, 12, 0.08); color: var(--on-lime); }
.lime-cta__link { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--on-lime); text-decoration: none; }
.lime-cta__link:hover { color: var(--on-lime); text-decoration: underline; }
@media (min-width: 768px) {
  .lime-cta { padding: clamp(48px, 6vw, 88px) clamp(28px, 5vw, 72px); gap: 28px; }
  .lime-cta__btns { width: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .lime-cta__btns a { min-height: 54px; font-size: 16px; }
  .lime-cta__solid:hover { transform: translateY(-2px); }
  .lime-cta__link { font-size: 15px; }
}

/* ---------- Section head row and timeline (About milestones, service steps) ---------- */
.ms-head { display: flex; flex-direction: column; gap: 12px; }
.ms-head .pg-eyebrow { font-weight: 500; }
.ms-head h2 { font-size: clamp(28px, 2.9vw, 40px); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.ms-head p { margin-top: 4px; max-width: 380px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

/* Mobile / tablet: vertical, line on the left. */
.ms-track { position: relative; margin-top: 44px; }
.ms-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ms-line { position: absolute; left: 3.5px; top: 14px; width: 1px; height: var(--tl-len, calc(100% - 60px)); background: rgba(255, 255, 255, 0.15); transform-origin: 50% 0; }
.js .ms-line { transform: scaleY(var(--tl-p, 0)); }
.ms-item { position: relative; padding: 0 0 40px 30px; min-width: 0; }
.ms-item:last-child { padding-bottom: 0; }
.ms-dot { position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.ms-item--today .ms-dot { left: -1px; width: 10px; height: 10px; top: 9px; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15); }
.ms-year { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 26px; line-height: 1; font-weight: 400; letter-spacing: -0.01em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ms-today { min-height: 20px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--divider); display: inline-flex; align-items: center; font-size: 11px; line-height: 1; color: var(--text-primary); }
.ms-item h3 { margin-top: 8px; font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--text); }
.ms-item p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

@media (min-width: 1024px) {
  .ms-head { flex-direction: row; flex-wrap: wrap; align-items: last baseline; justify-content: space-between; gap: 24px 48px; }
  .ms-head > div { display: flex; flex-direction: column; gap: 16px; }
  .ms-head p { margin: 0; font-size: 15px; }
  .ms-head h2 { letter-spacing: -0.015em; }
  /* Horizontal: line across the top, four columns. */
  .ms-track { margin-top: 72px; }
  .ms-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
  .ms-line {
    left: 4px; right: 0; top: 4.5px; width: auto; height: 1px; transform-origin: 0 50%;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 80px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 80px), transparent);
  }
  .js .ms-line { transform: scaleX(var(--tl-p, 0)); }
  .ms-item, .ms-item:last-child { padding: 34px 0 0; }
  .ms-dot { top: 1px; }
  .ms-item--today .ms-dot { left: 0; top: 0; }
  .ms-year { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .js .ms-line { transform: none; } }
