/* Shared two-level navigation and mobile-first company introduction. */
.editorial-section { border-top: 1px solid var(--line); }
.editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.editorial-grid > article { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.editorial-grid h3, .case-example h3 { margin: 0 0 12px; color: var(--ink); font-size: 21px; line-height: 1.35; }
.editorial-grid p { margin: 0; }
.situation-list { padding-left: 24px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.situation-list li { padding: 8px 0 8px 6px; }
.situation-list li::marker { color: var(--accent-strong); }
.proof-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.proof-layout--single { grid-template-columns: minmax(0, 1fr); }
.about-section > .client-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-panel-copy h2 { font-size: 21px; line-height: 1.35; margin: 24px 0 10px; }
.case-example { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.case-example dl { margin: 0; }
.case-example dt { font-weight: 800; color: var(--ink); margin: 18px 0 6px; }
.case-example dd { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.case-attribution { margin: -5px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.service-section .section-heading > p { max-width: 850px; line-height: 1.7; color: var(--muted); }
@media (max-width: 760px) {
  .about-section > .client-examples { grid-template-columns: minmax(0, 1fr); }
  .editorial-grid, .proof-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .editorial-grid > article, .case-example { padding: 20px; }
  .situation-list { font-size: 16px; }
}
:root { --service-media-ratio: 3 / 1; }
.nav-group { position: relative; min-width: 0; }
.nav-group summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 7px 9px; border-radius: 8px; color: var(--steel); font-size: 14px; font-weight: 750; cursor: pointer; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 3px 0 0; }
.nav-group[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.nav-group summary:hover, .nav-group[open] > summary { background: color-mix(in srgb, var(--color-action-primary) 10%, transparent); color: var(--ink); }
.nav-group summary:focus-visible { outline: 3px solid var(--color-action-primary); outline-offset: 2px; }
.nav-submenu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 270px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.nav .nav-submenu a { display: flex; justify-content: flex-start; min-height: 48px; white-space: normal; font-size: 14px; font-weight: 650; }
.about-intro, .about-section, .contact-invitation, .home-client-note { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.about-intro { padding: 64px 0 40px; }
.about-intro h1 { max-width: 850px; margin: 14px 0 24px; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.12; letter-spacing: -.025em; }
.about-intro .about-lead { max-width: 760px; font-size: clamp(18px, 2vw, 22px); line-height: 1.6; color: var(--muted); }
.about-intro .hero-actions { margin-top: 24px; }
.about-section { padding: 32px 0; scroll-margin-top: 90px; }
.about-section h2, .contact-invitation h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.2; margin: 0 0 18px; }
.about-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; border-top: 1px solid var(--line); }
.about-section p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.about-section p:first-child { margin-top: 0; }
.about-principles, .client-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-principles article, .client-example { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.about-principles h3 { font-size: 20px; line-height: 1.3; margin: 0 0 12px; }
.about-principles p { margin: 0; }
.client-example { margin: 0; border-top: 3px solid var(--accent-strong); }
.example-label { display: inline-block; font-size: 13px; font-weight: 750; color: var(--muted); margin-bottom: 12px; }
.client-example blockquote { margin: 0 0 20px; font-size: 17px; line-height: 1.65; }
.client-example figcaption { font-size: 14px; line-height: 1.6; color: var(--muted); }
.client-example figcaption strong { display: block; color: var(--ink); }
.example-notice { border-left: 3px solid var(--accent-strong); padding: 8px 16px; }
.home-client-note { padding: 28px 0; }
.home-client-note .client-example { max-width: 780px; }
.home-client-note h2 { font-size: 25px; margin: 0 0 16px; }
.home-client-note a { display: inline-block; padding: 12px 0; font-weight: 700; }
.contact-invitation { padding: 32px; margin-top: 32px; margin-bottom: 48px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.contact-invitation p { max-width: 720px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.home-hero .hero-copy h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.14; }
.home-hero .hero-visual {
  display: grid;
  grid-template-rows: auto auto;
  aspect-ratio: auto;
}
.home-hero .hero-image-cycle {
  position: relative;
  inset: auto;
  aspect-ratio: var(--service-media-ratio);
}
.home-hero .hero-visual::after { display: none; }
.home-hero .hero-image-cycle::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 24, 39, .18));
}
.home-hero .status-panel {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 0;
  background: var(--dark);
  backdrop-filter: none;
}
.service-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.service-jumps a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 700; }
.service-jumps a:hover, .service-jumps a:focus-visible { border-color: var(--accent-strong); }
.service-faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.service-faq summary { padding: 16px 8px; min-height: 48px; font-size: 18px; font-weight: 700; cursor: pointer; }
.service-faq details p { max-width: 800px; padding: 0 8px 16px; margin: 0; }
.text-link { display: inline-block; padding: 12px 0; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.nav-group.has-current > summary { color: var(--accent-strong); }
@media (prefers-reduced-motion: reduce) { .home-hero .hero-backgrounds span { animation: none; } }
.service-page-hero .service-inline-card.image-only,
.service-page-hero .service-inline-image.is-hero,
.network-side-image { width: 100%; aspect-ratio: var(--service-media-ratio); min-height: 0; }
.service-page-hero .service-inline-card.image-only img,
.service-page-hero .service-inline-image.is-hero img,
.network-side-image img { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: var(--service-media-ratio); object-fit: cover; object-position: center; background: var(--dark); }
.service-inline-video { width: 100%; max-width: 620px; justify-self: end; align-self: start; overflow: hidden; aspect-ratio: var(--service-media-ratio); border-radius: var(--radius); background: var(--dark); box-shadow: var(--shadow); }
.service-inline-video video { display: block; width: 100%; height: 100%; aspect-ratio: var(--service-media-ratio); object-fit: cover; object-position: center; background: var(--dark); }
@media (min-width: 1181px) {
  .service-page-hero > .service-inline-video,
  .service-page-hero > .service-inline-card.image-only,
  .service-page-hero > .service-inline-image.is-hero {
    width: 100%;
    max-width: 620px;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--service-media-ratio);
    position: relative;
    justify-self: end;
    align-self: start;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--dark);
    box-shadow: var(--shadow);
  }
  .service-page-hero > .service-inline-video video,
  .service-page-hero > .service-inline-card.image-only img,
  .service-page-hero > .service-inline-image.is-hero img,
  body[data-page="networks"] .service-page-hero > .service-inline-image.is-hero img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: var(--service-media-ratio);
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    background: var(--dark);
    box-shadow: none;
  }
}
.service-page-navigation { margin-top: 18px; }
.service-page-navigation__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.service-page-navigation__grid a { display: flex; align-items: center; justify-content: flex-start; gap: 7px; min-width: 0; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.2; text-align: left; text-decoration: none; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.service-page-navigation__grid a:nth-child(1) { border-color: color-mix(in srgb, var(--color-action-primary) 38%, var(--line)); background: color-mix(in srgb, var(--color-action-primary) 11%, var(--surface)); box-shadow: inset 3px 0 0 var(--color-action-primary); }
.service-page-navigation__grid a:nth-child(2) { border-color: color-mix(in srgb, var(--color-tech) 38%, var(--line)); background: color-mix(in srgb, var(--color-tech) 11%, var(--surface)); box-shadow: inset 3px 0 0 var(--color-tech); }
.service-page-navigation__grid a:nth-child(3) { border-color: color-mix(in srgb, var(--color-success) 36%, var(--line)); background: color-mix(in srgb, var(--color-success) 10%, var(--surface)); box-shadow: inset 3px 0 0 var(--color-success); }
.service-page-navigation__grid a:nth-child(4) { justify-content: space-between; border-color: transparent; background: linear-gradient(135deg, var(--color-action-primary), var(--color-tech)); color: var(--color-text-inverse); box-shadow: var(--shadow-soft); }
.service-page-navigation__grid a:hover { border-color: var(--accent-strong); transform: translateY(-1px); }
.service-page-navigation__grid a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.service-page-navigation__grid a:nth-child(4):hover { border-color: transparent; background: linear-gradient(135deg, var(--color-action-hover), var(--color-action-primary)); }
.service-page-navigation__grid a span, .service-page-navigation__previous span { flex: 0 0 auto; color: var(--accent-strong); font-size: 17px; }
.service-page-navigation__grid a:nth-child(4) span { color: var(--color-text-inverse); }
.service-page-navigation__previous { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 8px; padding: 4px 0; color: var(--muted); font-size: 14px; font-weight: 750; text-decoration: none; }
.service-page-navigation__previous:hover, .service-page-navigation__previous:focus-visible { color: var(--ink); }
html[data-theme="night"] .service-page-navigation__grid a:nth-child(4) { background: linear-gradient(135deg, var(--color-action-primary), var(--color-action-hover)); }
@media (prefers-reduced-motion: reduce) { .service-page-navigation__grid a { transition: none; } }
.service-start, .service-faq, #service-details, .network-block { scroll-margin-top: 100px; }
.service-card { display: flex; flex-direction: column; min-height: 0; }
.service-card > img,
.service-card > .service-card-picture,
.service-card > .service-card-picture img { position: static; display: block; flex: 0 0 auto; width: 100%; height: auto; min-height: 0; aspect-ratio: var(--service-media-ratio); object-fit: cover; object-position: center; background: var(--dark); }

/* Keep useful two-column composition after the navigation has collapsed. */
@media (min-width: 1181px) and (max-width: 1460px) {
  .hero,
  .page-hero { grid-template-columns: minmax(0, 1fr) minmax(380px, .72fr); }

  body[data-page="networks"] .service-page-hero > div:first-child,
  body[data-page="networks"] .service-page-hero > .service-inline-image.is-hero { order: initial; }

  .service-page-hero > .service-inline-video,
  .service-page-hero > .service-inline-card.image-only,
  .service-page-hero > .service-inline-image.is-hero { max-width: 620px; justify-self: end; align-self: start; }
}

/* Tablet and narrow desktop: one column, full-width media directly after the copy. */
@media (min-width: 681px) and (max-width: 1180px) {
  /* Full client accounts stay comfortably readable through the tablet range. */
  .about-section > .client-examples,
  .editorial-grid,
  .proof-layout { grid-template-columns: minmax(0, 1fr); }

  .service-page-hero > div:first-child { order: 1; max-width: 820px; }
  .service-page-hero > .service-inline-video,
  .service-page-hero > .service-inline-card.image-only,
  .service-page-hero > .service-inline-image.is-hero {
    order: 2;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    align-self: start;
    aspect-ratio: var(--service-media-ratio);
  }

  body[data-page="networks"] .service-page-hero > div:first-child { order: 1; }
  body[data-page="networks"] .service-page-hero > .service-inline-image.is-hero { order: 2; }
}
.service-card > div { position: static; display: block; flex: 1 1 auto; width: 100%; padding: 18px; background: var(--surface); color: var(--ink); text-shadow: none; }
.service-card > div p { color: var(--muted); }
@media (max-width: 680px) {
  .service-page-hero h1 { font-size: clamp(29px, 8vw, 36px); line-height: 1.16; }
  .service-faq summary { font-size: 17px; }
  .service-page-hero .service-jumps { margin-top: 14px; gap: 6px; }
  .service-jumps a { padding: 10px; font-size: 14px; }
  .service-page-hero .service-inline-card.image-only,
  .service-page-hero .service-inline-image.is-hero,
  .service-inline-video { aspect-ratio: var(--service-media-ratio); min-height: 0; }
  .service-page-navigation { margin-top: 14px; }
  .service-page-navigation__grid a { padding: 9px 8px; font-size: 13px; }
}
@media (max-width: 1180px) {
  .service-inline-video { max-width: none; justify-self: stretch; }
}
@media (max-width: 1460px) {
  .nav-group summary { min-height: 48px; padding: 12px 14px; font-size: 16px; }
  .nav-submenu { position: static; width: auto; margin: 4px 0 8px 14px; padding: 0 0 0 8px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
  .nav > a { font-size: 16px; min-height: 48px; justify-content: flex-start; }
  .site-header .nav { grid-template-columns: minmax(0, 1fr); justify-content: stretch; overscroll-behavior: contain; max-height: calc(100dvh - 100px); }
}
@media (max-width: 680px) {
  .site-header .nav { max-height: calc(100dvh - 150px - env(safe-area-inset-bottom)); }
  .about-intro, .about-section, .home-client-note { width: calc(100% - 32px); }
  .about-intro { padding: 28px 0 24px; }
  .about-intro h1 { font-size: 34px; margin: 12px 0 18px; }
  .about-intro .about-lead { font-size: 18px; }
  .about-intro .hero-actions { display: grid; }
  .about-intro .button, .contact-invitation .button { min-height: 48px; width: 100%; }
  .about-story, .about-principles, .client-examples { grid-template-columns: 1fr; gap: 16px; }
  .about-section { padding: 24px 0; }
  .about-section p, .client-example blockquote { font-size: 16px; line-height: 1.65; text-align: left; }
  .about-principles article, .client-example { padding: 20px; }
  .contact-invitation { width: calc(100% - 32px); padding: 24px 20px; margin-top: 24px; margin-bottom: 32px; }
  .home-client-note { padding: 20px 0; }
}
