/* Chester Digital V5.7 — homepage-only refinement.
   Existing shared styles, colours, service pages and enquiry code are unchanged. */
:root { --home-header-height: 88px; }

/* Progressive enhancement: without the companion script, the original sticky
   header remains. With it, the header overlays the hero and settles on scroll. */
.home-header-ready .header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--home-header-height);
  background: transparent;
  border-bottom-color: #968060;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: background-color .24s ease;
}
.home-header-ready .header.is-scrolled,
.home-header-ready .header.is-menu-open {
  background: rgba(7,28,34,.97);
  border-bottom-color: #968060;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.home-header-ready .opening { padding-top: var(--home-header-height); }
/* Allow the existing artwork to sit behind the desktop navigation; the text
   keeps its original position and the live clock remains part of the artwork. */
@media (min-width:1181px) {
  .home-header-ready .art-scene { top: -88px; width: 909px; }
}
@media (min-width:1600px) {
  .home-header-ready .art-scene { width: 984px; }
}
@media (min-width:951px) and (max-width:1180px) {
  .home-header-ready .art-scene { top: -70px; width: 839px; }
}
@media (min-width:731px) and (max-width:950px) {
  .home-header-ready .art-scene { top: -41px; width: 751px; }
}

/* Reduce the gaps at the requested homepage transitions, not across the site. */
[data-view="home"] > .section.shell:not(#about) { padding-top: 43px; padding-bottom: 43px; }
[data-view="home"] > #process { padding-top: 43px; padding-bottom: 40px; }
[data-view="home"] > #about { padding-top: 44px; padding-bottom: 46px; }
[data-view="home"] .section-heading { margin-bottom: 29px; }
[data-view="home"] .process-layout { align-items: start; }
[data-view="home"] .process-intro > .eyebrow { margin-top: 0; }
[data-view="home"] .route-visual { margin-top: 14px; }
[data-view="home"] .route-caption {
  inset: 29px 0 auto;
  width: 100%;
  text-align: center;
  display: block;
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: .15em;
}
[data-view="home"] .route-caption small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  text-transform: none;
  letter-spacing: .025em;
  color: #bed0ca;
}
[data-view="home"] .about-copy > p { max-width: 495px; }

/* A more deliberate little portrait of the Rows: the approved SVG paths stay. */
.city-strip { background: linear-gradient(110deg, var(--paper), #eef2eb 55%, var(--paper)); }
.city-strip .shell { grid-template-columns: 1.05fr 2.3fr 1fr 1fr; gap: 28px; padding: 12px 0; }
.city-strip .tag { font-size: 9px; letter-spacing: .1em; line-height: 1.75; }
.city-strip .tag > span { color: var(--teal); font-weight: 650; }
.city-strip .tag em { display: inline-block; font: italic 16px/1.4 var(--serif); text-transform: none; letter-spacing: -.015em; margin-top: 4px; }
.city-scene { min-width: 0; position: relative; }
.city-scene::before {
  content: ""; position: absolute; inset: 12px 12% 4px;
  background: radial-gradient(ellipse, rgba(8,127,131,.065), transparent 70%);
  pointer-events: none;
}
.city-strip .skyline { width: 100%; height: 76px; opacity: 1; color: #547a78; overflow: visible; }
.city-scene .skyline-outline { stroke-width: 1.45; }
.rows-window-glow { color: var(--teal); opacity: .16; }
.rows-clock-glow { color: var(--teal); opacity: .09; }
.rows-river { color: var(--teal); opacity: .6; }
html[data-motion="on"] .city-scene.is-in-view .skyline-outline {
  stroke-dasharray: 1;
  animation: rows-trace 1.7s ease-out both;
}
html[data-motion="on"] .city-scene.is-in-view .rows-window-glow {
  animation: rows-windows 7s ease-in-out infinite alternate;
}
@keyframes rows-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rows-windows { from { opacity: .1; } to { opacity: .3; } }

/* Roman-inspired detail occupies the existing space below the FAQ introduction.
   This is abstract architectural decoration, not a reconstruction of a monument. */
.roman-note { max-width: 310px; margin-top: 16px; padding-top: 11px; border-top: 1px solid var(--line); }
.roman-ornament { width: 206px; height: 44px; position: relative; overflow: hidden; margin-bottom: 8px; color: var(--teal); }
.roman-arcade { position: absolute; inset: 5px 7px 9px; display: flex; gap: 7px; align-items: flex-end; }
.roman-arcade span {
  display: block; position: relative; flex: 1; height: 27px;
  border: 1px solid #86aaa0; border-bottom: 0; border-radius: 22px 22px 0 0;
  background: linear-gradient(to bottom, rgba(142,187,166,.13), transparent);
}
.roman-arcade span::before {
  content: ""; position: absolute; inset: 5px 5px 0;
  border: 1px solid #adc4b9; border-bottom: 0; border-radius: 17px 17px 0 0;
}
.roman-arcade span:nth-child(3) { height: 33px; border-color: #4c827c; }
.roman-arcade span:nth-child(3)::before { border-color: #83a89c; }
.roman-foundation { position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: #86aaa0; box-shadow: 0 5px 0 #bdcfc4; }
.roman-light { position: absolute; bottom: 7px; left: 101px; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(8,127,131,.055); }
.faq-intro .roman-label { font-size: 8px; font-weight: 650; letter-spacing: .15em; color: var(--teal); margin-bottom: 5px; }
.roman-note h3 { font: 400 23px/1.2 var(--serif); letter-spacing: -.025em; margin-bottom: 8px; }
.faq-intro .roman-copy { font-size: 11px; max-width: 285px; line-height: 1.7; }
html[data-motion="on"] .roman-ornament.is-in-view .roman-light { animation: roman-breathe 5s ease-in-out infinite; }
@keyframes roman-breathe { 0%,100% { opacity: .55; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }

@media (max-width:1180px) {
  .city-strip .shell { gap: 19px; }
  .city-strip .tag em { font-size: 14px; }
}
@media (max-width:950px) {
  :root { --home-header-height: 80px; }
  .city-strip .shell { grid-template-columns: 1fr 2fr 1fr; }
  .city-strip .skyline { height: 65px; }
  [data-view="home"] > .section.shell:not(#about) { padding-top: 37px; padding-bottom: 38px; }
  [data-view="home"] > #process { padding-top: 37px; padding-bottom: 35px; }
  [data-view="home"] > #about { padding-top: 37px; padding-bottom: 38px; }
}
@media (max-width:730px) {
  :root { --home-header-height: 76px; }
  .city-strip .shell { grid-template-columns: 1fr 1.7fr; gap: 14px; padding: 14px 0; }
  .city-strip .tag { font-size: 8px; }
  .city-strip .tag em { font-size: 14px; max-width: 155px; }
  .city-strip .skyline { height: 58px; }
  [data-view="home"] > .section.shell:not(#about) { padding-top: 34px; padding-bottom: 34px; }
  [data-view="home"] > #process { padding-top: 34px; padding-bottom: 30px; }
  [data-view="home"] > #about { padding-top: 34px; padding-bottom: 34px; }
  [data-view="home"] .section-heading { margin-bottom: 23px; }
  [data-view="home"] .process-layout { gap: 22px; }
  [data-view="home"] .route-visual { margin-top: 10px; }
  .roman-note { display: grid; grid-template-columns: 103px minmax(0,1fr); column-gap: 17px; max-width: 490px; margin: 21px 0 13px; padding-top: 18px; }
  .roman-ornament { grid-column: 1; grid-row: 1/4; width: 103px; align-self: center; margin: 0; }
  .roman-arcade { gap: 4px; inset-inline: 1px; }
  .roman-arcade span::before { inset-inline: 3px; }
  .roman-light { left: 50px; }
  .roman-note > .roman-label, .roman-note > h3, .roman-note > .roman-copy { grid-column: 2; }
  .roman-note h3 { font-size: 21px; }
  .faq-intro .roman-copy { font-size: 11px; }
}
@media (max-width:390px) {
  .city-strip .shell { grid-template-columns: 1fr 1.3fr; gap: 9px; }
  .city-strip .tag em { font-size: 13px; }
  .city-strip .skyline { height: 51px; }
  .roman-note { grid-template-columns: 80px minmax(0,1fr); gap: 0 14px; }
  .roman-ornament { width: 80px; }
  .roman-light { left: 39px; }
  .roman-note h3 { font-size: 20px; }
}
@media (prefers-reduced-motion:reduce) {
  .home-header-ready .header { transition: none; }
  .skyline-outline, .rows-window-glow, .roman-light { animation: none!important; stroke-dashoffset: 0!important; }
}
html[data-motion="off"] .skyline-outline,
html[data-motion="off"] .rows-window-glow,
html[data-motion="off"] .roman-light { animation: none!important; stroke-dashoffset: 0!important; }
@media print {
  .home-header-ready .opening { padding-top: 0; }
  .roman-ornament, .city-scene { display: none; }
  .roman-note { display: block; }
}
/* Header colour is controlled only by scroll and menu state. */
.home-header-ready .header::before { content: none; }
