/* November 10 refinements: centered identity, clear service information. */

/* A restrained sign-like wordmark, with room between the chip and the name. */
.mark {
  gap: .25em;
  align-items: baseline;
}
.mark > b, .mark > span {
  font-family: var(--serif);
  font-weight: 700;
  font-style: normal;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.mark > .chip {
  margin-right: .36em;
  align-self: center;
  width: .86em;
  height: 1.16em;
}
#splash .sp-mark { gap: .28em; }
#splash .sp-mark .chip { margin-right: .28em; }

/* The company name is centered in the viewport, independent of the actions. */
.top .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  height: 76px;
}
.top .mark {
  grid-column: 2;
  justify-self: center;
  font-size: 24px;
}
.top .acts {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  position: relative;
}
.top .tel {
  min-width: 68px;
  height: 42px;
  padding-inline: 12px;
  gap: 7px;
  font-size: 15px;
  justify-content: center;
}
.top .acts > .tape {
  --h: 42px;
  min-width: 0;
  padding-inline: 16px;
  font-size: 15px;
  animation: none;
  opacity: 1;
  transform: none;
}
.tape-roll { display: none !important; }

/* Navigation shares the right-hand action group rather than crowding the name. */
.nav-menu { position: static; flex: none; }
.nav-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(246, 244, 240, .58);
  border-radius: 2px;
  color: inherit;
  background: transparent;
  font: 600 15px/1 var(--sans);
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background .18s, border-color .18s, color .18s;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::marker { content: ""; }
.nav-menu > summary svg { width: 18px; height: 18px; flex: none; }
.top.solid .nav-menu > summary { border-color: var(--line); }
.nav-menu > summary:hover, .nav-menu[open] > summary {
  background: var(--paper);
  color: var(--deep);
  border-color: var(--paper);
}
.top.solid .nav-menu > summary:hover, .top.solid .nav-menu[open] > summary {
  background: var(--primer);
  color: var(--deep);
  border-color: var(--line);
}
.nav-menu > summary:focus-visible {
  outline: 3px solid var(--tape);
  outline-offset: 4px;
}
.top .nav-menu nav {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 250px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 16px 42px rgba(15, 25, 17, .18);
}
.top .nav-menu nav a {
  display: block;
  padding: 14px 16px;
  border: 0;
  opacity: 1;
  font: 500 16px/1.2 var(--sans);
  text-decoration: none;
}
.top .nav-menu nav a:hover, .top .nav-menu nav a:focus-visible {
  background: var(--primer);
  border: 0;
  color: var(--ink);
}

/* The mobile identity uses the same center line; the call icon sits to its right. */
.mtop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  column-gap: 8px;
  justify-content: initial;
  padding-inline: 14px;
}
.mtop .mark {
  grid-column: 2;
  justify-self: center;
  gap: .25em;
  font-size: clamp(16px, 4.65vw, 20px);
}
.mtop .mcall {
  grid-column: 3;
  justify-self: end;
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
}
.mtop .mcall > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The craft headline stands on its own after removing the introductory sentence. */
.craft-head { display: block; margin-bottom: 64px; }
.craft-head h2 { max-width: 20ch; }

/* Every service choice shares one stable rectangle and one fixed swatch height. */
.swatches { align-items: stretch; grid-auto-rows: 1fr; }
.sw { min-width: 0; display: flex; }
.sw a, .sw.cta a {
  width: 100%;
  height: 100%;
  min-height: 360px;
  transform: none;
  justify-content: flex-start;
  background: var(--trim);
  color: var(--ink);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(22, 26, 23, .12);
}
.sw a:hover, .sw a:active { transform: none; }
.sw .chipc, .sw a:hover .chipc {
  height: 144px;
  flex: 0 0 144px;
}
.sw.cta .chipc { background: var(--c, #C4D6E8); }
.sw.cta .nm { font: 700 27px/1.05 var(--serif); }
.sw.cta .ds { color: var(--ink2); }
.sw .go { padding-top: 22px; }
.sw a:hover, .sw a:focus-visible {
  box-shadow: inset 0 0 0 2px var(--tape);
}

/* The service dialog describes the company's work in an easily scanned layout. */
.service-dialog {
  width: min(720px, calc(100vw - 40px));
  max-height: min(86svh, 900px);
  margin: auto;
  padding: 44px;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(22, 26, 23, .16);
  border-radius: 3px;
  box-shadow: 0 24px 80px rgba(10, 20, 13, .3);
}
.service-dialog::backdrop {
  background: rgba(15, 23, 17, .64);
  backdrop-filter: blur(4px);
}
.service-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font: 400 28px/1 var(--sans);
  cursor: pointer;
}
.service-close svg { width: 18px; height: 18px; }
.service-close:hover { background: var(--primer); }
.service-close:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }
.service-dialog .eyebrow, .service-dialog .service-eyebrow {
  margin: 0 44px 14px 0;
  color: var(--ink2);
  font: 600 13px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.service-dialog h2 {
  max-width: 18ch;
  margin: 0 28px 18px 0;
  font: 700 clamp(32px, 3.5vw, 46px)/1.05 var(--serif);
  letter-spacing: -.03em;
}
.service-intro {
  max-width: 56ch;
  margin: 0 0 30px;
  color: var(--ink2);
  font: 400 18px/1.5 var(--sans);
}
.service-process {
  counter-reset: service-step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-process > li {
  counter-increment: service-step;
  position: relative;
  margin: 0;
  padding: 20px 0 20px 48px;
  border-top: 1px solid var(--line);
}
.service-process > li::before {
  content: counter(service-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 23px;
  color: #386A9F;
  font: 600 14px/1 var(--sans);
}
.service-process h3 {
  margin: 0 0 7px;
  font: 600 19px/1.25 var(--sans);
  letter-spacing: 0;
}
.service-process p {
  max-width: 55ch;
  color: var(--ink2);
  font: 400 17px/1.48 var(--sans);
}
.service-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.service-dialog-actions .tape, .service-dialog-actions .ghost {
  --h: 48px;
  font-size: 16px;
}
html.service-open, html.service-open body { overflow: hidden; }

/* A short single-line title lets the film carry the explanation. */
.fm-head { display: block; }
.fm-head h2, .m-film h2 { white-space: nowrap; }
.m-film h2 { font-size: clamp(32px, 10.6vw, 42px); }

@media (max-width: 1100px) {
  .top .wrap { padding-inline: 28px; column-gap: 12px; }
  .top .mark { font-size: 22px; }
}
@media (max-width: 1024px) {
  .nav-menu > summary { width: 42px; padding: 0; }
  .nav-menu > summary > span { display: none; }
  .top .tel { min-width: 42px; width: 42px; padding: 0; }
  .top .tel > span { display: none; }
  .top .acts > .tape { padding-inline: 12px; font-size: 14.5px; }
}
@media (max-width: 760px) {
  .top .wrap {
    grid-template-columns: 1fr;
    grid-template-rows: 48px 48px;
    height: 108px;
    gap: 0;
    padding-inline: 18px;
  }
  .top .mark { grid-column: 1; grid-row: 1; font-size: 22px; }
  .top .acts { grid-column: 1; grid-row: 2; }
  .top .nav-menu nav { top: calc(100% + 9px); }
}
@media (max-width: 600px) {
  .service-dialog {
    width: calc(100vw - 24px);
    max-height: 88svh;
    padding: 38px 22px 24px;
  }
  .service-dialog h2 { font-size: 34px; margin-right: 20px; }
  .service-intro { font-size: 17px; margin-bottom: 24px; }
  .service-process > li { padding-left: 37px; }
  .service-process h3 { font-size: 18px; }
  .service-process p { font-size: 16px; }
  .service-dialog-actions { display: grid; grid-template-columns: 1fr; }
  .service-dialog-actions .tape, .service-dialog-actions .ghost { width: 100%; }
}
@media (max-width: 360px) {
  .mtop { column-gap: 6px; padding-inline: 12px; }
  .mtop .mark { font-size: 16px; }
  .mtop .mcall { width: 34px; height: 36px; padding: 0; }
  .service-dialog { padding-inline: 18px; }
  .service-dialog h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu > summary { transition: none; }
}
