/* ==========================================================================
   Storyline & Sinker — service pages
   /content-creation.html and /social-media-management.html
   Loaded after /styles.css. Reuses the Packages / How It Works system
   (pk-hero, pk-terms, sec-h, two-col, tbl, opts2/opt, notes, tlink, pk-cta,
   pk-foot); only the page-specific pieces live here (svc- prefix).
   ========================================================================== */

/* skip link — the About page treatment (.ab-skip) */
.svc-skip {
  position: fixed; left: 12px; top: 12px; z-index: 120; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--teal); color: #071012; font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transform: translateY(-160%);
}
.svc-skip:focus, .svc-skip:focus-visible { transform: none; outline-offset: 2px; }
main:focus { outline: none; }

/* section rail: a keyboard-focused rail link shows its label (hover already does); empty rail (no JS) is not exposed */
.rail a:focus-visible span { opacity: .9; transform: none; }
#rail:empty { display: none; }

/* hero */
/* metric-matched fallback for the hero H1: Instrument Serif is about a quarter narrower than the local
   serifs it falls back to (Iowan Old Style / Georgia), so before the web font arrives the H1 wrapped
   to an extra line and everything below it jumped up on swap. Scaling the fallback keeps the line
   count the same; once Instrument Serif loads it is used unchanged. */
@font-face { font-family: 'svc-serif-fb'; src: local('Iowan Old Style'), local('Georgia'); size-adjust: 75.5%; }
@font-face { font-family: 'svc-serif-fb-2'; src: local('Times New Roman'), local('Times'), local('Liberation Serif'); size-adjust: 83%; }
.svc-hero .pk-h { max-width: 10.5em; font-family: 'Instrument Serif', 'svc-serif-fb', 'svc-serif-fb-2', serif; }
.svc-hero .pk-lead + .pk-lead { margin-top: 1em; }
.svc-hero .eyebrow { flex-wrap: nowrap; align-items: flex-start; line-height: 1.5; }
.svc-hero .eyebrow .pulse { flex: none; margin-top: .45em; }
/* these heroes run past one screen (breadcrumb, two leads, buttons, price box), so the shared
   .hero-in scroll fade would blur the buttons and price facts before they are read: keep them solid */
.svc-hero .hero-in { opacity: 1; transform: none; filter: none; }
.svc-btns { margin-top: 40px; }
.svc-terms { margin-top: 40px; }
.svc-motif { width: min(50vw, 700px); right: -1vw; }
/* anchor the motif to the hero top so its position does not move when the H1 reflows (font swap / word split) */
.svc-hero .svc-motif { top: clamp(120px, 18vh, 180px); transform: translate3d(calc(var(--px, 0) * -30px), calc(var(--py, 0) * -22px), 0); }

/* body sections — a little tighter than the default .sec rhythm (these pages are long) */
.svc-sec { padding: clamp(80px, 12vh, 150px) 0; }
.svc-body p { max-width: 38rem; }
.svc-body .links, .svc-after { margin-top: 26px; }
.svc-lede { font: 400 clamp(1.3rem, 2vw, 1.65rem)/1.3 var(--serif); color: var(--text); letter-spacing: -.005em; }
.svc-lede strong { font-weight: 400; color: var(--accent-t); }
.svc-note { margin-top: 28px !important; padding: 4px 0 4px 24px; border-left: 1px solid var(--accent); color: var(--text); }
.svc-notes { margin-bottom: 18px; }
.svc-notes p { max-width: 46rem; }

/* tables */
.svc-pkgs tbody th { width: 22%; }
.svc-pkgs td:not(.num) { width: 56%; }
.svc-steps tbody th { width: 22%; font: 400 1.45rem/1.2 var(--serif); letter-spacing: -.01em; }
.svc-scope tbody th { width: 30%; }
/* "Not included" stays secondary but readable (shared .tbl .na opacity drops it below 4.5:1) */
.svc-scope .na { opacity: 1; color: var(--text2); font-style: italic; }

/* framed panel (portfolio / response hours) — same family as .control and .setup-panel */
.svc-panel { position: relative; padding: clamp(32px, 5vw, 72px); background: linear-gradient(165deg, var(--elev), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 0 120px -60px var(--accent); }
.svc-panel > .cb.tl { top: -1px; left: -1px; } .svc-panel > .cb.br { bottom: -1px; right: -1px; }
.svc-panel > .cb { opacity: .95; transform: none; }
.svc-panel .sec-h { max-width: 13em; margin-bottom: 34px; }
.svc-panel > p:not(.links) { max-width: 44rem; }
.svc-panel .links { margin-top: 26px; }
.svc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding-top: 30px; border-top: 1px solid var(--line); }
.svc-cols p { max-width: 36rem; }

/* management levels — the Packages option cards with a real H3 for the level name */
.svc-opts .opt h3 { margin-bottom: 22px; font: 500 .72rem/1.5 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-t); }
.svc-opts .opt p + p { margin-top: 1em; }
.svc-platform { max-width: 46rem; }

/* questions — always open: H3 question + answer, two columns on desktop */
.svc-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); border-top: 1px solid var(--line); }
.svc-qa { padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.svc-qa h3 { margin-bottom: 14px; font: 400 clamp(1.3rem, 1.9vw, 1.6rem)/1.2 var(--serif); letter-spacing: -.01em; color: var(--text); }
.svc-qa p { max-width: 36rem; font-size: 1rem; }

@media (max-width: 980px) {
  .svc-cols, .svc-faq { grid-template-columns: 1fr; }
  .svc-motif { width: 110vw; right: -42vw; }
}
@media (max-width: 760px) {
  /* phone table cards: row headers stay serif, the pack's column labels sit beside each value */
  .svc-steps tbody th, .svc-pkgs tbody th, .svc-scope tbody th { width: auto; }
  .svc-pkgs td:not(.num) { width: auto; }
  .svc-steps td { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .svc-btns .mag { display: block; width: 100%; }
  .svc-btns .btn { width: 100%; justify-content: space-between; }
  .svc-panel { padding: 28px 22px; }
  .svc-qa { padding: 26px 0 28px; }
  /* long link labels wrap onto two lines on phones: give the lines room */
  .svc-sec .tlink, .svc-panel .tlink { line-height: 1.6; }
}
