/* Unseen-style touches over the whole site (after unseen.co): regular-weight sans headings in
   sentence case with light italic serif accents, and pill-shaped buttons in the content.
   The header (nav), the black "Recent work" section and the blue swoosh page transition stay
   exactly as designed. The footer sits on the room, like the hero. */

/* ---- type -------------------------------------------------------------------------------- */
.heading-xxl,
.heading-xl,
.heading-l,
.heading-m,
.heading-s,
.heading-xs {
  text-transform: none !important;
  font-variation-settings: "wght" 430, "wdth" 100, "opsz" 30 !important;
  letter-spacing: -0.05em !important;
  line-height: 0.95 !important;
}
.heading-xxl { font-size: calc(var(--_headings---heading-xxl--font-size) * 0.72) !important; }
.heading-xl { font-size: calc(var(--_headings---heading-xl--font-size) * 0.82) !important; }
.heading-l { font-size: calc(var(--_headings---heading-l--font-size) * 0.82) !important; }
.heading-m { font-size: calc(var(--_headings---heading-m--font-size) * 0.85) !important; }
.heading-s { font-size: calc(var(--_headings---heading-s--font-size) * 0.85) !important; }
/* serif accent words ("motion", "work", "makers"…): light italic like unseen's Saol Display */
.heading-alt {
  font-style: italic;
  font-variation-settings: "wght" 300, "wdth" 75, "opsz" 30 !important;
  letter-spacing: -0.035em !important;
}
.eyebrow-m,
.eyebrow-l { font-style: italic; }

/* ---- header: larger logo, links and Contact button (everything in it is sized in em) ---- */
@media (min-width: 992px) {
  .nav-inner { font-size: 1.35em; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .nav-inner { font-size: 1.2em; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .nav-inner { font-size: 1.12em; }
}
/* phones: the bar grows with the larger logo, so the logo stays fully on screen */
@media (max-width: 479px) {
  .nav-inner { height: auto; min-height: 4em; padding-bottom: .25em; }
  .nav-logo { font-size: 1.2em; padding-top: .35em; }
}

/* ---- project pages (tools/projects.mjs) --------------------------------------------------- */
.ec-step-visual { max-width: 100%; border-radius: 0.5em; overflow: hidden; }
.ec-step-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-section_text .w-richtext ul { margin: 0; padding: 0; list-style: none; }
.case-section_text .w-richtext li + li { margin-top: 0.35em; }
.ec-case-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.5em;
  padding: 0.7em 1.3em;
  border-radius: 0;
  background: var(--_colors---swatch--blue, #0038ff);
  color: #fff;
  font-size: 1em;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.ec-case-live:hover { transform: scale(1.04); }
.ec-case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5em; width: 100%; }
.ec-case-gallery__item { grid-column: 1 / -1; margin: 0; overflow: hidden; border-radius: 0.5em; }
.ec-case-gallery__item.is-half { grid-column: auto; }
.ec-case-gallery img { display: block; width: 100%; height: auto; }
@media (max-width: 479px) { .ec-case-gallery { gap: 0.75em; } }
/* Work page card animation on the gallery and "More Work" (brand/work/case-cards.js). The hero,
   the pinned story panels, text, header and footer deliberately don't get it. */
.ec-cards { position: fixed; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; }
html.ec-cards-on .ec-case-gallery__item img,
html.ec-cards-on .section_more-work .work-card_media img { visibility: hidden; }
html.ec-cards-on .section_more-work .work-card_title { opacity: 0; }
/* (the cards are drawn behind the page: their white backing would cover them) */
html.ec-cards-on .section_more-work .work-item,
html.ec-cards-on .section_more-work .work-card,
html.ec-cards-on .section_more-work .work-card_media { background: transparent !important; }
/* touch screens / no WebGL: the same motion in CSS, driven by the browser's own scrolling */
@supports (animation-timeline: view()) {
  html.ec-cards-css .ec-case-gallery__item,
  html.ec-cards-css .section_more-work .work-card {
    transform-origin: 50% 100%;
    animation: ec-card-in linear both, ec-card-out linear both;
    animation-timeline: view(), view();
    animation-range: entry 0% entry 55%, exit 25% exit 100%;
  }
  @keyframes ec-card-in { from { opacity: 0; transform: perspective(1000px) translate3d(0, 12%, 120px); } }
  /* (stays readable until it has left the screen) */
  @keyframes ec-card-out {
    70% { opacity: 1; }
    to { opacity: 0.2; transform: perspective(1000px) rotateX(40deg) translate3d(0, -8%, -220px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html.ec-cards-css .ec-case-gallery__item,
  html.ec-cards-css .section_more-work .work-card { animation: none; }
}
/* client logos in the home page strip */
.hero_clients .marquee-advanced__item-width:has(.ec-client) { display: flex; align-items: center; width: auto; flex: none; padding-inline: 2.25em; }
.ec-client {
  display: block;
  flex: none;
  width: auto;
  max-width: none;
  height: calc(var(--h, 1.5) * 2.1em);
}
@media (max-width: 479px) {
  .hero_clients .marquee-advanced__item-width:has(.ec-client) { padding-inline: 1.5em; }
  .ec-client { height: calc(var(--h, 1.5) * 1.7em); }
}

/* ---- footer: on the same room as the hero, with the light theme's text and buttons ------- */
footer.footer { background-color: transparent; color: var(--_colors---swatch--black, #101010); }
.footer .footer-cta,
.footer .footer-bottom { border-color: rgba(16, 16, 16, 0.25); }
.footer .footer-logo { color: var(--_colors---swatch--blue, #0038ff); }
.footer .footer-main .footer-link:not(:hover):not(.w--current),
.footer .footer-bottom .footer-bottom_link:not(:hover) { opacity: 0.75; }
.footer .footer-main .scroll-top-btn { background-color: rgba(16, 16, 16, 0.12); color: var(--_colors---swatch--black, #101010); }

/* ---- buttons in the content: square corners, original colours (not the header's) -------- */
.button-093:not(.nav *) {
  --button-093-border-radius: 0px;
  text-transform: none !important;
  font-variation-settings: "wght" 500, "wdth" 100, "opsz" 30 !important;
  letter-spacing: -0.01em !important;
}
.button-093 .button-093__bg,
.button-052 .button-052__icon-bg,
.button-052 .button-052__text-wrap,
[class*="section-dock"] { border-radius: 0 !important; }
.button-052:not(.nav *) .button-052__text-wrap { padding-left: 1.1em !important; padding-right: 1.1em !important; }
.button-052:not(.nav *) .button-052__text {
  text-transform: none !important;
  font-variation-settings: "wght" 500, "wdth" 100, "opsz" 30 !important;
  letter-spacing: -0.01em !important;
}

/* ---- phones and small tablets: more room at the sides ----
   The template's side padding shrinks with the screen (about 16px on a phone), so text and cards
   ran close to the edges. It never goes below 20px now (24px from 480px wide). */
@media screen and (max-width: 767px) {
  .padding-global { padding-left: max(24px, 5vw) !important; padding-right: max(24px, 5vw) !important; }
  .section_featured.ec-ring { --ec-ring-gutter: 24px; }
}
@media screen and (max-width: 479px) {
  .padding-global { padding-left: max(20px, 5.5vw) !important; padding-right: max(20px, 5.5vw) !important; }
  .section_featured.ec-ring { --ec-ring-gutter: max(20px, 5.5vw); }
}
@media screen and (max-width: 767px) {
  /* Work page: room between the filter buttons and the first card (the cards start below this block) */
  .ec-work__filters { padding-bottom: 32px; }
  /* Contact page: room between the Call / Email buttons and the picture below them */
  .contact_content { padding-bottom: 48px; }
}
/* the round sound button sits in the bottom left corner: the footer's last line clears it */
@media screen and (max-width: 991px) {
  .footer .footer-bottom { padding-bottom: 76px; }
}

/* ---- "What I Do" on the home page with four cards (the page's own rules place three: the
   first and last tilted outward, the middle one straight) ---- */
@media screen and (min-width: 992px) {
  .services-cards_list[data-cards="4"] .services-cards_item:nth-child(1) { transform: translateY(4em) rotate(-5deg); }
  .services-cards_list[data-cards="4"] .services-cards_item:nth-child(2) { transform: translateY(0.4em) rotate(-1.5deg); }
  .services-cards_list[data-cards="4"] .services-cards_item:nth-child(3) { transform: translateY(0.8em) rotate(2deg); }
  .services-cards_list[data-cards="4"] .services-cards_item:nth-child(4) { transform: translateY(3.6em) rotate(5deg); }
}
/* tablets and large phones: two rows of two */
@media screen and (min-width: 480px) and (max-width: 991px) {
  .services-cards_list[data-cards="4"] { flex-wrap: wrap; justify-content: center; row-gap: 1.5em; max-width: 44em; }
  .services-cards_list[data-cards="4"] .services-cards_item:nth-child(1) { transform: translateY(1em) rotate(-3deg); }
  .services-cards_list[data-cards="4"] .services-cards_item:nth-child(2) { transform: rotate(2.5deg); }
  .services-cards_list[data-cards="4"] .services-cards_item:nth-child(3) { transform: rotate(2deg); }
  .services-cards_list[data-cards="4"] .services-cards_item:nth-child(4) { transform: translateY(1em) rotate(-2.5deg); }
}
/* phones: one column, cards stepping left and right */
@media screen and (max-width: 479px) {
  .services-cards_list[data-cards="4"] .services-cards_item:nth-child(3) { transform: translateX(-2em) rotate(-1deg); }
  .services-cards_list[data-cards="4"] .services-cards_item:nth-child(4) { transform: translateX(3em) rotate(1.5deg); }
}
