/* A continuous illustrated story, sharing the site's type, colors and native header. */
body[data-site-page="ethos"] #page.ethos {
  --sun-paper: #ffdf83;
  --ink-dark: #003b5c;
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  line-height: 1.56;
}
#page.ethos .et-wrap { width: min(100% - 2.5rem, 78rem); margin-inline: auto; }
#page.ethos :is(h1, h2) { margin: 0; color: inherit; font-weight: 400; }
body[data-site-page="ethos"] #page.ethos :is(h1, h2) {
  font-family: var(--hero-font) !important;
  font-synthesis: none;
  letter-spacing: -.025em;
}
body[data-site-page="ethos"] #page.ethos h1 { font-size: clamp(5.2rem, 8.3vw, 8.3rem); line-height: .94; }
body[data-site-page="ethos"] #page.ethos h2 { font-size: clamp(2.8rem, 4.65vw, 4.8rem); line-height: 1.01; }
#page.ethos .et-section-name { font-size: 1rem; font-weight: 750; margin: 0 0 1.15rem; }
#page.ethos .et-cover { background-color: var(--sun-paper); color: var(--ink); border-bottom: 2px solid var(--ink); }
.et-cover-grid, .et-spread, .et-roof-grid, .et-promise-grid {
  display: grid;
  align-items: center;
  column-gap: clamp(2.4rem, 5.5vw, 5.6rem);
}
.et-cover-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.22fr); padding-block: clamp(2.8rem, 5vw, 5.2rem); }
#page.ethos .et-cover-copy > p:not(.et-section-name) { margin-top: 1.5rem; max-width: 39ch; }
#page.ethos .et-actions, #page.ethos .et-links { display: flex; gap: .8rem 1.3rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
#page.ethos .et-action { display: inline-flex; padding: .65rem 1.4rem; min-height: 44px; border: 2px solid var(--ink); border-radius: 99px; align-items: center; justify-content: center; font-size: 1rem; line-height: 1.3; font-weight: 780; text-decoration: none; }
#page.ethos .et-dark { background: var(--ink); color: white; }
#page.ethos .et-dark:hover { background: var(--ink-dark); }
#page.ethos .et-inline { display: inline-block; padding-block: .45rem; font-size: 1rem; font-weight: 730; text-decoration: underline; text-underline-offset: .24em; }
#page.ethos figure { margin: 0; min-width: 0; }
#page.ethos figure > svg { display: block; width: 100%; height: auto; }
#page.ethos figure figcaption { margin: .65rem 0 0; font-size: .94rem; line-height: 1.42; }
#page.ethos .et-quotes figcaption { text-align: center; }
.et-spread { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding-block: clamp(3rem, 7vw, 7rem); }
.et-compare { background: var(--chalk); color: var(--ink); }
.et-window { align-self: center; }
#page.ethos .et-copy p:not(.et-section-name) { max-width: 47ch; margin-top: 1rem; }
#page.ethos .et-copy > .et-inline { margin-top: .7rem; }
#page.ethos .et-roof { background: var(--ink-dark); color: var(--chalk); }
.et-roof-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); padding-block: clamp(3rem, 6.5vw, 6.5rem); }
#page.ethos .et-roof h2 { color: var(--sun-paper); }
#page.ethos .et-roof .et-inline { color: white; }
#page.ethos .et-links { gap: .5rem 1.5rem; margin-top: .7rem; }
#page.ethos .et-house figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; margin-top: 1.05rem; }
#page.ethos .et-switch { display: inline-flex; gap: .15rem; padding: .2rem; border: 1px solid #a8c7d2; border-radius: 99px; }
#page.ethos .et-switch[hidden] { display: none; }
#page.ethos .et-switch button { appearance: none; cursor: pointer; border: none; border-radius: 99px; padding: .55rem .9rem; min-height: 40px; background: transparent; color: white; font-size: .95rem; font-weight: 700; line-height: 1.3; }
#page.ethos .et-switch button[aria-pressed="true"] { background: var(--yellow); color: var(--ink-dark); }
#page.ethos .et-roof :focus-visible { outline-color: var(--yellow); }
.et-promise { background-color: #e8f2f2; color: var(--ink); }
.et-promise-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); padding-block: clamp(3rem, 6.5vw, 6.5rem); }
.et-owner-art { position: relative; width: 100%; min-height: 250px; height: clamp(240px, 29vw, 374px); overflow: hidden; border-bottom: 3px solid var(--ink); }
.et-neighborhood { position: absolute; width: 100%; bottom: 0; }
.et-portrait { position: absolute; bottom: -1%; left: 27%; height: 96%; width: auto; max-width: none; object-fit: contain; }
#page.ethos .et-owners figcaption { font-weight: 750; }
#page.ethos .et-owners figcaption span { display: block; font-weight: 450; }
#page.ethos .et-copy .et-signature { font-weight: 750; }
#compare { scroll-margin-top: 4.5rem; }

@media (min-width: 801px) {
  #page.ethos .et-wrap { width: min(100% - 6rem, 78rem); }
}
@media (max-width: 800px) {
  .et-cover-grid, .et-spread, .et-roof-grid, .et-promise-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  #page.ethos .et-wrap { max-width: 41rem; }
  #page.ethos h1 br { display: none; }
  body[data-site-page="ethos"] #page.ethos h1 { font-size: clamp(4.5rem, 13vw, 6.4rem); line-height: .99; }
  #page.ethos .et-cover-copy > p:not(.et-section-name) { margin-top: .9rem; }
  .et-cover-grid { padding-block: 2.5rem 1.6rem; }
  .et-spread .et-copy { grid-row: 1; }
  #page.ethos .et-copy p:not(.et-section-name) { max-width: 55ch; }
  .et-promise-grid .et-copy { grid-row: 1; }
  .et-owner-art { height: clamp(230px, 52vw, 330px); }
}
@media (max-width: 380px) {
  #page.ethos .et-wrap { width: calc(100% - 2rem); }
  #page.ethos .et-actions { column-gap: .9rem; }
}

/* The complete frames are the default, including when scripting or motion is off. */
.et-house .er-sunset { transform: translateY(68px); }
.et-house .er-facade { fill: #caceb9; }
.et-house .er-clay { fill: #c88270; }
.et-house .er-pane { fill: #ffde91; }
.et-house[data-view="day"] :is(.er-dusk, .er-stars, .er-lightwash, .er-pucks) { opacity: 0; }
.et-house[data-view="day"] .er-sunset { transform: translateY(-12px); }
.et-house[data-view="day"] .er-facade { fill: #f4e7c6; }
.et-house[data-view="day"] .er-clay { fill: #ec8666; }
.et-house[data-view="day"] .er-pane { fill: #75b8d3; }
.et-window .ew-residue { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-mj-motion-paused="true"]) .et-house :is(.er-dusk, .er-stars, .er-pucks, .er-lightwash) { transition: opacity 1.05s ease; }
  html:not([data-mj-motion-paused="true"]) .et-house .er-sunset { transition: transform 1.4s ease-in-out; }
  html:not([data-mj-motion-paused="true"]) .et-house :is(.er-facade, .er-clay, .er-pane) { transition: fill 1.05s ease; }
  html:not([data-mj-motion-paused="true"]) .et-play .et-paper-a { animation: et-paper-back .85s cubic-bezier(.16,1,.3,1) both; }
  html:not([data-mj-motion-paused="true"]) .et-play .et-paper-b { animation: et-paper-front .95s .12s cubic-bezier(.16,1,.3,1) both; }
  html:not([data-mj-motion-paused="true"]) .et-play .et-pencil { animation: et-pencil 1.15s .18s cubic-bezier(.22,.7,.2,1) both; }
  html:not([data-mj-motion-paused="true"]) .et-play .et-tick path { stroke-dasharray: 36; animation: et-check .5s .7s ease-out both; }
  html:not([data-mj-motion-paused="true"]) .et-play .et-tick path:nth-child(2) { animation-delay: .9s; }
  html:not([data-mj-motion-paused="true"]) .et-play .et-tick path:nth-child(3) { animation-delay: 1.1s; }
  html:not([data-mj-motion-paused="true"]) .et-play .ew-squeegee { animation: et-wipe 1.65s cubic-bezier(.42,0,.18,1) both; }
  html:not([data-mj-motion-paused="true"]) .et-play .ew-residue { animation: et-clean 1.25s ease both; }
  html:not([data-mj-motion-paused="true"]) .et-play .ew-glints { animation: et-shine .7s .8s ease both; transform-origin: center; transform-box: fill-box; }
  html:not([data-mj-motion-paused="true"]) .et-play .et-neighborhood { animation: et-neighborhood .95s cubic-bezier(.16,1,.3,1) both; }
}
@keyframes et-paper-back { from { transform: translate(68px, 18px) rotate(7deg); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes et-paper-front { from { transform: translate(-72px, 26px) rotate(-9deg); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes et-pencil { from { transform: translate(35px, -34px); opacity: 0; } 72% { transform: translate(-6px, 4px); } to { transform: none; opacity: 1; } }
@keyframes et-check { from { stroke-dashoffset: 36; } to { stroke-dashoffset: 0; } }
@keyframes et-wipe { from { transform: translate(-144px,-75px); } 66% { transform: translate(-96px,46px); } to { transform: none; } }
@keyframes et-clean { 0%, 20% { opacity: .75; } to { opacity: 0; } }
@keyframes et-shine { from { transform: scale(.28); opacity: .1; } 68% { transform: scale(1.15); } to { transform: scale(1); opacity: 1; } }
@keyframes et-neighborhood { from { transform: translateY(26px); opacity: .3; } to { transform: none; opacity: 1; } }
