/* Original logo, photo gallery and motion enhancements. */
:root { --brand-blue: #006bc1; --brand-red: #c9000d; }
.site-header { background: #fff; transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 5px 24px #0000000d; }
.brand .brand-logo { width: 88px; height: 88px; object-fit: contain; flex-shrink: 0; }
.brand .brand-caption { font: 700 10px/1.65 Arial, sans-serif; letter-spacing: 1.7px; border-left: 1px solid #d9dcd5; padding-left: 17px; margin-left: 7px; }
nav { gap: 28px; }
.scroll-progress { position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: var(--brand-blue); transform: scaleX(var(--scroll-progress, 0)); transform-origin: left; pointer-events: none; }
.site-footer .brand-logo { width: 112px; height: 112px; background: white; }
.site-footer .brand-caption { display: none; }
.brand-ribbon { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: var(--paper); min-height: 98px; overflow: hidden; }
.ribbon-window { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 92%, transparent); }
.ribbon-track { display: flex; width: max-content; animation: ribbon-travel 36s linear infinite; }
.ribbon-track > span { flex-shrink: 0; padding-right: 32px; white-space: nowrap; font: 400 35px/1.2 var(--display); letter-spacing: .4px; color: #a0a698; }
.ribbon-track b { color: var(--brand-blue); font-size: 25px; font-weight: 400; padding-inline: 23px; }
.ribbon-window:hover .ribbon-track { animation-play-state: paused; }
.motion-toggle { flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 9px; width: 167px; align-self: stretch; border: 0; border-left: 1px solid var(--line); background: var(--paper); color: #616a57; font-size: 9px; padding: 12px; position: relative; z-index: 1; }
.motion-toggle > span:first-child { font-size: 17px; color: var(--brand-blue); }
.motion-toggle:hover { background: #e9ece2; }
.brand-showcase { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; padding-bottom: 106px; }
.brand-showcase figure { position: relative; margin: 0; height: 370px; overflow: hidden; }
.identity-frame { background: #fff; border: 1px solid #e0e3dc; }
.identity-frame img { display: block; width: 100%; height: calc(100% - 36px); object-fit: contain; padding: 22px; }
.identity-frame figcaption { text-align: center; color: #6b7461; font-size: 8px; letter-spacing: 1.4px; }
.garage-frame { background: #252824; }
.garage-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 73%; transition: transform .9s ease; }
.garage-frame:hover img { transform: scale(1.045); }
.garage-frame::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, #000a); pointer-events: none; }
.garage-frame figcaption { position: absolute; bottom: 25px; left: 28px; color: white; z-index: 1; font-size: 9px; letter-spacing: 1.5px; }
.gallery-section { background: #171a19; color: #f5f4ee; }
.gallery-section .section-description { color: #a5afa0; }
.gallery-section .section-footnote { color: #a5afa0; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 192px; gap: 14px; }
.gallery-card { min-width: 0; position: relative; border: 0; padding: 0; background: #292d28; color: white; overflow: hidden; text-align: left; }
.gallery-featured { grid-column: span 2; grid-row: span 2; }
.gallery-card::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #000b); pointer-events: none; transition: opacity .4s; }
.gallery-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1), filter .5s; }
.gallery-card:nth-child(2) img { object-position: center 33%; }
.gallery-card:nth-child(7) img { object-position: center 65%; }
.gallery-card:hover img, .gallery-card:focus-visible img { transform: scale(1.075); filter: brightness(1.08); }
.gallery-caption { position: absolute; z-index: 1; bottom: 19px; left: 19px; right: 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 11px; font-weight: 600; }
.gallery-featured .gallery-caption { bottom: 26px; left: 26px; right: 25px; font-size: 18px; }
.gallery-expand { font-size: 21px; line-height: 1; transition: transform .35s; }
.gallery-card:hover .gallery-expand { transform: translate(3px, -3px); }
.gallery-contact { display: flex; flex-direction: column; justify-content: space-between; background: #e5e9dd; color: var(--ink); padding: 21px; transition: background .3s; }
.gallery-contact > .icon { width: 23px; height: 23px; color: var(--brand-blue); }
.gallery-contact > span { font: 400 22px/1.05 var(--display); text-transform: uppercase; letter-spacing: -.3px; }
.gallery-contact small { display: flex; justify-content: space-between; gap: 10px; font-size: 7px; letter-spacing: 1px; }
.gallery-contact b { font-weight: 400; font-size: 18px; line-height: 1; }
.gallery-contact:hover { background: white; }
.photo-dialog { width: min(1100px, calc(100vw - 36px)); max-width: none; max-height: calc(100dvh - 30px); padding: 20px 24px; border: 1px solid #444c3d; background: #171a19; color: #f5f4ee; box-shadow: 0 25px 100px #0009; overflow: auto; }
.photo-dialog::backdrop { background: #090c09e8; backdrop-filter: blur(8px); }
.photo-dialog[open] { animation: viewer-open .3s ease both; }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 14px; border-bottom: 1px solid #3b4235; }
.viewer-toolbar p { font-size: 9px; letter-spacing: 1.8px; margin: 0; }
.viewer-close { display: flex; align-items: center; gap: 16px; border: 0; background: transparent; color: inherit; padding: 8px 4px; font-size: 11px; min-height: 44px; }
.viewer-close span { font-size: 28px; line-height: 1; }
.viewer-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 20px 0 16px; }
.viewer-stage figure { min-width: 0; margin: 0; }
.viewer-stage img { display: block; max-width: 100%; width: 100%; height: min(65dvh, 650px); object-fit: contain; transition: opacity .2s; }
.photo-dialog.is-loading .viewer-stage img { opacity: .25; }
.viewer-stage figcaption { padding-top: 14px; text-align: center; font-size: 13px; min-height: 35px; }
.viewer-prev, .viewer-next { width: 44px; height: 44px; border: 1px solid #4a5440; background: transparent; color: inherit; font-size: 22px; transition: background .25s; }
.viewer-prev:hover, .viewer-next:hover { background: #343d2b; }
.viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 15px; border-top: 1px solid #3b4235; }
.viewer-footer > span { font-size: 10px; color: #9ea990; letter-spacing: 1px; }
.viewer-quote { border: 0; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 11px; min-height: 44px; padding: 11px 18px; display: flex; align-items: center; gap: 30px; }
.viewer-quote span { font-size: 19px; line-height: 1; }

/* Motion is activated only after the enhancement script has initialized. */
.motion-ready .hero-photo { animation: hero-drift 22s ease-in-out infinite alternate; transform-origin: 65% 45%; }
.motion-ready .hero-copy > * { animation: hero-arrive .85s cubic-bezier(.2,.7,.2,1) both; }
.motion-ready .hero-copy > :nth-child(2) { animation-delay: .12s; }
.motion-ready .hero-copy > :nth-child(3) { animation-delay: .24s; }
.motion-ready .hero-copy > :nth-child(4) { animation-delay: .36s; }
.motion-ready .hero-copy > :nth-child(5) { animation-delay: .48s; }
.motion-ready .reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.motion-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.motion-ready .rank-row { animation: row-arrive .4s ease both; animation-delay: var(--row-delay, 0ms); }
.button { position: relative; overflow: hidden; }
.button::after { content: ''; position: absolute; top: -50%; left: -65%; width: 35%; height: 200%; background: linear-gradient(90deg, transparent, #fff5, transparent); transform: skewX(-25deg); pointer-events: none; }
.button:hover::after { animation: button-shine .65s ease; }
.button > span { transition: transform .3s; }
.button:hover > span { transform: translate(3px, -3px); }
.category:hover > svg { transform: translateY(-6px) rotate(-5deg); }
.motion-ready details[open] p { animation: row-arrive .3s ease both; }
.motion-ready .floating-whatsapp::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid #23744888; animation: contact-ring 4s ease-out infinite; pointer-events: none; }
.animations-paused *, .animations-paused *::before, .animations-paused *::after { animation-play-state: paused !important; }
.animations-paused .reveal { transition-delay: 0ms; }
.animations-paused .hero-copy > *, .animations-paused .rank-row, .animations-paused details[open] p, .animations-paused .photo-dialog[open] { animation: none !important; opacity: 1; transform: none; }
@keyframes ribbon-travel { to { transform: translateX(-50%); } }
@keyframes hero-drift { from { transform: scale(1.015); } to { transform: scale(1.075) translateX(-.5%); } }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@keyframes row-arrive { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes viewer-open { from { opacity: 0; transform: translateY(16px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes button-shine { to { left: 140%; } }
@keyframes contact-ring { 0%, 65% { transform: scale(1); opacity: 0; } 70% { opacity: .8; } 100% { transform: scale(1.65); opacity: 0; } }
@media(max-width:1100px) { nav { gap: 20px; }.brand .brand-caption { display: none; }.photo-grid { grid-auto-rows: 175px; }.gallery-caption { font-size: 10px; }.gallery-contact > span { font-size: 20px; }.brand-showcase { grid-template-columns: 1fr 1.2fr; }.brand-showcase figure { height: 330px; } }
@media(max-width:780px) {
  .brand .brand-logo { width: 71px; height: 71px; }
  .brand .brand-caption { display: block; font-size: 8px; padding-left: 12px; letter-spacing: 1.2px; }
  .brand-ribbon { min-height: 78px; }
  .ribbon-track > span { font-size: 28px; }
  .ribbon-track b { font-size: 20px; padding-inline: 16px; }
  .motion-toggle { width: 48px; }
  .motion-toggle-label { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
  .brand-showcase { gap: 17px; padding-bottom: 72px; }
  .brand-showcase figure { height: 280px; }
  .identity-frame img { padding: 15px; }
  .identity-frame figcaption { font-size: 6px; letter-spacing: .7px; }
  .garage-frame figcaption { left: 17px; bottom: 18px; font-size: 7px; letter-spacing: .7px; max-width: 160px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 195px; gap: 13px; }
  .gallery-featured { grid-row: span 2; }
  .gallery-featured .gallery-caption { font-size: 18px; }
  .gallery-caption { font-size: 12px; }
  .gallery-contact > span { font-size: 23px; }
  .gallery-contact small { font-size: 8px; }
  .photo-dialog { width: calc(100vw - 20px); padding: 13px; }
  .viewer-stage { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 4px; }
  .viewer-prev, .viewer-next { width: 36px; height: 44px; font-size: 18px; }
  .viewer-stage img { height: auto; max-height: 62dvh; }
  .viewer-stage figcaption { font-size: 11px; }
  .viewer-quote { font-size: 10px; gap: 15px; padding-inline: 12px; }
  .viewer-toolbar p { font-size: 8px; letter-spacing: 1px; }
  .site-footer .brand-logo { width: 118px; height: 118px; }
}
@media(max-width:480px) {
  .brand-showcase { grid-template-columns: 1fr; gap: 15px; padding-bottom: 61px; }
  .brand-showcase .identity-frame { height: 330px; }
  .brand-showcase .garage-frame { height: 300px; }
  .identity-frame img { padding: 18px; }
  .identity-frame figcaption { font-size: 8px; letter-spacing: 1px; }
  .garage-frame img { object-position: center 70%; }
  .garage-frame figcaption { font-size: 8px; max-width: none; }
  .photo-grid { grid-auto-rows: 170px; gap: 10px; }
  .gallery-card:not(.gallery-featured) .gallery-caption { left: 12px; right: 12px; bottom: 12px; font-size: 10px; gap: 7px; }
  .gallery-expand { font-size: 18px; }
  .gallery-featured .gallery-caption { left: 20px; right: 20px; bottom: 20px; font-size: 16px; }
  .gallery-contact { padding: 16px; }
  .gallery-contact > span { font-size: 20px; }
  .gallery-contact small { font-size: 6px; letter-spacing: .5px; }
  .viewer-footer { gap: 8px; }.viewer-footer > span { font-size: 9px; }
}
@media(prefers-reduced-motion:reduce) {
  .motion-toggle { display: none; }
  .motion-ready .reveal:not(.is-visible) { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
