/* Shared styles for /services/, /work/ and /about/ — layered on top of /offer/assets/offer.css */

.nav-links a.nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: filter 0.2s ease;
}
.nav-links a.nav-cta:hover { color: var(--accent-ink); filter: brightness(1.08); }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-inner { flex-direction: row; align-items: center; padding: 14px 20px; }
  .nav-links { width: auto; flex-wrap: nowrap; }
}

.page-hero h1 .emph { color: var(--accent); font-style: italic; }
.page-hero p { margin-bottom: 0; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.svc-card { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 30px 26px; transition: border-color 0.2s ease, transform 0.2s ease; }
.svc-card:hover { border-color: rgba(45,212,191,0.45); transform: translateY(-2px); }
.svc-num { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--accent); }
.svc-card h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 10px 0 8px; }
.svc-card p { color: var(--muted); font-size: 16px; margin: 0; }
.svc-from { text-align: center; padding: 72px 0 0; }
.svc-from .label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.svc-from .amount { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); font-weight: 600; line-height: 1.1; margin: 8px 0 12px; }
.svc-from p { color: var(--muted); font-size: 15px; margin: 0 0 28px; }

/* case studies */
.case { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; padding: 64px 0; border-top: 1px solid var(--line); }
.case:nth-of-type(even) .case-shot { order: 2; }
.case-shot { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: sticky; top: 96px; }
.case-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.case-shot:hover img { transform: scale(1.03); }
.case-cat { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.case h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.01em; margin: 6px 0 24px; }
.case h3 { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.case p { font-size: 16px; line-height: 1.6; margin: 0 0 22px; }
.case-link { display: inline-flex; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.case-link:hover { text-decoration: underline; }
.case .case-note { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.case-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.case-jump a { font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; transition: color 0.2s ease, border-color 0.2s ease; }
.case-jump a:hover { color: var(--accent); border-color: rgba(45,212,191,0.45); }
.case-group { scroll-margin-top: 90px; font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 72px 0 24px; }

/* about */
.about-page { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
/* no card: the terminal text sits straight on the page, with a thin gutter line */
.about-photo {
  border-left: 1px solid var(--line);
  padding: 6px 0 6px 22px;
  container-type: inline-size;
}
/* mini terminal: types the command, then prints its output */
.about-term {
  display: flex;
  flex-direction: column;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7cqw;
  font-weight: 700;
  line-height: 1.9;
  color: var(--ink);
  white-space: nowrap;
}
.at-line { display: flex; align-items: center; }
.at-line > .ap-gt { margin-right: 1ch; }
.at-out { color: var(--muted); font-weight: 500; }
.at-ready { color: var(--ink); font-weight: 700; margin-top: 0.4em; }
.at-ready .ap-flag { margin-left: 1ch; }
.at-typed { display: inline-block; overflow: hidden; width: 12ch; }
.ap-gt { color: var(--accent); }
.ap-flag { color: var(--accent); }
.ap-cursor { width: 0.6em; height: 1.15em; margin-left: 0.6ch; background: var(--accent); animation: apBlink 1.1s steps(1) infinite; }
.at-cursor-typing { display: none; }
@keyframes apBlink { 50% { opacity: 0; } }
/* .is-armed hides everything until the card scrolls into view; .is-live plays it */
.about-photo.is-armed .at-typed { width: 0; }
.about-photo.is-armed .at-out { opacity: 0; }
.about-photo.is-armed .at-cursor-typing { display: block; }
.about-photo.is-live .at-typed { animation: atType 1.1s steps(12) 0.3s forwards; }
.about-photo.is-live .at-cursor-typing { animation: apBlink 1.1s steps(1) infinite, atHide 0s 1.6s forwards; }
.about-photo.is-live .at-out { animation: atIn 0.3s ease var(--d) forwards; }
@keyframes atType { to { width: 12ch; } }
@keyframes atHide { to { visibility: hidden; } }
@keyframes atIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ap-cursor { animation: none; } }
.about-page h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 12px 0 24px; }
.about-page p { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; max-width: 600px; }
.about-page p.lead { color: var(--ink); }
.about-quote { font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 20px; margin: 32px 0; max-width: 560px; }
.about-facts { list-style: none; margin: 32px 0 0; padding: 0; max-width: 600px; border-top: 1px solid var(--line); }
.about-facts li { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.about-facts li span:first-child { color: var(--muted); }

/* privacy */
.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 12px; }
.legal-updated { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.legal p.legal-lead { font-size: 19px; line-height: 1.55; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 20px; margin: 0 0 8px; }
.legal h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 40px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: var(--muted); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--accent); font-weight: 600; text-decoration: none; }
.legal a:hover { text-decoration: underline; }

/* footer */
footer { padding: 48px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; max-width: 1120px; margin: 0 auto 22px; padding: 0 28px 32px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-logo { color: var(--ink); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* floating audit CTA */
.float-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  color: var(--accent-ink);
  background: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 32px -8px rgba(45,212,191,0.45), 0 8px 24px rgba(0,0,0,0.5);
  transition: filter 0.2s ease;
}
.float-cta:hover { filter: brightness(1.08); }

@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .case:nth-of-type(even) .case-shot { order: 0; }
  .case-shot { position: static; }
  .about-page { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 300px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .float-cta { left: 12px; right: 12px; bottom: 12px; text-align: center; border-radius: 8px; padding: 15px 20px; }
  footer { padding-bottom: 84px; }
}
