:root{--menu-count:6}
/* Proposed mobile navigation. Layout values belong to the menu;
   font identity and type scales come from each skin's existing title role. */
@media (max-width:63.99em){
  :root{
    --menu-size:clamp(1.875rem, min(11.8vw, calc(33svh / var(--menu-count, 6))), 3.5rem);
    --menu-leading:1.08;
    --menu-inset:var(--margin);
    --menu-row-pad:clamp(0.35rem, 1.05svh, 0.65rem);
    --menu-index-width:2rem;
    --menu-index-size:0.625rem;
    --menu-content-max:30rem;
    --menu-footer-gap:clamp(1.15rem, 3.5svh, 2.75rem);
    --menu-bottom:clamp(1.15rem, 5svh, 2.75rem);
    --menu-rise:0.7rem;
    --menu-arrive:0.55s;
    --menu-stagger:0.045s;
    --menu-nudge:0.3rem;
    --menu-arrow:0.8rem;
  }
}
/* Phones (Rodrigo, 2026-10-02): the section links a little larger. The
   height share grows from 33 to 40% of the screen, so a phone whose
   browser bars shorten the screen no longer shrinks them. */
@media (max-width:39.999em){
  :root{
    --menu-size:clamp(2rem, min(11.8vw, calc(40svh / var(--menu-count, 6))), 3.5rem);
    --menu-arrive:0.85s;   /* was .55s: the links rise more slowly */
  }
  /* The panel fades in more slowly, and the links follow one another at a
     calmer interval (header.css sets .06s steps). */
  .nav[data-open="true"][data-enhanced="true"]{ transition:opacity .65s var(--ease), visibility 0s }
  .nav[data-open="true"][data-enhanced="true"] li:nth-child(1){ --d:.1s }
  .nav[data-open="true"][data-enhanced="true"] li:nth-child(2){ --d:.18s }
  .nav[data-open="true"][data-enhanced="true"] li:nth-child(3){ --d:.26s }
  .nav[data-open="true"][data-enhanced="true"] li:nth-child(4){ --d:.34s }
  .nav[data-open="true"][data-enhanced="true"] li:nth-child(5){ --d:.42s }
  .nav[data-open="true"][data-enhanced="true"] li:nth-child(6){ --d:.5s }
  .nav[data-open="true"][data-enhanced="true"] li:nth-child(7){ --d:.58s }
  .nav[data-open="true"][data-enhanced="true"] li:nth-child(8){ --d:.66s }
  .nav[data-open="true"][data-enhanced="true"] .social--nav{ --d:.74s }
}

/* Mobile header: one left edge for the identity and skin switch.
   The wordmark and menu control share the first row's centre line. */
@media (max-width:63.99em){
  .header__bar{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    grid-template-areas:"brand toggle" "skins skins";
    gap:0 var(--space-3);
  }
  .wordmark{ grid-area:brand; justify-self:start }
  .menu-btn{ grid-area:toggle; justify-self:end }
  .lanes{
    grid-area:skins;
    justify-content:flex-start;
    margin:0;
  }
  /* Keep the no-JavaScript link list in a full-width row. */
  .nav{ grid-column:1 / -1 }
}

/* Keep all seven section links and both social links inside narrow laptops. */
@media (min-width:64em){
  .nav__list{ gap:clamp(var(--space-2), calc(5vw - 2.5rem), var(--space-4)) }
}

/* The existing fullscreen shell and click/Escape handling stay in use.
   Decorative numbering is hidden from assistive technology and on desktop. */
.nav__index{ display:none }

@media (max-width:63.99em){
  .nav[data-enhanced="true"]{
    padding:var(--space-3) var(--menu-inset) max(var(--menu-bottom), env(safe-area-inset-bottom));
  }
  .nav[data-enhanced="true"] .nav__inner{
    width:100%;
    max-width:var(--menu-content-max);
    margin-inline:auto;
  }
  .nav[data-enhanced="true"] .nav__list{
    gap:0;
    padding:0 0 var(--menu-footer-gap);
  }
  .nav[data-enhanced="true"] .nav__list > li{
    border-bottom:var(--hairline) solid var(--rule);
  }
  .nav[data-enhanced="true"] .nav__list > li:last-child{ border-bottom:0 }
  .nav[data-enhanced="true"] .nav__link{
    position:relative;
    font-family:var(--type-title-family);
    font-weight:var(--type-title-weight);
    font-size:calc(var(--menu-size) * var(--type-title-scale));
    letter-spacing:var(--type-title-tracking);
    line-height:calc(var(--menu-leading) * var(--type-title-leading-scale));
    font-optical-sizing:var(--type-title-optical);
    padding-block:var(--menu-row-pad);
    min-height:var(--tap);
  }
  .nav[data-enhanced="true"] .nav__index{
    display:inline-block;
    width:var(--menu-index-width);
    flex:none;
    color:var(--ink-meta);
    font-family:var(--type-label-family);
    font-size:var(--menu-index-size);
    font-weight:var(--type-label-weight);
    letter-spacing:var(--type-label-tracking);
    font-variant-numeric:tabular-nums;
  }
  .nav[data-enhanced="true"] .nav__label::after{ display:none }
  .nav[data-enhanced="true"] .nav__label{
    transition:transform var(--quick) var(--ease-out);
  }
  .nav[data-enhanced="true"] .nav__link::after{
    content:'';
    flex:none;
    margin-left:auto;
    margin-right:var(--space-1);
    width:var(--menu-arrow);
    height:var(--menu-arrow);
    border-top:var(--hairline) solid currentColor;
    border-right:var(--hairline) solid currentColor;
    transform:rotate(45deg);
    opacity:0;
    transition:opacity var(--quick) var(--ease);
  }
  .nav[data-enhanced="true"] .nav__link[aria-current="location"]::after,
  .nav[data-enhanced="true"] .nav__link:focus-visible::after{ opacity:1 }
  .nav[data-enhanced="true"] .nav__link:focus-visible .nav__label{
    transform:translateX(var(--menu-nudge));
  }
  .nav[data-enhanced="true"] .social--nav{
    border:0;
    padding-top:0;
  }
  @media (hover:hover){
    .nav[data-enhanced="true"] .nav__link:hover .nav__label{
      transform:translateX(var(--menu-nudge));
    }
    .nav[data-enhanced="true"] .nav__link:hover::after{ opacity:1 }
  }
  @media (prefers-reduced-motion:no-preference){
    .nav[data-enhanced="true"] .nav__list li,
    .nav[data-enhanced="true"] .social--nav{
      filter:none;
      transform:translateY(var(--menu-rise));
    }
    .nav[data-open="true"][data-enhanced="true"] .nav__list li,
    .nav[data-open="true"][data-enhanced="true"] .social--nav{
      filter:none;
      transform:none;
      transition:opacity var(--menu-arrive) var(--ease-out) var(--d, 0s),
                 transform var(--menu-arrive) var(--ease-out) var(--d, 0s);
    }
  }
  @media (prefers-reduced-motion:reduce){
    .nav[data-enhanced="true"],
    .nav[data-open="true"][data-enhanced="true"],
    .nav[data-enhanced="true"] .nav__label,
    .nav[data-enhanced="true"] .nav__link::after{ transition:none }
    .nav[data-enhanced="true"] .nav__link .nav__label{ transform:none }
  }
  /* A phone turned sideways retains full-size tap targets in two columns.
     Column flow preserves the vertical reading order of the menu. */
  @media (max-height:30em) and (min-width:36em){
    .nav[data-enhanced="true"] .nav__inner{ max-width:none }
    .nav[data-enhanced="true"] .nav__list{
      display:grid;
      grid-auto-flow:column;
      grid-template-rows:repeat(4, auto);
      grid-template-columns:repeat(2, minmax(0, 1fr));
      align-content:end;
      column-gap:var(--space-4);
    }
    .nav[data-enhanced="true"] .nav__list > li:nth-child(4){ border-bottom:0 }
  }
}

@media (max-width:63.99em) and (prefers-reduced-motion:no-preference){
  .nav[data-open="true"][data-enhanced="true"] .nav__list > [data-menu-order="1"]{ --d:calc(var(--menu-stagger) * 1) }
  .nav[data-open="true"][data-enhanced="true"] .nav__list > [data-menu-order="2"]{ --d:calc(var(--menu-stagger) * 2) }
  .nav[data-open="true"][data-enhanced="true"] .nav__list > [data-menu-order="3"]{ --d:calc(var(--menu-stagger) * 3) }
  .nav[data-open="true"][data-enhanced="true"] .nav__list > [data-menu-order="4"]{ --d:calc(var(--menu-stagger) * 4) }
  .nav[data-open="true"][data-enhanced="true"] .nav__list > [data-menu-order="5"]{ --d:calc(var(--menu-stagger) * 5) }
  .nav[data-open="true"][data-enhanced="true"] .nav__list > [data-menu-order="6"]{ --d:calc(var(--menu-stagger) * 6) }
  .nav[data-open="true"][data-enhanced="true"] .social--nav{ --d:calc(var(--menu-stagger) * 7) }
}

:root { --brand-wordmark-aspect: 1286 / 233; --brand-wordmark-mask: url("https://media.rodrigorabaco.com/clients/rodrigo-rabaco/logos/rodrigo-rabaco-wordmark-modern-02-v01-1286w.webp"); }
/* Shared brand trial: identity artwork has its own size, independent of skin fonts.
   The SVG displays the selected raster through a luminance filter; its
   viewBox removes presentation margins without redrawing the lettering. */
:root {
  --brand-wordmark-width: clamp(9rem, 12vw, 10rem);
  --brand-wordmark-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --brand-wordmark-size: clamp(1.25rem, 1rem + .5vw, 1.4rem);
  --brand-wordmark-weight: 300;
  --brand-wordmark-tracking: -.025em;
  --brand-wordmark-case: lowercase;
}
/* Phones (Rodrigo, 2026-10-02): the wordmark reads larger. */
@media (max-width: 39.999em) {
  :root { --brand-wordmark-width: 10.5rem; }
}
.wordmark[data-brand] {
  flex: 0 0 auto;
}
.brand-wordmark {
  display: block;
  width: var(--brand-wordmark-width);
}
.brand-wordmark--art {
  aspect-ratio: var(--brand-wordmark-aspect);
  background: currentColor;
  -webkit-mask: var(--brand-wordmark-mask) center / contain no-repeat;
  mask: var(--brand-wordmark-mask) center / contain no-repeat;
}
.brand-wordmark--text {
  font-family: var(--brand-wordmark-family);
  font-size: var(--brand-wordmark-size);
  font-weight: var(--brand-wordmark-weight);
  letter-spacing: var(--brand-wordmark-tracking);
  text-transform: var(--brand-wordmark-case);
  line-height: 1;
  font-style: normal;
}
@media (forced-colors: active) {
  .wordmark[data-brand] .brand-wordmark { display: none; }
  .wordmark[data-brand] .visually-hidden {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    overflow: visible;
  }
}

:root{
  --breadcrumb-height:var(--tap);
  --breadcrumb-gap:var(--space-2);
  --breadcrumb-size:var(--step-label);
  --breadcrumb-leading:1.35;
  --breadcrumb-tracking:0.035em;
  --breadcrumb-pad:var(--space-1);
}

.breadcrumbs{
  min-width:0;
  font-family:var(--type-label-family);
  font-size:calc(var(--breadcrumb-size) * var(--type-label-scale));
  font-weight:var(--type-label-weight);
  line-height:calc(var(--breadcrumb-leading) * var(--type-label-leading-scale));
  letter-spacing:var(--breadcrumb-tracking);
  color:var(--ink-meta);
}
.breadcrumbs--page{
  display:flex;
  align-items:center;
  min-height:var(--breadcrumb-height);
  padding-block:var(--breadcrumb-pad);
}
.breadcrumbs--page[data-breadcrumb-kind="home"]{ display:none }
.breadcrumbs__list{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0 var(--breadcrumb-gap);
  list-style:none;
  padding:0;
  margin:0;
  min-width:0;
}
.breadcrumbs__item{
  display:flex;
  align-items:center;
  gap:var(--breadcrumb-gap);
  min-width:0;
  max-width:100%;
}
.breadcrumbs__separator{ flex:none; color:var(--ink-faint) }
.breadcrumbs__link,
.breadcrumbs__current{
  display:inline-flex;
  align-items:center;
  min-height:var(--tap-min);
  overflow-wrap:anywhere;
}
.breadcrumbs__link{ color:var(--ink-meta) }
.breadcrumbs__current{ color:var(--ink); min-width:0 }
.breadcrumbs__link:hover,
.breadcrumbs__link:focus-visible{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-thickness:var(--hairline);
  text-underline-offset:var(--space-1);
}
/* Project trails belong to the first-screen budget, just like the header. */
@media (min-width:64em){
  :root[data-page="case"] .case-hero__screen{
    min-height:calc(100svh - var(--header-h) - var(--breadcrumb-height));
  }
}
.breadcrumbs--panel{
  flex:1;
  padding-block:var(--breadcrumb-pad);
}
.breadcrumbs--panel .lightbox__name{ color:var(--ink) }

/* Keep image gestures from opening supported mobile save callouts. */
img, picture {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

[data-focus="product/services/03-service-brand-strategy-matched"]{--focus:50% 65%}
[data-focus="product/services/00-argyle-floor-lamps"]{--focus:50% 50%}
[data-focus="product/services/00-pipeline-airport-concourse"]{--focus:50% 50%}
[data-focus="product/services/00-puffalo-education-lounge"]{--focus:50% 50%}
[data-focus="product/services/00-campaign-visual-library-phone"]{--focus:50% 38%}
[data-focus="product/services/00-campaign-poster-gallery"]{--focus:50% 50%}
[data-focus="product/services/00-specifier-chair-configurator-sunlight-v01"]{--focus:50% 50%}

/* Shared text actions. Components own placement; this file owns the visual
   treatment. Existing semantic classes map here so every skin and dynamic
   dialog inherits the same contract. New actions can use .text-action with
   .text-action__label and an optional separate icon. */
:root{
  --action-weight:500;
  --action-underline-width:var(--hairline);
  --action-underline-gap:.25em;
}
:is(.text-action,.offers__action,.offers__examples-button,.manifesto-link,.hero__action,.submit){
  color:var(--ink);
  font-weight:var(--action-weight);
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  min-height:var(--tap);
  text-decoration:none;
}
.text-action{display:inline-flex;align-items:center;gap:1.25rem;max-width:100%;padding:.5rem 0;cursor:pointer}
.offers__action{padding:.5rem 0;gap:1.5rem}
.offers__examples-button{padding:.5rem 0}
:is(.text-action,.offers__action,.offers__examples-button,.manifesto-link,.hero__action,.submit):hover{
  color:var(--ink);background:none;opacity:1;
}
/* Underline the words, leaving the arrow outside the rule. Wrapped labels
   receive a rule on each line rather than a wide border under empty space. */
:is(.text-action__label,.offers__action>span:first-child,.offers__examples-button>span:first-child,.manifesto-link>span:first-child),
:is(.hero__action,.submit,.publication-reader__download,.publication-reader__controls button){
  border:0;
  text-decoration-line:underline;
  text-decoration-thickness:var(--action-underline-width);
  text-underline-offset:var(--action-underline-gap);
  text-decoration-color:var(--action-underline-color,var(--rule-strong));
  text-decoration-skip-ink:auto;
}
.manifesto-link>span:first-child{padding-bottom:0}
:is(.text-action,.offers__action,.offers__examples-button,.manifesto-link):hover>span:first-child,
:is(.hero__action,.submit,.publication-reader__download,.publication-reader__controls button):hover{
  text-decoration-color:currentColor;
}
:is(.text-action,.offers__action,.offers__examples-button,.manifesto-link,.hero__action,.submit):focus-visible{
  outline:2px solid currentColor;outline-offset:5px;
}
/* Film actions use white ink and matching white underlines.
   No rectangular plate, border, blur panel or filled hover state. */
.film-watch{
  border:0;border-radius:0;background:none;backdrop-filter:none;
  box-shadow:none;padding:.5rem 0;
  font-family:var(--type-body-family);font-weight:var(--action-weight);
  --action-underline-color:var(--on-media);
  color:var(--on-media);
  filter:none;
}
:is(.film-preview-action,.case-hero__watch,.mod-cinema__watch,.mod-tabs__tile-open,.mod-films__open):hover .film-watch{background:none}
/* Text navigation in the catalogue follows the same unboxed treatment. */
.publication-reader__download,.publication-reader__controls button{
  color:var(--ink);font-weight:var(--action-weight);background:none;
  border:0;border-radius:0;box-shadow:none;
}
.publication-reader__controls button:not(:disabled):hover{background:none}
.about-story__controls button{border:0;background:none}

/* Keep the unboxed hero action above the title block on narrow screens. */
@media(max-width:40em){.case-hero__watch{top:32%}}

/* Film links keep their focus cue in the lettering, never a rectangle. */
:is(.film-preview-action,.case-hero__watch,.mod-cinema__watch,.mod-tabs__tile-open:has(>.film-watch),.mod-films__open:has(>.film-watch)):focus{
  outline:none;
}
:is(.film-preview-action,.case-hero__watch,.mod-cinema__watch,.mod-tabs__tile-open,.mod-films__open):focus-visible:not([data-quiet-focus]) .film-watch>span::after{
  height:2px;
}
/* Show the poster immediately while a departing preview rewinds. */
:is(.hero__scene-video,.hero__video,[data-film-preview]):not([data-playing]){
  opacity:0;
  transition:none;
}

/* The site's CTA underline sweep, only while the film label is hovered.
   The icon and lettering stay still; keyboard focus remains a static cue. */
.film-watch>span,.caseviewer__film-link{position:relative;text-decoration:none}
.film-watch>span::after,.caseviewer__film-link::after{
  content:'';position:absolute;left:0;right:0;bottom:-.25em;
  height:var(--action-underline-width);background:currentColor;
  pointer-events:none;
}
@media(hover:hover) and (pointer:fine){
  .film-watch:hover>span::after,.caseviewer__film-link:hover::after{
    animation:film-underline-run calc(var(--hover) * 2) var(--ease) 1;
  }
}
@keyframes film-underline-run{
  0%{scale:1 1;transform-origin:100% 50%}
  45%{scale:0 1;transform-origin:100% 50%}
  50%{scale:0 1;transform-origin:0% 50%}
  100%{scale:1 1;transform-origin:0% 50%}
}
.caseviewer__film-link:focus-visible{outline:2px solid currentColor;outline-offset:5px}
@media(prefers-reduced-motion:reduce){
  .film-watch:hover>span::after,.caseviewer__film-link:hover::after{animation:none}
}

/* Global typography: keep lettering clean, including every image overlay. */
*,*::before,*::after{text-shadow:none!important}

/* A contextual enquiry before the existing Objects project navigation. */
.collection-enquiry{margin:0 0 clamp(2rem,4vw,4rem);text-align:center}

.collection-enquiry + .mod-next__row .mod-next__link{margin-block:0;padding-block:0}

/* Hero positions are resolved from the executable global configuration. */
[data-hero-key] :is(.case-hero__watch,.film-preview-action){top:var(--hero-watch-top)}
@media(max-width:40em){[data-hero-key] :is(.case-hero__watch,.film-preview-action){top:var(--hero-watch-top-mobile)}}
