/* Avellar Miami — structure transplanted from the semlerpremium.dk capture.
   Every value marked "medido" comes from design-system.md / secoes/*.md at 1920px;
   fluid values scale that measurement down (value at 1920 ÷ 19.2 = vw). */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* color (medido) */
  --paper: #f8f8f8;          /* fundo */
  --ink: #1a1a1a;            /* tinta, 16.39:1 on paper */
  --carbon: #000;            /* circle, hover fill */
  --slate: #1f2937;          /* gray-800 display titles, 13.82:1 on paper */
  --accent: #eeff5b;         /* arrow inside black circle, 19.09:1 on #000 */
  --smoke: #373737;          /* button--white surface */
  --line: #e5e7eb;           /* dividers */
  --muted: #6b7280;          /* was #9ca3af (2.39:1, fails) → 4.55:1 */
  --scrim: rgba(26, 26, 26, .4);

  /* type */
  --font: "General Sans", "Helvetica Neue", Arial, sans-serif;  /* replaces Italian Plate No.2 */
  --font-logo: "Cormorant Garamond", Georgia, serif;

  --fs-96: clamp(46px, 5vw, 96px);      /* 96 / 1.2 / -0.025em, 300 */
  --fs-76: clamp(38px, 3.96vw, 76px);   /* 76 / 1.1 / -0.025em, 300 */
  --fs-50: clamp(32px, 2.6vw, 50px);    /* 50 / 1.1 */
  --fs-49: clamp(28px, 2.55vw, 49px);   /* 49 / 1.1, 500 */
  --fs-31: clamp(24px, 1.615vw, 31px);  /* 31 / 1.1 */
  --fs-28: clamp(22px, 1.46vw, 28px);   /* 28 / 1.2 */
  --fs-25: clamp(20px, 1.3vw, 25px);
  --fs-20: clamp(18px, 1.04vw, 20px);

  /* space (medido: 8 · 16 · 32 · 40 · 48 · 56 · 80) */
  --pad-x: clamp(20px, 2.08vw, 40px);
  --pad-y: clamp(48px, 4.17vw, 80px);
  --gap-col: clamp(16px, 2.92vw, 56px);
  --gap-row: 16px;

  /* radius (medido: 5 · 8 · 12 · 16 · 60 · 9999) */
  --r-card: 8px;
  --r-media: 12px;
  --r-pill: 60px;

  --ease-out: cubic-bezier(.215, .61, .355, 1);
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, figure, ul, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-pill); }
.skip-link:focus { top: 16px; }

/* ── Grid (medido: grid-default, 12 × 102px, gap 16 / 56) ── */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap-col);
  row-gap: var(--gap-row);
}
.grid > * { grid-column: 1 / -1; }
.section { position: relative; padding: var(--pad-y) var(--pad-x); }

/* ── Type roles ─────────────────────────────────────────── */
.h2 { font-size: var(--fs-50); line-height: 1.1; font-weight: 400; text-transform: uppercase; margin-bottom: 32px; }
.h2--tight { margin-bottom: 8px; }
.h5 { font-size: var(--fs-28); line-height: 1.2; font-weight: 400; text-transform: uppercase; margin-bottom: 32px; }
.h5--normal { text-transform: none; }
.eyebrow { text-transform: uppercase; margin-bottom: 32px; }
.display-76 { font-size: var(--fs-76); line-height: 1.1; font-weight: 300; letter-spacing: -.025em; text-transform: uppercase; color: var(--slate); }
.rich p { margin-bottom: 16px; }
.rich strong { font-weight: 700; }

/* ── Button (medido: pill 60px, pad 8 8 8 20, inset 1px ring, 30px circle) ── */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  min-height: 46px;
  padding: 8px 8px 8px 20px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--carbon);
  transition: background-color .5s, color .5s;
}
.button__text { position: relative; top: 1px; margin-right: 15px; font-weight: 500; text-transform: uppercase; white-space: nowrap; }
.button__circle {
  display: flex; align-items: center; justify-content: center;
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--carbon); color: var(--accent);
  overflow: hidden;
}
.button__circle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.button:hover { background: var(--carbon); color: var(--paper); }
.button:hover .button__circle svg { animation: arrow-pass .5s var(--ease-out); }
@keyframes arrow-pass { 0% { transform: translateX(0); } 49% { transform: translateX(22px); } 50% { transform: translateX(-22px); } 100% { transform: translateX(0); } }

/* on photography: transparent, white ring, white circle (medido) */
.button--onmedia { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px #fff; min-height: 48px; }
.button--onmedia .button__circle { background: #fff; color: var(--carbon); }
/* button--white in the capture: #373737 surface, white ring */
.button--dark { background: var(--smoke); color: var(--paper); box-shadow: inset 0 0 0 1px #fff; }
.button--dark .button__circle { background: var(--paper); color: var(--carbon); }

/* ── Logo (typeset; the original was a serif SVG wordmark) ── */
.logo { display: inline-flex; flex-direction: column; align-items: center; color: currentColor; line-height: 1; }
.logo__word { font: 500 25px/1 var(--font-logo); letter-spacing: .06em; text-transform: uppercase; padding: 0 1px 3px; border-bottom: 2px solid currentColor; }
.logo__sub { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; margin-top: 5px; font-weight: 500; }
.logo--dark { color: var(--ink); }

/* ── 01 Header + menu ───────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 32px var(--pad-x) 0;
  color: var(--paper);
  transition: color .4s;
  pointer-events: none;
}
.site-header[data-theme="dark"] { color: var(--ink); }
.site-header.is-open { color: var(--ink); }
.site-header__bar { position: relative; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 80px; }
.site-header__bar > * { pointer-events: auto; }
.site-header.is-hidden:not(.is-open) .site-header__bar { transform: translateY(-140%); }
.site-header__bar { transition: transform .5s var(--ease-out); }
.burger { position: relative; width: 64px; height: 64px; border-radius: 9999px; }
.burger span { position: absolute; left: 22px; top: 31px; width: 20px; height: 2px; background: currentColor; transition: transform .4s var(--ease-out); }
.burger span:first-child { transform: translateY(-5px); }
.burger span:last-child { transform: translateY(5px); }
.is-open .burger span:first-child { transform: rotate(45deg); }
.is-open .burger span:last-child { transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 45; display: flex; visibility: hidden; pointer-events: none; }
.is-open .menu { pointer-events: auto; }
.menu__bg { position: absolute; inset: 0; background: rgba(248, 248, 248, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform-origin: top; }
.menu__media { position: relative; flex: 0 0 33.333%; height: 100%; overflow: hidden; }
.menu__media::after { content: ""; position: absolute; inset: 0; z-index: 20; background: linear-gradient(to top, rgba(26, 26, 26, .2), transparent); }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); opacity: 0; transition: opacity .5s; filter: brightness(1.02) contrast(1.05); }
.menu__media img.is-active { opacity: 1; z-index: 10; }
.menu__content { position: relative; flex: 1; display: flex; flex-direction: column; padding: 120px 9.7vw 48px 10.5vw; overflow-y: auto; }
.menu__primary li, .menu__secondary li { overflow: hidden; }
.menu__primary a { display: inline-block; padding: 16px 0; font-size: var(--fs-50); line-height: 1.1; font-weight: 300; text-transform: uppercase; }
.menu__spacer { flex: 1; min-height: 24px; }
.menu__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 72px; }
.menu__secondary { display: flex; flex-direction: column; gap: 20px; }
.menu__secondary a { display: inline-block; font-weight: 300; text-transform: uppercase; line-height: 1.2; }
.menu__contact { font-size: 13px; line-height: 19.5px; position: relative; top: 20px; }
/* text roll (medido: wrapper overflow hidden, h 1.2em) */
.roll { position: relative; display: inline-flex; flex-direction: column; height: 1.2em; overflow: hidden; vertical-align: top; }
.roll > span { display: block; line-height: 1.2; transition: transform .5s var(--ease-out); }
a:hover > .roll > span, a:focus-visible > .roll > span { transform: translateY(-100%); }

/* ── 02 / 05 / 10 Full media (medido: 100vh, bg 120% tall, card 486×864) ── */
.fullmedia { position: relative; height: 100vh; min-height: 680px; overflow: hidden; color: var(--paper); margin: 80px 0; }
.fullmedia--hero { margin-top: 0; }
.fullmedia__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.fullmedia__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .5) 0%, rgba(10, 10, 10, 0) 50%), linear-gradient(90deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .2) 45%, rgba(10, 10, 10, .45) 100%); }
.fullmedia__bg img { width: 100%; height: 120%; object-fit: cover; filter: grayscale(.3) contrast(1.1); }
.kenburns { animation: kenburns 24s ease-in-out infinite alternate; transform-origin: center; }
@keyframes kenburns { from { scale: 1; } to { scale: 1.1; } }
.fullmedia__center { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.fullmedia__card { position: relative; width: min(25.3vw, 486px); aspect-ratio: 486 / 864; border-radius: var(--r-card); overflow: hidden; }
.fullmedia__card img { width: 100%; height: 110%; object-fit: cover; filter: grayscale(.3) contrast(1.1); }
.fullmedia__card figcaption { position: absolute; left: 0; right: 0; bottom: 6px; padding: 0 24px; text-align: center; font-size: 13px; line-height: 19px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.fullmedia__layer { text-shadow: 0 1px 14px rgba(0, 0, 0, .28); position: relative; z-index: 30; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.fullmedia__head { max-width: 1152px; padding: 96px var(--pad-x) 0; }
.fullmedia--hero .fullmedia__head { padding-top: 192px; }
.fullmedia__eyebrow { font-size: 18px; line-height: 27px; font-weight: 300; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 32px; }
.fullmedia__title { font-size: var(--fs-96); line-height: 1.2; font-weight: 300; letter-spacing: -.025em; text-transform: uppercase; margin-bottom: 16px; }
.fullmedia__sub { max-width: 672px; font-size: var(--fs-20); line-height: 1.5; text-transform: uppercase; margin-bottom: 32px; }
.fullmedia__aside { position: absolute; right: 0; bottom: 96px; padding: 0 48px; display: flex; flex-direction: column; align-items: flex-end; }
.fullmedia__aside-inner { display: flex; flex-direction: column; align-items: flex-start; max-width: 448px; }
.fullmedia__body { margin-bottom: 32px; }

/* ── 03 / 06 / 08 Text with media (medido: media cols 3–6, text cols 8–10) ── */
.twm__grid { align-items: center; }
.media { border-radius: var(--r-media); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 576 / 1024; }
.media--portrait { aspect-ratio: 9 / 12; }
.twm__text .button { margin-top: 0; }
.twm__text .rich { margin-bottom: 16px; }

/* ── 04 / 13 Link blocks (medido: 3 cols gap 40 / 2 cols gap 40) ── */
.linkblocks { padding-top: var(--pad-y); }
.linkblocks__head { overflow: hidden; margin-bottom: 48px; }
.linkblocks__grid { display: grid; gap: 40px; }
.linkblock { position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); }
.linkblock__link { position: absolute; inset: 0; z-index: 10; border-radius: var(--r-card); }
.linkblock__title-wrap { overflow: hidden; }
.linkblock__title { font-size: var(--fs-49); line-height: 1.1; font-weight: 500; text-transform: uppercase; color: var(--slate); margin-bottom: 32px; }
.linkblock__media { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 4; }
.linkblock__media--wide { aspect-ratio: 900 / 600; }
.linkblock__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.linkblock:hover .linkblock__media img { transform: scale(1.05); }

/* ── 07 Text multi cols ─────────────────────────────────── */
.multicols__list h4 { font-size: var(--fs-20); line-height: 1.2; font-weight: 400; text-transform: uppercase; margin-bottom: 8px; }
.multicols__list p { margin-bottom: 40px; }   /* 16 + the two <br> of the original = 48px rows */
.multicols__list p:last-child { margin-bottom: 0; }

/* ── 09 / 12 Feed (medido: big cols 1–7, small cols 9–11, sticky top 64) ── */
.feed__title { font-size: var(--fs-31); line-height: 1.1; font-weight: 400; text-transform: uppercase; padding-bottom: 40px; margin-bottom: 8px; }
.feed__sticky { position: sticky; top: 64px; }
.feed__media { display: block; border-radius: var(--r-card); overflow: hidden; }
.feed__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.feed__media:hover img { transform: scale(1.03); }
.feed__media--wide { aspect-ratio: 1050 / 599; }
.feed__media--tall { aspect-ratio: 3 / 4; }
.feed__media--small { aspect-ratio: 3 / 2; }
.feed__offset { padding-top: 80px; }
.feed__text { margin-top: 16px; }
.feed__item--big .feed__text { max-width: 652px; }
.feed__text > p { margin-bottom: 32px; }
.feed__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.feed__all--gap { margin-left: 4px; }
.feed__all-mobile { display: none; }
.feed__item--big { margin-bottom: 32px; }

/* ── 11 Slider (medido: card 800 wide, 16:10, neighbours ×0.65 @ ±760 then +620) ── */
.slider { overflow: hidden; }
.slider__head { margin-bottom: 80px; align-items: end; }
.slider__title { font-size: var(--fs-31); line-height: 1.1; font-weight: 400; text-transform: uppercase; }
.slider__cta { display: flex; justify-content: flex-end; }
.slider__stage { position: relative; height: clamp(320px, 31.25vw, 600px); display: flex; align-items: center; justify-content: center; touch-action: pan-y; cursor: grab; outline-offset: 8px; }
.slider__stage.is-dragging { cursor: grabbing; }
.car { position: absolute; left: 50%; top: 50%; width: min(41.67vw, 800px); margin-left: calc(min(41.67vw, 800px) / -2); translate: 0 -50%; user-select: none; }
.car__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-card); overflow: hidden; margin-bottom: 16px; }
.car__media::before { content: ""; position: absolute; inset: 0 0 auto; height: 40%; z-index: 2; background: linear-gradient(rgba(26, 26, 26, .25), rgba(26, 26, 26, .1), transparent); }
.car__media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.car__badge { position: absolute; z-index: 5; top: 24px; right: 24px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 9999px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 13px; line-height: 19.5px; font-weight: 500; }
.car__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.car__meta { display: flex; justify-content: space-between; gap: 32px; }
.car__name { min-width: 0; }
.car__make { font-size: 13px; line-height: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.car__model { font-size: var(--fs-31); line-height: 1; text-transform: uppercase; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car__price-wrap { display: flex; align-items: center; gap: 32px; }
.car__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; line-height: 1; }
.car__price span { font-size: var(--fs-25); font-weight: 500; }
.car__price small { font-size: 16px; letter-spacing: .05em; color: var(--muted); }
.car__divider { width: 1px; height: 48px; background: var(--line); }
.car__details { padding: 12px 24px; border-radius: 9999px; background: var(--paper); font-size: 13px; line-height: 13px; font-weight: 500; text-transform: uppercase; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, color .3s; }
.car__details:hover { background: var(--ink); color: var(--paper); }
.car:not(.is-active) .car__divider, .car:not(.is-active) .car__details { opacity: 0; pointer-events: none; }
.slider__nav { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin: 64px 64px 0 0; }
.slider__btn { width: 40px; height: 40px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; opacity: .8; transition: opacity .3s, background-color .3s; }
.slider__btn:hover { opacity: 1; background: rgba(26, 26, 26, .06); }
.slider__btn:disabled { opacity: .3; cursor: default; }
.slider__btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider__progress { position: relative; top: 1px; width: 96px; height: 2px; border-radius: 2px; background: rgba(26, 26, 26, .2); overflow: hidden; }
.slider__progress span { display: block; height: 100%; width: 12.5%; background: rgba(26, 26, 26, .9); transition: width .5s; }
.slider__note { margin: 16px 64px 0 0; text-align: right; font-size: 13px; line-height: 19.5px; color: var(--muted); }

/* ── 14 Sell form (medido: 486px band, scrim .4, card 448 pad 40/32) ── */
.sell { color: var(--paper); }
.sell__bg { position: absolute; inset: 0; }
.sell__bg::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.sell__bg img { width: 100%; height: 100%; object-fit: cover; }
.sell__grid { position: relative; z-index: 20; align-items: start; }
.sell__text p { max-width: 576px; }
.sell__card { max-width: 448px; margin: 0 auto; padding: 40px 32px; border-radius: var(--r-card); background: var(--paper); color: var(--ink); }
.sell__card-title { font-size: var(--fs-25); line-height: 1.5; margin-bottom: 32px; padding: 0; }
.plate { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 32px; }
.plate label { position: relative; width: 40px; display: flex; justify-content: center; }
.plate label::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--muted); }
.plate input { width: 32px; height: 48px; border: 0; border-radius: 5px; background: transparent; text-align: center; font: 400 30px/30px var(--font); text-transform: uppercase; color: var(--ink); }
.plate input::placeholder { color: var(--muted); }
.plate input:focus { outline: none; background: rgba(26, 26, 26, .05); }
.plate label:focus-within::after { height: 2px; background: var(--ink); }
.sell__status { min-height: 24px; margin-top: 12px; font-size: 13px; line-height: 19.5px; color: var(--muted); }

/* ── 15 Footer (medido: radius 16 top, paper .85 + blur, pad 48 40 28) ── */
.site-footer { position: relative; z-index: 10; overflow: hidden; }
.site-footer__panel { padding: 48px var(--pad-x) 28px; border-radius: 16px 16px 0 0; background: rgba(248, 248, 248, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid rgba(0, 0, 0, .06); }
.site-footer__grid { margin-bottom: 40px; row-gap: 32px; }
.site-footer h2 { font-size: 20px; line-height: 20px; font-weight: 400; color: #000; margin-bottom: 12px; }
.site-footer ul li + li { margin-top: 12px; }
.site-footer__col a { transition: color .3s; }
.site-footer__col a:hover { color: rgba(0, 0, 0, .5); }
.site-footer__bottom { border-top: 1px solid rgba(0, 0, 0, .1); row-gap: 8px; }
.site-footer__legal { margin-top: 24px; font-size: 13px; line-height: 19.5px; }
.site-footer__social ul { display: flex; gap: 16px; margin-top: 24px; }
.site-footer__social li + li { margin-top: 0 !important; }
.site-footer__social a { font-size: 13px; line-height: 19.5px; text-transform: uppercase; }
.site-footer__social a:hover { color: rgba(0, 0, 0, .5); }

/* ── Breakpoints ────────────────────────────────────────── */
@media (min-width: 768px) {
  .twm__media, .twm__text { grid-column: span 6; }
  .twm__text--left { grid-row: 1; grid-column: 1 / span 6; }
  .twm__media--right { grid-column: 7 / span 6; }
  .multicols__intro { grid-column: span 5; }
  .multicols__list { grid-column: 7 / span 6; }
  .linkblocks__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .linkblocks__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed__item--big { grid-column: 1 / span 7; grid-row: 1; margin-bottom: 0; }
  .feed__item--small { grid-column: 9 / span 4; grid-row: 1; }
  .slider__title { grid-column: 1 / span 6; }
  .slider__cta { grid-column: 7 / span 6; }
  .sell__text { grid-column: 1 / span 6; }
  .sell__card-wrap { grid-column: 7 / span 6; }
  .site-footer__logo { grid-column: span 12; }
  .site-footer__col--wide { grid-column: span 3; }
  .site-footer__col { grid-column: span 3; }
  .site-footer__legal { grid-column: 1 / span 6; }
  .site-footer__social { grid-column: 7 / span 6; }
  .site-footer__social ul { justify-content: flex-end; }
}

@media (min-width: 1280px) {
  /* exact column placement from the capture */
  .twm__media--left { grid-column: 3 / span 4; }
  .twm__text--right { grid-column: 8 / span 3; }
  .twm__text--left { grid-column: 3 / span 3; }
  .twm__media--right { grid-column: 7 / span 4; }
  .multicols__intro { grid-column: 1 / span 4; }
  .feed__item--small { grid-column: 9 / span 3; }
  .slider__title { grid-column: 2 / span 3; }
  .slider__cta { grid-column: 6 / span 6; }
  .sell__text { grid-column: 2 / span 4; }
  .sell__card-wrap { grid-column: 8 / span 4; }
  .site-footer__logo { grid-column: span 2; }
  .site-footer__col--wide { grid-column: span 3; }
  .site-footer__col { grid-column: span 2; }
  .site-footer__legal { grid-column: 1 / span 4; }
  .site-footer__social { grid-column: 9 / span 4; }
}

@media (max-width: 1279px) {
  .fullmedia__card { width: min(32vw, 486px); }
}

@media (max-width: 959px) {
  .menu__media { display: none; }
  .menu__content { padding: 120px var(--pad-x) 40px; }
  .menu__foot { flex-direction: column; align-items: flex-start; padding-bottom: 24px; }
  .menu__contact { top: 0; }
}

@media (max-width: 767px) {
  /* mobile: head → card → aside in flow, so long titles never sit on the card */
  .fullmedia { height: auto; min-height: 100svh; margin: 48px 0; display: flex; flex-direction: column; }
  .fullmedia--hero { margin-top: 0; }
  .fullmedia__layer { display: contents; }
  .fullmedia__head, .fullmedia--hero .fullmedia__head { position: relative; z-index: 30; order: 1; padding-top: 128px; }
  .fullmedia__center { position: relative; inset: auto; order: 2; padding: 0 var(--pad-x) 32px; justify-content: flex-start; }
  .fullmedia__card { width: 56vw; }
  .fullmedia__card figcaption { display: none; }
  .fullmedia__aside { position: relative; z-index: 30; order: 3; right: auto; bottom: auto; padding: 0 var(--pad-x) 48px; align-items: flex-start; margin-top: auto; }
  .site-header[data-theme="dark"]:not(.is-open) .site-header__bar::before { content: ""; position: absolute; inset: -32px calc(var(--pad-x) * -1) 0; z-index: -1; background: rgba(248, 248, 248, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .fullmedia__eyebrow { font-size: 14px; line-height: 21px; margin-bottom: 16px; }
  .twm__grid { row-gap: 32px; }
  .twm__media--left, .twm__media--right { order: 0; }
  .twm__text--left { order: 1; }
  .media--tall { aspect-ratio: 4 / 5; }
  .linkblocks__grid { gap: 32px; }
  .linkblock__title { margin-bottom: 16px; }
  .feed__grid { row-gap: 48px; }
  .feed__sticky { position: static; }
  .feed__offset { padding-top: 0; }
  .feed__all { display: none; }
  .feed__all-mobile { display: block; }
  .slider__head { margin-bottom: 40px; row-gap: 24px; }
  .slider__cta { justify-content: flex-start; }
  .car { width: 78vw; margin-left: -39vw; }
  .car__meta { flex-direction: column; gap: 12px; }
  .car__price { align-items: flex-start; }
  .car__divider { display: none; }
  .car__badge { top: 12px; right: 12px; padding: 6px 12px; }
  .slider__stage { height: calc(78vw * .625 + 150px); }
  .slider__nav, .slider__note { margin-right: 0; }
  .sell__grid { row-gap: 32px; }
  .sell__card { padding: 32px 20px; }
  .plate input { width: 28px; font-size: 26px; }
  .site-footer__col, .site-footer__col--wide { grid-column: span 6; }
}

@media (prefers-reduced-motion: reduce) {
  .kenburns { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Pre-paint hidden states (html.motion is removed by js/main.js) ── */
html.motion .reveal-up,
html.motion .reveal-title,
html.motion .linkblock__title,
html.motion .linkblock__media { opacity: 0; }
html.motion .reveal-clip { clip-path: inset(0 0 100% 0); }
