/* ============================================================
   Inner pages (service pages) — shown on /web-development/ and
   /seo-services/. Uses the same design tokens as main.css.
   ============================================================ */

body.pg {
  background: var(--bg);
  color: var(--t);
  min-height: 100vh;
}

/* ---------- header (same look as the home page) ---------- */
body.pg { padding-top: 92px; }
body.pg .hd { position: fixed; }
body.pg .nav {
  max-width: min(calc(100vw - 190px), 780px);
  overflow-x: auto;
  scrollbar-width: none;
}
body.pg .nav::-webkit-scrollbar { display: none; }
body.pg .nav a { white-space: nowrap; }

@media (max-width: 760px) {
  body.pg { padding-top: 84px; }
  body.pg .hd { gap: 8px; padding: 0 12px; }
  body.pg .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    max-width: none;
    padding: 4px;
    border-radius: 999px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.pg .nav a { font-size: 12.5px; padding: 8px 10px; min-height: 38px; }
  body.pg .nav .cta { padding: 8px 14px; }
}

/* ---------- hero ---------- */
.phero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
  overflow: hidden;
}
.phero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(46% 52% at 22% 18%, rgba(var(--pr), .22), transparent 68%);
  pointer-events: none;
  z-index: -1;
}
.crumb {
  font-size: 13px;
  color: var(--m);
  margin-bottom: 18px;
}
.crumb a { color: var(--m); text-decoration: underline; text-decoration-color: rgba(var(--pr), .5); text-underline-offset: 3px; }
.crumb a:hover { color: var(--t); }
.crumb span { opacity: .5; margin: 0 8px; }
.phero h1 {
  font: 600 clamp(34px, 5.2vw, 62px)/1.06 Fraunces, Georgia, serif;
  letter-spacing: -.015em;
  max-width: 20ch;
  text-wrap: balance;
}
.phero h1 em {
  font-style: italic;
  color: var(--s);
}
.plead {
  margin-top: 20px;
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--m);
  line-height: 1.65;
}
.pactions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn.ghost { background: transparent; color: var(--t); border-color: rgba(255, 255, 255, .22); }
.btn.ghost:hover { background: rgba(255, 255, 255, .07); }
.pmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13.5px;
  color: var(--m);
}
.pmeta b { color: var(--t); font-weight: 600; }

/* ---------- sections ---------- */
.psec { padding: clamp(40px, 6vw, 76px) 0; }
.psec.alt { background: rgba(255, 255, 255, .022); border-block: 1px solid rgba(255, 255, 255, .06); }
.psec h2 {
  font: 600 clamp(26px, 3.4vw, 40px)/1.15 Fraunces, Georgia, serif;
  letter-spacing: -.01em;
  max-width: 24ch;
  margin-bottom: 18px;
  text-wrap: balance;
}
.psec > .wrap > p,
.psec .pintro {
  max-width: 66ch;
  color: var(--m);
  font-size: 16.5px;
  line-height: 1.7;
}
.psec p + p { margin-top: 14px; }

/* cards */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.pcard {
  padding: 24px 22px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .09);
}
.pcard h3 {
  font: 600 18px/1.3 Inter, system-ui, sans-serif;
  margin-bottom: 8px;
}
.pcard p { font-size: 14.5px; color: var(--m); line-height: 1.6; }
.pcard .num {
  display:inline-grid;place-items:center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(var(--pr), .18); color: var(--s);
  font: 600 13px/1 Inter, sans-serif; margin-bottom: 12px;
}

/* checklist */
.plist { list-style: none; display: grid; gap: 12px; margin-top: 26px; max-width: 74ch; }
.plist li {
  position: relative;
  padding-left: 34px;
  color: var(--m);
  font-size: 15.5px;
  line-height: 1.6;
}
.plist li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(var(--pr), .16);
  border: 1px solid rgba(var(--pr), .55);
}
.plist li::after {
  content: "";
  position: absolute;
  left: 6px; top: .72em;
  width: 6px; height: 3px;
  border-left: 1.6px solid var(--s);
  border-bottom: 1.6px solid var(--s);
  transform: rotate(-45deg);
}
.plist li b { color: var(--t); font-weight: 600; }

/* process */
.psteps { display: grid; gap: 14px; margin-top: 30px; counter-reset: step; }
.pstep {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .025);
}
.pstep > span {
  counter-increment: step;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(var(--pr), .16);
  color: var(--s);
  font: 600 15px/1 Inter, sans-serif;
  border: 1px solid rgba(var(--pr), .3);
}
.pstep > span::before { content: counter(step, decimal-leading-zero); }
.pstep h3 { font: 600 16.5px/1.3 Inter, sans-serif; margin-bottom: 6px; }
.pstep p { font-size: 14.5px; color: var(--m); line-height: 1.6; }

/* faq */
.pfaq { margin-top: 28px; display: grid; gap: 10px; max-width: 78ch; }
.pfaq details {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .022);
  padding: 4px 20px;
}
.pfaq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
}
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--s);
  font-size: 20px;
  line-height: 1;
  transition: transform .25s;
}
.pfaq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pfaq details > p { padding: 0 0 18px; color: var(--m); font-size: 15px; line-height: 1.65; }

/* cta band */
.pcta {
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: clamp(30px, 5vw, 54px);
  border-radius: 24px;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(var(--pr), .25), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid rgba(var(--pr), .28);
  text-align: center;
}
.pcta h2 {
  font: 600 clamp(24px, 3.2vw, 36px)/1.2 Fraunces, Georgia, serif;
  margin: 0 auto 12px;
  max-width: 26ch;
}
.pcta p { color: var(--m); max-width: 56ch; margin: 0 auto 24px; }
.pcta .pactions { justify-content: center; margin-top: 0; }

/* related links */
.prelated { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.prelated a {
  padding: 12px 18px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 14.5px;
  color: var(--m);
  transition: .2s;
}
.prelated a:hover { color: var(--t); border-color: rgba(var(--pr), .6); background: rgba(var(--pr), .1); }

/* footer */
.pfoot {
  margin-top: clamp(50px, 8vw, 90px);
  padding: 40px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px;
  color: var(--m);
}
.pfoot .wrap { display: flex; flex-wrap: wrap; gap: 26px 46px; justify-content: space-between; }
.pfoot b { color: var(--t); font-weight: 600; }
.pfoot a { color: var(--m); }
.pfoot a:hover { color: var(--t); }
.pfoot .col { display: grid; gap: 8px; align-content: start; }
.pfoot .col a { display: inline-flex; min-height: 26px; align-items: center; }
.pfoot .fsoc { margin-top: 4px; }
.pfoot .fsoc a { color: #fff; }
.pfoot .fsoc a:hover { color: #fff; }

/* ---------- concept project studies (/work/) ---------- */
.wk {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 22px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(var(--pr), .13), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
  border: 1px solid rgba(255, 255, 255, .09);
  scroll-margin-top: 112px;
  transition: border-color .3s, box-shadow .3s;
}
.wk:hover { border-color: rgba(var(--pr), .34); box-shadow: 0 18px 44px rgba(0, 0, 0, .3); }
.wk:target { border-color: rgba(var(--pr), .62); box-shadow: 0 0 0 1px rgba(var(--pr), .3), 0 22px 50px rgba(0, 0, 0, .38); }
.wk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font: 600 11.5px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--s);
}
.wk-tag {
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(var(--pr), .16);
  border: 1px solid rgba(var(--pr), .42);
  color: var(--t);
  font-size: 10.5px;
  letter-spacing: .08em;
}
.wk h2 {
  font: 600 clamp(21px, 2.4vw, 27px)/1.2 Fraunces, Georgia, serif;
  letter-spacing: -.01em;
  margin-top: 10px;
  max-width: 30ch;
}
.wk-cat { margin-top: 6px; font-size: 14px; color: var(--m); }
.wk-lead {
  margin-top: 14px;
  max-width: 74ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: #d9d4cc;
}
.wk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.wk-grid > div {
  padding: 16px 17px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .032);
  border: 1px solid rgba(255, 255, 255, .07);
}
.wk-grid h3 {
  font: 600 12px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--s);
  margin-bottom: 9px;
}
.wk-grid p, .wk-grid li {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--m);
}
.wk-grid ul { list-style: none; display: grid; gap: 7px; }
.wk-grid li { position: relative; padding-left: 16px; }
.wk-grid li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(var(--pr), .85);
}
.wk-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  line-height: 1.6;
  color: var(--m);
}
.wk-foot a { color: var(--s); text-decoration: underline; text-underline-offset: 3px; }
.wk-foot a:hover { color: var(--t); }
.wk-foot b { color: var(--t); font-weight: 600; }
.wk-disc {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #9d978f;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px dashed rgba(255, 255, 255, .12);
}

@media (max-width: 640px) {
  .pstep { grid-template-columns: 36px 1fr; gap: 12px; padding: 16px; }
  .pstep > span { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
  .pfoot .wrap { flex-direction: column; gap: 24px; }
  .wk { border-radius: 18px; scroll-margin-top: 92px; }
  .wk-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* hero depth parallax — scroll.js drives --par from 0 to 1 while the hero
   scrolls past; content drifts up while the glow drifts down (always 0 without
   JS or under prefers-reduced-motion) */
.phero { --par: 0; }
.phero > .wrap { translate: 0 calc(var(--par) * -46px); }
.phero::before { translate: 0 calc(var(--par) * 70px); }
@media (prefers-reduced-motion:reduce) {
  .phero > .wrap, .phero::before { translate: none; }
}

/* ---------- reference screenshots on work studies ---------- */
.wk-shot{margin:16px 0 20px;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:#0c0c0e;box-shadow:0 18px 40px rgba(0,0,0,.35)}
.wk-shot img{display:block;width:100%;height:auto;max-height:340px;object-fit:cover;object-position:top center}
.wk-shot figcaption{padding:10px 14px;font-size:12.5px;line-height:1.55;color:var(--m);border-top:1px solid rgba(255,255,255,.07)}/* ---------- mobile: subpage header uses the same burger menu as home ----------
   The nav used to stay visible as a horizontally scrolling strip, which cut
   labels off mid-word and gave no hint that it scrolls. It now collapses into
   a panel behind the menu button, exactly like the home page. */
@media (max-width: 760px) {
  body.pg .nav {
    display: none;
    position: fixed;
    top: calc(74px + env(safe-area-inset-top, 0px));
    left: 16px;
    right: 16px;
    flex: none;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
    padding: 10px;
    border-radius: 24px;
  }
  body.pg .nav.open { display: flex; }
  body.pg .nav a,
  body.pg .nav button { justify-content: center; white-space: normal; }
  body.pg .nav .cta { margin-top: 4px; text-align: center; }
  body.pg .navmenu {
    position: static;
    display: flex;
    flex-direction: column;
    margin: 6px 0 2px;
    min-width: 0;
    max-width: none;
    box-shadow: none;
  }
  body.pg .navmenu[hidden] { display: none; }
}
