/* Compatibility and accessibility only: each authored asset sheet owns its visual design. */
body[data-authored-demo] main {
  isolation: isolate;
}
body[data-demo="ironwood-contracting"] .iwHero h1,
body[data-demo="apex-atelier"] .hero h1 {
  width: max-content !important;
  max-width: calc(100vw - max(48px, 10vw)) !important;
}
body[data-authored-demo] main > header {
  top: var(--authored-disclosure-offset, 0px);
}
/* Sticky sub-page headers sit below the (non-sticky) disclosure in flow; offsetting them pushes them over the hero. */
body[data-authored-demo] main > header:is(.subNav, .eoSubNav, .auSubNav) {
  top: 0;
}
/* Fixed homepage headers overlay the first section, so it must clear them. */
body[data-authored-demo][data-demo="ironwood-contracting"] .hero-construction-sheet {
  padding-top: calc(82px + 40px);
}
/* A shared button rule set position:relative, pushing Ember's hero reservation CTA off-screen (top-left). */
body[data-authored-demo][data-demo="ember-and-oak"] .eoHero {
  position: relative;
}
body[data-authored-demo][data-demo="ember-and-oak"] .eo .eoReserve {
  position: absolute;
  right: 7vw;
  bottom: 7vh;
}
@media (max-width: 800px) {
  body[data-authored-demo][data-demo="ember-and-oak"] .eoHero {
    padding-bottom: 120px;
  }
  body[data-authored-demo][data-demo="ember-and-oak"] .eo .eoReserve {
    right: 20px;
    bottom: 28px;
  }
}
body[data-authored-demo][data-demo="ironwood-contracting"] .iwHomeWork h2 {
  font-size: clamp(2.4rem, 4.1vw, 4.6rem);
  overflow-wrap: normal;
  hyphens: manual;
}
body[data-authored-demo] [hidden] {
  display: none !important;
}
body[data-authored-demo] :focus-visible {
  outline: 3px solid #efaa69;
  outline-offset: 5px;
}
demo-disclosure {
  display: block;
  position: relative;
  z-index: 100;
  background: #111411;
  color: #f5f3ed;
  font:
    12px/1.5 Arial,
    sans-serif;
}
.demo-disclosure-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 10px 4%;
}
.demo-disclosure-inner details {
  max-width: 65ch;
}
.demo-disclosure-inner summary {
  cursor: pointer;
  min-height: 24px;
}
.demo-disclosure-inner p {
  margin: 8px 0;
}
.demo-disclosure-inner nav {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
}
.demo-disclosure-inner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.restored-form {
  display: block !important;
}
.restored-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.restored-form legend {
  margin-bottom: 24px;
  font-size: 14px;
}
.restored-form .di-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 20px 0;
}
.restored-form label {
  display: grid;
  gap: 10px;
}
.restored-form input,
.restored-form select,
.restored-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
.restored-form button {
  margin: 20px 16px 0 0;
  min-height: 44px;
  cursor: pointer;
}
.restored-form .di-form-notice,
.demo-form-warning {
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.rd-form-status {
  padding: 20px 0;
  font-weight: 600;
}
.authored-menu {
  display: none;
}
body[data-demo="apex-atelier"] .apexTimeline li b {
  color: #8b351e;
}
body[data-demo="northline-private-wealth"] .northScenario dt {
  color: #70572c;
}
body[data-demo="hotel-nocturne"] .intro h2 i {
  color: #715326;
}
@media (max-width: 800px) {
  body[data-authored-demo] main > header {
    padding: 18px 24px;
    flex-wrap: wrap;
  }
  body[data-authored-demo] .authored-menu {
    display: block;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    padding: 10px 14px;
    min-height: 44px;
    margin-left: auto;
    font: inherit;
    cursor: pointer;
  }
  body[data-authored-demo] main > header nav {
    display: none;
  }
  body[data-authored-demo] main > header nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 16px 0 0;
    background: #111411;
    color: #fff;
  }
  body[data-authored-demo] main > header nav.is-open a {
    color: inherit;
    padding: 14px 20px;
    min-height: 44px;
  }
  body[data-authored-demo] .iwHero h1 {
    font-size: clamp(36px, 11.6vw, 76px) !important;
  }
  .demo-disclosure-inner {
    flex-wrap: wrap;
    gap: 4px;
    padding: 9px 5%;
  }
  .demo-disclosure-inner nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
  .restored-form .di-fields {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-authored-demo] *,
  body[data-authored-demo] *::before,
  body[data-authored-demo] *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body[data-demo="calder-and-vale"] .result h2 {
  font-size: clamp(32px, 8.5vw, 160px) !important;
}
/* Keep the original purple closing panel while making its small caption legible. */
body[data-demo="aurelia-med-spa"] .auHomeClose > span {
  color: #fff;
  background: #24122f;
  padding: 0.4em 0.6em;
  box-decoration-break: clone;
}
@media (max-width: 800px) {
  body[data-demo="fieldwork-architecture"] .fieldFit h2 {
    font-size: clamp(28px, 8vw, 40px);
    overflow-wrap: anywhere;
  }
}
/* Display headings sized to their columns so words never break mid-word. */
body[data-authored-demo][data-demo="ironwood-contracting"] .serviceDetail h2 {
  font-size: clamp(1.7rem, 2.9vw, 3rem);
}
@media (max-width: 800px) {
  body[data-authored-demo][data-demo="ironwood-contracting"] .processDetail article {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  body[data-authored-demo][data-demo="ironwood-contracting"] .processDetail h2 {
    font-size: clamp(1.4rem, 6.6vw, 2.2rem);
  }
  body[data-authored-demo][data-demo="ironwood-contracting"] .iwHomeIntro h2 {
    font-size: clamp(2rem, 10.5vw, 3rem);
  }
  body[data-authored-demo][data-demo="ironwood-contracting"] .iwHomeWork h2 {
    font-size: clamp(1.9rem, 8.6vw, 2.6rem);
  }
  body[data-authored-demo][data-demo="aurelia-med-spa"] .auHomeIntro h2 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }
  body[data-authored-demo][data-demo="fieldwork-architecture"] .fieldFit h2 {
    max-width: none;
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
  }
}
@media (max-width: 800px) {
  /* Centered flex content that overflows can't be scrolled back to its start; anchor the stage strip left. */
  body[data-authored-demo][data-demo="ironwood-contracting"] .build-ledger-nav {
    justify-content: flex-start;
    scroll-snap-type: x proximity;
  }
  body[data-authored-demo][data-demo="ironwood-contracting"] .ledger-stage {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  body[data-authored-demo][data-demo="calder-and-vale"] .verdicts {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-authored-demo][data-demo="calder-and-vale"] .verdicts b {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }
}
body[data-authored-demo][data-demo="calder-and-vale"] .verdicts b {
  font-size: clamp(2.2rem, 4.2vw, 4.4rem);
  overflow-wrap: anywhere;
}

/* Hero art direction: five concepts shared one left-aligned dark overlay hero. Three now use
   structurally different compositions on desktop (mobile keeps the stacked layout). */
@media (min-width: 900px) {
  /* Northline — light split ledger: ivory text column beside an uncropped image panel. */
  body[data-authored-demo][data-demo="northline-private-wealth"] .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: stretch;
    padding: 0;
    background: #eee8dc;
    color: #0c1b16;
  }
  body[data-authored-demo][data-demo="northline-private-wealth"] .hero > img {
    position: relative !important;
    inset: auto !important;
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
    animation: none;
  }
  body[data-authored-demo][data-demo="northline-private-wealth"] main > header {
    background: #07110e !important;
  }
  body[data-authored-demo][data-demo="northline-private-wealth"] .hero .veil {
    display: none;
  }
  body[data-authored-demo][data-demo="northline-private-wealth"] .hero .copy {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    max-width: none;
    padding: 150px 5vw 40px 6vw;
  }
  body[data-authored-demo][data-demo="northline-private-wealth"] .hero .copy h1 {
    color: #0c1b16;
    font-size: clamp(3.6rem, 6.4vw, 7.2rem);
  }
  body[data-authored-demo][data-demo="northline-private-wealth"] .hero .copy :is(span, p) {
    color: #2b3a34;
  }
  body[data-authored-demo][data-demo="northline-private-wealth"] .hero .index {
    position: static;
    grid-column: 1;
    grid-row: 2;
    padding: 22px 6vw 34px;
    border-top: 1px solid #0c1b1622;
    color: #5b4a26;
  }

  /* Calder — centered monument: type-led composition with the colonnade as a band below. */
  body[data-authored-demo][data-demo="calder-and-vale"] .hero {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 160px 5vw 0;
    text-align: center;
    background: #0a0a0b;
  }
  body[data-authored-demo][data-demo="calder-and-vale"] .hero > img {
    position: relative !important;
    inset: auto !important;
    order: 3;
    width: calc(100% + 10vw) !important;
    height: 34vh !important;
    min-height: 220px;
    margin: auto -5vw 0;
    object-position: center 35%;
    z-index: 0;
  }
  body[data-authored-demo][data-demo="calder-and-vale"] .hero .veil {
    display: none;
  }
  body[data-authored-demo][data-demo="calder-and-vale"] .hero .copy {
    max-width: 1080px;
  }
  body[data-authored-demo][data-demo="calder-and-vale"] .hero .copy h1 {
    font-size: clamp(3.6rem, 6.8vw, 7.4rem);
  }
  body[data-authored-demo][data-demo="calder-and-vale"] .hero .copy p {
    margin-inline: auto;
  }
  body[data-authored-demo][data-demo="calder-and-vale"] .hero aside {
    position: static;
    order: 2;
    margin: 36px 0 44px;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 2px solid #8d1f27;
  }

  /* Apex — cinema frame: unobstructed car, copy set in a bottom title bar. */
  body[data-authored-demo][data-demo="apex-atelier"] .hero {
    align-items: flex-end;
    padding: 0;
  }
  body[data-authored-demo][data-demo="apex-atelier"] .hero .shade {
    background: linear-gradient(#06080a00 35%, #06080ad9 78%, #06080a 100%);
  }
  body[data-authored-demo][data-demo="apex-atelier"] .hero .copy {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: 5vw;
    align-items: end;
    width: 100%;
    max-width: none;
    padding: 0 5vw 10vh;
  }
  body[data-authored-demo][data-demo="apex-atelier"] .hero .copy > span {
    grid-column: 1 / -1;
  }
  body[data-authored-demo][data-demo="apex-atelier"] .hero .copy h1 {
    grid-column: 1;
    grid-row: 2 / span 2;
    width: auto !important;
    margin: 24px 0 0;
    font-size: clamp(3.2rem, 5.8vw, 6.2rem);
  }
  body[data-authored-demo][data-demo="apex-atelier"] .hero .copy p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
  body[data-authored-demo][data-demo="apex-atelier"] .hero .copy > a {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
  }
  body[data-authored-demo][data-demo="apex-atelier"] .hero .spec {
    top: 120px;
    bottom: auto;
  }
}

/* Touch targets (WCAG 2.5.8): logo links and stand-alone CTAs inside signature widgets. */
body[data-authored-demo] main > header > a:first-child,
body[data-authored-demo] :is(.journey-cta, .phase-cta, .nocturne-clock-detail) > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* One disclosure bar style across every concept (some demo sheets restyle every nav a). */
demo-disclosure .demo-disclosure-inner summary {
  color: #f0a35e;
  font-weight: 700;
}
demo-disclosure .demo-disclosure-inner nav a {
  font: 400 12px/1.5 Arial, sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
