/* REDFORD transformation layer: source Truck’N Roll component/runtime CSS remains primary. */
:root {
  --color-accent: #b91321;
  --color-purple: #b91321;
  --redford-purple: #b91321;
  --redford-red: #b91321;
}

.redford-i18n { display: contents; }
.c-header_logo .redford-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.c-header_logo .c-icon {
  width: clamp(5.25rem, -.9674rem + 31.087vw, 23.125rem);
  height: calc(clamp(5.25rem, -.9674rem + 31.087vw, 23.125rem) * 296 / 370);
}
/* R18: the language state lives beside—never on top of—the canonical brand link. */
.redford-brand-tools { display: flex; align-items: flex-start; justify-content: flex-end; gap: clamp(.55rem, 1.1vw, 1rem); }
.redford-brand-tools .c-header_logo { margin-left: 0; }
.redford-language-toggle {
  appearance: none; box-sizing: border-box; display: inline-grid; place-items: center;
  flex: 0 0 auto; min-width: 2.75rem; min-height: 2.75rem; margin: 0;
  padding: .45rem .55rem; border: 1px solid currentColor; border-radius: 999px;
  color: inherit; background: transparent; font: 700 .72rem/1 var(--font-sans, Arial, sans-serif);
  letter-spacing: .08em; cursor: pointer;
}
.redford-language-toggle:hover { background: currentColor; color: var(--color-background, #131313); }
.redford-language-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.c-modal-contact .redford-language-toggle--modal { position: fixed; z-index: var(--z-index-above); top: 22px; right: 82px; color: #fff; }
@media (max-width: 699px) {
  .redford-brand-tools { gap: .45rem; }
  .redford-language-toggle { min-width: 2.5rem; min-height: 2.5rem; font-size: .68rem; }
  .c-modal-contact .redford-language-toggle--modal { top: 18px; right: 68px; }
}
@media (min-width: 1000px) {
  .c-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .c-hero_col { min-width: 0; }
  main > section:nth-of-type(2) { min-height: 736.734375px; }
}
@media (max-width: 999px) {
  .c-hero { min-height: 577.828125px; }
  main > section:nth-of-type(2) { min-height: 801.296875px; }
  main > section:nth-of-type(3) { min-height: 1925.390625px; }
}
.c-footer .redford-logo, .c-rail .redford-logo {
  width: clamp(9rem, 18vw, 19rem);
  max-height: .72em;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.c-footer_inner,
.c-footer .c-rail { background-color: var(--redford-red); }
/* Retain source visual slots while truthful supplied media takes their role. */
.c-image_img { object-fit: cover; }
.c-image.-lazy-load, .c-image_img,
.c-image_parallax { opacity: 1 !important; }

/* Source sprite was not part of the archive. Recreate functional glyphs, not branding. */
.svg-arrow-right, .svg-arrow-external, .svg-plus, .svg-minus, .svg-close { display: none; }
.c-card-cta_link .c-icon::before,
.c-button_icon::before { content: "→"; font: inherit; line-height: 1; }
.c-accordion_icon-container::before { content: "+"; font: inherit; font-size: 1.3em; }
details[open] .c-accordion_icon-container::before { content: "−"; }

/* Contact authority: source modal mechanics, screenshot-locked placement and treatment. */
.c-modal-contact {
  --modal-color: #fff;
  --modal-margin: 14px;
  --modal-background-opacity: 18%;
  --modal-background-color: #d7d7d7;
}
.c-modal-contact.modal::before {
  background: rgba(214, 214, 214, .78);
  -webkit-backdrop-filter: blur(14px) saturate(.55);
  backdrop-filter: blur(14px) saturate(.55);
}
.c-modal-contact .modal_container {
  background: transparent;
  border-radius: 0;
}
.c-modal-contact .modal_close {
  all: unset;
  box-sizing: border-box;
  position: fixed;
  top: 24px;
  right: 31px;
  width: 33px;
  height: 39px;
  z-index: var(--z-index-above);
  color: #fff;
  cursor: pointer;
  transform: none !important;
}
.c-modal-contact .modal_close:focus,
.c-modal-contact .modal_close:focus-visible {
  outline: none;
  box-shadow: none;
}
.c-modal-contact .modal_close .c-button_inner,
.c-modal-contact .modal_close .c-button_icon {
  all: unset;
  box-sizing: border-box;
  width: 33px;
  height: 39px;
  display: block;
  position: relative;
  background: transparent !important;
}
.c-modal-contact .modal_close .c-button_icon::before,
.c-modal-contact .modal_close .c-button_icon::after {
  content: "";
  width: 33px;
  height: 1.25px;
  position: absolute;
  left: 0;
  top: 19px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}
.c-modal-contact .modal_close .c-button_icon::after { transform: rotate(-45deg); }
.nojs-modal-close {
  position: fixed;
  z-index: 2;
  top: clamp(1rem, 3.2vw, 2.2rem);
  right: clamp(1rem, 2.7vw, 2.2rem);
  width: 2rem;
  height: 2rem;
  color: #fff;
  font-size: 2.5rem;
  line-height: .7;
  text-align: center;
}
.c-modal-contact_container { align-items: flex-end; justify-content: flex-end; }
.c-modal-contact_nav {
  width: calc(50vw - 20px);
  max-width: none !important;
  transform: translateY(4px);
}
.c-modal-contact_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  gap: 16px;
}
.c-modal-contact_card { grid-row: span 2; grid-template-rows: subgrid; }
.c-card-cta {
  background: var(--redford-red);
  border-radius: .45rem;
  overflow: hidden;
  min-height: clamp(13.5rem, 27vh, 16rem);
}
.c-card-cta::before { padding-top: 74.9271%; }
.c-card-cta_inner { padding: .42rem; }
.c-card-cta_head { padding-bottom: 2rem; gap: .75rem; }
.c-card-cta_link {
  min-height: 3.25rem;
  background: rgba(19,19,19,.19);
  border-radius: .2rem;
  padding: .55rem .65rem;
}
.c-card-cta_item + .c-card-cta_item::after {
  content: "";
  height: 1px;
  background: rgba(255,255,255,.16);
  position: absolute;
  left: .5rem;
  right: .5rem;
  top: -.15rem;
}

.c-modal-contact:not(.is-active):not(.is-open) { pointer-events: none; }
.c-modal-contact.is-active, .c-modal-contact.is-open { visibility: visible; pointer-events: auto; }
.c-modal-contact.is-active::before, .c-modal-contact.is-open::before { opacity: 1; }
.c-modal-contact.is-active .modal_container, .c-modal-contact.is-open .modal_container { opacity: 1; }
.c-modal-contact.is-active .c-modal-contact_card, .c-modal-contact.is-open .c-modal-contact_card { transform: translate3d(0,0,0); }
body.modal-open { overflow: hidden; }
body.modal-open > #swup { pointer-events: none; user-select: none; }
/* The source custom-element host sits above its descendants in hit testing. Keep its backdrop inert and re-enable the actual contact controls. */
.c-modal-contact.is-active, .c-modal-contact.is-open { pointer-events: none; }
.c-modal-contact.is-active .modal_container, .c-modal-contact.is-open .modal_container,
.c-modal-contact.is-active .modal_close, .c-modal-contact.is-open .modal_close { pointer-events: auto; }

.nojs-contact {
  position: fixed;
  z-index: 30;
  right: .75rem;
  bottom: .75rem;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--redford-red);
  border-radius: .25rem;
}
.redford-cookie-dialog {
  width: min(30rem, calc(100vw - 2rem));
  margin: auto;
  padding: 0;
  color: #fff;
  background: var(--redford-red);
  border: 0;
  border-radius: .5rem;
}
.redford-cookie-dialog::backdrop {
  background: rgba(210,210,210,.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.redford-cookie-dialog_inner { display: grid; gap: 1.5rem; padding: 1rem; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.c-card-cta_link:focus-visible { outline-color: #fff; outline-offset: -4px; }

/* R6 pricing: small qualifiers stay inline; duration is an external metadata line. */
.redford-scope-copy { grid-column: 1 / -1; margin-top: .6rem; font-weight: 700; }
.redford-price { white-space: nowrap; display: inline-flex; align-items: baseline; gap: .14em; }
.redford-price_from, .redford-price_currency { font: 700 .42em/1 var(--font-sans, sans-serif); letter-spacing: .01em; }
.redford-price_from { text-transform: lowercase; }
.redford-duration { margin-top: .35rem; opacity: .68; }
.redford-price_name { margin-top: .25rem; font-weight: 700; }
@media (max-width: 699px) {
  .c-modal-contact { --modal-margin: .55rem; }
  .c-modal-contact_nav { width: min(92vw, 30rem); }
  .c-modal-contact_list {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: .5rem;
  }
  .c-modal-contact_card { grid-row: auto; display: block; }
  .c-card-cta { min-height: 10rem; }
  .c-card-cta::before { display: none; }
  .c-card-cta_inner { min-height: 10rem; grid-template-rows: 1fr auto; }
  .c-card-cta_head { padding-bottom: 1.25rem; }
  .c-card-cta_link { min-height: 2.7rem; }
  .c-modal-contact:not(.is-active):not(.is-open) .c-modal-contact_card {
    transform: translate3d(calc(100% + 1rem),0,0);
  }
}

@media (scripting: none) {
  .c-transition { display: none !important; }
  [data-scroll], .inview-border, .c-list_item, .c-hero_title_line,
  .c-grid-list_item, .c-heading-media_line-container, .c-pre-footer_content,
  .c-footer, .c-image, .c-image_img { opacity: 1 !important; visibility: visible !important; transform: none !important; }
  c-rail .c-rail_container { transform: none !important; }
  .contact-direct .c-modal-contact { visibility: visible !important; opacity: 1 !important; pointer-events: auto; }
  .contact-direct .c-modal-contact .modal_close { display: none !important; }
  .contact-direct .c-modal-contact::before,
  .contact-direct .c-modal-contact .modal_container { opacity: 1 !important; }
  .contact-direct .c-modal-contact_card { transform: none !important; }
}
/* Rails, parallax and inactive contact cards are clipped at their owning scene boundaries—not globally. */
.c-rail, .c-footer_rails { overflow: clip; }
html[data-redford-page="culture"] .c-hero,
html[data-redford-page="contact"] .c-heading-media { overflow: clip; }
.c-modal-contact:not(.is-active) { overflow: hidden; }
@media (max-width: 339px) {
  /* Keep the culture caption's real glyph bounds inside the 320px composition. */
  html[data-redford-page="culture"] .c-huge-caption_text { font-size: 98%; }
}

/* Home no-JS fallback: clip the animated footer rail at its own scene boundary. */
html[data-redford-page="home"]:not(.redford-js) .c-footer_rails { overflow: hidden; }

/* Normal touch is a vertical-scroll motion story, not the source's inert touch fallback.
   Geometry stays owned by the archived scene boxes; only compositor-safe child surfaces move. */
@media (max-width: 699px) {
  html[data-motion="normal-touch"] .c-hero { overflow: clip; }
  html[data-motion="normal-touch"] .c-hero_title_line > span,
  html[data-motion="normal-touch"] .c-hero_image .c-image_parallax,
  html[data-motion="normal-touch"] main > section:nth-of-type(2) .inview-border,
  html[data-motion="normal-touch"] .c-heading-media_line > div:first-child,
  html[data-motion="normal-touch"] .c-heading-image_line-image .c-image_img { will-change: transform, opacity, clip-path; transition: none; }

  /* Beat 1: the first scroll decisively opens the title and uncovers its image plane. */
  html[data-motion="normal-touch"] .c-hero_title_line > span { display: inline-block; opacity: calc(.72 + var(--rf-hero-progress, 0) * .28); transform: translate3d(0, calc((1 - var(--rf-hero-progress, 0)) * 1.2rem), 0); }
  html[data-motion="normal-touch"] .c-hero_title_line:nth-child(2) > span { transition-delay: 35ms; }
  html[data-motion="normal-touch"] .c-hero_title_line:nth-child(3) > span { transition-delay: 70ms; }
  html[data-motion="normal-touch"] .c-hero_title_line:nth-child(4) > span { transition-delay: 105ms; }
  html[data-motion="normal-touch"] .c-hero_image .c-image_parallax { clip-path: inset(0 calc((1 - var(--rf-hero-progress, 0)) * 18%) 0 0); transform: translate3d(0, calc((1 - var(--rf-hero-progress, 0)) * .75rem), 0); }

  /* Beat 2: the scope handoff arrives as one curtain, not a stack of fade-ups. */
  html[data-motion="normal-touch"] main > section:nth-of-type(2) { overflow: clip; }
  html[data-motion="normal-touch"] main > section:nth-of-type(2) .inview-border { opacity: calc(.24 + var(--rf-scope-progress, 0) * .76); clip-path: inset(0 calc((1 - var(--rf-scope-progress, 0)) * 38%) 0 0); transform: translate3d(0, calc((1 - var(--rf-scope-progress, 0)) * 1.1rem), 0); }
  html[data-motion="normal-touch"] main > section:nth-of-type(2) .redford-static-media-frame .c-image_img { transform: scale(calc(.965 + var(--rf-scope-progress, 0) * .035)); transform-origin: center; }

  /* Beat 3: MY/RUCH/UI/WWW retains source geometry while a scroll-led reading sequence resolves. */
  html[data-motion="normal-touch"] main > section:nth-of-type(3) { overflow: clip; }
  html[data-motion="normal-touch"] .c-heading-media_line > div:first-child { --rf-line: clamp(0, calc(var(--rf-process-progress, 0) * 1.55 - var(--rf-line-delay, 0)), 1); opacity: calc(.16 + var(--rf-line) * .84); transform: translate3d(calc((1 - var(--rf-line)) * -1.35rem), 0, 0); }
  html[data-motion="normal-touch"] .c-heading-media_line-container:nth-child(1) .c-heading-media_line { --rf-line-delay: 0; }
  html[data-motion="normal-touch"] .c-heading-media_line-container:nth-child(2) .c-heading-media_line { --rf-line-delay: .17; }
  html[data-motion="normal-touch"] .c-heading-media_line-container:nth-child(3) .c-heading-media_line { --rf-line-delay: .34; }
  html[data-motion="normal-touch"] .c-heading-media_line-container:nth-child(4) .c-heading-media_line { --rf-line-delay: .51; }
  html[data-motion="normal-touch"] .c-heading-image_line-image { overflow: hidden; }
  html[data-motion="normal-touch"] .c-heading-image_line-image .c-image_img { clip-path: inset(0 calc((1 - clamp(0, calc(var(--rf-process-progress, 0) * 1.45 - .16), 1)) * 100%) 0 0); transform: scale(calc(.96 + clamp(0, calc(var(--rf-process-progress, 0) * 1.45 - .16), 1) * .04)); transform-origin: left center; }

  /* Tactile feedback confirms presses/media without taking over touch navigation. */
  html[data-motion="normal-touch"] .c-nav_link, html[data-motion="normal-touch"] .c-card-cta_link { transition: transform 150ms ease, filter 150ms ease; }
  html[data-motion="normal-touch"] .c-nav_link[data-touch-pressed="true"], html[data-motion="normal-touch"] .c-card-cta_link[data-touch-pressed="true"] { transform: scale(.965); filter: brightness(.9); }
  html[data-motion="normal-touch"] .redford-touch-media-active .c-image_img, html[data-motion="normal-touch"] .redford-touch-media-active.c-heading-image_line-image { filter: brightness(.82) contrast(1.06); }
}
