/* The road is the studio's shared artwork. Keep all text and controls in normal flow. */
#er-header .er-menu {
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-color: #7894aa;
  background: #0b1c2dd9;
}
.er-menu [data-menu-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.er-menu-glyph {
  display: grid;
  gap: 4px;
  width: 21px;
}
.er-menu-glyph i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.er-menu[aria-expanded="true"] i:first-child { transform: translateY(6px) rotate(45deg); }
.er-menu[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.er-menu[aria-expanded="true"] i:last-child { transform: translateY(-6px) rotate(-45deg); }

.scene-home { --scene-edge: #102338; }
.scene-home #er-header {
  position: absolute;
  inset: 0 0 auto;
  border-color: transparent;
  background: linear-gradient(#030b16d9, #030b1600) border-box no-repeat;
}
.scene-home > main { animation: none; }
.scene-home .hero {
  display: grid;
  align-items: center;
  min-height: clamp(490px, 40vw, 680px);
  overflow: hidden;
  background: #050e19;
}
.scene-home .hero .wrap {
  width: min(100%, 1420px);
  padding-block: clamp(120px, 10vw, 165px) clamp(70px, 7vw, 115px);
}
.scene-home .hero h1 { max-width: 16ch; }
.scene-home .hero p { max-width: 38ch; }
.scene-home .art { position: absolute; inset: 0; z-index: 0; height: auto; pointer-events: none; }
.scene-home .art picture { display: block; height: 100%; }
.scene-home .art img { object-position: 76% 44%; }
.scene-home .skip:focus-visible { z-index: 40; }
.scene-home .art::after {
  background:
    linear-gradient(0deg, var(--scene-edge), transparent 15%),
    linear-gradient(90deg, #030b16f0 0%, #040d19cb 28%, #050e1960 52%, transparent 77%);
}
.scene-home .services {
  border-top: 0;
  background: linear-gradient(165deg, var(--scene-edge) 0%, #0b1b2f 80%);
}

/* Interior openings use different parts of the same photograph. */
.road-opening {
  --road-image: url('/assets/digital-road.webp');
  --road-focus: 70% 47%;
  --road-shade: linear-gradient(90deg, #040d18fa 0%, #05111ee8 33%, #07132146 72%, #07132114);
  position: relative;
  isolation: isolate;
}
.studio-interior main > .page-hero.road-opening, .studio-profile .road-opening {
  min-height: 0;
  padding: 0;
  background: var(--road-shade), var(--road-image) var(--road-focus) / cover no-repeat, #071421;
  border-bottom: 1px solid #233c53;
}
.road-opening.road-commerce { --road-focus: 86% 72%; }
.road-opening.road-about { --road-focus: 91% 34%; }
main .road-opening::before, main .road-opening::after { content: none; }
.road-opening > .container, .road-about > .profile-intro-layout {
  padding-block: clamp(44px, 5.4vw, 82px);
}
.road-opening .lead { max-width: 46ch; }
.scene-home .hero p, .studio-interior .road-opening .lead, .road-about .profile-intro-copy p { color: #edf5fc; }
.studio-profile .profile-identity {
  min-height: 0;
  align-self: center;
  border: 0;
  padding: 0;
  background: none;
}
.profile-identity .profile-mark { max-width: 315px; }

.catalog-page .theme-catalog { width: 100%; padding-top: 0; }
.theme-catalog .catalog-intro {
  background: linear-gradient(110deg, #071520, #0e2941 78%, #153750);
  border: 0;
  padding: 0;
}
.catalog-intro-inner, .theme-catalog .catalog-entry {
  width: min(calc(100% - 48px),1200px);
  margin-inline: auto;
}
.catalog-intro-inner { padding-block: clamp(24px, 3vw, 42px); }
.theme-catalog .catalog-intro h1 { color: #f2f8ff; }
.theme-catalog .catalog-intro p { color: #d5e4f1; }
.theme-catalog .catalog-intro a { color: #a9ddff; }
.theme-catalog .catalog-intro a:focus-visible { outline-color: #b4e5ff; }

main .page-hero.contact-opening {
  padding-block: clamp(24px,3vw,40px);
  min-height: 0;
  background: linear-gradient(105deg,#091929,#10334f);
}
main .contact-opening::before, main .contact-opening::after { content: none; }
main .contact-opening h1 { margin: 0; font-size: clamp(2.1rem,4vw,3.6rem); color: #f2f8ff; }
main .contact-opening .lead { margin: 8px 0 0; color: #d7e5f0; }
main .contact-opening + .section { padding-block-start: clamp(20px,3vw,38px); }

.np-guide .guide-sidebar > header {
  margin-bottom: 14px;
  border-inline-start: 3px solid #4d91bc;
  padding-inline-start: 14px;
}
.np-guide .guide-sidebar > header p { margin-bottom: 0; }

@media (max-width: 760px) {
  .road-opening { --road-image: url('/assets/digital-road-864.webp'); --road-shade: linear-gradient(90deg,#040d18e6 4%,#05111ed4 42%,#071321c2 86%,#0713219c); }
  .road-opening > .container, .road-about > .profile-intro-layout { padding-block: 32px 40px; }
  .road-opening .lead, .road-about .profile-intro-copy p { max-width: 32ch; }
  .road-about .profile-intro-layout { grid-template-columns: minmax(0,1fr); }
  .road-about .profile-identity { display: none; }
  .theme-catalog .catalog-intro-inner, .theme-catalog .catalog-entry { width: calc(100% - 36px); }
  .theme-catalog .catalog-guide { margin-top: .4rem; }
  main .contact-opening .lead { font-size: 1rem; line-height: 1.5; }
}
@media (max-width: 700px) {
  .scene-home .hero { min-height: clamp(398px, 65vw, 465px); }
  .scene-home .hero .wrap { padding-block: clamp(98px, 21vw, 124px) clamp(74px, 17vw, 108px); }
  .scene-home .hero h1 { font-size: clamp(2.125rem, 8.5vw, 3.5rem); line-height: 1.03; }
  .scene-home .hero p { max-width: 31ch; margin-top: 14px; font-size: 1rem; }
  .scene-home .hero .actions { margin-top: 18px; gap: 5px 15px; }
  .scene-home .hero .cta { padding-inline: 16px; }
  .scene-home .art img { object-position: 87% 45%; }
  .scene-home .art::after {
    background:
      linear-gradient(0deg, var(--scene-edge), transparent 16%),
      linear-gradient(90deg, #030b16da 0%, #050e19ce 36%, #050e19b8 85%, #050e198a),
      linear-gradient(180deg, #050d1540, transparent 45%, #06122226);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .er-menu-glyph i { transition: transform 160ms ease, opacity 130ms ease; }
  .scene-home .art img { animation: er-road-settle 720ms ease-out both; transform-origin: 74% 45%; }
  @keyframes er-road-settle { from { transform: scale(1.018); } to { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .scene-home .art img { animation: none; }
}

/* Display type for the studio; relaxed spacing for explanatory copy. */
:is(.scene-home .hero,.road-opening,.catalog-intro,.contact-opening) h1 {
  letter-spacing: -.045em;
  font-weight: 575;
  text-wrap: balance;
}
main :is(.section-heading,.catalog-copy,.profile-editorial,.split) h2 {
  letter-spacing: -.036em;
  font-weight: 575;
  text-wrap: balance;
}
.theme-catalog .catalog-copy > p:first-of-type { max-width: 46ch; line-height: 1.62; }
.theme-catalog .catalog-presets {
  margin: .85rem 0 .1rem;
  color: #40596c;
  font-size: .98rem;
  line-height: 1.55;
}
.catalog-presets strong { font-weight: 640; margin-inline-end: .35em; }
.np-guide #answer h2 { font-weight: 585; letter-spacing: -.034em; line-height: 1.16; }
.np-guide #answer h3 { letter-spacing: -.02em; }
.np-guide #answer .guide-check h3 { letter-spacing: normal; }
