/* Photographic layer: original proportions, shared by grid, paddock and profile. */
.portrait-card { position:relative; display:block; max-width:none; min-width:0; padding:0; border:1px solid #36373c; background:#141519; overflow:hidden; text-decoration:none; }
.driver-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.portrait-card .portrait, .portrait-profile .portrait { position:relative; display:block; aspect-ratio:3/4; min-height:0; overflow:hidden; background:#151316; }
.portrait-card .portrait { width:100%; height:auto; }
.portrait .driver-photo { display:block; width:100%; height:100%; max-height:none; object-fit:contain; object-position:var(--photo-x,50%) var(--photo-y,50%); scale:var(--photo-zoom,100%); transform-origin:var(--photo-x,50%) var(--photo-y,50%); }
.portrait-card .portrait::after, .portrait-profile .portrait::after { content:""; position:absolute; inset:0; border:1px solid #ffffff0d; pointer-events:none; }
.portrait .portrait-tag { position:absolute; top:auto; bottom:14px; left:16px; color:#fff; background:#111a; padding:5px 8px; font:10px/1.3 var(--mono); letter-spacing:.16em; border-left:2px solid var(--red); }
.portrait-card .portrait-caption { padding:22px 24px; position:relative; }
.portrait-caption::before { content:""; position:absolute; top:0; left:24px; width:32px; height:3px; background:var(--red); transition:width .35s ease; }
.portrait-card h3 { font:700 clamp(30px,3vw,43px)/1 var(--display); text-transform:uppercase; margin:9px 0; overflow-wrap:normal; }
.portrait-card small { font:10px/1.4 var(--mono); letter-spacing:.15em; color:#c9c6c8; }
.portrait-card p { margin:8px 0; color:#b9b7bc; }
.portrait-card .profile-cta { display:flex; justify-content:space-between; align-items:center; margin-top:24px; color:#e2dfe2; font:12px/1.5 var(--mono); }
.profile-cta i { display:grid; place-items:center; width:32px; height:32px; border:1px solid #5d4448; color:#ff8b95; font-style:normal; }
.portrait-card:is(:hover,:focus-visible,:active) { border-color:#da4454; }
.portrait-card:is(:hover,:focus-visible,:active) .portrait-caption::before { width:calc(100% - 48px); }
.portrait-card:focus-visible { outline:2px solid #ff7a88; outline-offset:5px; }
.portrait-placeholder { width:100%; display:flex; flex-direction:column; justify-content:center; align-items:center; height:100%; background:repeating-linear-gradient(130deg,transparent 0 45px,#ffffff05 46px 47px),radial-gradient(ellipse at bottom,#61212c55,transparent 70%),#191a1e; }
.portrait-placeholder b { font:italic 700 clamp(100px,12vw,180px)/1 var(--display); color:#78747d; }
.portrait-placeholder span { letter-spacing:.25em; color:#a7a2ab; font:11px var(--mono); margin:20px 0 8px; }
.portrait-placeholder small { color:#b9b4be; font:12px var(--mono); letter-spacing:0; }
.paddock-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:24px; }
.paddock-grid .portrait-card h3 { font-size:clamp(26px,2.7vw,37px); }
.paddock-grid .portrait-caption { padding:20px; }
.paddock-grid .profile-cta { margin-top:20px; }
.driver-id.portrait-profile { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; padding:0; gap:0; background:radial-gradient(ellipse at right bottom,#4b172a55,transparent 65%),#141519; border:1px solid #35343a; overflow:hidden; }
.portrait-profile .portrait { width:100%; height:auto; max-width:570px; margin:0; }
.portrait-profile .driver-intro { padding:clamp(24px,4vw,64px); min-width:0; }
.portrait-profile h1 { font:700 clamp(64px,7.4vw,112px)/.88 var(--display); text-transform:uppercase; letter-spacing:-.025em; margin:28px 0 20px; overflow-wrap:normal; }
.driver-rule { width:64px; height:4px; background:var(--red); margin:32px 0; transform:skewX(-30deg); }
.driver-intro-copy { font-size:16px; line-height:1.6; color:#bdb8c0; }
.portrait-profile .driver-alias { font:italic 500 27px var(--display); color:#ef9aa5; }
.driver-collection-link { display:block; width:fit-content; padding:20px 0 0; font-size:13px; color:#ccc5ce; }
@media (prefers-reduced-motion:no-preference) {
  .portrait-card { transition:border-color .25s,box-shadow .25s; }
  .portrait-card:is(:hover,:focus-visible) { box-shadow:0 18px 36px #0004; }
  .driver-id .driver-intro { animation:portrait-title .8s cubic-bezier(.18,.7,.2,1) both; }
  .portrait-profile .portrait { animation:portrait-arrive .85s cubic-bezier(.18,.7,.2,1) both; }
  .driver-card[data-portrait-ready] { animation:none; transform:translate3d(0,var(--portrait-travel,0px),0) scale(var(--portrait-scale,1)); }
  .edition-pilotos .driver-card .portrait { animation:none; scale:none; translate:none; }
  @keyframes portrait-title { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:none; } }
  @keyframes portrait-arrive { from { clip-path:inset(0 8% 0 0); transform:translateX(-20px); } to { clip-path:inset(0); transform:none; } }
}
@media(max-width:1000px) { .paddock-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .driver-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .driver-id.portrait-profile { grid-template-columns:1fr; } .portrait-profile .portrait { max-width:none; width:100%; } .portrait-profile h1 { font-size:clamp(58px,13vw,90px); } .portrait-profile .driver-intro { padding:32px 24px 40px; } }
@media(max-width:560px) { .driver-grid,.paddock-grid { grid-template-columns:1fr; gap:24px; } .portrait-card h3,.paddock-grid .portrait-card h3 { font-size:38px; } .driver-grid .driver-card:only-child { display:block; max-width:none; } .driver-grid .driver-card:only-child .portrait { min-height:0; } }
