/* Homepage V4 spacing: vertical rhythm only (loaded last). No typography, colour, texture or content changes.
   Values scale with the viewport height so short laptop screens don't push the headline below the fold. */

/* ---- Hero: Bug lower, a little more air between Bug / headline / text / buttons, taller overall ---- */
.hero .wrap { padding-top: calc(clamp(8px, 2vw, 24px) + clamp(64px, 13vh, 150px)); padding-bottom: clamp(80px, 9.5vh, 100px); }
.hero h1 { margin-top: clamp(16px, 2.6vh, 26px); }          /* gap Bug -> headline */
.hero .sub { margin-top: 26px; }                              /* was 20 */
.hero .ctas { margin-top: 38px; }                             /* was 28 */

/* ---- What we do: more space head -> grid, wider gutter, divider only as tall as the content ---- */
#services { padding: clamp(84px, 9vw, 128px) 0 clamp(56px, 6vw, 84px); }   /* bottom is smaller: the last row already has cell padding */
#services .sec-head { margin-bottom: clamp(44px, 5vw, 72px); }
#services .sec-head .lead { margin-top: 20px; }
#services .svc { position: relative; max-width: 1040px; }
#services .svc article { border: 0 !important; position: relative; padding: clamp(30px, 3.4vw, 46px) clamp(28px, 4.6vw, 68px); }
/* the cross: a vertical hairline centred between the columns, inset from the grid's top and bottom edge, and a
   horizontal hairline between the rows, inset from the outer edges */
#services .svc::before { content: ""; position: absolute; left: 50%; top: 22px; bottom: 22px; width: 1px; transform: translateX(-0.5px); background: var(--line); pointer-events: none; }
#services .svc article:nth-child(1)::after, #services .svc article:nth-child(2)::after { content: ""; position: absolute; bottom: 0; height: 1px; background: var(--line); pointer-events: none; }
#services .svc article:nth-child(1)::after { left: 22px; right: 0; }
#services .svc article:nth-child(2)::after { left: 0; right: 22px; }

@media (max-width: 760px) {
  .hero .wrap { padding-top: calc(8px + clamp(40px, 12vh, 110px)); padding-bottom: 60px; }
  .hero h1 { margin-top: 16px; }
  .hero .sub { margin-top: 22px; }
  .hero .ctas { margin-top: 32px; }
  #services { padding: 76px 0 56px; }
  #services .sec-head { margin-bottom: 36px; }
  #services .sec-head .lead { margin-top: 16px; }
  #services .svc::before { content: none; }                    /* one column: no vertical divider */
  #services .svc article { padding: 24px 4px; }
  #services .svc article:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
}
