.studio-footer {
  --footer-surface: #171614;
  --footer-line: #454039;
  --cookie-space: calc(var(--utility-offset, 14px) + 58px);
  display: block;
  padding-block: clamp(52px, 6vw, 90px) 26px;
  background: var(--footer-surface);
}
[data-theme="light"] .studio-footer {
  --footer-surface: #f6f5f2;
  --footer-line: #d6d1c9;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1.35fr) minmax(0,.8fr) minmax(0,1.05fr) minmax(0,.9fr) minmax(0,1.35fr);
  align-items: start;
  gap: clamp(14px, 2.1vw, 32px);
}
.footer-grid :is(nav:not(.social-profiles), .footer-contact) { display: grid; align-content: start; margin: 0; }
.footer-grid h2 {
  margin: 0 0 9px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .055em;
}
.footer-intro p { max-width: 31ch; margin: 10px 0 0; font-size: 15px; line-height: 1.55; }
.studio-footer .social-profiles a { border-radius: 50%; }
.footer-grid :is(nav:not(.social-profiles), .footer-contact) a,
.footer-end a {
  display: flex;
  align-items: center;
  min-height: 37px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-offices { display: grid; gap: 14px; margin-bottom: 10px; }
.footer-offices h3 { margin: 0 0 2px; font-size: 14px; font-weight: 630; }
.footer-offices address { font-style: normal; }
.studio-footer .footer-office address a { align-items: flex-start; font-size: 14px; }
.footer-end { margin-top: clamp(28px, 4vw, 56px); padding-top: 12px; border-top: 1px solid var(--footer-line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); }
.footer-end nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-end :is(small,a) { font-size: 13px; }
.footer-end small { text-transform: none; }
.footer-terms { order: 1; flex-basis: 100%; margin: 0; font-size: 13px; }
.footer-end .footer-terms a { display: inline; min-height: 0; text-decoration: underline; }
.cookie-banner {
  position: fixed;
  z-index: 35;
  inset: auto auto calc(var(--cookie-space) + env(safe-area-inset-bottom, 0px)) 50%;
  translate: -50% 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px 20px;
  width: min(760px, calc(100% - 28px));
  max-width: none;
  padding: 16px 18px;
  border: 1px solid var(--footer-line);
  border-radius: 10px;
  background: var(--footer-surface);
  box-shadow: 0 9px 35px #0005;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { color: var(--fg); font-size: 16px; }
.cookie-banner p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.cookie-banner a { text-decoration: underline; text-underline-offset: .2em; color: var(--fg); }
.cookie-actions { display: flex; gap: 8px; }
.studio-footer .cookie-actions button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--footer-line);
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}
.studio-footer .cookie-actions [data-cookie-choice="optional"] { background: var(--fg); color: var(--bg); }
.studio-footer :is(a,summary,button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1040px) { .footer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px), (max-width: 1100px) and (pointer: coarse) {
  .studio-footer { --cookie-space: 92px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 16px; }
  .footer-intro { grid-column: 1 / -1; }
  .footer-grid :is(nav:not(.social-profiles), .footer-contact) a { min-height: 44px; font-size: 14px; }
}
@media (max-width: 620px) {
  .cookie-banner { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 10px 12px; }
  .cookie-banner strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cookie-banner p { font-size: 13px; line-height: 1.4; margin-top: 2px; }
  .cookie-actions button { flex: 1; }
}
/* Keep focused fields and in-page jumps clear of the banner while it shows (pure CSS, no script). */
html:has(.cookie-banner:not([hidden])) { scroll-padding-bottom: 190px; }

/* Footer link groups fold on phones (the bottom tab bar already reaches every section); always open on larger screens. */
.footer-fold > summary { list-style: none; cursor: default; pointer-events: none; }
.footer-fold > summary::-webkit-details-marker { display: none; }
.footer-fold > summary h2 { display: inline; }
@media (max-width: 760px), (max-width: 1100px) and (pointer: coarse) {
  .footer-fold { border-bottom: 1px solid var(--footer-line); }
  .footer-fold > summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
  .footer-fold > summary::after { content: "+"; font-size: 20px; color: var(--muted); }
  .footer-fold[open] > summary::after { content: "−"; }
  .footer-grid > nav[aria-label]:has(> .footer-fold) { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .footer-fold > summary h2 { margin: 0; }
  .footer-fold[open] { padding-bottom: 8px; }
}

/* Link feedback without changing the dimensions of the hit area. */
@media (hover: hover) {
  :where(header, main, footer, dialog) a[href]:not(:has(img, h2, h3, strong)):not(.btn, .s6-btn, .direct-phone, .mobile-contact, .brand, .social-profiles a) {
    transition: color 170ms ease, text-decoration-color 170ms ease;
  }
  html body :where(header, main, footer, dialog) a[href]:not(:has(img, h2, h3, strong)):not(.btn, .s6-btn, .direct-phone, .mobile-contact, .brand, .social-profiles a):hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: .24em;
  }
  .studio-footer .social-profiles a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }
  html body :where(main, header) a[href]:has(img, h2, h3, strong):not(.brand):hover {
    outline: 1px solid var(--accent);
    outline-offset: -1px;
  }
}
html body :where(header, main, footer, dialog) a[href]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  :where(header, main, footer, dialog) a[href] { transition: none !important; }
}

@media (max-width: 760px), (max-width: 1100px) and (pointer: coarse) {
  .footer-contact { grid-column: 1 / -1; }
  .footer-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 760px) {
  .footer-grid > nav[aria-label="Products"] {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .footer-grid > nav[aria-label="Products"] h2 { grid-column: 1 / -1; }
}

/* animated footer logo (owner, 30 Nov 2026): keeps moving, like the brochure art. The speed lines stream in from the
   left and DIGITAL glides along them, on a loop. Still for reduced motion. */
.brand .logo-anim { display: block; width: clamp(124px, 11vw, 164px); height: auto; overflow: visible; }  /* header and footer */
.logo-anim .la-word, .logo-anim .la-lines { fill: #F2EFE7; }
[data-theme="light"] .logo-anim .la-word, [data-theme="light"] .logo-anim .la-lines { fill: #282828; }
.logo-anim .la-digital { fill: #B8693F; }
.logo-anim .la-lines polygon, .logo-anim .la-digital { transform-box: fill-box; transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .logo-anim .la-lines polygon { animation: la-stream 3.6s cubic-bezier(.3, .6, .3, 1) infinite; }
  .logo-anim .la-lines polygon:nth-child(2) { animation-delay: .15s; }
  .logo-anim .la-lines polygon:nth-child(3) { animation-delay: .3s; }
  .logo-anim .la-digital { animation: la-glide 3.6s cubic-bezier(.3, .6, .3, 1) infinite; }
}
@keyframes la-stream { 0% { transform: scaleX(.12); opacity: .35; } 35%, 78% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(.12); opacity: .35; } }
@keyframes la-glide { 0% { transform: translateX(-5%); } 35%, 78% { transform: none; } 100% { transform: translateX(-5%); } }

/* "Send enquiry" illustration (owner, 30 Nov 2026): brief -> trail -> inbox, looping, same tokens as the brochure art */
.send-row { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); flex-wrap: wrap; }
.send-art { width: 170px; height: auto; flex: none; }
.send-art .sa-paper { fill: color-mix(in srgb, var(--fg) 88%, var(--bg)); }
.send-art .sa-ink, .send-art .sa-env-line, .send-art .sa-trail, .send-art .sa-tick-mark { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.send-art .sa-ink { stroke: color-mix(in srgb, var(--bg) 70%, var(--fg)); stroke-width: 3; }
.send-art .sa-accent { fill: var(--accent); }
.send-art .sa-accent-soft { fill: color-mix(in srgb, var(--accent) 45%, var(--fg)); }
.send-art .sa-env { fill: color-mix(in srgb, var(--fg) 8%, var(--bg)); stroke: var(--accent); stroke-width: 2; }
.send-art .sa-env-line { stroke: var(--accent); stroke-width: 2; }
.send-art .sa-trail { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 7; opacity: .8; }
.send-art .sa-tick-mark { stroke: #fff; stroke-width: 2.2; }
.send-art .sa-type { transform-box: fill-box; transform-origin: left center; }
.send-art .sa-tick { transform-box: fill-box; transform-origin: center; }
.send-art .sa-plane { transform: translate(150px, 40px); }
@media (prefers-reduced-motion: no-preference) {
  .send-art .sa-type { animation: sa-type 4.8s ease-in-out infinite; }
  .send-art .sa-trail { animation: sa-march 1.2s linear infinite; }
  .send-art .sa-plane { animation: sa-fly 4.8s ease-in-out infinite; }
  .send-art .sa-tick { animation: sa-tick 4.8s ease-in-out infinite; }
}
@keyframes sa-type { 0% { transform: scaleX(0); } 25%, 100% { transform: scaleX(1); } }
@keyframes sa-march { to { stroke-dashoffset: -10; } }
@keyframes sa-fly {
  0%, 25% { transform: translate(68px, 42px) rotate(-40deg) scale(.7); opacity: 0; }
  32% { opacity: 1; }
  48% { transform: translate(110px, 16px) rotate(0deg) scale(1); opacity: 1; }
  66% { transform: translate(150px, 40px) rotate(35deg) scale(.8); opacity: 1; }
  72%, 100% { transform: translate(162px, 56px) rotate(35deg) scale(.4); opacity: 0; }
}
@keyframes sa-tick { 0%, 68% { transform: scale(0); } 76% { transform: scale(1.15); } 82%, 94% { transform: scale(1); } 100% { transform: scale(0); } }
@media (max-width: 760px) { .send-art { width: 140px; } }
