/* MotoMax 4.0 — European everyday motoring. Text and car occupy separate columns. */
:root {
  --paper: #f6f5f1;
  --ink: #262c30;
  --muted: #60696e;
  --line: #d6d9d8;
  --steel: #60737d;
}
body:has(.everyday) #header {
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}
body:has(.everyday) #header .brand img {
  filter: none;
}
body:has(.everyday) #header .top-note {
  background: #e8ebe8;
  color: #414b51;
}
body:has(.everyday) #header .contact-link {
  border-color: #869399;
  color: var(--ink);
}
body:has(.everyday) #header .contact-link:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.hero.cinematic.everyday {
  height: clamp(570px, 39vw, 900px);
  display: grid;
  grid-template-columns: 42% 58%;
  background: var(--paper);
  color: var(--ink);
  isolation: isolate;
}
.hero.cinematic.everyday::before,
.everyday .hero-shade {
  display: none;
}
.everyday .hero-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  inset: auto;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #d5dedf;
  overflow: hidden;
}
.everyday .hero-visual img {
  object-fit: cover;
  object-position: 45% 60%;
  translate: none;
  filter: none;
  animation-name: everyday-camera;
  animation-duration: 1600ms;
  animation-fill-mode: both;
}
.everyday .hero-content {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  padding: 45px clamp(24px, 4vw, 110px);
  margin: 0;
  max-width: none;
  align-items: center;
}
.everyday .hero-copy {
  width: 100%;
  max-width: none;
  padding: 0;
}
.everyday .eyebrow {
  color: #596970;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-bottom: 30px;
}
.everyday h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 4.2vw, 108px);
  line-height: 1.06;
  letter-spacing: -0.065em;
  margin-bottom: 28px;
}
.everyday h1 span {
  color: inherit;
}
.everyday .hero-line {
  white-space: normal;
}
.everyday .hero-line:last-child {
  color: var(--steel);
}
.everyday .intro {
  color: #505d64;
  font-size: clamp(13px, 1vw, 17px);
  max-width: 380px;
  line-height: 1.8;
  margin-bottom: 30px;
}
.everyday .hero-caption {
  left: clamp(24px, 4vw, 110px);
  right: 20px;
  bottom: 22px;
  color: #66737a;
  font-size: 10px;
}
.everyday .hero-caption > span {
  display: none;
}
.everyday .btn {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
h2 {
  font-family: var(--sans);
  font-weight: 500;
}
.section-head h2 {
  font-size: clamp(36px, 3.8vw, 66px);
}
.car {
  border-radius: 0;
  transition:
    box-shadow 320ms,
    background 320ms;
}
.car:hover {
  box-shadow: 0 12px 30px #222c300a;
  background: #fff;
}
.car .car-photo img {
  transition: transform 850ms var(--ease-cinema);
}
.car:nth-child(3n + 2) .car-photo img {
  transform-origin: 65% 55%;
}
.car:nth-child(3n) .car-photo img {
  transform-origin: 35% 70%;
}
.car .car-heading h3 {
  width: fit-content;
  background: linear-gradient(currentColor, currentColor) 0 100%/0 1px no-repeat;
  transition: background-size 400ms;
}
.car:hover .car-heading h3,
.car:focus-within .car-heading h3 {
  background-size: 100% 1px;
}
.car .price-row strong {
  transition:
    color 260ms,
    translate 260ms;
}
.car:hover .price-row strong {
  color: #47616b;
  translate: 0 -2px;
}
.car.will-reveal {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 14% 0);
}
.car.will-reveal .car-photo {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 850ms var(--ease-cinema);
}
.car.will-reveal.is-visible,
.car.will-reveal.is-visible .car-photo {
  clip-path: inset(0);
}
.car:nth-child(3n + 2).will-reveal .car-photo {
  transition-delay: 90ms;
}
.car:nth-child(3n).will-reveal .car-photo {
  transition-delay: 170ms;
}
.model-story {
  background: #252b2e;
  color: #f6f5f1;
  --scene-tone: #252b2e;
}
.model-stage {
  padding: 65px 0 34px;
  background: var(--scene-tone);
  transition: background-color 800ms;
  overflow: hidden;
}
.story-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 25px;
}
.story-heading > .eyebrow {
  max-width: 190px;
  color: #b4c0c4;
}
.story-heading h2 {
  font-size: clamp(38px, 4vw, 68px);
  margin: 0;
}
.story-heading > p {
  font-size: 11px;
  color: #bdc7ca;
  margin: 0;
}
.model-frames {
  max-width: 1600px;
  margin: 32px auto;
  position: relative;
}
.model-frame {
  margin: 0 0 25px;
  position: relative;
}
.model-frame > img {
  width: 100%;
  height: clamp(320px, 32vw, 700px);
  object-fit: cover;
  object-position: center 65%;
  display: block;
}
.model-frame figcaption {
  padding: 22px clamp(24px, 5vw, 80px);
  background: #222a2d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.model-frame figcaption > span {
  font-size: 11px;
  color: #c0cacc;
}
.model-frame h3 {
  font-size: clamp(24px, 2.5vw, 44px);
  margin: 0;
  color: #f6f5f1;
}
.model-frame figcaption > p {
  font-size: 12px;
  margin: 0;
}
.model-controls {
  display: flex;
  gap: 25px;
}
.model-controls button {
  color: #b6c2c6;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition:
    color 250ms,
    border-color 250ms;
}
.model-controls button[aria-pressed="true"] {
  color: white;
  border-color: #d0dadf;
}
.story-enhanced {
  height: 300vh;
  position: relative;
}
.story-enhanced .model-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story-enhanced .model-frames {
  width: 100%;
  height: clamp(310px, 45vh, 720px);
}
.story-enhanced .model-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 650ms,
    visibility 650ms;
  pointer-events: none;
  margin: 0;
}
.story-enhanced .model-frame > img {
  height: calc(100% - 80px);
  clip-path: inset(0 100% 0 0);
  transform: scale(1.04);
  transition:
    clip-path 950ms var(--ease-cinema),
    transform 1400ms var(--ease-cinema);
}
.story-enhanced .model-frame figcaption {
  height: 80px;
}
.story-enhanced .model-frame h3 {
  transform: translateY(15px);
  opacity: 0;
  transition:
    transform 650ms 160ms,
    opacity 500ms 160ms;
}
.story-enhanced .model-frame.is-current {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.story-enhanced .model-frame.is-current > img {
  clip-path: inset(0);
  transform: scale(1);
}
.story-enhanced .model-frame.is-current h3 {
  transform: none;
  opacity: 1;
}
.model-scroll {
  display: none;
}
.editorial-photo img {
  transition: transform 1400ms var(--ease-cinema);
}
.editorial-photo.is-visible img {
  transform: scale(1.025);
}
.btn {
  position: relative;
  transition:
    background 260ms,
    color 260ms,
    border-color 260ms,
    transform 260ms;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
progress {
  accent-color: #60737d;
  transition: opacity 200ms;
}
.photo-editor {
  transition:
    transform 220ms,
    box-shadow 220ms,
    border-color 220ms;
}
.error:not(:empty) {
  animation: feedback-enter 200ms ease-out;
}
@keyframes everyday-camera {
  from {
    clip-path: inset(0 0 0 100%);
    transform: scale(1.055);
  }
  to {
    clip-path: inset(0);
    transform: scale(1);
  }
}
@keyframes feedback-enter {
  from {
    transform: translateX(-5px);
    opacity: 0.3;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (min-width: 1800px) {
  .everyday .hero-content {
    padding-left: max(80px, calc((100vw - 2240px) / 2));
  }
}
@media (max-width: 1100px) {
  .hero.cinematic.everyday {
    grid-template-columns: 46% 54%;
    height: 600px;
  }
  .everyday h1 {
    font-size: 54px;
  }
  .story-heading > .eyebrow {
    max-width: 140px;
  }
  .model-frame figcaption > span {
    display: none;
  }
}
@media (max-width: 760px) {
  .hero.cinematic.everyday {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .everyday .hero-content {
    order: 0;
    height: auto;
    min-height: 330px;
    padding: 40px 24px 45px;
  }
  .everyday .hero-visual {
    order: 1;
    height: auto;
    aspect-ratio: 6/5;
    flex: none;
  }
  .everyday h1 {
    font-size: clamp(46px, 9vw, 65px);
    max-width: 530px;
    margin-bottom: 20px;
  }
  .everyday .eyebrow {
    margin-bottom: 20px;
  }
  .everyday .intro {
    font-size: 13px;
    margin-bottom: 23px;
  }
  .everyday .hero-caption {
    bottom: 13px;
    left: 24px;
  }
  .everyday .hero-visual img {
    object-position: 50% 65%;
  }
  .everyday .hero-copy {
    padding: 0;
  }
  .story-heading {
    display: block;
  }
  .story-heading h2 {
    margin: 20px 0;
  }
  .model-frame > img {
    height: 320px;
    object-fit: cover;
  }
  .model-frame:first-child > img {
    object-position: 50% 65%;
  }
  .model-frame figcaption {
    display: block;
    padding: 22px 24px;
  }
  .model-frame figcaption p {
    margin-top: 6px;
  }
  .model-controls {
    display: none;
  }
  .model-stage {
    padding-top: 45px;
  }
  .discovery-bar {
    align-items: start;
  }
  .discovery-bar > p {
    max-width: 180px;
  }
  .nav-links.open > a {
    animation: menu-item-enter 480ms both;
  }
  .nav-links.open > a:nth-child(2) {
    animation-delay: 65ms;
  }
  .nav-links.open > a:nth-child(3) {
    animation-delay: 130ms;
  }
  .nav-links.open > a:nth-child(4) {
    animation-delay: 195ms;
  }
}
@keyframes menu-item-enter {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(12px);
  }
  to {
    clip-path: inset(0);
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .everyday .hero-visual img,
  .error:not(:empty),
  .nav-links.open > a {
    animation: none;
  }
  .model-story *,
  .car *,
  .btn,
  .photo-editor {
    transition: none !important;
  }
  .car.will-reveal,
  .car.will-reveal .car-photo {
    clip-path: none;
  }
  .editorial-photo.is-visible img {
    transform: none;
  }
}

/* Keep the existing mobile display:contents rule from flattening the split hero. */
.everyday .hero-content {
  display: flex;
}
.story-enhanced .model-stage {
  padding-top: 145px;
}
.story-enhanced .model-frames {
  height: clamp(260px, 38vh, 650px);
}
.model-frame:first-child > img {
  object-position: 50% 67%;
}
.everyday.motion-hero .hero-visual {
  animation: none;
}
@media (max-width: 760px) {
  .everyday .hero-content {
    display: flex;
  }
  .everyday .hero-visual {
    aspect-ratio: 6/5;
  }
}

/* Explicit resets for the former 600–900 px editorial grid. */
.hero.cinematic.everyday .hero-copy {
  display: block;
  padding: 0;
  width: 100%;
  max-width: none;
}
.hero.cinematic.everyday .hero-copy h1 {
  font-size: clamp(48px, 4.2vw, 108px);
  margin: 0 0 28px;
  line-height: 1.06;
}
.hero.cinematic.everyday .hero-copy > .eyebrow {
  color: #596970;
  margin: 0 0 24px;
}
.hero.cinematic.everyday .hero-caption {
  position: absolute;
  background: transparent;
  padding: 0;
  left: clamp(24px, 4vw, 110px);
  bottom: 15px;
  right: 20px;
}
.model-frame > img {
  object-fit: contain;
  background: #20272a;
}
@media (max-width: 1100px) {
  .hero.cinematic.everyday .hero-copy h1 {
    font-size: 54px;
  }
}
@media (max-width: 760px) {
  .hero.cinematic.everyday .hero-copy h1 {
    font-size: clamp(46px, 9vw, 65px);
    margin-bottom: 20px;
  }
  .hero.cinematic.everyday .hero-copy > .eyebrow {
    margin-bottom: 20px;
  }
  .hero.cinematic.everyday .hero-caption {
    left: 24px;
  }
}

.model-controls {
  display: none;
}
.story-enhanced .model-controls {
  display: flex;
}
@media (max-width: 760px) {
  .story-enhanced .model-controls {
    display: none;
  }
}

/* The entire car stays visible on tablets; the photo moves below the copy. */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero.cinematic.everyday {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .everyday .hero-content {
    order: 0;
    height: auto;
    min-height: 330px;
    padding: 40px 36px 45px;
  }
  .everyday .hero-visual {
    order: 1;
    height: auto;
    aspect-ratio: 18/11;
    flex: none;
  }
  .everyday .hero-visual img {
    position: absolute;
    inset: 0;
    object-position: 50% 60%;
  }
  .everyday .hero-copy {
    max-width: 700px;
  }
  .hero.cinematic.everyday .hero-caption {
    left: 36px;
  }
}
