/* Deliveries: "Real steel. Real yard. Real delivery." Black type hero with cutouts (no AI photo under the slogan), shop photo grid, delivery log, CTA. */

/* Section head (shared pattern on yard pages) */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head .lead { color: var(--ink-2); }
.mark { background: linear-gradient(transparent 58%, var(--y) 58%, var(--y) 92%, transparent 92%); padding-inline: .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Hero: black, big type left, overlapping cutouts right (no AI photo under the slogan) ---------- */
.yhero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 5vw, 72px); }
.yhero::before { content: ""; position: absolute; right: -10%; top: 0; bottom: 0; z-index: -1; width: 48%; background: var(--k-2); transform: skewX(-24deg); }
.yhero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--y); } /* solid rule */
.yhero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: center; }
.yhero .crumbs { color: var(--on-k); }
.yhero h1 { margin-top: 18px; color: var(--w); font-size: clamp(2.3rem, 4.6vw, 4.8rem); }
.yhero h1 > * { display: block; }
.yhero h1 em { font-style: normal; color: var(--y); }
.yhero .lead { margin-top: 18px; color: #dcdcdc; }
.ystage { position: relative; aspect-ratio: 1; }
.ystage .cutout { position: absolute; filter: drop-shadow(0 26px 22px rgba(0,0,0,.75)); }
.ystage .s1 { width: 72%; left: 0; top: 8%; transform: rotate(-8deg); }
.ystage .s2 { width: 50%; right: 0; top: 0; }
.ystage .s3 { width: 38%; right: 12%; bottom: 0; transform: rotate(-10deg); z-index: 1; }
.ystage .xmarks { position: absolute; left: -6%; bottom: 10%; color: var(--y); font-size: clamp(34px, 3.4vw, 48px); }
.ystage .xmarks i:nth-child(2) { color: var(--w); }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .yhero-copy > * { animation: yup .7s var(--ease) both; }
  .yhero-copy > :nth-child(3) { animation-delay: .08s; }
  .yhero-copy > :nth-child(4) { animation-delay: .16s; }
  .yhero-copy > :nth-child(5) { animation-delay: .24s; }
  .ystage .cutout { animation: yin .8s .2s var(--ease) both; }
  .ystage .s2 { animation-delay: .32s; }
  .ystage .s3 { animation-delay: .44s; }
}
@keyframes yup { from { transform: translateY(18px); } }  /* transform only: text and cutouts count for LCP at first paint */
@keyframes yin { from { translate: 0 28px; } }

/* ---------- Shop photo grid ---------- */
.ygrid { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ycard--big { grid-row: span 2; }
.ycard a { position: relative; display: block; height: 100%; min-height: 240px; border-radius: var(--r); overflow: hidden; background: var(--k); color: var(--w); text-decoration: none; }
.ycard img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.ycard a:hover img { transform: scale(1.04); }
.ybar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 8px 8px 16px; border-radius: var(--r-s); background: var(--k); }
.ybar b { font: 900 clamp(.86rem, 1.2vw, 1rem)/1.1 var(--f-display); font-stretch: 115%; text-transform: uppercase; }
.ybar > span { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 38px; padding: 0 12px; border-radius: 8px; background: var(--y); color: var(--k); font: 800 .74rem var(--f-display); font-stretch: 110%; text-transform: uppercase; letter-spacing: .03em; transition: background .2s; }
.ycard a:hover .ybar > span { background: var(--w); }
.ycard a:focus-visible { outline-offset: 4px; }
.ytag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(20,20,20,.82); color: var(--w); font: 700 .72rem var(--f-body); letter-spacing: .04em; }

/* ---------- Delivery log ---------- */
.dfeed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.dfeed:empty { display: none; }
.dcard { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--w); box-shadow: 0 10px 24px -16px rgba(0,0,0,.5); }
.dcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dcard > div { display: grid; gap: 4px; padding: 14px 16px 16px; }
.dcard b { font: 900 1rem var(--f-display); font-stretch: 115%; text-transform: uppercase; }
.dcard .q { color: var(--ink-3); }
.dcard .city { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.dcard time { color: var(--ink-3); font-size: .86rem; }
.dcard .ok { display: none; }
.dcard.is-done .ok { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: #e3f3e7; color: var(--ok); font-weight: 800; font-size: .82rem; }

.dempty { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 28px; padding: clamp(22px, 3vw, 36px); border: 3px solid var(--k); border-radius: var(--r); background: var(--w); box-shadow: 8px 8px 0 var(--y); }
.dempty > i { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--y); font-size: 40px; }
.dempty p { margin-top: 8px; max-width: 52ch; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta .phones { justify-content: flex-start; }
/* AI model cutout standing on the CTA band's bottom edge, right of the phone pair */
.dmodel { position: absolute; bottom: 0; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); height: 92%; width: auto; pointer-events: none; filter: drop-shadow(0 16px 18px rgba(0,0,0,.28)); }

@media (max-width: 900px) {
  .dmodel { height: 230px; }
  .yhero .wrap { grid-template-columns: minmax(0, 1fr); }
  .ystage { width: 100%; max-width: 420px; margin: 8px auto 0; }
  .ygrid { grid-template-columns: 1fr; grid-template-rows: none; }
  .ycard--big { grid-row: auto; }
  .ycard a { aspect-ratio: 16 / 10; min-height: 0; }
  .dfeed { grid-template-columns: 1fr 1fr; }
  .dempty { grid-template-columns: auto 1fr; }
  .dempty .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  .dmodel { height: 210px; right: 8px; }
  .yhero { padding-top: 32px; }
  .ystage .xmarks { display: none; }
  .ystage { max-width: 320px; }
  .yhero .phead-acts .btn { flex: 1 1 100%; }
  .dfeed { grid-template-columns: 1fr; }
  .dempty { grid-template-columns: 1fr; }
  .dempty > i { width: 60px; height: 60px; font-size: 32px; }
  .ybar { left: 8px; right: 8px; bottom: 8px; }
}
@media (max-width: 360px) { .dmodel { display: none; } }
