/* The opening stage of every reading page, built like the homepage opening: the
   service's own media fills the screen, the headline, the offer and both buttons sit
   over it inside the first screen. Static here (one screen, no pin): the scroll
   runway, the pin and the cover by the next scene are added in service-motion.css
   only when scroll-driven animation is supported and motion is allowed.
   Per-service media compositions live in service-stage.css. */
.seo-document { --stage-header: 80px; }
.seo-document .service-hero {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 0;
  overflow: clip;
  background: var(--hero-bg);
  color: var(--hero-ink);
}
.seo-document .stage-pin {
  position: relative;
  /* Its own stacking context in the still layout too (the sticky pin of service-motion.css
     already is one). Without it the media layer (z-index: -1) lay behind this box, so with
     motion off, or without scroll-timeline support, a film on the stage could not be tapped:
     a paused or refused reel stayed frozen (measured 23.11.2026). */
  isolation: isolate;
  display: grid;
  grid-template: "crumb" auto "copy" 1fr / minmax(0, 1fr);
  min-height: calc(100svh - var(--stage-header));
  padding: 0 var(--page-gutter);
  overflow: clip;
}
.seo-document .service-hero :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Media layer: the full stage behind everything. */
.seo-document .stage-media { position: absolute; inset: 0; z-index: -1; overflow: clip; }
.seo-document .stage-media .hero-frame { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.seo-document .stage-media .hero-frame > [data-preview]:not(.reel), .seo-document .stage-media .hero-frame > [data-preview]:not(.reel) > [data-preview-stage] { position: absolute; inset: 0; width: 100%; height: 100%; }
.seo-document .stage-media video, .seo-document .stage-media .hero-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
/* Local scrim on the copy side only (inline start = right). The far side stays clean. */
.seo-document .stage-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(270deg, rgb(14 16 46 / 78%) 0%, rgb(14 16 46 / 52%) 34%, rgb(14 16 46 / 0%) 62%),
    linear-gradient(0deg, rgb(14 16 46 / 55%) 0%, rgb(14 16 46 / 0%) 38%);
  opacity: var(--stage-scrim, 1);
}

/* Crumb: one quiet line at the top of the stage. */
.seo-document .page-breadcrumb { grid-area: crumb; align-self: start; display: flex; flex-wrap: wrap; gap: 0 14px; margin: 0; padding: 16px 0 0; border: 0; font-size: 16px; }
.seo-document .page-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.seo-document .page-breadcrumb span { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.seo-document .page-breadcrumb span::before { content: "/" / ""; padding-inline-end: 14px; color: var(--amber); }

/* Copy: the headline block, low on the copy side, like the homepage opening. */
.seo-document .stage-copy { --copy-lift: calc(clamp(56px, 11svh, 112px) + var(--consent-h, 0px)); grid-area: copy; align-self: end; position: relative; width: min(100%, 640px); padding-bottom: var(--copy-lift); }
.seo-document .page-heading { display: block; margin: 0; padding: 0; border: 0; min-width: 0; }
.seo-document .page-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: inherit; font-size: 16px; letter-spacing: .02em; }
.seo-document .page-eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--amber); }
.seo-document .page-heading h1 { max-width: 10ch; margin: 0 0 20px; font: 900 clamp(64px, 7vw, 120px)/.98 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.seo-document .page-heading h1 > span { display: inline-block; }
.seo-document .page-intro { max-width: 46ch; margin: 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; }
/* Paper type over film: the same double shadow as the homepage opening. */
.seo-document .service-hero:not([data-stage="persona"], [data-stage="automation"], [data-stage="about"]) :is(h1, .page-intro, .page-eyebrow, .page-breadcrumb) {
  text-shadow: 0 1px 2px rgb(10 12 40 / 90%), 0 3px 12px rgb(10 12 40 / 70%);
}

/* Ticket buttons, as at the homepage opening: notched faces, a dashed tear line. */
.seo-document .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.seo-document .hero-actions a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hero-ink);
  font: 600 16px/1 var(--display);
  text-decoration: none;
  text-shadow: none;
  transition: transform 160ms ease;
}
.seo-document .hero-actions a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid currentColor;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle at left, transparent 5px, #000 5.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at right, transparent 5px, #000 5.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at left, transparent 5px, #000 5.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at right, transparent 5px, #000 5.5px) right / 51% 100% no-repeat;
}
.seo-document .hero-actions a::after {
  content: "";
  position: absolute;
  inset-block: 10px;
  inset-inline-start: 12px;
  border-inline-start: 1px dashed currentColor;
  opacity: .45;
  pointer-events: none;
}
.seo-document .hero-actions .hero-whatsapp { color: var(--deep); }
.seo-document .hero-actions .hero-whatsapp::before { background: var(--paper); border-color: var(--paper); border-top-color: var(--amber); }
.seo-document .hero-actions a:is(:hover, :focus-visible) { transform: translateY(-1px); }
.seo-document .hero-actions a:hover::before { background: var(--amber); border-color: var(--amber); }
.seo-document .hero-actions a:hover { color: var(--deep); }

/* Per-service palette (the stage colour behind and around the media). */
.seo-document[data-service-page="web"] { --hero-bg: var(--deep); }
.seo-document[data-service-page="content"] { --hero-bg: var(--deep); }
.seo-document[data-service-page="persona"] { --hero-bg: #cacdea; --hero-ink: var(--deep); }
.seo-document[data-service-page="automation"] { --hero-bg: var(--deep); }
.seo-document[data-service-page="persona"] .hero-actions .hero-whatsapp { color: var(--paper); }
.seo-document[data-service-page="persona"] .hero-actions .hero-whatsapp::before { background: var(--deep); border-color: var(--deep); border-top-color: var(--amber); }

@media (min-width: 721px) {
  /* Desktop: the copy holds the inline-start side of the stage. */
  /* Clear of the floating accessibility button in the corner. */
  .seo-document .stage-copy { justify-self: start; width: min(46vw, 680px); margin-inline-start: max(0px, calc(88px - var(--page-gutter))); }
  .seo-document .page-breadcrumb { padding-top: 20px; }
}

@media (max-width: 720px) {
  /* Phones: the media fills the stage; the copy rests on an ink plate at the bottom,
     exactly like the homepage opening on a phone. */
  .seo-document { --stage-header: 105px; }
  .seo-document .stage-pin { padding: 0; }
  .seo-document .page-breadcrumb { padding: 4px var(--page-gutter) 0; font-size: 16px; }
  .seo-document .stage-copy { --copy-lift: 24px; width: 100%; padding: 20px var(--page-gutter) var(--copy-lift); background: rgb(30 33 80 / 94%); color: var(--paper); }
  .seo-document .service-hero:not([data-stage="persona"]) .stage-media::after {
    background: linear-gradient(180deg, rgb(14 16 46 / 62%) 0%, rgb(14 16 46 / 0%) 22%);
  }
  .seo-document .page-eyebrow { margin-bottom: 10px; }
  .seo-document .page-heading h1 { max-width: none; margin-bottom: 12px; font-size: clamp(40px, 11vw, 52px); line-height: 1.02; }
  .seo-document .page-intro { font-size: 16px; line-height: 1.6; }
  .seo-document .hero-actions { flex-wrap: nowrap; margin-top: 18px; }
  .seo-document .hero-actions a { flex: 1 1 auto; padding-inline: 14px; color: var(--paper); }
  .seo-document .hero-actions .hero-whatsapp { flex-grow: 2; }
  .seo-document[data-service-page="persona"] .hero-actions .hero-whatsapp { color: var(--deep); }
  .seo-document[data-service-page="persona"] .hero-actions .hero-whatsapp::before { background: var(--paper); border-color: var(--paper); }
  .seo-document .service-hero :is(h1, .page-intro, .page-eyebrow) { text-shadow: none; }
  .seo-document .stage-copy :focus-visible { outline-color: var(--paper); }
}

/* Landscape phones: a short stage, so the copy tightens and widens. */
@media (max-height: 540px) and (min-width: 600px) {
  .seo-document .stage-copy { --copy-lift: 16px; width: min(62vw, 640px); }
  .seo-document .page-eyebrow { margin-bottom: 4px; }
  .seo-document .page-breadcrumb { padding-top: 6px; }
  .seo-document .page-heading h1 { max-width: none; margin-bottom: 8px; font-size: 38px; }
  .seo-document .page-intro { font-size: 16px; line-height: 1.5; }
  .seo-document .hero-actions { margin-top: 12px; }
  .seo-document .hero-actions a { min-height: 44px; }
}
