/* Tohy — original independent visual system. No third-party runtime. */
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-900.woff2") format("woff2");
  font-weight: 900; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
:root {
  color-scheme: light;
  --accent: #d1e600;
  --ink: #111214;
  --near-black: #101213;
  --muted: #55595d;
  --white: #fff;
  --rust: #964328;
  --shell: min(1296px, calc(100% - 2 * clamp(22px, 7.5vw, 108px)));
  font-family: "Jost", "Inter", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { margin: 0; min-width: 280px; background: var(--near-black); color: var(--white); overflow-x: clip; }
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 5px;
}
::selection { color: #161616; background: var(--accent); }
.skip-link {
  position: fixed; z-index: 1000; top: 10px; left: 10px;
  padding: 12px 20px; background: var(--accent); color: var(--ink);
  transform: translateY(-150%); border-radius: 3px;
}
.skip-link:focus { transform: translateY(0); }
.container { width: var(--shell); margin-inline: auto; }
.site-header {
  position: absolute; z-index: 40; width: 100%;
  top: clamp(25px, 4.2vw, 54px); left: 0; pointer-events: none;
}
.site-header__inside {
  display: flex; justify-content: space-between; align-items: center;
}
.site-header__brand { pointer-events: auto; display: block; inline-size: clamp(70px, 7vw, 96px); }
.site-header__brand img { width: 100%; height: auto; }
.site-header__projects {
  color: var(--white); font-weight: 600; font-size: 14px;
  letter-spacing: .01em; pointer-events: auto; padding: 8px 0;
  border-bottom: 1px solid currentColor;
}
.side-contact {
  position: fixed; z-index: 50; left: clamp(10px, 2.1vw, 28px); bottom: clamp(22px, 3.2vw, 42px);
  writing-mode: vertical-rl; transform: rotate(180deg); color: var(--white);
  mix-blend-mode: normal; font-weight: 500; font-size: 14px;
  white-space: nowrap; transition: opacity .2s;
}
.side-contact:hover { opacity: .65; }
.side-contact.is-dark { color: #292929; }
.intro {
  min-height: 100svh; padding: clamp(170px, 26vh, 280px) 0 clamp(125px, 15vw, 200px);
  background: var(--near-black); color: var(--accent);
}
.intro__copy {
  margin: 0; max-width: 1190px;
  font-size: clamp(26px, 2.45vw, 37px); font-weight: 400; letter-spacing: -.012em;
  line-height: 1.43;
}
.intro__copy h1 { font: inherit; line-height: inherit; letter-spacing: inherit; margin: 0 0 1.05em; }
.intro__copy p { margin: 0 0 1.05em; }
.intro__copy p:last-child { margin-bottom: 0; }
.intro__lead {
  margin: clamp(42px, 6vw, 86px) 0 0;
  font-size: clamp(24px, 2.3vw, 36px); line-height: 1.35;
}
.work {
  position: relative; isolation: isolate;
  display: grid; align-items: center; min-height: 100svh;
  padding: clamp(105px, 11vh, 155px) 0;
  background: var(--work-bg, #92442e);
  color: #fff; overflow: hidden;
}
.work__layout {
  display: grid; grid-template-columns: 1.05fr .92fr;
  align-items: center; min-width: 0;
}
.work__visual {
  position: relative; margin: 0; overflow: hidden;
  align-self: center; aspect-ratio: 1.13 / 1; min-width: 0;
  background: rgba(0, 0, 0, .08);
}
.work__visual::after {
  content: ""; pointer-events: none; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--work-bg, #92442e) 26%, transparent);
}
.work__visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.045); transition: transform 1.05s cubic-bezier(.2,.65,.15,1);
}
.work.in-view .work__visual img, .work:hover .work__visual img { transform: scale(1); }
.work__body {
  position: relative; z-index: 1; min-width: 0;
  margin-left: clamp(-22px,-1vw,-7px);
  padding: clamp(20px, 3.4vw, 52px) 0 clamp(20px, 3.4vw, 52px);
}
.work__eyebrow { display: none; }
.work__title {
  margin: 0; font-weight: 500; letter-spacing: -.035em;
  line-height: .98; text-wrap: balance; word-break: normal;
  font-size: clamp(60px, 7.6vw, 117px);
}
.work__service {
  margin: 20px 0 42px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5;
}
.work__link {
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  border-radius: 100px; background: #fff; color: #28292b;
  min-height: 50px; padding: 13px 34px; font-size: 14px; font-weight: 600;
  transition: background-color .2s, color .2s, transform .2s;
}
.work__link:hover { background: var(--accent); transform: translateY(-3px); }
.work--all-shopping { --work-bg: #ff6939; }
.work--kasvi { --work-bg: #6a3288; }
.work--kapazi { --work-bg: #0f234d; }
.work--controllab { --work-bg: #2f8a5c; }
.work--firstlab { --work-bg: #f8e007; }
.work--meta-prevent { --work-bg: #cb18ce; }
.work--bendito-fruto { --work-bg: #ff0816; }
.clients {
  background: #fff; color: #303033; overflow: hidden;
  padding: clamp(85px, 9.5vw, 146px) 0 clamp(95px, 10vw, 150px);
}
.clients__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 70px);
}
.clients__heading { margin: 0; line-height: 1; min-width: 0; max-width: 100%; }
.clients__line {
  display: inline-block; white-space: nowrap;
  max-width: none; overflow: visible;
  letter-spacing: -.025em; transform-origin: left center;
}
.clients__line--eyebrow {
  font-size: clamp(21px, 1.95vw, 31px); font-weight: 500; line-height: 1.3;
  letter-spacing: -.012em; margin-bottom: 5px;
}
.clients__line--brand {
  font-size: clamp(31px, 4.5vw, 71px);
  font-weight: 700; line-height: 1.045;
  letter-spacing: -.038em;
}
.clients__line--action {
  color: var(--accent); font-weight: 900; line-height: .93;
  letter-spacing: -.055em; font-size: clamp(58px, 8vw, 124px);
}
.clients__text-line { display: block; width: 100%; }
.clients__showcase { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 38px; }
.clients__viewport { width: 100%; overflow: hidden; touch-action: pan-y; }
.clients__track {
  display: grid; grid-auto-columns: calc((100% - 2 * 12px) / 3);
  grid-auto-flow: column; gap: 12px; padding: 6px 0 12px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-behavior: smooth;
}
.clients__track { list-style: none; margin: 0; }
.clients__track::-webkit-scrollbar { display: none; }
.clients__item {
  scroll-snap-align: start; display: grid; place-items: center;
  min-width: 0; aspect-ratio: 1.5 / 1;
}
.clients__item img {
  width: min(87%, 178px); height: 96px; object-fit: contain;
  filter: grayscale(1); opacity: .63;
  transition: filter .25s, opacity .25s, transform .25s;
}
.clients__item:hover img, .clients__item:focus-within img {
  filter: grayscale(0); opacity: 1; transform: scale(1.05);
}
.clients__dots { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.clients__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: #c9c9c9; transition: transform .2s, background-color .2s;
}
.clients__dot[aria-current="true"] { background: #989898; transform: scale(1.15); }
.clients__dot:hover { background: #666; }
.clients__nav-btn {
  border: 0; background: transparent; color: #595959;
  min-width: 40px; min-height: 40px; font-size: 23px;
}
.clients__nav-btn:hover { color: #111; }
.clients__page-status { font: 500 13px "Jost", sans-serif; color: #555; min-width: 60px; text-align: center; }
.site-footer {
  position: relative; background: var(--near-black); color: #fff;
  padding: clamp(100px, 11vw, 175px) 0 40px; text-align: center;
}
.site-footer__logo { display: block; width: 104px; margin: 0 auto clamp(42px, 5vw, 70px); }
.site-footer__logo img { width: 100%; }
.site-footer__cta { margin: 0; font-weight: 500; line-height: 1.02; letter-spacing: -.037em; }
.site-footer__cta-top { display: block; font-size: clamp(25px, 4vw, 62px); }
.site-footer__cta-bottom {
  display: block; font-size: clamp(48px, 8.7vw, 137px); color: var(--accent);
}
.site-footer__contact {
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; margin: clamp(48px, 5vw, 84px) 0;
  font-size: clamp(17px, 2.2vw, 25px);
}
.site-footer__contact a:hover { color: var(--accent); }
.site-footer__legal {
  margin: 0; padding-top: 30px; border-top: 1px solid #373838;
  font-size: 13px; color: #b5b7b6; text-align: left;
  display: flex; justify-content: space-between; gap: 12px;
}
.site-footer__top { color: #b5b7b6; }
.site-footer__top:hover { color: var(--accent); }
.project-page { background: #fff; color: var(--ink); min-height: 100svh; }
.legal-page .site-header, .archive-page .site-header { position: relative; top: auto; background: var(--near-black); padding-block: 24px; }
.project-page .site-header { position: relative; top: auto; background: var(--near-black); padding-block: 24px; }
.project-page .site-header__brand { width: 78px; }
.project-page .side-contact { mix-blend-mode: normal; }
.project-page__intro {
  padding: clamp(64px, 9vw, 146px) 0 clamp(60px, 7vw, 90px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .5fr);
  gap: clamp(36px, 6vw, 110px);
}
.project-page__title {
  margin: 0; font-size: clamp(52px, 8.2vw, 145px);
  font-weight: 600; line-height: 1; letter-spacing: -.05em;
  overflow-wrap: anywhere;
}
.project-page__service {
  font-size: clamp(22px, 2.4vw, 37px); color: var(--muted);
  margin: 24px 0 0; max-width: 25ch; line-height: 1.26;
}
.project-page__aside { align-self: center; border-top: 1px solid #d8d8d8; }
.project-page__fact {
  padding: 18px 0; display: grid; grid-template-columns: 105px 1fr;
  gap: 12px; border-bottom: 1px solid #d8d8d8; font-size: 15px;
}
.project-page__fact dt { margin: 0; color: #74777a; }
.project-page__fact dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.project-page__fact a { text-decoration: underline; text-underline-offset: 3px; }
.project-page__fact a:hover { color: #5d7600; }
.project-page__cover { width: 100%; height: clamp(280px, 48vw, 675px); object-fit: cover; object-position: center; }
.project-page__gallery { padding: clamp(48px, 6vw, 98px) 0 clamp(70px, 10vw, 150px); }
.project-page__gallery figure { margin: 0 auto clamp(40px, 5vw, 75px); width: min(1100px, 100%); }
.project-page__gallery img { width: 100%; height: auto; }
.project-page__gallery figcaption { margin-top: 11px; color: #626568; font-size: 14px; }
.project-page__return {
  padding: 24px 0 0; border-top: 1px solid #d7d7d7;
  margin-bottom: 110px; text-align: center;
}
.project-page__return a { display: inline-block; padding: 12px 24px; border-bottom: 1px solid var(--ink); font-weight: 500; }
.project-page__return a:hover { color: #6d7900; border-color: #6d7900; }
html.has-motion .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.75,.3,1); }
html.has-motion .reveal.in-view { opacity: 1; transform: translateY(0); }

/* Native media entrance — standalone JavaScript and CSS. */
@media (prefers-reduced-motion: no-preference) {
  html.has-motion .reveal-media img {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.09);
    transition: clip-path 1.1s cubic-bezier(.22,.7,.16,1), transform 1.45s cubic-bezier(.18,.7,.22,1);
  }
  html.has-motion .reveal-media.in-view img {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
  html.has-motion .reveal-media::after {
    opacity: .45;
    transition: opacity 1.15s ease;
  }
  html.has-motion .reveal-media.in-view::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-media, .reveal-media img { clip-path: none !important; transform: none !important; transition: none !important; }
}

@media (max-width: 1050px) {
  .clients__grid { gap: 26px; }
  .clients__track { grid-auto-columns: calc((100% - 12px) / 2); }
}
@media (max-width: 780px) {
  :root { --shell: calc(100% - 2 * clamp(24px, 7.6vw, 54px)); }
  .site-header { top: 26px; }
  .site-header__brand { inline-size: 69px; }
  .site-header__projects { font-size: 13px; }
  .side-contact { left: 9px; bottom: 16px; font-size: 11px; }
  .intro { min-height: 98svh; padding: 175px 0 110px; }
  .intro__copy { font-size: clamp(23px, 4.1vw, 33px); line-height: 1.37; }
  .intro__lead { font-size: clamp(22px, 3.9vw, 29px); }
  .work { min-height: 90svh; display: block; padding: 70px 0 105px; }
  .work__layout { display: block; }
  .work__visual { aspect-ratio: 1.35; margin-inline: auto; width: 100%; }
  .work__body { margin: -13px 0 0; padding: 0 0 0 12px; }
  .work__title { font-size: clamp(62px, 11vw, 95px); line-height: 1.02; }
  .work__service { margin: 12px 0 28px; }
  .clients { padding: 85px 0 100px; }
  .clients__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .clients__heading { max-width: 100%; }
  .clients__line--eyebrow { font-size: clamp(20px, 3.4vw, 27px); }
  .clients__line--brand { font-size: clamp(36px, 6.5vw, 56px); }
  .clients__line--action { font-size: clamp(64px, 12vw, 94px); }
  .clients__showcase { gap: 20px; }
  .clients__track { grid-auto-columns: calc((100% - 24px) / 3); }
  .clients__item img { height: 100px; }
  .site-footer { padding: 94px 0 30px; }
  .project-page__intro { grid-template-columns: 1fr; gap: 42px; }
  .project-page__title { font-size: clamp(60px, 12vw, 100px); }
}
@media (max-width: 520px) {
  .intro__copy { font-size: 22px; }
  .intro__lead { font-size: 21px; }
  .work__title { font-size: clamp(54px, 13vw, 76px); }
  .work__visual { aspect-ratio: 1; }
  .clients__line--eyebrow { font-size: 21px; }
  .clients__line--brand { font-size: 36px; }
  .clients__line--action { font-size: 72px; }
  .clients__track { grid-auto-columns: calc((100% - 12px) / 2); }
  .clients__item img { width: 86%; height: 74px; }
  .site-footer__cta-bottom { font-size: clamp(48px, 13vw, 71px); }
  .site-footer__legal { flex-direction: column; text-align: center; }
  .project-page__fact { grid-template-columns: 88px 1fr; }
}
@media (max-width: 360px) {
  .clients__track { grid-auto-columns: 100%; }
  .intro__copy { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html.has-motion .reveal { opacity: 1; transform: none; }
}

/* Independent institutional pages — semantic content sourced from Pages CMS. */
.legal-page, .archive-page { background: #fff; color: #212326; min-height: 100svh; }
.legal-page__main, .archive-page__main { padding: clamp(60px, 7vw, 110px) 0 clamp(100px, 10vw, 160px); }
.legal-page__article { max-width: min(880px, var(--shell)); }
.legal-page__title, .archive-page__section > h1 {
  margin: 0 0 clamp(35px, 4vw, 65px);
  font-weight: 600; letter-spacing: -.04em; line-height: 1.11;
  font-size: clamp(37px, 5vw, 70px);
}
.legal-page__body { font: 400 clamp(16px, 1.35vw, 18px)/1.8 "Inter","Jost",sans-serif; color: #333638; }
.legal-page__body h2 { font: 650 clamp(23px, 2.3vw, 30px)/1.32 "Jost",sans-serif; letter-spacing: -.02em; margin: 2.4em 0 .8em; color: #212326; }
.legal-page__body h3 { font: 600 clamp(20px, 2vw, 24px)/1.4 "Jost",sans-serif; margin: 2em 0 .8em; color: #212326; }
.legal-page__body h4 { font-weight: 600; margin: 1.8em 0 .8em; }
.legal-page__body p { margin: 0 0 1.25em; overflow-wrap: anywhere; }
.legal-page__body ul, .legal-page__body ol { padding-left: 1.5em; margin: 0 0 1.35em; }
.legal-page__body li { padding-left: .2em; margin: .3em 0; }
.legal-page__body a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-page__body a:hover { color: #728600; }
.legal-page__body blockquote { border-left: 4px solid var(--accent); padding: 8px 22px; margin: 22px 0; }
.archive-page__section > h1 { margin-bottom: clamp(40px, 6vw, 78px); }
.archive-page__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(23px, 3vw, 45px); }
.archive-page__card { display: block; min-width: 0; }
.archive-page__card img { width: 100%; aspect-ratio: 1.24; object-fit: cover; background: #ededed; transition: transform .35s ease; }
.archive-page__card:hover img { transform: scale(1.015); }
.archive-page__card h2 { font-size: clamp(22px, 2.5vw, 31px); letter-spacing: -.03em; margin: 18px 0 8px; font-weight: 600; }
.archive-page__card > span { color: #54595c; font-size: 15px; }
.site-footer__legal-nav { display: flex; gap: 12px 22px; flex-wrap: wrap; justify-content: center; margin: 18px auto 34px; color: #c8cbca; font-size: 13px; }
.site-footer__legal-nav a:hover { color: var(--accent); }
@media (max-width: 980px) { .archive-page__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 590px) {
  .archive-page__grid { grid-template-columns: minmax(0,1fr); gap: 42px; }
  .legal-page__article { width: var(--shell); }
  .legal-page__body { font-size: 16px; }
}

/* Faithful desktop project alternation: original Uncode rows 2, 4, 6. */
@media (min-width: 781px) {
  .work--kasvi .work__visual,
  .work--controllab .work__visual,
  .work--meta-prevent .work__visual { grid-column: 2; grid-row: 1; }
  .work--kasvi .work__body,
  .work--controllab .work__body,
  .work--meta-prevent .work__body {
    grid-column: 1; grid-row: 1;
    margin-left: 0;
    margin-right: clamp(-22px,-1vw,-7px);
  }
}

/* Original WordPress homepage reserves one full viewport before the intro.
   Pure CSS; no Uncode runtime dependency. */
.home-page .hero-spacer {
  min-height: 100svh;
  background: var(--near-black);
}

/* Match the measured 953px project-row rhythm at a 900px desktop viewport.
   Preserve fluid sizing on taller viewports and original mobile rules. */
@media (min-width: 1060px) {
  .home-page .work { min-height: max(100svh, 953px); }
}

/* Mobile project cards: content-first sizing; do not force 90svh. */
@media (max-width: 780px) {
  .home-page .work {
    min-height: 0;
    padding-block: clamp(38px, 5vw, 56px) clamp(52px, 7vw, 78px);
  }
  .home-page .work__body { margin-top: 0; }
}

/* Standalone parallax, calibrated against the original Uncode intro.
   CSS translate composes independently of reveal's transform animation. */
@media (prefers-reduced-motion: no-preference) {
  .home-page .intro__copy {
    translate: 0 var(--intro-parallax-y, 0px);
    will-change: translate;
  }
}

/* Project media entrance: original Uncode zoom-in uses opacity 0→1
   and scale ~0.5→1. Keep the image's independent clip-path reveal. */
@media (prefers-reduced-motion: no-preference) {
  html.has-motion .home-page .work__visual.reveal-media {
    opacity: 0;
    transform: scale(.5);
    transition: none;
    transform-origin: center center;
  }
  html.has-motion .home-page .work__visual.reveal-media.in-view {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease, transform 1s cubic-bezier(.2,.75,.3,1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .work__visual.reveal-media {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Restore previous/next portfolio navigation from the original WordPress. */
.project-page__pagination { display:flex; align-items:center; flex-wrap:wrap; gap:clamp(14px,2.5vw,35px); }
.project-page__pagination a { display:inline-flex; align-items:center; min-height:44px; }
@media (max-width:520px) {
 .project-page__pagination { flex-direction:column; align-items:flex-start; gap:8px; }
}

/* Project visual fidelity: original dark palette, right-side identity and logo.
   Isolated candidate; media composition requires per-project audit. */
.project-page { background:#141618; color:#f4f4f4; }
.project-page .site-header { background:transparent; }
.project-page .site-header__inside { justify-content:flex-end; }
.project-page .site-header__brand { order:2; width:90px; }
.project-page .site-header__projects { order:1; margin-right:auto; }
.project-page__intro { grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); }
.project-page__intro > :first-child { grid-column:2; grid-row:1; }
.project-page__intro > .project-page__aside { grid-column:1; grid-row:1; }
.project-page__title { font-size:clamp(52px,7.5vw,108px); font-weight:400; letter-spacing:-.035em; overflow-wrap:normal; }
.project-page__service { color:#d6e418; }
.project-page__aside { border-color:#454749; }
.project-page__fact { border-color:#454749; }
.project-page__fact dt { color:#adb0b0; }
@media (max-width:780px) {
 .project-page .site-header__brand { width:70px; }
 .project-page__intro { display:flex; flex-direction:column; }
 .project-page__intro > :first-child { order:1; }
 .project-page__intro > .project-page__aside { order:2; }
 .project-page__title { font-size:clamp(42px,8vw,72px); }
}

/* Original portfolio composition: full-length imagery left, details right. */
.project-page__layout { display:grid; grid-template-columns:58.333333% minmax(0,1fr); align-items:start; }
.project-page__visual { min-width:0; }
.project-page__visual img { width:100%; height:auto; display:block; }
.project-page__content { padding:144px 72px 80px; min-width:0; }
.project-page__content .project-page__intro { padding:0; display:block; width:auto; }
.project-page__content .project-page__intro > :first-child { display:block; width:auto; }
.project-page__content .project-page__aside { margin-top:54px; }
.project-page__title { font-size:90px; line-height:1.2; font-weight:400; letter-spacing:0; }
.project-page__service { margin-top:25px; font-size:26px; line-height:1.4; }
.project-page .site-header { top:36px; padding:0; }
.project-page .site-header__inside { width:auto; max-width:none; padding:0 102px 0 36px; }
.project-page .site-header__brand { width:90px; }
@media (max-width:780px) {
 .project-page__layout { display:flex; flex-direction:column; }
 .project-page__visual { width:100%; }
 .project-page__content { width:100%; padding:124px 36px 70px; }
 .project-page__title { font-size:35px; line-height:1.2; }
 .project-page__service { font-size:19px; }
 .project-page .site-header { display:none; }
}

/* Header must overlay portfolio images instead of shifting them downward. */
.project-page .site-header { position:absolute; top:36px; left:0; }

/* Portfolio footer rhythm: retain current contacts and institutional links,
   restore the more compact original footprint on desktop and mobile. */
.project-page .site-footer { padding:95px 0 30px; }
.project-page .site-footer__logo { margin-bottom:35px; }
.project-page .site-footer__contact { margin:35px 0; }
.project-page .site-footer__legal-nav { margin:10px auto 16px; }
.project-page .site-footer__legal { padding-top:20px; }
@media (max-width:780px) {
  .project-page .site-footer { padding:82px 0 30px; }
  .project-page .site-footer__logo { width:92px; margin-bottom:20px; }
  .project-page .site-footer__contact { margin:25px 0; }
  .project-page .site-footer__legal-nav { margin:8px auto 12px; }
  .project-page .site-footer__legal { padding-top:14px; }
}

/* Match portfolio navigation/footer vertical geometry, without removing destinations. */
.project-page__nav-short { display:none; }
.project-page .project-page__return { margin-bottom:106px; }
.project-page .site-footer { padding-bottom:23px; }
@media (max-width:780px) {
  .project-page__content { padding-bottom:30px; }
  .project-page .project-page__return.project-page__pagination {
    flex-direction:row; justify-content:space-between; align-items:center;
    gap:4px; flex-wrap:nowrap; padding-top:0; margin-bottom:58px;
  }
  .project-page__pagination a {
    padding:12px 7px; min-height:44px; font-size:13px; white-space:nowrap;
  }
  .project-page__nav-full { display:none; }
  .project-page__nav-short { display:inline; }
  .project-page .site-footer { padding:65px 0 25px; }
}

/* Bendito Fruto: preserve original mobile identity-art and metadata spacing. */
@media (max-width:780px) {
  .project-page--bendito-fruto .project-page__content {
    padding-top:126px;
    padding-bottom:65px;
  }
}

/* Canonical Uncode BG-changer palette, sourced from each original data-bg-color.
   Static section colors remain the no-JavaScript fallback. */
body.home-page { --accent:#d6e418; background-color:var(--native-bg, #d6e418); }
.home-page .hero-spacer { background:#d6e418; }
@media (prefers-reduced-motion: no-preference) {
  body.home-page { transition:background-color .95s cubic-bezier(.2,.65,.15,1); }
}
html.has-color-motion .home-page .hero-spacer,
html.has-color-motion .home-page .intro,
html.has-color-motion .home-page .work,
html.has-color-motion .home-page .clients,
html.has-color-motion .home-page .site-footer { background-color:transparent; }

/* Original Uncode diff-style cursor: a white 20px dot with difference blending. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .native-cursor {
    position:fixed; z-index:2147483647; pointer-events:none;
    top:0; left:0; width:20px; height:20px; border-radius:50%;
    background-color:#fff; mix-blend-mode:difference;
    transform:translate3d(-100px,-100px,0);
    opacity:0; transition:opacity .12s ease; will-change:transform;
  }
  .native-cursor.is-visible { opacity:1; }
}

/* Home reference geometry: original single editorial text block,
   translated into Portuguese without restoring the Weglot runtime. */
.home-page .intro { min-height:564px; padding:0 0 144px; }
.home-page .intro__copy { max-width:none; font-size:35px; line-height:1.5; letter-spacing:0; }
.home-page .intro__copy h1 { margin:0; font:inherit; line-height:inherit; }
.home-page .intro__copy .intro__lead {
  display:block; margin:52.5px 0 0; font-size:inherit; line-height:inherit;
}
@media (max-width:780px) {
  .home-page .intro { min-height:785px; padding:0 0 72px; }
  .home-page .intro .container { width:calc(100% - 2 * clamp(24px,9.23vw,36px)); }
  .home-page .intro__copy { font-size:25px; line-height:1.5; translate:none!important; }
  .home-page .intro__copy .intro__lead { margin-top:37.5px; }
}

/* Constrain only the translated editorial line length on desktop.
   Preserve the original full-width heading box and 318px mobile typography. */
@media (min-width:781px) {
  .home-page .intro__body { display:block; max-width:1050px; }
}
@media (max-width:780px) {
  .home-page .intro__body { display:block; max-width:none; }
}

/* Original Uncode mobile portfolio dimensions measured at 320/390px.
   Preserve full-resolution source images and native reveal/zoom. */
@media (max-width:520px) {
  .home-page .work { min-height:0; padding:71px 0 77px; display:block; }
  .home-page .work__layout { display:block; width:calc(100% - 72px); max-width:none; margin:0 auto; }
  .home-page .work__visual {
    display:block; width:100%; aspect-ratio:258 / 206; height:auto;
    margin:0; background:transparent;
  }
  .home-page .work__body { margin:44px 0 0; padding:0; }
  .home-page .work__title {
    font-size:clamp(28px,calc(10vw - 4px),35px);
    line-height:1.2; letter-spacing:0; text-wrap:normal;
  }
  .home-page .work__title br { display:none; }
  .home-page .work__service { margin:9px 0 41px; font-size:18px; line-height:1.75; }
  .home-page .work__link { width:126px; height:39px; min-height:39px; padding:0; font-size:14px; }
  .home-page .work__link span[aria-hidden="true"] { display:none; }
}

/* Align home typography gutters and card rhythm to the original at 320-390px. */
@media (max-width:780px) {
  .home-page .intro .container { width:calc(100% - 72px); }
}
@media (max-width:520px) {
  .home-page .work { padding-bottom:77.5px; }
}
@media (max-width:360px) {
  .home-page .work--bendito-fruto .work__service {
    font-size:16.5px; line-height:31.5px;
  }
}

/* Calibrated homepage geometry vs. original WordPress at 1440/390/320px.
   Scope to home so project detail pages remain unchanged. */
@media (min-width:781px) {
  .home-page .clients { min-height:488px; }
}
.home-page .site-footer { padding:95px 0 23px; }
.home-page .site-footer__logo { margin-bottom:35px; }
.home-page .site-footer__contact { margin:35px 0; }
.home-page .site-footer__legal-nav { margin:10px auto 16px; }
.home-page .site-footer__legal { padding-top:20px; }
@media (max-width:780px) {
  .home-page .clients { padding:74px 0 89px; }
  .home-page .site-footer { padding:65px 0 25px; }
  .home-page .site-footer__logo { width:92px; margin-bottom:20px; }
  .home-page .site-footer__contact { margin:25px 0; }
  .home-page .site-footer__legal-nav { margin:8px auto 12px; }
  .home-page .site-footer__legal { padding-top:14px; }
}
@media (max-width:360px) {
  .home-page .intro__body { letter-spacing:-.3px; }
  .home-page .clients { min-height:625px; }
}

/* Original Uncode desktop project geometry and parallax.
   Source measurements: 1440px viewport, 953px sections, 699x558px media.
   Scope to desktop only; retain fully validated mobile rhythm. */
@media (min-width:1060px) {
  .home-page .work {
    display:block; padding:0; height:953px; min-height:953px;
  }
  .home-page .work__layout {
    position:relative; height:100%; display:block; width:var(--shell);
  }
  .home-page .work__visual {
    position:absolute; top:107px; left:0; width:57.107843%;
    height:auto; aspect-ratio:699/558; margin:0;
  }
  .home-page .work__body {
    position:absolute; top:171px; left:51.22549%; width:39.95098%;
    padding:0; margin:0;
  }
  .home-page .work--kasvi .work__visual,
  .home-page .work--controllab .work__visual,
  .home-page .work--meta-prevent .work__visual {
    left:auto; right:0; grid-column:auto; grid-row:auto;
  }
  .home-page .work--kasvi .work__body,
  .home-page .work--controllab .work__body,
  .home-page .work--meta-prevent .work__body {
    left:0; right:auto; margin:0; grid-column:auto; grid-row:auto;
  }
  .home-page .work__title {
    font-size:100px; font-weight:500; line-height:1.2;
    letter-spacing:0; text-wrap:normal;
  }
  .home-page .work__service {
    font-size:18px; line-height:1.75; margin:9px 0 36px;
  }
  .home-page .work__link {
    width:158px; height:49px; min-height:49px; padding:0;
  }
}
@media (min-width:1060px) and (prefers-reduced-motion:no-preference) {
  .home-page .work__body {
    translate:0 var(--work-parallax-y, 0px);
    will-change:translate;
  }
}

/* Subpixel alignment of the original section rhythm at tested viewport sizes. */
@media (min-width:1060px) {
  .home-page .work { height:952.85px; min-height:952.85px; }
  .home-page .clients { min-height:487px; }
}
@media (max-width:520px) {
  .home-page .work { padding-bottom:77.75px; }
}
@media (max-width:360px) {
  .home-page .work { min-height:545px; }
  .home-page .site-footer { padding-bottom:28px; }
}


/* Responsive parity across 520-1920px — original WordPress measurements. */
@media (min-width:781px) {
  .home-page .intro .container,
  .home-page .work__layout { width:min(1224px,calc(100% - 64px)); }
  .home-page .site-footer { min-height:669px; }
}
@media (min-width:500px) and (max-width:520px) {
  .home-page .intro { min-height:0; }
  .home-page .clients { padding:47px 0 62px; }
  .home-page .site-footer { min-height:524px; }
}
@media (min-width:521px) and (max-width:780px) {
  .home-page .intro { min-height:0; padding:0 0 72px; }
  .home-page .work { display:block; min-height:0; padding:71px 0 76px; }
  .home-page .work__layout { display:block; width:calc(100% - 72px); margin-inline:auto; }
  .home-page .work__visual {
    display:block; width:100%; height:auto; aspect-ratio:258/206;
    margin:0; background:transparent;
  }
  .home-page .work__body {
    display:block; padding:0; margin:calc(14.92vw - 33.6px) 0 0;
  }
  .home-page .work__title {
    font-size:clamp(35px,calc(12.5vw - 30px),66px);
    line-height:1.2; letter-spacing:0; text-wrap:normal;
  }
  .home-page .work__title br { display:none; }
  .home-page .work__service { margin:9px 0 41px; font-size:18px; line-height:1.75; }
  .home-page .work__link {
    width:126px; height:39px; min-height:39px; padding:0; font-size:14px;
  }
  .home-page .work__link span[aria-hidden="true"] { display:none; }
  .home-page .clients { padding:calc(68px - 4vw) 0 calc(83px - 4vw); }
  .home-page .site-footer { min-height:525px; }
}
@media (min-width:781px) and (max-width:1059px) {
  .home-page .work { display:block; padding:0; height:830px; min-height:830px; }
  .home-page .work__layout { position:relative; display:block; height:100%; }
  .home-page .work__visual {
    position:absolute; top:107px; left:0; width:56.77%;
    height:auto; aspect-ratio:545/435; margin:0;
  }
  .home-page .work__body {
    position:absolute; top:128px; left:49.27%; width:39.5%;
    padding:0; margin:0;
  }
  .home-page .work--kasvi .work__visual,
  .home-page .work--controllab .work__visual,
  .home-page .work--meta-prevent .work__visual { left:auto; right:0; }
  .home-page .work--kasvi .work__body,
  .home-page .work--controllab .work__body,
  .home-page .work--meta-prevent .work__body { left:0; right:auto; }
  .home-page .work__title {
    font-size:100px; line-height:1.2; font-weight:500;
    letter-spacing:0; text-wrap:normal;
  }
  .home-page .work__service {font-size:18px;line-height:1.75;margin:9px 0 36px;}
  .home-page .work__link {width:158px;height:49px;min-height:49px;padding:0;}
  .home-page .clients { min-height:688px; }
}
@media (min-width:1200px) and (max-width:1399px) {
  .home-page .work {height:947px;min-height:947px;}
}
@media (min-width:1600px) {
  .home-page .intro {min-height:calc(348px + 15vw);}
  .home-page .work {height:calc(737px + 15vw);min-height:calc(737px + 15vw);}
  .home-page .clients {min-height:calc(56px + 30vw);}
  .home-page .site-footer {min-height:calc(237px + 30vw);}
}


/* Residual parity: all portfolio lines, intermediate scroll and large canvases. */
@media (min-width:521px) and (max-width:780px) {
  .home-page .work {
    min-height:calc(143px + 109.6vw);
  }
  .home-page .work__title {
    font-size:clamp(35px,calc(12.767vw - 31.39px),66.6667px);
  }
}
@media (min-width:781px) and (max-width:1059px) {
  .home-page .work__title {word-break:break-word;}
  .home-page .work__body {top:26px;}
  .home-page .work--all-shopping .work__body {top:128px;}
  .home-page .work--controllab .work__body,
  .home-page .work--meta-prevent .work__body,
  .home-page .work--bendito-fruto .work__body {top:82px;}
}
@media (min-width:781px) and (max-width:1059px) and (prefers-reduced-motion:no-preference) {
  .home-page .work__body {
    translate:0 var(--work-parallax-y,0px);
    will-change:translate;
  }
}
@media (min-width:1200px) and (max-width:1399px) {
  .home-page .work__layout {width:min(1224px,calc(100% - 68px));}
}
@media (min-width:1600px) {
  .home-page .work__body {top:calc(81px + 6.25vw);}
}
